/* Sapyne app design tokens + logo — keep in sync with docs/logo.html / brand-logo-spec */
:root {
  --ink: #0f172a;
  --ink-soft: #64748b;
  --paper: #f4f7fb;
  --surf: #ffffff;
  --blue: #4f8eff;
  --violet: #9b6bff;
  --line: rgba(15, 23, 42, 0.1);
  --danger: #e11d48;
  --ok: #0d9488;
  --sans: "Anuphan", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  background:
    radial-gradient(ellipse 70% 45% at 8% 0%, rgba(79, 142, 255, 0.14), transparent 50%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(155, 107, 255, 0.12), transparent 45%),
    var(--paper);
  min-height: 100svh;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.s-logo {
  --ht: 38px;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--ht) * 0.292);
  user-select: none;
}
.s-mark {
  --at: calc(var(--ht) * 0.562);
  --ab: calc(var(--ht) * 0.674);
  --sw: max(1.5px, calc(var(--ht) * 0.056));
  position: relative;
  width: var(--ab); /* must match docs/logo.html — bottom-arc diameter */
  height: var(--ht);
  flex-shrink: 0;
}
.s-mark .arc {
  position: absolute;
  border-radius: 50%;
  border: var(--sw) solid transparent;
}
.s-mark .arc-t {
  width: var(--at); height: var(--at);
  top: 0; left: 0;
  border-top-color: var(--blue);
  border-right-color: var(--blue);
  filter: drop-shadow(0 0 calc(var(--ht) * 0.146) rgba(79, 142, 255, 0.45));
}
.s-mark .arc-b {
  width: var(--ab); height: var(--ab);
  bottom: 0; right: 0;
  border-bottom-color: var(--violet);
  border-left-color: var(--violet);
  filter: drop-shadow(0 0 calc(var(--ht) * 0.146) rgba(155, 107, 255, 0.45));
}
.s-word {
  font-family: var(--sans);
  font-weight: 600;
  font-size: calc(var(--ht) * 0.562);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}

/* ── Service marks (family: two border-arcs) ── */
.h-mark {
  --ht: 18px;
  --at: calc(var(--ht) * 0.729);
  --ab: calc(var(--ht) * 0.729);
  --sw: max(1.5px, calc(var(--ht) * 0.056));
  position: relative;
  width: calc(var(--at) * 1.416);
  height: var(--ht);
  flex-shrink: 0;
  display: inline-block;
}
.h-mark .h-arc {
  position: absolute;
  border-radius: 50%;
  border: var(--sw) solid transparent;
  top: 50%;
  margin-top: calc(var(--at) * -0.5);
}
.h-mark .h-arc-a {
  width: var(--at); height: var(--at);
  left: 0;
  border-top-color: #2dd4bf;
  border-right-color: #2dd4bf;
  filter: drop-shadow(0 0 calc(var(--ht) * 0.180) rgba(45, 212, 191, 0.45));
}
.h-mark .h-arc-b {
  width: var(--ab); height: var(--ab);
  right: 0;
  margin-top: calc(var(--ab) * -0.5);
  border-bottom-color: #38bdf8;
  border-left-color: #38bdf8;
  filter: drop-shadow(0 0 calc(var(--ht) * 0.180) rgba(56, 189, 248, 0.45));
}

/* Workflows: upright ∩ / ∪ — full circle cut evenly at the diameter (exact 180°).
   Cap = top half (border-bottom removed); cup = bottom half (border-top removed).
   Staggered: cap top-right, cup bottom-left. */
.wf-mark {
  --ht: 18px;
  --r: calc(var(--ht) * 0.72);
  --sw: max(1.5px, calc(var(--ht) * 0.066));
  position: relative;
  width: calc(var(--r) * 1.55);
  height: var(--ht);
  flex-shrink: 0;
  display: inline-block;
}
.wf-mark .wf-arc {
  position: absolute;
  width: var(--r);
  height: calc(var(--r) / 2);
  box-sizing: border-box;
}
.wf-mark .wf-arc-cap {
  /* ∩ — upper semicircle, ends cut evenly on the horizontal diameter */
  top: 0;
  right: 0;
  border: var(--sw) solid var(--blue);
  border-bottom: none;
  border-radius: var(--r) var(--r) 0 0;
  filter: drop-shadow(0 0 calc(var(--ht) * 0.2) rgba(79, 142, 255, 0.5));
}
.wf-mark .wf-arc-cup {
  /* ∪ — lower semicircle, ends cut evenly on the horizontal diameter */
  bottom: 0;
  left: 0;
  border: var(--sw) solid var(--violet);
  border-top: none;
  border-radius: 0 0 var(--r) var(--r);
  filter: drop-shadow(0 0 calc(var(--ht) * 0.2) rgba(155, 107, 255, 0.5));
}

/* Shelfy: U-shelf + two inset items (φ) */
.sh-mark {
  --ht: 18px;
  --sw: max(1.5px, calc(var(--ht) * 0.056));
  --inset: calc(var(--ht) * 0.090);
  --shelf-y: calc(var(--ht) * 0.708);
  --item-a: calc(var(--ht) * 0.382);
  --item-b: calc(var(--ht) * 0.528);
  --riser-h: calc(var(--ht) * 0.382);
  position: relative;
  width: var(--ht);
  height: var(--ht);
  flex-shrink: 0;
  display: inline-block;
}
.sh-mark .sh-base {
  position: absolute;
  left: var(--inset);
  right: var(--inset);
  height: var(--sw);
  top: calc(var(--shelf-y) - var(--sw) / 2);
  background: var(--violet);
  filter: drop-shadow(0 0 calc(var(--ht) * 0.202) rgba(155, 107, 255, 0.5));
}
.sh-mark .sh-riser {
  position: absolute;
  width: var(--sw);
  height: var(--riser-h);
  top: calc(var(--shelf-y) - var(--riser-h) + var(--sw) / 2);
  background: var(--violet);
  filter: drop-shadow(0 0 calc(var(--ht) * 0.202) rgba(155, 107, 255, 0.5));
}
.sh-mark .sh-riser-l { left: var(--inset); }
.sh-mark .sh-riser-r { right: var(--inset); }
.sh-mark .sh-item {
  position: absolute;
  height: var(--sw);
  width: calc((var(--ht) - 2 * var(--inset) - 2 * var(--sw)) * 0.618);
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  filter: drop-shadow(0 0 calc(var(--ht) * 0.202) rgba(79, 142, 255, 0.5));
}
.sh-mark .sh-item-upper { top: calc(var(--item-a) - var(--sw) / 2); }
.sh-mark .sh-item-lower { top: calc(var(--item-b) - var(--sw) / 2); }

/* PromptPay: rounded payment frame corners */
.pp-mark {
  --ht: 18px;
  --r: calc(var(--ht) * 0.62);
  --sw: max(1.5px, calc(var(--ht) * 0.066));
  position: relative;
  width: var(--ht);
  height: var(--ht);
  flex-shrink: 0;
  display: inline-block;
}
.pp-mark .pp-arc {
  position: absolute;
  width: var(--r);
  height: var(--r);
  border-radius: 50%;
  border: var(--sw) solid transparent;
}
.pp-mark .pp-arc-a {
  top: 0; left: 0;
  border-top-color: #38bdf8;
  border-left-color: #38bdf8;
  filter: drop-shadow(0 0 calc(var(--ht) * 0.18) rgba(56, 189, 248, 0.45));
}
.pp-mark .pp-arc-b {
  right: 0; bottom: 0;
  border-bottom-color: #818cf8;
  border-right-color: #818cf8;
  filter: drop-shadow(0 0 calc(var(--ht) * 0.18) rgba(129, 140, 248, 0.45));
}

/* Slip verify: check-flow arcs */
.sl-mark {
  --ht: 18px;
  --r: calc(var(--ht) * 0.62);
  --sw: max(1.5px, calc(var(--ht) * 0.066));
  position: relative;
  width: calc(var(--ht) * 0.95);
  height: var(--ht);
  flex-shrink: 0;
  display: inline-block;
}
.sl-mark .sl-arc {
  position: absolute;
  width: var(--r);
  height: var(--r);
  border-radius: 50%;
  border: var(--sw) solid transparent;
}
.sl-mark .sl-arc-a {
  top: 0; left: 0;
  border-top-color: #34d399;
  border-right-color: #34d399;
  filter: drop-shadow(0 0 calc(var(--ht) * 0.18) rgba(52, 211, 153, 0.45));
}
.sl-mark .sl-arc-b {
  right: 0; bottom: 0;
  border-bottom-color: #2dd4bf;
  border-left-color: #2dd4bf;
  filter: drop-shadow(0 0 calc(var(--ht) * 0.18) rgba(45, 212, 191, 0.45));
}

/* Short links: chain / portal-lite */
.lk-mark {
  --ht: 18px;
  --r: calc(var(--ht) * 0.7);
  --sw: max(1.5px, calc(var(--ht) * 0.066));
  position: relative;
  width: calc(var(--ht) * 1.15);
  height: var(--ht);
  flex-shrink: 0;
  display: inline-block;
}
.lk-mark .lk-arc {
  position: absolute;
  width: var(--r);
  height: var(--r);
  border-radius: 50%;
  border: var(--sw) solid transparent;
  top: 50%;
  margin-top: calc(var(--r) * -0.5);
}
.lk-mark .lk-arc-a {
  left: 0;
  border-top-color: #a78bfa;
  border-right-color: #a78bfa;
  filter: drop-shadow(0 0 calc(var(--ht) * 0.18) rgba(167, 139, 250, 0.45));
}
.lk-mark .lk-arc-b {
  right: 0;
  border-bottom-color: #60a5fa;
  border-left-color: #60a5fa;
  filter: drop-shadow(0 0 calc(var(--ht) * 0.18) rgba(96, 165, 250, 0.45));
}

.nav-mark.s-mark { --ht: 18px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.2;
  padding: 8px 13px;
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--ink);
  color: #fff;
  letter-spacing: -0.01em;
  transition: filter 0.15s ease;
}
.btn:hover { filter: brightness(1.05); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-soft {
  background: rgba(79, 142, 255, 0.12);
  color: #1e3a8a;
  border-color: transparent;
}
.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 35%, var(--line));
}
.btn-danger:hover {
  background: color-mix(in srgb, var(--danger) 10%, transparent);
}

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 0.88rem; font-weight: 500; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--surf);
  color: var(--ink);
  font-size: 0.875rem;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid rgba(79, 142, 255, 0.35);
  border-color: var(--blue);
}
.field textarea { min-height: 140px; resize: vertical; }

.card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}
.setup-card-compact {
  margin-bottom: 16px;
  padding: 14px 16px;
}
.setup-compact-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.setup-card-compact h2 {
  margin: 0;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}
.setup-card-compact #setup-summary {
  margin: 2px 0 0;
  font-size: 0.82rem;
}
.setup-compact-percent {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
}
.setup-bar-compact {
  height: 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
  margin-bottom: 10px;
}
.setup-bar-compact > div {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  transition: width 0.3s ease;
}
.setup-checklist-compact {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.setup-check-compact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  text-decoration: none;
}
.setup-check-compact.done {
  color: var(--ok);
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.08);
}
.setup-check-compact.todo {
  color: var(--ink);
  border-color: rgba(79, 142, 255, 0.25);
  background: rgba(79, 142, 255, 0.06);
  cursor: pointer;
}
.setup-check-compact.todo:hover {
  background: rgba(79, 142, 255, 0.12);
}
.setup-check-compact .mark {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1;
}

.muted { color: var(--ink-soft); }
.mono { font-family: var(--mono); }
.error { color: var(--danger); font-size: 0.9rem; margin-top: 8px; }
.ok { color: var(--ok); font-size: 0.9rem; margin-top: 8px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.s-loading {
  min-height: 56vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 24px 16px;
}
.s-loading-mark {
  --ht: 40px;
  position: relative;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
}
.s-loading-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid rgba(15, 23, 42, 0.08);
  border-top-color: var(--blue);
  border-right-color: var(--violet);
  animation: s-spin 0.85s linear infinite;
}
@keyframes s-spin { to { transform: rotate(360deg); } }

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: #fff;
}
.badge-on {
  color: #0f766e;
  border-color: rgba(13, 148, 136, 0.35);
  background: rgba(13, 148, 136, 0.08);
}
.badge-lock {
  color: #64748b;
  background: rgba(100, 116, 139, 0.08);
}
.badge-admin {
  color: #5b21b6;
  border-color: rgba(155, 107, 255, 0.4);
  background: rgba(155, 107, 255, 0.12);
}

/* ── Admin shell (company console) ───────────────── */
:root {
  --sidebar-w: 252px;
  --admin-top-h: 52px;
}

body.is-admin {
  background: #eef2f7;
}
body.is-admin .topbar,
body.is-admin > .shell > .panel:not(#panel-dashboard) {
  display: none !important;
}
body.is-admin > .shell {
  max-width: none;
  margin: 0;
  padding: 0;
}
body.is-admin #panel-dashboard.active {
  display: grid !important;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100svh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 12px;
  background:
    linear-gradient(180deg, rgba(79, 142, 255, 0.08), transparent 28%),
    #0b1220;
  color: #e2e8f0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 30;
}
.admin-sidebar .s-word { color: #f8fafc; }
.admin-sidebar .s-logo { --ht: 38px; margin: 2px 8px 12px; }
.admin-sidebar-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
  padding: 10px 12px 6px;
}
.admin-profile {
  margin: 0 4px 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-profile-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
  margin-bottom: 6px;
}
.admin-profile select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.55);
  color: #f8fafc;
  padding: 7px 8px;
  font-size: 0.84rem;
}
.profile-settings {
  display: grid;
  gap: 2px;
  margin-top: 8px;
}
.profile-settings .account-link {
  color: #cbd5e1;
  font-size: 0.8rem;
  padding: 5px 8px;
}
.admin-setup-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.76rem;
  color: #cbd5e1;
}
.admin-setup-pill strong {
  font-family: var(--mono);
  color: #93c5fd;
}
.admin-nav {
  display: grid;
  gap: 4px;
  padding: 4px;
  flex: 1;
  overflow: auto;
}
.admin-nav button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #cbd5e1;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
}
.admin-nav button:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.admin-nav button.active {
  background: linear-gradient(135deg, rgba(79, 142, 255, 0.28), rgba(155, 107, 255, 0.22));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.25);
}
.admin-nav button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.admin-nav .nav-ico {
  width: 22px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.95;
}
.admin-nav .nav-ico .nav-mark,
.admin-nav .nav-ico .s-mark,
.admin-nav .nav-ico .h-mark,
.admin-nav .nav-ico .wf-mark,
.admin-nav .nav-ico .sh-mark,
.admin-nav .nav-ico .pp-mark,
.admin-nav .nav-ico .sl-mark,
.admin-nav .nav-ico .lk-mark {
  pointer-events: none;
}
.admin-nav .nav-soon {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}
.admin-sidebar-foot {
  margin-top: auto;
  padding: 10px 8px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 8px;
}
.admin-sidebar-foot .user {
  font-size: 0.78rem;
  color: #94a3b8;
  word-break: break-all;
  padding: 0 4px;
}
.admin-account {
  display: grid;
  gap: 8px;
}
.admin-account .admin-sidebar-label {
  margin: 0 4px;
  padding: 0;
}
.account-link {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: #cbd5e1;
  font-size: 0.82rem;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.account-link:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.account-link.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.admin-sidebar-foot .btn {
  width: 100%;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
}
.admin-sidebar-foot .btn:hover { background: rgba(255, 255, 255, 0.06); }

.admin-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  min-height: var(--admin-top-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.admin-topbar h1 {
  font-size: 1.05rem;
  margin: 0;
  letter-spacing: -0.03em;
}
.admin-topbar .sub {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 1px;
}
.admin-content {
  padding: 16px 20px 40px;
  max-width: 1100px;
  width: 100%;
}
body.is-admin .btn {
  padding: 5px 10px;
  font-size: 0.8125rem;
  border-radius: 8px;
  font-weight: 550;
}
.admin-content label {
  display: grid;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.admin-content label input,
.admin-content label select,
.admin-content label textarea {
  font-size: 0.875rem;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surf);
  color: var(--ink);
}
.admin-menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 6px 9px;
  cursor: pointer;
  font-weight: 550;
  font-size: 0.8125rem;
}
.admin-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 25;
}

.svc-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.svc-tile {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.svc-tile:hover {
  border-color: rgba(79, 142, 255, 0.45);
  transform: translateY(-1px);
}
.svc-tile .tile-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.svc-tile .tile-mark-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.svc-tile .tile-mark-row .s-mark,
.svc-tile .tile-mark-row .h-mark,
.svc-tile .tile-mark-row .wf-mark,
.svc-tile .tile-mark-row .sh-mark,
.svc-tile .tile-mark-row .pp-mark,
.svc-tile .tile-mark-row .sl-mark,
.svc-tile .tile-mark-row .lk-mark {
  --ht: 22px;
}
.svc-tile .tile-mark-row .h-mark { --ht: 22px; }
.svc-tile strong { letter-spacing: -0.02em; }
.svc-tile p { font-size: 0.86rem; color: var(--ink-soft); margin: 0; }

@media (max-width: 900px) {
  body.is-admin #panel-dashboard.active {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    width: min(86vw, var(--sidebar-w));
  }
  body.sidebar-open .admin-sidebar { transform: translateX(0); }
  body.sidebar-open .admin-backdrop { display: block; }
  .admin-menu-btn { display: inline-flex; }
  .admin-content { padding: 16px 16px 40px; }
}
