:root {
  color-scheme: light;
  --bg: #f2f4ef;
  --card: #fff;
  --field-bg: #fff;
  --text: #11150f;
  --muted: #5b6357;
  --dim: #5b6357;
  --card-border: #e3e7de;
  --hairline: #edf0e8;
  --accent: #c6f24e;
  --accent-text: #14200a;
  --accent-bright: #4f7a12;
  --soft-bg: #eef7d6;
  --soft-text: #2f5a0c;
  --online: #2f5a0c;
  --online-dot: #9cc531;
  --pill-muted: #5b6357;
  --danger: #8e2418;
  --warn-bg: #fdebdd;
  --warn-text: #8a3a0b;
  --ink: #12170f;
  --surface-2: #f5f7f1;
  --shadow: none;
  --icon-bg: #f0f2ec;
  --icon-fg: #11150f;
  --rp-font-body: "Geist", "Helvetica Neue", system-ui, sans-serif;
  --rp-font-mono: "Geist Mono", ui-monospace, monospace;
  --rp-radius-md: 10px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1012;
  --card: #17191c;
  --field-bg: #17191c;
  --text: #eef0f2;
  --muted: #9aa1a9;
  --dim: #9aa1a9;
  --card-border: #2a2e33;
  --hairline: #2a2e33;
  --accent-bright: #c6f24e;
  --soft-bg: #1d2a10;
  --soft-text: #c6f24e;
  --online: #c6f24e;
  --danger: #f28b82;
  --warn-bg: #33210f;
  --warn-text: #f5a962;
  --surface-2: #1f2225;
  --icon-bg: #1f2225;
  --icon-fg: #eef0f2;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f1012;
    --card: #17191c;
    --field-bg: #17191c;
    --text: #eef0f2;
    --muted: #9aa1a9;
    --dim: #9aa1a9;
    --card-border: #2a2e33;
    --hairline: #2a2e33;
    --accent-bright: #c6f24e;
    --soft-bg: #1d2a10;
    --soft-text: #c6f24e;
    --online: #c6f24e;
    --danger: #f28b82;
    --warn-bg: #33210f;
    --warn-text: #f5a962;
    --surface-2: #1f2225;
    --icon-bg: #1f2225;
    --icon-fg: #eef0f2;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 var(--rp-font-body);
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}
h1,
h2,
h3,
.disp {
  font-family: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  letter-spacing: -0.02em;
}
h1 {
  font-size: 34px;
  line-height: 1.05;
  margin: 0;
  font-weight: 800;
}
h2 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
  font-weight: 700;
}
h3 {
  font-size: 18px;
  margin: 0;
  font-weight: 700;
}
p {
  margin: 0;
}
svg {
  flex: none;
  vertical-align: middle;
}
.mono {
  font-family: var(--rp-font-mono);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.muted,
.dim {
  color: var(--muted);
}
.small {
  font-size: 12.5px;
}
.cap,
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow {
  color: var(--accent-bright);
}
.hidden {
  display: none !important;
}
:focus-visible {
  outline: 2px solid #9cc531;
  outline-offset: 3px;
}
.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 90;
  background: var(--accent);
  color: #14200a;
  padding: 12px;
  border-radius: 12px;
}
.skip:focus {
  top: 12px;
}
#loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spin {
  width: 32px;
  height: 32px;
  border: 3px solid var(--card-border);
  border-top-color: #9cc531;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#landing {
  display: none;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  max-width: 430px;
  width: 100%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.login-card h1 {
  font-size: 32px;
}
.login-card form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.login-card label {
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}
.login-card .btn {
  width: 100%;
}
.login-card .cap {
  margin-top: 6px;
}
#app {
  display: none;
  padding: 24px;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
}
.portal-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--card-border);
  margin-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-decoration: none;
}
.brand-image {
  width: 118px;
  height: auto;
  display: block;
}
.brand-divider {
  height: 26px;
  width: 1px;
  background: var(--card-border);
}
.brand-copy {
  display: flex;
  flex-direction: column;
  font-size: 13px;
}
.brand-copy .mono {
  font-size: 11.5px;
  color: var(--muted);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}
.identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
  min-width: 0;
}
.identity > span:last-child {
  display: flex;
  flex-direction: column;
  max-width: 240px;
  overflow-wrap: anywhere;
}
.identity b {
  font-size: 13px;
}
.identity .small {
  font-size: 11.5px;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-text);
  font:
    800 16px "Bricolage Grotesque",
    sans-serif;
}
.portal-layout {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.portal-nav {
  flex: 0 0 210px;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--card-border);
}
.nv {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  width: 100%;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.nv:hover {
  background: var(--surface-2);
}
.nv.on {
  background: var(--ink);
  color: white;
}
.nv .badge {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f07a2b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-promo {
  margin-top: 8px;
  padding: 14px;
  border-radius: 16px;
  background: #12170f;
  color: #b5bfad;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.45;
}
.nav-promo .mono {
  font-size: 11.5px;
  color: #c6f24e;
}
.nav-label {
  padding: 12px 12px 4px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  outline: none;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.page-heading > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.page-heading p {
  color: var(--muted);
}
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 20px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stack.compact {
  gap: 10px;
}
.flex {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.grow {
  flex: 1;
  min-width: 0;
}
.stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.stat {
  flex: 1 1 170px;
  min-width: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stat:first-child {
  flex: 1.3 1 220px;
}
.stat .value {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat .value.sm {
  font-size: 26px;
}
.stat .btn {
  align-self: flex-start;
  margin-top: auto;
}
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #9cc531;
  border-radius: 50%;
  flex: none;
}
.dot.off {
  background: #d95357;
}
.pill .dot {
  width: 7px;
  height: 7px;
}
.bar {
  height: 10px;
  border-radius: 999px;
  background: var(--hairline);
  overflow: hidden;
}
.bar > span {
  display: block;
  height: 100%;
  background: #9cc531;
  border-radius: inherit;
}
.notice {
  padding: 12px 16px;
  border-radius: 18px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
.notice.warning {
  background: var(--warn-bg);
  color: var(--warn-text);
}
.notice.purple {
  background: #f0e6ff;
  color: #5b2a99;
}
.notice.info {
  background: #e6edff;
  color: #23409e;
}
.notice.ok {
  background: var(--soft-bg);
  color: var(--soft-text);
}
.notice .grow {
  flex: 1 1 240px;
}
.ink-panel {
  background: #12170f;
  color: #e9eee3;
  border-color: #12170f;
}
.ink-panel .muted {
  color: #b5bfad;
}
.ink-panel .cap {
  color: #c6f24e;
}
.ink-panel .btn {
  color: #11150f;
  background: #fff;
}
.ink-panel .btn.lime {
  background: #c6f24e;
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.iconbox,
.ico,
.ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--icon-bg);
  color: var(--icon-fg);
  flex: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
  width: auto;
  line-height: 1.35;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -16px rgba(17, 21, 15, 0.5);
}
.btn:active {
  transform: scale(0.98);
}
.btn.lime {
  background: #c6f24e;
  border-color: #c6f24e;
  color: #14200a;
  font-weight: 600;
}
.btn.ink {
  background: #12170f;
  border-color: #12170f;
  color: #fff;
}
.btn.sm,
.btn-sm {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 13px;
}
.btn.danger {
  border-color: #f2b8b0;
  color: var(--danger);
}
.iconbtn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  color: var(--text);
  padding: 0;
  flex: none;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  line-height: 1.45;
  font-weight: 600;
  white-space: nowrap;
}
.ok {
  background: var(--soft-bg);
  color: var(--soft-text);
}
.ne {
  background: var(--surface-2);
  color: var(--muted);
}
.wa {
  background: var(--warn-bg);
  color: var(--warn-text);
}
.er {
  background: #fbe1de;
  color: #8e2418;
}
.in {
  background: #e6edff;
  color: #23409e;
}
.pu {
  background: #f0e6ff;
  color: #5b2a99;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card);
  font-size: 13px;
  font-weight: 500;
}
.chip.on {
  background: #12170f;
  border-color: #12170f;
  color: #fff;
}
.field,
.fld {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--field-bg);
  color: var(--text);
  width: 100%;
}
textarea {
  resize: vertical;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.form-grid .full {
  grid-column: 1/-1;
}
label.field-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
}
.check input {
  margin-top: 4px;
  accent-color: #7b9f22;
  width: 16px;
  height: 16px;
  flex: none;
}
.err {
  color: var(--danger);
  font-size: 13px;
  min-height: 18px;
}
.form-error:empty {
  display: none;
}
.form-error {
  padding: 12px;
  border-radius: 12px;
  background: #fbe1de;
  color: #8e2418;
  font-size: 13px;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.4fr);
  gap: 16px;
  align-items: start;
}
.ticket {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: var(--card);
  text-align: left;
}
.ticket.on {
  background: var(--soft-bg);
  border-color: #9cc531;
}
.list {
  display: flex;
  flex-direction: column;
}
.list-row,
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  flex-wrap: wrap;
}
.list-row:last-child,
.row:last-child {
  border-bottom: 0;
}
.list-row > div.grow {
  flex: 1 1 180px;
}
.list-row b {
  display: block;
}
.list-row .actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 40px 24px;
}
.empty p {
  max-width: 450px;
  color: var(--muted);
  font-size: 13.5px;
}
.record-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13.5px;
  line-height: 1.6;
}
.messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 520px;
  overflow: auto;
  padding: 4px;
}
.message {
  padding: 12px 14px;
  border-radius: 16px;
  max-width: 90%;
  align-self: flex-start;
  background: var(--surface-2);
  font-size: 13.5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message.customer {
  align-self: flex-end;
  background: var(--soft-bg);
}
.message small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 5px;
}
.timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.timeline span {
  font-size: 12.5px;
}
.timeline i {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: var(--card-border);
  margin-bottom: 6px;
}
.timeline .done i {
  background: #12170f;
}
.timeline .current i {
  background: #9cc531;
}
.details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}
.details dt {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 3px;
}
.details dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
}
.price {
  font:
    800 26px "Bricolage Grotesque",
    sans-serif;
  letter-spacing: -0.02em;
}
.doc-list {
  border-top: 1px solid var(--hairline);
  margin-top: 12px;
}
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 4px 4px;
  border-top: 1px solid var(--card-border);
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}
.footer span {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer a {
  text-decoration: none;
}
.toast {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 100;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 16px;
  background: #12170f;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 24px 50px -24px rgba(17, 21, 15, 0.7);
}
dialog {
  border: 1px solid var(--card-border);
  border-radius: 22px;
  background: var(--card);
  color: var(--text);
  padding: 24px;
  width: calc(100% - 32px);
  max-width: 680px;
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #11150f66;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.dialog-head h2 {
  font-size: 24px;
}
.dialog-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.preview-banner {
  padding: 8px 16px;
  background: #12170f;
  color: #c6f24e;
  font-size: 12px;
  text-align: center;
}
.search {
  max-width: 320px;
}
.big {
  font-size: 25px;
  font-weight: 700;
}
.grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.grid.two {
  grid-template-columns: 1fr 1fr;
}
.feat {
  display: flex;
  gap: 12px;
  align-items: center;
}
.feat .fi {
  color: var(--soft-text);
}
.hero-h {
  font-size: 24px;
  margin: 10px 0;
}
.themeseg {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.themeseg button {
  border: 1px solid var(--card-border);
  background: var(--card);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
}
.themeseg .on {
  background: #12170f;
  color: #c6f24e;
}
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.scrim.show {
  position: fixed;
  inset: 0;
  background: #11150f66;
}
.linkbutton {
  border: 0;
  background: transparent;
  padding: 0;
  text-decoration: underline;
  color: var(--accent-bright);
}
.qr-payment {
  align-self: flex-start;
  background: white;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
}
@media (max-width: 1050px) {
  .portal-header {
    align-items: flex-start;
  }
  .identity > span:last-child {
    max-width: 180px;
  }
  .portal-nav {
    flex-basis: 195px;
  }
  .header-actions {
    gap: 8px;
  }
  .brand-copy {
    font-size: 12px;
  }
}
@media (max-width: 760px) {
  #app {
    padding: 12px;
  }
  .portal-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 44px 44px;
    align-items: center;
    padding: 10px;
    gap: 8px 6px;
    border-radius: 18px;
    margin-bottom: 12px;
  }
  .portal-header .brand {
    grid-area: 1 / 1 / 2 / 3;
    gap: 6px;
  }
  .portal-header .brand-copy {
    min-width: 0;
    font-size: 11.5px;
    white-space: nowrap;
  }
  .portal-header .brand-copy b {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-image {
    width: clamp(72px, 22vw, 92px);
    flex: none;
  }
  .portal-header .brand-divider {
    display: none;
  }
  .brand-copy .mono {
    display: none;
  }
  .header-actions {
    display: contents;
  }
  #hub-status {
    grid-area: 2 / 1 / 3 / 2;
    justify-self: start;
    padding: 3px 8px;
    font-size: 11px;
  }
  #theme-toggle {
    grid-area: 1 / 3 / 2 / 4;
  }
  .header-actions [data-action="logout"] {
    grid-area: 1 / 4 / 2 / 5;
  }
  .identity {
    grid-area: 2 / 2 / 3 / 5;
    justify-content: flex-end;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 6px;
  }
  .identity > span:last-child {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    flex: 0 1 auto;
  }
  .identity .avatar {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    font-size: 13px;
  }
  .identity .small {
    display: none;
  }
  .identity b {
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .header-actions .iconbtn {
    width: 44px;
    height: 44px;
  }
  .portal-layout {
    flex-direction: column;
    gap: 16px;
  }
  .portal-nav {
    flex: none;
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    border-radius: 16px;
    padding: 6px;
    scrollbar-width: thin;
    gap: 4px;
  }
  .nv {
    width: auto;
    flex: none;
    min-height: 42px;
    font-size: 13px;
    padding: 0 12px;
  }
  .nv .badge {
    margin-left: 0;
  }
  .nav-promo,
  .nav-label {
    display: none;
  }
  main {
    width: 100%;
  }
  h1 {
    font-size: 30px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .card {
    padding: 18px;
    border-radius: 20px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    flex: 1 1 155px;
  }
  .stat:first-child {
    flex: 1 1 100%;
  }
  .two-col,
  .service-grid,
  .grid.two {
    grid-template-columns: 1fr;
  }
  .timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 8px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .footer {
    padding-top: 18px;
    font-size: 12px;
  }
  .brand-divider {
    height: 24px;
  }
  .notice {
    padding: 12px;
  }
  .message {
    max-width: 95%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

:root {
  --error-bg: #fbe1de;
  --error-text: #8e2418;
  --info-bg: #e6edff;
  --info-text: #23409e;
  --purple-bg: #f0e6ff;
  --purple-text: #5b2a99;
}
:root[data-theme="dark"] {
  --error-bg: #351717;
  --error-text: #f28b82;
  --info-bg: #162238;
  --info-text: #9db8ff;
  --purple-bg: #271b3a;
  --purple-text: #c9a8ff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --error-bg: #351717;
    --error-text: #f28b82;
    --info-bg: #162238;
    --info-text: #9db8ff;
    --purple-bg: #271b3a;
    --purple-text: #c9a8ff;
  }
}
.er,
.form-error {
  background: var(--error-bg);
  color: var(--error-text);
}
.in,
.notice.info {
  background: var(--info-bg);
  color: var(--info-text);
}
.pu,
.notice.purple {
  background: var(--purple-bg);
  color: var(--purple-text);
}
.stat .notice {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.4;
}
.backup-usage {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}
.backup-usage .muted {
  white-space: nowrap;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 760px) {
  .grid.three {
    grid-template-columns: 1fr;
  }
}
.page-heading h1 {
  font-size: 32px;
}
.page-heading:has(.eyebrow) h1 {
  font-size: 34px;
}
.support-channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.channel {
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.45;
}
.channel .btn {
  align-self: flex-start;
  margin-top: auto;
}
.stats.equal .stat,
.stats.equal .stat:first-child {
  flex: 1 1 160px;
  gap: 4px;
  padding: 16px;
}
.stats.equal .value {
  font-size: 24px;
}
.timeline .done i {
  background: var(--text);
}
@media (max-width: 760px) {
  .support-channels {
    grid-template-columns: 1fr;
  }
  .page-heading h1,
  .page-heading:has(.eyebrow) h1 {
    font-size: 30px;
  }
}
.ticket-progress {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.ticket-progress li {
  position: relative;
  min-height: 36px;
  padding: 4px 0 8px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-left: 2px solid var(--card-border);
  margin-left: 10px;
  font-size: 13px;
}
.ticket-progress li::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 6px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--card-border);
  background: var(--card);
  border-radius: 50%;
}
.ticket-progress li.done::before {
  background: var(--text);
  border-color: var(--text);
}
.ticket-progress li.current::before {
  background: #c6f24e;
  border-color: #12170f;
}
.ticket-progress li:last-child {
  border-left-color: transparent;
}
.calendar-date {
  width: 64px;
  height: 60px;
  flex: none;
  border-radius: 16px;
  background: #12170f;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.calendar-date b {
  font:
    800 24px "Bricolage Grotesque",
    sans-serif;
  color: #c6f24e;
  line-height: 1.1;
}
.appointment-title {
  flex: 1 1 260px;
  min-width: 0;
}
.appointment-title h2 {
  font: 600 16px/1.35 var(--rp-font-body);
}
.job-card {
  gap: 14px;
}
.job-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.job-meta strong {
  font-size: 20px;
  font-weight: 800;
}
.job-stages .list-row {
  min-height: 42px;
  padding: 9px 0;
}
.job-card .timeline {
  margin-top: 0;
}

/* Satisfaction survey: native radio groups, readable anchors and touch targets. */
.survey-form { gap: 32px; margin-top: 12px; }
.survey-question { border: 0; padding: 0; margin: 0; min-width: 0; }
.survey-question legend { font-weight: 600; padding: 0; margin-bottom: 14px; line-height: 1.5; }
.survey-required { display: block; font-weight: 400; }
.survey-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 420px; }
.survey-scale-wide { grid-template-columns: repeat(11, minmax(0, 1fr)); max-width: 760px; }
.survey-option { position: relative; display: grid; place-items: center; min-height: 48px; border: 1px solid var(--card-border); border-radius: 12px; font-weight: 600; cursor: pointer; }
.survey-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.survey-option:has(input:checked) { color: #152016; background: #c7f34c; border-color: #91b521; }
.survey-option:focus-within { outline: 2px solid currentColor; outline-offset: 3px; }
.survey-anchors { display: flex; justify-content: space-between; gap: 16px; margin: 10px 0 14px; max-width: 420px; }
.survey-scale-wide + .survey-anchors { max-width: 760px; }
.survey-anchors span { max-width: 48%; }
.survey-anchors span:last-child { text-align: right; }
.survey-response { border-top: 1px solid var(--card-border); padding-top: 16px; }
.survey-response summary { cursor: pointer; line-height: 1.6; }
.survey-response-content { margin-top: 18px; }
@media (max-width: 600px) { .survey-scale-wide { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.public-survey { width: min(100%, 800px); margin: 0 auto; padding: 28px 20px 48px; }
.public-survey-brand { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 8px 4px 28px; }
.public-survey-brand img { object-fit: contain; object-position: left; }
.public-survey h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.15; margin: 0; }
.public-survey .notice { margin: 0; }
.public-survey-footer { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 28px 0 0; text-align: center; }
@media (max-width: 430px) { .public-survey { padding: 16px 12px 32px; } .public-survey-brand { gap: 12px; padding-bottom: 20px; } .public-survey-brand img { width: 120px; } .public-survey-brand span { max-width: 110px; text-align: right; } }

.public-survey-logo { flex: 0 0 auto; }
.public-survey-logo .public-logo-dark { display: none; }
:root[data-theme="dark"] .public-survey-logo .public-logo-light { display: none; }
:root[data-theme="dark"] .public-survey-logo .public-logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .public-survey-logo .public-logo-light { display: none; }
  :root:not([data-theme="light"]) .public-survey-logo .public-logo-dark { display: block; }
}
