/* ============================================================
   AvenueCircle — Main Stylesheet
   Location: public/assets/style.css

   Sections:
     1.  Design tokens
     2.  Reset & base
     3.  Typography helpers
     4.  Buttons
     5.  Forms
     6.  Alerts
     7.  Avatar
     8.  Auth pages
     9.  Layout shell
    10.  Cards
    11.  Dashboard
    12.  Item lists
    13.  Settings — base two-column
    14.  Dropdown
    15.  Modals
    16.  Utilities
    17.  Signup polish
    18.  Legal pages
    19.  Site footer
    20.  Auth legal links
    21.  CAPTCHA box
    22.  Responsive — general
    23.  Profile page
    24.  Settings — profile tab
    25.  Sidebar collapse
    26.  Cropper modal
    27.  Settings — card grid
    28.  Network page + connection button
    29.  Search
    30.  Network filter
    31.  Presence dot
    32.  Chat inbox
    33.  Chat thread
    34.  Floating chat widget
    35.  New chat picker
    36.  Scheduled interviews
    37.  Mobile top-nav — search extras
    38.  Mobile chat — scoped chat-* rules
    39.  Mobile widget — bottom sheet
    40.  Mobile — complete layout fix
    41.  Widget call UI
    42.  Widget call — no-video + debug
    43.  Full-screen call overlay
    44.  Jobs tab — candidate side
    45.  Job detail page
    46.  Employer shell
    47.  Employer signup + verification UI
    48.  Employer — job list page
    49.  Employer — job posting form
    50.  Employer — responsive
    51.  PSF skills — profile section
    52.  PSF claim modal
    53.  Job match — candidate detail
    54.  Employer — application mode radios
    55.  Responsive — PSF + match
    56.  Employer — clickable job rows
    57.  Employer — job detail page
    58.  Employer — application row
    59.  Employer — applicant modal
    60.  Full-screen interview call
    61.  Call sidebar — employer
    62.  Call sidebar — candidate
    63.  Call — responsive
    64.  Call — hide floating chat widget
    65.  Call — header, name tag, sidebar header
    66.  Call — profile & verified tabs
    67.  Call — sidebar footer + toast
    68.  Call — gov ID clickable rows
    69.  Call — job context + match
    70.  Call — final responsive
    71.  Job detail — visual polish
    72.  Call visual polish — full-screen + widget
    73.  Badge component
    74.  Call UI — extras (notes, socials, gov)
    75.  Call UI — fixes & additions
    76.  Mirror fix — remote video
    77.  Mobile swipe-to-shrink — transitions
    78.  Final landscape + portrait fixes
    79.  Auth portals
    80.  Employer settings — polished layout
    81.  Employer settings — perks & branding
    82.  Tab visibility fix
    83.  Branding layout fix
    84.  Institution flow
    85.  Input system & tables
    86.  Manage credentials
    87.  Tab navigation
    88.  Dashboard V2 additions
   ============================================================ */


/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
    --accent:          #0a66c2;
    --accent-hover:    #004182;
    --accent-soft:     #eaf3ff;
    --accent-soft-2:   #d4e6fb;

    --success:         #16a34a;
    --success-soft:    #ecfdf5;
    --success-border:  #a7f3d0;
    --warning:         #d97706;
    --warning-soft:    #fffbeb;
    --danger:          #dc2626;
    --danger-soft:     #fef2f2;
    --danger-border:   #fecaca;

    --bg:              #f4f6f9;
    --surface:         #ffffff;
    --surface-alt:     #f8fafc;
    --border:          #d5dbe4;
    --border-light:    #e6eaf0;
    --divider:         #eef1f5;

    --text:            #0f172a;
    --text-soft:       #334155;
    --text-muted:      #64748b;
    --text-faint:      #94a3b8;
    --text-on-accent:  #ffffff;

    --r-sm:            6px;
    --r-md:            8px;
    --r-lg:            12px;
    --r-xl:            16px;
    --r-pill:          999px;

    --sh-xs:           0 1px 2px rgba(15, 23, 42, 0.04);
    --sh-sm:           0 1px 3px rgba(15, 23, 42, 0.06),
                       0 1px 2px rgba(15, 23, 42, 0.04);
    --sh-md:           0 4px 12px rgba(15, 23, 42, 0.08);
    --sh-lg:           0 10px 30px rgba(15, 23, 42, 0.10);
    --sh-xl:           0 20px 50px rgba(15, 23, 42, 0.14);

    --topnav-h:        60px;
    --sidebar-w:       240px;

    --focus-ring:      0 0 0 3px rgba(10, 102, 194, 0.18);
    --focus-ring-red:  0 0 0 3px rgba(220, 38, 38, 0.15);
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@supports not (overflow-x: clip) {
    html, body { overflow-x: hidden; }
    .profile-wrapper { overflow: visible; }
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button, input, textarea, select {
    font: inherit;
    color: inherit;
}

i {
    font-style: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}


/* ============================================================
   3. TYPOGRAPHY HELPERS
   ============================================================ */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; }

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 14px;
}
.section-title i { font-size: 1.15rem; }

.page-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}
.page-subheading {
    margin: 0 0 22px;
    color: var(--text-muted);
    font-size: 0.95rem;
}


/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--r-md);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease,
                color 0.15s ease, box-shadow 0.15s ease,
                transform 0.08s ease;
    text-decoration: none;
    user-select: none;
    font-family: inherit;
}
.btn:active:not(:disabled) { transform: translateY(1px); }

.btn-primary {
    background: var(--accent);
    color: var(--text-on-accent);
    border-color: var(--accent);
}
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}
.btn-secondary:hover:not(:disabled) { background: var(--surface-alt); }

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border);
}
.btn-ghost:hover:not(:disabled) {
    color: var(--text);
    border-color: var(--accent);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover:not(:disabled) { background: #b91c1c; }

.btn-block { width: 100%; }
.btn-pill  { border-radius: var(--r-pill); }
.btn-sm    { padding: 6px 14px; font-size: 0.82rem; }

.btn-inline {
    flex: 0 0 auto;
    padding: 0 18px;
    height: 46px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
    font-family: inherit;
}
.btn-inline:hover:not(:disabled) {
    background: var(--surface-alt);
    border-color: var(--accent);
    color: var(--accent);
}
.btn-inline.btn-inline-primary {
    background: var(--accent);
    color: var(--text-on-accent);
    border-color: var(--accent);
}
.btn-inline.btn-inline-primary:hover:not(:disabled) {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--text-on-accent);
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0 4px;
    font-family: inherit;
}
.btn-link:hover { text-decoration: underline; }

button:disabled,
button[disabled],
.btn:disabled,
.btn[disabled] {
    cursor: not-allowed;
    opacity: 0.55;
    filter: none;
    transform: none !important;
    box-shadow: none !important;
}
.btn-primary:disabled,
.btn-primary[disabled] {
    background: #7aa9d9 !important;
    border-color: #7aa9d9 !important;
    color: #ffffff !important;
    opacity: 1;
}
.btn-secondary:disabled,
.btn-secondary[disabled] {
    background: #e2e6ec !important;
    border-color: #d5dbe4 !important;
    color: #94a3b8 !important;
    opacity: 1;
}
.btn-inline:disabled { opacity: 0.5; }

.field + .btn-block,
label + .btn-block,
.btn-below { margin-top: 10px; }

.btn-block-lg {
    display: block;
    width: 100%;
    padding: 12px 20px;
    font-size: 0.95rem;
    text-align: center;
}


/* ============================================================
   5. FORMS
   ============================================================ */
.field {
    display: block;
    margin-bottom: 14px;
}

.field-label,
.form-label {
    display: block;
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--text-soft);
    margin-bottom: 6px;
}

.form-label-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 16px 0 6px;
}
.form-label-row:first-of-type { margin-top: 0; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    font-family: inherit;
    color: var(--text);
}
input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: var(--focus-ring);
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }

textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.5;
}

input[readonly] {
    background: var(--surface-alt);
    color: var(--text-muted);
    cursor: not-allowed;
}

input:disabled, select:disabled, textarea:disabled {
    background: var(--surface-alt);
    color: var(--text-faint);
    cursor: not-allowed;
}

.required-star {
    color: var(--danger);
    font-weight: 700;
    margin-left: 2px;
}

.info-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 700;
    font-style: italic;
    cursor: help;
    flex-shrink: 0;
}

.form-help {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

.form-row   { display: grid; gap: 10px; width: 100%; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1.6fr 1fr 1.2fr; }

.field-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.field-wrap.has-error input,
.field-wrap.has-error select,
.field-wrap.has-error textarea,
.has-error > input,
.has-error > select,
.has-error > textarea,
.code-row.has-error input {
    border-color: var(--danger) !important;
    background: var(--danger-soft) !important;
    box-shadow: var(--focus-ring-red) !important;
}

@keyframes field-shake {
    0%   { transform: translateX(0); }
    20%  { transform: translateX(-3px); }
    40%  { transform: translateX(3px); }
    60%  { transform: translateX(-2px); }
    80%  { transform: translateX(2px); }
    100% { transform: translateX(0); }
}
.field-wrap.has-error input,
.field-wrap.has-error select,
.has-error > input,
.has-error > select,
.code-row.has-error input {
    animation: field-shake 0.4s ease-in-out;
}

input.input-error,
select.input-error {
    border-color: var(--danger) !important;
    background: var(--danger-soft) !important;
}
input.input-error:focus,
select.input-error:focus {
    box-shadow: var(--focus-ring-red) !important;
}

.field-error-text {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--danger);
    font-weight: 500;
    line-height: 1.4;
}
.field-error-text::before {
    content: '⚠';
    font-weight: 700;
    flex-shrink: 0;
}

.field-ok-text {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--success);
    font-weight: 500;
    line-height: 1.4;
}
.field-ok-text::before {
    content: '✓';
    font-weight: 700;
    flex-shrink: 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-switch .slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: background 0.25s;
}
.toggle-switch .slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s;
    box-shadow: var(--sh-xs);
}
.toggle-switch input:checked + .slider { background: var(--accent); }
.toggle-switch input:checked + .slider::before { transform: translateX(18px); }
.toggle-switch input:disabled + .slider { opacity: 0.55; cursor: not-allowed; }


/* ============================================================
   6. ALERTS
   ============================================================ */
.alert {
    padding: 12px 16px;
    border-radius: var(--r-md);
    font-size: 0.9rem;
    margin-bottom: 16px;
    border: 1px solid transparent;
    line-height: 1.45;
}
.alert-error   { background: var(--danger-soft);  border-color: var(--danger-border); color: var(--danger); }
.alert-success { background: var(--success-soft); border-color: var(--success-border); color: var(--success); }
.alert-info    { background: var(--accent-soft);  border-color: var(--accent-soft-2); color: var(--accent-hover); }
.alert div + div { margin-top: 4px; }


/* ============================================================
   7. AVATAR
   ============================================================ */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.avatar-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #0553a6 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
}
.avatar-initial-lg { width: 40px; height: 40px; font-size: 1rem; }


/* ============================================================
   8. AUTH PAGES
   ============================================================ */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px 16px;
    background:
        radial-gradient(circle at top left, rgba(10, 102, 194, 0.06) 0%, transparent 45%),
        radial-gradient(circle at bottom right, rgba(10, 102, 194, 0.05) 0%, transparent 45%),
        var(--bg);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 36px 32px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-lg);
    position: relative;
}
.auth-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--text-soft);
    font-size: 1.15rem;
    margin-bottom: 12px;
    transition: background 0.15s;
}
.auth-back:hover { background: var(--surface-alt); }

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.auth-brand img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}
.auth-brand-left {
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}
.auth-brand-left img { width: 36px; height: 36px; }
.auth-brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.01em;
}

.auth-title {
    margin: 0 0 4px;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--accent);
    text-align: center;
}
.auth-subtitle {
    margin: 0 0 26px;
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
}

.auth-heading {
    margin: 0 0 6px;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
}
.auth-subheading {
    margin: 0 0 22px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.auth-footnote {
    margin: 20px 0 0;
    font-size: 0.8rem;
    color: var(--text-faint);
    text-align: center;
}

.auth-switch {
    margin: 16px 0 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.auth-switch a { color: var(--accent); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

.code-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
    width: 100%;
}
.code-row input { flex: 1 1 auto; min-width: 0; }

.code-hint {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 6px;
}

.auth-card .auth-title + .auth-subtitle + form { margin-top: 4px; }


/* ============================================================
   9. LAYOUT SHELL
   ============================================================ */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--topnav-h);
    padding: 0 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--sh-xs);
    width: 100%;
}

.top-nav .nav-left {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.top-nav .nav-left .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
    margin-right: 14px;
    white-space: nowrap;
}
.top-nav .nav-left .logo img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.top-nav .nav-left .nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--r-md);
    color: var(--text-muted);
    font-size: 1.05rem;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.top-nav .nav-left .nav-btn:hover { background: var(--surface-alt); }
.top-nav .nav-left .nav-btn.active {
    color: var(--accent);
    background: var(--accent-soft);
}
.top-nav .nav-left .nav-btn span {
    font-size: 0.72rem;
    font-weight: 600;
}

.top-nav .nav-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.top-nav .nav-right > button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 1.15rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.top-nav .nav-right > button:hover {
    background: var(--surface-alt);
    color: var(--text);
}

.nav-disabled { opacity: 0.5; cursor: not-allowed; }
a.nav-disabled:hover { background: transparent !important; }

.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border-light);
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: var(--topnav-h);
    height: calc(100vh - var(--topnav-h));
    overflow-y: auto;
    z-index: 10;
    transition: width 0.2s ease, padding 0.2s ease;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.sidebar nav { flex: 1; }

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 2px;
    border-radius: var(--r-md);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-soft);
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
}
.sidebar nav a i {
    width: 22px;
    font-size: 1.1rem;
    color: var(--text-muted);
}
.sidebar nav a:hover {
    background: var(--surface-alt);
    color: var(--text);
}
.sidebar nav a.active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}
.sidebar nav a.active i { color: var(--accent); }

.sidebar .mini-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 1px solid var(--border-light);
}
.sidebar .mini-profile .info {
    font-size: 0.85rem;
    line-height: 1.3;
    min-width: 0;
}
.sidebar .mini-profile .info .name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}
.sidebar .mini-profile .info .title {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.profile-wrapper {
    display: flex;
    min-height: calc(100vh - var(--topnav-h));
    width: 100%;
    max-width: 100%;
}

.main {
    flex: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}


/* ============================================================
   10. CARDS
   ============================================================ */
.card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xs);
    padding: 20px 22px;
    margin-bottom: 16px;
    width: 100%;
    word-break: break-word;
    transition: box-shadow 0.15s;
}
.card:last-child { margin-bottom: 0; }
.card:hover { box-shadow: var(--sh-sm); }

.card .card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
}
.card .card-title i {
    color: var(--accent);
    font-size: 1.05rem;
}


/* ============================================================
   11. DASHBOARD
   ============================================================ */
.welcome-banner {
    background: linear-gradient(135deg, #0a66c2 0%, #0553a6 100%);
    color: #fff;
    padding: 24px 28px;
    border: none;
}
.welcome-banner h1 {
    margin: 0 0 6px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}
.welcome-banner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xs);
    padding: 20px 18px;
    text-align: center;
    transition: transform 0.15s, box-shadow 0.15s;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-md);
}
.stat-card .icon { font-size: 1.75rem; margin-bottom: 10px; }
.stat-card .value {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.stat-card .label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}
.stat-card.blue   .value { color: var(--accent); }
.stat-card.green  .value { color: var(--success); }
.stat-card.gold   .value { color: var(--warning); }
.stat-card.red    .value { color: var(--danger); }
.stat-card.purple .value { color: #7c3aed; }

.progress-bar {
    height: 6px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}
.progress-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, #2b85e0 100%);
    border-radius: 4px;
    transition: width 0.4s ease;
}
.progress-hint { font-size: 0.83rem; margin-top: 8px; }

.feed-empty {
    background: var(--surface-alt);
    border: 1px dashed var(--border);
    border-radius: var(--r-md);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}
.feed-empty i {
    display: inline-block;
    font-size: 2.2rem;
    color: var(--text-faint);
    margin-bottom: 10px;
}
.feed-empty h3 {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    font-size: 0.98rem;
}
.feed-empty p { font-size: 0.85rem; line-height: 1.5; }
.feed-empty.compact { padding: 24px 16px; }
.feed-empty.compact i { font-size: 1.7rem; }


/* ============================================================
   12. ITEM LISTS
   ============================================================ */
.item-list { display: flex; flex-direction: column; gap: 8px; }

.item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--surface-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.item-row:hover {
    background: var(--surface);
    border-color: var(--accent-soft-2);
}
.item-row .icon {
    width: 44px;
    height: 44px;
    border-radius: var(--r-md);
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent);
    flex-shrink: 0;
}
.item-row .info    { flex: 1; min-width: 0; }
.item-row .name    { font-weight: 600; font-size: 0.92rem; }
.item-row .desc    { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }
.item-row .preview {
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.item-row .time    { font-size: 0.72rem; color: var(--text-faint); }
.item-row .badge-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}


/* ============================================================
   13. SETTINGS — base two-column
   ============================================================ */
.settings-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
}

.settings-tabs {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xs);
    position: sticky;
    top: calc(var(--topnav-h) + 20px);
    align-self: start;
    max-height: calc(100vh - var(--topnav-h) - 40px);
    overflow-y: auto;
}
.settings-tabs a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--r-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: background 0.15s, color 0.15s;
}
.settings-tabs a:hover { background: var(--surface-alt); color: var(--text); }
.settings-tabs a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.settings-panel { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.settings-note { font-size: 0.84rem; margin: 8px 0 14px; line-height: 1.5; }

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--divider);
}
.settings-row:last-of-type { border-bottom: none; }
.settings-row-title { font-weight: 600; font-size: 0.94rem; }
.settings-row-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 3px; line-height: 1.4; }


/* ============================================================
   14. DROPDOWN
   ============================================================ */
.dropdown { position: relative; }

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    box-shadow: var(--sh-lg);
    z-index: 1000;
    animation: dropdown-in 0.12s ease-out;
}
@keyframes dropdown-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.dropdown-menu.show { display: block; }

.dropdown-menu a,
.dropdown-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    background: none;
    border: none;
    border-radius: var(--r-sm);
    text-align: left;
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
    transition: background 0.12s;
    font-family: inherit;
}
.dropdown-menu a:hover,
.dropdown-menu button:hover { background: var(--surface-alt); }

.dropdown-menu .divider { height: 1px; background: var(--border-light); margin: 6px 4px; }
.dropdown-menu form.logout-form { margin: 0; }


/* ============================================================
   15. MODALS
   ============================================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    padding: 40px 20px;
    background: rgba(15, 23, 42, 0.55);
    overflow: auto;
    backdrop-filter: blur(2px);
}
.modal.show { display: block; }

.modal-content {
    position: relative;
    max-width: 640px;
    width: 100%;
    margin: 5% auto;
    padding: 26px 28px;
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xl);
    animation: modal-in 0.18s ease-out;
}
@keyframes modal-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.modal-content .close-modal {
    position: absolute;
    right: 14px;
    top: 12px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}
.modal-content .close-modal:hover { background: var(--surface-alt); color: var(--text); }

.modal-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 18px; color: var(--text); }
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--divider);
}
.modal-actions .btn-primary,
.modal-actions .btn-secondary {
    display: inline-flex;
    width: auto;
    min-width: 100px;
    height: 42px;
    padding: 0 24px;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border-radius: var(--r-md);
}


/* ============================================================
   16. UTILITIES
   ============================================================ */
.muted        { color: var(--text-muted); }
.text-sm      { font-size: 0.85rem; }
.text-center  { text-align: center; }
.mt-8         { margin-top: 8px; }
.mt-16        { margin-top: 16px; }
.mb-0         { margin-bottom: 0; }
.hidden       { display: none !important; }


/* ============================================================
   17. SIGNUP POLISH
   ============================================================ */
.auth-card-wide { max-width: 460px; }
.auth-card-wide .auth-title,
.auth-card-wide .auth-subtitle { text-align: center; }
.auth-card-wide .field-label {
    display: block;
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--text-soft);
    margin-bottom: 6px;
}
.auth-card-wide .field { margin-bottom: 14px; }

.email-row { display: flex; gap: 8px; align-items: stretch; width: 100%; }
.email-row input[type="email"] { flex: 1 1 auto; min-width: 0; height: 46px; }

.btn-send-code {
    flex: 0 0 auto;
    padding: 0 18px;
    height: 46px;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    font-family: inherit;
}
.btn-send-code:hover { background: var(--accent-hover); }

.code-input {
    font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace !important;
    font-size: 1.15rem !important;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-align: center;
    height: 46px;
}
.code-input::placeholder {
    font-weight: 400;
    letter-spacing: normal;
    font-family: inherit;
    font-size: 0.9rem;
}
.code-input:disabled {
    background: var(--surface-alt);
    color: var(--text-faint);
    cursor: not-allowed;
    letter-spacing: normal;
    font-weight: 400;
    font-family: inherit !important;
}

.verify-row { display: flex; gap: 8px; align-items: stretch; }
.verify-row input {
    flex: 1 1 auto;
    min-width: 0;
    height: 46px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.verify-row input:focus { border-color: var(--accent); box-shadow: var(--focus-ring); }

.btn-inline-primary {
    flex: 0 0 auto;
    padding: 0 20px;
    height: 46px;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    font-family: inherit;
}
.btn-inline-primary:hover { background: var(--accent-hover); }

.verify-box {
    margin: 4px 0 14px;
    padding: 14px 16px;
    background: var(--surface-alt);
    border: 1px solid var(--border-light);
    border-radius: 10px;
}
.verify-box-title { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.verify-box-question { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; line-height: 1.4; }
.verify-box-question strong { color: var(--text); font-size: 1rem; }

.btn-link-block {
    display: block;
    width: 100%;
    padding: 8px 14px;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    font-family: inherit;
    margin-top: 4px;
}
.btn-link-block:hover { text-decoration: underline; }

.verify-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0 14px;
    min-height: 46px;
    background: var(--success-soft);
    color: var(--success);
    border: 1px solid var(--success-border);
    border-radius: 8px;
    font-size: 0.83rem;
    font-weight: 600;
    white-space: nowrap;
}
.verify-badge-wait { background: var(--surface-alt); color: var(--text-muted); border-color: var(--border); }

.verify-success {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--success-soft);
    border: 1px solid var(--success-border);
    border-radius: 10px;
    margin: 4px 0 16px;
}
.verify-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    flex-shrink: 0;
}
.verify-success strong { display: block; color: var(--success); font-size: 0.95rem; margin-bottom: 2px; }
.verify-success p { margin: 0; font-size: 0.82rem; color: var(--success); opacity: 0.85; }

.form-terms { font-size: 0.78rem; color: var(--text-muted); margin: 14px 0 12px; line-height: 1.55; }
.form-terms a { color: var(--accent); font-weight: 500; }


/* ============================================================
   18. LEGAL PAGES
   ============================================================ */
.legal-page { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
.legal-topnav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--sh-xs);
}
.legal-logo { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 700; color: var(--accent); }
.legal-logo img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.legal-topnav-links { display: flex; gap: 4px; }
.legal-topnav-links a {
    padding: 8px 14px;
    border-radius: var(--r-md);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: background 0.15s, color 0.15s;
}
.legal-topnav-links a:hover { background: var(--surface-alt); color: var(--text); }
.legal-topnav-links a.active { background: var(--accent-soft); color: var(--accent); }
.legal-main { flex: 1; width: 100%; max-width: 800px; margin: 0 auto; padding: 40px 20px 60px; }
.legal-header { margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--border-light); }
.legal-header h1 { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--text); }
.legal-updated { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.legal-content section { margin-bottom: 32px; }
.legal-content h2 { font-size: 1.15rem; font-weight: 700; margin: 0 0 12px; color: var(--text); letter-spacing: -0.01em; }
.legal-content p { font-size: 0.94rem; line-height: 1.7; color: var(--text-soft); margin: 0 0 12px; }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content ul { margin: 0 0 12px; padding-left: 22px; }
.legal-content li { font-size: 0.94rem; line-height: 1.7; color: var(--text-soft); padding: 3px 0; }
.legal-content strong { color: var(--text); font-weight: 600; }
.legal-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--accent-hover); }
.legal-content code {
    background: var(--surface-alt);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
    color: var(--text);
    border: 1px solid var(--border-light);
}
.cookie-table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: 0.86rem; background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--r-md); overflow: hidden; }
.cookie-table thead { background: var(--surface-alt); }
.cookie-table th { text-align: left; padding: 10px 14px; font-weight: 700; font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--border-light); }
.cookie-table td { padding: 12px 14px; border-bottom: 1px solid var(--divider); color: var(--text-soft); vertical-align: top; line-height: 1.5; }
.cookie-table tr:last-child td { border-bottom: none; }
.legal-back { margin-top: 40px; text-align: center; }
.legal-back .btn-secondary { display: inline-block; width: auto; text-align: center; }
.legal-footer { padding: 24px 20px; background: var(--surface); border-top: 1px solid var(--border-light); text-align: center; }
.legal-footer p { font-size: 0.8rem; color: var(--text-muted); margin: 0 0 8px; }
.legal-footer nav { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.legal-footer nav a { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.legal-footer nav a:hover { color: var(--accent); text-decoration: underline; }


/* ============================================================
   19. SITE FOOTER
   ============================================================ */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border-light);
    padding: 24px 20px;
    margin-top: 24px;
}
.site-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.site-footer-brand { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 700; color: var(--accent); }
.site-footer-brand img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.site-footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer-nav a { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; transition: color 0.15s; }
.site-footer-nav a:hover { color: var(--accent); text-decoration: underline; }
.site-footer-copy { font-size: 0.78rem; color: var(--text-faint); margin: 0; }


/* ============================================================
   20. AUTH LEGAL LINKS
   ============================================================ */
.auth-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border-light);
    width: 100%;
    text-align: center;
}
.auth-legal a { font-size: 0.76rem; font-weight: 500; color: var(--text-faint); padding: 4px 6px; border-radius: 4px; transition: color 0.15s, background 0.15s; text-decoration: none; }
.auth-legal a:hover { color: var(--accent); background: var(--surface-alt); }
.auth-legal .dot { color: var(--border); font-size: 0.5rem; line-height: 1; user-select: none; }


/* ============================================================
   21. CAPTCHA BOX
   ============================================================ */
.captcha-box { padding: 14px 16px; background: var(--surface-alt); border: 1px solid var(--border-light); border-radius: var(--r-md); }
.captcha-question { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 10px; line-height: 1.4; }
.captcha-question strong { color: var(--text); font-size: 1.15rem; font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; padding: 0 4px; }
.captcha-row { display: flex; gap: 8px; align-items: stretch; }
.captcha-row input { flex: 1 1 auto; min-width: 0; height: 46px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--r-md); font-size: 1rem; text-align: center; font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.captcha-row input:focus { border-color: var(--accent); box-shadow: var(--focus-ring); }
.captcha-row input:disabled { background: var(--surface); color: var(--text-faint); cursor: not-allowed; }
.btn-captcha-send { flex: 0 0 auto; padding: 0 18px; height: 46px; border: none; border-radius: var(--r-md); background: var(--accent); color: #fff; font-size: 0.85rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 0.15s; font-family: inherit; }
.btn-captcha-send:hover { background: var(--accent-hover); }


/* ============================================================
   22. RESPONSIVE — general
   ============================================================ */
@media (max-width: 1024px) {
    .main { padding: 18px 14px 50px; }
    .dashboard-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .stat-card { padding: 16px 14px; }
}

@media (max-width: 520px) {
    .form-row-2,
    .form-row-3 { grid-template-columns: 1fr; }

    .email-row,
    .code-row,
    .verify-row,
    .captcha-row { flex-wrap: wrap; }

    .email-row input[type="email"],
    .code-row input,
    .verify-row input,
    .captcha-row input,
    .code-input { flex: 1 1 100%; }

    .email-row .btn-inline,
    .email-row .btn-send-code,
    .email-row .verify-badge,
    .code-row .btn-inline,
    .code-row .btn-inline-primary,
    .code-row .verify-badge,
    .verify-row .btn-inline,
    .verify-row .btn-inline-primary,
    .verify-row .verify-badge,
    .captcha-row .btn-captcha-send,
    .captcha-row .verify-badge {
        flex: 1 1 100%;
        width: 100%;
        height: 44px;
        justify-content: center;
    }

    .dashboard-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 24px 18px; }
    .auth-heading { font-size: 1.25rem; }
    .auth-subheading { font-size: 0.85rem; }
}

@media (max-width: 640px) {
    .legal-topnav { flex-direction: column; gap: 10px; padding: 12px 16px; }
    .legal-topnav-links { gap: 2px; }
    .legal-topnav-links a { padding: 6px 10px; font-size: 0.82rem; }
    .legal-main { padding: 28px 16px 40px; }
    .legal-header h1 { font-size: 1.6rem; }
    .legal-content h2 { font-size: 1.05rem; }
    .legal-content p,
    .legal-content li { font-size: 0.9rem; }
    .cookie-table { font-size: 0.78rem; }
    .cookie-table th,
    .cookie-table td { padding: 8px 10px; }
    .site-footer-inner { flex-direction: column; text-align: center; gap: 10px; }
    .site-footer-nav { justify-content: center; gap: 14px; }
}
/* ============================================================
   23. PROFILE PAGE
   ============================================================ */
.profile-page { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.profile-page .profile-header { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--r-lg); box-shadow: var(--sh-xs); overflow: hidden; }
.profile-page .cover { position: relative; width: 100%; height: 240px; background: var(--border); overflow: hidden; }
.profile-page .cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-page .cover .cover-edit {
    position: absolute;
    right: 18px;
    bottom: 18px;
    background: rgba(255,255,255,0.92);
    border-radius: var(--r-md);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
    box-shadow: var(--sh-xs);
    transition: background 0.15s;
}
.profile-page .cover .cover-edit:hover { background: #fff; }

.profile-page .profile-info { display: flex; align-items: flex-end; gap: 24px; padding: 0 24px 20px; margin-top: -60px; position: relative; flex-wrap: wrap; }
.profile-page .profile-info .avatar {
    width: 140px;
    height: 140px;
    min-width: 140px;
    border-radius: 50%;
    border: 4px solid var(--surface);
    background: linear-gradient(135deg, var(--accent) 0%, #0553a6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--sh-sm);
    margin-bottom: -20px;
}
.profile-page .profile-info .avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-page .profile-info-initial { color: #fff; font-weight: 700; font-size: 3rem; line-height: 1; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

.profile-page .name-wrap { flex: 1 1 auto; min-width: 0; padding-top: 70px; }
.profile-page .name-wrap h1 { font-size: 1.85rem; font-weight: 700; letter-spacing: -0.3px; line-height: 1.2; margin: 0 0 4px 0; color: var(--text); }
.profile-page .name-wrap .headline { font-size: 1rem; color: var(--text-muted); margin-bottom: 4px; line-height: 1.4; }
.profile-page .name-wrap .pronouns { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 4px; }
.profile-page .name-wrap .location { font-size: 0.9rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.profile-page .name-wrap .location i { font-style: normal; }
.profile-page .name-wrap .stats { font-size: 0.9rem; color: var(--text-muted); }
.profile-page .name-wrap .stats span { font-weight: 700; color: var(--text); }

.profile-page .badge-scroll-wrapper { margin-top: 10px; max-width: 100%; }
.profile-page .badge-container { display: flex; flex-wrap: wrap; gap: 6px; }
.profile-page .badge { padding: 4px 14px; border-radius: var(--r-pill); font-size: 0.75rem; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.profile-page .badge-tier-2 { background: #e6e6e6; color: #4a4a4a; border-color: #cccccc; }

.profile-page .actions { display: flex; gap: 8px; padding-top: 70px; margin-left: auto; flex-shrink: 0; flex-wrap: wrap; align-self: flex-end; }
.profile-page .actions .btn-primary,
.profile-page .actions .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
    font-family: inherit;
    width: auto;
}
.profile-page .actions .btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.profile-page .actions .btn-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.profile-page .actions .btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.profile-page .actions .btn-outline:hover:not(:disabled) { background: var(--surface-alt); }
.profile-page .actions button:disabled { opacity: 0.55; cursor: not-allowed; }

.profile-page .tabs { display: flex; gap: 4px; padding: 0 20px; border-top: 1px solid var(--border-light); overflow-x: auto; scrollbar-width: none; background: var(--surface); }
.profile-page .tabs::-webkit-scrollbar { display: none; }
.profile-page .tabs button {
    background: none;
    border: none;
    padding: 15px 14px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: color 0.1s;
}
.profile-page .tabs button:hover { color: var(--accent); }
.profile-page .tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }

.profile-page .profile-body { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; align-items: start; }
.profile-page .left-col,
.profile-page .right-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.profile-page .card { margin-bottom: 0; }

.profile-page .about-item { display: flex; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--divider); align-items: flex-start; font-size: 0.92rem; }
.profile-page .about-item:last-child { border-bottom: none; }
.profile-page .about-item .label { width: 110px; flex-shrink: 0; color: var(--text-muted); font-weight: 500; }
.profile-page .about-item .value { flex: 1; min-width: 0; word-break: break-word; line-height: 1.5; }
.profile-page .profile-about { font-size: 0.95rem; line-height: 1.65; color: var(--text); white-space: pre-wrap; margin: 0; }
.profile-page .profile-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.profile-page .profile-link:hover { color: var(--accent-hover); }

.profile-page .chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-page .chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: var(--r-pill); font-size: 0.85rem; font-weight: 500; white-space: nowrap; }
.profile-page .chip-blue { background: var(--accent-soft); color: var(--accent-hover); border: 1px solid var(--accent-soft-2); }
.profile-page .chip-grey { background: var(--surface-alt); color: var(--text-muted); border: 1px solid var(--border-light); }

.profile-page .exp-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--divider); }
.profile-page .exp-item:last-child { border-bottom: none; }
.profile-page .exp-item .icon { width: 40px; height: 40px; background: var(--accent-soft); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; font-size: 1.1rem; }
.profile-page .exp-item .icon i { font-style: normal; }
.profile-page .exp-item .content { flex: 1; min-width: 0; }
.profile-page .exp-item .content .title { font-weight: 600; font-size: 1rem; color: var(--text); margin-bottom: 2px; }
.profile-page .exp-item .content .sub { font-size: 0.9rem; color: var(--text-muted); }
.profile-page .exp-item .content .date { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.profile-page .exp-item .content .desc { font-size: 0.9rem; margin-top: 6px; color: var(--text); line-height: 1.55; }

.profile-page .tab-content { display: none; }
.profile-page .tab-content.active { display: flex; flex-direction: column; gap: 16px; animation: pp-fade 0.18s ease; }
@keyframes pp-fade {
    from { opacity: 0.6; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.profile-page .connections-tabs { display: flex; gap: 6px; flex-wrap: wrap; background: var(--surface); padding: 10px 14px; border-radius: var(--r-lg); box-shadow: var(--sh-xs); border: 1px solid var(--border-light); margin-bottom: 16px; }
.profile-page .connections-tabs button {
    background: none;
    border: none;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-radius: var(--r-pill);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
}
.profile-page .connections-tabs button:hover { background: var(--surface-alt); color: var(--text); }
.profile-page .connections-tabs button.active { background: var(--accent-soft); color: var(--accent); }
.profile-page .connections-tabs button i { font-style: normal; }

.profile-page .mb-0 { margin-bottom: 0; }
.profile-page .mb-16 { margin-bottom: 16px; }
.profile-page .mt-8 { margin-top: 8px; }
.profile-page .text-sm { font-size: 0.85rem; }
.profile-page .form-help { display: block; font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }

.profile-page .skill-form-row { display: flex; gap: 10px; margin-bottom: 14px; align-items: stretch; }
.profile-page .skill-form-row input { flex: 1 1 auto; min-width: 0; height: 42px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--r-md); font-size: 0.92rem; font-family: inherit; }
.profile-page .skill-form-row .btn-primary,
.profile-page .skill-form-row .btn-secondary { flex: 0 0 auto; display: inline-flex; width: auto; height: 42px; padding: 0 20px; align-items: center; justify-content: center; font-size: 0.88rem; white-space: nowrap; border-radius: var(--r-md); }

@media (max-width: 1024px) {
    .profile-page .profile-body { grid-template-columns: 1fr 1.5fr; }
    .profile-page .cover { height: 220px; }
    .profile-page .profile-info .avatar { width: 120px; height: 120px; min-width: 120px; }
    .profile-page .name-wrap { padding-top: 55px; }
    .profile-page .actions { padding-top: 55px; }
}

@media (max-width: 768px) {
    .profile-page .cover { height: 150px; }
    .profile-page .cover .cover-edit { right: 12px; bottom: 12px; padding: 6px 12px; font-size: 0.75rem; }
    .profile-page .profile-info { flex-direction: column; align-items: center; text-align: center; padding: 0 16px 14px; margin-top: -45px; gap: 10px; }
    .profile-page .profile-info .avatar { width: 100px; height: 100px; min-width: 100px; margin-bottom: 0; }
    .profile-page .profile-info-initial { font-size: 2.2rem; }
    .profile-page .name-wrap { padding-top: 0; width: 100%; }
    .profile-page .name-wrap h1 { font-size: 1.45rem; }
    .profile-page .name-wrap .stats { text-align: center; }
    .profile-page .badge-container { justify-content: center; }
    .profile-page .actions { padding-top: 0; margin-left: 0; justify-content: center; width: 100%; }
    .profile-page .tabs { padding: 0 8px; gap: 2px; }
    .profile-page .tabs button { padding: 12px 8px; font-size: 0.78rem; }
    .profile-page .profile-body { grid-template-columns: 1fr; }
    .profile-page .about-item .label { width: 85px; font-size: 0.82rem; }
    .profile-page .about-item { font-size: 0.85rem; }
    .profile-page .exp-item .icon { width: 32px; height: 32px; font-size: 0.95rem; }
    .profile-page .connections-tabs { padding: 8px 10px; }
    .profile-page .connections-tabs button { padding: 6px 12px; font-size: 0.78rem; }
}

@media (max-width: 520px) {
    .profile-page .skill-form-row { flex-wrap: wrap; }
    .profile-page .skill-form-row input { flex: 1 1 100%; }
    .profile-page .skill-form-row .btn-primary,
    .profile-page .skill-form-row .btn-secondary { flex: 1 1 100%; }
}

@media (max-width: 480px) {
    .profile-page .profile-info .avatar { width: 84px; height: 84px; min-width: 84px; }
    .profile-page .profile-info-initial { font-size: 1.8rem; }
    .profile-page .name-wrap h1 { font-size: 1.2rem; }
    .profile-page .tabs button { font-size: 0.7rem; padding: 10px 6px; }
    .profile-page .about-item .label { width: 70px; font-size: 0.75rem; }
}


/* ============================================================
   24. SETTINGS — profile tab
   ============================================================ */
.settings-section {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xs);
    padding: 22px 26px;
    margin-bottom: 16px;
}
.settings-section:last-child { margin-bottom: 0; }

.settings-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--divider);
}
.settings-section-heading i { color: var(--accent); font-style: normal; font-size: 1.05rem; }

.settings-section-desc { font-size: 0.83rem; color: var(--text-muted); margin: 8px 0 16px; line-height: 1.4; }

.dob-row { display: grid; grid-template-columns: 90px 1fr 110px; gap: 8px; max-width: 460px; }
.dob-row select { padding: 10px 12px; font-size: 0.92rem; height: 44px; width: 100%; }

.privacy-list { display: flex; flex-direction: column; }
.privacy-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--divider); cursor: pointer; }
.privacy-item:last-child { border-bottom: none; }
.privacy-text { min-width: 0; }
.privacy-title { font-weight: 600; font-size: 0.93rem; color: var(--text); }
.privacy-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }

.settings-formbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--r-lg); box-shadow: var(--sh-xs); margin-bottom: 20px; }
.settings-formbar-title { font-weight: 700; font-size: 1.02rem; color: var(--text); }
.settings-save-btn { display: inline-flex; width: auto; padding: 9px 22px; font-size: 0.9rem; }
.settings-save-bottom { display: flex; justify-content: flex-end; padding: 18px 0 4px; }

.photo-upload-block { display: flex; gap: 20px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--divider); }
.photo-upload-block:last-child { border-bottom: none; padding-bottom: 0; }
.photo-preview { flex: 0 0 auto; overflow: hidden; background: linear-gradient(135deg, var(--accent) 0%, #0553a6 100%); display: flex; align-items: center; justify-content: center; }
.photo-preview-avatar { width: 96px; height: 96px; border-radius: 50%; }
.photo-preview-cover { width: 200px; height: 100px; border-radius: var(--r-md); background: var(--surface-alt); }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-upload-form { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.photo-upload-title { font-weight: 600; font-size: 0.94rem; color: var(--text); }
.photo-upload-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.photo-inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.photo-inline-form input[type="file"] { flex: 1 1 200px; padding: 8px 12px; font-size: 0.85rem; border: 1px solid var(--border); border-radius: var(--r-md); font-family: inherit; background: var(--surface); cursor: pointer; }
.photo-inline-form input[type="file"]:hover { border-color: var(--accent); }

.field-badge {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface-alt);
    padding: 2px 8px;
    border-radius: var(--r-pill);
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.settings-section .alert-error { margin-top: 10px; margin-bottom: 0; font-weight: 500; }

@media (max-width: 900px) {
    .settings-layout { grid-template-columns: 1fr; }
    .settings-tabs { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 6px; gap: 4px; max-height: none; }
    .settings-tabs::-webkit-scrollbar { display: none; }
    .settings-tabs a { white-space: nowrap; padding: 8px 14px; font-size: 0.83rem; }
}

@media (max-width: 640px) {
    .settings-section { padding: 18px 16px; }
    .settings-section-heading { font-size: 0.98rem; }
    .form-row-3 { grid-template-columns: 1fr; }
    .dob-row { grid-template-columns: 70px 1fr 90px; max-width: none; }
    .photo-upload-block { flex-direction: column; align-items: stretch; }
    .photo-preview { align-self: center; }
    .photo-inline-form { flex-direction: column; align-items: stretch; }
    .photo-inline-form input[type="file"] { width: 100%; }
    .settings-formbar { flex-direction: column; align-items: stretch; }
    .settings-save-btn { width: 100%; justify-content: center; }
}


/* ============================================================
   25. SIDEBAR COLLAPSE
   ============================================================ */
.top-nav .nav-left .sidebar-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: none;
    border-radius: var(--r-md);
    cursor: pointer;
    color: var(--text-muted);
    margin-right: 6px;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.top-nav .nav-left .sidebar-toggle:hover { background: var(--surface-alt); color: var(--text); }
.top-nav .nav-left .sidebar-toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

body.sidebar-collapsed .sidebar { width: 72px; padding-left: 8px; padding-right: 8px; }
body.sidebar-collapsed .sidebar nav a span { display: none; }
body.sidebar-collapsed .sidebar nav a { justify-content: center; padding: 10px 0; }
body.sidebar-collapsed .sidebar nav a i { margin: 0; width: auto; font-size: 1.25rem; }
body.sidebar-collapsed .sidebar .mini-profile { justify-content: center; }
body.sidebar-collapsed .sidebar .mini-profile .info { display: none; }


/* ============================================================
   26. CROPPER MODAL
   ============================================================ */
.crop-modal[hidden] { display: none; }

.crop-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.crop-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.65); backdrop-filter: blur(2px); }
.crop-modal-panel {
    position: relative;
    width: 100%;
    max-width: 720px;
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xl);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 40px);
    overflow: hidden;
}
.crop-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--divider); flex-shrink: 0; }
.crop-modal-header h3 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.crop-modal-close { background: none; border: none; font-size: 1.6rem; line-height: 1; color: var(--text-muted); cursor: pointer; padding: 4px 8px; border-radius: 50%; font-family: inherit; }
.crop-modal-close:hover { background: var(--surface-alt); }

.crop-modal-body { position: relative; height: 60vh; max-height: 60vh; background: #1a1a1a; overflow: hidden; }
.crop-stage { position: absolute; inset: 0; }
.crop-stage > img { display: block; max-width: none; max-height: none; }
.crop-stage .cropper-container { width: 100% !important; height: 100% !important; }

.crop-modal-controls { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); background: var(--surface-alt); flex-wrap: wrap; flex-shrink: 0; }
.crop-ctrl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--r-md);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    transition: background 0.15s, border-color 0.15s;
}
.crop-ctrl:hover { background: var(--surface-alt); border-color: var(--accent); }
.crop-ctrl:active { transform: translateY(1px); }
.crop-zoom { flex: 1; min-width: 120px; margin-left: 8px; accent-color: var(--accent); }

.crop-modal-footer { display: flex; align-items: center; justify-content: flex-end; padding: 14px 20px; flex-shrink: 0; }
.crop-modal-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.crop-modal-error { padding: 10px 20px; background: var(--danger-soft); color: var(--danger); border-top: 1px solid var(--danger-border); font-size: 0.85rem; font-weight: 500; }
.crop-modal-error[hidden] { display: none; }

.crop-modal .cropper-modal { background: rgba(0, 0, 0, 0.5); }
.crop-modal[data-mode="avatar"] .cropper-view-box,
.crop-modal[data-mode="cover"]  .cropper-view-box { outline: 2px solid #0a66c2; outline-offset: 0; }
.crop-modal[data-mode="avatar"] .cropper-view-box,
.crop-modal[data-mode="avatar"] .cropper-crop-box { border-radius: 50%; }
.crop-modal[data-mode="avatar"] .cropper-dashed,
.crop-modal[data-mode="avatar"] .cropper-center,
.crop-modal[data-mode="avatar"] .cropper-line,
.crop-modal[data-mode="avatar"] .cropper-point { display: none !important; }
.crop-modal[data-mode="cover"] .cropper-crop-box { border-radius: 0; }
.crop-modal[data-mode="avatar"] .cropper-move,
.crop-modal[data-mode="cover"]  .cropper-move { cursor: move; }

@media (max-width: 640px) {
    .crop-modal { padding: 8px; }
    .crop-modal-panel { max-height: calc(100vh - 16px); }
    .crop-modal-body { height: 50vh; max-height: 50vh; }
    .crop-modal-footer { padding: 12px 16px; }
    .crop-modal-actions { flex: 1; }
    .crop-modal-actions .btn-primary,
    .crop-modal-actions .btn-secondary { flex: 1; }
}


/* ============================================================
   27. SETTINGS — Card grid
   ============================================================ */
.settings-page { display: flex; flex-direction: column; gap: 20px; max-width: 820px; margin: 0 auto; width: 100%; }
.settings-header { margin-bottom: 4px; }
.settings-title { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); margin: 0 0 4px; }
.settings-subtitle { font-size: 0.95rem; color: var(--text-muted); margin: 0; }

.settings-search { position: relative; }
.settings-search input {
    width: 100%;
    padding: 14px 16px 14px 46px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    font-size: 0.95rem;
    color: var(--text);
    box-shadow: var(--sh-xs);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.settings-search input:focus { border-color: var(--accent); box-shadow: var(--focus-ring); }
.settings-search::before { content: '🔍'; position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 1rem; pointer-events: none; opacity: 0.6; }

.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }

.settings-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 22px 20px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xs);
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.settings-card:hover { box-shadow: var(--sh-md); border-color: var(--accent-soft-2); transform: translateY(-2px); }
.settings-card-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); border-radius: var(--r-md); font-size: 1.35rem; flex-shrink: 0; }
.settings-card-body { display: flex; flex-direction: column; gap: 4px; }
.settings-card-title { font-size: 1rem; font-weight: 700; color: var(--text); margin: 0; }
.settings-card-desc { font-size: 0.83rem; color: var(--text-muted); line-height: 1.4; margin: 0; }

.settings-empty { padding: 40px 20px; text-align: center; }
.settings-empty[hidden] { display: none; }

.settings-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    padding: 6px 10px 6px 0;
    width: fit-content;
    border-radius: var(--r-md);
    transition: background 0.15s;
}
.settings-back:hover { background: var(--accent-soft); padding-left: 10px; text-decoration: none; }

.settings-panel-header { margin-bottom: 4px; }
.settings-panel-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.settings-panel-subtitle { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

@media (max-width: 640px) {
    .settings-grid { grid-template-columns: 1fr; }
    .settings-card { flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; }
    .settings-card-icon { margin-bottom: 0; }
    .settings-card-desc { font-size: 0.78rem; }
    .settings-title { font-size: 1.4rem; }
    .settings-panel-title { font-size: 1.25rem; }
}


/* ============================================================
   28. NETWORK PAGE + CONNECTION BUTTON
   ============================================================ */
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--r-md);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-outline:hover:not(:disabled) { background: var(--surface-alt); border-color: var(--accent); color: var(--accent); }
.btn-outline.is-connected { color: var(--success); border-color: var(--success-border); background: var(--success-soft); }
.btn-outline.is-connected:hover:not(:disabled) { border-color: var(--success); color: var(--success); }
.btn-outline:disabled { opacity: 0.55; cursor: not-allowed; }

.network-page { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.network-header { margin-bottom: 4px; }

.network-tabs { display: flex; gap: 4px; padding: 6px; background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--r-lg); box-shadow: var(--sh-xs); overflow-x: auto; scrollbar-width: none; }
.network-tabs::-webkit-scrollbar { display: none; }

.network-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: var(--r-md);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.network-tab:hover { background: var(--surface-alt); color: var(--text); }
.network-tab.active { background: var(--accent-soft); color: var(--accent); }

.network-tab .tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; background: var(--border-light); color: var(--text-muted); border-radius: var(--r-pill); font-size: 0.72rem; font-weight: 700; line-height: 1; }
.network-tab.active .tab-count { background: var(--accent); color: #fff; }
.network-tab .tab-count-accent { background: var(--danger); color: #fff; }

.conn-list { display: flex; flex-direction: column; gap: 8px; }

.conn-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xs);
    transition: box-shadow 0.15s, border-color 0.15s;
}
.conn-row:hover { box-shadow: var(--sh-sm); border-color: var(--accent-soft-2); }

.conn-avatar { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent) 0%, #0553a6 100%); }
.conn-avatar img { width: 100%; height: 100%; object-fit: cover; }

.conn-info { flex: 1; min-width: 0; }
.conn-name { display: block; font-size: 0.98rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.conn-name:hover { color: var(--accent); text-decoration: underline; }
.conn-headline { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conn-meta { font-size: 0.78rem; color: var(--text-faint); margin-top: 3px; display: inline-flex; align-items: center; gap: 4px; }

.conn-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }

.conn-btn-wrap { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--danger);
    color: #fff;
    border-radius: var(--r-pill);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
}
.nav-badge[hidden] { display: none !important; }
.sidebar nav a .nav-badge { margin-left: auto; }
.top-nav .nav-left .nav-btn .nav-badge { margin-left: 2px; }

.nav-badge-msg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--r-pill);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    margin-left: auto;
}
.top-nav .nav-left .nav-btn .nav-badge-msg { margin-left: 2px; }

@media (max-width: 640px) {
    .conn-row { flex-wrap: wrap; }
    .conn-actions { width: 100%; justify-content: flex-start; }
    .network-tab { padding: 8px 12px; font-size: 0.83rem; }
}


/* ============================================================
   29. SEARCH
   ============================================================ */
.top-search { position: relative; }
.top-search-trigger { width: 40px; height: 40px; border-radius: 50%; border: none; background: none; color: var(--text-muted); font-size: 1.15rem; cursor: pointer; transition: background 0.15s, color 0.15s; font-family: inherit; }
.top-search-trigger:hover { background: var(--surface-alt); color: var(--text); }
.top-search-trigger.active { background: var(--accent-soft); color: var(--accent); }

.top-search-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 420px;
    max-width: calc(100vw - 30px);
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
    z-index: 1200;
    overflow: hidden;
    animation: dropdown-in 0.14s ease-out;
}
.top-search-panel[hidden] { display: none; }

.top-search-input { position: relative; padding: 12px; border-bottom: 1px solid var(--divider); }
.top-search-input input { width: 100%; height: 42px; padding: 0 14px 0 38px; background: var(--surface-alt); border: 1px solid var(--border-light); border-radius: var(--r-md); font-size: 0.92rem; color: var(--text); outline: none; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.top-search-input input:focus { background: var(--surface); border-color: var(--accent); box-shadow: var(--focus-ring); }
.top-search-icon { position: absolute; left: 26px; top: 50%; transform: translateY(-50%); font-size: 0.9rem; opacity: 0.55; pointer-events: none; }

.top-search-results { max-height: 440px; overflow-y: auto; padding: 4px 6px 8px; }
.top-search-empty,
.top-search-loading { padding: 22px 14px; text-align: center; color: var(--text-muted); font-size: 0.85rem; }
.top-search-label { padding: 10px 12px 4px; font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.top-search-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--r-md); text-decoration: none; color: var(--text); transition: background 0.12s; }
.top-search-row:hover { background: var(--surface-alt); }
.top-search-row-post { cursor: default; }

.top-search-av { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--accent) 0%, #0553a6 100%); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.top-search-av img { width: 100%; height: 100%; object-fit: cover; }
.top-search-av .avatar-initial { width: 100%; height: 100%; font-size: 0.85rem; }

.top-search-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.top-search-name { font-weight: 600; font-size: 0.88rem; color: var(--text); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-search-sub { font-size: 0.75rem; color: var(--text-muted); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/* ============================================================
   30. NETWORK FILTER
   ============================================================ */
.network-filter { position: relative; margin: 0 0 8px; }
.network-filter input { width: 100%; height: 44px; padding: 0 16px 0 42px; background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--r-lg); font-size: 0.92rem; color: var(--text); outline: none; box-shadow: var(--sh-xs); transition: border-color 0.15s, box-shadow 0.15s; }
.network-filter input:focus { border-color: var(--accent); box-shadow: var(--focus-ring); }
.network-filter-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 0.95rem; opacity: 0.55; pointer-events: none; }
.network-filter-empty { margin-top: 8px; }
.network-filter-empty[hidden] { display: none; }


/* ============================================================
   31. PRESENCE DOT
   ============================================================ */
.presence-dot {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--surface);
    display: block;
}
.presence-dot.presence-online  { background: #22c55e; }
.presence-dot.presence-away    { background: #eab308; }
.presence-dot.presence-offline { background: #94a3b8; }


/* ============================================================
   32. CHAT INBOX
   ============================================================ */
.inbox-page { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.inbox-header { margin-bottom: 4px; }
.inbox-card { padding: 8px !important; }
.inbox-list { display: flex; flex-direction: column; }

.inbox-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--r-md);
    text-decoration: none;
    color: var(--text);
    transition: background 0.12s;
}
.inbox-row:hover { background: var(--surface-alt); }
.inbox-row.unread { background: var(--accent-soft); }
.inbox-row.unread:hover { background: var(--accent-soft-2); }

.inbox-avatar { position: relative; width: 52px; height: 52px; border-radius: 50%; overflow: visible; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent) 0%, #0553a6 100%); }
.inbox-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.inbox-avatar .avatar-initial-lg { width: 100%; height: 100%; border-radius: 50%; }

.inbox-body { flex: 1; min-width: 0; }
.inbox-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.inbox-name { font-weight: 600; font-size: 0.94rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-time { font-size: 0.75rem; color: var(--text-faint); flex-shrink: 0; }
.inbox-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.inbox-preview { font-size: 0.85rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--r-pill);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}


/* ============================================================
   33. CHAT THREAD
   ============================================================ */
.chat-page { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 820px; margin: 0 auto; }

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xs);
    position: sticky;
    top: calc(var(--topnav-h) + 8px);
    z-index: 20;
}
.chat-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.2rem;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.15s;
}
.chat-back:hover { background: var(--surface-alt); color: var(--text); }

.chat-header-user { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-decoration: none; color: inherit; }

.chat-header-avatar { position: relative; width: 44px; height: 44px; border-radius: 50%; overflow: visible; flex-shrink: 0; background: linear-gradient(135deg, var(--accent) 0%, #0553a6 100%); display: flex; align-items: center; justify-content: center; }
.chat-header-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.chat-header-avatar .avatar-initial-lg { width: 100%; height: 100%; }

.chat-header-info { min-width: 0; }
.chat-header-name { font-weight: 700; font-size: 0.98rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-header-status { font-size: 0.78rem; color: var(--text-muted); margin-top: 1px; }

.chat-header-btn { width: 40px; height: 40px; border-radius: 50%; border: none; background: none; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; flex-shrink: 0; transition: background 0.15s, color 0.15s; }
.chat-header-btn:hover:not(:disabled) { background: var(--surface-alt); color: var(--accent); }
.chat-header-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.thread {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xs);
    overflow: hidden;
    min-height: 60vh;
    max-height: calc(100vh - var(--topnav-h) - 200px);
}

.thread-messages { flex: 1; overflow-y: auto; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.thread-messages::-webkit-scrollbar { width: 8px; }
.thread-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.thread-empty { text-align: center; color: var(--text-faint); font-size: 0.9rem; margin: auto; font-style: italic; }

.thread-msg { display: flex; flex-direction: column; max-width: 70%; }
.thread-msg.mine   { align-self: flex-end; align-items: flex-end; }
.thread-msg.theirs { align-self: flex-start; align-items: flex-start; }

.thread-bubble {
    padding: 9px 14px;
    border-radius: 16px;
    font-size: 0.92rem;
    line-height: 1.45;
    word-wrap: break-word;
    white-space: pre-wrap;
}
.thread-msg.mine .thread-bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.thread-msg.theirs .thread-bubble { background: var(--surface-alt); color: var(--text); border-bottom-left-radius: 4px; }
.thread-time { font-size: 0.7rem; color: var(--text-faint); margin-top: 3px; padding: 0 6px; }

.thread-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--divider);
    background: var(--surface);
    flex-shrink: 0;
}
.thread-form input[type="text"] {
    flex: 1;
    padding: 11px 16px;
    border: 1px solid var(--border);
    border-radius: 22px;
    font-size: 0.92rem;
    outline: none;
    background: var(--surface-alt);
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    min-width: 0;
}
.thread-form input[type="text"]:focus { background: var(--surface); border-color: var(--accent); box-shadow: var(--focus-ring); }
.thread-send {
    flex-shrink: 0;
    padding: 11px 22px;
    border: none;
    border-radius: 22px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}
.thread-send:hover { background: var(--accent-hover); }
.thread-send:disabled { opacity: 0.5; cursor: not-allowed; }


/* ============================================================
   34. FLOATING CHAT WIDGET
   ============================================================ */
.cw { position: fixed; right: 20px; bottom: 20px; z-index: 1400; font-family: inherit; }

.cw-launcher {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(10, 102, 194, 0.35);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.12s;
}
.cw-launcher:hover { background: var(--accent-hover); transform: scale(1.05); }
.cw-launcher.active { display: none; }

.cw-launcher-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--danger);
    color: #fff;
    border-radius: var(--r-pill);
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--surface);
    line-height: 1;
}
.cw-launcher-badge[hidden] { display: none !important; }

.cw-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 360px;
    height: 520px;
    max-height: calc(100vh - 40px);
    max-width: calc(100vw - 40px);
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: cw-in 0.16s ease-out;
}
.cw-panel[hidden] { display: none; }
@keyframes cw-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px 10px 16px;
    border-bottom: 1px solid var(--divider);
    background: var(--surface);
    flex-shrink: 0;
}
.cw-header-title { font-weight: 700; font-size: 0.98rem; color: var(--text); }
.cw-header-actions { display: flex; gap: 2px; }
.cw-header-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.cw-header-btn:hover:not(:disabled) { background: var(--surface-alt); color: var(--text); }
.cw-header-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.cw-header-btn[hidden] { display: none !important; }

.cw-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; min-height: 0; }
.cw-body::-webkit-scrollbar { width: 6px; }
.cw-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.cw-loading,
.cw-empty { padding: 30px 20px; text-align: center; color: var(--text-muted); font-size: 0.85rem; margin: auto; }

.cw-list { display: flex; flex-direction: column; padding: 4px; }
.cw-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    background: none;
    border: none;
    border-radius: var(--r-md);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: inherit;
    transition: background 0.12s;
    width: 100%;
}
.cw-row:hover { background: var(--surface-alt); }

.cw-row-avatar {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent) 0%, #0553a6 100%);
    overflow: visible;
}
.cw-row-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cw-row-avatar .avatar-initial-lg { width: 100%; height: 100%; }
.cw-row-avatar .presence-dot { width: 11px; height: 11px; }

.cw-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cw-row-name { font-weight: 600; font-size: 0.88rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-row-preview { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.cw-row-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.cw-row-time { font-size: 0.68rem; color: var(--text-faint); }
.cw-row-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--r-pill);
    font-size: 0.68rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cw-body .thread { min-height: auto; max-height: none; border: none; border-radius: 0; box-shadow: none; flex: 1; display: flex; flex-direction: column; height: 100%; }
.cw-body .thread-messages { padding: 14px 14px 10px; flex: 1; min-height: 0; }
.cw-body .thread-msg { max-width: 82%; }
.cw-body .thread-bubble { font-size: 0.86rem; padding: 8px 12px; }
.cw-body .thread-time { font-size: 0.65rem; }
.cw-body .thread-form { padding: 10px 12px; gap: 6px; }
.cw-body .thread-form input[type="text"] { padding: 9px 14px; font-size: 0.88rem; }
.cw-body .thread-send { padding: 9px 16px; font-size: 0.84rem; }


/* ============================================================
   35. NEW CHAT PICKER
   ============================================================ */
.cw-contacts { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.cw-contact-search { padding: 10px 12px; border-bottom: 1px solid var(--divider); background: var(--surface); flex-shrink: 0; }
.cw-contact-search input {
    width: 100%;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    font-size: 0.88rem;
    outline: none;
    background: var(--surface-alt);
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.cw-contact-search input:focus { background: var(--surface); border-color: var(--accent); box-shadow: var(--focus-ring); }

#cw-contact-list { overflow-y: auto; flex: 1; min-height: 0; }
#cw-contact-list::-webkit-scrollbar { width: 6px; }
#cw-contact-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }


/* ============================================================
   36. SCHEDULED INTERVIEWS
   ============================================================ */
.interview-list { display: flex; flex-direction: column; gap: 10px; }
.interview-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 12px;
    background: var(--surface-alt);
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--accent);
    border-radius: var(--r-md);
}
.interview-icon { width: 36px; height: 36px; border-radius: var(--r-md); background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }
.interview-body { flex: 1; min-width: 0; }
.interview-title { font-weight: 600; font-size: 0.92rem; color: var(--text); }
.interview-sub { font-size: 0.85rem; color: var(--text-muted); margin-top: 1px; }
.interview-meta { font-size: 0.78rem; color: var(--text-faint); margin-top: 3px; }


/* ============================================================
   37. MOBILE TOP-NAV — search extras
   Mobile shell rules that were here (top-nav, sidebar rail,
   main padding, card, dashboard-grid, welcome-banner) are
   superseded by §40 and were removed. Only the search extras
   unique to this section survive.
   ============================================================ */
@media (max-width: 768px) {
    .top-search-results { max-height: none; padding-bottom: 24px; }
    .top-search-row { padding: 10px 14px; }
    .top-search-label { padding: 12px 14px 4px; }
}

@media (max-width: 400px) {
    .top-nav .nav-right > button[title="Notifications"] { display: none; }
}


/* ============================================================
   38. MOBILE CHAT — scoped chat-* rules
   The .chat-header* and .inbox-* rules that used to live here
   are superseded by §40 and were removed. The scoped
   .chat-page .thread-* rules survive because they win by
   specificity over §40's unscoped .thread-* rules.
   ============================================================ */
@media (max-width: 768px) {
    .inbox-header { padding: 16px 4px 10px; margin: 0; }

    .chat-page .thread {
        min-height: calc(100vh - var(--topnav-h) - 62px);
        max-height: calc(100vh - var(--topnav-h) - 62px);
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        margin: 0;
        box-shadow: none;
    }
    .chat-page .thread-messages { padding: 14px 14px 10px; gap: 8px; }
    .chat-page .thread-msg { max-width: 84%; }
    .chat-page .thread-bubble { font-size: 0.92rem; padding: 9px 13px; }
    .chat-page .thread-time { font-size: 0.66rem; }

    .chat-page .thread-form {
        padding: 10px 12px;
        gap: 6px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0));
    }
    .chat-page .thread-form input[type="text"] { padding: 11px 14px; font-size: 0.94rem; border-radius: 20px; }
    .chat-page .thread-send { padding: 11px 18px; font-size: 0.88rem; border-radius: 20px; }
}

@media (max-width: 480px) {
    .chat-page .thread-messages { padding: 12px 10px 8px; }
    .chat-page .thread-msg { max-width: 88%; }
    .chat-page .thread-bubble { font-size: 0.9rem; }
    .chat-page .thread-form { padding: 8px 10px; }
    .chat-page .thread-form input[type="text"] { padding: 10px 13px; }
    .chat-page .thread-send { padding: 10px 14px; font-size: 0.84rem; }
}


/* ============================================================
   39. MOBILE WIDGET — BOTTOM SHEET
   ============================================================ */
@media (max-width: 500px) {
    .cw { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0)); }
    .cw-launcher { width: 52px; height: 52px; font-size: 1.3rem; }

    .cw-panel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        max-width: 100%;
        height: 72vh;
        max-height: 72vh;
        border-radius: var(--r-lg) var(--r-lg) 0 0;
        border-bottom: none;
        border-left: none;
        border-right: none;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    .cw-header { padding: 12px 12px 12px 16px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
    .cw-header-title { font-size: 1rem; }
    .cw-header-btn { width: 34px; height: 34px; font-size: 1rem; }

    .cw-row { padding: 11px 12px; }
    .cw-row-avatar { width: 46px; height: 46px; }
    .cw-row-name { font-size: 0.92rem; }
    .cw-row-preview { font-size: 0.8rem; }

    .cw-body .thread-messages { padding: 14px 12px 10px; }
    .cw-body .thread-form { padding: 10px 12px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0)); }
    .cw-body .thread-form input[type="text"] { padding: 10px 14px; font-size: 0.94rem; }
    .cw-body .thread-send { padding: 10px 16px; font-size: 0.88rem; }
}


/* ============================================================
   40. MOBILE — COMPLETE LAYOUT FIX
   ============================================================ */
@media (max-width: 900px) {
    .main { min-width: 0; }
}

@media (max-width: 768px) {
    .profile-wrapper { display: block; width: 100%; }

    .main {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        padding: 14px 12px 80px;
    }

    .sidebar {
        position: fixed;
        top: var(--topnav-h);
        left: 0;
        bottom: 0;
        width: 280px;
        height: auto;
        max-height: calc(100vh - var(--topnav-h));
        padding: 20px 14px;
        border-right: 1px solid var(--border-light);
        background: var(--surface);
        transform: translateX(-100%);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
        z-index: 250;
        overflow-y: auto;
        box-shadow: none;
    }

    body.sidebar-collapsed .sidebar {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(15, 23, 42, 0.2);
    }

    .sidebar nav a { justify-content: flex-start; padding: 11px 12px; }
    .sidebar nav a span { display: inline; }
    .sidebar nav a i { margin: 0; width: 22px; font-size: 1.15rem; }
    .sidebar .mini-profile { justify-content: flex-start; }
    .sidebar .mini-profile .info { display: block; }

    body.sidebar-collapsed::before {
        content: '';
        position: fixed;
        inset: 0;
        top: var(--topnav-h);
        background: rgba(15, 23, 42, 0.5);
        z-index: 240;
        animation: ac-fade-in 0.2s ease;
    }
    @keyframes ac-fade-in {
        from { opacity: 0; }
        to   { opacity: 1; }
    }

    .top-nav .nav-left .sidebar-toggle {
        display: inline-flex !important;
        width: 38px;
        height: 38px;
        margin-right: 4px;
    }

    .top-nav { padding: 0 12px; gap: 4px; }
    .top-nav .nav-left { gap: 2px; }
    .top-nav .nav-left .logo { margin-right: 4px; }
    .top-nav .nav-left .logo img { width: 32px; height: 32px; }
    .top-nav .nav-left .logo span { display: none; }
    .top-nav .nav-left .nav-btn { display: none !important; }

    .top-nav .nav-right { gap: 2px; }
    .top-nav .nav-right > button { width: 36px; height: 36px; font-size: 1.05rem; }
    .top-search-trigger { width: 36px; height: 36px; font-size: 1.05rem; }
    .top-nav .avatar-btn .avatar,
    .top-nav .avatar-btn .avatar-initial { width: 34px; height: 34px; font-size: 0.88rem; }

    .top-search-panel {
        position: fixed;
        top: var(--topnav-h);
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        max-height: calc(100vh - var(--topnav-h));
        overflow-y: auto;
        animation: none;
    }
    .top-search-input { padding: 10px 12px; }
    .top-search-input input { height: 42px; font-size: 1rem; }
    .top-search-icon { left: 26px; }

    .network-page { gap: 12px; }
    .network-header .page-heading { font-size: 1.3rem; }
    .network-header .page-subheading { margin-bottom: 4px; font-size: 0.85rem; }

    .network-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; padding: 5px; }
    .network-tab { padding: 8px 12px; font-size: 0.82rem; flex-shrink: 0; }
    .network-tab i { font-size: 0.95rem; }

    .network-filter input { height: 42px; font-size: 0.88rem; }

    .conn-row { flex-wrap: wrap; padding: 12px 14px; gap: 10px; }
    .conn-avatar { width: 46px; height: 46px; }
    .conn-name { font-size: 0.92rem; }
    .conn-headline { font-size: 0.8rem; }
    .conn-actions { width: 100%; justify-content: flex-start; margin-top: 4px; }

    .profile-page .cover { height: 130px; }
    .profile-page .profile-info { padding: 0 14px 16px; margin-top: -40px; gap: 8px; }
    .profile-page .profile-info .avatar { width: 92px; height: 92px; min-width: 92px; }
    .profile-page .profile-info-initial { font-size: 2rem; }
    .profile-page .name-wrap { padding-top: 8px; }
    .profile-page .name-wrap h1 { font-size: 1.25rem; }
    .profile-page .name-wrap .headline { font-size: 0.88rem; }
    .profile-page .name-wrap .location { font-size: 0.82rem; }
    .profile-page .name-wrap .stats { font-size: 0.82rem; }
    .profile-page .actions { width: 100%; padding-top: 8px; gap: 6px; }
    .profile-page .actions .btn-primary,
    .profile-page .actions .btn-outline { flex: 1 1 0; justify-content: center; padding: 9px 12px; font-size: 0.85rem; }
    .profile-page .conn-btn-wrap { flex: 1 1 100%; }
    .profile-page .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0 8px; }
    .profile-page .tabs button { padding: 12px 10px; font-size: 0.82rem; flex-shrink: 0; }
    .profile-page .profile-body { grid-template-columns: 1fr; }
    .profile-page .about-item { flex-direction: column; gap: 2px; padding: 8px 0; }
    .profile-page .about-item .label { width: auto; font-size: 0.78rem; }

    .chat-page { gap: 0; max-width: 100%; margin: 0; }
    .chat-header {
        padding: 10px 12px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        margin: 0 -12px 8px;
        position: sticky;
        top: var(--topnav-h);
        box-shadow: 0 1px 0 var(--border-light);
    }
    .chat-header-avatar { width: 38px; height: 38px; }
    .chat-header-name { font-size: 0.94rem; }
    .chat-header-status { font-size: 0.72rem; }
    .chat-header-btn { width: 34px; height: 34px; font-size: 1rem; }

    .thread {
        min-height: calc(100vh - var(--topnav-h) - 68px);
        max-height: calc(100vh - var(--topnav-h) - 68px);
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        margin: 0 -12px;
        box-shadow: none;
    }
    .thread-messages { padding: 14px 12px 10px; gap: 8px; }
    .thread-msg { max-width: 84%; }
    .thread-bubble { font-size: 0.9rem; padding: 8px 12px; }
    .thread-time { font-size: 0.65rem; }
    .thread-form {
        padding: 10px 12px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        gap: 6px;
    }
    .thread-form input[type="text"] { padding: 10px 14px; font-size: 0.92rem; border-radius: 20px; }
    .thread-send { padding: 10px 16px; font-size: 0.86rem; border-radius: 20px; }

    .inbox-page { gap: 12px; }
    .inbox-header .page-heading { font-size: 1.3rem; }
    .inbox-header .page-subheading { margin-bottom: 4px; font-size: 0.85rem; }
    .inbox-card { padding: 4px !important; }
    .inbox-row { padding: 11px 12px; gap: 12px; }
    .inbox-avatar { width: 46px; height: 46px; }
    .inbox-name { font-size: 0.9rem; }
    .inbox-preview { font-size: 0.8rem; }
    .inbox-time { font-size: 0.7rem; }

    .welcome-banner { padding: 18px 18px; border-radius: var(--r-md); }
    .welcome-banner h1 { font-size: 1.15rem; }
    .welcome-banner p { font-size: 0.85rem; }
    .dashboard-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 16px 12px; }
    .stat-card .icon { font-size: 1.5rem; }
    .stat-card .value { font-size: 1.3rem; }
    .stat-card .label { font-size: 0.7rem; }

    .card { padding: 16px; border-radius: var(--r-md); }
    .card .card-title { font-size: 0.95rem; margin-bottom: 12px; }

    .site-footer { padding: 18px 14px; margin-top: 20px; }
    .site-footer-inner { flex-direction: column; text-align: center; gap: 10px; }
    .site-footer-nav { justify-content: center; flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 400px) {
    .main { padding: 12px 10px 70px; }
    .top-nav .nav-left .logo img { width: 28px; height: 28px; }
    .top-nav .nav-right > button { width: 34px; height: 34px; }
    .top-search-trigger { width: 34px; height: 34px; }
    .top-nav .avatar-btn .avatar,
    .top-nav .avatar-btn .avatar-initial { width: 30px; height: 30px; }
    .network-tab { padding: 7px 10px; font-size: 0.78rem; }
    .network-tab i { display: none; }
    .chat-header-btn { width: 32px; height: 32px; font-size: 0.95rem; }
}
/* ============================================================
   41. WIDGET CALL UI
   ============================================================ */
.cw-launcher.cw-launcher-in-call {
    background: #16a34a;
    animation: cw-launcher-pulse 1.4s infinite;
}
.cw-launcher.cw-launcher-in-call .cw-launcher-icon { font-size: 0; }
.cw-launcher.cw-launcher-in-call .cw-launcher-icon::before {
    content: '📞';
    display: inline-block;
    font-size: 1.4rem;
}
@keyframes cw-launcher-pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(22,163,74,0.35), 0 0 0 0 rgba(22,163,74,0.6); }
    50%      { box-shadow: 0 8px 24px rgba(22,163,74,0.35), 0 0 0 12px rgba(22,163,74,0); }
}

.cw-body.cw-in-call {
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #0f172a;
}

.cw-call-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cw-call-stage #cw-call-remote {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0f172a;
    transform: none;
}

.cw-call-self {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 90px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
    z-index: 5;
}
.cw-call-self video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}
.cw-call-self.audio-only {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}
.cw-call-self.audio-only::after {
    content: '🎤';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.cw-call-self.audio-only video { display: none; }

.cw-call-name-tag {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 4px 10px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    z-index: 4;
}
.cw-call-status {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    background: rgba(0,0,0,0.5);
    padding: 8px 16px;
    border-radius: 8px;
    z-index: 4;
    pointer-events: none;
}

.cw-call-tap {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: #0a66c2;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 12px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(10,102,194,0.5);
}
.cw-call-tap:hover { background: #0553a6; }

.cw-call-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    background: #0f172a;
    border-top: 1px solid #1e293b;
    flex-shrink: 0;
}
.cw-call-ctrl {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.12);
    color: #e2e8f0;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.cw-call-ctrl:hover { background: rgba(255,255,255,0.2); }
.cw-call-ctrl.off   { background: #dc2626; color: #fff; }
.cw-call-ctrl.cw-call-end {
    background: #dc2626;
    color: #fff;
    width: 54px;
    border-radius: 27px;
}
.cw-call-ctrl.cw-call-end:hover { background: #b91c1c; }

.cw-call-ring {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    text-align: center;
    flex: 1;
    background: #1e293b;
    color: #e2e8f0;
}
.cw-call-ring-av {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #0a66c2 0%, #0553a6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cw-ring-pulse 1.6s infinite;
}
.cw-call-ring-av img { width: 100%; height: 100%; object-fit: cover; }
.cw-call-ring-av .avatar-initial {
    width: 100%; height: 100%;
    font-size: 2rem; font-weight: 700;
    background: none;
}
@keyframes cw-ring-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(10,102,194,0.5); }
    50%      { box-shadow: 0 0 0 18px rgba(10,102,194,0); }
}
.cw-call-ring-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.cw-call-ring-label {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 22px;
}
.cw-call-ring-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.cw-call-btn {
    padding: 10px 20px;
    border-radius: 22px;
    border: none;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    font-family: inherit;
    color: #fff;
    transition: opacity 0.15s, transform 0.1s;
}
.cw-call-btn:hover  { opacity: 0.9; }
.cw-call-btn:active { transform: scale(0.97); }
.cw-call-decline    { background: #dc2626; }
.cw-call-accept     { background: #16a34a; }


/* ============================================================
   42. WIDGET CALL — no-video placeholder + debug
   ============================================================ */
.cw-call-novid {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    z-index: 3;
    pointer-events: none;
}
.cw-call-novid-av {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a66c2 0%, #0553a6 100%);
    color: #fff;
    font-weight: 700;
    font-size: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.cw-call-novid-name {
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.cw-call-novid-note {
    color: #94a3b8;
    font-size: 0.78rem;
}

.cw-call-debug {
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 44px;
    background: rgba(0, 0, 0, 0.7);
    color: #7dd3fc;
    font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
    padding: 3px 6px;
    border-radius: 4px;
    text-align: center;
    z-index: 6;
    pointer-events: none;
    white-space: normal !important;
    text-overflow: clip !important;
    overflow: visible !important;
    word-break: break-word !important;
    max-height: 60px;
    line-height: 1.3;
    font-size: 0.6rem !important;
}
.cw-call-debug.cw-call-debug-warn {
    background: rgba(220, 38, 38, 0.85);
    color: #fff;
    font-weight: 700;
}


/* ============================================================
   43. FULL-SCREEN CALL OVERLAY (page mode — message.php)
   ============================================================ */
.cw-call-overlay {
    position: fixed;
    inset: 0;
    background: #0f172a;
    z-index: 5000;
    display: flex;
    flex-direction: column;
}
.cw-call-overlay[hidden] { display: none !important; }

.cw-call-overlay .cw-call-stage {
    flex: 1;
    min-height: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cw-call-overlay .cw-call-stage #cw-call-remote {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0f172a;
    transform: none;
}
.cw-call-overlay .cw-call-self {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 180px;
    height: 135px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    z-index: 5;
    cursor: grab;
}
.cw-call-overlay .cw-call-self:active { cursor: grabbing; }
.cw-call-overlay .cw-call-self video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}
.cw-call-overlay .cw-call-self.audio-only {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}
.cw-call-overlay .cw-call-self.audio-only::after {
    content: '🎤';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.cw-call-overlay .cw-call-self.audio-only video { display: none; }

.cw-call-overlay .cw-call-name-tag {
    position: absolute;
    left: 24px;
    bottom: 24px;
    padding: 6px 14px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 4;
}
.cw-call-overlay .cw-call-status {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(0,0,0,0.5);
    padding: 10px 20px;
    border-radius: 10px;
    z-index: 4;
    pointer-events: none;
}

.cw-call-overlay .cw-call-novid {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    z-index: 3;
    pointer-events: none;
}
.cw-call-overlay .cw-call-novid-av {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a66c2 0%, #0553a6 100%);
    color: #fff;
    font-weight: 700;
    font-size: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.cw-call-overlay .cw-call-novid-name {
    color: #e2e8f0;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.cw-call-overlay .cw-call-novid-note {
    color: #94a3b8;
    font-size: 0.9rem;
}

.cw-call-overlay .cw-call-tap {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: #0a66c2;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(10,102,194,0.6);
}

.cw-call-overlay .cw-call-controls {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding: 20px 16px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    background: #0f172a;
    border-top: 1px solid #1e293b;
    flex-shrink: 0;
}
.cw-call-overlay .cw-call-ctrl {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.12);
    color: #e2e8f0;
    font-size: 1.3rem;
    cursor: pointer;
}
.cw-call-overlay .cw-call-ctrl:hover { background: rgba(255,255,255,0.2); }
.cw-call-overlay .cw-call-ctrl.off { background: #dc2626; color: #fff; }
.cw-call-overlay .cw-call-ctrl.cw-call-end {
    background: #dc2626;
    color: #fff;
    width: 72px;
    border-radius: 36px;
}

.cw-call-overlay .cw-call-ring {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    flex: 1;
    background: #1e293b;
    color: #e2e8f0;
}
.cw-call-overlay .cw-call-ring-av {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #0a66c2 0%, #0553a6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cw-ring-pulse 1.6s infinite;
}
.cw-call-overlay .cw-call-ring-av img { width: 100%; height: 100%; object-fit: cover; }
.cw-call-overlay .cw-call-ring-av .avatar-initial {
    width: 100%; height: 100%;
    font-size: 3rem; font-weight: 700;
    background: none;
}
.cw-call-overlay .cw-call-ring-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.cw-call-overlay .cw-call-ring-label {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 36px;
}
.cw-call-overlay .cw-call-ring-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.cw-call-overlay .cw-call-btn {
    padding: 16px 32px;
    border-radius: 40px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    color: #fff;
}
.cw-call-overlay .cw-call-decline { background: #dc2626; }
.cw-call-overlay .cw-call-accept  { background: #16a34a; }

.cw-call-overlay .cw-call-debug {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: rgba(0, 0, 0, 0.7);
    color: #7dd3fc;
    font-family: ui-monospace, monospace;
    font-size: 0.7rem;
    line-height: 1.35;
    padding: 6px 10px;
    border-radius: 6px;
    text-align: center;
    z-index: 6;
    pointer-events: none;
}

@media (max-width: 640px) {
    .cw-call-overlay .cw-call-self {
        width: 110px;
        height: 82px;
        right: 12px;
        top: 12px;
    }
    .cw-call-overlay .cw-call-controls { gap: 10px; padding: 14px 12px; }
    .cw-call-overlay .cw-call-ctrl { width: 48px; height: 48px; font-size: 1.1rem; }
    .cw-call-overlay .cw-call-ctrl.cw-call-end { width: 60px; border-radius: 30px; }
    .cw-call-overlay .cw-call-novid-av { width: 100px; height: 100px; font-size: 2.5rem; }
}


/* ============================================================
   44. JOBS TAB — candidate side
   ============================================================ */
.jobs-page { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.jobs-header { margin-bottom: 4px; }

.jobs-search {
    position: relative;
    display: flex;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xs);
    padding: 6px;
}
.jobs-search input {
    flex: 1;
    padding: 12px 16px 12px 42px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    min-width: 0;
}
.jobs-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    opacity: 0.55;
    pointer-events: none;
}
.jobs-search-btn {
    padding: 0 22px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--r-md);
    cursor: pointer;
    font-family: inherit;
}
.jobs-search-btn:hover { background: var(--accent-hover); }

.jobs-list { display: flex; flex-direction: column; gap: 10px; }
.job-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xs);
    padding: 18px 20px;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.15s, border-color 0.15s, transform 0.1s;
}
.job-card:hover {
    box-shadow: var(--sh-md);
    border-color: var(--accent-soft-2);
    transform: translateY(-2px);
}

.job-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}
.job-card-main { flex: 1; min-width: 0; }
.job-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 2px;
}
.job-card-company { font-size: 0.88rem; color: var(--text-muted); }

.job-applied-badge {
    padding: 4px 12px;
    border-radius: var(--r-pill);
    background: var(--success-soft);
    color: var(--success);
    border: 1px solid var(--success-border);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.job-card-meta,
.job-detail-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text-soft);
    margin-bottom: 10px;
}
.job-meta { white-space: nowrap; }
.job-meta-muted { color: var(--text-faint); }

.job-card-skills,
.job-detail-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.job-skill-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    background: var(--accent-soft);
    color: var(--accent-hover);
    border: 1px solid var(--accent-soft-2);
    font-size: 0.72rem;
    font-weight: 600;
}


/* ============================================================
   45. JOB DETAIL PAGE
   ============================================================ */
.job-detail-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}
.job-back-link {
    display: inline-block;
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: -6px;
}
.job-back-link:hover { text-decoration: underline; }

.job-detail-card { padding: 24px 26px !important; }
.job-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}
.job-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}
.job-detail-company { font-size: 1rem; color: var(--text-muted); }
.job-description {
    font-size: 0.94rem;
    line-height: 1.7;
    color: var(--text-soft);
    white-space: pre-wrap;
}

.job-apply-form textarea { min-height: 140px; }


/* ============================================================
   46. EMPLOYER SHELL
   ============================================================ */
.emp-body { background: var(--bg); }

.emp-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--r-pill);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-left: 6px;
    vertical-align: middle;
}

.emp-sidebar { background: #fafbfc; }

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--r-pill);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}
.status-applied      { background: #eef2ff; color: #4338ca; }
.status-viewed       { background: #fef3c7; color: #92400e; }
.status-interviewing { background: #dcfce7; color: #166534; }
.status-hired        { background: #d1fae5; color: #065f46; }
.status-rejected     { background: #fee2e2; color: #991b1b; }

@media (max-width: 640px) {
    .job-card { padding: 14px 16px; }
    .job-card-title { font-size: 0.98rem; }
    .job-detail-card { padding: 18px 18px !important; }
    .job-detail-title { font-size: 1.25rem; }
    .jobs-search input { padding: 10px 12px 10px 38px; }
    .jobs-search-btn { padding: 0 16px; font-size: 0.85rem; }
    .job-card-meta,
    .job-detail-meta { font-size: 0.78rem; gap: 8px; }
}


/* ============================================================
   47. EMPLOYER SIGNUP + VERIFICATION UI
   ============================================================ */
.emp-signup-card { max-width: 620px; }

.emp-signup-section {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--divider);
}
.emp-signup-section:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

.emp-signup-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.verify-panel {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--r-lg);
    margin-top: 20px;
    border: 1px solid var(--border-light);
    background: var(--surface-alt);
}
.verify-panel-pending { border-left: 4px solid var(--warning); }
.verify-panel-rejected { border-left: 4px solid var(--danger); }

.verify-panel-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }
.verify-panel-body { flex: 1; min-width: 0; }
.verify-panel-title { font-weight: 700; color: var(--text); margin-bottom: 6px; font-size: 0.95rem; }
.verify-panel-text {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-soft);
    margin: 0 0 6px;
}
.verify-panel-text.muted { color: var(--text-muted); }
.verify-panel-text:last-child { margin-bottom: 0; }

.admin-verify-page { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.admin-verify-header { margin-bottom: 4px; }

.admin-tabs {
    display: flex;
    gap: 4px;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xs);
    overflow-x: auto;
}
.admin-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: var(--r-md);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.admin-tab:hover { background: var(--surface-alt); color: var(--text); }
.admin-tab.active { background: var(--accent-soft); color: var(--accent); }
.admin-tab .tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--border-light);
    color: var(--text-muted);
    border-radius: var(--r-pill);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}
.admin-tab.active .tab-count { background: var(--accent); color: #fff; }

.emp-verify-list { display: flex; flex-direction: column; gap: 8px; }
.emp-verify-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xs);
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.15s, border-color 0.15s, transform 0.1s;
}
.emp-verify-card:hover {
    box-shadow: var(--sh-md);
    border-color: var(--accent-soft-2);
    transform: translateY(-1px);
}
.emp-verify-main { flex: 1; min-width: 0; }
.emp-verify-name { font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: 2px; }
.emp-verify-meta { font-size: 0.85rem; color: var(--text-muted); }
.emp-verify-sub { font-size: 0.78rem; color: var(--text-faint); margin-top: 2px; }
.emp-verify-right { text-align: right; flex-shrink: 0; }
.emp-verify-permit { font-size: 0.78rem; font-weight: 600; color: var(--text-soft); margin-bottom: 2px; }
.emp-verify-date { font-size: 0.72rem; color: var(--text-faint); margin-bottom: 4px; }

.emp-verify-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}
.emp-verify-status.status-pending  { background: #fef3c7; color: #92400e; }
.emp-verify-status.status-approved { background: #d1fae5; color: #065f46; }
.emp-verify-status.status-rejected { background: #fee2e2; color: #991b1b; }

.admin-review-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 860px;
    margin: 0 auto;
}

.verify-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 4px;
}
.verify-detail-wide { grid-column: 1 / -1; }
.verify-detail-item { min-width: 0; }
.verify-detail-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 3px;
}
.verify-detail-value {
    font-size: 0.92rem;
    color: var(--text);
    font-weight: 500;
    word-break: break-word;
}
.verify-detail-value a { color: var(--accent); text-decoration: none; }
.verify-detail-value a:hover { text-decoration: underline; }

.admin-review-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 640px) {
    .emp-verify-card { flex-direction: column; align-items: stretch; }
    .emp-verify-right { text-align: left; }
    .verify-detail-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   48. EMPLOYER — JOB LIST PAGE
   ============================================================ */
.emp-jobs-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.emp-jobs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.emp-jobs-header .page-subheading { margin-bottom: 0; }
.emp-jobs-header .btn-primary { padding: 10px 22px; }

.emp-jobs-list { display: flex; flex-direction: column; gap: 10px; }

.emp-job-main { flex: 1; min-width: 0; }
.emp-job-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.emp-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.emp-job-stats {
    display: flex;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-soft);
}
.emp-job-stats b { color: var(--text); font-weight: 700; }

.emp-job-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.emp-job-status {
    display: inline-block;
    padding: 3px 12px;
    border-radius: var(--r-pill);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.emp-job-status-active { background: #d1fae5; color: #065f46; }
.emp-job-status-draft  { background: #fef3c7; color: #92400e; }
.emp-job-status-closed { background: #e5e7eb; color: #374151; }

.emp-job-actions { display: flex; gap: 6px; }
.emp-job-btn {
    padding: 6px 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--r-md);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.emp-job-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--surface-alt); }
.emp-job-btn-danger { color: var(--danger); border-color: #fecaca; }
.emp-job-btn-danger:hover { border-color: var(--danger); color: #fff; background: var(--danger); }


/* ============================================================
   49. EMPLOYER — JOB POSTING FORM
   ============================================================ */
.emp-job-form-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}
.emp-job-form-header { margin-bottom: 4px; }

.emp-job-form {
    padding: 28px 30px !important;
    margin-bottom: 0 !important;
}

.emp-form-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--divider);
}
.emp-form-section:first-of-type { padding-top: 0; }
.emp-form-section:last-of-type { border-bottom: none; padding-bottom: 4px; }

.emp-form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
}

.emp-form-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0 0 16px;
}

.emp-psf-badge {
    display: inline-block;
    margin-left: auto;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    background: var(--accent-soft);
    color: var(--accent-hover);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.emp-psf-competencies {
    margin-top: 16px;
    padding: 16px;
    background: var(--surface-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
}
.emp-psf-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    font-style: italic;
}
.emp-psf-loading {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.emp-psf-comp {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--divider);
}
.emp-psf-comp:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.emp-psf-comp-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.emp-psf-comp-code {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--surface);
    color: var(--accent);
    border: 1px solid var(--accent-soft-2);
    font-size: 0.7rem;
    font-weight: 700;
    font-family: ui-monospace, monospace;
}
.emp-psf-comp-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}

.emp-psf-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.emp-psf-level {
    display: block;
    cursor: pointer;
    position: relative;
}
.emp-psf-level input[type="checkbox"] {
    position: absolute;
    top: 12px;
    left: 12px;
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
    cursor: pointer;
    z-index: 2;
}
.emp-psf-level-body {
    background: var(--surface);
    border: 1.5px solid var(--border-light);
    border-radius: var(--r-md);
    padding: 14px 14px 14px 36px;
    transition: border-color 0.15s, background 0.15s;
    height: 100%;
}
.emp-psf-level:hover .emp-psf-level-body {
    border-color: var(--accent-soft-2);
}
.emp-psf-level input:checked + .emp-psf-level-body {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.emp-psf-level-head { margin-bottom: 6px; }
.emp-psf-level-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text);
}
.emp-psf-level-summary {
    font-size: 0.82rem;
    color: var(--text-soft);
    line-height: 1.5;
    margin-bottom: 8px;
}
.emp-psf-level-details {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.55;
}
.emp-psf-level-details b { color: var(--text-soft); font-weight: 600; }
.emp-psf-example {
    margin-top: 6px;
    padding: 8px 10px;
    background: var(--surface-alt);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    font-style: italic;
    font-size: 0.76rem;
    color: var(--text-soft);
}

.emp-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--divider);
    flex-wrap: wrap;
}
.emp-form-actions .btn-primary,
.emp-form-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--r-md);
    font-size: 0.92rem;
    cursor: pointer;
    font-family: inherit;
    width: auto;
}


/* ============================================================
   50. EMPLOYER — RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
    .emp-jobs-header { flex-direction: column; align-items: stretch; }
    .emp-jobs-header .btn-primary { width: 100%; justify-content: center; }

    .emp-job-right { align-items: flex-start; }
    .emp-job-actions { width: 100%; }
    .emp-job-btn { flex: 1; justify-content: center; text-align: center; }

    .emp-job-form { padding: 20px 18px !important; }
    .emp-psf-levels { grid-template-columns: 1fr; }
    .emp-form-actions { flex-direction: column-reverse; }
    .emp-form-actions .btn-primary,
    .emp-form-actions .btn-secondary { width: 100%; justify-content: center; }
}


/* ============================================================
   51. PSF SKILLS — profile section
   ============================================================ */
.psf-claims {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.psf-claim {
    padding: 14px 16px;
    background: var(--surface-alt);
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--border);
    border-radius: var(--r-md);
}
.psf-claim-pending  { border-left-color: var(--warning); background: #fffbeb; }
.psf-claim-verified { border-left-color: var(--success); background: var(--success-soft); }
.psf-claim-rejected { border-left-color: var(--danger);  background: var(--danger-soft); }
.psf-claim-expired  { border-left-color: var(--text-faint); }

.psf-claim-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.psf-claim-code {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--surface);
    color: var(--accent);
    border: 1px solid var(--accent-soft-2);
    font-size: 0.68rem;
    font-weight: 700;
    font-family: ui-monospace, monospace;
}
.psf-claim-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text);
    flex: 1;
    min-width: 0;
}
.psf-claim-status {
    padding: 2px 10px;
    border-radius: var(--r-pill);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.psf-claim-status-pending  { background: #fef3c7; color: #92400e; }
.psf-claim-status-verified { background: #d1fae5; color: #065f46; }
.psf-claim-status-rejected { background: #fee2e2; color: #991b1b; }
.psf-claim-status-expired  { background: #e5e7eb; color: #374151; }

.psf-claim-level {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 4px;
}
.psf-claim-summary {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55;
}
.psf-claim-remove { margin-top: 8px; font-size: 0.78rem; }


/* ============================================================
   52. PSF CLAIM MODAL
   ============================================================ */
.psf-claim-modal-content { max-width: 640px; }

.psf-claim-picker {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    background: var(--surface-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    margin-bottom: 14px;
}
.psf-claim-picker .field { margin-bottom: 0; }

.psf-level-preview { margin-top: 4px; }
.psf-level-preview[hidden] { display: none; }

.psf-level-card {
    padding: 16px 18px;
    background: var(--accent-soft);
    border: 1.5px solid var(--accent);
    border-radius: var(--r-md);
}
.psf-level-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.psf-level-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent-hover);
}
.psf-level-card-sub {
    padding: 1px 8px;
    border-radius: 4px;
    background: var(--surface);
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 700;
    font-family: ui-monospace, monospace;
}
.psf-level-card-summary {
    font-size: 0.85rem;
    color: var(--text-soft);
    line-height: 1.55;
    margin-bottom: 10px;
}
.psf-level-card-details {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.psf-level-card-details b { color: var(--text); font-weight: 600; }
.psf-level-card-example {
    margin-top: 8px;
    padding: 8px 10px;
    background: var(--surface);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    font-style: italic;
    font-size: 0.78rem;
    color: var(--text-soft);
}


/* ============================================================
   53. JOB MATCH — candidate detail
   ============================================================ */
.job-match-mode {
    margin-left: auto;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    background: var(--surface-alt);
    color: var(--text-soft);
    border: 1px solid var(--border-light);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.job-match-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--divider);
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.job-match-score { flex-shrink: 0; text-align: center; }
.job-match-score-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.03em;
}
.job-match-score-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}
.job-match-bar {
    flex: 1;
    min-width: 200px;
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}
.job-match-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, #2b85e0 100%);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.job-match-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.job-match-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--r-md);
    border: 1px solid var(--border-light);
    background: var(--surface);
    transition: border-color 0.15s, background 0.15s;
}
.job-match-item-met     { background: var(--success-soft); border-color: var(--success-border); }
.job-match-item-pending { background: #fffbeb;             border-color: #fde68a; }
.job-match-item-missing { background: var(--danger-soft);  border-color: var(--danger-border); }

.job-match-item-icon { width: 28px; font-size: 1.1rem; text-align: center; flex-shrink: 0; }
.job-match-item-body { flex: 1; min-width: 0; }
.job-match-item-title { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; flex-wrap: wrap; }
.job-match-item-code {
    padding: 1px 7px;
    border-radius: 4px;
    background: var(--surface);
    color: var(--accent);
    border: 1px solid var(--accent-soft-2);
    font-size: 0.68rem;
    font-weight: 700;
    font-family: ui-monospace, monospace;
}
.job-match-item-name { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.job-match-item-level { font-size: 0.8rem; color: var(--text-muted); line-height: 1.45; }
.job-match-item-you-ok   { color: var(--success); font-weight: 600; }
.job-match-item-you-pend { color: var(--warning); font-weight: 600; }
.job-match-item-you-miss { color: var(--danger);  font-weight: 600; }

.job-match-item-claim {
    padding: 6px 14px;
    border-radius: var(--r-md);
    background: var(--accent);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s;
}
.job-match-item-claim:hover { background: var(--accent-hover); }


/* ============================================================
   54. EMPLOYER — application mode radios
   ============================================================ */
.emp-mode-radios { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.emp-mode-radio { display: block; cursor: pointer; position: relative; }
.emp-mode-radio input[type="radio"] {
    position: absolute;
    top: 18px;
    left: 16px;
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
    cursor: pointer;
    z-index: 2;
}
.emp-mode-radio-body {
    padding: 14px 16px 14px 44px;
    background: var(--surface);
    border: 1.5px solid var(--border-light);
    border-radius: var(--r-md);
    transition: border-color 0.15s, background 0.15s;
}
.emp-mode-radio:hover .emp-mode-radio-body { border-color: var(--accent-soft-2); }
.emp-mode-radio input[type="radio"]:checked + .emp-mode-radio-body {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.emp-mode-radio-title { font-weight: 700; font-size: 0.92rem; color: var(--text); margin-bottom: 3px; }
.emp-mode-radio-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }


/* ============================================================
   55. RESPONSIVE — PSF + match
   ============================================================ */
@media (max-width: 640px) {
    .psf-claim { padding: 12px 14px; }
    .psf-claim-name { font-size: 0.86rem; }
    .psf-claim-modal-content { padding: 20px 18px !important; }

    .job-match-header { gap: 12px; }
    .job-match-score-value { font-size: 1.6rem; }
    .job-match-bar { min-width: 100%; }

    .job-match-item { flex-direction: column; align-items: flex-start; gap: 8px; }
    .job-match-item-claim { width: 100%; text-align: center; }

    .emp-mode-radio-body { padding: 12px 14px 12px 40px; }
    .emp-mode-radio input[type="radio"] { top: 16px; left: 14px; }
}


/* ============================================================
   56. EMPLOYER — clickable job rows
   ============================================================ */
.emp-job-card-wrap { display: block; }

.emp-job-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xs);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: box-shadow 0.15s, border-color 0.15s, background 0.15s, transform 0.1s;
    margin-bottom: 10px;
}
.emp-job-card:hover {
    box-shadow: var(--sh-md);
    border-color: var(--accent-soft-2);
    background: #fbfdff;
}
.emp-job-card:active { transform: translateY(1px); }

.emp-job-chevron {
    font-size: 1.5rem;
    color: var(--text-faint);
    line-height: 1;
    transition: color 0.15s, transform 0.15s;
}
.emp-job-card:hover .emp-job-chevron { color: var(--accent); transform: translateX(2px); }


/* ============================================================
   57. EMPLOYER — job detail page
   ============================================================ */
.emp-job-detail-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.emp-job-detail-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin: 4px 0 8px;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.emp-job-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.emp-mode-pill {
    padding: 2px 10px;
    border-radius: var(--r-pill);
    background: var(--accent-soft);
    color: var(--accent-hover);
    border: 1px solid var(--accent-soft-2);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.emp-psf-req-list { display: flex; flex-direction: column; gap: 10px; }
.emp-psf-req-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--surface-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
}
.emp-psf-req-code {
    padding: 2px 10px;
    border-radius: 4px;
    background: var(--surface);
    color: var(--accent);
    border: 1px solid var(--accent-soft-2);
    font-size: 0.68rem;
    font-weight: 700;
    font-family: ui-monospace, monospace;
    flex-shrink: 0;
}
.emp-psf-req-name { font-weight: 700; font-size: 0.92rem; color: var(--text); }
.emp-psf-req-level { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

.emp-apps-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 22px;
    padding: 0 8px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: var(--r-pill);
    font-size: 0.72rem;
    font-weight: 700;
}


/* ============================================================
   58. EMPLOYER — application row
   ============================================================ */
.emp-apps-list { display: flex; flex-direction: column; gap: 8px; }

.emp-app-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--surface-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    width: 100%;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.emp-app-row:hover {
    background: var(--surface);
    border-color: var(--accent-soft-2);
    box-shadow: var(--sh-sm);
}

.emp-app-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent) 0%, #0553a6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.emp-app-avatar img { width: 100%; height: 100%; object-fit: cover; }

.emp-app-body { flex: 1; min-width: 0; }
.emp-app-name { font-weight: 700; font-size: 0.95rem; color: var(--text); margin-bottom: 2px; }
.emp-app-headline {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.emp-app-meta { display: flex; gap: 6px; font-size: 0.75rem; color: var(--text-faint); flex-wrap: wrap; }

.emp-app-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.emp-app-chevron {
    font-size: 1.4rem;
    color: var(--text-faint);
    line-height: 1;
    transition: color 0.15s, transform 0.15s;
}
.emp-app-row:hover .emp-app-chevron { color: var(--accent); transform: translateX(2px); }


/* ============================================================
   59. EMPLOYER — applicant modal
   ============================================================ */
.emp-applicant-modal-content {
    max-width: 640px !important;
    padding: 0 !important;
    overflow: hidden;
}
.emp-applicant-modal-content .close-modal {
    z-index: 10;
    background: rgba(255,255,255,0.9);
}

.emp-applicant-loading,
.emp-applicant-error {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

#emp-applicant-body {
    max-height: 80vh;
    overflow-y: auto;
}

.emp-applicant-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px 18px;
    background: linear-gradient(135deg, var(--accent-soft) 0%, #f5f9ff 100%);
    border-bottom: 1px solid var(--divider);
}
.emp-applicant-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent) 0%, #0553a6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sh-sm);
}
.emp-applicant-avatar img { width: 100%; height: 100%; object-fit: cover; }
.emp-applicant-avatar .avatar-initial-lg { width: 100%; height: 100%; font-size: 1.6rem; }

.emp-applicant-id { flex: 1; min-width: 0; }
.emp-applicant-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    margin-bottom: 3px;
}
.emp-applicant-headline { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }
.emp-applicant-sub {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-soft);
}

.emp-applicant-match {
    padding: 16px 24px;
    border-bottom: 1px solid var(--divider);
    background: var(--surface);
}
.emp-applicant-match-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}
.emp-applicant-match-score {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
    line-height: 1;
}
.emp-applicant-match-label { font-size: 0.82rem; color: var(--text-muted); }
.emp-applicant-match-list { display: flex; flex-direction: column; gap: 6px; }
.emp-applicant-req {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--r-md);
    border: 1px solid var(--border-light);
    background: var(--surface-alt);
}
.emp-applicant-req-met   { background: var(--success-soft); border-color: var(--success-border); }
.emp-applicant-req-pend  { background: #fffbeb; border-color: #fde68a; }
.emp-applicant-req-miss  { background: var(--danger-soft); border-color: var(--danger-border); }
.emp-applicant-req-icon  { font-size: 1rem; flex-shrink: 0; }
.emp-applicant-req-body  { flex: 1; min-width: 0; }
.emp-applicant-req-title { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; flex-wrap: wrap; }
.emp-applicant-req-code {
    padding: 1px 7px;
    border-radius: 4px;
    background: var(--surface);
    color: var(--accent);
    border: 1px solid var(--accent-soft-2);
    font-size: 0.66rem;
    font-weight: 700;
    font-family: ui-monospace, monospace;
}
.emp-applicant-req-name { font-weight: 700; font-size: 0.85rem; color: var(--text); }
.emp-applicant-req-meta { font-size: 0.76rem; color: var(--text-muted); }
.emp-applicant-req-empty {
    padding: 10px 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

.emp-applicant-section {
    padding: 16px 24px;
    border-bottom: 1px solid var(--divider);
}
.emp-applicant-section:last-child { border-bottom: none; }
.emp-applicant-section-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}
.emp-applicant-section-meta {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 0.78rem;
    color: var(--text-faint);
    background: var(--surface-alt);
}

.emp-applicant-work-row,
.emp-applicant-edu-row {
    padding: 8px 0;
    border-bottom: 1px dashed var(--divider);
}
.emp-applicant-work-row:last-child,
.emp-applicant-edu-row:last-child { border-bottom: none; padding-bottom: 0; }
.emp-applicant-work-title,
.emp-applicant-edu-title { font-weight: 600; font-size: 0.88rem; color: var(--text); }
.emp-applicant-work-sub,
.emp-applicant-edu-date { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.emp-applicant-work-date { font-size: 0.75rem; color: var(--text-faint); margin-top: 2px; }
.emp-applicant-work-empty { font-size: 0.82rem; color: var(--text-muted); font-style: italic; }

.emp-applicant-cover {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-soft);
    padding: 12px 14px;
    background: var(--surface-alt);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
}
.emp-applicant-cover-empty {
    font-style: italic;
    color: var(--text-muted);
    border-left-color: var(--border);
}

.emp-applicant-status {
    padding: 14px 24px;
    background: var(--surface-alt);
    border-bottom: 1px solid var(--divider);
}
.emp-applicant-status-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}
.emp-applicant-status-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.emp-status-btn {
    padding: 8px 16px;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.emp-status-btn:hover:not(:disabled) {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}
.emp-status-btn.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    cursor: default;
}
.emp-status-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.emp-applicant-actions {
    display: flex;
    gap: 10px;
    padding: 16px 24px 22px;
    background: var(--surface);
    justify-content: flex-end;
    flex-wrap: wrap;
}
.emp-applicant-actions .btn-secondary,
.emp-applicant-actions .btn-primary {
    padding: 10px 20px;
    border-radius: var(--r-md);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-family: inherit;
    border: 1px solid transparent;
}
.emp-applicant-actions .btn-secondary {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}
.emp-applicant-actions .btn-secondary:hover {
    background: var(--surface-alt);
    border-color: var(--accent);
    color: var(--accent);
}
.emp-applicant-actions .btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.emp-applicant-actions .btn-primary:hover { background: var(--accent-hover); }

@media (max-width: 640px) {
    .emp-applicant-modal-content { max-width: 100% !important; margin: 0 !important; border-radius: 0 !important; }
    .emp-applicant-header { padding: 18px 18px 14px; }
    .emp-applicant-avatar { width: 60px; height: 60px; }
    .emp-applicant-name { font-size: 1.05rem; }
    .emp-applicant-match,
    .emp-applicant-section,
    .emp-applicant-status { padding-left: 18px; padding-right: 18px; }
    .emp-applicant-actions { padding: 14px 18px 18px; flex-direction: column-reverse; }
    .emp-applicant-actions .btn-secondary,
    .emp-applicant-actions .btn-primary { width: 100%; justify-content: center; }
}


/* ============================================================
   60. FULL-SCREEN INTERVIEW CALL
   ============================================================ */
.call-body {
    margin: 0;
    padding: 0;
    background: #0b1220;
    height: 100vh;
    overflow: hidden;
}

.call-layout {
    display: flex;
    height: 100vh;
    width: 100%;
}

.call-video-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #0b1220;
    min-width: 0;
}

.call-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    height: 52px;
    flex-shrink: 0;
}
.call-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.call-timer {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
}
.call-room-code {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.82rem;
}
.call-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64748b;
    display: inline-block;
}
.call-status-dot-ok   { background: #22c55e; }
.call-status-dot-warn { background: #eab308; }
.call-status-dot-err  { background: #dc2626; }

.call-header-right { display: flex; gap: 8px; }
.call-header-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #cbd5e1;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.call-header-btn:hover { background: #dc2626; color: #fff; }

.call-main-feed {
    flex: 1;
    margin: 0 12px;
    background: #1e293b;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.call-avatar-placeholder {
    text-align: center;
    color: #94a3b8;
}
.call-avatar-initial {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a66c2 0%, #0553a6 100%);
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.call-avatar-name { color: #e2e8f0; font-size: 1.1rem; font-weight: 600; margin: 0 0 4px; }
.call-avatar-status { color: #64748b; font-size: 0.85rem; margin: 0; }

.call-self-view {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 200px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    background: #0b1220;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 10;
}
.call-self-view video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}
.call-self-view.audio-only { background: linear-gradient(135deg, #334155 0%, #1e293b 100%); }
.call-self-view.audio-only::after {
    content: '🎤';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.call-self-view.audio-only video { display: none; }

.call-self-label {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 2px 8px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.call-name-tag {
    position: absolute;
    left: 20px;
    bottom: 20px;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 12px;
    border-radius: 6px;
    z-index: 5;
}

.call-ring-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11,18,32,0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}
.call-ring-overlay[hidden] { display: none; }
.call-ring-card {
    background: #1e293b;
    border-radius: 16px;
    padding: 32px 40px;
    text-align: center;
    border: 1px solid #334155;
}
.call-ring-av {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #0a66c2 0%, #0553a6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: call-ring-pulse 1.6s infinite;
}
.call-ring-av img { width: 100%; height: 100%; object-fit: cover; }
@keyframes call-ring-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(10,102,194,0.5); }
    50%      { box-shadow: 0 0 0 20px rgba(10,102,194,0); }
}
.call-ring-name { color: #fff; font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.call-ring-label { color: #94a3b8; font-size: 0.88rem; margin-bottom: 24px; }
.call-ring-actions { display: flex; gap: 10px; justify-content: center; }
.call-ring-btn {
    padding: 12px 24px;
    border-radius: 24px;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    color: #fff;
    font-family: inherit;
}
.call-ring-decline { background: #dc2626; }
.call-ring-accept  { background: #16a34a; }

.call-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 24px;
    height: 84px;
    flex-shrink: 0;
}
.call-controls-center { display: flex; gap: 12px; }

.call-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.call-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }
.call-btn.active,
.call-btn.off { background: #dc2626; color: #fff; }
.call-btn-end {
    width: 60px;
    height: 48px;
    border-radius: 24px;
    background: #dc2626;
    color: #fff;
}
.call-btn-end:hover { background: #b91c1c; }
/* ============================================================
   61. CALL SIDEBAR — EMPLOYER
   ============================================================ */
.call-sidebar {
    width: 380px;
    flex-shrink: 0;
    background: #111827;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #1f2937;
    color: #cbd5e1;
}

.call-tabs {
    display: flex;
    border-bottom: 1px solid #1f2937;
    flex-shrink: 0;
    background: #0b1220;
}
.call-tab {
    flex: 1;
    padding: 14px 6px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s, border-color 0.15s;
}
.call-tab:hover { color: #e2e8f0; }
.call-tab.active { color: #60a5fa; border-bottom-color: #60a5fa; }

.call-tab-content { flex: 1; overflow-y: auto; min-height: 0; }
.call-tab-content::-webkit-scrollbar { width: 8px; }
.call-tab-content::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }

.call-panel { display: none; padding: 20px; }
.call-panel.active { display: block; }

.call-profile-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #1f2937;
    margin-bottom: 20px;
}
.call-profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #0a66c2 0%, #0553a6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.call-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.call-profile-initial { color: #fff; font-size: 2rem; font-weight: 700; }
.call-profile-name { color: #f1f5f9; font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.call-profile-headline { color: #94a3b8; font-size: 0.85rem; margin-bottom: 6px; line-height: 1.4; }
.call-profile-location { color: #64748b; font-size: 0.8rem; }

.call-section { margin-bottom: 22px; }
.call-section:last-child { margin-bottom: 0; }
.call-section-title {
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}
.call-section-body { color: #cbd5e1; font-size: 0.88rem; line-height: 1.55; margin: 0; }

.call-item { padding: 10px 0; border-bottom: 1px solid #1f2937; }
.call-item:last-child { border-bottom: none; }
.call-item-title { color: #e2e8f0; font-size: 0.88rem; font-weight: 600; }
.call-item-sub   { color: #94a3b8; font-size: 0.82rem; margin-top: 2px; }
.call-item-meta  { color: #64748b; font-size: 0.75rem; margin-top: 2px; }

.call-empty { color: #64748b; font-size: 0.85rem; font-style: italic; margin: 0; }

.call-skills-list { display: flex; flex-direction: column; gap: 8px; }
.call-skill-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #0b1220;
    font-size: 0.85rem;
}
.call-skill-icon { font-size: 1.05rem; flex-shrink: 0; }
.call-skill-name { color: #e2e8f0; font-weight: 600; flex: 1; }
.call-skill-label { color: #94a3b8; font-size: 0.72rem; white-space: nowrap; }

.call-skill-pill.badge-gold    { border-color: #d97706; }
.call-skill-pill.badge-gold    .call-skill-label { color: #fbbf24; }
.call-skill-pill.badge-pending { border-color: #d97706; opacity: 0.8; }
.call-skill-pill.badge-pending .call-skill-label { color: #fbbf24; }
.call-skill-pill.badge-none    { opacity: 0.6; }


/* ============================================================
   62. CALL SIDEBAR — CANDIDATE
   ============================================================ */
.call-sidebar-candidate { width: 340px; padding: 0; }
.call-sidebar-single { padding: 24px 20px; overflow-y: auto; }
.call-sidebar-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1f2937;
}
.call-int-header { text-align: center; margin-bottom: 22px; }
.call-int-avatar {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #0a66c2 0%, #0553a6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.call-int-initial { color: #fff; font-size: 1.8rem; font-weight: 700; }
.call-int-name { color: #f1f5f9; font-size: 1.05rem; font-weight: 700; margin-bottom: 2px; }
.call-int-role { color: #94a3b8; font-size: 0.82rem; margin-bottom: 4px; }
.call-int-company { color: #60a5fa; font-size: 0.88rem; font-weight: 600; }
.call-int-section { padding: 14px 0; border-top: 1px solid #1f2937; }
.call-int-section-title {
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.call-int-section-body { color: #cbd5e1; font-size: 0.88rem; line-height: 1.55; }
.call-int-job-title { color: #f1f5f9; font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.call-int-job-meta  { color: #94a3b8; font-size: 0.82rem; }


/* ============================================================
   63. CALL — RESPONSIVE
   The .call-controls / .call-btn / .call-btn-end rules that used
   to live in the @700 block are superseded by §72's unscoped base
   values (96px controls, 54px buttons, 72x54 end button) and were
   removed.
   ============================================================ */
@media (max-width: 900px) {
    .call-sidebar { width: 320px; }
    .call-self-view { width: 160px; height: 120px; }
}

@media (max-width: 700px) {
    .call-layout { flex-direction: column; }
    .call-video-area { height: 55vh; min-height: 55vh; }
    .call-sidebar {
        width: 100%;
        height: 45vh;
        border-left: none;
        border-top: 1px solid #1f2937;
    }
    .call-self-view { width: 110px; height: 82px; right: 12px; bottom: 12px; }
    .call-name-tag { left: 12px; bottom: 12px; font-size: 0.82rem; }
}


/* ============================================================
   64. CALL — hide floating chat widget during call
   ============================================================ */
body.call-body .cw { display: none !important; }


/* ============================================================
   65. CALL — header context, name tag, sidebar header
   ============================================================ */
.call-header-context {
    color: #94a3b8;
    font-size: 0.82rem;
    padding-left: 14px;
    margin-left: 4px;
    border-left: 1px solid #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40vw;
}

.call-name-tag-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}
.call-name-tag-headline {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.75);
    margin-top: 1px;
    line-height: 1.3;
}

.call-sidebar-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px 14px;
    border-bottom: 1px solid #1f2937;
    flex-shrink: 0;
    background: #0b1220;
}
.csh-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #0a66c2 0%, #0553a6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.csh-avatar img { width: 100%; height: 100%; object-fit: cover; }
.csh-initial { color: #fff; font-size: 1.3rem; font-weight: 700; }
.csh-info { flex: 1; min-width: 0; }
.csh-name {
    color: #f1f5f9;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: 1px;
}
.csh-headline {
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.35;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.csh-job { color: #cbd5e1; font-size: 0.78rem; line-height: 1.4; }
.csh-job strong { color: #f1f5f9; font-weight: 700; }
.csh-meta { color: #64748b; font-size: 0.72rem; margin-top: 2px; line-height: 1.4; }
.csh-match {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    align-self: flex-start;
}
.csh-match-good { background: #16a34a; }
.csh-match-mid  { background: #d97706; }
.csh-match-low  { background: #dc2626; }


/* ============================================================
   66. CALL — profile tab header, verified tab match summary
   ============================================================ */
.csp-header {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #1f2937;
    margin-bottom: 16px;
}
.csp-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #0a66c2 0%, #0553a6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.csp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.csp-initial { color: #fff; font-size: 1.75rem; font-weight: 700; }
.csp-name { color: #f1f5f9; font-size: 1.05rem; font-weight: 700; line-height: 1.25; margin-bottom: 3px; }
.csp-headline { color: #94a3b8; font-size: 0.84rem; line-height: 1.4; }
.csp-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 18px;
}
.csp-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--r-pill);
    background: #1e3a5f;
    color: #a5d8ff;
    border: 1px solid #334155;
    font-size: 0.72rem;
    font-weight: 600;
}

.call-match-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--r-md);
    margin-bottom: 18px;
    border: 1px solid #1f2937;
    background: #0b1220;
}
.call-match-summary-good { border-color: #16a34a; background: #052e16; }
.call-match-summary-mid  { border-color: #d97706; background: #2a1f0a; }
.call-match-summary-low  { border-color: #dc2626; background: #2a0c0c; }

.call-match-summary-score {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}
.call-match-summary-good .call-match-summary-score { color: #4ade80; }
.call-match-summary-mid  .call-match-summary-score { color: #fbbf24; }
.call-match-summary-low  .call-match-summary-score { color: #f87171; }
.call-match-summary-label { color: #cbd5e1; font-size: 0.82rem; line-height: 1.4; }

.call-match-item-lvl {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.08);
    color: #94a3b8;
    font-size: 0.62rem;
    font-weight: 700;
    font-family: ui-monospace, monospace;
    margin-left: 4px;
}

.call-missing-list { display: flex; flex-direction: column; gap: 4px; }
.call-missing-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 6px 10px;
    border-radius: 6px;
    background: #0f172a;
    border: 1px solid #1f2937;
    color: #94a3b8;
    font-size: 0.78rem;
    line-height: 1.45;
}
.call-missing-item b { color: #cbd5e1; font-weight: 700; }
.call-missing-dot { color: #475569; flex-shrink: 0; line-height: 1.45; }

.call-item-desc {
    margin-top: 6px;
    padding-left: 2px;
    color: #94a3b8;
    font-size: 0.78rem;
    line-height: 1.5;
}


/* ============================================================
   67. CALL — sidebar footer actions + toast
   ============================================================ */
.call-sidebar-footer {
    display: flex;
    gap: 8px;
    padding: 14px 16px;
    border-top: 1px solid #1f2937;
    background: #0b1220;
    flex-shrink: 0;
}
.call-outcome-btn {
    flex: 1;
    padding: 10px 8px;
    border-radius: var(--r-md);
    border: 1px solid #334155;
    background: #1e293b;
    color: #cbd5e1;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}
.call-outcome-btn:hover:not(:disabled) {
    background: #0a66c2;
    border-color: #0a66c2;
    color: #fff;
}
.call-outcome-btn:disabled { cursor: default; opacity: 1; }
.call-outcome-btn.is-active {
    background: #0a66c2;
    border-color: #0a66c2;
    color: #fff;
}
.call-outcome-btn-reject:hover:not(:disabled) {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}
.call-outcome-btn-reject.is-active {
    background: #dc2626;
    border-color: #dc2626;
}
.call-outcome-btn-hire:hover:not(:disabled) {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}
.call-outcome-btn-hire.is-active {
    background: #16a34a;
    border-color: #16a34a;
}

.call-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    padding: 12px 22px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 24px;
    color: #f1f5f9;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.call-toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* ============================================================
   68. CALL — gov ID clickable rows + menu
   ============================================================ */
.call-section-hint {
    display: inline-block;
    margin-left: auto;
    padding: 1px 8px;
    border-radius: var(--r-pill);
    background: #1e293b;
    color: #64748b;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    vertical-align: middle;
}

.call-govid-list { display: flex; flex-direction: column; gap: 6px; }
.call-govid-wrap { position: relative; }

.call-govid-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    background: #0b1220;
    border: 1px solid #1f2937;
    font-family: inherit;
    font-size: 0.82rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.call-govid-row:hover {
    background: #0f172a;
    border-color: #334155;
}
.call-govid-row:focus-visible {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(10,102,194,0.25);
}

.call-govid-icon { font-size: 1rem; flex-shrink: 0; }
.call-govid-label {
    color: #e2e8f0;
    font-weight: 600;
    flex: 1;
}
.call-govid-status {
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}
.call-govid-status-valid    { color: #4ade80; }
.call-govid-status-expiring { color: #fbbf24; }
.call-govid-status-expired  { color: #f87171; }
.call-govid-status-na,
.call-govid-status-unknown  { color: #64748b; }

.call-govid-chevron {
    color: #475569;
    font-size: 0.75rem;
    line-height: 1;
    margin-left: 4px;
    transition: transform 0.15s, color 0.15s;
}
.call-govid-wrap .call-govid-menu.open ~ .call-govid-row .call-govid-chevron,
.call-govid-row[aria-expanded="true"] .call-govid-chevron {
    transform: rotate(180deg);
    color: #60a5fa;
}

.call-govid-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 40;
    padding: 4px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.55);
    animation: gov-menu-in 0.12s ease-out;
}
@keyframes gov-menu-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.call-govid-menu.open { display: block; }

.call-govid-menu button {
    display: block;
    width: 100%;
    padding: 9px 12px;
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 500;
    text-align: left;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.12s, color 0.12s;
}
.call-govid-menu button:hover,
.call-govid-menu button:focus-visible {
    background: #0a66c2;
    color: #fff;
    outline: none;
}

@keyframes gov-saved-flash {
    0%   { background: #064e3b; border-color: #10b981; }
    100% { background: #0b1220; border-color: #1f2937; }
}
.call-govid-row.gov-saved {
    animation: gov-saved-flash 1s ease-out;
}


/* ============================================================
   69. CALL — job context strip + requirements match
   ============================================================ */
.call-context-strip {
    padding: 14px 20px;
    background: linear-gradient(135deg, #0a66c2 0%, #0553a6 100%);
    border-bottom: 1px solid #1f2937;
    flex-shrink: 0;
}
.call-context-job {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}
.call-context-company {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
}
.call-context-match {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--r-pill);
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(255,255,255,0.18);
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}
.call-context-match-good { background: #16a34a; }
.call-context-match-mid  { background: #d97706; }
.call-context-match-low  { background: #dc2626; }

.call-match-score {
    display: inline-block;
    margin-left: auto;
    padding: 2px 10px;
    border-radius: var(--r-pill);
    background: #1e3a5f;
    color: #7dd3fc;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.call-match-list { display: flex; flex-direction: column; gap: 6px; }
.call-match-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #334155;
    background: #0b1220;
    font-size: 0.8rem;
}
.call-match-item-met  { border-color: #16a34a; background: #052e16; }
.call-match-item-pend { border-color: #d97706; background: #2a1f0a; }
.call-match-item-miss { border-color: #dc2626; background: #2a0c0c; }

.call-match-item-icon { font-size: 0.95rem; flex-shrink: 0; }
.call-match-item-body { flex: 1; min-width: 0; }
.call-match-item-name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 0.82rem;
}
.call-match-item-code {
    padding: 1px 6px;
    border-radius: 3px;
    background: #1f2937;
    color: #7dd3fc;
    font-size: 0.62rem;
    font-weight: 700;
    font-family: ui-monospace, monospace;
}
.call-match-item-meta {
    color: #94a3b8;
    font-size: 0.72rem;
    line-height: 1.4;
}

.call-skill-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.call-skill-chip {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: #1e3a5f;
    color: #a5d8ff;
    border: 1px solid #334155;
    font-size: 0.72rem;
    font-weight: 600;
}

.call-cover {
    padding: 12px 14px;
    background: #0b1220;
    border-left: 3px solid #0a66c2;
    border-radius: 4px;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #cbd5e1;
    max-height: 220px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.call-item-sub .muted { color: #64748b; }


/* ============================================================
   70. CALL — final responsive
   ============================================================ */
@media (max-width: 700px) {
    .call-sidebar-header { padding: 14px 16px 12px; }
    .csh-avatar { width: 44px; height: 44px; }
    .csh-initial { font-size: 1.1rem; }
    .csh-name { font-size: 0.94rem; }

    .csp-avatar { width: 64px; height: 64px; }
    .csp-initial { font-size: 1.4rem; }

    .call-sidebar-footer { padding: 12px; gap: 6px; }
    .call-outcome-btn { padding: 9px 6px; font-size: 0.76rem; }

    .call-match-summary-score { font-size: 1.4rem; }

    .call-header-context { font-size: 0.74rem; max-width: 30vw; padding-left: 10px; }
}


/* ============================================================
   71. JOB DETAIL — visual polish
   Override layer for §44/§45. Kept as-is for this pass; the
   !important markers will be folded into the base rules in the
   Phase 2 consolidation commit.
   ============================================================ */
.job-detail-page {
    max-width: 920px;
    gap: 14px;
}

.job-detail-card { padding: 24px 26px 20px !important; }

.job-detail-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 20px !important;
    margin-bottom: 14px !important;
}

.job-detail-title {
    font-size: 1.7rem !important;
    line-height: 1.18 !important;
    letter-spacing: -0.025em !important;
    margin: 0 0 6px !important;
}

.job-detail-company {
    font-size: 0.98rem !important;
    color: var(--text-soft) !important;
    font-weight: 500 !important;
}

.job-detail-header > div:last-child {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
    padding-top: 4px !important;
}

.job-detail-header > div:last-child form {
    display: inline-flex !important;
    margin: 0 !important;
}

.job-detail-header .job-applied-badge {
    font-size: 0.72rem !important;
    padding: 5px 12px !important;
    line-height: 1.2 !important;
}

.job-detail-header .btn-sm {
    padding: 6px 16px !important;
    font-size: 0.82rem !important;
    border-radius: var(--r-pill) !important;
    height: 32px !important;
    white-space: nowrap !important;
}

.job-detail-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
    padding-top: 2px !important;
    font-size: 0.83rem !important;
}

.job-detail-meta .job-meta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 12px !important;
    background: var(--surface-alt) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: var(--r-pill) !important;
    color: var(--text-soft) !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    line-height: 1.3 !important;
}

.job-detail-meta .job-meta.job-meta-muted {
    background: transparent !important;
    border-color: transparent !important;
    padding: 5px 0 !important;
    color: var(--text-muted) !important;
    font-weight: 400 !important;
}

.job-detail-skills {
    gap: 8px !important;
    padding-top: 6px !important;
}

.job-skill-pill {
    padding: 5px 12px !important;
    font-size: 0.76rem !important;
}

.job-detail-page .card .avatar-initial[style*="48px"] {
    width: 56px !important;
    height: 56px !important;
    font-size: 1.4rem !important;
    border-radius: var(--r-md) !important;
}

.job-description {
    font-size: 0.95rem !important;
    line-height: 1.75 !important;
    color: var(--text-soft) !important;
}

.job-match-mode {
    padding: 4px 12px !important;
    font-size: 0.7rem !important;
}

.job-match-header {
    gap: 20px !important;
    padding: 14px 0 18px !important;
    margin-bottom: 16px !important;
    border-bottom: 1px solid var(--divider) !important;
    align-items: center !important;
}

.job-match-score { min-width: 92px !important; text-align: left !important; }
.job-match-score-value {
    font-size: 2.4rem !important;
    line-height: 1 !important;
    margin-bottom: 6px !important;
    letter-spacing: -0.03em !important;
}
.job-match-score-label {
    font-size: 0.7rem !important;
    color: var(--text-muted) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    font-weight: 600 !important;
    margin-top: 0 !important;
}
.job-match-bar {
    height: 10px !important;
    background: var(--surface-alt) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 999px !important;
    overflow: hidden !important;
}
.job-match-bar-fill { border-radius: 999px !important; }

.job-match-list { gap: 8px !important; }
.job-match-item {
    padding: 12px 14px !important;
    gap: 12px !important;
    align-items: center !important;
}
.job-match-item-icon {
    width: 22px !important;
    font-size: 1rem !important;
    flex-shrink: 0 !important;
}
.job-match-item-title { margin-bottom: 4px !important; gap: 8px !important; }
.job-match-item-name { font-size: 0.88rem !important; }
.job-match-item-level { font-size: 0.8rem !important; line-height: 1.5 !important; }
.job-match-item-claim {
    padding: 7px 14px !important;
    font-size: 0.76rem !important;
    align-self: center !important;
    border-radius: var(--r-pill) !important;
}

.job-apply-form textarea {
    min-height: 150px !important;
    font-size: 0.94rem !important;
}

@media (max-width: 640px) {
    .job-detail-card { padding: 18px 18px 16px !important; }
    .job-detail-title { font-size: 1.35rem !important; }
    .job-detail-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    .job-detail-header > div:last-child {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
    }
    .job-match-score-value { font-size: 1.9rem !important; }
    .job-match-score { min-width: 0 !important; }
    .job-match-header { gap: 12px !important; }
    .job-match-bar { min-width: 100% !important; }
    .job-match-item {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}


/* ============================================================
   72. CALL VISUAL POLISH — full-screen + widget
   Override layer for §60/§61. Kept as-is for this pass; the
   !important markers will be folded into the base rules in the
   Phase 2 consolidation commit.
   ============================================================ */
.call-avatar-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 20px;
    text-align: center;
}
.call-avatar-initial {
    width: 148px;
    height: 148px;
    font-size: 3rem;
    box-shadow: 0 12px 40px rgba(10, 102, 194, 0.35);
    position: relative;
}
.call-avatar-initial::after {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 2px solid rgba(96, 165, 250, 0.35);
    animation: ac-call-halo 2.2s ease-in-out infinite;
}
@keyframes ac-call-halo {
    0%, 100% { transform: scale(1);    opacity: 0.65; }
    50%      { transform: scale(1.08); opacity: 0.15; }
}
.call-avatar-name {
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    margin: 8px 0 4px;
}
.call-avatar-status {
    font-size: 0.88rem;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.call-avatar-status::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0;
    animation: ac-dot-pulse 1.6s ease-in-out infinite;
    box-shadow: 8px 0 0 currentColor, 16px 0 0 currentColor;
    margin-left: 4px;
}
@keyframes ac-dot-pulse {
    0%, 20%   { opacity: 0; }
    40%, 60%  { opacity: 0.9; }
    80%, 100% { opacity: 0; }
}

.call-main-feed {
    margin: 0 16px;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
}
.call-self-view {
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
    border-radius: 14px;
    transition: transform 0.15s ease;
}
.call-self-view:hover { transform: scale(1.03); }
.call-self-label {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.call-header {
    padding: 14px 22px;
    height: 60px;
    border-bottom: 1px solid rgba(31, 41, 55, 0.55);
    background: linear-gradient(180deg, rgba(11, 18, 32, 0.85), rgba(11, 18, 32, 0));
    backdrop-filter: blur(6px);
}
.call-timer {
    font-size: 1rem;
    letter-spacing: 0.02em;
}
.call-room-code {
    font-size: 0.78rem;
    color: #94a3b8;
}
.call-status-dot {
    width: 9px;
    height: 9px;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.18);
}
.call-status-dot-ok   { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22); }
.call-status-dot-warn { box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.22); }
.call-status-dot-err  { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.22); }
.call-header-btn {
    transition: background 0.15s, color 0.15s, transform 0.1s;
}
.call-header-btn:hover { transform: translateY(-1px); }

.call-controls {
    padding: 22px 24px;
    height: 96px;
    background: linear-gradient(0deg, #0b1220 60%, rgba(11, 18, 32, 0));
}
.call-controls-center { gap: 14px; }
.call-btn {
    width: 54px;
    height: 54px;
    font-size: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: background 0.15s, color 0.15s, transform 0.1s;
}
.call-btn:hover { transform: translateY(-2px); }
.call-btn:active { transform: translateY(0); }
.call-btn.off {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25),
                0 4px 14px rgba(0, 0, 0, 0.4);
}
.call-btn-end {
    width: 72px;
    height: 54px;
    border-radius: 27px;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45);
}
.call-btn-end:hover { box-shadow: 0 8px 24px rgba(220, 38, 38, 0.6); }

.call-name-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 8px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    max-width: 60%;
}
.call-name-tag-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #0a66c2 0%, #0553a6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}
.call-name-tag-avatar img { width: 100%; height: 100%; object-fit: cover; }
.call-name-tag-text { min-width: 0; }
.call-name-tag-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.call-name-tag-role {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.call-name-tag-role-verified { color: #86efac; }
.call-name-tag-role-verified::before {
    content: '✓ ';
    font-weight: 700;
}

.call-quality {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(100, 116, 139, 0.18);
    color: #94a3b8;
    white-space: nowrap;
}
.call-quality-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}
.call-quality-good { color: #4ade80; background: rgba(34, 197, 94, 0.12); }
.call-quality-fair { color: #fbbf24; background: rgba(234, 179, 8, 0.12); }
.call-quality-poor { color: #f87171; background: rgba(220, 38, 38, 0.12); }

.call-match-ring {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: var(--r-md);
    background: #0b1220;
    border: 1px solid #1f2937;
    margin-bottom: 18px;
}
.call-match-ring-svg {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    transform: rotate(-90deg);
}
.call-match-ring-track {
    fill: none;
    stroke: #1f2937;
    stroke-width: 6;
}
.call-match-ring-fill {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
}
.call-match-ring-good .call-match-ring-fill { stroke: #4ade80; }
.call-match-ring-mid  .call-match-ring-fill { stroke: #fbbf24; }
.call-match-ring-low  .call-match-ring-fill { stroke: #f87171; }
.call-match-ring-label { flex: 1; min-width: 0; }
.call-match-ring-value {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}
.call-match-ring-good .call-match-ring-value { color: #4ade80; }
.call-match-ring-mid  .call-match-ring-value { color: #fbbf24; }
.call-match-ring-low  .call-match-ring-value { color: #f87171; }
.call-match-ring-sub {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.4;
}

.call-govid-status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 6px;
    background: currentColor;
    vertical-align: middle;
    transform: translateY(-1px);
}
.call-govid-status-expiring::before {
    animation: ac-gov-warn 1.4s ease-in-out infinite;
}
@keyframes ac-gov-warn {
    0%, 100% { opacity: 1;   transform: translateY(-1px) scale(1); }
    50%      { opacity: 0.5; transform: translateY(-1px) scale(1.35); }
}

.call-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
}
.call-section + .call-section {
    padding-top: 16px;
    border-top: 1px solid #1f2937;
    margin-top: 16px;
}

.call-int-avatar {
    position: relative;
    box-shadow: 0 6px 20px rgba(10, 102, 194, 0.35);
}
.call-int-verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 8px;
}

.cw-call-stage { border-radius: 0; }
.cw-call-self {
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}
.cw-call-name-tag {
    padding: 5px 12px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}
.cw-call-ring-av {
    box-shadow: 0 8px 24px rgba(10, 102, 194, 0.4);
}
.cw-call-ctrl {
    transition: background 0.15s, transform 0.1s;
}
.cw-call-ctrl:hover { transform: translateY(-1px); }
.cw-call-ctrl:active { transform: translateY(0); }

.call-ring-overlay { backdrop-filter: blur(8px); }
.call-ring-card {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.15);
}
.call-ring-av {
    box-shadow: 0 0 0 6px rgba(10, 102, 194, 0.15);
    position: relative;
}
.call-ring-btn {
    transition: opacity 0.15s, transform 0.1s;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.call-ring-btn:hover { transform: translateY(-1px); opacity: 0.94; }
.call-ring-btn:active { transform: translateY(0); }

@media (max-width: 700px) {
    .call-avatar-initial { width: 112px; height: 112px; font-size: 2.4rem; }
    .call-avatar-name { font-size: 1.1rem; }
    .call-controls { padding: 16px; height: 82px; }
    .call-btn { width: 48px; height: 48px; font-size: 1.1rem; }
    .call-btn-end { width: 62px; height: 48px; }
    .call-name-tag { max-width: 78%; padding: 6px 12px 6px 6px; }
    .call-name-tag-avatar { width: 26px; height: 26px; font-size: 0.72rem; }
    .call-name-tag-name { font-size: 0.82rem; }
    .call-name-tag-role { font-size: 0.66rem; }
    .call-match-ring { padding: 12px; }
    .call-match-ring-svg { width: 54px; height: 54px; }
    .call-match-ring-value { font-size: 1.2rem; }
}


/* ============================================================
   73. BADGE COMPONENT
   ============================================================ */
.ac-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.3;
    border: 1px solid transparent;
    white-space: nowrap;
    vertical-align: middle;
    font-family: inherit;
}

.ac-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    line-height: 1;
}

.ac-badge-label { display: inline-block; line-height: 1; }

/* --- Skill verification tiers --- */
.ac-badge-skill.tier-none       { background: var(--surface-alt); color: var(--text-muted);   border-color: var(--border-light); }
.ac-badge-skill.tier-pending    { background: #fffbeb;            color: #92400e;             border-color: #fde68a; }
.ac-badge-skill.tier-bronze     { background: #fef3e2;            color: #92400e;             border-color: #f9c89b; }
.ac-badge-skill.tier-school     { background: #eef2ff;            color: #3730a3;             border-color: #c7d2fe; }
.ac-badge-skill.tier-employer   { background: #f5f3ff;            color: #5b21b6;             border-color: #ddd6fe; }
.ac-badge-skill.tier-government { background: #ecfeff;            color: #155e75;             border-color: #a5f3fc; }
.ac-badge-skill.tier-gold       { background: #fef9c3;            color: #854d0e;             border-color: #fde047; }

/* --- PSF claim statuses --- */
.ac-badge-psf.psf-verified { background: var(--success-soft); color: var(--success);     border-color: var(--success-border); }
.ac-badge-psf.psf-pending  { background: #fffbeb;             color: #92400e;            border-color: #fde68a; }
.ac-badge-psf.psf-rejected { background: var(--danger-soft);  color: var(--danger);      border-color: var(--danger-border); }
.ac-badge-psf.psf-expired  { background: var(--surface-alt);  color: var(--text-muted);  border-color: var(--border-light); }

/* --- PSF requirement (job side) --- */
.ac-badge-req {
    background: var(--accent-soft);
    color: var(--accent-hover);
    border-color: var(--accent-soft-2);
}

/* --- Match score badge (employer applicant rows) --- */
.ac-badge-match {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    min-width: 42px;
    justify-content: center;
}
.ac-badge-match-good { background: var(--success-soft); color: var(--success);     border-color: var(--success-border); }
.ac-badge-match-mid  { background: #fffbeb;             color: #92400e;            border-color: #fde68a; }
.ac-badge-match-low  { background: var(--danger-soft);  color: var(--danger);      border-color: var(--danger-border); }
.ac-badge-match-na   { background: var(--surface-alt);  color: var(--text-muted);  border-color: var(--border-light); font-size: 0.7rem; }

/* --- "+N more" overflow pill --- */
.ac-badge-more {
    background: var(--surface-alt);
    color: var(--text-muted);
    border-color: var(--border-light);
    font-weight: 700;
}

/* --- Row container --- */
.ac-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.ac-badge-row + .ac-badge-row { margin-top: 6px; }

/* --- Removable wrap (X badge) --- */
.ac-badge-wrap {
    position: relative;
    display: inline-flex;
}
.ac-badge-x {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-soft);
    color: #fff;
    border: 2px solid var(--surface);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: inherit;
    transition: background 0.15s;
}
.ac-badge-x:hover { background: var(--danger); }

/* --- Profile header badge row (compact) --- */
.profile-page .name-wrap .ac-badge-row {
    margin-top: 10px;
    max-width: 100%;
}

/* --- Network / search rows --- */
.conn-badges {
    margin-top: 6px;
    gap: 4px;
}
.conn-badges .ac-badge { padding: 2px 8px; font-size: 0.68rem; }
.conn-badges .ac-badge-icon { font-size: 0.76rem; }

/* --- Employer applicant row match badge --- */
.emp-app-match {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* --- Call sidebar verified tab --- */
.call-match-item .ac-badge { font-size: 0.7rem; padding: 2px 8px; }


/* ============================================================
   74. CALL UI — Extras (Notes, Socials, Gov)
   ============================================================ */

.call-social-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.call-social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.15s;
}
.call-social-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.cs-icon { font-size: 1rem; }

.call-notes-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #1f2937;
}
.call-save-indicator {
    float: right;
    font-size: 0.7rem;
    color: #22c55e;
    font-weight: 500;
}
.call-notes-textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px;
    background: #0b1220;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #cbd5e1;
    font-family: inherit;
    font-size: 0.85rem;
    resize: vertical;
    outline: none;
}
.call-notes-textarea:focus {
    border-color: #60a5fa;
}

.call-gov-pct {
    float: right;
    font-size: 0.7rem;
    color: #60a5fa;
    font-weight: 600;
    background: rgba(96,165,250,0.15);
    padding: 2px 8px;
    border-radius: 12px;
}
.call-gov-warning {
    background: rgba(220, 38, 38, 0.15);
    border-left: 3px solid #dc2626;
    color: #fca5a5;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.call-attached-files {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.call-attached-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #0b1220;
    border: 1px solid #1f2937;
    border-radius: 6px;
}
.call-attached-item .icon { font-size: 1.2rem; }
.call-attached-item .info { flex: 1; min-width: 0; }
.call-attached-item .name { font-size: 0.85rem; font-weight: 600; color: #e2e8f0; }
.call-attached-item .meta { font-size: 0.72rem; color: #64748b; }
.call-attached-item .download { color: #60a5fa; text-decoration: none; font-weight: 700; }

.call-details {
    border-bottom: 1px solid #1f2937;
}
.call-details summary {
    cursor: pointer;
    list-style: none;
    outline: none;
    padding: 10px 0;
}
.call-details summary::-webkit-details-marker { display: none; }
.call-details summary:hover .call-item-title { color: #60a5fa; }
.call-details-content {
    padding: 0 0 10px 0;
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
}


/* ============================================================
   75. CALL UI — Fixes & Additions
   The `#call-remote-video { transform: none !important; }` rule
   that used to open this section is superseded by the mirror-fix
   rule in §77 (scaleX(-1)) and was removed.
   ============================================================ */

/* Summary hover effect */
.summary-hover {
    transition: background 0.15s;
    border-radius: 4px;
    padding: 10px;
    margin: 0 -10px;
}
.summary-hover:hover {
    background: rgba(255,255,255,0.05);
}

/* PSF Info Button */
.call-info-btn {
    background: none;
    border: none;
    color: #60a5fa;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 2px 6px;
    margin-left: auto;
    border-radius: 4px;
    transition: background 0.15s;
}
.call-info-btn:hover {
    background: rgba(96, 165, 250, 0.2);
}

/* Full profile modal */
.call-modal-overlay[hidden] { display: none !important; }
.call-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11,18,32,0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.call-modal {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
}
.call-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
}
.call-modal-close:hover { color: #fff; }
.call-modal-title {
    margin: 0;
    padding: 20px 24px;
    font-size: 1.1rem;
    color: #f1f5f9;
    border-bottom: 1px solid #334155;
}
.call-modal-body {
    padding: 24px;
    overflow-y: auto;
    color: #cbd5e1;
}
.call-modal-section { margin-bottom: 20px; }
.call-modal-section h4 {
    margin: 0 0 8px;
    color: #60a5fa;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.call-modal-section p { margin: 0 0 8px; font-size: 0.9rem; line-height: 1.5; }


/* ============================================================
   76. MOBILE VIEW — Call sidebar resizing
   ============================================================ */
@media (max-width: 800px) {
    .call-layout {
        flex-direction: column;
        height: 100dvh;
    }
    .call-video-area {
        height: 40vh;
        min-height: 260px;
        flex: none;
    }
    .call-main-feed {
        margin: 0 8px;
        border-radius: 8px;
    }
    .call-sidebar {
        width: 100%;
        flex: 1;
        min-height: 0;
        border-left: none;
        border-top: 1px solid #1f2937;
    }
    .call-tab-content { max-height: none; }
    .call-self-view {
        width: 100px;
        height: 75px;
        right: 12px;
        bottom: 12px;
    }
    .call-name-tag { left: 12px; bottom: 12px; font-size: 0.75rem; }
    .call-controls { padding: 10px; height: 64px; }
    .call-btn { width: 40px; height: 40px; font-size: 0.95rem; }
    .call-btn-end { width: 54px; }
    .call-modal { max-height: 95dvh; }
}


/* ============================================================
   77. MIRROR FIX — remote video
   Both roles see their peer mirrored. Supersedes any earlier
   `#call-remote-video { transform: none }` rule.
   ============================================================ */
#call-remote-video {
    transform: scaleX(-1) !important;
}


/* ============================================================
   78. MOBILE SWIPE-TO-SHRINK — transitions
   The compact-state VALUES live in §80 (Final landscape + portrait).
   These transitions animate the shrink/grow. The .call-video-area
   transition and touch-action are set by §80 directly so they can
   differ between portrait (touch-action: none) and landscape
   (touch-action: auto).
   ============================================================ */
@media (max-width: 800px) {
    .call-layout { transition: none; }

    .call-header {
        transition: height 0.3s ease, opacity 0.25s ease,
                    padding 0.3s ease, border-bottom 0.3s ease;
        overflow: hidden;
    }
    .call-main-feed {
        transition: margin 0.3s ease, border-radius 0.3s ease;
    }
    .call-controls {
        transition: height 0.3s ease, padding 0.3s ease;
        overflow: hidden;
    }
    .call-self-view {
        transition: width 0.35s ease, height 0.35s ease,
                    right 0.35s ease, bottom 0.35s ease;
    }
    .call-avatar-initial {
        transition: width 0.35s ease, height 0.35s ease, font-size 0.35s ease;
    }
    .call-avatar-name {
        transition: font-size 0.35s ease, margin 0.35s ease;
    }
    .call-avatar-status {
        transition: font-size 0.35s ease;
    }
    .call-name-tag {
        transition: opacity 0.25s ease;
    }
}


/* ============================================================
   79. MOBILE LAYOUT — landscape + compact swipe behavior
   Catches portrait ≤ 800 AND landscape ≤ 500-height. Works in
   combination with §80 which handles the portrait/landscape split
   with different base rules. This section supplies the shared base
   layout that §80 assumes is in place.
   ============================================================ */
@media (max-width: 800px),
       ((max-height: 500px) and (orientation: landscape)) {

    .call-layout {
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
        width: 100%;
        overflow: hidden;
    }

    .call-video-area {
        flex: none;
        height: 40vh;
        min-height: 200px;
        max-height: 45vh;
        overflow: hidden;
        transition: height 0.35s ease,
                    min-height 0.35s ease,
                    max-height 0.35s ease;
    }

    .call-sidebar {
        width: 100% !important;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
        border-left: none;
        border-top: 1px solid #1f2937;
    }

    .call-tab-content {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .call-tab {
        padding: 10px 4px;
        font-size: 0.72rem;
    }

    /* ---------- COMPACT STATE (after swipe up) ---------- */

    .call-layout.is-compact-video .call-video-area {
        height: 22vh;
        min-height: 100px;
        max-height: 220px;
    }

    .call-layout.is-compact-video .call-header {
        height: 0;
        padding: 0;
        opacity: 0;
        border-bottom: 0;
        overflow: hidden;
    }

    .call-layout.is-compact-video .call-main-feed {
        margin: 4px 8px 0;
    }

    .call-layout.is-compact-video .call-controls {
        height: 42px;
        padding: 4px 10px;
    }

    .call-layout.is-compact-video .call-btn {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    .call-layout.is-compact-video .call-btn-end {
        width: 46px;
        height: 34px;
        border-radius: 17px;
    }

    .call-layout.is-compact-video .call-self-view {
        width: 60px;
        height: 44px;
        right: 8px;
        bottom: 8px;
    }

    .call-layout.is-compact-video .call-avatar-initial {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .call-layout.is-compact-video .call-avatar-initial::after {
        inset: -5px;
        border-width: 1px;
    }

    .call-layout.is-compact-video .call-avatar-name {
        font-size: 0.75rem;
        margin: 2px 0;
    }

    .call-layout.is-compact-video .call-avatar-status {
        font-size: 0.62rem;
    }

    .call-layout.is-compact-video .call-name-tag {
        opacity: 0;
    }

    .call-layout.is-compact-video .call-sidebar-footer {
        padding: 8px;
        gap: 6px;
    }

    .call-layout.is-compact-video .call-outcome-btn {
        padding: 8px 4px;
        font-size: 0.72rem;
    }
}


/* ============================================================
   80. FINAL LANDSCAPE + PORTRAIT FIXES
   Canonical mobile override layer for the interview call. Both
   §76 and §79 above supply base rules that this section refines.
   ============================================================ */

/* --- 1. PORTRAIT ONLY: Stacked Layout & Swipe Shrink --- */
@media (max-width: 800px) and (orientation: portrait) {
    .call-layout {
        flex-direction: column;
        height: 100vh;
        width: 100%;
        overflow: hidden;
    }

    .call-video-area {
        flex: none;
        height: 40vh;
        min-height: 200px;
        max-height: 45vh;
        overflow: hidden;
        touch-action: none;
        transition: height 0.3s ease, min-height 0.3s ease, max-height 0.3s ease;
    }

    .call-sidebar {
        width: 100% !important;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
        border-left: none;
        border-top: 1px solid #1f2937;
    }

    .call-tab-content {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .call-tab {
        padding: 10px 4px;
        font-size: 0.72rem;
    }

    /* Compact State (Swipe Up) */
    .call-layout.is-compact-video .call-video-area {
        height: 15vh;
        min-height: 90px;
        max-height: 120px;
    }

    .call-layout.is-compact-video .call-header {
        height: 0;
        padding: 0;
        opacity: 0;
        border-bottom: 0;
        overflow: hidden;
    }

    .call-layout.is-compact-video .call-main-feed {
        margin: 0 8px;
        border-radius: 6px;
    }

    .call-layout.is-compact-video .call-controls {
        height: 34px;
        padding: 2px 8px;
    }

    .call-layout.is-compact-video .call-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .call-layout.is-compact-video .call-btn-end {
        width: 38px;
        height: 28px;
        border-radius: 14px;
    }

    .call-layout.is-compact-video .call-self-view {
        width: 44px;
        height: 32px;
        right: 6px;
        bottom: 6px;
        border-radius: 4px;
    }

    .call-layout.is-compact-video .call-avatar-initial {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        margin-bottom: 2px;
    }

    .call-layout.is-compact-video .call-avatar-initial::after {
        display: none;
    }

    .call-layout.is-compact-video .call-avatar-name {
        font-size: 0.65rem;
        margin: 0;
    }

    .call-layout.is-compact-video .call-avatar-status,
    .call-layout.is-compact-video .call-name-tag {
        display: none;
    }

    .call-layout.is-compact-video .call-sidebar-footer {
        padding: 6px;
        gap: 4px;
    }

    .call-layout.is-compact-video .call-outcome-btn {
        padding: 6px 4px;
        font-size: 0.7rem;
    }
}

/* --- 2. LANDSCAPE: PC Mimic + Expandable Sidebar --- */
@media (max-height: 500px) and (orientation: landscape) {

    .call-layout {
        flex-direction: row;
        height: 100vh;
        width: 100%;
    }

    .call-video-area {
        flex: 1;
        height: 100vh;
        min-height: 100vh;
        max-height: none;
        touch-action: auto;
        transition: width 0.3s ease, flex 0.3s ease;
    }

    .call-sidebar {
        width: 380px !important;
        flex-shrink: 0;
        height: 100vh;
        border-left: 1px solid #1f2937;
        border-top: none;
        transition: width 0.3s ease, flex 0.3s ease;
    }

    .call-tab-content {
        overflow-y: auto;
    }

    /* --- Expanded Sidebar Mode --- */
    .call-layout.is-sidebar-expanded .call-video-area {
        flex: none;
        width: 180px;
    }

    .call-layout.is-sidebar-expanded .call-sidebar {
        flex: 1 !important;
        width: auto !important;
    }

    .call-layout.is-sidebar-expanded .call-header {
        display: none;
    }

    .call-layout.is-sidebar-expanded .call-main-feed {
        margin: 10px 6px;
    }

    .call-layout.is-sidebar-expanded .call-controls {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        height: auto;
        padding: 6px 0;
        gap: 6px;
    }

    .call-layout.is-sidebar-expanded .call-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .call-layout.is-sidebar-expanded .call-btn-end {
        width: 32px;
        height: 32px;
        border-radius: 16px;
    }

    .call-layout.is-sidebar-expanded .call-self-view {
        width: 80px;
        height: 60px;
        right: 6px;
        bottom: 6px;
    }

    .call-layout.is-sidebar-expanded .call-avatar-initial {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }

    .call-layout.is-sidebar-expanded .call-avatar-name {
        font-size: 0.85rem;
        margin-top: 8px;
    }

    .call-layout.is-sidebar-expanded .call-avatar-status {
        display: none;
    }

    .call-layout.is-sidebar-expanded .call-name-tag {
        display: none;
    }

    /* Compress the sidebar header */
    .call-sidebar-header {
        padding: 8px 12px;
    }

    .csh-avatar {
        width: 36px;
        height: 36px;
    }

    .csh-name {
        font-size: 0.85rem;
        margin-bottom: 0;
    }

    .csh-headline {
        font-size: 0.7rem;
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .csh-job, .csh-meta {
        display: none;
    }

    .csh-match {
        padding: 2px 8px;
        font-size: 0.65rem;
    }

    .call-tabs {
        padding: 0;
    }

    .call-tab {
        padding: 8px 4px;
        font-size: 0.7rem;
    }
}


/* ============================================================
   81. AUTH PORTALS (Employer & Institution links)
   ============================================================ */
.auth-portals {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.auth-portals-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}

.auth-portals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.auth-portal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--r-md);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.auth-portal-btn i {
    font-size: 1.1rem;
}

.auth-portal-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

@media (max-width: 400px) {
    .auth-portals-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   82. EMPLOYER SETTINGS — Polished Layout
   ============================================================ */

/* Tabs Header Strip */
.settings-tabs-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0;
}

.settings-tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.15s, border-color 0.15s;
    font-family: inherit;
    margin-bottom: -1px;
}

.settings-tab-btn:hover {
    color: var(--text);
    background: var(--surface-alt);
    border-radius: var(--r-md) var(--r-md) 0 0;
}

.settings-tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Form Card */
.settings-form-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    padding: 32px;
}

.settings-form-card .form-row {
    margin-bottom: 20px;
}

.settings-form-card .field {
    margin-bottom: 0;
}

.settings-form-card .field-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.settings-form-card input[type="text"],
.settings-form-card input[type="url"],
.settings-form-card input[type="email"],
.settings-form-card input[type="password"],
.settings-form-card select {
    height: 46px;
    padding: 10px 16px;
    font-size: 0.95rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.settings-form-card input:focus,
.settings-form-card select:focus {
    border-color: var(--accent);
    box-shadow: var(--focus-ring);
    outline: none;
}

.settings-form-card input[readonly],
.settings-form-card select:disabled {
    background: var(--surface-alt);
    color: var(--text-muted);
    cursor: not-allowed;
    border-color: var(--border-light);
}

.settings-form-card .form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--divider);
}

.settings-form-card .form-actions .btn {
    padding: 12px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--r-md);
    min-width: 160px;
}

@media (max-width: 640px) {
    .settings-form-card {
        padding: 20px;
    }
    .settings-tabs-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        padding-bottom: 1px;
    }
    .settings-tab-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    .settings-form-card .form-actions .btn {
        width: 100%;
    }
}


/* ============================================================
   83. EMPLOYER SETTINGS — Perks & Branding
   ============================================================ */

.perks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.perk-checkbox {
    display: block;
    cursor: pointer;
    position: relative;
}

.perk-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.perk-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-soft);
    transition: all 0.15s ease;
}

.perk-checkbox:hover .perk-box {
    background: var(--surface-alt);
    border-color: var(--accent-soft-2);
}

.perk-checkbox input:checked ~ .perk-box {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}

.perk-checkbox input:disabled ~ .perk-box {
    opacity: 0.6;
    cursor: not-allowed;
}

.perk-icon {
    font-size: 1.1rem;
}


/* ============================================================
   84. TAB VISIBILITY FIX
   ============================================================ */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}


/* ============================================================
   85. BRANDING LAYOUT FIX
   ============================================================ */

.branding-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--divider);
}

.logo-block {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cover-block {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.branding-preview {
    width: 100%;
    background: var(--surface-alt);
    border: 2px dashed var(--border);
    border-radius: var(--r-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.logo-preview {
    aspect-ratio: 1 / 1;
    border-radius: var(--r-md);
}

.logo-preview span {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-muted);
}

.cover-preview {
    aspect-ratio: 3 / 1;
}

.branding-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.branding-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.branding-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 2px;
}

.branding-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.hidden-file-input {
    display: none !important;
}

.upload-btn {
    margin-bottom: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 0.85rem;
}

.file-name-display {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ============================================================
   86. INSTITUTION FLOW STYLES
   ============================================================ */

/* Header / Sidebar Tweaks */
.institution-badge {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}
.sidebar-divider {
    height: 1px;
    background-color: var(--border-light);
    margin: 8px 4px;
}

/* Dashboard Grid & Clickable Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}
.clickable-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.clickable-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.card-hint {
    font-size: 0.8rem;
    margin-top: 8px;
    opacity: 0.7;
}

/* Dashboard Layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}
@media (max-width: 768px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
}

/* Recent Activity Feed */
.recent-activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.activity-row {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--surface);
}
.activity-icon {
    font-size: 1.5rem;
    margin-right: 12px;
}
.activity-text {
    flex: 1;
}
.activity-title {
    font-weight: 600;
    font-size: 0.95rem;
}
.activity-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.badge-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-verified {
    background: #d1fae5;
    color: #065f46;
}
.badge-rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* Quick Actions Panel */
.quick-actions-panel {
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.quick-actions-divider {
    margin: 20px 0 16px;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}
.btn-full-width {
    width: 100%;
    display: block;
    text-align: center;
}

/* Queue Filters */
.queue-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.btn-filter-inactive {
    background-color: transparent !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: none !important;
}
.btn-filter-inactive:hover {
    background-color: var(--surface-alt) !important;
    color: var(--text-main) !important;
}
.queue-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 8px;
}
.emp-app-row {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

/* Review Page */
.applicant-context {
    display: flex;
    gap: 16px;
    align-items: center;
}
.applicant-avatar {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}
.applicant-avatar-initial {
    font-size: 1.5rem;
}
.applicant-name {
    margin: 0 0 4px;
    font-size: 1.15rem;
}
.applicant-headline {
    margin: 0;
    font-size: 0.9rem;
}
.applicant-email {
    margin: 4px 0 0;
    font-size: 0.85rem;
}
.verify-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.verify-detail-wide {
    grid-column: 1 / -1;
}
.verify-detail-desc-box {
    font-weight: normal;
    font-size: 0.85rem;
    background: var(--surface-alt);
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid var(--accent);
    margin-top: 4px;
}
.verify-detail-desc-box p {
    margin: 0 0 8px;
}
.verify-detail-desc-box p:last-child {
    margin: 0;
}
.proof-image-container {
    margin-top: 8px;
}
.proof-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}
.review-actions-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.btn-cancel-flex {
    flex: 0 0 auto;
}
.btn-reject-flex {
    flex: 1;
}
.btn-approve-flex {
    flex: 2;
}

/* Credentials Page */
.credentials-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 768px) {
    .credentials-layout {
        grid-template-columns: 1fr;
    }
}
.btn-create-cred {
    width: 100%;
    margin-top: 12px;
}
.alert-success-box {
    margin-bottom: 20px;
    background: #d1fae5;
    color: #065f46;
    padding: 12px;
    border-radius: 6px;
}


/* ============================================================
   87. INPUT SYSTEM & TABLES
   ============================================================ */

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th, .data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
}

.data-table th {
    background-color: var(--surface-alt);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.alert-error-box {
    margin-bottom: 20px;
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 6px;
}

.cert-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cert-block {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 16px;
    background-color: var(--surface);
}

.cert-header h3 {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    color: var(--accent);
}

.cert-versions {
    background-color: var(--surface-alt);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.version-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.version-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.version-list li:last-child {
    border-bottom: none;
}

.inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.inline-form input {
    flex: 1;
    min-width: 150px;
    padding: 8px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
}


/* ============================================================
   88. MANAGE CREDENTIALS — VIEW & UPDATE
   ============================================================ */
.cert-group-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cert-industry-group {
    background: var(--surface-alt);
    border-radius: 8px;
    padding: 16px;
}

.industry-title {
    margin: 0 0 16px 0;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 8px;
    letter-spacing: 0.5px;
}

.cert-item-box {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.cert-item-box:last-child {
    margin-bottom: 0;
}

.cert-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.cert-item-header .activity-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.color-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #ccc;
}

/* CSP-Safe Color Mapping */
.color-dot[data-color="#0056b3"] { background-color: #0056b3; }
.color-dot[data-color="#28a745"] { background-color: #28a745; }
.color-dot[data-color="#ffc107"] { background-color: #ffc107; }
.color-dot[data-color="#fd7e14"] { background-color: #fd7e14; }
.color-dot[data-color="#6f42c1"] { background-color: #6f42c1; }

.inline-edit-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.version-list-wrap {
    padding-left: 16px;
    border-left: 3px solid var(--border-light);
}

.version-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-light);
}

.version-row:last-of-type {
    border-bottom: none;
    margin-bottom: 12px;
}

.add-version-form {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.add-version-form input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.9rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
}

.add-version-form input[type="date"] {
    padding: 8px 12px;
    font-size: 0.9rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}


/* ============================================================
   89. TAB NAVIGATION (Create Cert & Matrix)
   ============================================================ */
.tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
}

.tab-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: var(--surface-alt);
    color: var(--text-main);
}

.tab-btn.active {
    background: var(--surface);
    border-color: var(--border-light);
    color: var(--accent);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   90. DASHBOARD V2 ADDITIONS
   ============================================================ */

/* Orange Card for Needs Info */
.stat-card.orange {
    background: #fff3e0;
    border-color: #ffe0b2;
    color: #e65100;
}
.stat-card.orange .icon { color: #f57c00; }
.stat-card.orange .label { color: #ef6c00; }
.stat-card.orange:hover {
    background: #ffe0b2;
}

/* Needs Info Badge */
.badge-needs-info {
    background: #fff3e0;
    color: #e65100;
}

/* Fix for the Quick Actions text alignment */
.quick-actions-panel {
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.quick-actions-divider {
    margin: 20px 0 16px;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}

.btn-full-width {
    width: 100%;
    display: block;
    text-align: center;
}
/* ============================================================
   QUEUE FILTERS (Modern Pills)
   ============================================================ */
.queue-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.queue-filter-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--surface-alt, #f8f9fa);
    color: var(--text-muted, #6c757d);
    border: 1px solid var(--border-light, #e9ecef);
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.queue-filter-btn:hover {
    background: #e2e8f0;
    color: var(--text-main, #333);
}

/* The Active State */
.queue-filter-btn.active {
    background: #0056b3; /* DICT Blue */
    color: #ffffff;
    border-color: #0056b3;
    box-shadow: 0 4px 6px rgba(0, 86, 179, 0.2);
}
/* ============================================================
   QUEUE TOOLBAR (Search + Filters)
   ============================================================ */
.queue-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.queue-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.queue-search-input {
    padding: 8px 16px;
    border: 1px solid var(--border-light, #ccc);
    border-radius: 50px; /* Pill shape */
    font-size: 0.9rem;
    width: 250px;
    transition: all 0.2s ease;
}

.queue-search-input:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.pagination-info {
    font-size: 0.85rem;
    color: var(--text-muted, #666);
    font-weight: 600;
}
/* ============================================================
   CREATE CERT & MATRIX STYLES
   ============================================================ */

.mb-24 { margin-bottom: 24px; }

.form-select-large {
    flex: 1;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid var(--border-light, #ccc);
    border-radius: 6px;
    background: #fff;
}

.text-accent {
    color: #0056b3;
    font-size: 1.1rem;
}

/* Matrix List */
.matrix-group { margin-top: 16px; }

.matrix-cat-title {
    font-size: 0.8rem;
    color: var(--text-muted, #666);
    margin: 16px 0 8px 0;
    border-bottom: 1px solid var(--border-light, #eee);
    padding-bottom: 4px;
    letter-spacing: 0.5px;
}

.matrix-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.matrix-list li {
    background: var(--surface-alt, #f8f9fa);
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid #0056b3;
}

.badge-level {
    background: #e2e8f0;
    color: #475569;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Cert List Layout */
.cert-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cert-block {
    border: 1px solid var(--border-light, #eee);
    border-radius: 8px;
    padding: 16px;
    background-color: var(--surface, #fff);
}

.cert-header h3 {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    color: #0056b3;
}

.cert-versions {
    background-color: var(--surface-alt, #f8f9fa);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.version-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.version-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light, #eee);
}

.version-list li:last-child {
    border-bottom: none;
}

.add-version-box {
    margin-top: 12px;
}

.inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.inline-form input {
    flex: 1;
    min-width: 150px;
    padding: 8px;
    border: 1px solid var(--border-light, #ccc);
    border-radius: 4px;
}

/* Table for Skills */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th, .data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light, #eee);
}

.data-table th {
    background-color: var(--surface-alt, #f8f9fa);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted, #666);
}
/* ============================================================
   QA TEST PAGE STYLES
   ============================================================ */

.qa-dashboard {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* --- Certification Level --- */
.qa-cert-card {
    background: var(--surface, #fff);
    border: 2px solid var(--border-light, #e2e8f0);
    border-radius: 12px;
    overflow: hidden;
}

.qa-cert-header {
    background: var(--surface-alt, #f8fafc);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light, #e2e8f0);
}

.qa-cert-title {
    margin: 0;
    font-size: 1.3rem;
    color: var(--accent, #0056b3);
}

.qa-badge-track {
    background: #e6f0fa;
    color: var(--accent, #0056b3);
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* --- Version Level --- */
.qa-version-list {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.qa-version-card {
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 8px;
    overflow: hidden;
}

.qa-version-header {
    background: #fff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-light, #e2e8f0);
}

.qa-version-title {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-main, #333);
}

.qa-version-meta {
    font-size: 0.85rem;
    color: var(--text-muted, #666);
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
}

/* --- Matrix / Skills Level --- */
.qa-matrix-list {
    padding: 16px;
    background: var(--surface-alt, #f8fafc);
}

.qa-level-group {
    margin-bottom: 24px;
}
.qa-level-group:last-child {
    margin-bottom: 0;
}

.qa-level-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-light, #e2e8f0);
}

.qa-level-title.level-basic { color: #64748b; }
.qa-level-title.level-intermediate { color: #0ea5e9; }
.qa-level-title.level-advanced { color: #0056b3; }

.qa-skill-item {
    background: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.level-border-basic { border-left: 4px solid #64748b; }
.level-border-intermediate { border-left: 4px solid #0ea5e9; }
.level-border-advanced { border-left: 4px solid #0056b3; }

.qa-skill-content {
    flex: 1;
}

.qa-skill-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.qa-skill-code {
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 700;
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    color: #334155;
}

.qa-skill-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main, #333);
}

.qa-skill-desc {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted, #666);
    line-height: 1.5;
}

.qa-skill-rank {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
/* ============================================================
   QA DOCUMENT FORMATTING (COMPLETE REPLACEMENT)
   ============================================================ */

.qa-filter-bar {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    background: var(--surface, #fff);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-light, #e2e8f0);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.qa-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 200px;
}

.qa-filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted, #666);
}

.qa-filter-group select, 
.qa-filter-group input {
    padding: 10px 12px;
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 6px;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
}

.qa-document-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

/* Enables horizontal scrolling on mobile */
.qa-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border-radius: 4px;
}

/* The Main Document Table - Auto fills on desktop */
.qa-document-table {
    border: 1px solid #000;
    background: #fff;
    color: #000;
    width: 100%; /* Auto-fills the screen */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
}

/* Generic Row Styles */
.qa-row-title, 
.qa-row-def, 
.qa-row-enablers {
    border-bottom: 1px solid #000;
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
}

.qa-row-title {
    text-align: center;
    font-size: 1.2rem;
    background: #f9f9f9;
    padding: 20px;
}

.qa-doc-group {
    font-size: 0.9rem;
    color: #555;
    margin-left: 10px;
    font-family: sans-serif;
}

.qa-row-def {
    font-size: 1rem;
    line-height: 1.6;
}

/* 3-Column Grid Layouts */
.qa-row-headers, 
.qa-row-level-desc, 
.qa-row-indicators {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Forces 3 equal columns */
    width: 100%;
    border-bottom: 1px solid #000;
}

.qa-row-indicators {
    border-bottom: 1px solid #000;
}

.qa-row-enablers {
    border-bottom: none;
}

/* Individual Columns */
.qa-col {
    padding: 16px;
    border-right: 1px solid #000;
    word-wrap: break-word;       
    overflow-wrap: break-word;   
    box-sizing: border-box;
    min-width: 0; /* Prevents grid blowout */
}

.qa-col:last-child {
    border-right: none;
}

/* Headers specific */
.qa-row-headers {
    background: #eee;
}

.qa-row-headers .qa-col {
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Level Descriptions specific */
.qa-row-level-desc .qa-col {
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
    background: #fafafa;
}

/* Indicators specific */
.qa-row-indicators .qa-col {
    font-size: 0.95rem;
    vertical-align: top;
    line-height: 1.6;
}

.qa-list {
    margin: 12px 0 0 0;
    padding-left: 20px;
}

.qa-list li {
    margin-bottom: 12px;
    line-height: 1.5;
}

.qa-list li:last-child {
    margin-bottom: 0;
}

/* Mobile Responsiveness (Only forces width on small screens) */
@media (max-width: 900px) {
    .qa-document-table {
        min-width: 800px; /* Forces scroll instead of squishing */
    }
}
/* ============================================================
   OVERRIDE CONTAINER WIDTH FOR QA PAGE
   ============================================================ */
.settings-page.qa-full-width {
    max-width: 100% !important;
    width: 100%;
    padding: 20px 40px; /* Adds a nice gutter on the edges */
    box-sizing: border-box;
}

/* Ensure the table fills the new wide container */
.qa-document-wrapper {
    width: 100%;
}

.qa-table-scroll {
    width: 100%;
}

.qa-document-table {
    width: 100%;
    table-layout: fixed;
}

/* Mobile responsiveness (still forces scroll on small screens) */
@media (max-width: 900px) {
    .qa-document-table {
        min-width: 850px; /* Prevents columns from squishing on mobile */
    }
}
/* ============================================================
   DICT CERTIFICATE VIEW MODAL
   ============================================================ */
.cert-view-modal-content {
    max-width: 900px;
    width: 95%;
    background: #fff;
}

.cert-doc-header {
    text-align: center;
    margin-bottom: 20px;
}

.cert-doc-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    text-align: left;
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.cert-doc-row {
    border: 1px solid #000;
    padding: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    border-bottom: none;
}

.cert-doc-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border: 1px solid #000;
    border-bottom: none;
}

.cert-doc-grid-headers {
    background: #eee;
    font-weight: bold;
    text-align: center;
    font-size: 1.1rem;
}

.cert-doc-col {
    padding: 16px;
    border-right: 1px solid #000;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
}

.cert-doc-col:last-child {
    border-right: none;
}

.cert-doc-col em {
    text-align: center;
    display: block;
    margin-bottom: 12px;
}

.cert-doc-list {
    padding-left: 20px;
    margin: 8px 0 0 0;
}

.cert-doc-list li {
    margin-bottom: 8px;
}

.cert-doc-highlight {
    background-color: #f0fdf4;
    border-left: 4px solid #28a745;
}

.cert-doc-row:last-child {
    border-bottom: 1px solid #000;
}
/* ============================================================
   DICT CERTIFICATE VIEW MODAL (FIXED)
   ============================================================ */
.cert-view-modal-content {
    max-width: 900px;
    width: 95%;
    background: #fff;
}

.cert-doc-header {
    margin-bottom: 20px;
}

/* Replaces the inline flex styles */
.cert-header-flex {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.cert-title-wrap {
    display: flex;
    flex-direction: column;
}

.cert-doc-title {
    margin: 0;
    font-size: 1.5rem;
    color: #0056b3;
    font-family: serif;
}

.cert-doc-subtitle {
    font-size: 1rem;
    color: #555;
    font-family: serif;
}

.cert-status-badge-wrap {
    margin-top: 8px;
    font-weight: bold;
    font-size: 0.85rem;
}

/* Avatar classes */
.cert-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.cert-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #64748b;
}

.cert-doc-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    text-align: left;
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.cert-doc-row {
    border: 1px solid #000;
    padding: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    border-bottom: none;
}

.cert-doc-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border: 1px solid #000;
    border-bottom: none;
}

.cert-doc-grid-headers {
    background: #eee;
    font-weight: bold;
    text-align: center;
    font-size: 1.1rem;
}

.cert-doc-col {
    padding: 16px;
    border-right: 1px solid #000;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
}

.cert-doc-col:last-child {
    border-right: none;
}

.cert-doc-col em {
    text-align: center;
    display: block;
    margin-bottom: 12px;
}

.cert-doc-list {
    padding-left: 20px;
    margin: 8px 0 0 0;
}

.cert-doc-list li {
    margin-bottom: 8px;
}

.cert-doc-row:last-child {
    border-bottom: 1px solid #000;
}
.cert-view-modal-content {
    max-width: 900px;
    width: 95%;
    background: #fff;
    max-height: 90vh; /* Stops it from exceeding the screen height */
    overflow-y: auto; /* Adds a scrollbar inside the modal */
    margin: 5vh auto; /* Centers it nicely if the screen is tall */
    border-radius: 8px;
}
/* Fix the missing bottom line on the last row of the certificate */
.cert-doc-grid-row:last-of-type {
    border-bottom: 1px solid #000 !important;
}

/* DICT Group Dividers */
.dict-claims-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.dict-group-divider {
    border-bottom: 2px solid var(--border-light);
    margin-top: 10px;
    margin-bottom: 10px;
}
.dict-group-title {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}