/* ============================================================
   Cardish App CSS - Mobile-First
   ============================================================ */

/* --- Variables --- */
:root {
    --navy:      #1a2e4a;
    --teal:      #00a896;
    --teal-dark: #008577;
    --white:     #ffffff;
    --gray-bg:   #f5f7fa;
    --gray-mid:  #dde3ed;
    --gray-text: #6b7a8d;
    --danger:    #e53e3e;
    --warning:   #f6c90e;
    --success:   #38a169;
    --font:      -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius:    8px;
    --shadow:    0 2px 12px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
}

/* --- Reset / Normalize --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--gray-bg);
    color: var(--navy);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- Typography --- */
h1 { font-size: 1.75rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
h2 { font-size: 1.35rem; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; }
h3 { font-size: 1.1rem;  font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; }
p  { margin-bottom: 0.75rem; }

/* --- Layout --- */
.main-content {
    flex: 1;
    padding: 1rem;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

/* --- Site Header / Nav --- */
.site-header {
    background: var(--navy);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
    height: 60px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}
.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--teal);
    letter-spacing: -0.5px;
    text-decoration: none;
    flex-shrink: 0;
}
.active-event-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,168,150,0.2);
    border: 1px solid rgba(0,168,150,0.5);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.75rem;
    color: #7ee8da;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}
.event-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    flex-shrink: 0;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

.nav-toggle {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.main-nav.open { display: flex; }
.nav-link {
    display: block;
    padding: 0.75rem 1.25rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.07); text-decoration: none; }
.nav-link.active { color: var(--teal); font-weight: 600; }
.logout-link { color: rgba(255,255,255,0.5) !important; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 0.25rem; }
.logout-link:hover { color: var(--danger) !important; }

@media (min-width: 768px) {
    .nav-toggle { display: none; }
    .main-nav {
        display: flex !important;
        flex-direction: row;
        position: static;
        background: none;
        border: none;
        padding: 0;
        box-shadow: none;
        margin-left: auto;
        gap: 0.25rem;
    }
    .nav-link { padding: 0.4rem 0.75rem; border-radius: var(--radius); font-size: 0.9rem; }
    .logout-link { border-top: none; margin-top: 0; }
}

/* --- Flash Messages --- */
.flash {
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}
.flash-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.flash-info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 48px;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); text-decoration: none; color: var(--white); }
.btn-secondary {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--white); text-decoration: none; }
.btn-danger {
    background: var(--danger);
    color: var(--white);
    border-color: var(--danger);
}
.btn-danger:hover { background: #c53030; border-color: #c53030; text-decoration: none; color: var(--white); }
.btn-sm {
    min-height: 36px;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
}
.btn-block { width: 100%; }

/* --- Forms --- */
.form-group { margin-bottom: 1.25rem; }
label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
    margin-bottom: 0.4rem;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-mid);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font);
    color: var(--navy);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: auto;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0,168,150,0.15);
}
textarea { min-height: 100px; resize: vertical; }
.field-hint { font-size: 0.8rem; color: var(--gray-text); margin-top: 0.25rem; }
.field-error { font-size: 0.8rem; color: var(--danger); margin-top: 0.25rem; }
.field-low-confidence input,
.field-low-confidence textarea { border-color: var(--warning); background: #fffde7; }
.field-low-confidence label::after { content: ' (low confidence)'; color: #b8860b; font-weight: 400; font-size: 0.8rem; }

/* --- Card / Panel --- */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-mid);
}
.card-title { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin: 0; }

/* --- Page Header --- */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.page-header h1 { margin-bottom: 0.25rem; }

/* --- Dashboard Quick Actions --- */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 480px) {
    .quick-actions { grid-template-columns: repeat(3, 1fr); }
}

/* --- Stats Row --- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.stat-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.2rem 1rem;
    box-shadow: var(--shadow);
    text-align: center;
}
.stat-number { font-size: 2rem; font-weight: 800; color: var(--teal); display: block; line-height: 1.1; }
.stat-label  { font-size: 0.8rem; color: var(--gray-text); margin-top: 0.25rem; }

/* --- Contact List --- */
.contact-list { width: 100%; border-collapse: collapse; }
.contact-list th, .contact-list td {
    padding: 0.75rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-mid);
    font-size: 0.9rem;
}
.contact-list th {
    background: var(--gray-bg);
    font-weight: 700;
    color: var(--navy);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.contact-list tr:hover td { background: rgba(0,168,150,0.04); }
.contact-list .no-results td { text-align: center; color: var(--gray-text); padding: 2rem; }

/* Contact row mobile cards fallback */
@media (max-width: 600px) {
    .contact-list thead { display: none; }
    .contact-list, .contact-list tbody, .contact-list tr, .contact-list td {
        display: block;
        width: 100%;
    }
    .contact-list tr {
        background: var(--white);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        margin-bottom: 0.75rem;
        padding: 0.75rem;
    }
    .contact-list td {
        padding: 0.2rem 0;
        border: none;
    }
    .contact-list td::before {
        content: attr(data-label) ': ';
        font-weight: 700;
        color: var(--gray-text);
        font-size: 0.78rem;
        text-transform: uppercase;
    }
}

/* --- Badge --- */
.badge {
    display: inline-block;
    padding: 0.2em 0.65em;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.badge-teal    { background: rgba(0,168,150,0.15); color: var(--teal-dark); }
.badge-navy    { background: rgba(26,46,74,0.1);   color: var(--navy); }
.badge-warning { background: rgba(246,201,14,0.2); color: #866a00; }
.badge-success { background: #d4edda; color: #155724; }
.badge-danger  { background: #f8d7da; color: #721c24; }

/* --- Follow-up flag colors --- */
.flag-none     { color: var(--gray-text); }
.flag-call     { color: var(--teal); }
.flag-email    { color: #3b82f6; }
.flag-proposal { color: #9333ea; }

/* --- Digital Business Card (public /c/[slug]) --- */
.digital-card {
    max-width: 420px;
    margin: 2rem auto;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    text-align: center;
}
.digital-card-banner {
    height: 100px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
}
.digital-card-photo-wrap {
    margin-top: -50px;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}
.digital-card-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.digital-card-photo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 2.5rem;
    color: var(--white);
}
.digital-card-body { padding: 0 1.5rem 1.5rem; }
.digital-card-name { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.digital-card-title { color: var(--teal); font-weight: 600; font-size: 0.95rem; }
.digital-card-company { color: var(--gray-text); font-size: 0.9rem; margin-bottom: 1.2rem; }
.digital-card-contacts { list-style: none; margin-bottom: 1.5rem; }
.digital-card-contacts li { margin-bottom: 0.5rem; }
.digital-card-contacts a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--navy);
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius);
    transition: background 0.2s;
}
.digital-card-contacts a:hover { background: var(--gray-bg); text-decoration: none; }
.digital-card-qr { margin-top: 1.5rem; border-top: 1px solid var(--gray-mid); padding-top: 1rem; }
.digital-card-qr img { margin: 0 auto; border-radius: var(--radius); }
.digital-card-qr p { font-size: 0.75rem; color: var(--gray-text); margin-top: 0.4rem; }
.digital-card-vcf { margin: 1rem 0 0; }

/* --- Living Card (full viewport) --- */
body.living-card {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--navy);
    color: var(--white);
}
.living-card-wrap {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
}
.living-card-photo-section {
    width: 100%;
    flex: 0 0 33vh;
    overflow: hidden;
    position: relative;
}
.living-card-photo-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.living-card-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--navy), #2a4a6e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
}
.living-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem 2rem;
}
.living-card-name  { font-size: 2.2rem; font-weight: 800; line-height: 1.1; }
.living-card-title { font-size: 1rem; color: var(--teal); font-weight: 600; margin-top: 0.35rem; }
.living-card-company { font-size: 1rem; opacity: 0.7; margin-top: 0.2rem; }
.living-card-qr-section {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1rem 1rem;
    background: rgba(0,0,0,0.2);
}
.living-card-qr-section img { border-radius: 12px; max-width: 200px; }
.living-card-brand {
    font-size: 0.7rem;
    opacity: 0.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

/* --- Scan Page --- */
.scan-drop-zone {
    border: 3px dashed var(--gray-mid);
    border-radius: 16px;
    padding: 3rem 1.5rem;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
    background: var(--white);
}
.scan-drop-zone:hover, .scan-drop-zone.drag-over {
    border-color: var(--teal);
    background: rgba(0,168,150,0.04);
}
.scan-drop-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.scan-drop-text { color: var(--gray-text); font-size: 0.95rem; }
.scan-preview-wrap { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.scan-card-thumb { flex: 0 0 120px; }
.scan-card-thumb img { width: 120px; border-radius: var(--radius); box-shadow: var(--shadow); }
.scan-fields { flex: 1; min-width: 200px; }

/* --- Contact Detail --- */
.contact-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 640px) {
    .contact-detail-layout { grid-template-columns: 200px 1fr; }
}
.contact-thumb { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); cursor: pointer; }
.message-log { max-height: 240px; overflow-y: auto; }
.message-log-item {
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    background: var(--gray-bg);
}
.message-log-item .log-meta { font-size: 0.75rem; color: var(--gray-text); margin-bottom: 0.25rem; }
.message-log-item.sms-log   { border-left: 3px solid var(--teal); }
.message-log-item.email-log { border-left: 3px solid #3b82f6; }

/* --- Modal --- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: var(--white);
    border-radius: 12px;
    padding: 1.75rem;
    width: 100%;
    max-width: 520px;
    box-shadow: var(--shadow-md);
    animation: modalSlide 0.2s ease;
    max-height: 90vh;
    overflow-y: auto;
}
@keyframes modalSlide { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-text);
    line-height: 1;
    padding: 0.2rem;
}
.modal-close:hover { color: var(--navy); }
.modal-footer { margin-top: 1.25rem; display: flex; gap: 0.75rem; justify-content: flex-end; }

/* --- Wrapup Mode --- */
.wrapup-layout {
    max-width: 540px;
    margin: 0 auto;
}
.wrapup-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.wrapup-progress-text { font-size: 0.9rem; color: var(--gray-text); }
.wrapup-progress-bar-wrap {
    flex: 1;
    height: 6px;
    background: var(--gray-mid);
    border-radius: 3px;
    margin: 0 1rem;
    overflow: hidden;
}
.wrapup-progress-bar {
    height: 100%;
    background: var(--teal);
    border-radius: 3px;
    transition: width 0.4s;
}
.wrapup-photo {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}
.wrapup-photo-placeholder {
    width: 100%;
    height: 200px;
    background: var(--gray-bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin-bottom: 1rem;
}
.wrapup-fields { margin-bottom: 1rem; }
.wrapup-field-row {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}
.wrapup-field-label { font-weight: 700; width: 90px; flex-shrink: 0; color: var(--gray-text); font-size: 0.8rem; text-transform: uppercase; }
.wrapup-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    gap: 0.75rem;
}

/* --- Events Page --- */
.events-list { list-style: none; }
.event-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
    gap: 0.5rem;
}
.event-row.is-active { border-left: 4px solid var(--teal); }
.event-row-info { flex: 1; }
.event-row-name { font-weight: 700; color: var(--navy); }
.event-row-meta { font-size: 0.83rem; color: var(--gray-text); margin-top: 0.2rem; }
.event-row-actions { display: flex; gap: 0.5rem; align-items: center; }

/* --- Profile / Account --- */
.profile-photo-wrap {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.profile-current-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow);
    border: 3px solid var(--teal);
}
.profile-photo-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
}
.qr-preview { text-align: center; margin-top: 1.5rem; }
.qr-preview img { margin: 0 auto 0.75rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.slug-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #856404;
    margin-bottom: 1rem;
}

/* --- Site Footer --- */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
    margin-top: auto;
}
.footer-brand { margin: 0; }
.footer-brand strong { color: var(--teal); }

/* --- Login Page --- */
.login-wrap {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.login-box {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
}
.login-logo { font-size: 2rem; font-weight: 800; color: var(--teal); text-align: center; margin-bottom: 0.25rem; }
.login-tagline { text-align: center; color: var(--gray-text); font-size: 0.9rem; margin-bottom: 2rem; }

/* --- Utility --- */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--gray-text); }
.text-teal   { color: var(--teal); }
.text-danger { color: var(--danger); }
.text-small  { font-size: 0.85rem; }
.mt-0  { margin-top: 0; }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: 0.5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.d-flex        { display: flex; }
.align-center  { align-items: center; }
.gap-1         { gap: 0.5rem; }
.gap-2         { gap: 1rem; }
.flex-wrap     { flex-wrap: wrap; }
.w-100         { width: 100%; }
.divider { border: none; border-top: 1px solid var(--gray-mid); margin: 1.5rem 0; }
.auto-save-indicator {
    font-size: 0.75rem;
    color: var(--teal);
    opacity: 0;
    transition: opacity 0.3s;
    margin-left: 0.5rem;
}
.auto-save-indicator.visible { opacity: 1; }
