/* Harbour IT Helpdesk – Harbour Schools Partnership brand
   Navy  Pantone 280C ≈ #223160   Gold Pantone 116C ≈ #F8C711   Black #231F20
   Typeface: Galano Grotesque Alt (if installed/licensed), Outfit as the web fallback. */

:root {
  --navy: #223160; --navy-700: #1A2650; --navy-900: #121A3A; --gold: #F8C711; --gold-600: #D9AC00; --ink: #231F20;
  --font: "Galano Grotesque Alt", "Outfit", "Segoe UI", system-ui, sans-serif;

  --bg: #F4F5F9; --surface: #FFFFFF; --surface-2: #F8F9FC; --border: #DCDFEA; --border-strong: #C3C8D8;
  --text: #1B2033; --muted: #555D73; --faint: #6B7288;
  --link: #24418F; --primary: #223160; --primary-text: #FFFFFF; --primary-hover: #1A2650;
  --focus: #F8C711; --header-bg: #223160; --header-text: #FFFFFF; --header-muted: #C9D0E8;
  --shadow: 0 1px 2px rgba(18, 26, 58, .06), 0 4px 16px rgba(18, 26, 58, .06);

  --open-bg: #E2E9FB; --open-fg: #1E3C8F; --pending-bg: #FFF1C2; --pending-fg: #6B4D00;
  --hold-bg: #E8EAF0; --hold-fg: #444B60; --resolved-bg: #DCF2E3; --resolved-fg: #1D5C34;
  --urgent-bg: #FCE1DD; --urgent-fg: #8F1F12; --high-bg: #FFE7CF; --high-fg: #7A3A00;
  --medium-bg: #E2E9FB; --medium-fg: #1E3C8F; --low-bg: #E8EAF0; --low-fg: #444B60;
  --danger: #B3261E; --success: #1D6B3A; --warn-bg: #FFF6D6; --warn-border: #F0D677;
  --note-bg: #FFF8DC; --note-border: #EDD98A; --ai-bg: #EEF2FD; --ai-border: #C9D5F5;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0D1226; --surface: #151C37; --surface-2: #1B2444; --border: #2B355C; --border-strong: #3B4777;
  --text: #E9ECF5; --muted: #AAB2CC; --faint: #949CB8;
  --link: #A9BEFF; --primary: #F8C711; --primary-text: #14193A; --primary-hover: #FFD83D;
  --focus: #F8C711; --header-bg: #121A3A; --header-text: #FFFFFF; --header-muted: #AAB2CC;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);

  --open-bg: #22336B; --open-fg: #C9D7FF; --pending-bg: #4D3D0A; --pending-fg: #FFE08A;
  --hold-bg: #2C3352; --hold-fg: #C5CBE0; --resolved-bg: #173F28; --resolved-fg: #A6E5BC;
  --urgent-bg: #5A1D17; --urgent-fg: #FFC2B8; --high-bg: #563012; --high-fg: #FFD0A3;
  --medium-bg: #22336B; --medium-fg: #C9D7FF; --low-bg: #2C3352; --low-fg: #C5CBE0;
  --danger: #FF9C92; --success: #8FDBA9; --warn-bg: #3A3110; --warn-border: #6E5B17;
  --note-bg: #3A3212; --note-border: #6E5B17; --ai-bg: #1C2850; --ai-border: #33468A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scrollbar-gutter: stable; } /* keep the layout still when a scrollbar appears */
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.25; margin: 0; font-weight: 600; }
h1 { font-size: 26px; } h2 { font-size: 18px; } h3 { font-size: 15px; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); } .small { font-size: 13px; } .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: 16px; } .stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .spacer { flex: 1; }
.grow { flex: 1 1 auto; min-width: 0; }

/* ---------- Header ---------- */
.app-header { background: var(--header-bg); color: var(--header-text); border-bottom: 4px solid var(--gold); position: sticky; top: 0; z-index: 30; }
.app-header .inner { max-width: 1440px; margin: 0 auto; padding: 0 20px; min-height: 60px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 17px; font-weight: 600; letter-spacing: .01em; }
.brand-text span { font-size: 12px; color: var(--header-muted); }
.main-nav { display: flex; gap: 2px; flex-wrap: wrap; }
.main-nav a { color: var(--header-muted); text-decoration: none; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 6px; font-size: 14px; font-weight: 500; position: relative; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.main-nav a[aria-current="page"] { color: #fff; }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; border-radius: 2px; background: var(--gold); }
.nav-sep { width: 1px; background: rgba(255,255,255,.2); margin: 10px 6px; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { background: transparent; border: 0; color: inherit; width: 44px; height: 44px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative; }
.icon-btn:hover { background: rgba(255,255,255,.1); }
.app-header .icon-btn { color: var(--header-text); }
.badge-dot { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--gold); color: var(--navy-900); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--navy-900); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.agent { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .avatar.agent { background: #33468A; }
.menu-toggle { display: none; }
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--header-bg); flex-direction: column; padding: 8px 12px 14px; border-bottom: 4px solid var(--gold); }
  .main-nav.open { display: flex; }
  .nav-sep { height: 1px; width: auto; margin: 6px 0; }
  .main-nav a[aria-current="page"]::after { right: auto; width: 36px; }
  .brand-text span { display: none; }
}

.demo-bar { background: var(--gold); color: var(--navy-900); font-size: 13px; }
.demo-bar .inner { max-width: 1440px; margin: 0 auto; padding: 6px 20px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.demo-bar select { font: inherit; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--navy); background: #fff; color: var(--navy-900); min-height: 32px; }

/* ---------- Layout ---------- */
main { max-width: 1440px; margin: 0 auto; padding: 28px 20px 60px; }
.narrow { max-width: 1080px; margin: 0 auto; }
.page-head { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; margin-bottom: 20px; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.cols > .main-col { flex: 999 1 560px; min-width: 0; }
.cols > .side-col { flex: 1 1 300px; min-width: 0; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.card-pad { padding: 20px 22px; }
.card h2 + * { margin-top: 12px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.section-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ---------- Forms & buttons ---------- */
.btn { font: inherit; font-size: 14px; font-weight: 500; min-height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.btn.gold:hover { background: #FFD83D; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.danger { color: var(--danger); }
.btn.lg { min-height: 48px; padding: 0 22px; font-size: 15px; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.field .hint { font-weight: 400; font-size: 13px; color: var(--muted); }
input[type=text], input[type=search], input[type=email], input[type=number], input[type=date], input[type=time], input[type=url], select, textarea {
  font: inherit; font-size: 15px; font-weight: 400; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px; padding: 0 12px; min-height: 44px; width: 100%;
}
textarea { padding: 10px 12px; resize: vertical; line-height: 1.5; }
select { padding-right: 32px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--navy); }
.field-row { display: flex; flex-wrap: wrap; gap: 14px; } .field-row > * { flex: 1 1 200px; min-width: 0; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; min-height: 36px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }
:root[data-theme="dark"] .check input { accent-color: var(--gold); }
.choice { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border-strong); border-radius: 10px; padding: 10px 14px; min-height: 48px; cursor: pointer; font-size: 14px; background: var(--surface); }
.choice:has(input:checked) { border-color: var(--navy); background: var(--open-bg); box-shadow: inset 0 0 0 1px var(--navy); }
:root[data-theme="dark"] .choice:has(input:checked) { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); background: var(--surface-2); }

/* ---------- Pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.6; }
.st-Open { background: var(--open-bg); color: var(--open-fg); } .st-Pending { background: var(--pending-bg); color: var(--pending-fg); }
.st-OnHold, .st-Closed { background: var(--hold-bg); color: var(--hold-fg); } .st-Resolved { background: var(--resolved-bg); color: var(--resolved-fg); }
.pr-Urgent { background: var(--urgent-bg); color: var(--urgent-fg); } .pr-High { background: var(--high-bg); color: var(--high-fg); }
.pr-Medium { background: var(--medium-bg); color: var(--medium-fg); } .pr-Low { background: var(--low-bg); color: var(--low-fg); }
.tag { background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.due-late { color: var(--danger); font-weight: 600; }

/* ---------- Portal home ---------- */
.hero { background: var(--navy); color: #fff; border-radius: 16px; padding: 34px 32px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -40px; width: 380px; height: 160px; background: var(--gold); transform: skewY(-12deg); opacity: .95; clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 60%); }
:root[data-theme="dark"] .hero { background: var(--surface-2); border: 1px solid var(--border); }
.hero > * { position: relative; z-index: 1; max-width: 640px; }
.hero h1 { font-size: 30px; }
.hero p { color: #D5DBEF; margin-top: 6px; }
.hero .search-box { margin-top: 20px; display: flex; gap: 8px; }
.hero .search-box input { min-height: 52px; font-size: 16px; border-color: transparent; }
@media (max-width: 640px) { .hero { padding: 24px 20px; } .hero::after { display: none; } .hero h1 { font-size: 24px; } }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { text-align: left; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; padding: 14px 16px; min-height: 76px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.tile:hover { border-color: var(--navy); }
.tile[aria-pressed="true"] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--open-bg); }
:root[data-theme="dark"] .tile[aria-pressed="true"] { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); background: var(--surface-2); }
.tile strong { font-size: 14px; } .tile span { font-size: 12px; color: var(--muted); }
.list-links { display: flex; flex-direction: column; }
.list-links a, .list-links .item { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--border); text-decoration: none; color: var(--text); }
.list-links a:first-child, .list-links .item:first-child { border-top: 0; }
.list-links svg { flex-shrink: 0; }
#app { min-height: 100vh; }
main:focus, main:focus-visible { outline: none; }
.list-links a:hover .t { text-decoration: underline; color: var(--link); }
.callout { border-radius: 12px; padding: 14px 18px; font-size: 14px; line-height: 1.5; }
.callout.info { background: var(--open-bg); color: var(--open-fg); }
.callout.warn { background: var(--warn-bg); border: 1px solid var(--warn-border); }
.callout.ai { background: var(--ai-bg); border: 1px solid var(--ai-border); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; position: relative; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 10px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data td { padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--surface-2); }
.t-subject { font-weight: 500; color: var(--text); text-decoration: none; }
.t-subject:hover { text-decoration: underline; color: var(--link); }

/* ---------- Agent workspace ---------- */
.workspace { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.views { flex: 1 1 220px; max-width: 100%; display: flex; flex-direction: column; gap: 2px; }
.views button { font: inherit; font-size: 14px; text-align: left; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; }
.views button:hover { background: var(--surface-2); }
.views button[aria-pressed="true"] { background: var(--surface); box-shadow: var(--shadow); font-weight: 600; }
.views button[aria-pressed="true"]::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--gold); margin-left: -6px; }
.views .count { margin-left: auto; font-size: 13px; color: var(--muted); }
.ws-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters select, .filters input { min-height: 38px; width: auto; font-size: 14px; }
.filters input[type=search] { flex: 1 1 240px; }

/* Ticket thread */
.thread { display: flex; flex-direction: column; gap: 14px; }
.msg { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.msg.from-agent { border-left-width: 1px; background: var(--surface); }
.msg.note { background: var(--note-bg); border-color: var(--note-border); }
.msg.system { background: transparent; border: 0; padding: 0; color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 10px; }
.msg.system::before, .msg.system::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.msg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.attach-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.attach { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-size: 13px; background: var(--surface-2); color: var(--text); text-decoration: none; cursor: pointer; font-family: inherit; }
.attach img { width: 48px; height: 36px; object-fit: cover; border-radius: 4px; }
.composer { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; }
.composer .tabs { display: flex; border-bottom: 1px solid var(--border); padding: 0 8px; }
.composer .tabs button { font: inherit; font-size: 14px; border: 0; background: transparent; color: var(--muted); min-height: 44px; padding: 0 14px; cursor: pointer; border-bottom: 3px solid transparent; }
.composer .tabs button[aria-selected="true"] { color: var(--text); font-weight: 600; border-bottom-color: var(--gold); }
.composer textarea { border: 0; border-radius: 0; min-height: 130px; }
.composer.note-mode { background: var(--note-bg); border-color: var(--note-border); }
.composer.note-mode textarea { background: transparent; }
.composer .bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--border); }
.props { display: flex; flex-direction: column; gap: 12px; }
.props label.field { font-size: 13px; color: var(--muted); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; text-align: right; font-weight: 500; }

/* Dashboard */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.kpi .v { font-size: 30px; font-weight: 600; line-height: 1.1; }
.kpi .l { font-size: 13px; color: var(--muted); }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 170px) 1fr 40px; gap: 10px; align-items: center; font-size: 14px; }
.bar-track { height: 14px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.bar-fill { height: 100%; background: var(--navy); border-radius: 3px; }
:root[data-theme="dark"] .bar-fill { background: var(--gold); }

/* Solutions / markdown */
.md { line-height: 1.65; }
.md > * + * { margin-top: 10px; }
.md ol, .md ul { padding-left: 22px; margin: 10px 0; } .md li + li { margin-top: 4px; }
.md code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; font-size: 13px; }
.md h2 { font-size: 17px; margin-top: 18px; } .md h3 { font-size: 15px; margin-top: 14px; }

/* Dropzone / screenshots */
.dropzone { border: 2px dashed var(--border-strong); border-radius: 12px; padding: 16px; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; font-size: 14px; color: var(--muted); background: var(--surface-2); }
.dropzone.over { border-color: var(--navy); background: var(--open-bg); }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb { position: relative; width: 120px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); font-size: 12px; }
.thumb img { width: 100%; height: 76px; object-fit: cover; display: block; }
.thumb .file { height: 76px; display: flex; align-items: center; justify-content: center; color: var(--muted); padding: 6px; text-align: center; overflow-wrap: anywhere; }
.thumb .acts { display: flex; } .thumb .acts button { flex: 1; font: inherit; font-size: 12px; border: 0; border-top: 1px solid var(--border); background: var(--surface); color: var(--text); min-height: 32px; cursor: pointer; }
.thumb .acts button + button { border-left: 1px solid var(--border); }

/* Modal, toast, menus */
.modal-back { position: fixed; inset: 0; background: rgba(9, 13, 30, .55); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--surface); color: var(--text); border-radius: 14px; width: min(960px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-body { padding: 18px; }
.redact-canvas { max-width: 100%; height: auto; cursor: crosshair; border: 1px solid var(--border); border-radius: 8px; touch-action: none; display: block; }
.toast-wrap { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--navy-900); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow); pointer-events: auto; max-width: 90vw; }
.toast.error { background: #8F1F12; }
:root[data-theme="dark"] .toast { background: #F4F5F9; color: var(--navy-900); }
.popover { position: absolute; right: 12px; top: 62px; width: min(380px, calc(100vw - 24px)); background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.25); z-index: 40; max-height: 70vh; overflow: auto; }
.popover .item { display: block; padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: 14px; }
.popover .item.unread { background: var(--ai-bg); }
.popover .item:hover { background: var(--surface-2); }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; }
.seg button { font: inherit; font-size: 13px; border: 0; background: var(--surface); color: var(--text); min-height: 36px; padding: 0 12px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--border-strong); }
.seg button[aria-pressed="true"] { background: var(--primary); color: var(--primary-text); font-weight: 600; }
.tabbar { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.tabbar a, .tabbar button { font: inherit; font-size: 14px; padding: 0 14px; min-height: 44px; display: inline-flex; align-items: center; border: 0; background: transparent; color: var(--muted); text-decoration: none; cursor: pointer; border-bottom: 3px solid transparent; }
.tabbar [aria-current="page"], .tabbar [aria-selected="true"] { color: var(--text); font-weight: 600; border-bottom-color: var(--gold); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; height: 16px; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
.signin { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.signin .card { max-width: 460px; width: 100%; padding: 32px; text-align: center; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.signin img { width: 260px; max-width: 80%; }
