/* FacultyHub web — sign-in and account screens. Brand tokens shared with the iOS app (tokens.css). */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* The hidden attribute always hides, even on elements given a display below (.auth-shell is a grid). */
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.45; color: var(--ink); background: var(--bg); }
/* Off screen above the page (not to the side, which would make a right-to-left page scroll sideways). */
.skip { position: absolute; top: -200px; inset-inline-start: 8px; background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: var(--radius-sm); }
.skip:focus { top: 8px; z-index: 10; }
:focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 2px; }

.auth-shell { min-height: 100vh; display: grid; place-content: center; padding: 32px var(--gutter); gap: 16px; }
.auth-card { width: min(440px, calc(100vw - 2 * var(--gutter))); background: var(--surface); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card); padding: 28px; }
.fineprint { text-align: center; color: var(--muted); font-size: 13px; margin: 0; }

.brand { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.brand img { height: 40px; width: 40px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--ink); direction: ltr; }
.wordmark b { color: var(--brand-strong); font-weight: 800; }
.wordmark img { border-radius: 22.5%; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
h1 { font-family: var(--font-display); font-size: 30px; line-height: 1.15; margin: 0 0 6px; letter-spacing: -.01em; }
.lead { color: var(--muted); margin: 0 0 22px; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-2); border-radius: 12px; padding: 3px; margin-bottom: 6px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { text-align: center; padding: 9px 8px; border-radius: 10px; font-weight: 600; font-size: 15px; cursor: pointer; color: var(--ink-2); }
.segmented input:checked + label { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.segmented input:focus-visible + label { outline: 3px solid var(--brand-strong); outline-offset: 1px; }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 18px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input { width: 100%; font: inherit; padding: 13px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-md);
  background: var(--surface); color: var(--ink); }
.field input:focus { border-color: var(--brand-strong); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field .help { font-size: 13px; color: var(--muted); margin-top: 6px; }
.code-input { letter-spacing: .3em; font-size: 22px !important; text-align: center; font-variant-numeric: tabular-nums; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; font: inherit; font-weight: 600; font-size: 17px;
  padding: 14px 18px; border-radius: var(--radius-md); border: 0; cursor: pointer; background: var(--brand-strong); color: #fff; }
.btn:hover { filter: brightness(.96); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.secondary { background: var(--bg-2); color: var(--ink); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-ink); font-weight: 600; cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px; }
.row { display: flex; justify-content: center; gap: 6px; margin-top: 18px; color: var(--muted); font-size: 15px; flex-wrap: wrap; }

.alert { border-radius: var(--radius-md); padding: 12px 14px; margin: 0 0 16px; font-size: 15px; }
.alert.error { background: var(--danger-soft); color: var(--danger); }
.alert.success { background: var(--success-soft); color: var(--success); }
.alert.info { background: var(--info-soft); color: var(--info); }

.account dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 20px; }
.account dt { color: var(--muted); }
.account dd { margin: 0; font-weight: 600; word-break: break-word; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--brand-soft); color: var(--brand-ink); }

@media (max-width: 420px) { .auth-card { padding: 22px 18px; } h1 { font-size: 26px; } }
@media (prefers-reduced-motion: no-preference) { .btn { transition: filter .15s; } }

/* ---------- signed-in app */
.app-shell { min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 10px var(--gutter);
  background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-logo { height: 32px; width: 32px; }
.topbar-mark { font-size: 18px; gap: 8px; }
.topnav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.topnav a { padding: 8px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.topnav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); }
.topnav .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-inline-start: 4px; border-radius: 999px; background: var(--brand-strong);
  color: #fff; font-size: 12px; text-align: center; }
.topbar-user { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 14px; }
.page { max-width: 1040px; margin: 0 auto; padding: 24px var(--gutter) 48px; }
.page h1 { font-size: 28px; }
.page h2 { font-size: 19px; margin: 28px 0 10px; }
.card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 18px; margin-bottom: 14px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 8px; }
.stat { background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 14px; }
.stat b { display: block; font-size: 26px; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 14px; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 14px 16px; margin-bottom: 10px;
  display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.list > li.unread { border-inline-start: 4px solid var(--brand-strong); }
.list a.title { color: var(--ink); font-weight: 600; text-decoration: none; }
.list a.title:hover { text-decoration: underline; }
.meta { color: var(--muted); font-size: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.chip { padding: 2px 9px; border-radius: 999px; background: var(--bg-2); font-size: 13px; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.status.requested, .status.pending { background: var(--warning-soft); color: var(--warning); }
.status.scheduled, .status.accepted, .status.collected { background: var(--success-soft); color: var(--success); }
.status.cancelled, .status.declined { background: var(--danger-soft); color: var(--danger); }
.status.completed, .status.distributed { background: var(--info-soft); color: var(--info); }
.status.new { background: var(--danger-soft); color: var(--danger); }
.status.under_review { background: var(--warning-soft); color: var(--warning); }
.status.closed { background: var(--success-soft); color: var(--success); }
.status.withdrawn { background: var(--bg-2); color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.small { width: auto; font-size: 15px; padding: 9px 14px; }
.btn.danger { background: var(--danger); }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.field select, .field textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-md);
  background: var(--surface); color: var(--ink); }
.field textarea { min-height: 90px; resize: vertical; }
.checks { display: flex; gap: 8px; flex-wrap: wrap; }
.checks label { display: inline-flex; gap: 6px; align-items: center; padding: 8px 12px; border: 1.5px solid var(--line-strong); border-radius: 10px;
  font-weight: 500; cursor: pointer; margin: 0; }
.checks input:checked + span { color: var(--brand-ink); font-weight: 700; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; font-weight: 600; }
.empty { color: var(--muted); padding: 18px; text-align: center; background: var(--surface-2); border-radius: var(--radius-md); }
table.simple { width: 100%; border-collapse: collapse; font-size: 15px; }
table.simple th, table.simple td { text-align: start; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.simple th { color: var(--muted); font-weight: 600; font-size: 13px; }
.table-wrap { overflow-x: auto; }
@media (max-width: 640px) { .topbar-user span { display: none; } .page { padding-top: 16px; } }

/* conversations */
.chat { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.chat .bubble { max-width: 78%; align-self: flex-start; }
.chat .bubble.mine { align-self: flex-end; text-align: end; }
.chat .bubble .text { display: inline-block; padding: 8px 12px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-card);
  white-space: pre-wrap; word-break: break-word; text-align: start; }
.chat .bubble.mine .text { background: var(--brand-strong); color: #fff; }

/* ---------- added: Arabic (RTL), welcome, empty states, account */
.brand .linkbtn { font-size: 15px; text-decoration: none; }
.row.end { justify-content: flex-end; margin: -6px 0 14px; }
.auth-foot { margin-top: 22px; }
.auth-foot a, .fineprint a { color: var(--brand-ink); }
.card.soft { background: var(--brand-softer); box-shadow: none; border: 1px solid var(--brand-soft); }
.auth-card .field textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); min-height: 90px; }
.welcome { border-inline-start: 4px solid var(--brand-strong); }
.steps { margin: 0 0 14px; padding-inline-start: 20px; display: grid; gap: 10px; }
.empty-card { text-align: center; }
.empty-card .actions { justify-content: center; margin-top: 12px; }
a.btn { text-decoration: none; }
h3.day { font-size: 16px; margin: 18px 0 8px; color: var(--ink-2); }
.danger-zone h2 { color: var(--danger); }
.alert.warning { background: var(--warning-soft); color: var(--warning); }
[dir="rtl"] .chat .bubble.mine { text-align: start; }
input[type="date"], input[type="time"] { direction: ltr; }
@media (max-width: 640px) {
  /* Phones: logo and account links on one line, the sections in one row that scrolls sideways. */
  .topbar { gap: 8px 12px; padding-bottom: 6px; }
  .topbar-user { margin-inline-start: auto; }
  .topnav { order: 3; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav a { white-space: nowrap; padding: 7px 10px; font-size: 14px; }
}

/* ---------- wide screens: the sign-in pages fill the window — a brand side and the form side */
.auth-hero { display: none; }
@media (min-width: 900px) {
  .auth-shell { grid-template-columns: minmax(380px, 1fr) minmax(480px, 1fr); place-content: stretch; padding: 0; gap: 0; min-height: 100vh; }
  .auth-hero { display: flex; align-items: center; justify-content: center; padding: 56px;
    background: radial-gradient(120% 90% at 85% 10%, #F9A15E 0%, var(--brand-strong) 45%, #B0520C 100%); color: #fff; }
  .hero-inner { max-width: 460px; }
  .hero-mark { display: inline-flex; align-items: center; gap: 14px; font-weight: 800; font-size: 30px; direction: ltr; }
  .hero-mark img { width: 64px; height: 64px; border-radius: 22.5%; box-shadow: 0 8px 24px rgba(0,0,0,.18); background: #fff; }
  .hero-mark b { color: #FFE2C8; font-weight: 800; }
  .hero-title { font-size: 30px; line-height: 1.25; margin: 28px 0 32px; font-weight: 700; }
  .hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
  .hero-points li { display: flex; gap: 14px; align-items: flex-start; }
  .hero-points strong { font-size: 17px; }
  .hero-points p { margin: 4px 0 0; color: rgba(255,255,255,.88); font-size: 15px; line-height: 1.5; }
  .hero-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.18); display: grid; place-items: center; }
  .hero-icon svg { width: 22px; height: 22px; }
  .auth-side { display: flex; align-items: center; justify-content: center; padding: 48px 32px; background: var(--surface); }
  .auth-card { width: min(460px, 100%); box-shadow: none; border-radius: 0; padding: 0; background: transparent; }
  .auth-side .brand { justify-content: flex-end; }
  .auth-side .brand .wordmark { display: none; }   /* the brand side already shows it */
}

/* =====================================================================================================================
   The signed-in web app in the iOS app's design: tab bar (side bar on wide screens), large titles, inset grouped cards.
   ===================================================================================================================== */
.ic { width: 20px; height: 20px; flex: none; }
[dir="rtl"] .ic.dir { transform: scaleX(-1); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0; pointer-events: none; }
.nowrap { white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .nowrap { direction: rtl; }
.block { display: block; }
.center { text-align: center; }
.pad { padding: 24px 0; }
.muted { color: var(--muted); }
.end { text-align: end; margin: 0 0 8px; }
.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52ch; }
.linkbtn.plain { text-decoration: none; }
.danger-text { color: var(--danger); }

/* ---- shell */
.app-shell { background: var(--bg); min-height: 100vh; }
.page { max-width: none; margin: 0; padding: 0; }
.tabbar .nav-brand { display: none; }
.nav-foot { display: none; }
@media (min-width: 900px) {
  .app-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); grid-template-rows: 1fr auto; }
  .app-shell::before { content: ""; grid-column: 1; grid-row: 1 / span 2; background: var(--surface); border-inline-end: 1px solid var(--line); }
  .tabbar { grid-column: 1; grid-row: 1; align-self: start; position: sticky; top: 0; padding: 22px 14px; display: flex; flex-direction: column; gap: 22px; }
  .tabbar .nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; padding: 0 8px; direction: ltr; justify-content: flex-end; }
  [dir="ltr"] .tabbar .nav-brand { justify-content: flex-start; }
  .tabbar .nav-brand img { width: 36px; height: 36px; border-radius: 22.5%; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
  .tabbar .nav-brand b { color: var(--brand-strong); }
  .nav-items { display: flex; flex-direction: column; gap: 4px; }
  .tab { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 16px; }
  .tab:hover { background: var(--surface-2); }
  .tab[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); }
  .tab-ic { position: relative; display: inline-grid; }
  .tab-ic .ic { width: 22px; height: 22px; }
  .nav-foot { grid-column: 1; grid-row: 2; position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 16px 22px 22px; font-size: 14px; color: var(--muted); }
  .nav-foot #whoami { flex-basis: 100%; font-weight: 600; color: var(--ink-2); }
  .page { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 899px) {
  .tabbar { position: fixed; z-index: 20; bottom: calc(10px + var(--safe-bottom)); inset-inline: 12px; background: rgba(255,255,255,.92);
    backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border: 1px solid var(--line-strong);
    border-radius: 34px; box-shadow: var(--shadow-float); padding: 6px; }
  .nav-items { display: grid; grid-template-columns: repeat(5, 1fr); }
  .tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px; border-radius: 26px; text-decoration: none; color: var(--ink); font-size: 11.5px; font-weight: 600; }
  .tab .ic { width: 24px; height: 24px; }
  .tab[aria-current="page"] { background: var(--bg-2); color: var(--brand-strong); }
  .tab-ic { position: relative; display: inline-grid; }
  .page { padding-bottom: 100px; }
}
.dot { position: absolute; top: -6px; inset-inline-end: -9px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger);
  color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; }

/* ---- screens */
.screen { max-width: 760px; margin: 0 auto; padding: 28px 20px 40px; }
.screen.wide { max-width: 1040px; }
.large-title { font-family: var(--font-display); font-size: 34px; line-height: 1.15; font-weight: 800; margin: 6px 0 18px; letter-spacing: -.01em; }
.large-title.small { font-size: 26px; margin: 2px 0 4px; }
.subtitle { color: var(--muted); margin: -10px 0 18px; }
.top-actions { display: flex; align-items: center; min-height: 44px; }
.top-actions .circle-btn.brand { margin-inline-start: auto; }
.circle-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--surface);
  border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.06); cursor: pointer; padding: 0; }
.circle-btn.brand { color: var(--brand-strong); }
.circle-btn .ic { width: 22px; height: 22px; }
.icon-btn { background: none; border: 0; color: var(--brand-strong); cursor: pointer; padding: 6px; display: inline-grid; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 28px 4px 10px; }
.section-head h2 { font-size: 22px; margin: 0; font-weight: 800; }
.section-head a { color: var(--brand-ink); text-decoration: none; font-weight: 600; }

/* ---- grouped cards and rows */
.group-title { font-size: 17px; font-weight: 700; color: var(--muted); margin: 26px 18px 8px; }
.group { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 6px; }
.group.pad { padding: 16px 18px; }
.group-foot { color: var(--muted); font-size: 14px; margin: 8px 18px 0; line-height: 1.5; }
.row-item { display: flex; align-items: center; gap: 12px; padding: 13px 18px; min-height: 52px; position: relative; color: var(--ink); text-decoration: none; width: 100%;
  background: none; border: 0; font: inherit; text-align: start; }
.row-item + .row-item::before, .group > div + .row-item::before, .row-item + div > .row-item:first-child::before { content: ""; position: absolute; top: 0; inset-inline: 18px 18px; border-top: 1px solid var(--line); }
.row-item.block { align-items: flex-start; flex-wrap: wrap; }
.row-item.link { cursor: pointer; }
.row-item.link:hover, .plain-btn:hover { background: var(--surface-2); }
.row-item .grow, .grow { flex: 1; min-width: 0; }
.row-item.unread strong { color: var(--brand-ink); }
.row-item.kv { align-items: flex-start; }
.row-item.kv .k { color: var(--muted); flex: 0 0 40%; }
.row-item.kv .v { flex: 1; font-weight: 600; text-align: end; word-break: break-word; }
.plain-btn { cursor: pointer; }
.danger-row { color: var(--danger); font-weight: 600; }
.tile { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); flex: none; }
.tile.neutral { background: var(--neutral-soft); color: var(--ink-2); }
.tile.warning { background: var(--warning-soft); color: var(--warning); }
.tile.danger { background: var(--danger-soft); color: var(--danger); }
.tile.info { background: var(--info-soft); color: var(--info); }
.tile.big { width: 64px; height: 64px; border-radius: 18px; }
.tile.big .ic { width: 32px; height: 32px; }
.chev { color: var(--faint); display: inline-grid; }
.chev .ic { width: 16px; height: 16px; }
.avatar { width: var(--s); height: var(--s); border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); display: inline-grid; place-items: center;
  font-weight: 700; font-size: calc(var(--s) * .36); flex: none; direction: ltr; }
.count { min-width: 24px; height: 24px; padding: 0 8px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); font-size: 13px; font-weight: 700;
  display: inline-grid; place-items: center; }
.card { border-radius: var(--radius-lg); }
.ok-line { display: flex; gap: 10px; align-items: center; color: var(--success); font-weight: 500; }
.ok-line .ic { width: 22px; height: 22px; }

/* ---- segmented controls (radios, links or buttons) */
.segmented { display: flex; gap: 0; }
.segmented > label, .segmented > a, .segmented > button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-align: center;
  padding: 9px 8px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 15px; color: var(--ink-2); text-decoration: none; background: none; border: 0; cursor: pointer; }
.segmented > a.on, .segmented > button.on, .segmented input:checked + label { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.segmented.big { border-radius: 14px; padding: 4px; margin-bottom: 16px; }
.segmented.big > a, .segmented.big > button, .segmented.big > label { padding: 11px 8px; border-radius: 11px; }
.segmented.four { flex-wrap: wrap; }

/* ---- Home */
.home-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.greet { color: var(--muted); font-weight: 600; font-size: 17px; margin: 0; }
.home-head .large-title { margin: 2px 0 10px; }
.chips-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.brand-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 15px; }
.brand-chip .ic { width: 18px; height: 18px; }
.role-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; font-size: 14px; }
.role-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.head-actions { display: flex; gap: 10px; align-items: center; }
.head-actions .circle-btn { color: var(--brand-strong); border-color: transparent; }
.hero { display: block; background: #121212; color: #fff; border-radius: 26px; padding: 22px 24px; text-decoration: none; margin-bottom: 14px; box-shadow: var(--shadow-card); }
.hero-top { display: flex; gap: 12px; }
.hero-label { color: rgba(255,255,255,.62); margin: 0 0 6px; font-weight: 600; }
.hero h2 { font-size: 36px; margin: 0; font-weight: 800; direction: ltr; text-align: start; }
[dir="rtl"] .hero h2 { text-align: end; direction: ltr; }
.hero-sub { color: rgba(255,255,255,.72); margin: 6px 0 16px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 44px; }
.bars i { width: 8px; border-radius: 2px; background: #4a4743; }
.bars i:nth-child(1) { height: 44px; } .bars i:nth-child(2) { height: 36px; } .bars i:nth-child(3) { height: 30px; }
.bars i:nth-child(4) { height: 22px; background: var(--brand); } .bars i:nth-child(5) { height: 16px; background: var(--brand); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.hero-grid span { display: inline-flex; gap: 8px; align-items: center; font-size: 17px; }
.hero-grid .ic { color: var(--brand); }
.hero-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.12); margin-top: 18px; padding-top: 14px; }
.hero-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 17px; }
.hero .status.scheduled { background: rgba(30,127,71,.25); color: #7fdc9f; }
.hero .status.requested { background: rgba(246,137,56,.22); color: #ffc08e; }
.stats { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); margin: 0 0 6px; }
.stats.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) { .stats.four { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--surface); border-radius: var(--radius-lg); box-shadow: none; padding: 14px 16px; }
.stat b { display: block; font-size: 28px; font-weight: 800; }
.stat b.hot { color: var(--brand-strong); }
.stat span { color: var(--muted); font-size: 14px; }
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .quick { grid-template-columns: repeat(3, 1fr); } }
.quick-item { background: var(--surface); border-radius: var(--radius-lg); padding: 16px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; min-height: 118px; }
.quick-item .tile { width: 44px; height: 44px; border-radius: 13px; margin-bottom: 8px; }
.quick-item:hover { box-shadow: var(--shadow-card); }

/* ---- exam cards, calendar events */
.exam-card { display: flex; gap: 14px; background: var(--surface); border-radius: 22px; padding: 18px; margin-bottom: 12px; text-decoration: none; color: var(--ink); }
.exam-card:hover { box-shadow: var(--shadow-card); }
.date-tile { flex: none; width: 76px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-ink); display: flex; flex-direction: column; align-items: center; padding: 10px 4px; align-self: flex-start; }
.date-tile b { font-size: 28px; line-height: 1; }
.date-tile span { font-weight: 700; font-size: 14px; }
.date-tile small { color: var(--muted); font-size: 12px; }
.ec-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.ec-head strong { font-size: 19px; }
.ec-sub { display: block; font-size: 17px; margin: 2px 0 8px; }
.ec-line { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 15px; margin-top: 4px; }
.ec-line .ic { width: 18px; height: 18px; }
.event { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border-radius: 22px; padding: 16px 18px; margin-bottom: 12px; text-decoration: none; color: var(--ink); }
.time-col { display: flex; flex-direction: column; min-width: 78px; }
.time-col b { font-size: 17px; }
.time-col small { color: var(--muted); }
.event .meta .ic { width: 16px; height: 16px; vertical-align: -3px; }
.ok-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; flex: none; }
.ok-dot .ic { width: 16px; height: 16px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin: 4px 0; }
.cal-nav strong { font-size: 19px; }
.day-title { font-size: 21px; font-weight: 800; margin: 22px 4px 10px; }
.empty-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 20px; }
.empty-card h2 { margin: 4px 0 0; font-size: 22px; }
.empty-card .btn { width: 100%; }
.btn .ic { width: 20px; height: 20px; }
.btn.soft { background: var(--brand-soft); color: var(--brand-ink); }
.btn.danger-soft { background: var(--danger-soft); color: var(--danger); }
.btn + .btn, .btn.soft, .btn.danger-soft { margin-top: 10px; }

/* ---- exam details */
.notice { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--radius-lg); padding: 16px 18px; margin-bottom: 4px; }
.notice p { margin: 4px 0 0; }
.notice.success { background: var(--success-soft); color: var(--success); }
.notice.success p { color: var(--ink); }
.notice.warning { background: var(--warning-soft); color: var(--warning); }
.notice.warning p, .notice.info p { color: var(--ink); }
.notice.info { background: var(--info-soft); color: var(--info); }
.notice .ic { width: 24px; height: 24px; }

/* ---- booking sheet */
.screen.sheet { max-width: 720px; }
.sheet-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.sheet-bar strong { font-size: 18px; }
.pill-btn { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--brand-ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.pill-btn.brand { color: var(--brand-strong); }
.pill-btn[disabled] { opacity: .5; }
.select-row select, .row-item select { border: 0; background: transparent; font: inherit; color: var(--brand-ink); font-weight: 600; max-width: 60%; text-align: end; cursor: pointer; padding: 4px; }
.pill-input { border: 0; background: var(--bg-2); border-radius: 12px; padding: 9px 14px; font: inherit; font-weight: 600; color: var(--ink); }
.stepper input { width: 64px; text-align: center; font: inherit; font-size: 20px; font-weight: 700; border: 0; background: transparent; color: var(--ink); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step { width: 60px; height: 44px; border-radius: 22px; border: 0; background: var(--brand-soft); color: var(--brand-strong); font-size: 26px; line-height: 1; cursor: pointer; }
.step:hover { filter: brightness(.97); }
.big-num { font-size: 26px; }
.check-row { cursor: pointer; }
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; color: transparent; flex: none; }
.check .ic { width: 16px; height: 16px; }
.check-row input:checked + .check { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.check-row input:disabled ~ .grow { color: var(--faint); }
.check-row input:focus-visible + .check { outline: 3px solid var(--brand-strong); outline-offset: 2px; }
.hall-card { align-items: flex-start; cursor: pointer; }
.hall-card[disabled] { opacity: .55; cursor: not-allowed; }
.radio { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--muted); display: grid; place-items: center; flex: none; margin-top: 2px; }
.hall-card.on .radio { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.radio .ic { width: 16px; height: 16px; }
.hc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hc-head strong { font-size: 18px; }
.avail { padding: 4px 12px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-weight: 600; font-size: 13px; white-space: nowrap; }
.avail::before { content: "● "; font-size: 10px; vertical-align: 2px; }
.avail.no { background: var(--danger-soft); color: var(--danger); }
.seats { display: flex; gap: 28px; margin: 8px 0 2px; }
.seats span { display: flex; flex-direction: column; }
.seats small { color: var(--muted); font-size: 13px; }
.seats b { font-size: 17px; }
.soft-note { display: flex; gap: 10px; align-items: center; color: var(--info); background: var(--info-soft); box-shadow: none; }
.plain-area { border: 0; resize: vertical; min-height: 70px; font: inherit; background: transparent; color: var(--ink); width: 100%; }
.plain-area.boxed, .plain-input.boxed { border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); padding: 12px 14px; background: var(--surface); margin: 10px 0; width: 100%; font: inherit; }
#examForm > .btn { margin-top: 22px; }
#review .group { margin: 14px 0 18px; }

/* ---- More / account */
.account-card { display: flex; align-items: center; gap: 14px; background: var(--surface); padding: 16px 18px; text-decoration: none; color: var(--ink); box-shadow: none; margin-bottom: 4px; }
.account-card strong { font-size: 19px; }

/* ---- conversations */
.composer { display: flex; gap: 10px; align-items: flex-end; background: var(--surface); border-radius: 22px; padding: 10px 12px; }
.composer textarea { flex: 1; border: 0; resize: none; min-height: 44px; max-height: 160px; font: inherit; background: transparent; color: var(--ink); padding: 10px 6px; }
.composer .btn { width: auto; }

/* ---- first-visit introduction */
.welcome-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(17,17,17,.38); display: grid; place-items: center; padding: 20px; }
.welcome-card { background: var(--bg); border-radius: 28px; width: min(440px, 100%); padding: 22px 26px 26px; text-align: center; box-shadow: var(--shadow-float); }
.welcome-top { text-align: end; }
.welcome-card .tile.big { width: 96px; height: 96px; border-radius: 26px; margin: 18px 0 6px; }
.welcome-card .tile.big .ic { width: 48px; height: 48px; }
.welcome-card h2 { font-size: 26px; margin: 12px 0 8px; }
.welcome-card p { color: var(--ink-2); line-height: 1.6; margin: 0 0 18px; }
.dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; }
.dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.dots span.on { background: var(--brand-strong); }
.start { text-align: start; margin: 0 0 8px; }
.pill-btn { display: inline-flex; align-items: center; line-height: 1.2; }
