/* Petro Rabigh Training Portal — application shell
   Tokens mirror docs/DESIGN.md and the frontend reference mockup. */
:root {
  --teal: #007d7a;
  --teal-deep: #064e4b;
  --teal-2: #12a39f;
  --orange: #f58220;
  --green: #168a5b;
  --amber: #d97706;
  --red: #b42318;
  --blue: #2563eb;
  --bg: #f6f8f8;
  --surface: #ffffff;
  --surface-2: #eef5f5;
  --surface-3: #e6efef;
  --text: #18181b;
  --muted: #475569;
  --border: #d7e2e2;
  --shadow: 0 18px 50px rgba(15, 23, 42, .08);
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, .06);
  --radius: 8px;
  --radius-lg: 12px;
  --sidebar: #0f2f2e;
  --sidebar-text: #d8eeee;
  --sidebar-muted: #8fb8b6;
  --focus: 0 0 0 3px rgba(0, 125, 122, .28);
  --mono: "JetBrains Mono", Consolas, ui-monospace, monospace;
  --sans: "Century Gothic", Aptos, "Segoe UI", Arial, sans-serif;
  --arabic: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
}
body.dark {
  --bg: #0b1414;
  --surface: #111f1f;
  --surface-2: #182a2a;
  --surface-3: #1e3231;
  --text: #edf7f7;
  --muted: #a8bdbc;
  --border: #294242;
  --shadow: 0 18px 50px rgba(0, 0, 0, .3);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, .25);
  --sidebar: #081111;
  --sidebar-text: #e6fbfa;
  --sidebar-muted: #93aaa9;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  letter-spacing: 0;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, select, [role="button"] { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.mono { font-family: var(--mono); }
.arabic-text, :lang(ar), [dir="rtl"], [data-lang="ar"] { font-family: var(--arabic); }
[dir="rtl"], [data-lang="ar"] { text-align: right; }
.icon { flex: none; }
.muted { color: var(--muted); }

/* ---------- App layout ---------- */
.app { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--sidebar), #0a2221);
  color: var(--sidebar-text);
  border-right: 1px solid rgba(255,255,255,.08);
  padding: 16px 12px; z-index: 40;
}
.brand { display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: center; padding: 6px 8px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-mark { width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--teal-2)); box-shadow: inset 0 -8px 16px rgba(0,0,0,.16); color: #fff; }
.brand h1 { font-size: 14px; line-height: 1.2; margin: 0; font-weight: 700; }
.brand p { margin: 3px 0 0; color: var(--sidebar-muted); font-size: 11px; }

.nav-group { margin-top: 14px; }
.nav-group > .nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--sidebar-muted); padding: 4px 10px; font-weight: 700; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--sidebar-text); font-size: 13px; margin: 2px 0; transition: background .15s, color .15s; }
.nav-item:hover { background: rgba(255,255,255,.06); }
.nav-item.active { background: linear-gradient(135deg, rgba(0,125,122,.9), rgba(18,163,159,.7)); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.nav-item .icon { opacity: .9; }
.nav-item .nav-badge { margin-left: auto; background: var(--orange); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }

/* ---------- Main + topbar ---------- */
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px;
  padding: 12px 22px; background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.topbar .menu-btn { display: none; }
.search { position: relative; flex: 1; max-width: 460px; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; padding: 9px 12px 9px 38px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--muted); transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; min-width: 15px; height: 15px; padding: 0 3px; background: var(--orange); color: #fff; font-size: 9px; font-weight: 700; border-radius: 999px; display: grid; place-items: center; }
.profile-chip { display: flex; align-items: center; gap: 9px; padding: 5px 10px 5px 6px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--teal-2)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.profile-chip .who { line-height: 1.15; }
.profile-chip .who strong { font-size: 12.5px; display: block; }
.profile-chip .who span { font-size: 10.5px; color: var(--muted); }

.content { padding: 22px; max-width: 1480px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h2 { margin: 0; font-size: 22px; }
.page-head .sub { color: var(--muted); margin: 4px 0 0; font-size: 13px; }
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 8px; border: 1px solid transparent; font-weight: 600; font-size: 13px; background: var(--surface-2); color: var(--text); transition: transform .05s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: #00918d; }
.btn--warning { background: var(--orange); color: #fff; }
.btn--warning:hover { filter: brightness(1.05); }
.btn--danger { background: var(--red); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--muted); }
.btn--ghost:hover { background: var(--surface-2); color: var(--text); }
.btn--sm { padding: 6px 11px; font-size: 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Cards / panels ---------- */
.grid { display: grid; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card__head h3 { margin: 0; font-size: 15px; }
.card__head .hint { font-size: 12px; color: var(--muted); }
.card__body { padding: 18px; }
.card__body.tight { padding: 0; }

/* KPI strip */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--teal); }
.kpi.amber::after { background: var(--amber); }
.kpi.red::after { background: var(--red); }
.kpi.green::after { background: var(--green); }
.kpi.blue::after { background: var(--blue); }
.kpi .k-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.kpi .k-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--teal); }
.kpi.amber .k-ico { color: var(--amber); } .kpi.red .k-ico { color: var(--red); } .kpi.green .k-ico { color: var(--green); } .kpi.blue .k-ico { color: var(--blue); }
.kpi .k-val { font-size: 30px; font-weight: 700; margin: 8px 0 2px; font-family: var(--mono); }
.kpi .k-sub { font-size: 12px; color: var(--muted); }

/* Dashboard layout columns */
.cols { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 16px; align-items: start; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
@media (max-width: 1080px) { .cols, .cols-2, .cols-3 { grid-template-columns: 1fr; } }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 1.4; border: 1px solid transparent; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--green { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }
.badge--amber { color: var(--amber); background: color-mix(in srgb, var(--amber) 13%, transparent); }
.badge--red { color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
.badge--blue { color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, transparent); }
.badge--neutral { color: var(--muted); background: var(--surface-2); }

/* ---------- Data table + toolbar ---------- */
.toolbar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.toolbar .t-search { position: relative; flex: 1; min-width: 180px; max-width: 320px; }
.toolbar .t-search .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.toolbar .t-search input { width: 100%; padding: 8px 10px 8px 34px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); font-size: 13px; }
.toolbar .spacer { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 12px; color: var(--muted); }
.chip.active { border-color: var(--teal); color: var(--teal); background: color-mix(in srgb, var(--teal) 8%, transparent); }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data thead th { position: sticky; top: 0; background: var(--surface-2); text-align: left; padding: 11px 14px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; z-index: 1; }
table.data tbody td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tbody tr { transition: background .12s; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data td.num { font-family: var(--mono); }
table.data .row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.table-foot { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--border); }

.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .icon { color: var(--border); margin-bottom: 10px; }
.empty h4 { margin: 0 0 4px; color: var(--text); font-size: 15px; }

/* ---------- Action queue / to-do ---------- */
.queue { display: flex; flex-direction: column; }
.queue-item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.queue-item:last-child { border-bottom: 0; }
.queue-item .q-ico { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--teal); flex: none; }
.queue-item.warn .q-ico { color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, transparent); }
.queue-item.crit .q-ico { color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
.queue-item .q-body { min-width: 0; flex: 1; }
.queue-item .q-body strong { font-size: 13.5px; display: block; }
.queue-item .q-body span { font-size: 12px; color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; }
.queue-item .q-meta { margin-left: auto; text-align: right; font-size: 11px; color: var(--muted); white-space: nowrap; }

/* Notification rail */
.rail .notif { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.rail .notif:last-child { border-bottom: 0; }
.rail .notif .n-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-top: 6px; flex: none; }
.rail .notif.read .n-dot { background: var(--border); }
.rail .notif .n-body strong { font-size: 13px; display: block; }
.rail .notif .n-body p { margin: 2px 0 6px; font-size: 12px; color: var(--muted); }
.rail .notif .n-time { font-size: 11px; color: var(--muted); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.field input[type="file"] { padding: 6px; color: var(--muted); background: var(--surface-2); }
.field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background .15s, transform .05s, box-shadow .15s;
}
.field input[type="file"]::-webkit-file-upload-button {
  margin-right: 12px;
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background .15s, transform .05s, box-shadow .15s;
}
.field input[type="file"]:hover::file-selector-button,
.field input[type="file"]:hover::-webkit-file-upload-button { background: #00918d; box-shadow: var(--shadow); }
.field input[type="file"]:active::file-selector-button,
.field input[type="file"]:active::-webkit-file-upload-button { transform: translateY(1px); }
.field input[type="file"]:focus-visible { outline: 3px solid color-mix(in srgb, var(--teal) 24%, transparent); outline-offset: 2px; }
.field input[readonly], .field textarea[readonly] { background: var(--surface-2); color: var(--muted); }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.field .err { font-size: 11.5px; color: var(--red); margin-top: 5px; }
.field input.lang-invalid, .field textarea.lang-invalid { border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 14%, transparent); }
.field .lang-error { display: none; font-size: 11.5px; color: var(--red); margin-top: 5px; }
.field .lang-error.show { display: block; }
.field.locked label::after { content: " · locked"; color: var(--muted); font-weight: 400; font-size: 11px; }

/* ---------- Flash / alerts ---------- */
.flash-stack { position: fixed; top: 16px; right: 16px; z-index: 90; display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); font-size: 13px; }
.alert.success { border-left: 4px solid var(--green); }
.alert.error { border-left: 4px solid var(--red); }
.alert.info { border-left: 4px solid var(--blue); }
.alert.warning { border-left: 4px solid var(--amber); }
.alert .x { margin-left: auto; color: var(--muted); background: none; border: 0; }

/* status strip / stepper */
.stepper { display: flex; gap: 6px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); font-size: 12px; color: var(--muted); background: var(--surface); }
.step.done { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, var(--border)); }
.step.active { color: #fff; background: var(--teal); border-color: var(--teal); }
.step .s-n { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--surface-2); color: inherit; }
.step.active .s-n { background: rgba(255,255,255,.2); color: #fff; }

/* status banner (contractor account) */
.banner { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
.banner .b-ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.banner.ok .b-ico { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }
.banner.pending .b-ico { color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, transparent); }
.banner.bad .b-ico { color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
.banner h3 { margin: 0 0 3px; font-size: 16px; }
.banner p { margin: 0; color: var(--muted); font-size: 13px; }

/* modal / drawer */
.modal-back { position: fixed; inset: 0; background: rgba(4,20,20,.5); z-index: 80; display: none; }
.modal-back.open { display: block; }
.drawer { position: fixed; top: 0; right: 0; height: 100vh; width: min(480px, 94vw); background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow); z-index: 85; transform: translateX(100%); transition: transform .22s ease; display: flex; flex-direction: column; }
.drawer.open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.drawer__head h3 { margin: 0; font-size: 16px; }
.drawer__body { padding: 18px; overflow-y: auto; }

.two-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1080px) { .two-tables { grid-template-columns: 1fr; } }

.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.list-plain li:last-child { border-bottom: 0; }
.list-plain li .lbl { color: var(--muted); }

.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.reason { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-size: 12px; }
.company-cell { display: flex; align-items: center; gap: 10px; min-width: 220px; max-width: 360px; }
.company-cell > a { width: 38px; height: 38px; flex: 0 0 38px; display: block; border-radius: 50%; overflow: hidden; }
.company-logo { width: 38px !important; height: 38px !important; max-width: 38px !important; max-height: 38px !important; border-radius: 50%; object-fit: cover; display: grid; place-items: center; flex: 0 0 38px; border: 1px solid var(--border); background: var(--surface-2); box-shadow: var(--shadow-sm); }
.company-logo--fallback { color: var(--teal); font-weight: 800; font-size: 14px; }

/* ---------- Login ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-aside { display: none; } }
.auth-aside { position: relative; background: linear-gradient(160deg, #007f82, #064e4b 60%, #053a38); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth-aside::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 10%, rgba(245,130,32,.22), transparent 30%), linear-gradient(180deg, rgba(255,255,255,.08), transparent 30%); }
.auth-aside .a-brand { display: flex; align-items: center; gap: 12px; position: relative; }
.auth-aside .a-brand .brand-mark { width: 46px; height: 46px; }
.auth-aside h2 { font-size: 30px; line-height: 1.2; position: relative; margin: 0 0 12px; }
.auth-aside p { color: rgba(255,255,255,.82); position: relative; max-width: 420px; }
.auth-feats { position: relative; display: grid; gap: 12px; margin-top: 22px; }
.auth-feats .f { display: flex; gap: 10px; align-items: center; font-size: 13.5px; }
.auth-feats .f .fi { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.auth-main { display: grid; place-items: center; padding: 32px; background: var(--bg); }
.auth-card { width: min(410px, 100%); }
.auth-card--wide { width: min(760px, 100%); }
.auth-card h1 { font-size: 22px; margin: 0 0 4px; }
.auth-card .sub { color: var(--muted); margin: 0 0 22px; font-size: 13px; }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 18px; background: var(--surface-2); padding: 4px; border-radius: 10px; }
.auth-tabs a { flex: 1; text-align: center; padding: 8px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.auth-tabs a.active { background: var(--surface); color: var(--teal); box-shadow: var(--shadow-sm); }
.auth-card .field { margin-bottom: 14px; }
.demo-creds { margin-top: 20px; border: 1px dashed var(--border); border-radius: 10px; padding: 12px 14px; font-size: 12px; color: var(--muted); }
.demo-creds strong { color: var(--text); }
.demo-creds code { font-family: var(--mono); background: var(--surface-2); padding: 1px 6px; border-radius: 5px; }

.progressbar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progressbar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-2)); }

.tag { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); font-weight: 600; }

/* ---------- Responsive sidebar ---------- */
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: translateX(0); }
  .topbar .menu-btn { display: grid; }
  .cols { grid-template-columns: 1fr; }
  .profile-chip .who { display: none; }
}
.scrim { display: none; }
@media (max-width: 960px) { .scrim.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 39; } }
