:root {
  color-scheme: dark;
  --background: #101522;
  --panel: #181e2e;
  --card: #20283b;
  --line: #303a50;
  --ink: #f0f3ff;
  --muted: #aebad0;
  --accent: #dcf884;
  --blue: #c0cdff;
  --error: #ffbcb3;
  font-family: Geist, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--background); }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { opacity: .55; cursor: wait; }
button, input, select, textarea { min-height: 42px; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
a { color: inherit; }
p { line-height: 1.5; }
.site-header {
  display: flex; align-items: center; gap: 28px; padding: 15px max(24px, calc((100vw - 1200px)/2));
  background: #161c2a; border-bottom: 1px solid var(--line);
}
.brand { text-decoration: none; color: var(--accent); font-size: 23px; font-weight: 800; letter-spacing: -1px; white-space: nowrap; }
.brand span { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 9px; letter-spacing: 0; }
nav, .filters, .actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
nav button, .filters button { background: transparent; border: 0; color: var(--muted); border-radius: 8px; padding: 7px 13px; }
nav button[aria-current], .filters button[aria-pressed="true"] { color: var(--ink); background: #2c3650; }
.store { margin-left: auto; font-size: 13px; white-space: nowrap; color: var(--muted); }
.store i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 4px; }
main { max-width: 1248px; margin: auto; padding: 23px 24px 50px; }
.demo-note { color: var(--blue); font-size: 12px; margin-bottom: 19px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 23px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(33px, 4vw, 47px); letter-spacing: -.055em; line-height: 1; }
.page-heading p { color: var(--muted); margin-top: 9px; }
.primary, .quiet, .close, .secondary {
  border: 1px solid transparent; padding: 10px 14px; border-radius: 9px; font-size: 14px; font-weight: 600;
}
.primary { color: #1b2409; background: var(--accent); white-space: nowrap; }
.primary:hover { background: #eeffb0; }
.secondary, .close { border-color: var(--line); background: var(--panel); }
.quiet { background: transparent; color: var(--blue); }
.close { font-size: 22px; padding: 3px 12px; line-height: 1; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 21px; }
.metric { padding: 16px; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; }
.metric span { color: var(--muted); font-size: 13px; display: block; }
.metric strong { display: block; margin-top: 8px; font-size: clamp(22px, 3vw, 33px); letter-spacing: -.045em; overflow-wrap: anywhere; }
.metric:first-child { border-top-color: #a6be6a; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
input, select, textarea { width: 100%; min-width: 0; background: #121829; color: var(--ink); border: 1px solid #3a4661; border-radius: 8px; padding: 9px 11px; }
#search { max-width: 270px; }
::placeholder { color: #9eaac1; }
.board { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; align-items: start; }
.lane { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.lane-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 12px; }
.lane-head h2 { font-size: 15px; }
.lane-head span { color: var(--muted); font: 13px "IBM Plex Mono", monospace; }
.lane.ready { border-top-color: #aac57b; }
.lane.washing { border-top-color: #a5b6ef; }
.order-card { background: var(--card); text-align: left; display: block; width: 100%; border: 1px solid #38445e; padding: 13px; border-radius: 10px; }
.order-card + .order-card { margin-top: 9px; }
.order-card:hover { border-color: #8194c5; }
.order-card strong { display: block; font-size: 16px; margin: 8px 0 4px; overflow-wrap: anywhere; }
.card-top, .card-bottom, .split { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.card-bottom { margin-top: 13px; padding-top: 10px; border-top: 1px solid #39455d; font-size: 13px; }
.code { color: var(--blue); font: 500 12px "IBM Plex Mono", monospace; }
.muted, .empty { color: var(--muted); font-size: 13px; }
.empty { padding: 12px 0; }
.pill { display: inline-block; font-size: 11px; background: #34425e; color: #e0e8ff; padding: 3px 7px; border-radius: 5px; }
.pill.paid { background: #34452e; color: var(--accent); }
.pill.late, .error { color: var(--error); }
.service-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.panel, .service-card { background: var(--panel); border: 1px solid var(--line); padding: 17px; border-radius: 12px; }
.panel h2, .service-card h2 { font-size: 17px; margin-bottom: 7px; }
.service-card button { margin-top: 14px; }
.service-card .price { font-size: 23px; font-weight: 700; }
dialog { width: min(580px, calc(100vw - 26px)); max-height: calc(100dvh - 26px); color: var(--ink); background: #1b2233; border: 1px solid #41506c; border-radius: 15px; padding: 20px; }
dialog::backdrop { background: #080b15c9; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.dialog-heading h2 { font-size: 23px; letter-spacing: -.035em; }
label { display: grid; gap: 5px; font-size: 13px; margin: 10px 0; color: var(--muted); }
textarea { resize: vertical; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.line-heading { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.line-heading h3, .detail-section h3 { font-size: 14px; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) 85px 42px; gap: 7px; align-items: end; }
.line label { margin: 3px 0 6px; }
.line button { margin-bottom: 6px; }
.total { display: flex; justify-content: space-between; gap: 9px; margin: 14px 0; border-top: 1px solid var(--line); padding-top: 12px; }
.total strong { color: var(--accent); }
.wide { width: 100%; }
.checkbox { display: flex; align-items: center; }
.checkbox input { width: auto; min-height: 0; }
.detail-section { padding: 12px 0; border-top: 1px solid var(--line); margin-top: 12px; }
.detail-section h3 { margin-bottom: 8px; }
.detail-row { padding: 8px 0; border-bottom: 1px solid #303b52; font-size: 13px; }
.detail-row:last-child { border-bottom: 0; }
.actions { margin-top: 10px; }
.receipt-note { margin-top: 8px; color: var(--muted); overflow-wrap: anywhere; }
#detail-content strong, #detail-content h3 { overflow-wrap: anywhere; }
.error { margin: 9px 0; font-size: 13px; }
#toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); color: var(--ink); background: #293954; border: 1px solid #647aa5; border-radius: 10px; padding: 10px 14px; max-width: calc(100% - 26px); box-shadow: 0 5px 30px #0008; }
.login-panel { width: min(540px,calc(100% - 28px)); margin: 7vh auto; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.login-panel h1 { font-size: 35px; margin-bottom: 12px; }
.login-panel h2 { font-size: 20px; margin: 20px 0 12px; }
.business-selector { margin: 16px 0; display: flex; gap: 8px; align-items: end; }
.business-selector label { flex: 1; margin: 0; }
.login-profiles { display: grid; gap: 8px; }
.login-profiles button { display: flex; justify-content: space-between; align-items: center; padding: 14px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.login-profiles small { color: var(--muted); font-size: 12px; }
.demo-readonly :is(#new-order,#new-service,#new-profile,[data-service],[data-member],[data-status],[data-void],#payment-form) { display: none !important; }
button:active { transform: scale(.98); }
@media (max-width: 720px) {
  .site-header { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  nav { order: 3; flex-basis: 100%; }
  main { padding: 17px 14px 36px; }
  .board, .service-grid { grid-template-columns: 1fr; }
  .metrics { gap: 7px; }
  .metric { padding: 11px 9px; }
  .metric span { font-size: 11px; }
  .metric strong { font-size: 21px; }
  .toolbar, .page-heading { align-items: flex-start; flex-wrap: wrap; }
  #search { max-width: none; }
  .page-heading p { font-size: 14px; }
  .login-panel { padding: 21px 16px; margin: 25px auto; }
  .business-selector { display: block; }
  .business-selector button { margin-top: 8px; width: 100%; }
}
