:root {
  --bg: #edf3f1;
  --surface: #ffffff;
  --soft: #f7faf9;
  --line: #d9e6e2;
  --text: #1e3135;
  --muted: #64787d;
  --brand: #1f676b;
  --brand-2: #2f8f78;
  --nav: #143f43;
  --gold: #f2bd57;
  --sky: #e9f3f7;
  --danger: #b84b43;
  --warning: #b67316;
  --success: #27764f;
  --shadow: 0 18px 42px rgba(31, 48, 52, .12);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { min-width: 0; }
body { margin: 0; min-width: 0; min-height: 100vh; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: Arial, Helvetica, sans-serif; }
img { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; font-weight: 700; }
input, select, textarea, button { min-width: 0; font: inherit; }
label { display: grid; gap: 7px; min-width: 0; color: var(--muted); font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); color: var(--text); padding: 11px 12px; }
input[type="file"] { padding: 9px 10px; }
textarea { resize: vertical; }
small, .muted { color: var(--muted); }
h1, h2, h3, p { margin-top: 0; overflow-wrap: anywhere; }
h1 { margin-bottom: 0; font-size: 32px; line-height: 1.12; }
h2 { font-size: 21px; }
p { line-height: 1.55; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(230px, 280px) minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; min-width: 0; height: 100vh; max-height: 100vh; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; display: flex; flex-direction: column; gap: 18px; padding: 22px; background: var(--nav); color: #eef8f6; }
.main { min-width: 0; padding: 24px; }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; justify-content: flex-end; align-items: center; gap: 14px; min-width: 0; margin: -10px -4px 18px; padding: 10px 4px; background: rgba(237, 243, 241, .94); backdrop-filter: blur(12px); }
.topbar-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; min-width: 0; padding: 7px; border: 1px solid rgba(217, 230, 226, .9); border-radius: 999px; background: rgba(255, 255, 255, .84); box-shadow: 0 12px 30px rgba(31,48,52,.11); }
.top-icon-button { position: relative; width: 46px; height: 46px; display: inline-grid; place-items: center; border: 1px solid rgba(47, 143, 120, .24); border-radius: 50%; background: linear-gradient(180deg, #ffffff, #eef8f6); color: var(--brand); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 18px rgba(31,48,52,.08); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.top-icon-button:hover { transform: translateY(-1px); border-color: var(--brand-2); background: #eef8f6; box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 24px rgba(31,48,52,.13); }
.top-icon-button .nav-count { position: absolute; top: -5px; right: -5px; }
.account-menu { position: relative; min-width: 0; }
.account-toggle { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; min-width: 0; max-width: min(340px, 56vw); border: 1px solid rgba(47, 143, 120, .24); border-radius: 999px; background: linear-gradient(180deg, #ffffff, #f7fbfa); color: var(--text); padding: 5px 14px 5px 5px; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 18px rgba(31,48,52,.08); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.account-toggle:hover, .account-menu.is-open .account-toggle { transform: translateY(-1px); border-color: var(--brand-2); background: #f9fcfb; box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 24px rgba(31,48,52,.13); }
.account-toggle span { display: block; min-width: 0; text-align: left; }
.account-toggle strong, .account-toggle small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-toggle strong { font-size: 14px; line-height: 1.1; }
.account-toggle small { color: var(--muted); font-size: 12px; }
.account-toggle .avatar { border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(47, 143, 120, .2); }
.account-dropdown { position: absolute; top: calc(100% + 10px); right: 0; z-index: 45; width: 230px; display: none; gap: 4px; padding: 8px; border: 1px solid rgba(217, 230, 226, .95); border-radius: var(--radius); background: var(--surface); box-shadow: 0 18px 42px rgba(31,48,52,.16); }
.account-menu.is-open .account-dropdown { display: grid; }
.account-dropdown a { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px; border-radius: 6px; color: var(--text); }
.account-dropdown a:hover { background: var(--soft); color: var(--brand); }

.brand { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: center; color: inherit; }
.brand-logo { grid-row: span 2; width: 52px; height: 52px; border: 1px solid rgba(20, 63, 67, .14); border-radius: var(--radius); background: #fff; object-fit: cover; object-position: center; }
.brand strong { min-width: 0; color: inherit; font-size: 21px; line-height: 1.05; overflow-wrap: anywhere; }
.brand small { min-width: 0; color: #b7d5d0; overflow-wrap: anywhere; }

.account { padding: 14px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); background: rgba(255,255,255,.06); }
.account strong, .account span { display: block; min-width: 0; overflow-wrap: anywhere; }
.account span { margin-top: 4px; color: #b7d5d0; font-size: 13px; }
.sidebar nav { display: grid; gap: 6px; }
.sidebar nav a, .logout { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; border-radius: var(--radius); color: #e8f6f2; padding: 11px 12px; overflow-wrap: anywhere; }
.sidebar nav a:hover, .logout:hover { background: #e8f6f2; color: var(--nav); }
.logout { margin-top: auto; border: 1px solid rgba(255,255,255,.18); }
.nav-label { min-width: 0; }
.nav-count { min-width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 999px; background: #d9363e; color: #fff; padding: 0 7px; font-size: 11px; font-weight: 900; line-height: 1; }
.sidebar nav a:hover .nav-count { background: #b4232c; color: #fff; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; }
.icon-button .icon { width: 19px; height: 19px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.page-head, .section-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; margin-bottom: 18px; }
.section-header.compact { margin-bottom: 10px; }
.eyebrow { display: block; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: 0; text-transform: uppercase; }
.close-page { width: 40px; height: 40px; display: inline-grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); box-shadow: 0 8px 18px rgba(31,48,52,.08); }
.close-page:hover { border-color: #f0bab3; background: #fff0ee; color: var(--danger); }

.panel, .card, .stat, .auth-card, .public-header { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel { padding: 20px; margin-bottom: 18px; }
.grid { display: grid; gap: 18px; min-width: 0; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { padding: 18px; }
.stat-link { display: block; color: var(--text); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.stat-link:hover, .stat-link:focus-visible { transform: translateY(-2px); border-color: var(--brand-2); box-shadow: 0 10px 22px rgba(31, 48, 52, .11); color: var(--text); }
.stat-link:focus-visible { outline: 3px solid rgba(47, 143, 120, .32); outline-offset: 2px; }
.stat span { display: block; color: var(--muted); font-size: 13px; }
.stat strong { display: block; margin-top: 8px; font-size: 32px; line-height: 1; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; margin-bottom: 20px; }
.job-listing-update { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; padding: 10px 12px; border: 1px solid #d5e8e1; border-radius: 10px; background: #f1faf4; color: var(--text); font-weight: 700; }
.card { padding: 18px; }
.card p { color: var(--muted); }
.page-description { max-width: 720px; margin: 10px 0 0; color: var(--muted); }
.card-list { display: grid; gap: 10px; min-width: 0; }
.mini-card { display: grid; gap: 5px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.mini-card span { color: var(--muted); }

.button, button.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; max-width: 100%; border: 1px solid var(--brand); border-radius: var(--radius); background: var(--brand); color: #fff; padding: 0 14px; font-weight: 800; line-height: 1.2; text-align: center; cursor: pointer; white-space: normal; }
.button.secondary, button.secondary { background: #eef7f4; color: var(--brand); border-color: var(--line); }
.action-restricted[aria-disabled="true"] { opacity: .58; cursor: not-allowed; }
.button.secondary.danger-button, button.secondary.danger-button { border-color: #f0bab3; background: #fff0ee; color: var(--danger); }
.password-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.password-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: 14px; align-items: end; min-width: 0; }
.password-toggle { width: 44px; height: 42px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: #eef7f4; color: var(--brand); padding: 0; font-weight: 800; cursor: pointer; }
.password-toggle:hover { border-color: var(--brand); background: #e3f3ee; }
.password-toggle .icon-hide { display: none; }
.password-toggle.is-visible .icon-show { display: none; }
.password-toggle.is-visible .icon-hide { display: inline-grid; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; min-width: 0; }
.actions-cell form, .inline-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.document-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.document-actions.full { margin-top: 0; }
.mini { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); color: var(--brand); padding: 0 9px; font-size: 12px; font-weight: 800; line-height: 1.15; text-align: center; cursor: pointer; white-space: normal; }
.mini.success { color: var(--success); }
.mini.warning { color: var(--warning); }
.mini.danger { color: var(--danger); }
.mini.active { border-color: var(--brand); background: #e3f3ee; color: var(--brand); }
.mini .nav-count { margin-left: 6px; min-width: 22px; height: 22px; }

.badge { display: inline-flex; align-items: center; min-height: 26px; max-width: 100%; border-radius: 6px; padding: 4px 8px; font-size: 12px; font-weight: 900; overflow-wrap: anywhere; }
.badge.success { background: #e7f5ec; color: var(--success); }
.badge.warning { background: #fff4dc; color: var(--warning); }
.badge.danger { background: #fff0ee; color: var(--danger); }
.badge.neutral { background: #eef4f2; color: var(--muted); }
.toast-stack { position: fixed; top: max(18px, env(safe-area-inset-top)); right: max(18px, env(safe-area-inset-right)); z-index: 120; display: grid; gap: 10px; width: min(390px, calc(100vw - 36px)); pointer-events: none; }
.toast { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 13px 12px 13px 16px; border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: var(--radius); background: var(--surface); box-shadow: 0 16px 34px rgba(16, 35, 39, .18); color: var(--text); font-weight: 700; line-height: 1.4; pointer-events: auto; animation: toast-in .24s ease-out both; }
.toast-success { border-left-color: var(--success); background: #f1faf4; }
.toast-error, .toast-failed { border-left-color: var(--danger); background: #fff5f3; color: #893932; }
.toast-warning { border-left-color: var(--warning); background: #fff9ec; color: #82510e; }
.toast-info { border-left-color: var(--brand); background: #f0f8f7; }
.toast-dismiss { width: 28px; height: 28px; display: grid; place-items: center; margin: -3px -2px 0 0; border: 1px solid transparent; border-radius: 50%; background: transparent; color: currentColor; font-size: 23px; line-height: 1; cursor: pointer; }
.toast-dismiss:hover, .toast-dismiss:focus-visible { border-color: currentColor; background: rgba(255, 255, 255, .7); }
.toast.is-hiding { animation: toast-out .2s ease-in both; }
@keyframes toast-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toast-out { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(18px); } }

.form-grid, .toolbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; align-items: end; min-width: 0; }
.form-grid .full, .toolbar .full { grid-column: 1 / -1; }
.skill-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; min-height: 44px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); }
.skill-picker:focus-within { border-color: var(--brand-2); outline: 3px solid rgba(47, 143, 120, .22); outline-offset: 1px; }
.skill-picker input[data-skill-picker-input] { width: auto; min-width: 150px; flex: 1 1 170px; min-height: 32px; border: 0; border-radius: 4px; background: transparent; padding: 5px; outline: 0; }
.skill-picker input[data-skill-picker-input]:focus { outline: 0; }
.skill-picker-tags { display: contents; }
.skill-chip { display: inline-flex; max-width: 100%; align-items: center; gap: 5px; border-radius: 999px; background: #dff1e9; color: #155a4f; padding: 5px 7px 5px 10px; font-size: 12px; font-weight: 800; }
.skill-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skill-chip-remove { width: 20px; height: 20px; flex: 0 0 auto; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; font-size: 17px; line-height: 1; }
.skill-chip-remove:hover { background: rgba(21, 90, 79, .14); }
.toolbar { margin-bottom: 18px; }
.checkbox { display: flex; align-items: center; gap: 10px; }
.checkbox input { width: auto; }

.table-wrap { max-width: 100%; max-height: min(62vh, 560px); overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); scrollbar-color: var(--brand-2) rgba(31, 103, 107, .12); scrollbar-width: thin; }
.table-wrap::-webkit-scrollbar { width: 9px; height: 9px; }
.table-wrap::-webkit-scrollbar-track { border-radius: 999px; background: rgba(31, 103, 107, .10); }
.table-wrap::-webkit-scrollbar-thumb { border: 2px solid var(--surface); border-radius: 999px; background: var(--brand-2); }
table { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; background: var(--surface); }
th, td { border-bottom: 1px solid var(--line); padding: 16px; text-align: left; vertical-align: middle; }
th { position: sticky; top: 0; z-index: 1; color: var(--muted); background: #eef7f4; font-size: 11px; font-weight: 900; letter-spacing: .045em; line-height: 1.25; text-transform: uppercase; white-space: nowrap; }
thead th:first-child { border-top-left-radius: 9px; }
thead th:last-child { border-top-right-radius: 9px; }
tbody td { min-width: 120px; color: var(--text); font-size: 14px; line-height: 1.45; }
tbody tr { transition: background .16s ease, box-shadow .16s ease; }
tbody tr:hover { background: #eef7f4; box-shadow: inset 3px 0 0 var(--brand-2); }
tbody tr:last-child td { border-bottom: 0; }
.empty-table-row:hover { background: var(--surface); box-shadow: none; }
.empty-table-cell { min-width: 0; padding: 28px 16px; color: var(--muted); font-weight: 700; text-align: center; }
.table-wrap .identity { min-width: 190px; }
.table-wrap td > strong { display: block; line-height: 1.2; }
.table-wrap td > strong + br, .table-wrap .identity > div > br { display: none; }
.table-wrap td > strong + br + small, .table-wrap .identity > div > small { display: block; margin-top: 2px; line-height: 1.2; }
.table-wrap .identity > div { line-height: 1.2; }
.table-wrap .badge { border-radius: 8px; padding: 5px 9px; }
.table-wrap .mini { min-height: 32px; border-radius: 7px; }
.table-wrap .actions-cell { min-width: max-content; white-space: nowrap; }
.table-wrap .actions-cell form, .table-wrap .inline-form { display: inline-flex; width: max-content; flex-wrap: nowrap; vertical-align: middle; }
.table-wrap .actions-cell .mini, .table-wrap .inline-form .mini { flex: 0 0 auto; white-space: nowrap; }
.table-wrap .inline-form select { width: auto; min-width: 120px; flex: 0 0 auto; }
.table-wrap .account-status-form { display: grid; grid-template-columns: minmax(190px, 240px) repeat(4, max-content); width: max-content; align-items: center; }
.table-wrap .account-status-form .suspension-reason, .table-wrap .account-status-form .rejection-reason { min-height: 52px; resize: vertical; }
.table-wrap .employer-status-form { grid-template-columns: minmax(190px, 240px) minmax(190px, 240px) repeat(4, max-content); }
@media (max-width: 760px) { .table-wrap { border-radius: 8px; } th, td { padding: 13px; } tbody td { min-width: 110px; } }

.identity, .title-with-avatar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 11px; align-items: center; min-width: 0; }
.identity strong, .identity span, .identity small, .title-with-avatar strong, .title-with-avatar small, .profile-preview strong, .profile-preview small { min-width: 0; overflow-wrap: anywhere; }
.identity strong, .title-with-avatar strong, .profile-preview strong, .profile-preview small { display: block; }
.identity p, .title-with-avatar p { margin: 0; }
.avatar { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; background: #edf5f3; color: var(--brand); font-size: 13px; font-weight: 900; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.logo-avatar { border-radius: var(--radius); background: #fff; }
.avatar.large { width: 64px; height: 64px; font-size: 18px; }
.profile-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.profile-preview > div { min-width: 0; }
.official-profile { border-color: rgba(47, 143, 120, .22); background: linear-gradient(135deg, #f7fbfa, #fff8e8); }

.notification-toolbar { margin-bottom: 14px; }
.notification-list { display: grid; gap: 12px; margin-bottom: 20px; }
.notification-card { position: relative; display: grid; gap: 10px; }
.notification-card.is-unread { border-color: rgba(47, 143, 120, .45); box-shadow: inset 4px 0 0 var(--brand-2); }
.notification-card h3 { margin-bottom: 4px; }
.notification-card p { margin-bottom: 0; }
.notification-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.notification-title h3 { margin-bottom: 4px; }
.unread-dot { display: inline-block; width: 10px; height: 10px; flex: 0 0 auto; vertical-align: middle; border-radius: 999px; background: var(--brand-2); box-shadow: 0 0 0 3px rgba(47, 143, 120, .14); }
.item-new-dot { margin-right: 7px; }
.notification-title .unread-dot { margin-right: 0; }

.confirm-modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 20px; }
.confirm-modal.is-open { display: grid; }
.confirm-backdrop { position: absolute; inset: 0; background: rgba(16, 35, 39, .52); }
.confirm-box { position: relative; width: min(430px, 100%); min-width: 0; display: grid; gap: 10px; padding: 26px; border: 1px solid rgba(217, 230, 226, .95); border-radius: var(--radius); background: linear-gradient(180deg, #ffffff, #f9fcfb); box-shadow: 0 26px 70px rgba(16, 35, 39, .26); text-align: center; }
.confirm-box::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(90deg, var(--brand-2), var(--gold)); }
.confirm-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.confirm-close:hover { border-color: #f0bab3; background: #fff0ee; color: var(--danger); }
.confirm-icon { width: 48px; height: 48px; display: inline-grid; place-items: center; justify-self: center; border-radius: 50%; background: #fff4dc; color: var(--warning); font-size: 24px; font-weight: 900; box-shadow: 0 0 0 6px rgba(242, 189, 87, .18); }
.confirm-box h2 { margin-bottom: 0; font-size: 21px; line-height: 1.18; }
.confirm-box p { margin-bottom: 18px; color: var(--muted); }
.confirm-box .actions { justify-content: flex-end; }
.confirm-box .mini.danger { border-color: #f0bab3; background: #fff0ee; }

.document-modal { position: fixed; inset: 0; z-index: 110; display: none; place-items: center; padding: 20px; }
.document-modal.is-open { display: grid; }
.document-backdrop { position: absolute; inset: 0; background: rgba(16, 35, 39, .62); }
.document-box { position: relative; width: min(920px, 100%); max-height: min(800px, calc(100vh - 40px)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 14px; padding: 20px; border: 1px solid rgba(217, 230, 226, .95); border-radius: var(--radius); background: var(--surface); box-shadow: 0 26px 70px rgba(16, 35, 39, .3); }
.document-box h2 { margin: 0; padding-right: 36px; }
.document-close { position: absolute; top: 11px; right: 11px; width: 34px; height: 34px; border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--muted); font-size: 25px; line-height: 1; cursor: pointer; }
.document-close:hover { border-color: #f0bab3; background: #fff0ee; color: var(--danger); }
.document-content { min-height: min(62vh, 610px); overflow: auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); }
.document-content iframe { width: 100%; height: min(62vh, 610px); border: 0; background: #fff; }
.document-content img { max-width: 100%; max-height: min(62vh, 610px); object-fit: contain; }
.document-message { max-width: 520px; padding: 24px; text-align: center; color: var(--muted); }
.document-footer { display: flex; justify-content: flex-end; }

.bar-row { display: grid; grid-template-columns: minmax(110px, 150px) minmax(0, 1fr) 42px; gap: 12px; align-items: center; margin: 14px 0; }
.bar-row div { height: 12px; overflow: hidden; border-radius: 6px; background: #e7efed; }
.bar-row b { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand-2), var(--gold)); }

.public-page { background: var(--bg); }
.public-header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 14px max(18px, calc((100vw - 1180px) / 2)); border-width: 0 0 1px; border-radius: 0; box-shadow: 0 8px 24px rgba(31,48,52,.06); }
.public-header nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.public-brand { color: var(--text); }
.public-brand small { color: var(--muted); }
.public-main { width: min(1180px, calc(100% - 32px)); margin: 0 auto 44px; }
.hero { width: 100%; margin: 0 0 28px; padding: 64px 16px; background: linear-gradient(120deg, #ffffff 0%, #edf8f4 52%, #fff3d6 100%); }
.hero-inner { width: min(1180px, 100%); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr); gap: 32px; align-items: center; margin: 0 auto; }
.hero h1 { max-width: 780px; font-size: 44px; line-height: 1.08; }
.hero p { max-width: 720px; color: var(--muted); }
.hero-visual { display: grid; gap: 14px; min-width: 0; }
.hero-logo-panel { display: grid; place-items: center; min-height: 260px; border: 1px solid rgba(20, 63, 67, .12); border-radius: var(--radius); background: #fff9df; box-shadow: var(--shadow); }
.hero-logo-panel img { width: min(430px, 100%); max-height: 260px; object-fit: contain; }
.guest-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.guest-stat { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.86); }
.guest-stat strong { display: block; font-size: 25px; line-height: 1; }
.guest-stat span { color: var(--muted); font-size: 12px; font-weight: 800; }
.guest-section { margin-bottom: 28px; }
.feature-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; margin-bottom: 28px; }

.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(120deg, #e6f5ef, #fff7e8); }
.auth-card { width: min(460px, 100%); display: grid; gap: 16px; padding: 26px; box-shadow: var(--shadow); }
.auth-card.wide { width: min(860px, 100%); }
.employer-only { display: none; }
body:has(#roleSelect option[value="employer"]:checked) .employer-only { display: grid; }
body:has(#roleSelect option[value="employer"]:checked) .jobseeker-only { display: none; }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; max-height: 100vh; overflow-y: auto; }
  .sidebar nav { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
  .logout { margin-top: 0; }
  .hero-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main { padding: 16px; }
  h1 { font-size: 28px; }
  .public-header, .page-head, .section-header { align-items: flex-start; flex-direction: column; }
  .public-header nav { width: 100%; }
  .password-pair { grid-template-columns: minmax(0, 1fr) auto; }
  .password-pair label { grid-column: 1 / -1; }
  .password-pair .password-toggle { grid-column: 2; justify-self: end; }
  .hero { padding: 36px 16px; }
  .hero h1 { font-size: 32px; }
  .hero-logo-panel { min-height: 210px; }
  .bar-row { grid-template-columns: minmax(90px, 1fr) minmax(0, 1.5fr) 36px; }
  table { min-width: 640px; }
}

@media (max-width: 480px) {
  .brand { grid-template-columns: 44px minmax(0, 1fr); }
  .brand-logo { width: 44px; height: 44px; }
  .brand strong { font-size: 18px; }
  .auth-card { padding: 20px; }
  .actions .button, .public-header nav .button { width: 100%; }
  .topbar { margin: -8px -2px 14px; padding: 8px 2px; }
  .topbar-actions { gap: 8px; padding: 6px; }
  .top-icon-button { width: 42px; height: 42px; }
  .account-toggle { max-width: none; padding-right: 5px; }
  .account-toggle span { display: none; }
  .identity { grid-template-columns: 38px minmax(0, 1fr); }
  .title-with-avatar { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; }
  .title-with-avatar .avatar.large { width: 56px; height: 56px; }
  .avatar { width: 38px; height: 38px; }
  .avatar.large { width: 56px; height: 56px; }
}

/* Responsive usability enhancements */
html { scroll-behavior: smooth; scroll-padding-top: 18px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-2); outline: 3px solid rgba(47, 143, 120, .22); outline-offset: 1px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid rgba(47, 143, 120, .55); outline-offset: 3px; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 1000; border-radius: 7px; background: var(--nav); color: #fff; padding: 11px 14px; box-shadow: var(--shadow); transform: translateY(-150%); transition: transform .18s ease; }
.skip-link:focus { transform: translateY(0); color: #fff; }

.scroll-top { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: var(--nav); color: #fff; box-shadow: 0 12px 28px rgba(20, 63, 67, .28); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .18s ease, transform .18s ease, background .18s ease; }
.scroll-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { background: var(--brand); }

@media (max-width: 760px) {
  input, select, textarea { min-height: 44px; font-size: 16px; }
  .button, button.button { min-height: 44px; }
  .mini { min-height: 36px; }
  .main { padding: 16px; }
  .panel, .card { padding: 16px; }
  .page-head { gap: 8px; margin-bottom: 16px; }
  .page-head h1 { font-size: 26px; line-height: 1.15; }
  .page-description { margin-top: 6px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px; }
  .stat strong { margin-top: 6px; font-size: 27px; }
  .card-grid, .grid.two { grid-template-columns: 1fr; gap: 12px; }
  .form-grid, .toolbar { grid-template-columns: 1fr; gap: 12px; }
  .toolbar > .button, .toolbar > button { width: 100%; }
  .actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 9px; }
  .actions .button, .actions button { width: 100%; }
  .public-header nav { justify-content: stretch; }
  .public-header nav > a { min-height: 44px; display: inline-flex; align-items: center; }
  .table-wrap { max-height: min(68vh, 620px); }
}

@media (max-width: 620px) {
  .public-header { gap: 10px; padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left)); }
  .public-header nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .public-header nav > a { justify-content: center; }
  .public-main { width: min(100% - 24px, 1180px); margin-bottom: 28px; }
  .hero { margin-bottom: 20px; padding: 28px 12px; }
  .hero h1 { font-size: 29px; }
  .hero-logo-panel { min-height: 180px; }
  .guest-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-page { align-items: start; padding: max(16px, env(safe-area-inset-top)) 14px 24px; }
  .auth-card { padding: 18px; }
  .table-wrap { border-radius: 8px; }
  .table-wrap table { min-width: 0; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
  .table-wrap tbody tr { padding: 4px 0; border-bottom: 1px solid var(--line); }
  .table-wrap tbody tr:last-child { border-bottom: 0; }
  .table-wrap tbody td { min-width: 0; display: grid; grid-template-columns: minmax(92px, 38%) minmax(0, 1fr); gap: 12px; align-items: start; padding: 11px 14px; border-bottom: 1px solid rgba(217, 230, 226, .72); }
  .table-wrap tbody td:last-child { border-bottom: 0; }
  .table-wrap tbody td::before { content: attr(data-label); min-width: 0; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .045em; line-height: 1.35; text-transform: uppercase; }
  .table-wrap tbody td.empty-table-cell { display: block; padding: 26px 14px; text-align: center; }
  .table-wrap tbody td.empty-table-cell::before { display: none; }
  .table-wrap tbody tr:hover { box-shadow: inset 3px 0 0 var(--brand-2); }
  .table-wrap .identity { min-width: 0; }
  .table-wrap .actions-cell { min-width: 0; white-space: normal; }
  .table-wrap .actions-cell form, .table-wrap .inline-form { max-width: 100%; overflow-x: auto; padding-bottom: 3px; }
  .table-wrap .document-actions { margin-top: 6px; }
  .table-wrap .actions-cell .job-status-form,
  .table-wrap .interview-schedule-form {
    display: grid;
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 0;
  }
  .table-wrap .job-status-form .job-status-reason,
  .table-wrap .account-status-form .suspension-reason,
  .table-wrap .account-status-form .rejection-reason,
  .table-wrap .interview-schedule-form .interview-location,
  .table-wrap .interview-schedule-form .interview-type,
  .table-wrap .interview-schedule-form .interview-notes,
  .table-wrap .interview-schedule-form .interview-submit { grid-column: 1 / -1; width: 100%; }
  .table-wrap .job-status-form .job-status-reason { min-height: 82px; resize: vertical; }
  .table-wrap .actions-cell .account-status-form { display: grid; width: 100%; max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: visible; padding: 0; }
  .table-wrap .account-status-form .suspension-reason { grid-column: 1 / -1; width: 100%; min-height: 82px; }
  .table-wrap .account-status-form .rejection-reason { grid-column: 1 / -1; width: 100%; min-height: 82px; }
  .table-wrap .interview-schedule-form .interview-date,
  .table-wrap .interview-schedule-form .interview-time { width: 100%; min-width: 0; }
}

@media (max-width: 390px) {
  .stat-grid, .guest-stats { grid-template-columns: 1fr; }
  .actions { grid-template-columns: 1fr; }
  .public-header nav { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 24px; }
}

.public-menu { display: flex; align-items: center; min-width: 0; }
.public-menu-toggle { display: none; }

@media (max-width: 760px) {
  .public-page .public-header { flex-direction: row; align-items: center; min-height: 68px; }
  .public-page .public-header .public-brand { flex: 1; }
  .public-page .public-menu { position: relative; margin-left: auto; }
  .public-page .public-menu-toggle { width: 44px; height: 44px; display: grid; gap: 4px; place-content: center; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--brand); cursor: pointer; }
  .public-page .public-menu-toggle span { display: block; width: 19px; height: 2px; border-radius: 999px; background: currentColor; }
  .public-page .public-menu-toggle:hover, .public-page .public-menu-toggle:focus-visible { border-color: var(--brand-2); background: var(--soft); }
  .public-page .public-menu nav { position: absolute; top: calc(100% + 10px); right: 0; z-index: 20; display: none; width: min(280px, calc(100vw - 32px)); grid-template-columns: 1fr; gap: 7px; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 18px 38px rgba(16,35,39,.18); }
  .public-page .public-menu.is-open nav { display: grid; }
  .public-page .public-menu nav > a { justify-content: flex-start; width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 8px; }
  .public-page .public-menu nav > a:not(.button):hover, .public-page .public-menu nav > a:not(.button):focus-visible { background: var(--soft); }
  .public-page .public-menu nav > a.button { justify-content: center; justify-self: stretch; width: 100%; }
}

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