/* ==========================================================
   ISAO Service Desk — The College of Maasin
   Green & white institutional palette. Edit the tokens in :root to fine-tune.
   ========================================================== */
:root {
  --brand: #046452;        /* College green, sampled from the official seal */
  --brand-deep: #023D32;   /* sidebar, display */
  --brand-tint: #E5F1EE;
  --accent: #6CC9A4;       /* light seal green for highlights on dark */
  --accent-deep: #2E8A6C;  /* accent text on white */
  --accent-tint: #EAF6F1;
  --ink: #1E2330;
  --slate: #586073;
  --mute: #8A91A1;
  --line: #E2E4EA;
  --line-soft: #EEF0F3;
  --bg: #F3F6F5;
  --surface: #FFFFFF;

  --blue: #2556A8;   --blue-tint: #E8EFFA;
  --amber: #B86E00;  --amber-tint: #FDF1DD;
  --green: #1F7A4D;  --green-tint: #E3F3EA;
  --red: #B42318;    --red-tint: #FDECEA;
  --violet: #6A3FB0; --violet-tint: #F0EAFA;

  --font-ui: "Public Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-display: "Spectral", "Lora", Georgia, "Times New Roman", serif;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --shadow: 0 1px 2px rgba(30, 35, 48, .05), 0 4px 14px rgba(30, 35, 48, .05);
  --sidebar-w: 280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-ui); font-size: 15px; line-height: 1.5;
  color: var(--ink); background: var(--bg); font-variant-numeric: tabular-nums;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h2 { font-size: 1.05rem; font-weight: 700; }
h3 { font-size: .9rem; font-weight: 700; }
small, .small { font-size: .82rem; }
.muted { color: var(--slate); }
.block { display: block; }
.center { text-align: center; }
.text-danger { color: var(--red); font-weight: 600; }
.spacer { flex: 1; }
code { font-size: .8rem; background: var(--line-soft); padding: 1px 6px; border-radius: 4px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 80%, transparent); outline-offset: 2px; }

.ico { width: 18px; height: 18px; flex: none; }
.ico-sm { width: 14px; height: 14px; }

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-school { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .04em; line-height: 1.15; }
.brand-motto { font-family: var(--font-display); font-style: italic; font-size: 11px; letter-spacing: .12em; color: var(--accent); margin-top: 2px; }
.brand-office { font-size: 12px; opacity: .78; margin-top: 4px; }
.brand-lg .brand-logo { width: 84px; height: 84px; }
.brand-lg .brand-school { font-size: 21px; color: var(--brand); }
.brand-lg .brand-motto { font-size: 13px; color: var(--accent-deep); }
.brand-lg .brand-office { color: var(--slate); font-size: 13px; opacity: 1; }

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 600 14px/1 var(--font-ui); cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { border-color: #C9CDD6; text-decoration: none; background: #FAFAFB; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn-gold { background: var(--accent); border-color: var(--accent); color: #0B2E19; }
.btn-gold:hover { background: #86D5B5; border-color: #86D5B5; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--slate); }
.btn-ghost:hover { background: var(--line-soft); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-sm);
  border: 0; background: transparent; color: inherit; cursor: pointer; position: relative;
}
.icon-btn:hover { background: rgba(0, 0, 0, .06); text-decoration: none; }

.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-weight: 600; font-size: 13.5px; }
.field em, .field-hint { font-style: normal; font-weight: 400; color: var(--mute); font-size: 12.5px; margin-left: 4px; }
input, select, textarea {
  font: 15px/1.4 var(--font-ui); color: var(--ink); background: var(--surface);
  border: 1px solid #D3D7DF; border-radius: var(--r-sm); padding: 9px 12px; width: 100%; min-height: 40px;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
input[disabled] { background: var(--line-soft); color: var(--slate); }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; accent-color: var(--brand); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 700; font-size: 15px; margin-bottom: 12px; padding: 0; float: left; width: 100%; }
legend + * { clear: both; }
.row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.row-actions form { margin: 0; }

/* ---------- Auth ---------- */
.auth-body { background: var(--surface); }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); }
.auth-panel { min-width: 0; padding: 48px clamp(24px, 4vw, 56px); display: flex; flex-direction: column; gap: 32px; justify-content: center; }
.auth-card { width: 100%; max-width: 520px; min-width: 0; margin-inline: auto; display: flex; flex-direction: column; gap: 18px; }
.auth-title { font-family: var(--font-display); font-size: 28px; font-weight: 600; }
.auth-sub { margin: -10px 0 4px; color: var(--slate); }
.auth-alt { margin: 0; font-size: 14px; }
.auth-foot { margin: 0; color: var(--mute); font-size: 12.5px; }
.auth-aside {
  background: var(--brand) radial-gradient(circle at 85% 15%, rgba(108, 201, 164, .28), transparent 45%);
  color: #fff; display: flex; align-items: flex-end; padding: 64px;
  position: relative; overflow: hidden;
}
.auth-aside::after {
  content: ""; position: absolute; inset: auto -120px -120px auto; width: 420px; height: 420px;
  border: 1px solid rgba(108, 201, 164, .30); border-radius: 50%;
}
.aside-inner { max-width: 460px; position: relative; z-index: 1; }
.aside-seal { position: absolute; top: 8%; right: 8%; width: min(38%, 300px); opacity: .9; filter: drop-shadow(0 8px 24px rgba(0,0,0,.35)); }
.aside-kicker { color: var(--accent); font-weight: 600; margin: 0 0 12px; }
.auth-aside h2 { font-family: var(--font-display); font-size: 40px; font-weight: 600; line-height: 1.15; }
.aside-steps { margin: 32px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.aside-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: baseline; color: rgba(255, 255, 255, .85); }
.aside-steps li::before { content: counter(s); font-family: var(--font-display); font-size: 22px; color: var(--accent); }
.aside-steps strong { color: #fff; }

/* ---------- App shell ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
  background: var(--brand-deep); color: #fff; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; overflow-y: auto;
}
.sidebar-brand { display: block; padding: 22px 20px 20px; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); text-decoration: none !important; }
.sidebar-brand .brand-logo { width: 48px; height: 48px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.sidebar-brand .brand-school { font-size: 13px; letter-spacing: .015em; white-space: nowrap; }
.sidebar-brand .brand-motto { font-size: 10.5px; letter-spacing: .1em; }
.nav { display: flex; flex-direction: column; padding: 12px 12px; gap: 2px; flex: 1; }
.nav-group { font-size: 11.5px; color: rgba(255, 255, 255, .45); padding: 16px 12px 6px; font-weight: 600; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--r-sm); color: rgba(255, 255, 255, .82); font-weight: 500; font-size: 14.5px; }
.nav-link:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
.nav-link.active { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.nav-link.active .ico { color: var(--accent); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.sidebar-user form { margin: 0 0 0 auto; }
.sidebar-user-text { display: flex; flex-direction: column; min-width: 0; font-size: 13px; }
.sidebar-user-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-text span { color: rgba(255, 255, 255, .55); font-size: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--accent-tint); color: var(--accent-deep); font-weight: 700; font-size: 12.5px; }
.sidebar .avatar { background: rgba(108, 201, 164, .2); color: var(--accent); }
.avatar-staff { background: var(--brand); color: #fff; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  height: 64px; padding: 0 28px; background: rgba(244, 247, 245, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.page-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; gap: 6px; }
.menu-btn { display: none; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--green); padding: 0 10px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(31, 122, 77, .5); animation: pulse 2.4s infinite; }
.live.offline { color: var(--mute); }
.live.offline i { background: var(--mute); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 122, 77, .45); } 70% { box-shadow: 0 0 0 7px rgba(31, 122, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 122, 77, 0); } }
#soundToggle .when-off { display: none; }
#soundToggle.off .when-on { display: none; }
#soundToggle.off .when-off { display: inline; }
#soundToggle.off { color: var(--mute); }
.bell .count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.sound-hint { display: flex; align-items: center; gap: 16px; justify-content: center; padding: 10px 28px; background: var(--accent-tint); border-bottom: 1px solid #CFE6C3; font-size: 14px; }
.content { padding: 28px; display: flex; flex-direction: column; gap: 22px; flex: 1; max-width: 1480px; width: 100%; }
.foot { display: flex; justify-content: space-between; gap: 12px; padding: 18px 28px; color: var(--mute); font-size: 12px; border-top: 1px solid var(--line); }
.scrim { display: none; }
.lead { margin: 0; color: var(--slate); }

/* ---------- Flash & toasts ---------- */
.flash { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r); border: 1px solid; font-size: 14px; }
.flash span { flex: 1; }
.flash-success { background: var(--green-tint); border-color: #BFE3CE; color: #14583A; }
.flash-error { background: var(--red-tint); border-color: #F5C2BC; color: #8A1A12; }
.flash-info { background: var(--blue-tint); border-color: #C9D8F2; color: #1C447F; }
.flash-close { border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; opacity: .6; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 40px)); }
.toast {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r);
  background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); font-size: 14px;
  animation: toastIn .25s ease-out; text-decoration: none !important;
}
.toast::before { content: ""; width: 4px; align-self: stretch; border-radius: 2px; background: var(--accent); flex: none; }
.toast.urgent::before { background: #FF6B5E; }
.toast:hover { background: #2A3142; }
.toast strong { display: block; color: var(--accent); font-size: 12px; margin-bottom: 2px; }
.toast.urgent strong { color: #FF8A80; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Panels, KPIs ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.panel.flush { padding: 0; overflow: hidden; }
.panel > h2 { margin-bottom: 14px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2 small { font-weight: 500; color: var(--mute); margin-left: 6px; }
.link { font-size: 13.5px; font-weight: 600; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cols-wide { grid-template-columns: 1.6fr 1fr; }

.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.kpis-report { grid-template-columns: repeat(6, 1fr); }
.kpi {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); text-decoration: none !important;
  box-shadow: inset 0 3px 0 var(--brand);
}
a.kpi:hover { border-color: #CDD1D9; }
.kpi-n { font-family: var(--font-display); font-size: 32px; font-weight: 600; line-height: 1.1; }
.kpi-n small { font-size: 18px; color: var(--mute); }
.kpi-l { font-size: 13px; color: var(--slate); }
.kpi-alert { box-shadow: inset 0 3px 0 var(--red); background: var(--red-tint); border-color: #F5C2BC; }
.kpi-alert .kpi-n { color: var(--red); }
.kpi-quiet { box-shadow: inset 0 3px 0 var(--accent); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; font-weight: 600; white-space: nowrap; vertical-align: middle; }
.status-open { background: var(--blue-tint); color: var(--blue); }
.status-assigned { background: var(--violet-tint); color: var(--violet); }
.status-in_progress { background: var(--amber-tint); color: var(--amber); }
.status-on_hold { background: #ECEEF2; color: var(--slate); }
.status-resolved { background: var(--green-tint); color: var(--green); }
.status-closed { background: #E9EBEF; color: #4B5263; }
.status-cancelled { background: #F2F2F2; color: var(--mute); text-decoration: line-through; }
.prio { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; vertical-align: middle; }
.prio i { width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); }
.prio-urgent { color: var(--red); } .prio-urgent i { background: var(--red); }
.prio-high { color: #C2410C; } .prio-high i { background: #EA580C; }
.prio-normal { color: var(--blue); } .prio-normal i { background: var(--blue); }
.prio-low { color: var(--mute); } .prio-low i { background: #B7BCC7; }
.overdue-tag { display: inline-flex; height: 20px; align-items: center; padding: 0 7px; border-radius: 4px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; vertical-align: middle; }
.tno { font-weight: 700; font-size: 13px; color: var(--brand); letter-spacing: .01em; white-space: nowrap; }
.tno-lg { font-size: 15px; }
.tag { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 4px; background: var(--brand-tint); color: var(--brand); }
.tag-internal { background: #FFF3CC; color: #8A6400; }

/* ---------- Queue ---------- */
.q-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.q-item { display: flex; gap: 12px; align-items: stretch; border: 1px solid var(--line); border-left: 4px solid #B7BCC7; border-radius: var(--r); background: var(--surface); }
.q-item.prio-edge-urgent, .display-item.prio-edge-urgent { border-left-color: var(--red); }
.q-item.prio-edge-high, .display-item.prio-edge-high { border-left-color: #EA580C; }
.q-item.prio-edge-normal, .display-item.prio-edge-normal { border-left-color: var(--blue); }
.q-item.is-overdue { background: #FFF8F7; }
.q-pos { display: grid; place-items: center; width: 40px; flex: none; font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--brand); border-right: 1px solid var(--line-soft); }
.q-body { flex: 1; min-width: 0; padding: 10px 14px 10px 4px; display: flex; flex-direction: column; gap: 3px; color: var(--ink); text-decoration: none !important; }
.q-item:not(:has(.q-pos)) .q-body { padding-left: 14px; }
.q-body:hover .q-subject { color: var(--brand); }
.q-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.q-subject { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--slate); font-size: 12.5px; }
.q-meta span { display: inline-flex; align-items: center; gap: 4px; }
.q-assignee { color: var(--violet); font-weight: 600; }
.lanes { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; align-items: start; }
.lane { background: #ECEEF2; border-radius: var(--r-lg); padding: 14px; min-width: 0; }
.lane-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding: 0 4px; }
.lane-n { min-width: 28px; height: 24px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; font-weight: 700; font-size: 13px; padding: 0 8px; }
.lane-empty { margin: 0; padding: 28px 0; text-align: center; color: var(--mute); font-size: 13px; }

/* ---------- Feeds ---------- */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.feed li:last-child { border-bottom: 0; }
.feed-text { flex: 1; min-width: 0; }
.feed time { color: var(--mute); font-size: 12.5px; white-space: nowrap; }

/* ---------- Charts ---------- */
.chart { margin: 0; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line-soft); stroke-width: 1; }
.chart .axis { fill: var(--mute); font-size: 10.5px; font-family: var(--font-ui); }
.chart .bar-created { fill: var(--brand); }
.chart .bar-resolved { fill: var(--accent); }
.legend { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--slate); margin-top: 8px; }
.key { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-left: 8px; }
.key:first-child { margin-left: 0; }
.key-created { background: var(--brand); }
.key-resolved { background: var(--accent); }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hbars li { display: grid; grid-template-columns: minmax(0, 150px) 1fr 32px; gap: 10px; align-items: center; font-size: 13.5px; }
.hbar-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { height: 10px; background: var(--line-soft); border-radius: 5px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; background: var(--brand); border-radius: 5px; }
.hbar-n { text-align: right; font-weight: 700; }

/* ---------- Tables, filters ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { padding: 10px 14px; color: var(--slate); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--ink); text-decoration: none; }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters select, .filters input { width: auto; min-height: 38px; padding: 7px 10px; font-size: 14px; }
.search { position: relative; flex: 1 1 260px; display: flex; }
.search .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--mute); }
.search input { width: 100%; padding-left: 36px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.toolbar .filters { flex: 1; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--slate); padding: 11px 14px; background: #FAFBFC; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table tbody tr:hover { background: #FBFBFC; }
.table tr[data-href] { cursor: pointer; }
.table tr.is-overdue td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.table .num { text-align: right; }
.table-compact td { padding: 9px 14px; }
.cell-subject span { display: block; font-weight: 600; max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-subject small { color: var(--slate); }
.table-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.pager { display: flex; gap: 14px; align-items: center; font-size: 13.5px; }
.role, .ustatus { font-size: 12.5px; font-weight: 600; }
.role-admin { color: var(--brand); } .role-technician { color: var(--violet); } .role-user { color: var(--slate); }
.ustatus-active { color: var(--green); } .ustatus-pending { color: var(--amber); } .ustatus-disabled { color: var(--mute); }

/* ---------- Empty ---------- */
.empty-state { text-align: center; padding: 48px 20px; color: var(--slate); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty-state.small { padding: 28px 12px; }
.empty-state .ico { width: 28px; height: 28px; color: var(--green); }
.empty-state p { margin: 0; }
.error-state h2 { font-family: var(--font-display); font-size: 26px; color: var(--ink); }
.error-code { font-family: var(--font-display); font-size: 64px; color: var(--brand); line-height: 1; }

/* ---------- User dashboard ---------- */
.hero-user {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px;
  border-radius: var(--r-lg); background: var(--brand) radial-gradient(circle at 92% 0%, rgba(108, 201, 164, .30), transparent 50%); color: #fff;
}
.hero-user h2 { font-family: var(--font-display); font-size: 30px; font-weight: 600; }
.hero-user p { margin: 6px 0 0; color: rgba(255, 255, 255, .82); max-width: 560px; }
.my-tickets { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.my-ticket { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.my-ticket > a { flex: 1; min-width: 0; color: var(--ink); text-decoration: none !important; display: flex; flex-direction: column; gap: 4px; }
.my-ticket.needs-confirm { border-color: #BFE3CE; background: #F6FBF8; }
.my-top { display: flex; gap: 10px; align-items: center; }
.my-subject { font-size: 15.5px; }
.my-meta { color: var(--slate); font-size: 13px; }
.pos-chip { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; padding: 6px 10px; border-radius: var(--r); background: var(--accent-tint); color: var(--accent-deep); }
.pos-chip b { font-family: var(--font-display); font-size: 24px; line-height: 1; color: var(--brand); }
.pos-chip span { font-size: 11.5px; font-weight: 600; }
.pos-chip-lg { min-width: 80px; padding: 10px 12px; }
.pos-chip-lg b { font-size: 34px; }

/* ---------- Create ticket ---------- */
.ticket-form { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: start; flex-direction: unset; }
.form-main, .form-side { display: flex; flex-direction: column; gap: 18px; }
.form-side > .panel:not(fieldset) { display: flex; flex-direction: column; gap: 14px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.cat-option, .prio-option { position: relative; cursor: pointer; }
.cat-option input, .prio-option input { position: absolute; opacity: 0; inset: 0; }
.cat-option > span { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s, background .15s; }
.cat-option small { color: var(--slate); font-size: 12.5px; line-height: 1.35; }
.cat-option:hover > span { border-color: #C9CDD6; }
.cat-option input:checked + span { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }
.cat-option input:focus-visible + span, .prio-option input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.prio-option > span { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; }
.prio-option small { color: var(--slate); font-size: 12.5px; }
.prio-option input:checked + span { border-color: var(--brand); background: var(--brand-tint); }
.drop { display: flex; align-items: center; gap: 10px; padding: 18px; border: 1.5px dashed #C9CDD6; border-radius: var(--r); color: var(--slate); cursor: pointer; position: relative; font-size: 14px; }
.drop:hover { border-color: var(--brand); color: var(--brand); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-inline { padding: 0 12px; height: 38px; border-style: solid; border-width: 1px; }
.file-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.file-list li { font-size: 12.5px; background: var(--line-soft); padding: 4px 10px; border-radius: 12px; }

/* ---------- Ticket detail ---------- */
.ticket-layout { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.ticket-main, .ticket-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ticket-side { position: sticky; top: 86px; }
.th-top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.th-subject { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin: 10px 0 16px; }
.th-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 20px; margin: 0; }
.th-meta dt, .facts dt { font-size: 12px; color: var(--mute); font-weight: 600; }
.th-meta dd, .facts dd { margin: 2px 0 0; font-size: 14px; }
.banner { display: flex; gap: 16px; align-items: center; margin-top: 18px; padding: 14px 16px; border-radius: var(--r); }
.banner p { margin: 0; }
.banner-queue { background: var(--accent-tint); }
.banner-progress { background: var(--amber-tint); color: #7A4900; }
.banner-hold { background: #ECEEF2; color: var(--slate); }
.confirm-box { margin-top: 18px; padding: 18px; border-radius: var(--r); background: var(--green-tint); display: flex; flex-direction: column; gap: 12px; }
.confirm-box h3 { font-size: 16px; color: #14583A; }
.stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.stars input { position: absolute; opacity: 0; width: 1px; }
.stars label { font-size: 30px; line-height: 1; color: #C8CCD4; cursor: pointer; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: var(--accent); }
.stars input:focus-visible + label { outline: 2px solid var(--accent); }
.confirm-box .row-actions { justify-content: flex-start; }
.reopen-box { display: flex; gap: 10px; margin-top: 14px; }
.rating-line { margin: 14px 0 0; color: var(--slate); }
.rating-line strong { color: #E3A008; letter-spacing: 2px; }

.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.tl-comment { display: flex; gap: 12px; }
.tl-bubble { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; background: var(--surface); }
.tl-bubble header { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; font-size: 14px; }
.tl-bubble time { color: var(--mute); font-size: 12.5px; margin-left: auto; }
.tl-body { font-size: 14.5px; overflow-wrap: anywhere; }
.from-staff .tl-bubble { background: #F5FAF7; border-color: #CFE3D6; }
.internal .tl-bubble { background: #FFF9E8; border-color: #EAD9A2; border-style: dashed; }
.tl-origin .tl-bubble { border-color: #D3D7DF; }
.tl-event { display: flex; gap: 12px; align-items: center; padding-left: 12px; font-size: 13.5px; color: var(--slate); }
.tl-event p { margin: 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tl-event time { color: var(--mute); font-size: 12px; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #C9CDD6; background: var(--surface); flex: none; }
.attach { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.attach a { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 13px; color: var(--ink); background: var(--surface); max-width: 280px; }
.attach img { width: 56px; height: 42px; object-fit: cover; border-radius: 4px; }
.attach span { display: flex; flex-direction: column; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach small { color: var(--mute); }
.reply { display: flex; flex-direction: column; gap: 12px; }
.reply-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.side-form { margin-top: 14px; gap: 12px; }
.side-facts h3 { margin: 4px 0 8px; color: var(--slate); }
.side-facts h3:not(:first-child) { margin-top: 18px; }
.side-facts p { margin: 0 0 6px; }
.facts { margin: 0 0 14px; display: grid; gap: 10px; }

/* ---------- Settings & misc ---------- */
.settings-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; }
.settings-grid h2:not(:first-of-type) { margin-top: 10px; }
.settings-side { display: flex; flex-direction: column; gap: 22px; }
.copy-row { display: flex; gap: 8px; margin: 12px 0; }
.copy-row input { font-size: 12.5px; }
.logo-preview { display: flex; gap: 14px; align-items: center; }
.logo-preview img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--r); padding: 4px; }
.list-edit { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.list-edit li.inactive input[name="name"] { color: var(--mute); text-decoration: line-through; }
.inline-form { display: flex; gap: 8px; align-items: center; margin: 0; }
.inline-form input[name="name"] { flex: 1; min-height: 34px; padding: 6px 10px; font-size: 14px; }
.inline-form .muted { white-space: nowrap; }
.narrow { max-width: 760px; }
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif-list a { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.notif-list a:hover { background: #FBFBFC; text-decoration: none; }
.notif-list .ntext { flex: 1; }
.notif-list time { color: var(--mute); font-size: 12.5px; white-space: nowrap; }
.ndot { width: 8px; height: 8px; border-radius: 50%; background: transparent; flex: none; }
.notif-list .unread .ndot { background: var(--brand); }
.notif-list .unread .ntext { font-weight: 600; }
.notif-list .ntype-urgent_ticket .ndot { background: var(--red); }
.field-inline { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; }
.quick-ranges { display: inline-flex; gap: 12px; font-size: 13.5px; }
.print-head, .print-only { display: none; }

/* ---------- Accounts, import & credentials ---------- */
.avatar-img { object-fit: cover; padding: 0; background: var(--line-soft); }
.avatar-xl { width: 88px; height: 88px; font-size: 26px; border-radius: 50%; }
.avatar-xl .ico { width: 34px; height: 34px; }
.person { display: flex; align-items: center; gap: 10px; }
.person p { margin: 0; }
.person-lg { gap: 12px; margin-bottom: 6px; }
.person-lg .avatar { width: 48px; height: 48px; }
.photo-field { display: flex; align-items: center; gap: 18px; }
.photo-field .field { flex: 1; }
.pw-box { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.pw-box legend { float: none; width: auto; padding: 0 6px; margin: 0; font-size: 14px; }
.pw-box p { margin: 0; }
.cell-check { width: 36px; }
.bulk-bar { position: sticky; top: 72px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; margin-bottom: 12px; border-radius: var(--r); background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.bulk-password-set { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto; align-items: end; gap: 10px; flex: 1; min-width: 0; }
.bulk-password-set .field { margin: 0; min-width: 0; }
.bulk-password-set input { width: 100%; min-width: 0; }
.check-option { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.check-option input { width: auto; margin: 0; }

.import-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.import-help p { margin: 0 0 12px; }
.import-help h3 { margin: 16px 0 6px; }
.kpis-import { grid-template-columns: repeat(5, 1fr); }
.import-options { gap: 10px; }
.row-error td { background: #FFF6F5; }
.ok-dot { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--green-tint); color: var(--green); }
.cred-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cred-head p { margin: 4px 0 0; }
code.pw { font-size: 14px; font-weight: 700; color: var(--brand); background: var(--brand-tint); padding: 3px 8px; letter-spacing: .04em; }
.profile-id { display: flex; align-items: center; gap: 18px; }
.profile-id h2 { font-family: var(--font-display); font-size: 22px; }
.profile-id p { margin: 2px 0 0; }
.pw-required { box-shadow: 0 0 0 3px var(--accent); }
@media (max-width: 960px) { .import-grid { grid-template-columns: 1fr; } .kpis-import { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Audit trail ---------- */
.kpis-audit { grid-template-columns: repeat(4, 1fr); }
.nowrap { white-space: nowrap; }
.audit-details { min-width: 280px; overflow-wrap: anywhere; }
.act { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.act-auth { background: var(--blue-tint); color: var(--blue); }
.act-ticket { background: var(--brand-tint); color: var(--brand); }
.act-user { background: var(--violet-tint); color: var(--violet); }
.act-settings { background: var(--amber-tint); color: var(--amber); }
.act-export { background: #ECEEF2; color: var(--slate); }
.act-other { background: #F2F2F2; color: var(--mute); }
.radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; font-size: 14px; }
.radio-card input { margin-top: 3px; }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
@media (max-width: 960px) { .kpis-audit { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Personnel feedback & performance ---------- */
.status-open-bad { background: var(--red-tint); color: var(--red); }
.star-view { letter-spacing: 1px; font-size: 15px; white-space: nowrap; }
.star-view .on { color: #E3A008; }
.star-view .off { color: #D5D9E0; }
.star-sm { font-size: 12px; display: block; }
.feedback-panel { border-top: 3px solid var(--brand); }
.fb-person { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-top: 12px; }
.fb-person .person-lg { margin-bottom: 0; }
.fb-done { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; }
.fb-details { margin-top: 10px; }
.fb-details summary { cursor: pointer; font-weight: 600; color: var(--brand); font-size: 14px; }
.fb-form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.fb-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fb-label { font-weight: 600; font-size: 14px; min-width: 190px; }
.fb-label em { font-style: normal; font-weight: 400; color: var(--mute); font-size: 12px; }
.seg { display: inline-flex; border: 1px solid #D3D7DF; border-radius: var(--r-sm); overflow: hidden; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 8px 14px; font-size: 13.5px; font-weight: 600; color: var(--slate); border-right: 1px solid #D3D7DF; }
.seg label:last-child span { border-right: 0; }
.seg input:checked + span { background: var(--brand); color: #fff; }
.seg input[value="unresolved"]:checked + span { background: var(--red); }
.seg input[value="partial"]:checked + span { background: var(--amber); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: -3px; }
.stars-lg label { font-size: 34px; }
.stars-sm label { font-size: 22px; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #E3A008; }
.fb-criteria { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; padding: 12px 14px; background: #FAFBFA; border-radius: var(--r); }
.fb-crit { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fb-crit span strong { display: block; font-size: 13.5px; }
.fb-crit span small { color: var(--slate); font-size: 12px; }
.fb-item { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.fb-item:last-child { border-bottom: 0; }
.fb-item-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fb-quote { margin: 6px 0; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--accent-tint); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 14px; overflow-wrap: anywhere; }
.fb-list { list-style: none; margin: 0; padding: 0; }
.fb-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.fb-list li:last-child { border-bottom: 0; }
.fb-list-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fb-list time { text-align: right; white-space: nowrap; }
.fb-list-admin li.fb-low { background: #FFF8F7; margin: 0 -20px; padding-left: 20px; padding-right: 20px; box-shadow: inset 3px 0 0 var(--red); }
.fb-scores { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--slate); }
.fb-scores b { color: var(--ink); }
.fb-who { display: flex; align-items: center; gap: 12px; }
.avatar-stack { display: inline-flex; }
.avatar-stack .avatar { margin-left: -8px; border: 2px solid #fff; }
.avatar-stack .avatar:first-child { margin-left: 0; }
.kpis-perf { grid-template-columns: repeat(5, 1fr); }
.kpi-link { color: inherit; text-decoration: none !important; display: flex; flex-direction: column; gap: 4px; }
.panel-pad { padding: 18px 20px 0; }
.perf-table td { vertical-align: middle; }
.perf-table td:first-child { min-width: 230px; }
.perf-table th { white-space: normal; }
.perf-table a.person { color: var(--ink); text-decoration: none; }
.perf-table a.person:hover strong { color: var(--brand); }
.perf-overall b { font-family: var(--font-display); font-size: 18px; }
.row-selected td { background: var(--brand-tint) !important; }
.row-muted td { opacity: .6; }
.dist { display: flex; width: 120px; height: 8px; border-radius: 4px; overflow: hidden; background: var(--line-soft); margin-bottom: 3px; }
.dist-5 { background: #1F7A4D; } .dist-4 { background: #6CC9A4; } .dist-3 { background: #E3A008; } .dist-2 { background: #EA580C; } .dist-1 { background: #B42318; }
.oc { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 11px; font-size: 12px; font-weight: 700; }
.oc-res { background: var(--green-tint); color: var(--green); }
.oc-part { background: var(--amber-tint); color: var(--amber); }
.oc-un { background: var(--red-tint); color: var(--red); }
.legend-line { padding-bottom: 16px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
@media (max-width: 960px) { .fb-criteria { grid-template-columns: 1fr; } .kpis-perf { grid-template-columns: repeat(2, 1fr); } .fb-label { min-width: 0; } }

.sys-checks { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.sys-checks li { display: flex; gap: 8px; align-items: flex-start; }
.sys-dot { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.sys-checks .ok .sys-dot { background: var(--green-tint); color: var(--green); }
.sys-checks .bad .sys-dot { background: var(--red-tint); color: var(--red); }
.sys-checks .bad { color: var(--red); font-weight: 600; }

/* ---------- Get the app ---------- */
.app-panel { border-top: 3px solid var(--brand); display: flex; flex-direction: column; gap: 14px; }
.app-hero { display: flex; gap: 16px; align-items: center; }
.app-hero h2 { font-family: var(--font-display); font-size: 21px; }
.app-hero p { margin: 4px 0 0; max-width: 620px; }
.app-icon { width: 72px; height: 72px; border-radius: 18px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.12); padding: 4px; flex: none; }
.app-install { width: 100%; max-width: 360px; }
.app-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; }
.share-glyph { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid var(--blue); color: var(--blue); border-radius: 5px; font-size: 12px; }
.app-state { display: flex; flex-direction: column; gap: 10px; }
.app-state[data-app-state="installed"] { flex-direction: row; align-items: center; gap: 8px; }
.login-install { width: 100%; max-width: 100%; min-width: 0; margin-top: 2px; padding: 15px; border-color: #D5E7DF; border-top: 3px solid var(--brand); background: linear-gradient(135deg, #F2F8F5 0%, #FFFFFF 78%); box-shadow: 0 8px 22px rgba(2, 61, 50, .06); display: flex; flex-direction: column; gap: 12px; }
.login-install-head { display: flex; gap: 12px; align-items: center; min-width: 0; }
.login-install-head > div { min-width: 0; }
.login-install-head img { flex: none; width: 54px; height: 54px; padding: 3px; border-radius: 15px; background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.1); }
.login-install-kicker { display: block; margin-bottom: 2px; color: var(--accent-deep); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.login-install-head h2 { margin: 0; font-family: var(--font-display); font-size: 19px; line-height: 1.2; }
.login-install-head p { margin: 3px 0 0; color: var(--slate); font-size: 12.5px; line-height: 1.4; overflow-wrap: anywhere; }
.login-install-state { gap: 8px; }
.login-install-state [data-install-status] { margin: 0; }
.login-install-steps { margin: 2px 0 0; padding-left: 20px; display: grid; gap: 4px; color: var(--slate); font-size: 13px; }
.login-install-state .btn { align-self: flex-start; max-width: 100%; white-space: normal; min-height: 40px; height: auto; line-height: 1.3; padding-block: 10px; }
@media all and (display-mode: standalone) { .topbar { padding-top: env(safe-area-inset-top); height: calc(64px + env(safe-area-inset-top)); } }

/* ---------- TV display ---------- */
.display-body { background: var(--brand-deep); color: #fff; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.display-head { display: flex; justify-content: space-between; align-items: center; padding: 2.2vh 3vw; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.brand-display .brand-logo { width: 8vh; height: 8vh; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.brand-display .brand-school { font-size: 3vh; }
.brand-display .brand-motto { font-size: 1.5vh; }
.brand-display .brand-office { font-size: 1.7vh; }
.display-clock { text-align: right; font-family: var(--font-display); }
.display-clock span { font-size: 5vh; font-weight: 600; display: block; line-height: 1; }
.display-clock small { font-size: 1.7vh; color: var(--accent); }
.display-main { flex: 1; display: grid; grid-template-columns: 1fr 1.25fr; gap: 3vw; padding: 3vh 3vw; min-height: 0; }
.display-col h2 { font-family: var(--font-display); font-size: 3.4vh; font-weight: 600; color: var(--accent); margin-bottom: 2vh; display: flex; gap: 1vw; align-items: center; }
.d-count { font-family: var(--font-ui); font-size: 2vh; background: rgba(255, 255, 255, .12); color: #fff; border-radius: 2vh; padding: .3vh 1.2vh; }
.display-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2vh; }
.display-item { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "pos no prio" "pos sub prio"; column-gap: 1.4vw; align-items: center; padding: 1.4vh 1.4vw; background: rgba(255, 255, 255, .06); border-radius: 1vh; border-left: .6vh solid #B7BCC7; }
.display-item.serving { grid-template-columns: 1fr auto; grid-template-areas: "no who" "sub who"; background: rgba(108, 201, 164, .16); border-left-color: var(--accent); }
.d-pos { grid-area: pos; font-family: var(--font-display); font-size: 4vh; font-weight: 600; color: var(--accent); min-width: 4vh; text-align: center; }
.d-no { grid-area: no; font-size: 3vh; font-weight: 700; letter-spacing: .02em; }
.d-sub { grid-area: sub; font-size: 1.8vh; color: rgba(255, 255, 255, .7); }
.d-who { grid-area: who; font-size: 2vh; color: var(--accent); font-weight: 600; }
.display-item .prio { grid-area: prio; font-size: 1.8vh; }
.display-item .prio-normal, .display-item .prio-low { color: rgba(255, 255, 255, .75); }
.display-item .prio-urgent { color: #FF8A80; } .display-item .prio-urgent i { background: #FF8A80; }
.display-item .prio-high { color: #FDBA74; } .display-item .prio-high i { background: #FDBA74; }
.display-empty { font-size: 2.2vh; color: rgba(255, 255, 255, .5); margin: 0; }
.display-foot { display: flex; justify-content: space-between; padding: 1.8vh 3vw; font-size: 1.8vh; color: rgba(255, 255, 255, .7); border-top: 1px solid rgba(255, 255, 255, .1); }
.display-foot strong { color: var(--accent); }
.flash-new { animation: flashNew 2.4s ease-out; }
@keyframes flashNew { 0%, 30% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .kpis-report { grid-template-columns: repeat(3, 1fr); }
  .lanes { grid-template-columns: 1fr 1fr; }
  .ticket-form { grid-template-columns: 1fr 320px; }
}
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 50; transform: translateX(-100%); transition: transform .2s ease; }
  .nav-open .sidebar { transform: none; }
  .nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 40; }
  .menu-btn { display: inline-grid; }
  .cols, .cols-wide, .settings-grid, .ticket-layout, .ticket-form, .lanes { grid-template-columns: 1fr; }
  .ticket-side { position: static; }
  .auth-shell { min-height: 100vh; grid-template-columns: minmax(0, 1fr); }
  .auth-aside { display: none; }
  .auth-panel { width: 100%; padding: 32px clamp(18px, 5vw, 40px); }
}
@media (max-width: 640px) {
  .auth-panel { min-height: 100svh; padding: max(22px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom)); gap: 22px; }
  .auth-card { gap: 16px; }
  .auth-title { font-size: clamp(23px, 6vw, 28px); line-height: 1.2; }
  .auth-sub, .auth-alt { overflow-wrap: anywhere; }
  .brand-lg { align-items: flex-start; gap: 10px; }
  .brand-lg .brand-logo { width: 58px; height: 58px; }
  .brand-lg .brand-school { font-size: clamp(16px, 4.5vw, 21px); white-space: normal; overflow-wrap: anywhere; }
  .brand-lg .brand-motto, .brand-lg .brand-office { overflow-wrap: anywhere; }
  .login-install { padding: 13px; }
  .login-install-head { align-items: flex-start; }
  .login-install-head img { width: 48px; height: 48px; }
  .login-install-kicker { letter-spacing: .1em; }
  .login-install-head h2 { font-size: 18px; overflow-wrap: anywhere; }
  .login-install-state .btn { width: 100%; }
  .topbar { padding: 0 14px; gap: 6px; }
  .content { padding: 16px; gap: 16px; }
  .bulk-password-set { grid-template-columns: minmax(0, 1fr); }
  .bulk-password-set button { grid-column: auto; width: 100%; }
  .btn-new span, .live span { display: none; }
  .btn-new { width: 40px; padding: 0; }
  .kpis, .kpis-report { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-4, .th-meta { grid-template-columns: 1fr 1fr; }
  .hero-user { flex-direction: column; align-items: flex-start; padding: 22px; }
  .my-ticket { flex-direction: column; align-items: flex-start; }
  .page-title { font-size: 18px; }
  .foot { flex-direction: column; padding: 14px 16px; }
  .display-main { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .auth-panel { padding-inline: 14px; }
  .login-install { padding: 11px; }
  .login-install-head { gap: 9px; }
  .login-install-head img { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Print (reports) ---------- */
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  .app { display: block; }
  .sidebar, .topbar, .foot, .no-print, .toasts, .sound-hint, .flash { display: none !important; }
  .content { padding: 0; }
  .panel { box-shadow: none; break-inside: avoid; }
  .print-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--brand); padding-bottom: 10px; }
  .print-head .brand-school { color: var(--brand); }
  .print-only { display: block; }
  .kpis-report { grid-template-columns: repeat(3, 1fr); }
  .cols { grid-template-columns: 1fr 1fr; }
}

/* ---------- Refined interface ---------- */
:root {
  --brand: #126B59;
  --brand-deep: #103F36;
  --brand-tint: #E8F3F0;
  --accent: #92D6B7;
  --accent-deep: #28775F;
  --ink: #172520;
  --slate: #5B6B65;
  --mute: #89958F;
  --line: #E2E9E5;
  --line-soft: #F0F4F2;
  --bg: #F5F8F6;
  --surface: #FFFFFF;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow: 0 2px 6px rgba(18, 53, 42, .035), 0 14px 36px rgba(18, 53, 42, .055);
}

body { letter-spacing: -.008em; }
.panel { border-color: #E7EDE9; box-shadow: 0 2px 8px rgba(18, 53, 42, .035), 0 12px 30px rgba(18, 53, 42, .035); }
.btn { border-radius: 9px; transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease; }
.btn-primary { box-shadow: 0 5px 14px rgba(18, 107, 89, .16); }
.btn-primary:hover { box-shadow: 0 8px 18px rgba(18, 107, 89, .22); transform: translateY(-1px); }
input, select, textarea { border-color: #D9E2DD; border-radius: 9px; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px rgba(18, 107, 89, .1); }
.topbar { background: rgba(248, 250, 249, .9); border-bottom-color: rgba(218, 228, 222, .8); }
.sidebar { background: linear-gradient(180deg, #123F36, #10372F); }

.auth-body { background: #F7FAF8; }
.auth-shell {
  grid-template-columns: minmax(460px, .92fr) minmax(0, 1.08fr);
  background: #fff;
}
.auth-panel {
  position: relative;
  z-index: 1;
  padding: 42px clamp(30px, 5.3vw, 88px);
  gap: clamp(24px, 3.4vh, 38px);
  box-shadow: 14px 0 55px rgba(21, 49, 39, .055);
}
.auth-panel > .brand { width: 100%; max-width: 440px; margin-inline: auto; }
.auth-card { max-width: 440px; gap: 19px; }
.auth-heading { display: grid; gap: 10px; }
.auth-eyebrow {
  display: flex; align-items: center; gap: 9px;
  color: var(--accent-deep); font-size: 10px; font-weight: 700; letter-spacing: .16em;
}
.auth-eyebrow i { width: 4px; height: 4px; border-radius: 50%; background: #9BB0A6; }
.auth-title { font-family: var(--font-ui); color: #15372D; font-size: clamp(30px, 3vw, 38px); letter-spacing: -.045em; font-weight: 700; }
.auth-sub { margin: 0; max-width: 370px; line-height: 1.65; color: #6B7A73; }
.auth-card .form { gap: 18px; }
.auth-card .field { gap: 8px; }
.auth-card .field > span { color: #30473D; font-size: 13px; }
.auth-card .field input { min-height: 48px; padding: 11px 14px; background: #FCFDFC; }
.auth-card .field input::placeholder { color: #A2ADA7; }
.auth-card .field-hint { margin: -1px 0 0; color: #7C8983; line-height: 1.5; }
.auth-submit { justify-content: space-between; padding-inline: 18px; margin-top: 3px; }
.auth-submit span { font-size: 20px; font-weight: 400; transition: transform .16s ease; }
.auth-submit:hover span { transform: translateX(3px); }
.auth-alt { color: #7A8781; font-size: 12.5px; line-height: 1.65; }
.auth-foot { max-width: 440px; width: 100%; margin-inline: auto; color: #94A19A; font-size: 11.5px; }
.auth-aside {
  min-height: 100vh;
  padding: clamp(48px, 7vw, 108px);
  background: #123F36 radial-gradient(ellipse at 75% 14%, rgba(137, 211, 176, .25), transparent 36%), linear-gradient(145deg, #164B40, #0E382F 74%);
}
.auth-aside::before {
  content: ""; position: absolute; width: min(46vw, 620px); aspect-ratio: 1; right: -11%; top: 8%;
  border: 1px solid rgba(207, 244, 224, .15); border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(207, 244, 224, .035), 0 0 0 70px rgba(207, 244, 224, .025);
}
.auth-aside::after { width: 540px; height: 540px; border-color: rgba(207, 244, 224, .13); }
.aside-seal { top: 9%; right: 12%; width: min(31%, 275px); opacity: .78; filter: drop-shadow(0 18px 32px rgba(0, 0, 0, .25)); }
.aside-inner { max-width: 500px; }
.aside-kicker { text-transform: uppercase; font-size: 11px; letter-spacing: .16em; color: #A5E2C2; margin-bottom: 18px; }
.auth-aside h2 { max-width: 490px; font-size: clamp(38px, 4.1vw, 58px); letter-spacing: -.035em; line-height: 1.08; }
.aside-steps { margin-top: 38px; gap: 17px; }
.aside-steps li { grid-template-columns: 38px 1fr; color: rgba(247, 255, 250, .76); font-size: 14px; line-height: 1.55; }
.aside-steps li::before { font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: .05em; color: #A5E2C2; border: 1px solid rgba(165, 226, 194, .45); border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; }
.login-install { background: linear-gradient(135deg, #F7FAF8, #F0F6F3); border-color: #E4EEE8; border-radius: 14px; box-shadow: none; }
.login-install-head img { border-radius: 12px; }
.login-install-kicker { color: var(--accent-deep); }

@media (max-width: 960px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr); }
  .auth-panel { min-height: 100vh; padding: 36px clamp(24px, 7vw, 80px); }
  .auth-aside { display: none; }
}
@media (max-width: 640px) {
  .auth-panel { justify-content: flex-start; padding: max(26px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom)); gap: 28px; }
  .auth-panel > .brand { max-width: 440px; }
  .auth-card { gap: 17px; }
  .auth-title { font-size: 32px; }
  .auth-alt { font-size: 12px; }
  .auth-foot { margin-top: auto; }
}
@media print { .panel { box-shadow: none; } }

/* ---------- Cohesive design system ---------- */
:root {
  color-scheme: light;
  --brand: #145C46;
  --brand-deep: #123F34;
  --brand-tint: #E7F2EC;
  --accent: #91D2B2;
  --accent-deep: #216B53;
  --accent-tint: #E8F5EF;
  --ink: #192720;
  --slate: #53665D;
  --mute: #65746C;
  --line: #DDE7E1;
  --line-soft: #EDF2EF;
  --bg: #F4F8F5;
  --surface: #FFFFFF;
  --blue: #176C72;
  --blue-tint: #E6F3F2;
  --amber: #885300;
  --amber-tint: #FFF4DE;
  --green: #176B4D;
  --green-tint: #E8F5ED;
  --red: #B42318;
  --red-tint: #FDECEA;
  --violet: #426782;
  --violet-tint: #EAF1F6;
  --font-ui: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --text-xs: .75rem;
  --text-sm: .825rem;
  --text-base: clamp(.9375rem, .18vw + .9rem, 1rem);
  --text-lg: clamp(1.125rem, .5vw + 1rem, 1.375rem);
  --text-title: clamp(1.5rem, 1.25vw + 1.2rem, 2.125rem);
  --r-sm: 8px;
  --r: 11px;
  --r-lg: 16px;
  --shadow: 0 1px 3px rgba(18, 53, 41, .04), 0 8px 22px rgba(18, 53, 41, .045);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  line-height: 1.55;
  letter-spacing: -.006em;
  color: var(--ink);
  background: var(--bg);
  font-variant-numeric: tabular-nums;
}
h1, h2, h3 { line-height: 1.3; letter-spacing: -.015em; }
h1, .page-title, .auth-title, .auth-aside h2, .hero-user h2, .th-subject,
.error-state h2, .app-hero h2 { font-family: var(--font-display); }
p { line-height: 1.6; }
small, .small { font-size: var(--text-sm); line-height: 1.5; }
.muted { color: var(--slate); }
.lead { max-width: 72ch; line-height: 1.65; }
.page-title { font-size: clamp(1.35rem, 1.1vw + 1rem, 1.75rem); line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
.auth-title { font-size: var(--text-title); letter-spacing: -.025em; }
.panel, .kpi, .q-item, .my-ticket, .fb-person, .tl-bubble { border-color: var(--line); }
.panel { border-radius: var(--r-lg); box-shadow: var(--shadow); }
.panel-head { align-items: center; }
.btn { min-height: 42px; border-radius: var(--r-sm); transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.btn-primary { background: var(--brand); border-color: var(--brand); box-shadow: 0 3px 10px rgba(20, 92, 70, .12); }
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn-gold { background: var(--accent); border-color: var(--accent); color: #153D30; }
.btn-gold:hover { background: #A6DFC4; border-color: #A6DFC4; }
.icon-btn { min-width: 42px; min-height: 42px; }
input, select, textarea { min-height: 44px; border-color: var(--line); border-radius: var(--r-sm); line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(20, 92, 70, .12); }
input::placeholder, textarea::placeholder { color: var(--mute); opacity: 1; }
.sidebar { background: var(--brand-deep); }
.nav-group { color: rgba(255, 255, 255, .72); }
.sidebar-user-text span { color: rgba(255, 255, 255, .72); }
.nav-link { min-height: 42px; }
.nav-link.active { background: rgba(255, 255, 255, .12); box-shadow: inset 3px 0 0 var(--accent); }
.topbar { background: rgba(247, 250, 248, .94); border-bottom-color: var(--line); }
.content { padding: clamp(18px, 2.2vw, 30px); gap: clamp(16px, 1.8vw, 24px); }
.foot { flex-wrap: wrap; line-height: 1.45; }
.table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
.table { min-width: 620px; font-variant-numeric: tabular-nums; }
.table th { background: #F5F8F6; color: var(--slate); }
.table tbody tr:hover { background: #F7FAF8; }
.chart { max-width: 100%; min-width: 0; }
.chart svg { max-width: 100%; }
.hbars li { min-width: 0; }
.hbar-label { white-space: normal; overflow-wrap: anywhere; }
.toolbar, .row-actions, .topbar-actions, .filters { min-width: 0; }
.filters { row-gap: 10px; }
.status-open { background: var(--blue-tint); color: #145D62; }
.status-assigned { background: var(--violet-tint); color: #34566F; }
.status-in_progress { background: var(--amber-tint); color: #805000; }
.status-resolved { background: var(--green-tint); color: #155C42; }
.prio-normal { color: #155D65; }
.prio-normal i { background: var(--blue); }
.prio-high { color: #965000; }
.prio-high i { background: #B56A00; }
.act-export, .act-other { background: #F0F4F1; color: var(--slate); }
.auth-body { background: #F5F8F6; }
.auth-sub, .auth-alt, .auth-foot { color: var(--slate); }
.auth-card .field-hint { color: var(--mute); }
.auth-panel { align-items: center; }
.auth-content {
  width: min(100%, 440px);
  min-width: 0;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vh, 32px);
}
.auth-content > .brand { width: 100%; max-width: none; margin: 0; }
.auth-content .auth-card { width: 100%; max-width: none; margin: 0; }
.auth-content .auth-foot { width: 100%; max-width: none; margin: auto 0 0; }
.login-install { background: linear-gradient(145deg, #F1F8F4, #FFFFFF 78%); border-color: #DCEAE1; box-shadow: 0 4px 16px rgba(18, 53, 41, .045); }
.login-install-head img, .app-icon { border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(18, 53, 41, .08); object-fit: contain; }
.login-install-head img { background: #fff; }
.app-icon { background: #fff; }
.aside-kicker { color: #AFE5C9; }
.auth-aside h2 { font-size: clamp(2.25rem, 4vw, 3.625rem); }
.kpi-n, .q-pos, .pos-chip b, .perf-overall b, .error-code { font-variant-numeric: tabular-nums; }

@media (max-width: 1200px) {
  .kpis, .kpis-report, .kpis-import, .kpis-audit, .kpis-perf {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
  }
  .content { max-width: none; }
}

@media (max-width: 960px) {
  .cols, .cols-wide, .settings-grid, .ticket-layout, .ticket-form, .import-grid, .lanes { grid-template-columns: minmax(0, 1fr); }
  .ticket-side { position: static; }
  .topbar { padding-inline: 18px; }
  .content { padding: 20px; }
  .bulk-bar { top: 70px; flex-wrap: wrap; align-items: flex-start; }
  .bulk-password-set { flex-basis: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bulk-password-set button { grid-column: 1 / -1; justify-self: start; }
  .auth-content { min-height: calc(100vh - 72px); }
}

@media (max-width: 720px) {
  .content { padding: 16px; gap: 16px; }
  .panel { padding: 17px; }
  .panel.flush { padding: 0; }
  .toolbar { align-items: stretch; }
  .toolbar .filters { width: 100%; }
  .filters select, .filters input { max-width: 100%; }
  .table-foot { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .pager { flex-wrap: wrap; }
  .copy-row { min-width: 0; }
  .app-hero { align-items: flex-start; }
  .auth-panel { padding-inline: clamp(20px, 6vw, 42px); }
  .foot { padding: 14px 18px; }
  .display-main { gap: 22px; }
}

@media (max-width: 540px) {
  .topbar { min-height: 62px; height: auto; padding: 8px 12px; gap: 6px; flex-wrap: wrap; }
  .menu-btn { flex: none; }
  .page-title { flex: 1; min-width: 0; font-size: 1.2rem; }
  .topbar-actions { width: 100%; justify-content: flex-end; gap: 4px; }
  .btn-new { width: 42px; min-width: 42px; padding-inline: 0; }
  .btn-new span, .live span { display: none; }
  .icon-btn { width: 42px; height: 42px; }
  .content { padding: 13px; gap: 14px; }
  .auth-panel { min-height: 100svh; }
  .auth-content { min-height: calc(100svh - max(26px, env(safe-area-inset-top)) - max(24px, env(safe-area-inset-bottom))); }
  .panel { padding: 15px; }
  .panel.flush { padding: 0; }
  .grid-2, .grid-4, .th-meta { grid-template-columns: minmax(0, 1fr); }
  .kpis, .kpis-report, .kpis-import, .kpis-audit, .kpis-perf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .kpi { padding: 13px; }
  .kpi-n { font-size: clamp(1.5rem, 8vw, 2rem); }
  .hero-user { padding: 20px; }
  .hero-user h2 { font-size: clamp(1.5rem, 7vw, 1.9rem); }
  .my-ticket { align-items: stretch; gap: 10px; }
  .my-top { align-items: flex-start; flex-wrap: wrap; }
  .pos-chip { align-self: flex-start; }
  .q-subject { white-space: normal; overflow-wrap: anywhere; }
  .q-meta { gap: 6px 12px; }
  .app-hero { gap: 12px; }
  .app-icon { width: 56px; height: 56px; border-radius: 14px; }
  .app-state[data-app-state="installed"] { align-items: flex-start; flex-wrap: wrap; }
  .app-hero h2 { font-size: 1.15rem; }
  .app-install { max-width: none; }
  .profile-id { align-items: flex-start; flex-wrap: wrap; }
  .profile-id > div { min-width: 0; }
  .profile-id .avatar { flex: none; }
  .person, .photo-field { flex-wrap: wrap; }
  .fb-list li, .notif-list a { align-items: flex-start; }
  .notif-list time { white-space: normal; }
  .fb-done { margin-left: 0; }
  .seg { max-width: 100%; }
  .seg span { padding-inline: 10px; }
  .quick-ranges { flex-wrap: wrap; }
  .table-foot { padding: 12px; }
  .display-head, .display-foot { gap: 12px; flex-wrap: wrap; }
  .display-body { min-height: 100svh; height: auto; overflow-x: hidden; overflow-y: auto; }
  .display-head { padding: 18px 16px; }
  .display-main { padding: 18px 16px; }
  .display-clock span { font-size: clamp(1.8rem, 5vh, 2.6rem); }
  .display-col h2 { font-size: clamp(1.2rem, 3.5vh, 1.8rem); }
  .d-no { font-size: clamp(1.15rem, 3vh, 1.7rem); }
  .d-sub, .display-item .prio, .d-who { font-size: clamp(.8rem, 1.8vh, 1rem); }
  .display-foot { padding: 14px 16px; font-size: 12px; }
}

@media (max-width: 380px) {
  .content { padding: 10px; }
  .panel { padding: 13px; }
  .panel.flush { padding: 0; }
  .kpis, .kpis-report, .kpis-import, .kpis-audit, .kpis-perf { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7px; }
  .kpi-l { font-size: 12px; }
  .login-install { padding: 12px; }
  .login-install-head { gap: 9px; }
  .login-install-head img { width: 44px; height: 44px; }
  .login-install-head h2 { font-size: 1.05rem; }
  .login-install-head p { font-size: 12px; }
  .copy-row input { flex: 1; min-width: 0; }
  .auth-panel { padding-inline: 16px; }
}

@media (max-width: 340px) {
  .kpis, .kpis-report, .kpis-import, .kpis-audit, .kpis-perf { grid-template-columns: minmax(0, 1fr); }
  .topbar-actions { justify-content: flex-start; }
  .feed li { flex-wrap: wrap; }
}

dialog { max-width: min(92vw, 640px); max-height: min(88vh, 840px); overflow: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  body { background: #fff; font-size: 11pt; letter-spacing: normal; }
  .panel { box-shadow: none; }
  .content { max-width: none; }
}

/* Focused first-sign-in password setup */
.first-password-shell { width: min(100%, 760px); margin: clamp(16px, 4vh, 44px) auto; }
.first-password-card { padding: clamp(22px, 4vw, 42px); border: 1px solid var(--line, #dce3eb); border-radius: 20px; box-shadow: 0 18px 50px rgba(15, 35, 65, .09); }
.first-password-mark { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 16px; color: #14532d; background: #dcfce7; font-size: 25px; font-weight: 800; }
.first-password-eyebrow { margin: 0 0 8px; color: var(--muted, #64748b); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.first-password-card h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; }
.first-password-intro { max-width: 60ch; color: var(--muted, #64748b); line-height: 1.65; }
.first-password-note { display: grid; gap: 5px; margin: 22px 0; padding: 15px 17px; border: 1px solid #b7e4c7; border-left: 4px solid #198754; border-radius: 12px; background: #f0fdf4; color: #14532d; line-height: 1.5; }
.first-password-note span { font-size: 13px; }
.first-password-form { display: grid; gap: 16px; max-width: 560px; }
.first-password-form .field { margin: 0; }
.first-password-form input { min-height: 48px; }
.first-password-submit { width: 100%; justify-content: center; min-height: 48px; }
.first-password-error { margin: -4px 0 0; color: #b91c1c; font-size: 13px; }
.first-password-footnote { display: flex; gap: 8px; align-items: flex-start; margin: 22px 0 0; color: var(--muted, #64748b); font-size: 12px; line-height: 1.5; }
.bulk-password-set { align-items: end; }
#bulkPasswordProgress { scroll-margin-top: 24px; }
#bulkPasswordMeter { accent-color: var(--primary, #174b8b); }
@media (max-width: 640px) { .first-password-shell { margin: 12px auto; } .first-password-card { padding: 22px 18px; border-radius: 16px; } }
/* Prevent navigation to locked pages during required first-login password setup. */
.app-first-login .sidebar, .app-first-login .scrim, .app-first-login .topbar-actions, .app-first-login .menu-btn, .app-first-login .sound-hint { display: none !important; }
.app-first-login .main { margin-left: 0 !important; width: 100%; }
.app-first-login .topbar { justify-content: center; }
.app-first-login .page-title { width: 100%; text-align: center; }
.app-first-login .content { width: min(100%, 900px); margin-inline: auto; }
.first-password-logout { margin-top: 12px; }

/* Accessible password visibility controls */
.password-control { display: flex; align-items: stretch; position: relative; width: 100%; min-width: 0; }
.password-control > input { flex: 1 1 auto; width: 100%; min-width: 0; padding-right: 10px; }
.password-visibility { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 66px; padding: 0 12px; border: 1px solid var(--line, #cbd5e1); border-left: 0; border-radius: 0 10px 10px 0; background: var(--surface, #fff); color: var(--muted, #475569); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.password-control > input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.password-visibility svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.password-visibility:hover { color: var(--primary, #174b8b); background: var(--surface-soft, #f8fafc); }
.password-visibility:focus-visible, .confirm-dialog button:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 2px; }
.first-password-form .password-control input { min-height: 48px; }
.bulk-password-set .password-control input { min-height: 42px; }

/* Responsive, legible password-job progress */
#bulkPasswordProgress { overflow: hidden; }
#bulkPasswordProgress[hidden], #bulkPasswordConfirmDialog[hidden] { display: none !important; }
.processing-track { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 16px; }
#bulkPasswordMeter { display: block; flex: 1 1 auto; width: 100%; height: 16px; min-width: 0; overflow: hidden; appearance: none; border: 0; border-radius: 999px; background: var(--surface-soft, #e8edf4); accent-color: var(--primary, #174b8b); }
#bulkPasswordMeter::-webkit-progress-bar { border-radius: 999px; background: var(--surface-soft, #e8edf4); }
#bulkPasswordMeter::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, var(--primary, #174b8b), #3b82f6); transition: width .25s ease; }
#bulkPasswordMeter::-moz-progress-bar { border-radius: 999px; background: var(--primary, #174b8b); }
.processing-percent { flex: 0 0 3.5rem; text-align: right; font-variant-numeric: tabular-nums; font-weight: 800; color: var(--text, #0f172a); }
#bulkPasswordStatus { white-space: normal; }

/* Confirm action dialog replaces the browser's unstyled confirmation prompt */
.confirm-overlay { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 18px; overflow-y: auto; background: rgba(15, 23, 42, .62); backdrop-filter: blur(3px); }
.confirm-dialog { width: min(100%, 500px); margin: auto; padding: clamp(22px, 4vw, 32px); border: 1px solid var(--line, #dbe3ed); border-radius: 20px; background: var(--panel, #fff); color: var(--text, #0f172a); box-shadow: 0 24px 80px rgba(0, 0, 0, .24); outline: none; }
.confirm-dialog-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 14px; background: #fff7ed; color: #9a3412; font-size: 23px; font-weight: 900; }
.confirm-dialog .eyebrow { margin: 0 0 7px; color: var(--muted, #64748b); font-size: 11px; letter-spacing: .12em; font-weight: 800; }
.confirm-dialog h2 { margin: 0 0 10px; font-size: clamp(21px, 3vw, 27px); line-height: 1.25; }
.confirm-dialog p:not(.eyebrow) { color: var(--muted, #475569); line-height: 1.6; }
.confirm-summary { display: grid; gap: 6px; margin: 18px 0 22px; padding: 14px 16px; border: 1px solid var(--line, #dbe3ed); border-radius: 12px; background: var(--surface-soft, #f8fafc); }
.confirm-summary span { color: var(--muted, #64748b); font-size: 13px; line-height: 1.5; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.dialog-open { overflow: hidden; }
@media (max-width: 560px) {
  .password-visibility { min-width: 58px; padding-inline: 9px; }
  .password-visibility svg { width: 16px; height: 16px; }
  .confirm-overlay { align-items: end; padding: 10px; }
  .confirm-dialog { border-radius: 18px; padding: 22px 18px; }
  .confirm-actions { display: grid; grid-template-columns: 1fr; }
  .confirm-actions .btn { width: 100%; justify-content: center; }
  .processing-track { gap: 8px; }
  .processing-percent { flex-basis: 2.8rem; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { #bulkPasswordMeter::-webkit-progress-value { transition: none; } }


/* --------------------------------------------------------------------------
   Users page refinement: bulk password workflow and responsive staff table
   -------------------------------------------------------------------------- */
.users-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px 18px;
  margin-bottom: 2px;
}
.users-filters {
  display: grid;
  grid-template-columns: minmax(210px, 1.35fr) minmax(112px, .62fr) minmax(190px, 1.15fr) minmax(112px, .62fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.users-filters > .search { width: 100%; min-width: 0; flex: none; }
.users-filters > select,
.users-filters > .search input { width: 100%; max-width: none; min-width: 0; }
.users-actions { min-width: 0; align-self: start; justify-content: flex-end; gap: 8px; }
.users-actions > .btn { flex: 0 0 auto; white-space: nowrap; }

.bulk-password-panel {
  margin-bottom: 16px;
  padding: clamp(18px, 2.2vw, 26px);
  border-color: #D9E8E0;
  background: linear-gradient(180deg, #FFFFFF 0%, #FCFEFD 100%);
  box-shadow: 0 3px 10px rgba(18, 53, 42, .035), 0 12px 28px rgba(18, 53, 42, .035);
}
.bulk-password-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
}
.bulk-password-intro { min-width: 0; }
.bulk-password-kicker {
  display: block;
  margin: 0 0 7px;
  color: var(--brand, #145C46);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .13em;
}
.bulk-password-intro h2 {
  margin: 0 0 7px;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.3;
  letter-spacing: -.015em;
}
.bulk-password-intro p {
  max-width: 76ch;
  margin: 0;
  color: var(--slate, #52615A);
  font-size: 13.5px;
  line-height: 1.6;
}
.bulk-selection {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 5px 12px;
  border: 1px solid #D7E7DE;
  border-radius: 999px;
  background: #F1F8F4;
  color: #245A45;
  white-space: nowrap;
}
.bulk-selection-number { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bulk-selection-label { font-size: 12px; font-weight: 650; }
.bulk-password-workflow {
  display: grid;
  grid-template-columns: minmax(210px, .7fr) minmax(0, 2.3fr);
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #E9F0EC;
  align-items: stretch;
}
.bulk-password-generate {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  border: 1px solid #DFEBE4;
  border-radius: 12px;
  background: #F6FAF7;
  min-width: 0;
}
.bulk-password-generate .bulk-generate-button {
  width: 100%;
  min-height: 46px;
  justify-content: center;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}
.bulk-password-generate p {
  margin: 0;
  color: var(--slate, #52615A);
  font-size: 12px;
  line-height: 1.5;
}
.bulk-password-manual { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.bulk-password-manual-heading h3 { margin: 0 0 4px; font-size: 14px; line-height: 1.35; }
.bulk-password-manual-heading p { margin: 0; color: var(--slate, #52615A); font-size: 12px; line-height: 1.45; }
.bulk-password-set {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) max-content;
  align-items: end;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.bulk-password-set .bulk-password-field { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
.bulk-password-set .bulk-password-field > .bulk-password-label {
  display: block;
  color: var(--ink, #18352A);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}
.bulk-password-set .field-hint { display: block; margin: 0; color: var(--slate, #52615A); font-size: 11px; line-height: 1.35; }
.bulk-password-set .password-control { min-width: 0; }
.bulk-password-set .password-control > input {
  min-width: 0;
  min-height: 46px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  padding-inline: 12px 8px;
  font-size: 13.5px;
}
.bulk-password-set .password-visibility {
  min-height: 46px;
  min-width: 62px;
  border-color: var(--line, #D9E2DD);
  border-left: 0;
  border-radius: 0 9px 9px 0;
  background: #F8FAF9;
  color: var(--slate, #52615A);
}
.bulk-password-set .password-visibility > span { color: inherit; font-size: 11px; }
.bulk-password-set .password-visibility:hover { background: #EEF5F0; color: var(--brand, #145C46); }
.bulk-password-set .bulk-set-button {
  align-self: end;
  min-height: 46px;
  padding-inline: 16px;
  justify-content: center;
  white-space: nowrap;
}
.bulk-password-set .bulk-set-button:disabled,
.bulk-password-generate .bulk-generate-button:disabled {
  cursor: not-allowed;
  opacity: .52;
  box-shadow: none;
  transform: none;
}
.bulk-password-footnote {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 17px 0 0;
  padding-top: 14px;
  border-top: 1px solid #E9F0EC;
  color: var(--slate, #52615A);
  font-size: 12px;
  line-height: 1.55;
}
.bulk-security-symbol {
  display: inline-grid;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: #E7F4EC;
  color: #176548;
  font-size: 11px;
  font-weight: 900;
}
.users-table-panel { min-width: 0; }
.users-table-scroll-hint { display: none; }
.users-table { min-width: 1020px; table-layout: auto; }
.users-table th { padding: 13px 14px; }
.users-table td { vertical-align: middle; }
.users-table td:first-child, .users-table th:first-child { padding-inline: 16px 8px; }
.users-table .person { min-width: 175px; align-items: center; }
.users-table .person > div { min-width: 0; }
.users-table .person strong { display: block; line-height: 1.4; overflow-wrap: anywhere; }
.users-table .person small { display: block; line-height: 1.45; overflow-wrap: anywhere; }
.users-table .role { white-space: nowrap; }
.account-password-state {
  display: block;
  margin-top: 4px;
  color: #916018;
  font-size: 11px;
  line-height: 1.4;
}
.account-password-state::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 5px 1px 0; border-radius: 50%; background: #C88A22; }
.users-table-note { margin: -3px 0 0; font-size: 12px; line-height: 1.5; }

@media (max-width: 1180px) {
  .users-toolbar { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .users-actions { justify-content: flex-start; }
  .users-filters { grid-template-columns: minmax(0, 1.4fr) minmax(125px, .75fr) minmax(0, 1.2fr) minmax(125px, .75fr); }
  .bulk-password-workflow { grid-template-columns: minmax(0, 1fr); }
  .bulk-password-generate { display: grid; grid-template-columns: minmax(220px, max-content) minmax(0, 1fr); align-items: center; }
}
@media (max-width: 760px) {
  .users-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .users-filters > .search { grid-column: 1 / -1; }
  .users-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .users-actions > .btn { min-width: 0; padding-inline: 8px; justify-content: center; white-space: normal; text-align: center; line-height: 1.25; }
  .bulk-password-header { gap: 12px; }
  .bulk-selection { align-self: flex-start; }
  .bulk-password-workflow { gap: 14px; margin-top: 16px; padding-top: 15px; }
  .bulk-password-generate { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .bulk-password-set { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .bulk-password-set .bulk-set-button { grid-column: 1 / -1; width: 100%; white-space: normal; }
  .users-table-scroll-hint { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); background: #F8FBF9; color: var(--slate); font-size: 11.5px; line-height: 1.4; }
  .users-table { min-width: 1020px; }
}
@media (max-width: 520px) {
  .users-toolbar { gap: 10px; }
  .users-filters { gap: 8px; }
  .users-filters > select, .users-filters > .search input { min-height: 42px; font-size: 13px; }
  .users-actions { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .users-actions > .btn { width: 100%; min-height: 42px; }
  .bulk-password-panel { padding: 16px 14px; }
  .bulk-password-header { flex-direction: column; align-items: stretch; }
  .bulk-selection { align-self: flex-start; min-height: 32px; }
  .bulk-password-intro h2 { font-size: 19px; }
  .bulk-password-intro p { font-size: 13px; }
  .bulk-password-workflow { margin-top: 14px; padding-top: 14px; }
  .bulk-password-set { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bulk-password-set .bulk-set-button { grid-column: auto; }
  .bulk-password-set .password-control > input { min-height: 46px; }
  .bulk-password-set .password-visibility { min-width: 66px; }
  .bulk-password-footnote { margin-top: 14px; padding-top: 12px; }
  .users-table-note { margin-inline: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .users-actions .btn, .bulk-password-panel .btn { transition: none; }
}


/* Password-job progress is promoted to the top of Users and remains visible during long batches. */
.bulk-password-progress {
  position: sticky;
  top: 74px;
  z-index: 19;
  margin: 0 0 14px;
  border-color: #BFDCCB;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 8px 28px rgba(20, 63, 47, .13);
  scroll-margin-top: 80px;
}
.bulk-password-progress[hidden] { display: none !important; }
.bulk-password-progress:focus { outline: 3px solid rgba(20, 92, 70, .22); outline-offset: 2px; }
.bulk-password-progress .processing-track { margin-top: 14px; }
@media (max-width: 760px) {
  .bulk-password-progress { top: 72px; margin-bottom: 12px; padding: 15px; }
  .bulk-password-progress .row-between { align-items: flex-start; }
  .bulk-password-progress #bulkPasswordMessage { font-size: 12.5px; line-height: 1.45; }
}

/* =========================================================
 * Kiosk assistance alerts (v1.6) — calm, noticeable, never a ticket
 * ========================================================= */
.assist-zone:empty { display: none; }
.assist-zone { display: flex; flex-direction: column; gap: 8px; padding: 12px clamp(13px, 2.2vw, 30px) 0; max-width: 1480px; width: 100%; }
.assist-bar {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px;
  border-radius: var(--r-lg); border: 1px solid #F1D9A8; background: linear-gradient(90deg, #FFF7E8, #FFFDF8 70%);
  box-shadow: 0 1px 2px rgba(30, 35, 48, .04), 0 6px 18px rgba(184, 110, 0, .08);
  animation: assistIn .35s ease-out both;
}
.assist-bar.is-ack { border-color: #CFE6DC; background: linear-gradient(90deg, var(--accent-tint), #FFFFFF 70%); box-shadow: var(--shadow); }
.assist-orb {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #FCE7C3; color: var(--amber); position: relative;
}
.assist-orb .ico { width: 22px; height: 22px; }
.assist-bar.is-waiting .assist-orb::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(184, 110, 0, .35);
  animation: assistBreath 2.8s ease-in-out infinite;
}
.assist-bar.is-ack .assist-orb { background: var(--green-tint); color: var(--green); }
.assist-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.assist-text strong { font-size: 15px; color: var(--ink); }
.assist-meta { font-size: 13px; color: var(--slate); display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.assist-tag { font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--mute); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; background: #fff; }
.assist-actions { display: flex; gap: 8px; flex: none; }
.assist-actions form { margin: 0; }
@keyframes assistIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes assistBreath { 0%, 100% { transform: scale(.92); opacity: .25; } 50% { transform: scale(1.12); opacity: .9; } }
@media (max-width: 720px) {
  .assist-bar { flex-wrap: wrap; }
  .assist-actions { width: 100%; }
  .assist-actions form, .assist-actions .btn { flex: 1; width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .assist-bar, .d-assist { animation: none; }
  .assist-bar.is-waiting .assist-orb::after, .d-assist.is-waiting .d-assist-orb::after { animation: none; opacity: .6; }
}
@media print { .assist-zone { display: none !important; } }

/* Office TV corner card */
.display-assist { position: fixed; right: 2.4vw; bottom: 9vh; display: flex; flex-direction: column; gap: 1.2vh; z-index: 5; max-width: 34vw; }
.display-assist:empty { display: none; }
.d-assist {
  display: flex; align-items: center; gap: 1.2vw; padding: 1.4vh 1.4vw 1.4vh 1.1vw; border-radius: 1.6vh;
  background: rgba(255, 247, 232, .97); color: #3A2A08; box-shadow: 0 1vh 4vh rgba(0, 0, 0, .35);
  animation: assistIn .4s ease-out both;
}
.d-assist.is-ack { background: rgba(234, 246, 241, .96); color: var(--brand-deep); }
.d-assist-orb { flex: none; width: 5.4vh; height: 5.4vh; border-radius: 50%; display: grid; place-items: center; background: #FCE7C3; color: var(--amber); position: relative; }
.d-assist-orb .ico { width: 3vh; height: 3vh; }
.d-assist.is-ack .d-assist-orb { background: var(--green-tint); color: var(--green); }
.d-assist.is-waiting .d-assist-orb::after { content: ""; position: absolute; inset: -.6vh; border-radius: 50%; border: .3vh solid rgba(184, 110, 0, .4); animation: assistBreath 2.8s ease-in-out infinite; }
.d-assist-text { display: flex; flex-direction: column; line-height: 1.25; }
.d-assist-text strong { font-size: 2.4vh; }
.d-assist-text small { font-size: 1.7vh; opacity: .8; }
@media (max-width: 720px) { .display-assist { left: 12px; right: 12px; max-width: none; bottom: 70px; } .d-assist-text strong { font-size: 16px; } .d-assist-text small { font-size: 12px; } }

/* Ringing state (v1.6.1): stronger visual while the ring is sounding, and a hint when the browser blocks sound */
.assist-bar.is-waiting { border-color: #E9B44C; animation: assistIn .35s ease-out both, assistGlow 1.6s ease-in-out infinite; }
@keyframes assistGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 142, 4, .0), 0 6px 18px rgba(184, 110, 0, .10); } 50% { box-shadow: 0 0 0 4px rgba(217, 142, 4, .28), 0 6px 18px rgba(184, 110, 0, .16); } }
.assist-sound-locked .assist-bar.is-waiting .assist-text::after,
.assist-sound-locked .d-assist.is-waiting .d-assist-text::after {
  content: "🔔 Click anywhere on this page to turn on the ring"; display: block; margin-top: 4px;
  font-size: 12.5px; font-weight: 700; color: var(--red);
}
.assist-sound-locked .d-assist.is-waiting .d-assist-text::after { font-size: 1.6vh; }
@media (prefers-reduced-motion: reduce) { .assist-bar.is-waiting { animation: none; } }
