:root {
    --navy:      #262b3a;
    --slate:     #333a4d;
    --slate-2:   #3e4457;
    --steel:     #5b6b80;
    --paper:     #ffffff;
    --surface:   #f7f8fa;
    --card:      #ffffff;
    --line:      #e2e6eb;
    --brass:     #c9a86a;
    --brass-dim: #e3d4b3;
    --crest-red: #b6121f;
    --red-bg:    #fbe9eb;
    --pine:      #2f6f4f;
    --pine-bg:   #e9f3ee;
    --amber:     #a66a1f;
    --amber-bg:  #f7ecd9;
    --radius:    8px;
    --shadow:    0 1px 2px rgba(13,27,46,0.05), 0 4px 16px rgba(13,27,46,0.04);
    --shadow-lg: 0 12px 40px rgba(13,27,46,0.16);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: var(--surface);
    color: var(--navy);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
    font-family: 'Spectral', serif;
    color: var(--navy);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

a { color: inherit; }
button { font-family: inherit; }

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f5f0;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(13,27,46,0.04), transparent 55%);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.login-bg-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
}

.login-card {
    width: 100%;
    max-width: 360px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.login-card .seal {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    display: block;
}

.login-card .wordmark {
    font-family: 'Spectral', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.01em;
    margin-bottom: 6px;
}

.login-card .tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--steel);
    margin-bottom: 36px;
}

.login-card .rule {
    width: 36px;
    height: 1px;
    background: var(--brass);
    margin: 0 auto 36px;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    background: var(--navy);
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: transform .12s ease, box-shadow .15s ease;
    box-shadow: 0 4px 16px rgba(13,27,46,0.18);
}
.google-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(13,27,46,0.24); }
.google-btn:active { transform: translateY(0); }

.alert {
    margin-top: 16px;
    padding: 11px 15px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.6;
    background: var(--red-bg);
    color: var(--crest-red);
    border: 1px solid rgba(182,18,31,0.2);
    text-align: left;
}

.login-foot {
    margin-top: 28px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 0.06em;
    color: var(--steel);
    opacity: 0.7;
}

.app-shell {
    display: grid;
    grid-template-columns: 248px 1fr;
    min-height: 100vh;
}

@media (max-width: 900px) {
    .app-shell { grid-template-columns: 1fr; }
}

@keyframes hubPulse {
    0%, 100% { opacity: 0.14; }
    50%       { opacity: 0.04; }
}
.hub-pulse   { animation: hubPulse 4s ease-in-out infinite; }
.hub-pulse-b { animation: hubPulse 4s ease-in-out infinite; animation-delay: -1.4s; }
.hub-pulse-c { animation: hubPulse 4s ease-in-out infinite; animation-delay: -2.8s; }

.sidebar {
    background: var(--navy);
    color: #fff;
    padding: 0;           
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.sidebar-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
}

.sidebar-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 24px 18px;
}

.sidebar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 0 8px;
}

.sidebar .brand img {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.sidebar .brand .word {
    font-family: 'Spectral', serif;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    line-height: 1.25;
}

.sidebar .brand .word small {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.1em;
    color: var(--brass-dim);
    text-transform: uppercase;
    font-weight: 400;
}

.sidebar-rule {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 16px 8px 18px;
}

.nav-section {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.32);
    margin: 18px 0 8px;
    padding: 0 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 6px;
    color: rgba(255,255,255,0.68);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: 'Inter', sans-serif;
    transition: background .15s ease, color .15s ease;
}

.nav-link:hover { background: rgba(255,255,255,0.05); color: #fff; }
.nav-link.active {
    background: rgba(201,168,106,0.12);
    color: var(--brass);
}
.nav-link .ico { width: 15px; text-align: center; opacity: 0.85; font-size: 13px; }

.sidebar-spacer { flex: 1; }

.routing-card {
    padding: 12px 12px 4px;
    font-size: 11.5px;
    color: rgba(255,255,255,0.4);
    line-height: 1.8;
    font-family: 'JetBrains Mono', monospace;
}
.routing-card strong { color: rgba(255,255,255,0.85); font-weight: 500; }
.routing-card .to { color: var(--brass); }

.user-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    margin-top: 14px;
    margin-bottom: 10px;
}

.user-card img {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-card .meta { overflow: hidden; }
.user-card .meta .name { font-size: 12.5px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-card .meta .email { font-size: 10.5px; color: rgba(255,255,255,0.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── SGC Launcher ── */
.sgc-launcher { position: relative; margin-bottom: 8px; }
.sgc-launcher-btn {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent; color: rgba(255,255,255,0.45);
  font-size: 12.5px; cursor: pointer; transition: all 150ms;
}
.sgc-launcher-btn:hover { color: #fff; border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); }
.sgc-dropdown {
  display: none; position: absolute; bottom: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18); overflow: hidden; z-index: 200;
}
.sgc-dropdown.open { display: block; }
.sgc-label {
  padding: 10px 12px 6px; font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: #94a3b8;
  border-bottom: 1px solid #f1f5f9;
}
.sgc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; padding: 8px; }
.sgc-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 6px; border-radius: 8px; text-decoration: none; transition: background 150ms;
}
.sgc-item:hover { background: #f1f5f9; }
.sgc-item span { font-size: 11px; font-weight: 600; color: #1e293b; text-align: center; line-height: 1.3; }

.logout-link {
    display: block;
    text-align: center;
    font-size: 12.5px;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    padding: 9px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.08);
}
.logout-link:hover { color: #fff; border-color: rgba(255,255,255,0.2); }

@media (max-width: 900px) {
    .sidebar {
        position: sticky;
        top: 0;
        height: auto;
        flex-direction: row;
        align-items: center;
        padding: 0;
        gap: 0;
        z-index: 50;
        overflow: visible;
    }
    .sidebar-art { display: none; }
    .sidebar-content {
        flex-direction: row;
        align-items: center;
        padding: 12px 16px;
        gap: 14px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    .sidebar .brand { margin-bottom: 0; flex-shrink: 0; }
    .sidebar .brand .word small { display: none; }
    .sidebar-rule { display: none; }
    .nav-section { display: none; }
    .routing-card { display: none; }
    .sidebar-spacer { display: none; }
    .user-card { display: none; }
    .logout-link { flex-shrink: 0; white-space: nowrap; margin-left: auto; }

    .nav-link {
        flex-shrink: 0;
        padding: 8px 12px;
        white-space: nowrap;
    }
    .nav-link .ico { display: none; }
}

@media (max-width: 540px) {
    .sidebar .brand .word { font-size: 13px; }
    .nav-link { font-size: 12.5px; padding: 7px 10px; }
    .logout-link { font-size: 11.5px; padding: 7px 10px; }
}

.main {
    padding: 32px 40px 60px;
    width: 100%;
}

@media (max-width: 700px) {
    .main { padding: 18px 14px 40px; }
}

.dash-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 4px;
}

@media (max-width: 900px) {
    .dash-stat-grid { grid-template-columns: repeat(2, 1fr); }
}

.dash-stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.dash-stat-ico {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.dash-stat-val {
    font-family: 'Spectral', serif;
    font-size: 34px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

.dash-stat-lbl {
    font-size: 12px;
    font-weight: 500;
    color: var(--steel);
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 4px;
    margin-left: 6px;
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 26px;
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.page-head .eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--steel);
    margin-bottom: 6px;
}

.page-head h1 { font-size: 23px; margin: 0 0 6px; }
.page-head .desc { color: var(--steel); font-size: 13.5px; max-width: 460px; line-height: 1.6; }

@media (max-width: 480px) {
    .page-head h1 { font-size: 19px; }
    .page-head .desc { font-size: 12.5px; }
    .page-head { gap: 10px; }
}

.badge-dept {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    padding: 6px 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--navy);
    white-space: nowrap;
    letter-spacing: 0.04em;
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    padding: 26px;
    margin-bottom: 24px;
}

@media (max-width: 480px) {
    .card { padding: 16px; }
}

.card h2 {
    font-size: 15px;
    margin: 0 0 4px;
}

.card .card-sub {
    color: var(--steel);
    font-size: 12.5px;
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid .full { grid-column: 1 / -1; }

.admin-filter-grid { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 700px) {
    .admin-filter-grid { grid-template-columns: 1fr; }
}

@media (min-width: 1200px) {
    .form-grid:not(.admin-filter-grid) { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
}

.field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 13.5px;
    font-family: 'Inter', sans-serif;
    color: var(--navy);
    background: #fcfdfe;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brass);
    box-shadow: 0 0 0 3px rgba(201,168,106,0.18);
}

.field textarea { resize: vertical; min-height: 86px; }

.field .hint {
    font-size: 11.5px;
    color: var(--steel);
    margin-top: 6px;
}

.field .hint-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-top: 6px;
}
.field .hint-row .hint { margin-top: 0; flex: 1; }
.field .char-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    color: var(--steel);
    white-space: nowrap;
    flex-shrink: 0;
}
.field .char-count.near-limit { color: var(--amber); }
.field .char-count.at-limit { color: var(--crest-red); }

.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

@media (max-width: 480px) {
    .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .form-actions .btn {
        text-align: center;
        width: 100%;
        padding: 13px 20px;
    }
}

.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13.5px;
    padding: 11px 24px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: transform .1s ease, opacity .15s ease;
}

.btn-primary {
    background: var(--navy);
    color: #fff;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-ghost {
    background: transparent;
    color: var(--steel);
    border: 1px solid var(--line);
}
.btn-ghost:hover { color: var(--navy); border-color: var(--steel); }

.form-msg {
    font-size: 12.5px;
    padding: 11px 15px;
    border-radius: 6px;
    margin-top: 16px;
    display: none;
    line-height: 1.6;
}
.form-msg.show { display: block; }
.form-msg.success { background: var(--pine-bg); color: var(--pine); }
.form-msg.error { background: var(--red-bg); color: var(--crest-red); }

.req-list { display: flex; flex-direction: column; gap: 12px; }

.req-row {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 17px 19px;
    background: var(--card);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    transition: border-color .15s ease;
}
.req-row:hover { border-color: var(--brass); }

@media (max-width: 700px) {
    .req-row { grid-template-columns: 1fr; }
    
    .req-row .bearing { overflow-x: auto; padding-bottom: 2px; }
}

@media (max-width: 480px) {
    
    .req-row .bearing { display: none; }
}

.req-main .title { font-family: 'Spectral', serif; font-weight: 600; font-size: 15px; margin-bottom: 5px; color: var(--navy); }
.req-main .meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    color: var(--steel);
    display: flex; gap: 13px; flex-wrap: wrap;
    align-items: center;
}

.bearing {
    display: flex;
    align-items: center;
    gap: 0;
}

.bearing .leg {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 68px;
}

.bearing .leg .tick-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--steel);
    white-space: nowrap;
}

.bearing .leg.done .tick-label,
.bearing .leg.current .tick-label { color: var(--navy); font-weight: 600; }
.bearing .leg.rejected .tick-label { color: var(--crest-red); font-weight: 600; }

.bearing .tick {
    width: 9px; height: 9px;
    border: 2px solid var(--line);
    background: var(--card);
    transform: rotate(45deg);
}

.bearing .leg.done .tick { background: var(--pine); border-color: var(--pine); }
.bearing .leg.current .tick {
    background: var(--brass); border-color: var(--brass);
    box-shadow: 0 0 0 4px var(--amber-bg);
}
.bearing .leg.rejected .tick {
    background: var(--crest-red); border-color: var(--crest-red);
    box-shadow: 0 0 0 4px var(--red-bg);
}

.bearing .rail {
    width: 30px; height: 1px;
    background: var(--line);
}
.bearing .rail.done { background: var(--pine); }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'JetBrains Mono', monospace;
}
.pill.pending { background: var(--amber-bg); color: var(--amber); }
.pill.approved { background: var(--pine-bg); color: var(--pine); }
.pill.disapproved { background: var(--red-bg); color: var(--crest-red); }

.empty-state {
    text-align: center;
    padding: 56px 20px;
    color: var(--steel);
}
.empty-state .icon { font-size: 30px; margin-bottom: 14px; opacity: 0.5; }
.empty-state p { font-size: 13.5px; }

.loading-spinner {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    vertical-align: -2px;
    margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
    height: 72px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, var(--card) 25%, #e6eaf0 37%, var(--card) 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.req-row.admin-row {
    grid-template-columns: 1fr auto;
    align-items: flex-start;
}
.req-row.admin-row .req-main .meta strong { color: var(--navy); font-weight: 600; }

.admin-row-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    min-width: 140px;
}
.admin-row-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-sm {
    font-size: 12px;
    padding: 8px 14px;
    text-decoration: none;
}

@media (max-width: 700px) {
    .req-row.admin-row { grid-template-columns: 1fr; }
    .admin-row-actions {
        align-items: flex-start;
        min-width: 0;
        width: 100%;
    }
    .admin-row-pills { justify-content: flex-start; }
    .btn-sm { align-self: flex-start; }
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

.pagination .page-info {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    color: var(--steel);
}

.pagination .page-info strong { color: var(--navy); font-weight: 600; }

.pagination .page-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid var(--line);
    background: var(--card);
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s ease, background .15s ease;
}

.page-btn:hover:not(:disabled) { border-color: var(--brass); background: var(--amber-bg); }
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.page-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.page-size-select {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--card);
    color: var(--navy);
}

.req-card {
    display: flex;
    flex-direction: column;
}

.req-card .req-row {
    cursor: default;
}

.req-card.expanded .req-row {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
    border-color: var(--brass);
}

.toggle-chevron {
    display: inline-block;
    font-size: 10px;
    color: var(--steel);
    margin-left: 7px;
    vertical-align: middle;
    transition: transform .2s ease;
    line-height: 1;
}

.req-card.expanded .toggle-chevron {
    transform: rotate(180deg);
}

.applicant-panel {
    background: var(--surface);
    border: 1px solid var(--brass);
    border-top: none;
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    padding: 14px 20px 16px;
}

.applicant-panel-head {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--steel);
    margin-bottom: 12px;
}

.applicant-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.applicant-table th {
    text-align: left;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--steel);
    padding: 0 14px 8px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 500;
}

.applicant-table td {
    padding: 9px 14px 9px 0;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.applicant-table tr:last-child td { border-bottom: none; }

.applicant-name {
    font-weight: 500;
    color: var(--navy);
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
}

.applicant-remarks {
    font-size: 10.5px;
    color: var(--steel);
    font-style: italic;
    margin-top: 3px;
}

.pill.level-pill {
    background: rgba(13,27,46,0.06);
    color: var(--navy);
    font-size: 9px;
    font-weight: 600;
}

.pill.ap-neutral {
    background: #f0f2f5;
    color: var(--steel);
}

.ap-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.ap-msg {
    display: none;
    font-size: 12.5px;
    margin-top: 8px;
    color: var(--pine);
}
.ap-msg.show        { display: block; }
.ap-msg.show.error  { color: var(--crest-red); }

.applicant-loading {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    color: var(--steel);
    padding: 6px 0;
}

.ap-spinner {
    display: inline-block;
    width: 13px; height: 13px;
    border: 2px solid var(--line);
    border-top-color: var(--steel);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    flex-shrink: 0;
}

.applicant-empty {
    font-size: 12.5px;
    color: var(--steel);
    padding: 4px 0;
}

.field-required {
    color: var(--crest-red);
    font-weight: 700;
}

.file-upload-wrap {
    position: relative;
    border: 1.5px dashed var(--line);
    border-radius: 6px;
    background: #fcfdfe;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
    overflow: hidden;
}

.file-upload-wrap:hover,
.file-upload-wrap.drag-over {
    border-color: var(--brass);
    background: var(--amber-bg);
}

.file-upload-wrap.has-file {
    border-style: solid;
    border-color: var(--pine);
    background: var(--pine-bg);
}

.file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.file-drop-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    pointer-events: none;
}

.file-ico {
    font-size: 15px;
    color: var(--steel);
    flex-shrink: 0;
    transition: color .15s ease;
}

.file-upload-wrap.has-file .file-ico { color: var(--pine); }
.file-upload-wrap.drag-over .file-ico { color: var(--brass); }

.file-text {
    font-size: 13px;
    color: var(--steel);
    flex: 1;
}

.file-upload-wrap.drag-over .file-text { color: var(--amber); }

.file-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--pine);
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jd-attachment-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    color: var(--brass);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .15s ease, color .15s ease;
    white-space: nowrap;
}
.jd-attachment-link:hover {
    color: var(--amber);
    border-bottom-color: var(--amber);
}

button.ap-toggle-btn {
    background: none;
    border: none;
    border-bottom: 1px solid transparent;
    padding: 0;
    cursor: pointer;
}

.pill.ob-pill-green  { background: #E8F5E9; color: #2E7D32; }
.pill.ob-pill-amber  { background: #FFF8E1; color: #E65100; }
.pill.ob-pill-red    { background: #FFEBEE; color: #C62828; }
.pill.ob-pill-grey   { background: #ECEFF1; color: #455A64; }

.ob-card {
    display: flex;
    flex-direction: column;
}
.ob-card .req-row {
    user-select: none;
}
.ob-card.ob-expanded .req-row {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
    border-color: var(--brass);
}
.ob-card.ob-expanded .toggle-chevron {
    transform: rotate(180deg);
}
.ob-details-panel {
    background: var(--surface);
    border: 1px solid var(--brass);
    border-top: none;
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    padding: 14px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ob-panel-date-remarks {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}
.ob-panel-start {
    flex: 0 0 auto;
    min-width: 110px;
}
.ob-panel-remarks {
    flex: 1 1 0;
    min-width: 0;
}
.ob-remarks-full {
    white-space: normal;
    line-height: 1.45;
}

.ob-panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
}
.ob-detail-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.ob-detail-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--steel);
}
.ob-detail-value {
    font-size: 13px;
    color: var(--navy);
    font-weight: 500;
}

.ob-name {
    text-transform: uppercase;
}

.onboarding-row .ob-fields {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px 18px;
}
.onboarding-row .ob-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.onboarding-row .ob-field-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--steel);
}
.onboarding-row .ob-field-value {
    font-size: 12.5px;
    color: var(--navy);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 640px) {
    .onboarding-row .ob-fields  { grid-template-columns: 1fr 1fr; }
    .ob-details-panel           { grid-template-columns: 1fr 1fr; }
}

.ob-req-progress-pill {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.ob-req-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.ob-req-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.ob-req-count-pill {
    font-size: 10px;
    padding: 2px 9px;
    border-radius: 999px;
    font-weight: 600;
}
.ob-req-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 6px 16px;
}
.ob-req-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 500;
    padding: 5px 8px;
    border-radius: 6px;
}
.ob-req-item.ob-req-done {
    background: #E8F5E9;
    color: #2E7D32;
}
.ob-req-item.ob-req-pending {
    background: #FFF8E1;
    color: #B45309;
}
.ob-req-tick {
    font-size: 13px;
    flex-shrink: 0;
    line-height: 1;
}
.ob-req-label {
    line-height: 1.3;
}

#hh-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: var(--navy, #0a1628);
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#hh-preloader.hh-pre-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.hh-pre-logo {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    animation: hh-pre-pulse 1.6s ease-in-out infinite;
}
.hh-pre-bar {
    width: 120px;
    height: 3px;
    background: rgba(255,255,255,0.12);
    border-radius: 2px;
    overflow: hidden;
}
.hh-pre-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--brass, #c9a84c);
    border-radius: 2px;
    animation: hh-pre-load 1.4s ease-in-out forwards;
}
.hh-pre-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}
@keyframes hh-pre-pulse {
    0%, 100% { transform: scale(1);    opacity: 1;    }
    50%       { transform: scale(.94); opacity: 0.82; }
}
@keyframes hh-pre-load {
    0%   { width: 0%; }
    60%  { width: 80%; }
    100% { width: 100%; }
}
