:root {
    --page-shell-width: 960px;

    /* Brand — teal #0f766e is also Tailwind teal-700, so custom-CSS and
       Tailwind pages share one primary color. */
    --brand: #0f766e;
    --brand-strong: #115e59;
    --brand-soft: #ecfdf5;
    --brand-ring: rgba(15, 118, 110, 0.16);

    /* Semantic role accents (kept for clinical color-coding) */
    --accent-doctor: #4f46e5;
    --accent-pharmacy: #059669;
    --accent-diagnostics: #0284c7;
    --accent-warning: #b45309;
    --accent-danger: #dc2626;

    /* Neutrals — Tailwind slate scale */
    --bg: #f1f5f9;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-muted: #64748b;

    /* Radius / shadow scale */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
    --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding: 16px;
}

.navbar {
    background: #ffffff;
    padding: 14px 22px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    width: 100%;
    max-width: var(--page-shell-width);
    margin: 0 auto 16px;
    gap: 14px;
}

.navbar-brand {
    font-size: 1.34em;
    font-weight: 700;
    color: #123247;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: color 0.2s ease;
}

.navbar-brand:hover {
    color: #0b5264;
}

.navbar-brand:focus-visible {
    outline: 3px solid rgba(15, 118, 110, 0.28);
    outline-offset: 5px;
    border-radius: 8px;
}

.brand-logo {
    --brand-logo-clock-size: 52px;
    --brand-logo-lock-height: 26px;
    --brand-clock-center-y: 44%;
    width: 80px;
    height: 84px;
    display: block;
    flex: 0 0 auto;
}

.brand-logo-medeclock {
    --logo-tilt-x: 0deg;
    --logo-tilt-y: 0deg;
    --logo-lift: 0px;
    position: relative;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    transform: perspective(280px) rotateX(var(--logo-tilt-x)) rotateY(var(--logo-tilt-y)) translateY(var(--logo-lift));
    transform-style: preserve-3d;
    transition: transform 0.18s ease-out, border-color 0.22s ease, box-shadow 0.22s ease;
    will-change: transform;
}

.brand-logo-medeclock::before {
    display: none;
}

.brand-heart-art {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 1;
    filter: drop-shadow(0 3px 4px rgba(117, 18, 23, 0.2));
    transform: translateZ(4px);
    transition: filter 0.22s ease, transform 0.22s ease;
}

.brand-heart-main {
    fill: url(#medeclock-heart-red);
    stroke: none;
}

.brand-lock {
    position: absolute;
    top: 2px;
    left: 20px;
    right: 20px;
    height: var(--brand-logo-lock-height);
    z-index: 5;
    filter: drop-shadow(0 1px 1px rgba(88, 37, 16, 0.22));
    transform: translateZ(15px);
    transition: filter 0.22s ease, transform 0.22s ease;
}

.brand-lock-art {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.brand-lock-shackle {
    fill: #fde68a;
    stroke: none;
}

.brand-lock-panel {
    fill: #fbbf24;
    stroke: none;
}

.brand-lock-keyhole {
    fill: #7f151a;
}

.brand-clock {
    position: absolute;
    left: 50%;
    bottom: 7px;
    width: var(--brand-logo-clock-size);
    height: var(--brand-logo-clock-size);
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    transform: translateX(-50%) translateZ(19px) scale(var(--clock-scale, 1));
    z-index: 4;
    transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.brand-clock::before {
    display: none;
}

.brand-clock-hand,
.brand-clock-center {
    position: absolute;
    left: 50%;
    top: var(--brand-clock-center-y);
}

.brand-clock-hand {
    top: auto;
    bottom: calc(100% - var(--brand-clock-center-y));
    width: 2px;
    border-radius: 99px;
    background: #f8fafc;
    box-shadow: 0 0 0 0.6px rgba(72, 15, 23, 0.62), 0 1px 1px rgba(72, 15, 23, 0.34);
    transform-origin: 50% 100%;
    transform: translateX(-50%) rotate(var(--clock-rotate, 0deg));
}

.brand-clock-hour {
    height: 25%;
    width: 4px;
}

.brand-clock-minute {
    height: 35%;
    width: 3px;
    background: #ffd166;
}

.brand-clock-second {
    height: 40%;
    width: 1.5px;
    background: #8bdcf8;
}

.brand-clock-center {
    width: 4px;
    height: 4px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #ffd166;
    box-shadow: 0 0 0 1px rgba(51, 22, 17, 0.38);
}

.navbar-brand:hover .brand-logo-medeclock,
.navbar-brand:focus-visible .brand-logo-medeclock {
    --logo-lift: -1px;
    --clock-scale: 1.035;
    border-color: transparent;
    box-shadow: none;
}

.navbar-brand:hover .brand-heart-art,
.navbar-brand:focus-visible .brand-heart-art {
    filter: drop-shadow(0 4px 4px rgba(117, 18, 23, 0.24));
    transform: translateZ(6px) scale(1);
}

.navbar-brand:hover .brand-lock,
.navbar-brand:focus-visible .brand-lock {
    filter: drop-shadow(0 2px 2px rgba(88, 37, 16, 0.24));
    transform: translateY(-1px) translateZ(18px);
}

.navbar-brand:hover .brand-clock,
.navbar-brand:focus-visible .brand-clock {
    box-shadow: none;
}

.brand-logo-medeclock.is-pressed {
    --logo-lift: 0px;
    --clock-scale: 0.98;
    transition-duration: 0.08s;
}

@media (prefers-reduced-motion: reduce) {
    .brand-logo-medeclock,
    .brand-heart-art,
    .brand-lock,
    .brand-clock {
        transition: none;
    }
}

.navbar-links {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    min-width: 0;
}

.navbar-actions {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.navbar-links a {
    color: #555;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.95em;
}

.nav-home-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-home-icon {
    font-size: 1rem;
    line-height: 1;
}

.nav-message-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-trends-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-trends-icon {
    display: inline-flex;
    width: 1.1rem;
    height: 1.1rem;
    color: currentColor;
}

.nav-trends-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.care-recipient-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 16px 0;
    padding: 14px 16px;
    border: 1px solid #99f6e4;
    border-radius: 8px;
    background: #f0fdfa;
}

.care-recipient-selector > div span,
.care-recipient-selector label {
    display: block;
    color: #64748b;
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.care-recipient-selector > div strong {
    display: block;
    margin-top: 2px;
    color: #134e4a;
}

.care-recipient-selector form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.care-recipient-selector select {
    min-width: 220px;
    min-height: 42px;
    padding: 8px 34px 8px 10px;
    border: 1px solid #0f766e;
    border-radius: 6px;
    background: #fff;
    color: #0f172a;
    font-weight: 700;
}

.family-assist-banner {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-left: 4px solid #0f766e;
    background: #ecfeff;
    color: #134e4a;
    font-size: .9rem;
    font-weight: 650;
}

@media (max-width: 640px) {
    .care-recipient-selector {
        display: grid;
    }

    .care-recipient-selector form {
        display: grid;
    }

    .care-recipient-selector select {
        min-width: 0;
        width: 100%;
    }
}

.nav-message-icon {
    position: relative;
    display: inline-flex;
    width: 1.1rem;
    height: 1.1rem;
    color: currentColor;
}

.nav-message-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.nav-message-dot {
    position: absolute;
    top: 4px;
    left: 26px;
    width: 9px;
    height: 9px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}

.navbar-links a:hover,
.navbar-links a.active {
    background: #ecfdf5;
    color: #0f766e;
}

.user-badge {
    background: var(--brand-soft);
    color: var(--brand-strong);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-role-icon,
.language-code {
    min-width: 24px;
    height: 24px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.66rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.nav-role-doctor { background: #e0e7ff; color: #4338ca; }
.nav-role-pharmacy { background: #dcfce7; color: #166534; }
.nav-role-diagnostics { background: #e0f2fe; color: #0369a1; }
.nav-role-checkin { background: #ede9fe; color: #6d28d9; }
.nav-role-patient { background: #f1f5f9; color: #334155; }

.user-badge.doctor {
    background: #eef2ff;
    color: #4338ca;
}

.user-menu {
    position: relative;
    display: inline-flex;
}

.user-menu .user-badge {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.user-menu-chevron {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 190px;
    padding: 6px;
    z-index: 1000;
}

.user-menu-dropdown.show {
    display: block;
}

.user-menu-dropdown a {
    display: block;
    padding: 9px 14px;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-size: 0.95em;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.user-menu-dropdown a:hover {
    background: #ecfdf5;
    color: #0f766e;
}

.language-switcher {
    position: relative;
    display: inline-block;
}

.language-btn {
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    color: #374151;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.language-glyph {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0369a1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.78rem;
}

.language-code {
    background: #eef2ff;
    color: #3730a3;
}

.language-btn:hover {
    background: var(--brand-soft);
    border-color: var(--brand);
}

.language-chevron {
    width: 16px;
    height: 16px;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    min-width: 150px;
    z-index: 1000;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
}

.language-option:hover {
    background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
}

.language-option.active {
    background: linear-gradient(135deg, rgba(102,126,234,0.15) 0%, rgba(118,75,162,0.15) 100%);
    font-weight: 600;
}

body > .container {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(15,23,42,0.07);
    padding: 32px;
    width: 100%;
    max-width: var(--page-shell-width);
    margin: 0 auto;
}

h1 { color: #333; text-align: center; margin-bottom: 10px; font-size: 2em; }
h2 { color: #555; margin-bottom: 20px; font-size: 1.3em; }
h3 { color: #334155; margin-bottom: 15px; }

.subtitle { color: #666; text-align: center; margin-bottom: 30px; font-size: 1.1em; }

.btn {
    display: inline-block;
    background: #0f766e;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    background: #115e59;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.btn-secondary { background: #64748b; }
.btn-success { background: #15803d; }
.btn-sm { padding: 10px 25px; font-size: 0.95em; }
.btn-center { text-align: center; }

.navbar-links a.btn-sm {
    background: #f8fafc;
    color: #0f766e;
    border: 1px solid #99f6e4;
}

.navbar-links a.btn-sm:hover,
.navbar-links a.btn-sm:focus {
    background: #ecfdf5;
    color: #115e59;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.flash-container { width: 100%; max-width: var(--page-shell-width); margin: 0 auto 20px; }

.flash-message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

.flash-symbol {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 800;
}

.flash-symbol-error,
.flash-symbol-warning {
    background: rgba(133, 100, 4, 0.12);
}

.flash-symbol-info {
    background: rgba(12, 84, 96, 0.12);
    font-family: Georgia, serif;
}

.flash-symbol-success {
    background: rgba(21, 87, 36, 0.12);
    position: relative;
}

.flash-symbol-success::before {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg) translate(1px, -1px);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.flash-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.flash-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash-warning { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
.flash-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; color: #333; font-weight: 600; }

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1em;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-ring);
}

.password-field {
    position: relative;
    display: block;
}

.password-field > .form-control {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 46px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 0 var(--radius) var(--radius) 0;
    transition: color 0.2s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--brand);
    outline: none;
}

.password-toggle svg {
    display: block;
    width: 20px;
    height: 20px;
}

.card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.card-highlight {
    background: #f8fafc;
    border-left: 4px solid #0f766e;
}

.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 15px; }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid #e0e0e0; }

th {
    background: var(--surface-2);
    color: var(--text-muted);
    font-weight: 700;
}

th:first-child { border-radius: 10px 0 0 0; }
th:last-child { border-radius: 0 10px 0 0; }
tr:hover { background: #f8f9fa; }

.table-link { color: var(--brand); text-decoration: none; font-weight: 600; }
.table-link:hover { text-decoration: underline; }

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.badge-low { background: #d4edda; color: #155724; }
.badge-moderate { background: #fff3cd; color: #856404; }
.badge-high { background: #f8d7da; color: #721c24; }

@media (max-width: 640px) {
    body {
        padding: 16px;
    }

    .navbar {
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 12px;
        padding: 13px 16px;
    }

    .navbar-brand {
        grid-column: 1;
        grid-row: 1;
        font-size: 1.18em;
    }

    .brand-logo {
        --brand-logo-clock-size: 46px;
        --brand-logo-lock-height: 23px;
        width: 72px;
        height: 76px;
    }

    .navbar-links {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: 100%;
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .user-menu-dropdown {
        left: 0;
        right: auto;
        max-width: calc(100vw - 32px);
    }

    .navbar-actions {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .navbar-links a {
        padding: 8px 10px;
    }

    .navbar-links a.btn-sm {
        padding: 8px 14px;
    }

    .navbar-links > a[href="/login"],
    .navbar-links > a[href="/register"] {
        display: none;
    }

    .language-btn {
        gap: 4px;
        padding: 8px 10px;
    }

    .language-btn #current-language {
        display: none;
    }
}

@media (max-width: 360px) {
    .navbar {
        padding: 12px;
        column-gap: 6px;
    }

    .navbar-brand {
        gap: 7px;
        font-size: 1.02em;
    }

    .brand-logo {
        --brand-logo-clock-size: 42px;
        --brand-logo-lock-height: 21px;
        width: 66px;
        height: 70px;
    }

    .navbar-actions {
        gap: 6px;
    }
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.disclaimer {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 20px;
}

.disclaimer h4 { color: #854d0e; margin-bottom: 3px; font-size: 0.74rem; }
.disclaimer p { color: #854d0e; font-size: 0.7rem; line-height: 1.4; }

.success-box {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-bottom: 25px;
}

.success-box h2 { color: #155724; margin-bottom: 15px; }

.submission-id {
    font-size: 2em;
    font-weight: 700;
    color: #28a745;
    letter-spacing: 3px;
    background: white;
    padding: 15px 30px;
    border-radius: 10px;
    display: inline-block;
    margin: 10px 0;
    font-family: monospace;
}

.empty-state { text-align: center; padding: 60px 20px; color: #888; }
.empty-state-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 24px;
    background: linear-gradient(135deg, #e0f2fe, #f8fafc);
    border: 1px solid #bae6fd;
    position: relative;
}

.empty-state-icon::before {
    content: '';
    position: absolute;
    inset: 18px 20px;
    border: 2px solid #0284c7;
    border-radius: 5px;
}

.empty-state-icon::after {
    content: '';
    position: absolute;
    left: 26px;
    right: 26px;
    top: 31px;
    height: 2px;
    background: #0284c7;
    box-shadow: 0 8px 0 #0284c7;
}

.btn-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    position: relative;
}

.btn-icon-plus::before,
.btn-icon-plus::after,
.btn-icon-assessment::before,
.btn-icon-assessment::after {
    content: '';
    position: absolute;
    background: currentColor;
    border-radius: 2px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.btn-icon-plus::before { width: 16px; height: 2px; }
.btn-icon-plus::after { width: 2px; height: 16px; }
.btn-icon-assessment::before { width: 14px; height: 14px; border-radius: 50%; background: transparent; border: 2px solid currentColor; }
.btn-icon-assessment::after { width: 7px; height: 2px; transform: translate(-20%, 190%) rotate(45deg); }

.meta-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    margin-right: 6px;
    vertical-align: -2px;
    border: 1.5px solid currentColor;
    border-radius: 3px;
    position: relative;
}

.meta-icon-calendar::before {
    content: '';
    position: absolute;
    left: -1.5px;
    right: -1.5px;
    top: 3px;
    border-top: 1.5px solid currentColor;
}

.condition-icon {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: #d1fae5;
    display: inline-block;
    margin-right: 8px;
    vertical-align: -3px;
    position: relative;
}

.condition-icon::before,
.condition-icon::after {
    content: '';
    position: absolute;
    background: #059669;
    border-radius: 1px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.condition-icon::before { width: 10px; height: 2px; }
.condition-icon::after { width: 2px; height: 10px; }

.record-upload-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 8px;
    border-radius: 14px;
    background: var(--brand-soft);
    color: var(--brand);
    position: relative;
    font-size: 0;
}

.record-upload-icon::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 10px;
    width: 16px;
    height: 24px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.record-upload-icon::after {
    content: '';
    position: absolute;
    left: 18px;
    top: 20px;
    width: 10px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 6px 0 currentColor;
}

.doc-icon,
.record-doc-icon,
.history-doc-icon {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--brand);
}

.divider { display: flex; align-items: center; margin: 30px 0; color: #888; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: #e0e0e0; }
.divider span { padding: 0 15px; }
