:root {
    --mishen-ink: #141a2a;
    --mishen-ink-soft: #4e596b;
    --mishen-muted: #737b8c;
    --mishen-canvas: #f5f5f7;
    --mishen-surface: #ffffff;
    --mishen-surface-muted: #f0f1f4;
    --mishen-border: #e1e2e6;
    --mishen-primary: #151d2e;
    --mishen-radius-panel: 24px;
    --mishen-radius-modal: 28px;
    --mishen-sidebar-width: clamp(300px, 21.7vw, 416px);
    --mishen-topbar-height: 112px;
    --bg-page: var(--mishen-canvas);
    --surface: var(--mishen-surface);
    --surface-2: #fafafb;
    --surface-3: var(--mishen-surface-muted);
    --text: var(--mishen-ink);
    --text-2: var(--mishen-ink-soft);
    --muted: var(--mishen-muted);
    --line: var(--mishen-border);
    --line-soft: #ececef;
    --navy: var(--mishen-primary);
    --accent: #315ee8;
    --accent-bg: #e9efff;
    --radius: 14px;
    --radius-sm: 12px;
    --radius-xs: 10px;
    --sidebar-w: var(--mishen-sidebar-width);
}

:root[data-theme="dark"] {
    --mishen-ink: #f5f7fb;
    --mishen-ink-soft: #c4cad5;
    --mishen-muted: #929bab;
    --mishen-canvas: #10141d;
    --mishen-surface: #181e29;
    --mishen-surface-muted: #212836;
    --mishen-border: #303949;
    --mishen-primary: #f4f6fa;
    --bg-page: var(--mishen-canvas);
    --surface: var(--mishen-surface);
    --surface-2: #1c2330;
    --surface-3: var(--mishen-surface-muted);
    --text: var(--mishen-ink);
    --text-2: var(--mishen-ink-soft);
    --muted: var(--mishen-muted);
    --line: var(--mishen-border);
    --line-soft: #282f3d;
    --navy: #f4f6fa;
    --accent-bg: #40251c;
}

body {
    min-width: 320px;
    min-height: 100dvh;
    overflow-x: hidden;
    color: var(--mishen-ink);
    background: var(--mishen-canvas);
    font-family: "Inter", "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.45;
}
:root[data-theme="dark"] body { background: var(--mishen-canvas); }
h1, h2, h3, h4 { color: var(--mishen-ink); letter-spacing: -.035em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ui-icon { display: block; width: 1.5rem; height: 1.5rem; }
.icon-button { display: inline-grid; min-width: 44px; min-height: 44px; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 12px; background: transparent; cursor: pointer; }
:where(button, a, input, select, textarea):focus-visible { outline: 3px solid rgba(49, 94, 232, .58); outline-offset: 3px; }

.auth-layout {
    position: relative;
    display: grid;
    min-height: 100dvh;
    place-items: center;
    overflow: hidden;
    padding: 40px 20px;
    background: radial-gradient(circle at 34% 35%, rgba(112, 160, 130, .10), transparent 25%), radial-gradient(circle at 68% 70%, rgba(119, 145, 177, .10), transparent 28%), #f7f9fa;
}
.auth-rings { position: absolute; left: 50%; top: 50%; width: min(1160px, 92vw); aspect-ratio: 1; transform: translate(-50%, -50%); border: 2px solid rgba(91, 108, 125, .07); border-radius: 50%; pointer-events: none; }
.auth-rings::before, .auth-rings::after { content: ""; position: absolute; inset: 14%; border: 2px solid rgba(91, 108, 125, .07); border-radius: inherit; }
.auth-rings::after { inset: 29%; }
.auth-card { position: relative; z-index: 1; display: flex; width: min(580px, 100%); flex-direction: column; align-items: center; text-align: center; }
.brand-mark { display: inline-grid; width: 70px; height: 70px; flex: 0 0 auto; place-items: center; border-radius: 19px; color: #fff; background: #151d2e; }
.brand-mark .ui-icon { width: 44px; height: 44px; }
.brand-mark-large { width: 104px; height: 104px; margin-bottom: 34px; border-radius: 29px; box-shadow: 0 20px 36px rgba(21, 29, 46, .20); }
.brand-mark-large .ui-icon { width: 62px; height: 62px; }
.auth-card h1 { font-size: clamp(2.5rem, 4vw, 4.4rem); font-weight: 700; }
.auth-subtitle { margin: 18px 0 54px; color: #6f7682; font-size: clamp(1.15rem, 1.7vw, 1.8rem); line-height: 1.35; }
.auth-form { width: 100%; }
.auth-field { display: grid; min-height: 70px; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-bottom: 18px; padding: 0 20px; border: 1px solid #e5e7ea; border-radius: 17px; background: #fff; box-shadow: 0 10px 24px rgba(22, 31, 46, .08); }
.auth-field:focus-within { border-color: #9ba8bc; box-shadow: 0 0 0 4px rgba(49, 94, 232, .09); }
.auth-field-icon { color: #7a8495; }
.auth-field-icon .ui-icon { width: 26px; height: 26px; }
.auth-field input { min-width: 0; height: 68px; padding: 0; border: 0; outline: 0; color: #1b2232; background: transparent; font-size: 1.2rem; }
.auth-field input::placeholder { color: #727b89; opacity: 1; }
.password-toggle { color: #7a8495; }
.auth-options { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 10px 6px 32px; color: #6e7683; font-size: 1rem; }
.auth-remember { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.auth-remember input { width: 22px; height: 22px; accent-color: #151d2e; }
.auth-help { color: #376ce2; }
.auth-submit { display: flex; width: 100%; min-height: 74px; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 40px; color: #fff; background: linear-gradient(180deg, #273248, #131b2d); box-shadow: 0 28px 54px rgba(22, 31, 46, .18); cursor: pointer; font-size: 1.3rem; transition: transform .2s ease, background .2s ease; }
.auth-submit:hover { transform: translateY(-1px); background: linear-gradient(180deg, #33405a, #1a2438); }
.auth-submit:active { transform: translateY(0); }
.auth-access-note { margin: 36px 0 0; color: #9a9fa7; font-size: .9rem; }
.auth-layout .form-error { margin: -10px 0 18px; padding: 12px 16px; border-radius: 12px; color: #9d2028; background: #ffe7e8; text-align: left; }
:root[data-theme="dark"] .auth-layout { color-scheme: light; }
:root[data-theme="dark"] .auth-card h1 { color: #141a2a; }
:root[data-theme="dark"] .auth-field { border-color: #e5e7ea; background: #fff; }
:root[data-theme="dark"] .auth-field input { color: #1b2232; background: transparent; }
:root[data-theme="dark"] .auth-field input::placeholder { color: #727b89; }

.app-shell { display: grid; min-height: 100dvh; grid-template-columns: var(--mishen-sidebar-width) minmax(0, 1fr); background: var(--mishen-canvas); }
.sidebar-shell { position: sticky; top: 0; z-index: 20; display: flex; height: 100dvh; flex-direction: column; overflow: hidden; border-right: 1px solid var(--mishen-border); color: var(--mishen-ink-soft); background: var(--mishen-surface); }
.sidebar-brand { display: flex; min-height: 116px; align-items: center; gap: 18px; padding: 18px 24px; border-bottom: 0; }
.sidebar-brand .brand-mark { width: 70px; height: 70px; border-radius: 18px; }
.brand-name { color: var(--mishen-ink); font-family: "Sora", "Inter", sans-serif; font-size: 2rem; font-weight: 700; letter-spacing: -.03em; }
.main-nav { display: flex; flex: 0 1 auto; flex-direction: column; gap: 2px; padding: 16px 18px; overflow-y: auto; }
.main-nav a { position: relative; display: flex; min-height: 60px; align-items: center; gap: 18px; padding: 0 16px; border: 0; border-radius: 12px; color: #505b6e; background: transparent; font-size: 1.15rem; font-weight: 600; transition: color .18s ease, background .18s ease; }
:root[data-theme="dark"] .main-nav a { color: var(--mishen-ink-soft); }
.main-nav a:hover { color: var(--mishen-ink); background: var(--mishen-surface-muted); }
.main-nav a.active { color: #fff; border: 0; background: #151d2e; font-weight: 600; }
:root[data-theme="dark"] .main-nav a.active { color: #161c28; background: #f4f6fa; }
.main-nav a.active::before { content: none; }
.main-nav a .nav-icon { display: inline-grid; width: 32px; flex: 0 0 32px; place-items: center; font-size: inherit; }
.main-nav a .nav-icon .ui-icon { width: 30px; height: 30px; }
.nav-count { min-width: 54px; margin-left: auto; padding: 3px 10px; border-radius: 999px; color: #465164; background: #f0f1f4; text-align: center; font-size: .86rem; font-variant-numeric: tabular-nums; }
.main-nav a.active .nav-count { color: #fff; background: rgba(255, 255, 255, .22); }
.sidebar-spacer { flex: 1 1 auto; min-height: 18px; }
.sidebar-stats { margin: 12px 18px 18px; padding: 22px 24px; border: 0; border-radius: 20px; color: #424d60; background: #e7e8eb; }
:root[data-theme="dark"] .sidebar-stats { color: var(--mishen-ink-soft); background: var(--mishen-surface-muted); }
.sidebar-stats p { margin: 0 0 14px; color: var(--mishen-ink); font-size: 1rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.sidebar-stats dl { display: grid; gap: 8px; margin: 0; }
.sidebar-stats div { display: flex; justify-content: space-between; gap: 18px; }
.sidebar-stats dt { color: inherit; font-size: .94rem; }
.sidebar-stats dd { margin: 0; color: var(--mishen-ink); font-size: .94rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.sidebar-user { display: grid; min-height: 84px; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--mishen-border); background: var(--mishen-surface); }
.sidebar-avatar { display: grid; width: 48px; height: 48px; place-items: center; border: 0; border-radius: 50%; color: var(--mishen-ink); background: #e3e5e9; font-size: 1.15rem; font-weight: 700; }
.sidebar-user-info { min-width: 0; }
.sidebar-user-name { overflow: hidden; color: var(--mishen-ink); font-size: .95rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-role { overflow: hidden; color: var(--mishen-muted); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-logout { grid-column: auto; justify-self: stretch; color: var(--mishen-ink-soft); font-size: inherit; }
.sidebar-logout:hover { color: #e1252f; background: #ffe3e5; }

.workspace-shell { display: flex; min-width: 0; min-height: 100dvh; flex-direction: column; gap: 18px; padding: 0 24px 30px; background: var(--mishen-canvas); }
.app-topbar { display: flex; min-height: var(--mishen-topbar-height); align-items: center; justify-content: space-between; gap: 24px; padding: 22px 28px 22px 36px; border: 2px solid var(--mishen-border); border-top: 0; border-radius: 0 0 var(--mishen-radius-panel) var(--mishen-radius-panel); background: var(--mishen-surface); }
.page-context { margin: 0 0 3px; color: var(--mishen-muted); font-size: .8rem; }
.page-title { overflow: visible; color: var(--mishen-ink); font-family: "Sora", "Inter", sans-serif; font-size: clamp(1.7rem, 2.3vw, 2.8rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.12; text-overflow: clip; white-space: normal; }
.notification-button { flex: 0 0 auto; width: 58px; height: 58px; border: 2px solid var(--mishen-border); border-radius: 15px; color: #4f596a; background: var(--mishen-surface); }
.notification-button:hover { background: var(--mishen-surface-muted); }
.notification-button .ui-icon { width: 31px; height: 31px; }
.page-root { min-width: 0; }

.list-modal, .attachment-viewer-modal { width: min(1120px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: var(--mishen-radius-modal); color: var(--mishen-ink); background: var(--mishen-surface); box-shadow: 0 30px 90px rgba(14, 20, 31, .24); }
.attachment-viewer-modal { width: min(1480px, calc(100vw - 48px)); }
.list-modal::backdrop, .attachment-viewer-modal::backdrop { background: rgba(15, 19, 27, .62); backdrop-filter: blur(2px); }
.modal-card, .attachment-viewer-card { display: flex; max-height: calc(100dvh - 48px); flex-direction: column; padding: 0; background: var(--mishen-surface); }
.modal-header, .attachment-viewer-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; border-bottom: 1px solid var(--mishen-border); }
.dialog-context { margin: 0 0 4px; color: var(--mishen-muted); font-size: .8rem; }
.dialog-close { border-color: var(--mishen-border); background: var(--mishen-surface); }
.modal-body { min-height: 320px; overflow: auto; padding: 28px; }
.attachment-viewer-actions { display: flex; align-items: center; gap: 10px; }
.secondary-btn { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 1px solid var(--mishen-border); border-radius: 12px; color: var(--mishen-ink); background: var(--mishen-surface); cursor: pointer; }

.sidebar-stats-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; margin-top: 12px; padding: 0; border: 0; color: var(--mishen-ink); background: transparent; font: inherit; font-weight: 700; }
.dashboard-workspace { display: grid; min-height: calc(100dvh - var(--mishen-topbar-height) - 66px); grid-template-columns: minmax(0, 1fr); gap: 20px; }
.dashboard-workspace.has-selection { grid-template-columns: minmax(0, 1fr) minmax(310px, 356px); }
.dashboard-visual-card, .dashboard-applicant-panel { min-width: 0; overflow: hidden; border: 2px solid var(--mishen-border); border-radius: var(--mishen-radius-panel); background: var(--mishen-surface); }
.dashboard-visual-card { display: flex; min-height: 720px; flex-direction: column; }
.dashboard-toolbar { display: flex; min-height: 86px; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 24px; border-bottom: 2px solid var(--mishen-border); }
.dashboard-mode-switch { display: grid; min-width: 306px; grid-template-columns: 1fr 1fr; gap: 4px; padding: 5px; border-radius: 13px; background: var(--mishen-surface-muted); }
.dashboard-mode-switch button { min-height: 42px; border: 0; border-radius: 9px; color: var(--mishen-muted); background: transparent; cursor: pointer; font-size: 1rem; font-weight: 700; }
.dashboard-mode-switch button.active { color: var(--mishen-ink); background: var(--mishen-surface); box-shadow: 0 2px 8px rgba(21, 29, 46, .06); }
.dashboard-select { min-width: 160px; flex: 1 1 180px; }
.dashboard-select select { width: 100%; min-height: 48px; padding: 0 42px 0 14px; border: 2px solid var(--mishen-border); border-radius: 13px; color: var(--mishen-ink); background-color: var(--mishen-surface); font-size: 1rem; font-weight: 700; }
.dashboard-top50 { display: inline-flex; min-height: 48px; align-items: center; gap: 10px; margin-left: auto; padding: 0 22px; border-radius: 999px; color: #fff; background: #151d2e; cursor: pointer; font-size: 1rem; font-weight: 700; white-space: nowrap; }
.dashboard-top50 input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dashboard-top50 span:first-of-type { font-size: 1.7rem; font-weight: 400; line-height: 1; }
.dashboard-top50:not(.active) { color: #fff; background: #151d2e; }
.dashboard-chart-stage { position: relative; flex: 1 1 auto; min-height: 630px; overflow: hidden; }
.dashboard-chart { width: 100%; height: 100%; min-height: 630px; }
.dashboard-chart .viz-svg { display: block; width: 100%; height: 100%; }
.dashboard-legend { position: absolute; bottom: 24px; left: 24px; display: flex; min-width: 204px; flex-direction: column; gap: 7px; padding: 14px 20px; border: 2px solid var(--mishen-border); border-radius: 20px; color: var(--mishen-muted); background: color-mix(in srgb, var(--mishen-surface) 94%, transparent); font-size: .82rem; }
.dashboard-legend strong { margin-bottom: 2px; color: var(--mishen-muted); font-size: .9rem; }
.dashboard-legend span { display: flex; align-items: center; gap: 10px; }
.dashboard-legend i { display: inline-block; width: 18px; height: 18px; flex: 0 0 auto; border-radius: 5px; }
.dashboard-legend .legend-red-flag { background: #e5252d; }
.dashboard-legend .legend-threshold { width: 25px; height: 0; border-top: 3px dashed #151d2e; border-radius: 0; }
.dashboard-export { position: absolute; right: 24px; bottom: 24px; min-width: 120px; min-height: 50px; border: 0; border-radius: 13px; color: #ef6415; background: #f8dfd8; cursor: pointer; font-size: 1.25rem; font-weight: 700; }
.dashboard-a11y-tools { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.dashboard-applicant-panel { position: relative; display: flex; min-height: 720px; flex-direction: column; }
.dashboard-applicant-panel[hidden] { display: none; }
.dashboard-applicant-head { display: grid; min-height: 88px; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 2px solid var(--mishen-border); }
.dashboard-applicant-avatar { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; color: var(--mishen-ink); background: #e4e6ea; font-size: 1.3rem; font-weight: 700; }
.dashboard-applicant-name { min-width: 0; }
.dashboard-applicant-name h2 { overflow: hidden; font-size: 1.22rem; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-applicant-name p { margin: 1px 0 0; overflow: hidden; color: var(--mishen-muted); font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-score-summary { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 2px solid var(--mishen-border); }
.dashboard-score-ring { --score-progress: 0%; position: relative; display: grid; width: 120px; aspect-ratio: 1; place-items: center; border-radius: 50%; background: conic-gradient(#151d2e var(--score-progress), #e7e8eb 0); }
.dashboard-score-ring::before { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: var(--mishen-surface); }
.dashboard-score-ring strong { position: relative; color: var(--mishen-ink); font-size: 2.3rem; }
.dashboard-score-summary dl { display: grid; gap: 12px; margin: 0; }
.dashboard-score-summary dl div { display: flex; justify-content: space-between; gap: 8px; }
.dashboard-score-summary dt { color: var(--mishen-muted); font-size: .84rem; }
.dashboard-score-summary dd { margin: 0; color: var(--mishen-ink); font-size: .85rem; font-weight: 700; }
.dashboard-applicant-facts { display: grid; gap: 10px; margin: 0; padding: 18px 22px; border-bottom: 2px solid var(--mishen-border); }
.dashboard-applicant-facts div { display: flex; justify-content: space-between; gap: 14px; }
.dashboard-applicant-facts dt { color: var(--mishen-muted); font-size: .86rem; }
.dashboard-applicant-facts dd { margin: 0; color: var(--mishen-ink); text-align: right; font-size: .86rem; font-weight: 700; }
.dashboard-task-results { padding: 18px 22px; }
.dashboard-task-results h3 { margin-bottom: 12px; font-size: 1rem; }
.dashboard-task-results button { display: grid; width: 100%; gap: 5px; margin-bottom: 9px; padding: 0; border: 0; color: var(--mishen-ink); background: transparent; cursor: pointer; text-align: left; }
.dashboard-task-results button > span { display: flex; justify-content: space-between; gap: 10px; font-size: .78rem; }
.dashboard-task-results button b { font-weight: 600; }
.dashboard-task-results button i { height: 5px; overflow: hidden; border-radius: 99px; background: #e4e5e8; }
.dashboard-task-results button i span { display: block; height: 100%; border-radius: inherit; background: #6b9647; }
.dashboard-panel-badges { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 22px 18px; }
.dashboard-profile-action { margin-top: auto; padding: 18px 22px 22px; }
.dashboard-profile-action a { display: flex; min-height: 52px; align-items: center; justify-content: center; border-radius: 12px; color: #fff; background: #151d2e; font-weight: 700; }
.target-date-label { fill: var(--mishen-muted); font-size: 13px; font-weight: 700; }
.target-dot { transition: r .16s ease, filter .16s ease; }
.target-dot:hover { filter: drop-shadow(0 3px 5px rgba(21, 29, 46, .28)); }

.applicants-page { display: flex; min-height: calc(100dvh - var(--mishen-topbar-height) - 66px); flex-direction: column; overflow: hidden; border: 0; border-radius: 0; background: transparent; }
.applicants-page > .panel-header { order: 2; padding: 10px 0 8px; border: 0; background: transparent; }
.applicants-page > .panel-header .panel-header-actions { width: 100%; justify-content: flex-end; }
.applicants-page > .panel-header .panel-header-actions > .legend-chip:not(.legend-chip-link) { display: none; }
.applicants-page > .panel-header .legend-chip-link, .applicants-page > .panel-header .primary-btn, .applicants-page > .panel-header .tab-btn { min-height: 46px; padding: 0 20px; border: 2px solid var(--mishen-border); border-radius: 999px; color: #4f596b; background: var(--mishen-surface); font-weight: 700; }
.applicants-page > .panel-header .primary-btn { color: #fff; border-color: #151d2e; background: #151d2e; }
.applicants-search-row { order: 1; display: grid; grid-template-columns: minmax(0, 1fr) 82px; gap: 16px; margin: 0; }
.applicants-search-row > input { width: 100%; min-height: 80px; padding: 0 34px; border: 2px solid var(--mishen-border); border-radius: var(--mishen-radius-panel); color: var(--mishen-ink); background: var(--mishen-surface); font-size: 1.35rem; font-weight: 600; }
.applicants-search-row > input::placeholder { color: #737b8c; }
.applicant-filter-button { display: grid; width: 82px; min-height: 80px; place-items: center; padding: 0; border: 2px solid var(--mishen-border); border-radius: var(--mishen-radius-panel); color: #4e596b; background: var(--mishen-surface); cursor: pointer; }
.applicant-filter-button .ui-icon { width: 38px; height: 38px; }
.applicants-inline-sort { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.applicants-page > .threshold-chips { order: 3; display: flex; gap: 14px; margin: 0 0 20px; }
.applicants-page .threshold-chip { min-height: 46px; padding: 0 20px; border: 2px solid var(--mishen-border); border-radius: 999px; color: #596375; background: var(--mishen-surface); font-size: 1rem; font-weight: 700; }
.applicants-page .threshold-chip.active { color: #fff; border-color: #151d2e; background: #151d2e; }
.applicants-page > .table-wrap { order: 4; overflow: auto; border: 2px solid var(--mishen-border); border-radius: var(--mishen-radius-panel) var(--mishen-radius-panel) 0 0; background: var(--mishen-surface); }
.applicants-page .data-table { min-width: 1040px; border-collapse: collapse; }
.applicants-page .data-table th { height: 58px; padding: 0 16px; border-bottom: 2px solid var(--mishen-border); color: #737b8c; background: var(--mishen-surface); font-size: .9rem; font-weight: 700; text-transform: none; }
.applicants-page .data-table td { height: 82px; padding: 10px 16px; border-bottom: 1px solid var(--mishen-border); color: var(--mishen-ink); font-size: 1rem; }
.applicants-page .data-table tbody tr { cursor: pointer; transition: background .15s ease; }
.applicants-page .data-table tbody tr:hover { background: #f5f6f8; }
.applicants-page .data-table td > strong { font-size: 1.05rem; }
.applicants-page .score-pill, .applicants-page .score-cell { color: var(--mishen-ink); background: transparent; font-size: 1.1rem; font-weight: 700; }
.applicants-page .applicant-flags-col { min-width: 74px; text-align: center; }
.applicant-filter-dialog { display: grid; gap: 24px; }
.applicant-filter-dialog > label { display: grid; gap: 8px; color: var(--mishen-muted); font-weight: 700; }
.applicant-filter-dialog select { min-height: 52px; border: 2px solid var(--mishen-border); border-radius: 13px; background: var(--mishen-surface); }
.applicant-filter-dialog fieldset { display: grid; gap: 12px; padding: 18px; border: 2px solid var(--mishen-border); border-radius: 16px; }
.applicant-filter-dialog legend { padding: 0 8px; color: var(--mishen-ink); font-weight: 700; }
.applicant-filter-dialog fieldset label { display: flex; align-items: center; gap: 10px; }
.applicant-filter-dialog fieldset input { width: 20px; height: 20px; accent-color: #151d2e; }
.applicant-filter-actions { display: flex; justify-content: flex-end; gap: 12px; }

.figma-profile-page { display: grid; gap: 18px; }
.figma-profile-page .profile-page-header { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 4px; }
.figma-profile-page .profile-page-header > div:first-child { display: none; }
.figma-profile-page .profile-back-link { color: #8b919c; background: transparent; font-size: 1rem; font-weight: 700; }
.figma-profile-page .profile-hero-pill, .figma-profile-page .legend-chip { border: 0; border-radius: 999px; color: #515b6d; background: #f0f1f4; }
.applicant-profile-overview { display: grid; min-height: 150px; grid-template-columns: 84px minmax(0, 1fr) 112px; align-items: center; gap: 22px; padding: 24px 28px; border: 2px solid var(--mishen-border); border-radius: var(--mishen-radius-panel); background: var(--mishen-surface); }
.applicant-profile-avatar { display: grid; width: 76px; height: 76px; place-items: center; border-radius: 50%; color: #30394a; background: #dfe1e5; font-size: 1.35rem; font-weight: 800; }
.applicant-profile-identity { min-width: 0; }
.applicant-profile-identity h2 { margin: 0; color: var(--mishen-ink); font-size: clamp(1.55rem, 2.3vw, 2.2rem); line-height: 1.08; letter-spacing: -.035em; }
.applicant-profile-meta, .applicant-profile-flags { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 16px; margin-top: 11px; color: #596375; font-weight: 650; }
.applicant-profile-meta span { position: relative; }
.applicant-profile-meta span + span::before { position: absolute; top: 50%; left: -10px; width: 4px; height: 4px; border-radius: 50%; background: #aab0ba; content: ""; transform: translateY(-50%); }
.applicant-profile-total { position: relative; isolation: isolate; display: grid; width: 104px; height: 104px; place-content: center; border-radius: 50%; background: conic-gradient(#151d2e var(--profile-total-progress), #e3e5e9 0); text-align: center; }
.applicant-profile-total::before { position: absolute; z-index: -1; inset: 9px; border-radius: inherit; background: #fff; content: ""; }
.applicant-profile-total strong { color: var(--mishen-ink); font-size: 1.75rem; font-variant-numeric: tabular-nums; line-height: 1; }
.applicant-profile-total span { margin-top: 4px; color: var(--mishen-muted); font-size: .72rem; font-weight: 700; }
.applicant-score-section { overflow: hidden; border: 2px solid var(--mishen-border); border-radius: var(--mishen-radius-panel); background: var(--mishen-surface); }
.applicant-score-section .panel-header { display: flex; align-items: center; justify-content: space-between; }
.applicant-score-section .panel-header > span { color: var(--mishen-muted); font-size: .78rem; font-weight: 650; }
.applicant-score-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px 16px 16px; }
.applicant-score-strip article { display: grid; min-height: 72px; place-content: center; padding: 10px 14px; border: 1px solid var(--mishen-border); border-radius: 12px; text-align: center; }
.applicant-score-strip article > span { color: var(--mishen-muted); font-size: .76rem; font-weight: 700; }
.applicant-score-strip strong { margin-top: 3px; color: var(--mishen-ink); font-size: 1.45rem; font-variant-numeric: tabular-nums; line-height: 1; }
.applicant-score-strip strong small { color: var(--mishen-muted); font-size: .72em; font-weight: 650; }
.applicant-profile-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); align-items: start; gap: 18px; }
.applicant-profile-main, .applicant-profile-aside { display: grid; min-width: 0; gap: 18px; }
.figma-profile-page .profile-task-stack, .applicant-profile-panel { overflow: hidden; border: 2px solid var(--mishen-border); border-radius: var(--mishen-radius-panel); background: var(--mishen-surface); }
.applicant-profile-panel-body { padding: 16px 18px; }
.applicant-profile-panel-body > p { margin: 0; color: var(--mishen-ink-soft); line-height: 1.5; white-space: pre-wrap; }
.applicant-panel-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; }
.applicant-panel-actions small { color: var(--mishen-muted); }
.applicant-note-form { display: grid; gap: 12px; padding: 16px 18px 18px; }
.applicant-note-form textarea { width: 100%; min-height: 132px; padding: 14px 16px; border: 2px solid var(--mishen-border); border-radius: 12px; color: var(--mishen-ink); background: var(--mishen-surface); font: inherit; line-height: 1.5; resize: vertical; }
.applicant-note-form textarea:focus { border-color: #8d95a3; outline: 3px solid rgba(21, 29, 46, .1); outline-offset: 1px; }
.applicant-note-form .bvi-form-actions { justify-content: flex-end; }
.applicant-note-form .primary-btn { min-height: 42px; }
.applicant-profile-aside .interview-history-panel .panel-header { display: grid; gap: 10px; }
.applicant-profile-aside .interview-history-panel .panel-header .ghost-btn { width: 100%; }
.applicant-profile-aside .panel { padding: 0; }
.applicant-profile-audit { padding: 0; }
.applicant-profile-aside .interview-history-list, .applicant-profile-aside .empty-state { margin: 0; }
.figma-profile-page .panel-header, .figma-section-heading { min-height: 54px; padding: 12px 24px; border-bottom: 2px solid var(--mishen-border); }
.figma-profile-page .panel-header .eyebrow { display: none; }
.figma-profile-page .panel-header h2, .figma-section-heading h2 { font-size: 1.1rem; }
.figma-task-row { display: grid; width: calc(100% - 36px); min-height: 64px; grid-template-columns: 44px minmax(0, 1fr) auto 40px; align-items: center; gap: 12px; margin: 12px 18px; padding: 8px 10px; border: 2px solid var(--mishen-border); border-radius: 13px; color: var(--mishen-ink); background: var(--mishen-surface); cursor: pointer; text-align: left; }
.figma-task-row:hover { border-color: #bcc1ca; background: #fafafa; }
.figma-task-number { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 6px; background: #e1e2e4; font-size: 1.25rem; font-weight: 700; }
.figma-task-copy { display: grid; min-width: 0; }
.figma-task-copy strong { font-size: .95rem; }
.figma-task-copy small { overflow: hidden; color: var(--mishen-muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.figma-task-score { color: #4f596b; font-size: 1rem; }
.figma-task-score strong { color: #709342; font-size: 1.25rem; }
.figma-task-open { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--mishen-border); border-radius: 8px; }
.task-solution-dialog .profile-task-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 38%); gap: 20px; border: 0; background: transparent; }
.task-solution-dialog .profile-task-meta { display: grid; gap: 18px; }
.task-solution-dialog .profile-task-heading h3 { font-size: 2rem; }
.task-solution-dialog .profile-reviewer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.task-solution-dialog .profile-reviewer-grid > div, .task-solution-dialog .profile-task-statement-block, .task-solution-dialog .profile-answer-block, .task-solution-dialog .profile-ai-check-block { padding: 16px; border: 2px solid var(--mishen-border); border-radius: 16px; background: var(--mishen-surface); }
.task-solution-dialog .profile-attachment-grid { align-content: start; }

/* Figma-native operational pages */
.primary-btn { min-height: 48px; padding: 0 22px; border: 1px solid #151d2e; border-radius: 999px; color: #fff; background: #151d2e; box-shadow: none; font-family: inherit; font-size: .92rem; font-weight: 700; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.primary-btn:hover { transform: translateY(-1px); color: #fff; background: #263146; border-color: #263146; box-shadow: 0 8px 18px rgba(21, 29, 46, .13); }
.primary-btn:active { transform: translateY(0); }
.primary-btn:disabled { cursor: not-allowed; opacity: .45; }
.ghost-btn { min-height: 44px; padding: 0 17px; border: 2px solid var(--mishen-border); border-radius: 12px; color: var(--mishen-ink-soft); background: var(--mishen-surface); box-shadow: none; font-family: inherit; font-size: .86rem; font-weight: 700; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.ghost-btn:hover { color: var(--mishen-ink); border-color: #c7cbd3; background: #f6f7f8; }
.ghost-btn.danger, .ghost-btn.btn-danger { color: #b4232c; border-color: #f2c8cb; background: #fff5f5; }
.segmented { min-height: 44px; padding: 0 20px; border: 2px solid var(--mishen-border); border-radius: 12px; color: #596375; background: var(--mishen-surface); font-family: inherit; font-size: .9rem; font-weight: 700; }
.segmented.active { color: #fff; border-color: #151d2e; background: #151d2e; }
.tab-bar { display: flex; align-items: center; gap: 8px; width: max-content; padding: 5px; border: 2px solid var(--mishen-border); border-radius: 15px; background: #eceef1; }

.interview-command-page { display: grid; min-height: calc(100dvh - var(--mishen-topbar-height) - 66px); gap: 14px; padding: 0; border: 0; background: transparent; }
.interview-command-surface { min-width: 0; overflow: hidden; border: 2px solid var(--mishen-border); border-radius: var(--mishen-radius-panel); background: var(--mishen-surface); }
.interview-command-toolbar { display: grid; min-height: 82px; grid-template-columns: minmax(260px, 1fr) minmax(220px, 300px) auto; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 2px solid var(--mishen-border); }
.interview-search-field input, .interview-applicant-filter-control select { width: 100%; min-height: 54px; padding: 0 18px; border: 2px solid var(--mishen-border); border-radius: 15px; color: var(--mishen-ink); background: var(--mishen-surface); font: inherit; font-size: 1rem; font-weight: 600; }
.interview-search-field input::placeholder { color: #7a8291; }
.interview-create-action { min-width: 224px; min-height: 54px; }
.interview-count-label { justify-self: end; color: var(--mishen-muted); font-size: .92rem; font-weight: 700; }
.interview-status-controls { display: flex; min-height: 64px; align-items: center; gap: 10px; overflow-x: auto; padding: 10px 18px; border-bottom: 2px solid var(--mishen-border); scrollbar-width: thin; }
.interview-status-control { min-height: 40px; padding: 0 17px; border: 2px solid var(--mishen-border); border-radius: 999px; color: #596375; background: var(--mishen-surface); cursor: pointer; font: inherit; font-size: .86rem; font-weight: 700; white-space: nowrap; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.interview-status-control:hover { color: var(--mishen-ink); border-color: #bcc2cc; }
.interview-status-control.active { color: #fff; border-color: #151d2e; background: #151d2e; }
.interview-command-body { display: grid; min-height: 570px; grid-template-columns: minmax(0, 1fr); }
.interview-command-body.has-detail { grid-template-columns: minmax(420px, 1fr) minmax(380px, 46%); }
.interview-register { min-width: 0; background: var(--mishen-surface); }
.interview-register-row { display: grid; width: 100%; min-height: 88px; grid-template-columns: 52px minmax(180px, 1.2fr) minmax(150px, .8fr) auto 40px; align-items: center; gap: 16px; padding: 13px 18px; border: 0; border-bottom: 1px solid var(--mishen-border); color: var(--mishen-ink); background: var(--mishen-surface); cursor: pointer; text-align: left; transition: background .16s ease; }
.interview-register-row:hover { background: #f7f8f9; }
.interview-register-row.active { background: #eef1f5; box-shadow: inset 4px 0 0 #151d2e; }
.interview-register-row[hidden] { display: none; }
.interview-register-avatar { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; color: #273044; background: #e4e6ea; font-size: .9rem; font-weight: 800; }
.interview-register-person, .interview-register-progress { display: grid; min-width: 0; gap: 3px; }
.interview-register-person strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.interview-register-person small, .interview-register-progress { color: var(--mishen-muted); font-size: .82rem; }
.interview-register-progress span { color: var(--mishen-ink-soft); font-weight: 700; }
.interview-register-status .status-badge { border-radius: 999px; }
.interview-register-arrow { color: #626d7f; }
.interview-register-arrow .ui-icon { width: 22px; height: 22px; }
.interview-register-empty { display: grid; min-height: 360px; place-content: center; padding: 40px; text-align: center; }
.interview-register-empty h3 { font-size: 1.15rem; }
.interview-register-empty p { max-width: 440px; margin: 8px auto 0; color: var(--mishen-muted); }
.interview-detail-sheet { min-width: 0; max-height: calc(100dvh - var(--mishen-topbar-height) - 164px); overflow: auto; padding: 24px; border-left: 2px solid var(--mishen-border); background: #fafbfc; }
.interview-detail-sheet .interview-editor-head { padding-bottom: 18px; border-bottom: 1px solid var(--mishen-border); }
.interview-detail-sheet .interview-editor-head .eyebrow { margin: 0 0 5px; color: var(--mishen-muted); font-size: .76rem; letter-spacing: 0; text-transform: none; }
.interview-detail-sheet .interview-editor-head h2 { font-size: 1.45rem; }
.interview-detail-sheet .interview-editor-status { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.interview-detail-sheet .interview-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.interview-detail-sheet .interview-summary-grid article { min-height: 78px; padding: 14px; border: 1px solid var(--mishen-border); border-radius: 13px; background: var(--mishen-surface); }
.interview-detail-sheet .interview-form-grid { grid-template-columns: 1fr; }
.interview-detail-sheet :is(input, select, textarea) { border: 2px solid var(--mishen-border); border-radius: 12px; background: var(--mishen-surface); }
.interview-detail-sheet .interview-form-actions, .interview-detail-sheet .interview-action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.interview-examiner-grid { display: grid; gap: 8px; }
.interview-examiner-option { position: relative; display: grid; min-height: 52px; grid-template-columns: 28px minmax(0, 1fr) !important; align-items: center; gap: 10px !important; padding: 9px 12px; border: 1px solid var(--mishen-border); border-radius: 12px; color: var(--mishen-ink-soft); background: var(--mishen-surface); cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.interview-examiner-option:hover { border-color: #bcc2cc; background: #f8f9fa; }
.interview-examiner-option:has(input:checked) { border-color: #151d2e; color: var(--mishen-ink); background: #eef1f5; box-shadow: inset 3px 0 0 #151d2e; }
.interview-examiner-option > input { position: absolute; width: 1px !important; height: 1px !important; margin: 0 !important; opacity: 0; }
.interview-examiner-check { display: grid; width: 26px; height: 26px; place-items: center; border: 2px solid #c8ccd3; border-radius: 8px; color: transparent; background: #fff; transition: color .16s ease, border-color .16s ease, background .16s ease; }
.interview-examiner-check .ui-icon { width: 17px; height: 17px; stroke-width: 2.4; }
.interview-examiner-option input:checked + .interview-examiner-check { color: #fff; border-color: #151d2e; background: #151d2e; }
.interview-examiner-option input:focus-visible + .interview-examiner-check { outline: 3px solid rgba(49, 94, 232, .28); outline-offset: 2px; }
.interview-examiner-name { overflow: hidden; font-size: .92rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.interview-examiners-fieldset:disabled .interview-examiner-option { cursor: default; opacity: .62; }
.status-badge.accent, .status-badge.active { color: #315ee8; background: #e9efff; }

.interview-day-command { display: grid; min-height: 650px; grid-template-columns: minmax(300px, 340px) minmax(0, 1fr); overflow: hidden; border: 2px solid var(--mishen-border); border-radius: var(--mishen-radius-panel); background: var(--mishen-surface); }
.interview-day-rail { min-width: 0; border-right: 2px solid var(--mishen-border); background: #fafbfc; }
.interview-day-rail-header { padding: 22px; border-bottom: 2px solid var(--mishen-border); }
.interview-day-rail-header h2 { font-size: 1.2rem; }
.interview-day-rail-header p { margin: 4px 0 0; color: var(--mishen-muted); font-size: .84rem; }
.interview-day-create-form { display: grid; gap: 14px; padding: 18px; border-bottom: 2px solid var(--mishen-border); }
.interview-day-create-form :is(input:not([type="checkbox"]), textarea) { width: 100%; border: 2px solid var(--mishen-border); border-radius: 12px; background: var(--mishen-surface); }
.interview-day-list { display: grid; }
.interview-day-list-item { display: grid; width: 100%; min-height: 82px; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 18px; border: 0; border-bottom: 1px solid var(--mishen-border); color: var(--mishen-ink); background: transparent; cursor: pointer; text-align: left; }
.interview-day-list-item:hover { background: #f2f4f6; }
.interview-day-list-item.active { color: #fff; background: #151d2e; }
.interview-day-index { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; color: inherit; background: rgba(115, 123, 140, .12); font-weight: 800; }
.interview-day-list-copy { display: grid; min-width: 0; gap: 3px; }
.interview-day-list-copy small { overflow: hidden; color: inherit; opacity: .68; text-overflow: ellipsis; white-space: nowrap; }
.interview-day-count { display: grid; min-width: 32px; height: 32px; place-items: center; border-radius: 999px; color: inherit; background: rgba(115, 123, 140, .12); font-weight: 800; }
.interview-day-stage { min-width: 0; padding: 24px; }
.interview-day-stage .interview-editor-head { padding-bottom: 18px; border-bottom: 1px solid var(--mishen-border); }
.interview-day-stage .interview-summary-grid { margin: 18px 0; }
.interview-section-label { display: flex; align-items: center; gap: 6px; margin: 0 0 5px; color: var(--mishen-muted); font-size: .76rem; font-weight: 750; letter-spacing: 0; text-transform: none; }
.interview-day-detail-form { margin: 16px 0; padding: 16px; border: 1px solid var(--mishen-border); border-radius: 14px; background: #fafbfc; }
.interview-day-detail-form textarea { width: 100%; border: 2px solid var(--mishen-border); border-radius: 12px; background: var(--mishen-surface); }
.interview-day-queue-block { gap: 14px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--mishen-border); }
.interview-day-queue-block .panel-header { align-items: center; }
.day-queue-table-wrap { border: 1px solid var(--mishen-border); border-radius: 14px; background: var(--mishen-surface); }
.day-queue-table th { color: var(--mishen-muted); background: #f4f5f7; letter-spacing: .02em; text-transform: none; }
.day-queue-table th, .day-queue-table td { border-color: var(--mishen-border); }
.day-queue-table tbody tr.current td { background: #eef1f5; }
.day-queue-table tbody tr.next td { background: #f4f7ff; }
.day-queue-table tbody tr.no-show td { color: var(--mishen-muted); background: #fff4f4; }
.day-queue-actions .primary-btn { min-height: 38px; padding-inline: 14px; }
.interview-help-block { margin-top: 20px; padding: 18px; border: 1px solid var(--mishen-border); border-radius: 14px; background: #fafbfc; }
.interview-help-grid div { border-color: var(--mishen-border); border-radius: 12px; background: var(--mishen-surface); }
.interview-help-grid strong { color: var(--mishen-ink); }
.interview-help-grid span { color: var(--mishen-muted); }

.tasks-page { display: grid; gap: 18px; }
.tasks-page-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 26px; border: 2px solid var(--mishen-border); border-radius: var(--mishen-radius-panel); background: var(--mishen-surface); }
.tasks-page-header .eyebrow, .tasks-summary-section .eyebrow { display: none; }
.tasks-page-header h2 { font-size: 1.35rem; }
.tasks-date-controls { display: flex; align-items: end; gap: 12px; }
.tasks-date-controls label { display: grid; gap: 5px; color: var(--mishen-muted); font-size: .8rem; font-weight: 700; }
.tasks-date-controls select { min-height: 44px; padding: 0 40px 0 14px; border: 2px solid var(--mishen-border); border-radius: 12px; background: var(--mishen-surface); }
.tasks-summary-stack { display: grid; gap: 18px; }
.tasks-summary-section, .tasks-catalog-section { overflow: hidden; border: 2px solid var(--mishen-border); border-radius: var(--mishen-radius-panel); background: var(--mishen-surface); }
.tasks-summary-section-title, .tasks-catalog-header { padding: 18px 24px; border-bottom: 2px solid var(--mishen-border); }
.tasks-summary-card { padding: 8px 22px 18px; }
.task-summary-card-row { padding: 18px 0; border-bottom: 1px solid var(--mishen-border); }
.task-summary-progress { height: 12px; overflow: hidden; border-radius: 999px; background: #eceef1; }
.task-progress-segment.complete { background: #729646; }
.task-progress-segment.partial { background: #7285aa; }
.task-progress-segment.zero { background: #df5660; }

.tasks-overview-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tasks-overview-metrics article { display: grid; min-height: 112px; align-content: space-between; gap: 16px; padding: 20px 22px; border: 2px solid var(--mishen-border); border-radius: 20px; background: var(--mishen-surface); }
.tasks-overview-metrics span { color: var(--mishen-muted); font-size: .82rem; font-weight: 700; }
.tasks-overview-metrics strong { color: var(--mishen-ink); font-family: "Sora", "Inter", sans-serif; font-size: clamp(1.35rem, 2.4vw, 2rem); letter-spacing: -.04em; }
.tasks-results-table { padding: 0 24px 8px; }
.tasks-results-head { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--mishen-border); color: var(--mishen-muted); font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tasks-results-table .task-summary-card-row { grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: 24px; padding: 16px 0; }
.tasks-results-table .task-summary-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tasks-results-table .task-summary-chip { min-height: 38px; padding: 7px 10px; border: 0; border-radius: 10px; font-size: .74rem; font-weight: 700; text-align: left; }
.tasks-results-table .task-summary-chip.complete { color: #45652b; background: #e8f0df; }
.tasks-results-table .task-summary-chip.partial { color: #4f6288; background: #e8edf6; }
.tasks-results-table .task-summary-chip.zero { color: #a62c35; background: #fbe5e7; }
.tasks-analytics-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.tasks-analytics-grid .tasks-summary-section { min-width: 0; }
.tasks-analytics-grid .tasks-summary-section-title { min-height: 92px; }
.tasks-analytics-grid .tasks-summary-card { border: 0; border-radius: 0; box-shadow: none; }
.tasks-analytics-grid .task-difficulty-row { grid-template-columns: minmax(0, 1fr); }
.tasks-analytics-grid .task-date-grid { grid-template-columns: 1fr; }
.task-catalog-panel { overflow: hidden; padding: 0; border: 2px solid var(--mishen-border); border-radius: var(--mishen-radius-panel); background: var(--mishen-surface); }
.task-catalog-panel > .panel-header { padding: 20px 24px; border-bottom: 2px solid var(--mishen-border); }
.task-catalog-panel > .panel-header .eyebrow { display: none; }
.task-catalog-list { gap: 0; }
.task-catalog-card.task-catalog-disclosure { display: block; padding: 0; border: 0; border-bottom: 1px solid var(--mishen-border); border-radius: 0; background: var(--mishen-surface); }
.task-catalog-card.task-catalog-disclosure:last-child { border-bottom: 0; }
.task-catalog-disclosure > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; align-items: center; gap: 16px; min-height: 76px; padding: 14px 24px; cursor: pointer; list-style: none; }
.task-catalog-disclosure > summary::-webkit-details-marker { display: none; }
.task-catalog-disclosure > summary .eyebrow { display: block; margin: 0 0 3px; color: var(--mishen-muted); font-size: .72rem; }
.task-catalog-disclosure > summary h3 { font-size: 1rem; }
.task-catalog-disclosure[open] > summary { background: #f5f6f8; }
.task-catalog-chevron { color: var(--mishen-muted); font-size: 1.4rem; transition: transform .18s ease; }
.task-catalog-disclosure[open] .task-catalog-chevron { transform: rotate(180deg); }
.task-catalog-disclosure > :not(summary) { margin-right: 24px; margin-left: 24px; }
.task-catalog-disclosure > :last-child { margin-bottom: 24px; }

.figma-users-page { display: grid; gap: 18px; }
.figma-users-page > .panel { overflow: hidden; border: 2px solid var(--mishen-border); border-radius: var(--mishen-radius-panel); background: var(--mishen-surface); }
.figma-users-page .panel-header { min-height: 76px; padding: 14px 24px; border-bottom: 0; }
.figma-users-page .panel-header > div { display: none; }
.figma-users-page .panel-header .primary-btn { margin-left: auto; min-height: 50px; padding: 0 28px; border-radius: 999px; background: #151d2e; }
.users-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; padding: 0 24px 18px; }
.users-toolbar input, .users-toolbar select { width: 100%; min-height: 54px; padding: 0 18px; border: 2px solid var(--mishen-border); border-radius: 14px; color: var(--mishen-ink); background: var(--mishen-surface); font-size: 1rem; }
.figma-users-page .table-wrap { border-top: 2px solid var(--mishen-border); }
.figma-users-page .data-table th { height: 62px; padding: 0 24px; color: #737b8c; background: var(--mishen-surface); font-size: .9rem; text-transform: none; }
.figma-users-page .data-table td { height: 72px; padding: 10px 24px; border-top: 0; border-bottom: 0; }
.figma-users-page code { color: #737b8c; background: transparent; font-family: inherit; font-weight: 700; }
.user-role-chip, .figma-users-page .legend-chip { display: inline-flex; min-height: 38px; align-items: center; padding: 0 18px; border: 0; border-radius: 999px; font-weight: 700; }
.user-role-chip.role-admin { color: #e1272f; background: #ffd9da; }
.user-role-chip.role-scientific_supervisor { color: #3766df; background: #dce3ff; }
.user-role-chip.role-examiner { color: #687181; background: #e5e6e9; }
.user-role-chip.role-secretary { color: #4b5f85; background: #e8edf6; }
.figma-users-page .legend-chip:not(.chip-danger) { color: #16803d; background: #d9eee0; }
.users-revoke-link { padding: 0 0 0 5px; border: 0; color: #3766df; background: transparent; cursor: pointer; font-weight: 700; }
.users-action-cell { text-align: right; }
.users-action-cell .ghost-btn:not(:first-child) { display: none; }

.settings-page { display: grid; gap: 18px; border: 0; background: transparent; }
.settings-page > .panel-header { display: none; }
.settings-light-card, .settings-campaign-card { overflow: hidden; padding: 0; border: 2px solid var(--mishen-border); border-radius: var(--mishen-radius-panel); background: var(--mishen-surface); }
.settings-light-card > div:first-child, .settings-campaign-card > div:first-child { padding: 22px 28px; border-bottom: 2px solid var(--mishen-border); }
.settings-light-card h3, .settings-campaign-card h3 { font-size: 1.45rem; }
.settings-light-choice { display: grid; min-height: 112px; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 18px; margin: 18px 28px; padding: 18px 24px; border: 3px solid #151d2e; border-radius: 20px; color: #fff; background: #151d2e; }
.settings-light-choice > span:last-child { padding: 6px 12px; border-radius: 999px; color: #151d2e; background: #fff; font-size: .8rem; font-weight: 700; }
.settings-light-preview { display: block; width: 58px; height: 58px; border: 8px solid #fff; border-radius: 14px; background: #eef0f3; box-shadow: inset 0 0 0 2px #c7cbd2; }
.settings-campaign-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 24px 28px 28px; }
.campaign-fieldset { min-width: 0; padding: 18px; border: 2px solid var(--mishen-border); border-radius: 18px; }
.campaign-fieldset:nth-child(3) { grid-column: 1 / -1; }
.campaign-date-list, .interview-date-list { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.campaign-date-row input[type="date"] { min-width: 0; }
.campaign-window-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.campaign-window-card { min-width: 0; }
.settings-campaign-save { align-self: end; min-height: 52px; border-radius: 999px; }

@media (max-width: 1280px) {
    :root { --mishen-sidebar-width: 292px; }
    .sidebar-brand { min-height: 92px; }
    .sidebar-brand .brand-mark { width: 54px; height: 54px; border-radius: 15px; }
    .brand-name { font-size: 1.55rem; }
    .main-nav a { min-height: 50px; font-size: .98rem; }
    .main-nav a .nav-icon .ui-icon { width: 25px; height: 25px; }
    .dashboard-workspace.has-selection { grid-template-columns: 1fr; }
    .dashboard-toolbar { gap: 10px; padding-inline: 16px; }
    .dashboard-mode-switch { min-width: 240px; }
    .dashboard-top50 { padding-inline: 16px; }
    .dashboard-applicant-panel { min-height: 0; }
    .tasks-analytics-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    :root { --mishen-sidebar-width: 84px; --mishen-topbar-height: 84px; }
    .sidebar-brand { justify-content: center; min-height: 84px; padding: 12px; }
    .sidebar-brand .brand-mark { width: 52px; height: 52px; }
    .brand-name, .main-nav a > span:not(.nav-icon), .nav-count, .sidebar-stats, .sidebar-user-info { display: none !important; }
    .main-nav { align-items: center; padding: 10px 12px; }
    .main-nav a { width: 60px; min-height: 54px; justify-content: center; padding: 0; }
    .sidebar-user { grid-template-columns: 1fr; justify-items: center; padding: 12px; }
    .workspace-shell { padding: 0 16px 24px; }
    .app-topbar { padding: 15px 18px; }
    .dashboard-workspace.has-selection { grid-template-columns: 1fr; }
    .dashboard-toolbar { flex-wrap: wrap; }
    .dashboard-mode-switch { min-width: 220px; }
    .dashboard-top50 { margin-left: 0; }
    .dashboard-applicant-panel { min-height: 0; }
    .applicant-profile-workspace { grid-template-columns: 1fr; }
    .applicant-profile-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .applicant-profile-aside > :is(.admission-status-panel, .audit-log-panel) { grid-column: 1 / -1; }
    .task-solution-dialog .profile-task-card { grid-template-columns: 1fr; }
    .users-toolbar, .settings-campaign-fields { grid-template-columns: 1fr; }
    .campaign-fieldset:nth-child(3) { grid-column: auto; }
    .tasks-overview-metrics { grid-template-columns: 1fr 1fr; }
    .tasks-overview-metrics article:last-child { grid-column: 1 / -1; }
    .tasks-results-head { display: none; }
    .tasks-results-table .task-summary-card-row { grid-template-columns: 1fr; gap: 10px; }
    .interview-command-toolbar { grid-template-columns: minmax(0, 1fr) auto; }
    .interview-applicant-filter-control { grid-column: 1 / -1; grid-row: 2; }
    .interview-create-action { grid-column: 2; grid-row: 1; min-width: 190px; }
    .interview-command-body.has-detail { grid-template-columns: 1fr; }
    .interview-detail-sheet { max-height: none; border-top: 2px solid var(--mishen-border); border-left: 0; }
    .interview-day-command { grid-template-columns: 1fr; }
    .interview-day-rail { border-right: 0; border-bottom: 2px solid var(--mishen-border); }
    .interview-day-list { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
}

@media (max-width: 620px) {
    :root { --mishen-sidebar-width: 0px; --mishen-topbar-height: 76px; }
    .app-shell { display: block; }
    .sidebar-shell { position: fixed; top: auto; right: 0; bottom: 0; left: 0; width: 100%; height: 72px; border-top: 1px solid var(--mishen-border); border-right: 0; }
    .sidebar-brand, .sidebar-spacer, .sidebar-user { display: none; }
    .main-nav { display: grid; height: 72px; grid-template-columns: repeat(5, 1fr); align-items: center; gap: 2px; padding: 6px 8px; overflow: hidden; }
    .main-nav a { width: auto; min-width: 0; min-height: 58px; }
    .main-nav a:nth-child(n+6) { display: none; }
    .workspace-shell { min-height: calc(100dvh - 72px); padding: 0 10px 90px; }
    .app-topbar { min-height: 76px; padding: 12px 14px 12px 18px; border-radius: 0 0 18px 18px; }
    .page-title { font-size: 1.4rem; }
    .notification-button { width: 46px; height: 46px; }
    .brand-mark-large { width: 78px; height: 78px; margin-bottom: 22px; border-radius: 22px; }
    .auth-card h1 { font-size: 2.25rem; }
    .auth-subtitle { margin: 12px 0 34px; font-size: 1.05rem; }
    .auth-field { min-height: 60px; }
    .auth-field input { height: 58px; font-size: 1rem; }
    .auth-options { margin-bottom: 24px; font-size: .88rem; }
    .auth-submit { min-height: 62px; font-size: 1.08rem; }
    .list-modal, .attachment-viewer-modal { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 20px; }
    .dashboard-visual-card { min-height: 620px; border-radius: 18px; }
    .dashboard-toolbar { display: grid; min-height: auto; grid-template-columns: 1fr 1fr; padding: 10px; }
    .dashboard-mode-switch { min-width: 0; grid-column: 1 / -1; }
    .dashboard-select { min-width: 0; }
    .dashboard-top50 { grid-column: 1 / -1; justify-content: center; }
    .tasks-page-header { align-items: stretch; flex-direction: column; }
    .tasks-date-controls { justify-content: stretch; }
    .tasks-date-controls label { flex: 1 1 100%; }
    .tasks-overview-metrics { grid-template-columns: 1fr; }
    .tasks-overview-metrics article:last-child { grid-column: auto; }
    .tasks-results-table { padding-inline: 14px; }
    .tasks-results-table .task-summary-chips { grid-template-columns: 1fr; }
    .task-catalog-disclosure > summary { grid-template-columns: minmax(0, 1fr) 24px; padding-inline: 16px; }
    .task-catalog-disclosure .task-catalog-metrics { display: none; }
    .task-catalog-disclosure > :not(summary) { margin-right: 16px; margin-left: 16px; }
    .dashboard-chart-stage, .dashboard-chart { min-height: 480px; }
    .dashboard-legend { bottom: 12px; left: 12px; min-width: 160px; padding: 10px 12px; }
    .dashboard-export { right: 12px; bottom: 12px; min-width: 76px; }
    .applicants-search-row { grid-template-columns: minmax(0, 1fr) 58px; gap: 8px; }
    .applicants-search-row > input, .applicant-filter-button { min-height: 58px; border-radius: 16px; }
    .applicants-search-row > input { padding: 0 16px; font-size: .95rem; }
    .applicant-filter-button { width: 58px; }
    .applicant-profile-overview { grid-template-columns: 60px minmax(0, 1fr); gap: 14px; padding: 18px; }
    .applicant-profile-avatar { width: 58px; height: 58px; font-size: 1rem; }
    .applicant-profile-identity h2 { font-size: 1.55rem; }
    .applicant-profile-total { width: 100%; height: auto; min-height: 72px; grid-column: 1 / -1; grid-template-columns: auto auto; align-items: baseline; gap: 6px; border-radius: 14px; background: #eef1f5; }
    .applicant-profile-total::before { display: none; }
    .applicant-score-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .applicant-score-section .panel-header { align-items: flex-start; flex-direction: column; }
    .applicant-profile-aside { grid-template-columns: 1fr; }
    .applicant-profile-aside > :is(.admission-status-panel, .audit-log-panel) { grid-column: auto; }
    .figma-task-row { grid-template-columns: 38px minmax(0, 1fr) auto; }
    .figma-task-open { display: none; }
    .tasks-page-header, .tasks-date-controls { align-items: stretch; flex-direction: column; }
    .interviews-page .interviews-layout, .interview-days-page .interviews-layout { display: block; }
    .interviews-page .interviews-sidebar { border-right: 0; border-bottom: 2px solid var(--mishen-border); }
    .users-toolbar { padding-inline: 14px; }
    .settings-light-choice { grid-template-columns: 48px minmax(0, 1fr); margin: 12px; padding: 14px; }
    .settings-light-choice > span:last-child { grid-column: 2; justify-self: start; }
    .interview-command-page .tab-bar { display: grid; width: 100%; grid-template-columns: 1fr 1fr; }
    .interview-command-page .segmented { justify-content: center; padding-inline: 10px; }
    .interview-command-toolbar { grid-template-columns: 1fr; padding: 10px; }
    .interview-applicant-filter-control, .interview-create-action { grid-column: 1; grid-row: auto; width: 100%; }
    .interview-status-controls { padding-inline: 10px; }
    .interview-register-row { min-height: 78px; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; padding-inline: 12px; }
    .interview-register-avatar { width: 42px; height: 42px; }
    .interview-register-progress, .interview-register-arrow { display: none; }
    .interview-register-status { justify-self: end; }
    .interview-detail-sheet { padding: 18px 14px; }
    .interview-detail-sheet .interview-editor-head { display: grid; }
    .interview-detail-sheet .interview-editor-status { justify-content: flex-start; }
    .interview-day-stage { padding: 18px 14px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
