/* Color tokens: light values on :root; dark values follow the OS unless the
   viewer picked a mode (theme-mode.js sets data-theme on <html>). The sidebar,
   hero, notices and QR surfaces keep fixed brand colors in both modes. */
@font-face {
  font-family: "Syne";
  src: url("fonts/Syne.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/HankenGrotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --accent: #574b85;
  --accent-soft: #ece8f6;
  --btn-bg: #08080c;
  --btn-ink: #f3f1f8;
  --ink: #08080c;
  --muted: #736e86;
  --purple: #574b85;
  --lavender: #ece8f6;
  --on-lavender: #08080c;
  --paper: #f3f1f8;
  --line: #e2deed;
  --line-strong: #cfc9e0;
  --surface: #fff;
  --white: var(--surface);
  --surface-raised: #f8f7fb;
  --surface-sunken: #ebe8f2;
  --field: #fff;
  --tint: #ece8f6;
  --tint-strong: #e4def3;
  --accent-ink: #574b85;
  --link: #574b85;
  --focus: #8878b8;
  --night: #08080c;
  --checker: #e2deed;
  --switch-off: #cfc9e0;
  --danger: #ad2318;
  --danger-soft: #fce6e3;
  --danger-solid: #ad2318;
  --warn: #7f5200;
  --warn-soft: #fbefd6;
  --success: #1d6f47;
  --success-soft: #e2f2e9;
  --info: #304f9c;
  --info-soft: #e5ebfa;
  --chart-bar: #8878b8;
  --card-gap: 24px;
  --section-gap: 28px;
  --display: "Syne", "Hanken Grotesk", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --accent: #b2a3e0;
    --accent-soft: #1c1929;
    --btn-bg: #b2a3e0;
    --btn-ink: #08080c;
    --ink: #f3f1f8;
    --muted: #8c869e;
    --paper: #08080c;
    --line: #221f2e;
    --line-strong: #332f44;
    --surface: #0d0c14;
    --surface-raised: #14121d;
    --surface-sunken: #060609;
    --field: #14121d;
    --tint: #1c1929;
    --tint-strong: #241f36;
    --accent-ink: #b2a3e0;
    --link: #b2a3e0;
    --focus: #b2a3e0;
    --night: #060609;
    --checker: #221f2e;
    --switch-off: #332f44;
    --danger: #ff8f84;
    --danger-soft: #32130f;
    --warn: #f2c46a;
    --warn-soft: #2c220c;
    --success: #6fd6a1;
    --success-soft: #0f2a1d;
    --info: #a3b8ff;
    --info-soft: #141b33;
    --chart-bar: #b2a3e0;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --accent: #b2a3e0;
  --accent-soft: #1c1929;
  --btn-bg: #b2a3e0;
  --btn-ink: #08080c;
  --ink: #f3f1f8;
  --muted: #8c869e;
  --paper: #08080c;
  --line: #221f2e;
  --line-strong: #332f44;
  --surface: #0d0c14;
  --surface-raised: #14121d;
  --surface-sunken: #060609;
  --field: #14121d;
  --tint: #1c1929;
  --tint-strong: #241f36;
  --accent-ink: #b2a3e0;
  --link: #b2a3e0;
  --focus: #b2a3e0;
  --night: #060609;
  --checker: #221f2e;
  --switch-off: #332f44;
  --danger: #ff8f84;
  --danger-soft: #32130f;
  --warn: #f2c46a;
  --warn-soft: #2c220c;
  --success: #6fd6a1;
  --success-soft: #0f2a1d;
  --info: #a3b8ff;
  --info-soft: #141b33;
  --chart-bar: #b2a3e0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
}
button:hover,
.button:hover {
  filter: brightness(0.95);
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.danger {
  background: var(--danger-soft);
  color: var(--danger);
}
a {
  color: var(--link);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-family: var(--display);
  font-size: clamp(26px, 2.5vw, 34px);
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 12px;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 17px;
}
p {
  line-height: 1.65;
}
.muted,
small {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 16px;
}
/* Dashboard redesign phase 1 (2026-10-16): shell from dashboard-shell.js.
   Desktop > 1024px: full sidebar; tablet 600-1024px: 72px icon rail that
   opens as an overlay; phone < 600px: drawer plus a bottom bar. */
.shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px 12px 20px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  scrollbar-width: thin;
}
.brand {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  color: var(--ink);
  text-decoration: none;
}
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.lockup-mark {
  width: 34px;
  height: 34px;
  flex: none;
  color: var(--ink);
}
.mark-dot {
  fill: var(--accent);
}
.lockup-word b {
  display: block;
  font: 800 12.5px/1 var(--display);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lockup-word b span {
  color: var(--accent);
}
.lockup-word small {
  display: block;
  margin-top: 5px;
  font: 500 9.5px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.lockup.collapsed .lockup-word {
  display: none;
}
.shell-icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav {
  display: grid;
  gap: 2px;
}
.nav-link,
.nav-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}
.nav-link:hover,
.nav-group:hover {
  background: var(--surface-raised);
  color: var(--ink);
  filter: none;
}
.nav-group.active {
  color: var(--ink);
}
.nav-link[aria-current="page"] {
  background: var(--tint);
  color: var(--accent-ink);
}
.nav-label {
  flex: 1;
  min-width: 0;
}
.nav-chevron {
  display: inline-grid;
  transition: transform 0.18s;
}
.nav-chevron .shell-icon {
  width: 14px;
  height: 14px;
}
.nav-group[aria-expanded="true"] .nav-chevron {
  transform: rotate(90deg);
}
.nav-sub {
  display: grid;
  gap: 1px;
  padding: 2px 0 6px 38px;
}
.nav-sub[hidden],
.shell-menu-list[hidden] {
  display: none;
}
.nav-sub a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.nav-sub a:hover {
  background: var(--surface-raised);
  color: var(--ink);
}
.nav-sub a[aria-current="page"] {
  background: var(--tint);
  color: var(--accent-ink);
  font-weight: 600;
}
.nav-count {
  flex-shrink: 0;
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--danger-solid);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 12px 10px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.sidebar-bottom a {
  margin-right: 8px;
  color: var(--muted);
}
.sidebar-bottom p {
  margin: 4px 0 0;
}
.menu-toggle,
.nav-backdrop,
.bottombar {
  display: none;
}
.content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 32px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-title {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font: 500 12px/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumbs span {
  white-space: nowrap;
}
.crumbs strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  color: var(--muted);
}
.icon-button.menu-toggle {
  display: none;
}
.icon-button:hover {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
  filter: none;
}
.workspace-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 300px;
  min-height: 40px;
  padding: 4px 10px 4px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.workspace-chip:hover {
  filter: none;
  border-color: var(--line-strong);
}
.workspace-name {
  min-width: 0;
  font-size: 13px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-align: left;
}
.initials {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--tint);
  color: var(--accent-ink);
  font: 600 11px var(--mono);
}
.avatar-button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--tint);
  color: var(--accent-ink);
  font: 600 11px var(--mono);
}
.shell-menu {
  position: relative;
}
.shell-menu-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 70;
  display: grid;
  gap: 2px;
  min-width: 220px;
  max-width: calc(100vw - 32px);
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 40px -22px rgba(8, 8, 12, 0.5);
}
.shell-menu-items {
  display: grid;
  gap: 2px;
}
.link-button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-weight: 500;
  text-decoration: underline;
}
.link-button:hover {
  filter: none;
}
.shell-menu-item {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
}
.shell-menu-item:hover {
  background: var(--surface-raised);
  filter: none;
}
.shell-menu-head {
  margin: 0;
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.shell-menu-head small {
  display: block;
}
.support-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 9px 32px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.support-banner button {
  min-height: 34px;
  padding: 6px 14px;
}
.hero-summary {
  align-self: center;
  border-left: 1px solid #695680;
  padding: 20px;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  background: var(--surface);
  color: var(--ink);
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 12px;
  line-height: 1.7;
}
.sidebar-bottom a {
  margin-right: 8px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 20px;
  background: var(--tint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.badge.local {
  background: var(--warn-soft);
  color: var(--warn);
}
.main {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 32px 96px;
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}
/* The .main flex gap is the only spacing between page sections. The doubled
   class outranks component margins (.cards, .hero, .filters, .panel, ...). */
.main.main > * {
  margin-block: 0;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}
.heading p {
  color: var(--muted);
  max-width: 650px;
}
.heading p:last-child {
  margin-bottom: 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: var(--card-gap);
  margin-bottom: 26px;
}
.card,
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}
.panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.panel > * {
  margin-block: 0;
}
.panel > button,
.panel > a {
  align-self: flex-start;
}
.card .metric {
  display: block;
  font-size: 32px;
  font-weight: 700;
  margin: 14px 0 4px;
  letter-spacing: -1px;
}
.card small {
  display: block;
}
/* Label, number and detail share row tracks across a row of cards, so a label
   that wraps to two lines does not push its number below its neighbours'. */
.cards > .metric-card {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 0;
}
.metric-card > small:first-child {
  align-self: end;
}
/* Long amounts (IDR 16,140,000) shrink with the card instead of overflowing
   it; short counts keep the full size. */
/* The container sits on the number row, not the card: containment on the card
   itself would switch off its subgrid. */
.metric-card .metric {
  container-type: inline-size;
}
.metric-card .metric-long {
  font-size: clamp(18px, 11.5cqi, 32px);
  white-space: nowrap;
}
.hero {
  background: var(--night);
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 32px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 24px;
  margin-bottom: 24px;
}
.hero p {
  color: #d6cde6;
  max-width: 580px;
}
.hero .eyebrow {
  color: var(--lavender);
}
.hero .button {
  background: var(--lavender);
  color: var(--on-lavender);
}
.orb {
  width: 150px;
  height: 150px;
  border: 1px solid #bca9ff;
  border-radius: 30px;
  transform: rotate(15deg);
  align-self: center;
  display: grid;
  place-items: center;
  font-size: 80px;
  color: var(--lavender);
  box-shadow:
    14px 14px 0 #493570,
    -14px -14px 0 #312448;
}
.split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--card-gap);
  margin-bottom: 20px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.section-space {
  margin: 24px 0;
}
.steps {
  counter-reset: step;
  list-style: none;
  counter-set: list-item 0;
  padding: 0;
}
.steps li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.steps li:before {
  content: counter(step);
  background: var(--tint);
  color: var(--purple);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--card-gap);
}
.theme-card {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  background: var(--surface);
}
.theme-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.theme-card .details {
  padding: 15px;
}
.theme-card h3 {
  margin-bottom: 8px;
}
.theme-card.selected {
  outline: 3px solid var(--purple);
  outline-offset: 1px;
}
.theme-card button {
  width: 100%;
  margin-top: 10px;
  font-size: 12px;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.preview-grid img {
  width: 100%;
  border-radius: 10px;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--card-gap);
}
.plan .price {
  font-size: 27px;
  font-weight: 700;
  margin: 20px 0 3px;
}
.plan ul {
  padding-left: 18px;
  line-height: 1.9;
  font-size: 13px;
  min-height: 165px;
}
/* Only the active plan gets the purple frame; "Popular" is marked by its badge. */
.plan.highlight .badge {
  background: var(--purple);
  color: white;
}
.plan button {
  width: 100%;
  margin-top: auto;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th,
td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
/* Headers, chips and buttons stay on one line; cell text wraps so tables in
   narrow panels fit instead of scrolling sideways. Truly wide tables still
   scroll inside .table-wrap. */
th,
td button,
td .button {
  white-space: nowrap;
}
td {
  white-space: normal;
  overflow-wrap: break-word;
  min-width: 72px;
}
th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  background: var(--surface-raised);
}
td button {
  padding: 7px 10px;
  min-height: 34px;
  font-size: 12px;
}
tr:last-child td {
  border-bottom: 0;
}
#guest-payment-history table { min-width: 760px; }
#guest-payment-history td { white-space: normal; vertical-align: top; }
#guest-payment-history td:first-child { min-width: 140px; max-width: 200px; }
#guest-payment-history td:first-child small { overflow-wrap: anywhere; }
#guest-payment-history td:nth-child(4) { min-width: 160px; }
#guest-payment-history .payment-sync-note { min-width: 180px; max-width: 280px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.subscription-summary { display:flex; flex-wrap:wrap; justify-content:space-between; gap:20px; }
.plan.current-plan { border:2px solid var(--purple); background:var(--tint-strong); }
.plan.current-plan button:disabled { opacity:1; background:var(--tint); color:var(--accent-ink); }
.empty {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--surface-raised);
}
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
input,
select,
textarea {
  border: 1px solid var(--line-strong);
  background: var(--field);
  color: var(--ink);
  border-radius: 9px;
  padding: 11px 12px;
  max-width: 100%;
  min-height: 44px;
}
textarea {
  min-height: 140px;
  resize: vertical;
}
.checkbox {
  flex-direction: row;
  align-items: flex-start;
  font-weight: 400;
  line-height: 1.55;
}
.checkbox input {
  min-height: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--purple);
}

.checkbox input.event-switch {
  appearance: none;
  flex: 0 0 48px;
  width: 48px;
  height: 28px;
  padding: 2px;
  border: 1px solid #786d93;
  border-radius: 999px;
  background: var(--switch-off);
  cursor: pointer;
}
.checkbox input.event-switch::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #0003;
}
.checkbox input.event-switch:checked { background: #7355ee; }
.checkbox input.event-switch:checked::before { transform: translateX(20px); }
.checkbox input.event-switch:focus-visible { outline: 3px solid #7355ee; outline-offset: 3px; }
form button {
  align-self: flex-start;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.asset-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 18px;
}
.asset-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  overflow-wrap: anywhere;
}
.asset-card h3 { margin: 0; font-size: 14px; }
.asset-card label { min-width: 0; }
.asset-card .checkbox { min-height: 44px; align-items: center; }
.asset-card-kind { color: var(--muted); font-size: 12px; font-weight: 600; }
/* Event theme picker: preview cards with a checkbox (2026-10-08). */
.theme-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 132px), 1fr)); gap: 12px; }
.theme-pick { display: grid; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; min-width: 0; transition: border-color 160ms, box-shadow 160ms; }
.theme-pick img, .theme-pick-empty { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; display: block; background: var(--tint); }
.theme-pick-name { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.theme-pick-name input { flex: none; margin-top: 2px; }
.theme-pick:has(input:checked) { border-color: var(--purple); box-shadow: 0 0 0 2px color-mix(in srgb, var(--purple) 30%, transparent); }
.theme-pick:has(input:disabled) { opacity: .55; cursor: not-allowed; }
/* Kiosk logo & heading colour over the theme background (2026-10-10). */
.chrome-tone { display: grid; gap: 12px; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.chrome-tone legend { padding: 0 6px; font-weight: 600; }
.chrome-tone-sample { display: grid; justify-items: center; align-content: space-between; gap: 18px; max-width: 320px; aspect-ratio: 9 / 16; max-height: 360px; padding: 26px 16px 18px; border-radius: 12px; background: linear-gradient(180deg, #8f81bb 0%, #a79bce 26%, #d6cfe9 62%, #f4f2f9 86%, #f8f7fb 100%); background-size: cover; background-position: center; box-shadow: 0 6px 18px rgba(40, 24, 80, .16); text-align: center; }
.chrome-tone-mark { font-size: 20px; letter-spacing: .12em; font-weight: 700; }
.chrome-tone-title { font-size: 17px; font-weight: 300; letter-spacing: .08em; }
.chrome-tone-handle { font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.chrome-tone-options { display: flex; flex-wrap: wrap; gap: 10px; }
.chrome-tone .chrome-tone-option { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); cursor: pointer; font-weight: 600; }
.chrome-tone-option input { width: auto; min-height: 0; height: auto; margin: 0; padding: 0; accent-color: var(--purple); }
.chrome-tone-swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); }
.chrome-tone-option:has(input:checked) { border-color: var(--purple); box-shadow: 0 0 0 2px color-mix(in srgb, var(--purple) 30%, transparent); }
/* Landscape print: where the WHX mark goes, with previews (2026-10-09). */
.print-logo { display: grid; gap: 12px; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.print-logo legend { padding: 0 6px; font-weight: 600; }
.print-logo svg { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 6px 18px rgba(40, 24, 80, .16); }
.print-logo-preview { max-width: 560px; }
.print-logo-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.print-logo-option { display: grid; gap: 8px; align-content: start; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; min-width: 0; }
.print-logo-option svg { box-shadow: 0 2px 8px rgba(40, 24, 80, .14); }
.print-logo-text { color: var(--muted); font-size: 13px; line-height: 1.45; }
.print-logo-name { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; }
.print-logo-name input { flex: none; width: auto; min-height: 0; height: auto; margin: 3px 0 0; padding: 0; accent-color: var(--purple); }
.print-logo-option:has(input:checked) { border-color: var(--purple); box-shadow: 0 0 0 2px color-mix(in srgb, var(--purple) 30%, transparent); }
.asset-card-new { border-color: var(--purple); box-shadow: 0 0 0 2px color-mix(in srgb, var(--purple) 30%, transparent); }
.asset-preview {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-sunken);
  color: var(--muted);
}
/* The stage has the shape of the place the asset is shown. */
.asset-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 200px;
  overflow: hidden;
  border-radius: 8px;
}
.asset-stage--portrait { width: auto; height: 300px; min-height: 0; aspect-ratio: 9 / 16; background: #100d18; }
.asset-stage--landscape { min-height: 0; aspect-ratio: 16 / 9; background: #100d18; }
.asset-stage > img, .asset-stage > video { position: absolute; inset: 0; width: 100%; height: 100%; }
.asset-stage > figcaption { position: relative; padding: 18px; font-size: 13px; text-align: center; color: var(--muted); }
.asset-stage--portrait > figcaption, .asset-stage--landscape > figcaption { color: #d9d2ec; }
.asset-stage:not(.asset-stage--portrait):not(.asset-stage--landscape) > .asset-media { object-fit: contain; }
.asset-sample-photo { object-fit: cover; }
/* media.final stretches the frame to the result size; show exactly that. */
.asset-preview--frame .asset-media { object-fit: fill; }
.asset-preview--background .asset-media { object-fit: cover; }
.asset-preview--ad .asset-media { object-fit: contain; background: #000; }
.asset-preview--welcome-video .asset-media { object-fit: cover; background: #000; }
.asset-preview--photo-wall-logo .asset-stage {
  background: radial-gradient(ellipse at center, #2a1f45 0%, #100d18 70%);
}
.asset-preview--photo-wall-logo .asset-media {
  inset: auto;
  left: 50%;
  top: 50%;
  width: 44%;
  height: 32%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .54));
}
.asset-usage { font-size: 12px; line-height: 1.4; text-align: center; color: var(--muted); }
.asset-warning { font-size: 12px; line-height: 1.4; text-align: center; color: var(--warn); }
.asset-preview [hidden] { display: none; }
.notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  background: var(--night);
  color: white;
  max-width: 480px;
  padding: 18px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 30px #261f3d22;
}
.notice.error {
  background: var(--danger-solid);
}
.notice:not([hidden]) {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.notice-text {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.55;
}
.notice-close {
  flex-shrink: 0;
  min-height: 32px;
  width: 32px;
  padding: 0;
  margin: -6px -10px -6px 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 20px;
  line-height: 1;
}
.notice-close:hover {
  background: #ffffff22;
  filter: none;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0;
  width: min(750px, 94vw);
  max-height: 90vh;
  color: var(--ink);
  background: var(--surface);
  overflow: hidden;
}
dialog[open] {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}
#modal-content {
  padding: 28px;
  overflow: auto;
  overscroll-behavior: contain;
  min-height: 0;
}
#modal-content > * + * {
  margin-top: 20px;
}
.modal-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 28px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.modal-actions button {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.modal-actions #close-modal {
  flex: 0 0 auto;
}
dialog::backdrop {
  background: #1c152c88;
  backdrop-filter: blur(3px);
}
.qr {
  display: block;
  width: 220px;
  max-width: 100%;
  margin: 20px auto;
}
.sim-logins {
  padding: 20px;
  background: var(--warn-soft);
  border-radius: 12px;
  margin-top: 24px;
}
.sim-logins button {
  font-size: 12px;
  margin: 8px 6px 0 0;
  padding: 9px 11px;
}
.loading {
  display: grid;
  place-items: center;
  min-height: 70vh;
  align-content: center;
  gap: 20px;
}
.legal-page {
  max-width: 1000px;
  margin: 40px auto;
  padding: 30px;
}
.legal-page pre {
  white-space: pre-wrap;
  font:
    15px/1.8 Segoe UI,
    sans-serif;
  overflow-wrap: anywhere;
}
/* Result video (2026-10-23): how guests pay for video on the event's Video tab. */
.event-video-payment {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}
.event-video-payment legend {
  margin-bottom: 8px;
  padding: 0;
  font-weight: 600;
}
.event-video-payment small {
  display: block;
  margin: 2px 0 0 30px;
}
.wall-grid {
  columns: 4 200px;
  column-gap: 18px;
}
.wall-item {
  break-inside: avoid;
  margin-bottom: 18px;
}
.wall-item img {
  width: 100%;
  border-radius: 14px;
}
/* Generate from folder: one row per photo, its own theme and progress. */
.folder-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 50vh; overflow-y: auto; }
.folder-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 48px; gap: 10px; align-items: center; padding: 6px; border: 1px solid var(--line); border-radius: 12px; }
.folder-item > img, .folder-result img { width: 48px; height: 64px; object-fit: cover; border-radius: 8px; display: block; }
.folder-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9em; }
@media (max-width: 640px) {
  .folder-item { grid-template-columns: 48px minmax(0, 1fr) 48px; }
  .folder-item select { grid-column: 2 / 4; }
  .folder-item > span:nth-of-type(2) { grid-column: 2 / 4; }
}
.subtle {
  font-size: 12px;
  color: var(--muted);
}
.sticky-actions {
  position: sticky;
  bottom: 16px;
  background: var(--night);
  color: white;
  padding: 16px 22px;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 25px;
  box-shadow: 0 6px 25px #0002;
}
.sticky-actions button {
  background: var(--lavender);
  color: var(--on-lavender);
}
.sticky-actions button.secondary {
  background: transparent;
  color: #fff;
  border-color: #ffffff55;
}
.sticky-status {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.sticky-actions .unsaved-note {
  color: var(--lavender);
  font-size: 12px;
  font-weight: 600;
}
.theme-filters {
  align-items: flex-end;
}
.theme-filters > .checkbox {
  flex: 0 1 auto;
  align-items: center;
  min-height: 44px;
}
.theme-filters > small {
  padding-bottom: 12px;
}
.theme-filters > .theme-slot-usage {
  margin-bottom: 10px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 100%;
  background: #9c82ed;
  display: inline-block;
  margin-right: 8px;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  color: var(--info);
  background: var(--info-soft);
}
.status-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.status-chip.success { color: var(--success); background: var(--success-soft); }
.status-chip.danger { color: var(--danger); background: var(--danger-soft); }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.report-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.report-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-block: 14px; }
.report-tile { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.report-tile strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.report-tile span { color: var(--muted); font-variant-numeric: tabular-nums; }
.report-tile[data-status="paid"] { border-color: var(--success); }
.report-tile[data-status="open"] { border-color: var(--warn); }
.outcome-summary .report-tile small.muted { font-size: 12px; line-height: 1.35; }
.report-invoice { font-size: 12px; word-break: break-all; }
/* Event editor: live preview of the chosen Photo Wall transition on a sample
   photo framed like a wall card (photo-wall-transitions.js). */
.wall-transition-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.wall-transition-preview > .stack { flex: 1 1 200px; gap: 10px; }
.wall-transition-preview > .stack > button { align-self: flex-start; }
.wall-transition-stage { position: relative; flex: 0 0 auto; width: 180px; height: 260px; display: grid; place-items: center;
  overflow: hidden; border-radius: 12px; background: #1c152c; perspective: 700px; }
.wall-transition-sample { position: relative; width: 117px; height: 208px; border: 4px solid rgba(244, 237, 221, 0.92);
  border-radius: 3px; background: #0a0c13; transform-style: preserve-3d; }
.wall-transition-sample > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wall-transition-sample.is-assembling > img { opacity: 0; }
/* Audit detail: key facts as label/value pairs, IDs shortened, raw data folded. */
.audit-detail { display: grid; gap: 6px; min-width: 220px; max-width: 520px; }
.audit-detail dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 12px; margin: 0; font-size: 13px; }
.audit-detail dt { color: var(--muted); }
.audit-detail dd { margin: 0; overflow-wrap: anywhere; }
.audit-ids { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.audit-ids code { font-size: 12px; color: var(--muted); }
.audit-detail details summary { cursor: pointer; font-size: 12px; color: var(--link); }
.audit-detail pre { margin: 6px 0 0; padding: 10px 12px; max-height: 240px; overflow: auto; font-size: 12px; line-height: 1.5;
  white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-sunken); border-radius: 8px; }
.event-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.event-cards > .panel { gap: 14px; }
.event-actions { gap: 8px; flex-wrap: wrap; margin-top: auto; }
.event-actions button { min-height: 38px; padding: 8px 14px; }
.status-chip.warn { color: var(--warn); background: var(--warn-soft); }
.status-chip.neutral { color: var(--muted); background: var(--surface-sunken); }
.client-filters {
  align-items: flex-end;
  margin-bottom: 0;
}
.client-filters > small {
  padding-bottom: 12px;
}
.doku-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.doku-head h2,
.doku-head p {
  margin: 0;
}
.setup-steps.doku-steps li {
  align-items: flex-start;
}
.doku-steps .setup-copy > * + * {
  margin-top: 10px;
}
.doku-key {
  max-height: 140px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-sunken);
  font: 11px/1.5 ui-monospace, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.doku-credentials > summary,
.legacy-archive > summary,
.failed-history > summary {
  cursor: pointer;
  font-weight: 650;
  min-height: 32px;
}
.doku-credentials[open] > summary {
  margin-bottom: 12px;
}
.legacy-archive,
.failed-history {
  gap: 14px;
}
/* Flex summaries drop the native disclosure marker; draw one so the panel reads as expandable. */
.legacy-archive > summary,
.failed-history > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}
.legacy-archive > summary::-webkit-details-marker,
.failed-history > summary::-webkit-details-marker {
  display: none;
}
.legacy-archive > summary::before,
.failed-history > summary::before {
  content: "\25B8";
  color: var(--muted);
  transition: transform 0.15s;
}
.legacy-archive[open] > summary::before,
.failed-history[open] > summary::before {
  transform: rotate(90deg);
}
.insight-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.segmented {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-sunken);
}
.segmented button {
  min-height: 36px;
  padding: 6px 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.segmented button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--accent-ink);
  box-shadow: 0 1px 4px #261f3d18;
}
.insight-controls .checkbox {
  align-items: center;
}
.insight-chart {
  margin: 0;
}
.insight-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: var(--card-gap);
  /* An empty chart keeps its own short height beside a full one. */
  align-items: start;
}
.insight-charts > *,
.insight-chart {
  min-width: 0;
}
.insight-chart h3 {
  margin: 0;
}
.chart-wrap {
  position: relative;
}
.insight-svg {
  display: block;
  overflow: visible;
}
.chart-wrap {
  min-height: 220px;
}
.chart-grid {
  stroke: var(--line);
  stroke-width: 1;
}
.chart-axis {
  fill: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.chart-peak {
  fill: var(--ink);
  font-size: 11px;
  font-weight: 650;
}
.chart-bar {
  fill: var(--chart-bar);
}
.chart-hit {
  fill: transparent;
  outline: none;
  cursor: default;
}
.chart-hit:hover,
.chart-hit:focus-visible {
  fill: var(--tint);
  fill-opacity: 0.45;
}
.chart-tooltip {
  position: absolute;
  top: 0;
  transform: translate(-50%, -8px);
  display: grid;
  gap: 2px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 6px 20px #0000002e;
  font-size: 12px;
  pointer-events: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.chart-table > summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
}
.chart-table[open] > summary {
  margin-bottom: 12px;
}
/* Statistics (2026-10-23): the most used themes as ranked bars. */
.rank-bars {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.rank-bars li {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) 3.5rem;
  align-items: center;
  gap: 12px;
}
.rank-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.rank-track {
  height: 12px;
  border-radius: 0 4px 4px 0;
  background: var(--surface-sunken);
  overflow: hidden;
}
.rank-fill {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: 0 4px 4px 0;
  background: var(--chart-bar);
}
.rank-bars strong {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) {
  .rank-bars li {
    grid-template-columns: minmax(0, 1fr) 3rem;
    gap: 4px 12px;
  }
  .rank-name {
    grid-column: 1 / -1;
  }
}
.share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.share-track {
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: var(--surface-sunken);
  overflow: hidden;
}
.share-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--chart-bar);
}
.preset-payments {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.preset-payments li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  min-width: 0;
}
.preset-payments li:last-child {
  border-bottom: 0;
}
.preset-payments li > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.identity-cell {
  display: grid;
  gap: 2px;
}
.job-reason {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  white-space: normal;
}
.job-reason code {
  font-size: 11px;
  color: var(--muted);
}
.help {
  padding: 18px;
  background: var(--tint);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.7;
}
@media (max-width: 1200px) {
  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 850px) {
  :root {
    --card-gap: 20px;
    --section-gap: 24px;
  }
  .panel {
    padding: 24px;
  }
  #modal-content {
    padding: 22px;
  }
  .modal-actions {
    padding: 16px 22px;
  }
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .orb {
    display: none;
  }
  .heading {
    flex-direction: column;
    gap: 8px;
  }
  .preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
}
/* Dashboard redesign phase 1 (2026-10-16): sign-in frame from signin.js.
   The art panel keeps the landing's fixed WHX dark in both colour modes. */
.signin {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 100vh;
  background: var(--paper);
}
.signin-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 40px;
  background: #08080c;
  color: #f3f1f8;
}
.signin-art.admin {
  background: #0d0c14;
}
.signin-wall {
  position: absolute;
  inset: -8% -4%;
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  opacity: 0.5;
  transform: rotate(-6deg) scale(1.08);
}
.signin-wall-col {
  display: grid;
  align-content: start;
  gap: 14px;
  animation: signin-drift 40s linear infinite alternate;
}
.signin-wall-col:nth-child(even) {
  margin-top: -90px;
  animation-direction: alternate-reverse;
}
.signin-wall img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 12px;
  background: #1c1929;
}
.signin.paused .signin-wall-col {
  animation-play-state: paused;
}
@keyframes signin-drift {
  to {
    transform: translateY(-18%);
  }
}
.signin-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(90% 70% at 20% 85%, rgba(8, 8, 12, 0.96), rgba(8, 8, 12, 0.55) 55%, rgba(8, 8, 12, 0.25));
}
.signin-art-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.signin-art .brand {
  padding: 0;
  color: #f3f1f8;
}
.signin-art .lockup-mark {
  color: #f3f1f8;
}
.signin-art .mark-dot,
.signin-art .lockup-word b span {
  fill: #b2a3e0;
  color: #b2a3e0;
}
.signin-art .lockup-word small {
  color: #a09bb5;
}
.signin-back {
  color: #bdb7cf;
  font-size: 14px;
  text-decoration: none;
}
.signin-back:hover {
  color: #f3f1f8;
}
.signin-copy h1 {
  max-width: 14ch;
  margin: 0;
  color: #f3f1f8;
  font: 700 clamp(30px, 3.4vw, 48px) / 1.05 var(--display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.signin-copy p {
  max-width: 44ch;
  margin: 12px 0 0;
  color: #bdb7cf;
}
.signin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.signin-tags span {
  padding: 4px 11px;
  border: 1px solid #332f44;
  border-radius: 999px;
  color: #d8d2ea;
  font: 500 11px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.signin-main {
  position: relative;
  display: grid;
  place-items: center;
  padding: 72px 24px 40px;
}
.signin-tools {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.signin-languages {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-raised);
}
.signin-language {
  min-height: 30px;
  padding: 4px 10px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.signin-language:hover {
  color: var(--ink);
  filter: none;
}
.signin-language[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
}
.signin-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 420px;
}
.signin-card h2 {
  margin: 0;
  font: 700 28px / 1.15 var(--display);
  letter-spacing: -0.015em;
}
.signin-card > p,
.signin-card .eyebrow {
  margin: 0;
}
.signin-card .eyebrow {
  color: var(--muted);
}
.signin-card form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.signin-card > .button,
.signin-card form button[type="submit"] {
  width: 100%;
}
.signin-or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font: 500 11px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.signin-or::before,
.signin-or::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}
.signin-legal {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.signin-legal a,
.signin-legal button {
  color: var(--muted);
}
.signin-notice {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--info-soft);
  color: var(--info);
}
.signin-notice strong {
  display: block;
}
.signin-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.signin-steps li {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12.5px;
}
.signin-steps li::before {
  content: "";
  height: 4px;
  border-radius: 4px;
  background: var(--line);
}
.signin-steps li.done::before,
.signin-steps li.now::before {
  background: var(--accent);
}
.signin-steps li.now {
  color: var(--ink);
  font-weight: 600;
}
.signin-code {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-raised);
  font: 600 30px / 1 var(--mono);
  letter-spacing: 0.18em;
  text-align: center;
}
.signin-who {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.signin-who > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.signin-who small {
  display: block;
}
.admin-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 600 10.5px var(--mono);
  letter-spacing: 0.14em;
}
.admin-badge .shell-icon {
  width: 13px;
  height: 13px;
}
@media (max-width: 860px) {
  .signin {
    grid-template-columns: minmax(0, 1fr);
  }
  .signin-art {
    min-height: 200px;
    padding: 20px 20px 24px;
  }
  .signin-copy h1 {
    font-size: 28px;
  }
  .signin-copy p,
  .signin-tags {
    display: none;
  }
  .signin-main {
    place-items: start center;
    padding: 64px 16px 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .signin-wall-col {
    animation: none;
  }
}
.table-block {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.table-filter {
  max-width: 320px;
}
.paged-list {
  display: grid;
  gap: 12px;
}
.shell-menu-item[aria-checked="true"]::after {
  content: " ✓";
  color: var(--accent-ink);
}
/* Dashboard redesign phase 2 (2026-10-16): search box and palette. */
.searchbox {
  flex: 0 1 240px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  height: 40px;
  min-height: 40px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 500;
  text-align: left;
}
.searchbox:hover {
  border-color: var(--line-strong);
  filter: none;
}
.searchbox-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.searchbox kbd,
.search-help kbd {
  padding: 3px 6px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--muted);
  font: 500 11px/1 var(--mono);
}
.search-layer {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  justify-items: center;
  align-items: start;
  padding: 10vh 16px 16px;
  background: rgba(8, 8, 12, 0.45);
}
.search-panel {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  width: 100%;
  max-width: 660px;
  max-height: 76vh;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 60px -24px rgba(8, 8, 12, 0.55);
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 16px;
  border-bottom: 1px solid var(--line);
}
.search-input {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 17px;
}
.search-input:focus {
  outline: none;
}
.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px 0;
}
.search-filter {
  min-height: 30px;
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.search-filter[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.search-filter:hover {
  filter: none;
}
.search-status {
  min-height: 0;
  margin: 0;
  padding: 0 16px;
  color: var(--muted);
  font-size: 13px;
}
.search-status:empty {
  display: none;
}
.search-results {
  grid-row: 4;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 8px 8px;
}
.search-group-title {
  margin: 10px 10px 4px;
  color: var(--muted);
  font: 500 11px/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.search-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink);
  font-weight: 500;
  text-align: left;
}
.search-row[aria-selected="true"],
.search-row:hover {
  background: var(--tint);
  filter: none;
}
.search-row-text {
  flex: 1;
  min-width: 0;
}
.search-row-text strong,
.search-row-text small {
  display: block;
  overflow-wrap: anywhere;
}
.search-row-text small {
  color: var(--muted);
}
.search-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: var(--surface-raised);
  color: var(--muted);
}
.search-thumb {
  width: 26px;
  aspect-ratio: 9 / 16;
  flex: none;
  object-fit: contain;
  border-radius: 5px;
  background: var(--surface-sunken);
}
.search-more {
  min-height: 30px;
  margin: 2px 0 6px 56px;
  padding: 2px 8px;
  border: 0;
  background: none;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
}
.search-more:hover {
  filter: none;
  text-decoration: underline;
}
.search-empty {
  margin: 0;
  padding: 24px 16px;
  color: var(--muted);
  text-align: center;
}
.search-help {
  grid-row: 5;
  margin: 0;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.search-page {
  display: grid;
  gap: 12px;
}
.search-page .search-filters {
  padding: 0;
}
.search-page-results {
  grid-row: auto;
  overflow: visible;
  padding: 0;
}
@media (max-width: 1024px) {
  .shell {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .sidebar {
    padding: 14px 10px;
  }
  .sidebar .lockup-word,
  .nav-label,
  .nav-chevron,
  .nav-sub,
  .nav-group .nav-count,
  .sidebar-bottom {
    display: none;
  }
  .brand,
  .nav-link,
  .nav-group {
    justify-content: center;
  }
  .brand {
    padding: 4px 0;
  }
  .nav-link,
  .nav-group {
    padding: 10px 0;
  }
  .icon-button.menu-toggle {
    display: inline-grid;
  }
  .shell.nav-open .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 150;
    width: min(280px, 86vw);
    height: 100dvh;
    padding: 16px 12px 20px;
    box-shadow: 0 18px 40px rgba(8, 8, 12, 0.35);
  }
  .shell.nav-open .sidebar .lockup-word,
  .shell.nav-open .sidebar-bottom {
    display: block;
  }
  .shell.nav-open .nav-label {
    display: inline;
  }
  .shell.nav-open .nav-chevron {
    display: inline-grid;
  }
  .shell.nav-open .nav-group .nav-count {
    display: inline-block;
  }
  .shell.nav-open .nav-sub:not([hidden]) {
    display: grid;
  }
  .shell.nav-open .brand,
  .shell.nav-open .nav-link,
  .shell.nav-open .nav-group {
    justify-content: flex-start;
  }
  .shell.nav-open .brand {
    padding: 4px 8px;
  }
  .shell.nav-open .nav-link,
  .shell.nav-open .nav-group {
    padding: 8px 10px;
  }
  .shell.nav-open .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 140;
    background: rgba(8, 8, 12, 0.45);
  }
  .topbar {
    padding: 10px 18px;
  }
  .crumbs span,
  .topbar-title .badge,
  .admin-chip .workspace-name {
    display: none;
  }
  .searchbox kbd {
    display: none;
  }
  .workspace-chip {
    max-width: 220px;
  }
  .support-banner {
    padding: 9px 20px;
  }
  .main {
    padding: 22px 20px 96px;
  }
}
@media (max-width: 599px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(280px, 86vw);
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform 0.2s, visibility 0s 0.2s;
    z-index: 150;
  }
  .shell:not(.nav-open) .sidebar {
    visibility: hidden;
  }
  .shell.nav-open .sidebar {
    transform: none;
    transition: transform 0.2s;
  }
  .topbar {
    gap: 8px;
    padding: 8px 12px;
  }
  /* The page heading names the page on phones; the header keeps the controls. */
  .crumbs,
  .topbar-title .badge,
  .topbar-actions .refresh-button {
    display: none;
  }
  .workspace-name,
  .workspace-chip > .shell-icon {
    display: none;
  }
  .support-banner {
    padding: 8px 16px;
  }
  .main {
    padding: 16px 16px 96px;
  }
  .bottombar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 35;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    background: var(--surface);
    border-top: 1px solid var(--line);
  }
  .bottombar a {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 6px 0;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
  }
  .bottombar a[aria-current="page"] {
    color: var(--accent-ink);
  }
  /* Phones: the header keeps a search icon; the palette takes the screen. */
  .searchbox {
    flex: 0 0 38px;
    justify-content: center;
    padding: 0;
    border-color: transparent;
    background: none;
  }
  .searchbox-text,
  .searchbox kbd,
  .search-help {
    display: none;
  }
  .search-layer {
    padding: 0;
  }
  .search-panel {
    max-width: none;
    max-height: none;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }
}
@media (max-width: 480px) {
  :root {
    --card-gap: 16px;
  }
  .panel {
    padding: 22px;
  }
  .modal-actions {
    gap: 10px;
  }
  .modal-actions button {
    padding: 10px 12px;
  }
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .theme-card .details {
    padding: 10px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .card {
    padding: 16px;
  }
  .card .metric {
    font-size: 25px;
  }
  /* Two cards per row on a phone: a long amount wraps at its space instead. */
  .metric-card .metric-long {
    font-size: clamp(16px, 13cqi, 25px);
    white-space: normal;
  }
  .notice {
    right: 12px;
    left: 12px;
    bottom: 80px;
  }
  .sticky-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
/* Filters size to their content instead of stretching a single select across
   the page; search fields still grow. */
.filters > label {
  flex: 0 1 260px;
  min-width: 0;
}
.filters > label:has(input[type="search"]) {
  flex: 1 1 260px;
}
/* Standalone controls placed directly in a page keep a readable width. */
.main > label {
  align-self: flex-start;
  width: min(100%, 320px);
}
.main > button,
.main > a.button {
  align-self: flex-start;
}
/* A choice among a few options does not need the full form width. */
form label > select {
  max-width: 420px;
}
.result-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 20px;
  margin: 20px 0;
}
.result-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
/* Results are always 9:16 (media.final, 720x1280): the photo fills the card
   width at that shape, whole and without side bars. Placeholders share the
   shape so every card in a row lines up and stays quiet. */
.result-card > img,
.result-placeholder {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  display: block;
}
.result-card > img {
  object-fit: cover;
}
.result-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface-sunken);
}
.result-copy {
  padding: 16px 18px 18px;
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.result-copy > * {
  margin: 0;
}
.result-copy .status-chip {
  white-space: normal;
  max-width: 100%;
}
.result-copy > a {
  margin-top: auto;
  align-self: flex-start;
}
.result-copy h3 {
  margin-top: 0;
}
[hidden] {
  display: none !important;
}
.user-guide {
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.user-guide h2 {
  margin-top: 2.2em;
  padding-top: 0.8em;
  border-top: 1px solid var(--line);
}
.user-guide li {
  margin: 0.6em 0;
}
.payment-card {
  --payment-color: var(--accent-ink);
  --payment-tint: var(--tint);
  display: grid;
  gap: 22px;
  min-width: 0;
}
.setup-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.setup-steps li { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--surface); }
.setup-steps li.complete { border-color: var(--line-strong); background: var(--tint); }
.setup-indicator { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--surface-sunken); color: var(--muted); font-weight: 700; }
.setup-steps .complete .setup-indicator { background: #6947c7; color: white; }
.setup-copy { flex: 1; min-width: 0; }
.setup-copy p { margin: 6px 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.setup-copy small { font-size: 11px; font-weight: 600; color: var(--accent-ink); }
.setup-steps button { flex-shrink: 0; max-width: 140px; font-size: 12px; }
@media (max-width: 600px) {
  .setup-steps li { flex-wrap: wrap; }
  .setup-copy { flex: 1 0 calc(100% - 44px); }
  .setup-steps button { margin-left: 44px; max-width: none; }
}
.payment-card[data-phase="success"],
.payment-badge[data-phase="success"] {
  --payment-color: var(--success);
  --payment-tint: var(--success-soft);
}
.payment-card:is([data-phase="expired"], [data-phase="cancelled"], [data-phase="failed"]),
.payment-badge:is([data-phase="expired"], [data-phase="cancelled"], [data-phase="failed"]) {
  --payment-color: var(--danger);
  --payment-tint: var(--danger-soft);
}
.payment-card:is([data-phase="review"], [data-phase="refund"]),
.payment-badge:is([data-phase="review"], [data-phase="refund"]) {
  --payment-color: var(--warn);
  --payment-tint: var(--warn-soft);
}
.payment-summary, .payment-deadline .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
#modal:has(.payment-card) .modal-actions { align-items: stretch; }
.payment-summary strong {
  font-size: 26px;
  letter-spacing: -0.7px;
}
.payment-state {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  background: var(--payment-tint);
}
.payment-state h3 { margin: 0 0 8px; color: var(--payment-color); }
.payment-state p { margin: 0; line-height: 1.6; }
.payment-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--surface);
  background: var(--payment-color);
  font-size: 24px;
}
.payment-sandbox {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--tint);
  padding: 14px 18px;
  font-size: 13px;
  color: var(--accent-ink);
}
.payment-sandbox strong { font-size: 11px; letter-spacing: 1.2px; }
.payment-sandbox p { margin: 6px 0 0; line-height: 1.55; }
.payment-deadline { display: grid; gap: 10px; }
.payment-clock { font-size: 26px; font-variant-numeric: tabular-nums; color: var(--accent-ink); }
.payment-deadline.urgent .payment-clock { color: var(--danger); }
.payment-deadline progress {
  appearance: none;
  border: none;
  width: 100%;
  height: 6px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--line);
  accent-color: var(--purple);
}
.payment-deadline progress::-webkit-progress-bar { background: var(--line); }
.payment-deadline progress::-webkit-progress-value { background: var(--purple); }
.payment-deadline progress::-moz-progress-bar { background: var(--purple); }
.payment-deadline small, .payment-reference small { color: var(--muted); }
.payment-qr {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: #fff;
  color: #261f3d;
}
.payment-qr .qr { width: 216px; max-width: 100%; height: auto; margin: 0; padding: 0; border: none; border-radius: 0; }
.payment-qr small { color: #6f6681; }
.integration-icon { width: 24px; height: 24px; object-fit: contain; flex: 0 0 24px; }
.integration-label { display: inline-flex; align-items: center; gap: 10px; }
.google-button, a.button.google-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; background: #fff; border: 1px solid #747775; border-radius: 999px; color: #1f1f1f; font-weight: 600; text-decoration: none; }
.google-button:hover { background: #f2f2f2; color: #1f1f1f; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .google-button { background: #131314; border-color: #8e918f; color: #e3e3e3; }
  :root:not([data-theme="light"]) .google-button:hover { background: #1f1f20; color: #e3e3e3; }
}
:root[data-theme="dark"] .google-button { background: #131314; border-color: #8e918f; color: #e3e3e3; }
:root[data-theme="dark"] .google-button:hover { background: #1f1f20; color: #e3e3e3; }
.google-button .integration-icon { width: 20px; height: 20px; flex-basis: 20px; }
.payment-qr.qris-display { max-width: 380px; width: 100%; box-sizing: border-box; margin: auto; border: 1px solid #dedee3; border-top: 6px solid #d91e36; border-radius: 12px; background: #fff; color: #202124; padding: 24px; gap: 12px; }
.qris-heading { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid #eee; }
.qris-heading .qris-logo { width: 106px; height: auto; }
.qris-heading span { font-size: 10px; font-weight: 700; max-width: 95px; text-align: right; letter-spacing: .05em; }
.qris-merchant { overflow-wrap: anywhere; font-size: 16px; }
.qris-amount { font-size: 24px; font-weight: 750; }
.qris-code { padding: 16px; background: #fff; max-width: 100%; }
.qris-display small { max-width: 270px; text-align: center; color: #555; }
.payment-simulator { display: flex; flex-wrap: wrap; gap: 12px; }
.payment-simulator > * { flex: 1 1 180px; font-size: 13px; }
.payment-steps { display: flex; list-style: none; gap: 12px; margin: 0; padding: 0; counter-reset: payment-step; }
.payment-steps li { flex: 1; font-size: 12px; color: var(--muted); line-height: 1.5; border-top: 3px solid var(--line); padding-top: 10px; }
.payment-steps li::before { counter-increment: payment-step; content: counter(payment-step) ". "; font-weight: 700; }
.payment-steps li.complete { border-color: var(--purple); color: var(--accent-ink); }
.payment-connection { color: var(--warn); background: var(--warn-soft); border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.6; margin: 0; }
.payment-reference { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 18px; }
.payment-reference code { font-size: 12px; overflow-wrap: anywhere; }
.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--payment-color, var(--accent-ink));
  background: var(--payment-tint, var(--tint));
}
@media (max-width: 480px) {
  .payment-card { gap: 18px; }
  .payment-state { padding: 16px; gap: 12px; }
  .payment-state h3 { font-size: 17px; }
  .payment-icon { width: 34px; height: 34px; font-size: 20px; }
  .payment-summary strong { font-size: 23px; }
  .payment-steps { gap: 8px; }
}
/* Theme bank and prompt studio share the dashboard palette. */
.theme-bank-grid,.studio-result-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:24px;margin:24px 0}
.theme-bank-grid>.panel{margin:0;min-width:0}
/* The bank holds dozens of themes: compact cards, four or more per row on desktop. */
.theme-bank-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr));gap:16px}
.theme-bank-grid>.panel{padding:14px;gap:8px;border-radius:14px}
.theme-bank-grid .theme-image{height:190px;border-radius:10px}
.theme-bank-grid h3{font-size:15px;margin:0;overflow-wrap:anywhere}
.theme-bank-grid .row{gap:6px;flex-wrap:wrap;align-items:center}
.theme-bank-grid p{margin:0;font-size:13px}
.theme-bank-grid button{padding:6px 10px;font-size:12.5px;min-height:32px}
.theme-image{display:block;width:100%;height:230px;object-fit:contain;background:var(--surface-sunken);border-radius:12px}
.preview-editor{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:18px;margin:18px 0}
.preview-tile{padding:12px;border:1px solid var(--line);border-radius:14px;min-width:0;display:flex;flex-direction:column;gap:12px}
.preview-tile .theme-image{height:180px}
.studio-reference-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .studio-reference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .studio-reference-grid { grid-template-columns: minmax(0, 1fr); } }
.studio-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 24px 32px; align-items: start; }
.studio-form-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.studio-form-col > * { margin-block: 0; }
.studio-form-col .studio-reference-grid { margin: 0; }
.studio-history { display: grid; gap: 22px; }
.studio-run.panel { margin: 0; min-width: 0; }
.studio-run-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; min-height: 48px; }
.studio-run-summary::-webkit-details-marker { display: none; }
.studio-run-summary > span:first-child { min-width: 0; }
.studio-run-title { display: block; font-size: 17px; overflow-wrap: anywhere; }
.studio-run-meta { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.studio-run-toggle { display: inline-flex; align-items: center; flex-shrink: 0; gap: 9px; color: var(--accent-ink); font-size: 13px; font-weight: 700; }
.studio-run-chevron { display: inline-block; font-size: 26px; line-height: 1; }
.studio-run-close-label, .studio-run[open] > summary .studio-run-open-label { display: none; }
.studio-run[open] > summary .studio-run-close-label { display: inline; }
.studio-run[open] > summary .studio-run-chevron { transform: rotate(90deg); }
.studio-run-summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 7px; border-radius: 4px; }
.studio-run-body { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.preview-tile button{font-size:12px;padding:9px 11px}
.studio-warning{padding:12px 16px;border-left:3px solid #8a63bc;background:var(--tint);font-size:13px;line-height:1.65}
.studio-count{font-weight:700;color:var(--accent-ink)}
.studio-result{border:1px solid var(--line);border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:14px;min-width:0}
.studio-comparison{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.studio-comparison figure{margin:0;min-width:0}
.studio-comparison img{width:100%;height:auto;aspect-ratio:9/16;object-fit:contain;background:var(--surface-sunken);border-radius:10px}
.studio-framed{position:relative}
.studio-framed>img{display:block}
.studio-comparison .studio-frame{position:absolute;inset:0;height:100%;object-fit:fill;background:none;pointer-events:none}
.kiosk-color-preview{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px;padding:24px;border-radius:16px}
.kiosk-color-button{padding:14px 20px;border-radius:30px;font-weight:650}
input[type=color]{width:100%;min-height:48px;padding:6px;cursor:pointer}
.studio-comparison figcaption{font-size:12px;text-align:center;margin-top:8px;color:var(--muted)}
.studio-prompt{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:13px;max-height:260px;overflow:auto;background:var(--surface-raised);padding:16px}
/* Product references keep their own spacing and never act as kiosk backgrounds. */
.product-reference-panel { padding: 24px; margin-block: 20px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface-raised); }
.product-reference-panel > * + * { margin-top: 16px; }
.product-editor .theme-image { object-fit: contain; background: var(--surface-sunken); }
.provider-tag { color: var(--accent-ink); font-weight: 650; }
.provider-balance { font-size: 2.6rem; font-weight: 750; color: var(--accent-ink); font-variant-numeric: tabular-nums; margin-block: 20px 4px; }
.provider-monitor { margin-top: 28px; }
.system-content .cards { grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); }
.system-content .cards > * { min-width:0; overflow-wrap:anywhere; }
.system-content .integration-card button { max-width:100%; white-space:normal; }
.provider-readiness { margin-block: 12px; }
@media(max-width:600px) { .product-reference-panel { padding:16px; } }
/* Admin curation uses normal readable controls, independent of the marketing deck. */
.bank-curation-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 20px; margin-top: 20px; }
.bank-curation-item { padding: 12px; border: 1px solid var(--border,#705588); border-radius: 14px; }
.bank-curation-item .theme-image { width: 100%; height: 180px; object-fit: contain; border-radius: 9px; background: var(--paper); }
.bank-curation-item:has(input:checked) { background: var(--tint-strong); border-color: var(--purple); }
.bank-curation-item[hidden] { display: none; }
.bank-curation-item label { margin-top: 10px; min-height: 44px; }
.bank-curation-unavailable { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
html:has(dialog.photo-wall-viewer[open]),
body:has(dialog.photo-wall-viewer[open]) {
  overflow: hidden;
  overscroll-behavior: none;
}
:root dialog.photo-wall-viewer {
  position: fixed; inset: 0; width: 100vw; height: 100dvh;
  max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; border-radius: 0; overflow: hidden; background: #e3e5e8;
}
.photo-wall-viewer iframe { display: block; border: 0; width: 100%; height: 100%; }

/* Landing content and inquiries (2026-10-14). */
/* Landing content (2026-10-27): roomier cards, dragged by their handle, the
   order saved once per category. */
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.showcase-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: box-shadow .15s ease, opacity .15s ease;
}
.showcase-card img { width: 100%; height: auto; border-radius: 12px; background: var(--surface-sunken); user-select: none; }
.showcase-card label { margin: 0; }
.showcase-card .row { gap: 10px; flex-wrap: wrap; }
.showcase-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.showcase-handle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px dashed var(--line);
  background: transparent;
  color: var(--muted);
  cursor: grab;
  touch-action: none;
}
.showcase-handle span { letter-spacing: -.2em; font-weight: 700; }
.showcase-card.dragging { opacity: .7; box-shadow: 0 16px 40px rgba(0, 0, 0, .18); }
.showcase-card.dragging .showcase-handle { cursor: grabbing; }
.showcase-order-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.showcase-order-bar .unsaved { color: var(--warn); font-weight: 600; }
/* Two columns on a phone, so the next photo is in reach of a dragging finger. */
@media (max-width: 600px) {
  .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .showcase-card { padding: 10px; gap: 10px; }
  .showcase-card-top { flex-wrap: wrap; gap: 6px; }
  .showcase-handle { padding: 0 10px; }
}
.inquiry { border-bottom: 1px solid var(--line); padding-block: 12px; }
.inquiry summary { cursor: pointer; overflow-wrap: anywhere; }
.inquiry dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; }
.inquiry dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.inquiry-message { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Dashboard phase 3 (2026-10-16): partner studios and the kiosk usage line. */
.partner-badge {
  flex: none;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent-soft, rgba(136, 120, 184, 0.18));
  color: var(--accent, #8878b8);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.kiosk-usage {
  align-items: center;
}

/* Dashboard phase 4 (2026-10-19): the event page with a tab per URL. */
.event-head {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.event-head h1 {
  margin: 0;
  overflow-wrap: anywhere;
}
.event-back {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.event-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: var(--card-gap, 20px);
  border-bottom: 1px solid var(--line);
}
.event-tabs a {
  flex: none;
  padding: 10px 14px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.event-tabs a.active {
  border-bottom-color: var(--accent, #8878b8);
  color: var(--ink);
  font-weight: 600;
}
.event-body {
  display: grid;
  gap: var(--card-gap, 20px);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.event-readonly-note {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface-2, rgba(136, 120, 184, 0.1));
}
.event-savebar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: var(--card-gap, 20px);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 -12px 30px -24px rgba(8, 8, 12, 0.5);
}
.event-save-status {
  flex: 1 1 240px;
  min-width: 0;
  margin: 0;
  color: var(--muted);
}
.event-save-status:not(:empty) {
  color: var(--ink);
  font-weight: 600;
}
.event-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: var(--card-gap, 20px);
  align-items: start;
}
.event-tool {
  min-width: 0;
}
@media (max-width: 900px) {
  .event-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .event-savebar {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
}

/* Phase 4: the live kiosk preview, a 1080 x 1920 replica scaled to its column
   (tokens from commercial_whx.dart). Only CSS variables are set from script. */
.event-preview-slot {
  position: sticky;
  top: 84px;
  min-width: 0;
}
.kiosk-preview-controls {
  flex-wrap: wrap;
  gap: 8px;
}
.kiosk-preview-toggle[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.kiosk-preview-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: var(--kp-height, 480px);
  overflow: hidden;
  border-radius: 16px;
  background: #17131f;
}
.kiosk-preview-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 1080px;
  height: 1920px;
  overflow: hidden;
  transform: scale(var(--kp-scale, 0.25));
  transform-origin: 0 0;
}
.kiosk-preview-screen.landscape {
  width: 1920px;
  height: 1080px;
}
.kiosk-preview-media,
.kiosk-preview-gradient,
.kiosk-preview-collage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kiosk-preview-gradient {
  background: linear-gradient(180deg, #8f81bb 0%, #a79bce 26%, #d6cfe9 62%, #f4f2f9 86%, #f8f7fb 100%);
}
.kiosk-preview-collage {
  display: flex;
  gap: 16px;
  padding: 0 16px;
  background: #17131f;
}
.kiosk-preview-collage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 14, 28, 0.34);
}
.kiosk-preview-collage-track {
  display: grid;
  flex: 1;
  gap: 16px;
  align-content: start;
  animation: kiosk-preview-drift 26s linear infinite alternate;
}
.kiosk-preview-collage-track.reverse {
  animation-direction: alternate-reverse;
}
.kiosk-preview-collage.paused .kiosk-preview-collage-track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .kiosk-preview-collage-track {
    animation: none;
  }
}
@keyframes kiosk-preview-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-520px); }
}
.kiosk-preview-tile {
  height: 380px;
  overflow: hidden;
  border-radius: 22px;
  background: #2a2433;
}
.kiosk-preview-tile.tile-1 { height: 318px; }
.kiosk-preview-tile.tile-2 { height: 446px; }
.kiosk-preview-tile.tile-3 { height: 352px; }
.kiosk-preview-tile img,
.kiosk-preview-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kiosk-preview-mark,
.kiosk-preview-heading,
.kiosk-preview-handle {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 1;
  text-align: center;
}
.kiosk-preview-mark {
  top: 70px;
  font-size: 46px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.kiosk-preview-heading {
  top: 170px;
  font-size: 50px;
  font-weight: 300;
  letter-spacing: 1.5px;
}
.kiosk-preview-handle {
  bottom: 60px;
  font-size: 30px;
}
.kiosk-preview-mark.at-corner,
.kiosk-preview-handle.at-corner {
  right: auto;
  left: 56px;
  text-align: left;
}
.kiosk-preview-mark.at-corner { top: 56px; }
.kiosk-preview-handle.at-corner { bottom: 56px; }
.kiosk-preview-screen .tone-white { color: #ffffff; }
.kiosk-preview-screen .tone-black { color: #0c0b10; }
.kiosk-preview-screen .tone-purple { color: #b2a8d4; }
.kiosk-preview-screen .handle-white { color: #b2a8d4; }
.kiosk-preview-screen .handle-black { color: #0c0b10; }
.kiosk-preview-screen .handle-purple { color: #b2a8d4; }
.kiosk-preview-start {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 18px;
  width: 720px;
  padding: 49px 64px 62px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 22px 54px rgba(14, 8, 30, 0.26);
  transform: translate(-50%, -50%);
}
.kiosk-preview-screen.landscape .kiosk-preview-start {
  transform: translate(-50%, -50%) scale(0.82);
}
.kiosk-preview-logo {
  color: #0c0b10;
  font-size: 64px;
  letter-spacing: 0.06em;
}
.kiosk-preview-caption {
  margin-bottom: 35px;
  color: #8d8c94;
  font-size: 35px;
  letter-spacing: 0.7px;
}
.kiosk-preview-pill {
  display: grid;
  place-items: center;
  width: 561px;
  height: 113px;
  border-radius: 999px;
  background: #0c0b10;
  color: #ffffff;
  font-size: 48px;
  letter-spacing: 0.06em;
}
.kiosk-preview-payment {
  position: absolute;
  bottom: 160px;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 44px;
  border-radius: 999px;
  background: #ffffff;
  color: #6e6d75;
  font-size: 28px;
  transform: translateX(-50%);
}
.kiosk-preview-payment strong {
  color: #0c0b10;
  font-size: 36px;
}
.kiosk-preview-themes {
  position: absolute;
  top: 290px;
  right: 60px;
  bottom: 150px;
  left: 60px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(var(--kp-columns, 5), minmax(0, 1fr));
  gap: 24px;
  align-content: start;
  overflow: hidden;
}
.kiosk-preview-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border-radius: 22px;
  background: #ffffff;
}
.kiosk-preview-card-image {
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 16px;
  background: #d6d1e6;
}
.kiosk-preview-card strong {
  overflow: hidden;
  color: #0c0b10;
  font-size: 24px;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.kiosk-preview-themes.layout-carousel {
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  align-content: center;
}
.kiosk-preview-themes.layout-carousel .side {
  opacity: 0.55;
  transform: scale(0.8);
}
.kiosk-preview-themes.layout-bubble .kiosk-preview-card {
  padding: 0;
  overflow: hidden;
  border-radius: 999px;
}
.kiosk-preview-themes.layout-bubble .kiosk-preview-card:nth-child(even) {
  transform: translateY(40%);
}
.kiosk-preview-themes.layout-bubble .kiosk-preview-card-image {
  border-radius: 999px;
}
.kiosk-preview-themes.layout-bubble .kiosk-preview-card strong {
  display: none;
}
.kiosk-preview-warning {
  margin: 8px 0 0;
  color: var(--danger, #b42318);
  font-weight: 600;
}

/* Phase 5 (2026-10-19): Beranda alerts. */
.home-alerts ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2, rgba(136, 120, 184, 0.1));
}
.home-alert span {
  flex: 1 1 220px;
  min-width: 0;
}
.home-alert.subscription_ended,
.home-alert.low_credit {
  border-left: 4px solid var(--danger, #b42318);
}

/* Phase 5 (2026-10-19): the studio logo in the workspace chip and on Profil studio. */
.workspace-logo {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--surface);
}
.studio-logo-preview {
  display: grid;
  place-items: center;
  min-height: 96px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.studio-logo-preview img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}

/* Phase 6 (2026-10-19): the admin client page. */
.client-facts {
  display: grid;
  grid-template-columns: minmax(8rem, max-content) minmax(0, 1fr);
  gap: 10px 20px;
  margin: 0;
}
.client-facts dt {
  color: var(--muted);
}
.client-facts dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.studio-logo-preview-small {
  max-width: 96px;
  max-height: 64px;
  object-fit: contain;
}
@media (max-width: 480px) {
  .client-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .client-facts dd {
    margin-bottom: 10px;
  }
}

/* Phase 6 (2026-10-19): the admin Beranda action queue. Each item is the
   link above its date, so a wrapped link never runs into the date. */
.admin-queue {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.admin-queue ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}
.admin-queue li {
  display: grid;
  gap: 2px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.admin-queue li > a,
.admin-queue li > small {
  display: block;
}
