/* SANGU IT — mobile-first styles. Brand: St. Andrews Georgian University (shield red, slate, gold). */
@font-face {
  font-family: "Noto Sans Georgian";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/static/fonts/noto-sans-georgian-georgian.woff2) format("woff2");
  unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31;
}
@font-face {
  font-family: "Noto Sans Georgian";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/static/fonts/noto-sans-georgian-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #f4f4f6;
  --surface: #ffffff;
  --text: #23242d;
  --muted: #60616f;
  --border: #e3e3e9;
  --input-border: #d0d0d9;
  --primary: #d92b41;
  --primary-hover: #b41f33;
  --primary-soft: #fdecee;
  --primary-ring: #f7c9cf;
  --slate: #5a5a68;
  --slate-soft: #ececf1;
  --gold: #e5a560;
  --hover-bg: #f7f7f9;
  --code-bg: #f1f1f4;
  --danger: #9f1c24;
  --danger-soft: #fbeaea;
  --warn: #b54708;
  --warn-soft: #fff4e5;
  --ok: #067647;
  --ok-soft: #e7f6ee;
  --internal: #fff8e1;
  --internal-border: #f0d78c;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 "Noto Sans Georgian", "BPG Arial", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.35rem; line-height: 1.3; margin: 0; }
h2 { font-size: 1rem; margin: 0 0 .75rem; }
img { max-width: 100%; }
.page-head h1, .login-card h1, .csat-card h1, .error-page h1, .admin-section > h2, .side-block h2 {
  font-weight: 800; text-wrap: balance;
}
.page-head h1::after { content: ""; display: block; width: 2.75rem; height: 3px; background: var(--primary); margin-top: .5rem; border-radius: 2px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.text-danger { color: var(--danger); }
.text-ok { color: var(--ok); }
.js .js-hidden { display: none; }

/* Layout */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 1rem 1rem 2rem; flex: 1; }
.footer { text-align: center; padding: 1rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }

/* Top bar */
.topbar { background: var(--surface); color: var(--text); border-bottom: 3px solid var(--primary); box-shadow: 0 1px 3px rgba(35, 36, 45, .08); position: sticky; top: 0; z-index: 10; padding-top: env(safe-area-inset-top, 0px); }
.topbar-inner { max-width: 1120px; margin: 0 auto; padding: .5rem 1rem; display: flex; align-items: center; gap: .75rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 700; margin-right: auto; line-height: 1.15; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-name { display: flex; flex-direction: column; }
.brand-name small { color: var(--muted); font-weight: 600; font-size: .72rem; }
.brand:hover { text-decoration: none; }
.brand-text { display: none; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav > a:not(.btn) { color: var(--muted); font-weight: 600; padding: .4rem .6rem; border-radius: 6px; font-size: .9rem; white-space: nowrap; }
.nav > a:not(.btn):hover { background: var(--hover-bg); color: var(--text); text-decoration: none; }
.nav > a.active { background: var(--primary-soft); color: var(--primary); text-decoration: none; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; cursor: pointer; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu-panel { position: absolute; right: 0; top: calc(100% + .5rem); background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; min-width: 220px; display: flex; flex-direction: column; gap: .25rem; box-shadow: 0 8px 24px rgba(16, 24, 40, .14); }
.usermenu-panel form { margin-top: .5rem; }
.usermenu-links { display: flex; flex-direction: column; gap: .15rem; margin-top: .5rem; padding-top: .5rem; border-top: 1px solid var(--border); }
.usermenu-links a { padding: .3rem 0; }
.nav-wide { display: none; }
@media (min-width: 900px) {
  .nav-wide { display: inline-block; }
  .usermenu-links { display: none; }
}
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; }
.avatar-text { background: var(--primary-soft); color: var(--primary); font-size: .75rem; font-weight: 700; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 40px; padding: .5rem 1rem; border-radius: 8px; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn:hover { text-decoration: none; }
.btn-sm { min-height: 34px; padding: .35rem .75rem; font-size: .875rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--hover-bg); }
.btn-danger-ghost { background: var(--surface); color: var(--danger); border-color: #f3c5c0; }
.btn-danger-ghost:hover { background: var(--danger-soft); }
.btn-google { background: #fff; color: var(--text); border-color: var(--border); width: 100%; min-height: 48px; margin: 1rem 0 .5rem; }
.btn-google:hover { background: var(--hover-bg); }
:focus-visible { outline: 3px solid var(--slate); outline-offset: 2px; }

/* Alerts & badges */
.alert { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid; }
.alert-success { background: var(--ok-soft); border-color: #a6dcc0; color: var(--ok); }
.alert-error { background: var(--danger-soft); border-color: #f3c5c0; color: var(--danger); }
.badge { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--slate-soft); color: #3f4050; white-space: nowrap; }
.prio-1 { background: var(--danger); color: #fff; }
.prio-2 { background: #f79009; color: #fff; }
.prio-3 { background: #fef0c7; color: #93370d; }
.prio-4 { background: var(--slate-soft); color: #3f4050; }
.status-new { background: var(--primary-soft); color: var(--primary-hover); }
.status-assigned, .status-in_progress { background: #e6ebf4; color: #2d3d5e; }
.status-pending { background: var(--warn-soft); color: var(--warn); }
.status-resolved { background: var(--ok-soft); color: var(--ok); }
.status-closed, .status-cancelled { background: var(--slate-soft); color: var(--muted); }
.badge-lecture { background: #f4ebff; color: #6927da; }
.badge-internal { background: var(--internal); color: #8a5a00; border: 1px solid var(--internal-border); }
.badge-off { background: var(--danger-soft); color: var(--danger); }
.badge-pending { background: #fff4e5; color: #8a4a06; }
a.badge:hover { text-decoration: none; filter: brightness(.96); }
.role-admin { background: #f4ebff; color: #6927da; }
.role-technician { background: #e6ebf4; color: #2d3d5e; }
.sla { font-size: .8rem; font-weight: 600; white-space: nowrap; }
.sla-ok { color: var(--ok); }
.sla-warn { color: var(--warn); }
.sla-breached { color: var(--danger); }
.sla-met { color: var(--ok); }
.sla-paused { color: var(--muted); }

/* Forms */
.form { padding: 1.25rem; display: flex; flex-direction: column; gap: 1.25rem; }
.form.compact { padding: 0; gap: .75rem; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field > legend, .form.compact label { display: block; font-weight: 600; margin-bottom: .35rem; }
.form.compact label { font-size: .85rem; }
legend { padding: 0; }
.req { color: var(--danger); }
input[type=text], input:not([type]), input[type=search], select, textarea {
  width: 100%; font: inherit; color: inherit; padding: .6rem .75rem; border: 1px solid var(--input-border); border-radius: 8px; background: #fff; min-height: 44px;
}
textarea { resize: vertical; min-height: 110px; }
select { appearance: auto; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
input[type=file] { font: inherit; max-width: 100%; }
.field-error { color: var(--danger); font-size: .85rem; margin: .35rem 0 0; }
.hint { margin: .35rem 0 0; }
.grid-2 { display: grid; gap: .75rem; }
.grid-2 label { font-weight: 500; font-size: .9rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.check input { margin-top: .3rem; width: 18px; height: 18px; flex: none; accent-color: var(--primary); }
.radio-list, .checks { display: flex; flex-direction: column; gap: .5rem; }
.choice-cards { display: grid; gap: .75rem; }
.choice-card { display: flex; gap: .75rem; align-items: flex-start; border: 1px solid var(--input-border); border-radius: 10px; padding: .85rem 1rem; cursor: pointer; }
.choice-card input { margin-top: .3rem; accent-color: var(--primary); width: 18px; height: 18px; }
.choice-card span { display: flex; flex-direction: column; }
.choice-card:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.form-actions { display: flex; justify-content: flex-end; gap: .75rem; flex-wrap: wrap; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filters input[type=search] { flex: 1 1 220px; }
.filters select { flex: 0 1 200px; }

/* Lists */
.tabs { display: flex; gap: .25rem; overflow-x: auto; margin-bottom: .75rem; border-bottom: 1px solid var(--border); }
.tabs a { padding: .55rem .85rem; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 600; font-size: .9rem; }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }
.tabs a:hover { text-decoration: none; color: var(--text); }
.ticket-list { overflow: hidden; }
.ticket-row { display: flex; flex-direction: column; gap: .5rem; padding: .85rem 1rem; color: inherit; border-bottom: 1px solid var(--border); }
.ticket-row:last-child { border-bottom: 0; }
.ticket-row:hover { background: var(--hover-bg); text-decoration: none; }
.ticket-row-top { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.ticket-row-title { font-weight: 600; margin: .2rem 0; }
.ticket-row-side { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.empty { padding: 2rem 1rem; text-align: center; }
.pager { display: flex; justify-content: space-between; margin-top: 1rem; }

/* Ticket view */
.ticket-head { margin-bottom: 1rem; }
.ticket-head-top { display: flex; justify-content: space-between; margin-bottom: .35rem; }
.ticket-head h1 { margin-bottom: .5rem; overflow-wrap: anywhere; }
.badges { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.ticket-layout { display: grid; gap: 1rem; }
.ticket-main, .ticket-side { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.message { padding: 1rem; }
.message-head { display: flex; gap: .6rem; align-items: center; margin-bottom: .6rem; }
.message-head > div { display: flex; flex-wrap: wrap; gap: .1rem .5rem; align-items: center; }
.message-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.message-staff { border-left: 3px solid var(--primary); }
.message-internal { background: var(--internal); border-color: var(--internal-border); }
.reply { gap: .75rem; }
.reply-actions { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.segmented { display: flex; gap: .5rem; flex-wrap: wrap; }
.segmented label { display: flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font-size: .9rem; }
.segmented label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.segmented .seg-internal:has(input:checked) { border-color: var(--internal-border); background: var(--internal); }
.reply:has(.seg-internal input:checked) textarea { background: var(--internal); }
.attachments { list-style: none; padding: 0; margin: .75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.attachments a { display: flex; flex-direction: column; gap: .25rem; width: 120px; padding: .5rem; border: 1px solid var(--border); border-radius: 8px; color: inherit; font-size: .8rem; }
.attachments .thumb { width: 100%; height: 72px; object-fit: cover; border-radius: 4px; }
.attachments .file-icon { font-size: 1.75rem; }
.att-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-block { padding: 1rem; }
details.side-block summary { cursor: pointer; list-style: none; }
details.side-block summary h2 { display: inline; }
details.side-block[open] summary { margin-bottom: .75rem; }
.actions { display: flex; flex-direction: column; gap: .5rem; }
.inline-form { display: flex; gap: .5rem; margin-bottom: .5rem; }
.details { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .45rem .75rem; font-size: .9rem; }
.details dt { color: var(--muted); }
.details dd { margin: 0; overflow-wrap: anywhere; }
.history { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .35rem; }

/* Admin */
.user-list { display: flex; flex-direction: column; gap: .5rem; }
.user-card summary { display: flex; gap: .5rem; align-items: center; padding: .85rem 1rem; cursor: pointer; flex-wrap: wrap; }
.user-card-main { display: flex; flex-direction: column; gap: .05rem; margin-right: auto; min-width: 0; overflow-wrap: anywhere; }
.user-card form { padding: 0 1rem 1rem; }

.admin-nav { margin-bottom: 1.25rem; }
.admin-section { padding: 1rem; margin-bottom: 1rem; }
.admin-section > h2 { margin-bottom: .75rem; }
details.admin-section > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
details.admin-section > summary::-webkit-details-marker { display: none; }
details.admin-section > summary h2 { margin: 0; }
details.admin-section > summary::after { content: "+"; font-size: 1.35rem; line-height: 1; color: var(--muted); }
details.admin-section[open] > summary { margin-bottom: .9rem; }
details.admin-section[open] > summary::after { content: "−"; }
.stack { display: flex; flex-direction: column; gap: .5rem; }
.row-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; }
.row-form > label { flex: 1 1 160px; font-size: .85rem; font-weight: 600; }
.row-form > label.check { flex: 0 0 auto; align-self: center; }
.row-form > .btn { flex: none; }
.row-form > label.narrow { flex: 0 1 110px; }
.row-form input[type=number] { width: 100%; }
input[type=number], input[type=date], input[type=time], input[type=email] {
  font: inherit; color: inherit; padding: .5rem .6rem; border: 1px solid var(--input-border); border-radius: 8px; background: #fff; min-height: 40px; max-width: 100%;
}
.item { border: 1px solid var(--border); border-radius: 8px; }
.item > summary { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .65rem .85rem; cursor: pointer; }
.item > summary .grow { margin-right: auto; min-width: 0; overflow-wrap: anywhere; }
.item > form, .item > .item-body { padding: 0 .85rem .85rem; }
.item-actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: space-between; margin-top: .5rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: .8rem; white-space: nowrap; }
.matrix select { min-height: 36px; padding: .3rem .5rem; }
.matrix th[scope=row] { max-width: 220px; }
.changes { margin: 0; padding: 0; list-style: none; font-size: .82rem; }
.changes code { background: var(--code-bg); padding: 0 .25rem; border-radius: 4px; overflow-wrap: anywhere; }
.duration { display: flex; gap: .35rem; }
.duration input { flex: 1 1 70px; min-width: 0; }
.duration select { flex: 0 0 80px; min-height: 40px; padding: .3rem .4rem; }
.room-list { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: .5rem 0; }
.day-check { flex: 0 0 130px !important; }
.filters .narrow-input { flex: 0 1 90px; }
.import-errors { margin: .5rem 0 0; padding-left: 1.1rem; }

/* Knowledge base */
.kb-body { padding: 1.25rem; overflow-wrap: anywhere; }
.kb-body > :first-child { margin-top: 0; }
.kb-body > :last-child { margin-bottom: 0; }
.kb-body h2 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.kb-body h3 { font-size: 1rem; margin: 1.25rem 0 .5rem; }
.kb-body li { margin: .25rem 0; }
.kb-body code, .kb-body kbd { background: var(--code-bg); padding: .05rem .3rem; border-radius: 4px; font-size: .9em; }
.kb-body pre { background: var(--code-bg); padding: .75rem; border-radius: 8px; overflow-x: auto; }
.kb-body blockquote { margin: 1rem 0; padding: .5rem 1rem; border-left: 3px solid var(--primary); background: var(--primary-soft); border-radius: 0 8px 8px 0; }
.kb-body table { border-collapse: collapse; width: 100%; }
.kb-body th, .kb-body td { border: 1px solid var(--border); padding: .4rem .6rem; }
.kb-body img { border-radius: 8px; }
.kb-cta { margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.kb-cta p { margin: 0; }
.kb-preview { margin-top: 1.5rem; }
.kb-suggest { margin-top: .6rem; padding: .6rem .85rem; background: var(--primary-soft); border-radius: 8px; }
.kb-suggest p, .kb-suggest ul { margin: 0; }
.kb-suggest ul { padding-left: 1.1rem; margin-top: .25rem; }
.mono-text { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; }

/* CSAT */
.rating { border: 0; padding: 0; margin: 0; }
.rating legend { font-weight: 600; margin-bottom: .5rem; }
.rating-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; }
.rating-option { position: relative; display: flex !important; flex-direction: column; align-items: center; gap: .15rem; padding: .5rem .25rem; border: 1px solid var(--input-border); border-radius: 8px; cursor: pointer; text-align: center; margin: 0 !important; }
.rating-option input { position: absolute; opacity: 0; pointer-events: none; }
.rating-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.rating-option:has(input:focus-visible) { outline: 3px solid var(--slate); outline-offset: 2px; }
.rating-num { font-size: 1.15rem; font-weight: 700; }
.rating-label { color: var(--muted); font-weight: 400; line-height: 1.2; font-size: .72rem; }
.rating-score { font-size: 1.25rem; }
.csat-card { text-align: left; }
.csat-card h1 { margin: .25rem 0; }

/* Reports */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-bottom: .75rem; }
.stat { padding: .85rem 1rem; display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.stat-label { color: var(--muted); font-size: .8rem; font-weight: 600; }
.stat-value { font-size: 1.5rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-sub { color: var(--muted); font-size: .78rem; }
.chart { margin: 0; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-grid { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-axis { fill: var(--muted); font-size: 13px; }
.chart-bar { fill: var(--primary); }
.chart-hit-area { fill: transparent; }
.chart-hit:hover .chart-hit-area { fill: rgba(217, 43, 65, .06); }
.chart-hit:hover .chart-bar { fill: var(--primary-hover); }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.section-head .tabs { margin-bottom: .5rem; }
.num, .num-cell { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.num-cell { display: flex; align-items: center; gap: .5rem; justify-content: flex-end; }
.inline-bar { width: 80px; height: 8px; flex: none; }
.inline-bar rect { fill: var(--primary); }
.report-table th:not(:first-child) { text-align: right; }

/* Login & errors */
.login { display: grid; place-items: center; min-height: 70vh; }
.login-card { max-width: 440px; width: 100%; padding: 2rem 1.5rem; text-align: center; }
.login-card h1 { margin-bottom: .5rem; }

/* Sign-in: white working column + dark help column (stacked on phones) */
.page-login { --side-bg: #24232b; --side-fg: #ececf0; --side-muted: #a9a8b5; --side-line: rgba(255, 255, 255, .1); --side-accent: #ff8f9c; }
.page-login .container { max-width: none; padding: 0; display: flex; }
.page-login .footer { background: var(--surface); border-top: 1px solid var(--border); }
.auth { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); }
.auth-main { background: var(--surface); display: flex; align-items: center; justify-content: center; padding: 2.5rem max(16px, env(safe-area-inset-right, 0px)) 2.5rem max(16px, env(safe-area-inset-left, 0px)); }
.auth-panel { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 1.5rem; }
.auth-logo { width: 210px; height: auto; display: block; margin-left: -6px; }
.auth-head { display: flex; flex-direction: column; gap: .5rem; }
.auth-eyebrow { margin: 0; color: var(--muted); font-size: .8rem; font-weight: 600; line-height: 1.45; text-wrap: balance; }
.auth-head h1 { font-size: 2rem; font-weight: 800; line-height: 1.15; }
.auth-head h1::after { content: ""; display: block; width: 2.75rem; height: 3px; background: var(--primary); margin-top: .75rem; border-radius: 2px; }
.auth-lead { margin: 0; color: var(--muted); font-size: 1rem; }
.auth-panel .alert { margin: 0; }
.auth .btn-google { margin: 0; min-height: 52px; border-color: var(--input-border); border-radius: 10px; gap: .75rem; font-size: 1rem; box-shadow: 0 1px 2px rgba(35, 36, 45, .06); }
.auth .btn-google:hover { border-color: var(--slate); background: var(--hover-bg); }
.auth-note { margin: -.75rem 0 0; color: var(--muted); font-size: .85rem; text-align: center; }
.auth-note strong { color: var(--text); font-weight: 600; white-space: nowrap; }
.auth-side { position: relative; overflow: hidden; background: var(--side-bg); color: var(--side-fg); display: flex; align-items: center; justify-content: center; padding: 2.5rem max(16px, env(safe-area-inset-right, 0px)) 2.5rem max(16px, env(safe-area-inset-left, 0px)); }
.auth-cross { position: absolute; width: 440px; height: 440px; right: -120px; bottom: -120px; fill: #fff; opacity: .045; pointer-events: none; }
.auth-side-inner { position: relative; width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 1rem; }
.auth-side h2 { font-size: 1.1rem; margin: 0; }
.auth-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--side-line); }
.auth-links a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--side-line); color: var(--side-fg); font-weight: 600; }
.auth-links a:hover { text-decoration: none; }
.auth-links a:hover .auth-arrow { transform: translateX(4px); }
.auth-links small { display: block; color: var(--side-muted); font-weight: 400; font-size: .82rem; margin-top: .1rem; }
.auth-arrow { color: var(--side-accent); font-size: 1.15rem; transition: transform .15s ease; }
.auth-side :focus-visible { outline-color: var(--side-accent); }
.auth-hours { margin-top: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--side-line); border-radius: var(--radius); }
.auth-hours h3 { margin: 0 0 .5rem; font-size: .82rem; font-weight: 600; color: var(--side-muted); }
.auth-hours dl { margin: 0; display: flex; flex-direction: column; gap: .25rem; }
.auth-hours dl > div { display: flex; justify-content: space-between; gap: 1rem; }
.auth-hours dt { font-weight: 600; }
.auth-hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.auth-hours p { margin: .6rem 0 0; color: var(--side-muted); font-size: .82rem; }
@media (min-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: calc(100vh - 3.5rem); }
  .auth-main, .auth-side { padding-block: 3rem; }
  .auth-head h1 { font-size: 2.4rem; }
}
@media (prefers-reduced-motion: reduce) { .auth-arrow { transition: none; } }
.error-page { padding: 2rem 1.25rem; text-align: center; }
.error-code { font-size: 3rem; font-weight: 800; color: var(--primary); margin: 0; }

@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .brand-text { display: inline; }
  .grid-2, .choice-cards { grid-template-columns: 1fr 1fr; }
  .ticket-row { flex-direction: row; justify-content: space-between; align-items: center; }
  .ticket-row-side { flex-direction: column; align-items: flex-end; gap: .2rem; text-align: right; flex: none; }
  .container { padding-top: 1.5rem; }
  h1 { font-size: 1.6rem; }
}

@media (min-width: 960px) {
  .ticket-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .ticket-side { position: sticky; top: 72px; }
}

@media (max-width: 639px) {
  .nav > a:not(.btn) { padding: .4rem .45rem; font-size: .82rem; }
  .form-actions .btn, .reply-actions .btn { flex: 1; }
}
