:root {
  --brand: #0f766e;
  --brand-strong: #0a5c56;
  --brand-soft: #e6f5f2;
  --brand-pale: #f2faf8;
  --navy: #17212f;
  --navy-soft: #243244;
  --ink: #18242d;
  --muted: #66727d;
  --subtle: #8b96a0;
  --line: #dfe5e7;
  --line-strong: #ccd5d8;
  --canvas: #f5f7f8;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --amber: #b86c0c;
  --amber-soft: #fff3dd;
  --blue: #3267b2;
  --blue-soft: #eaf1fb;
  --green: #187451;
  --green-soft: #e6f5ee;
  --red: #b13b35;
  --red-soft: #fceceb;
  --purple: #7156a3;
  --purple-soft: #f0ebf9;
  --shadow-sm: 0 1px 2px rgba(23, 33, 47, .05), 0 5px 18px rgba(23, 33, 47, .04);
  --shadow-md: 0 18px 50px rgba(23, 33, 47, .10);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --sidebar-width: 252px;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea { font: inherit; }

button,
select { cursor: pointer; }

a { color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #36b7aa !important;
  outline-offset: 2px;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[hidden],
[data-role-visible].role-hidden { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand-lockup > span:last-child {
  display: grid;
  line-height: 1.15;
}

.brand-lockup strong {
  font-size: 17px;
  letter-spacing: -.02em;
}

.brand-lockup small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  width: 42px;
  height: 42px;
  padding: 10px 8px;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #1a8d84, #0c5f59);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 7px 15px rgba(15,118,110,.2);
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  bottom: 6px;
  height: 11px;
  border-radius: 50%;
  border-top: 2px solid rgba(255,255,255,.75);
}

.brand-mark i {
  z-index: 1;
  display: block;
  width: 4px;
  border-radius: 99px;
  background: #fff;
}

.brand-mark i:nth-child(1) { height: 10px; opacity: .7; }
.brand-mark i:nth-child(2) { height: 16px; }
.brand-mark i:nth-child(3) { height: 12px; opacity: .85; }

.button,
.button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button svg { width: 18px; height: 18px; }
.button.primary { color: #fff; background: var(--brand); box-shadow: 0 7px 18px rgba(15,118,110,.18); }
.button.primary:hover { background: var(--brand-strong); }
.button.dark { color: #fff; background: var(--navy); }
.button.secondary { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.button.secondary:hover { border-color: #aebabe; background: var(--surface-soft); }
.button.soft { color: var(--brand-strong); background: var(--brand-soft); }
.button.danger-soft { color: var(--red); background: var(--red-soft); }
.button.small { min-height: 38px; padding: 0 13px; font-size: 13px; }
.button.large { min-height: 52px; padding: 0 23px; font-size: 15px; }
.button.block { width: 100%; }
.button[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

.text-button {
  border: 0;
  color: var(--brand);
  background: transparent;
  padding: 0;
  font-size: 13px;
  font-weight: 750;
}

.icon-only {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--surface);
}

.icon-only svg { width: 20px; height: 20px; }

/* Public landing */
.public-body { background: #fff; }

.public-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(223,229,231,.8);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
}

.public-nav {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.public-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.public-links > a:not(.button) {
  color: #53616c;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.public-links > a:not(.button):hover { color: var(--brand); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 94px;
  background:
    radial-gradient(circle at 82% 18%, rgba(106,203,190,.18), transparent 27%),
    radial-gradient(circle at 5% 80%, rgba(248,199,120,.14), transparent 25%),
    linear-gradient(180deg, #fff 0%, #f7fbfa 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -5% -165px 45%;
  height: 300px;
  border: 1px solid rgba(15,118,110,.09);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(400px, .98fr);
  align-items: center;
  gap: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38a99e;
  box-shadow: 0 0 0 5px var(--brand-soft);
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  color: #14212a;
  font-size: clamp(44px, 5.6vw, 72px);
  line-height: .99;
  letter-spacing: -.055em;
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 0;
  color: #5d6a74;
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note i { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; color: var(--brand); background: var(--brand-soft); font-style: normal; }

.hero-demo {
  position: relative;
  min-height: 495px;
}

.demo-window {
  position: absolute;
  inset: 12px 0 auto 16px;
  overflow: hidden;
  border: 1px solid #d8e2e2;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(23,33,47,.16);
}

.demo-window-bar {
  display: flex;
  height: 48px;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  border-bottom: 1px solid #e7ecee;
  background: #fbfcfc;
}

.demo-window-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d6dddf; }
.demo-window-bar strong { margin-left: 8px; color: #6a757e; font-size: 11px; }

.demo-app {
  display: grid;
  grid-template-columns: 128px 1fr;
  min-height: 405px;
}

.demo-nav { padding: 18px 12px; color: #cdd5dd; background: var(--navy); }
.demo-logo { display: flex; align-items: center; gap: 6px; margin-bottom: 25px; color: #fff; font-size: 9px; font-weight: 800; }
.demo-logo span { width: 18px; height: 18px; border-radius: 5px; background: var(--brand); }
.demo-nav-item { height: 26px; margin-bottom: 6px; padding: 7px 8px; border-radius: 5px; font-size: 8px; }
.demo-nav-item.active { color: #fff; background: rgba(255,255,255,.1); }
.demo-content { padding: 22px; background: #f5f7f8; }
.demo-heading { display: flex; align-items: center; justify-content: space-between; }
.demo-heading strong { font-size: 13px; }
.demo-new { padding: 7px 10px; border-radius: 5px; color: #fff; background: var(--brand); font-size: 8px; font-weight: 800; }
.demo-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 14px; }
.demo-stat { padding: 11px; border: 1px solid #e3e8ea; border-radius: 7px; background: #fff; }
.demo-stat small { display: block; color: #8b959d; font-size: 7px; }
.demo-stat strong { display: block; margin-top: 3px; font-size: 16px; }
.demo-ticket { margin-top: 10px; padding: 13px; border: 1px solid #e0e6e8; border-radius: 8px; background: #fff; }
.demo-ticket-head { display: flex; align-items: center; justify-content: space-between; font-size: 9px; font-weight: 800; }
.demo-ticket-head span { padding: 4px 6px; border-radius: 99px; color: var(--amber); background: var(--amber-soft); font-size: 7px; }
.demo-person { display: flex; align-items: center; gap: 7px; margin-top: 12px; }
.demo-person i { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); }
.demo-lines { flex: 1; }
.demo-lines b, .demo-lines em { display: block; height: 5px; border-radius: 3px; background: #dbe2e4; }
.demo-lines em { width: 55%; margin-top: 5px; background: #edf0f1; }
.demo-progress { display: flex; align-items: center; margin-top: 15px; }
.demo-progress i { width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.demo-progress i:last-of-type { background: #fff; box-shadow: 0 0 0 1px #cbd3d6; }
.demo-progress span { height: 2px; flex: 1; background: var(--brand); }
.demo-progress span:last-of-type { background: #dce3e5; }

.floating-receipt {
  position: absolute;
  right: -26px;
  bottom: -8px;
  width: 195px;
  padding: 17px;
  border: 1px solid #dfe6e7;
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow-md);
  transform: rotate(2deg);
}

.floating-receipt::before { content: "✓"; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-weight: 800; }
.floating-receipt strong { display: block; margin-top: 10px; font-size: 12px; }
.floating-receipt span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.floating-receipt b { display: block; margin-top: 12px; font-size: 18px; }

.logo-strip { border-block: 1px solid var(--line); background: #fff; }
.logo-strip-inner { display: flex; min-height: 74px; align-items: center; justify-content: center; gap: 24px; color: var(--muted); text-align: center; font-size: 13px; }
.logo-strip-inner strong { color: var(--ink); }

.section { padding: 96px 0; }
.section.soft { background: var(--surface-soft); }
.section-heading { max-width: 650px; margin-bottom: 42px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading h2 { margin: 0; font-size: clamp(32px,4vw,48px); line-height: 1.08; letter-spacing: -.04em; }
.section-heading p { margin: 16px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }

.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.benefit-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.benefit-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 13px; color: var(--brand); background: var(--brand-soft); }
.benefit-icon svg { width: 24px; height: 24px; }
.benefit-card:nth-child(2) .benefit-icon { color: var(--blue); background: var(--blue-soft); }
.benefit-card:nth-child(3) .benefit-icon { color: var(--amber); background: var(--amber-soft); }
.benefit-card h3 { margin: 21px 0 8px; font-size: 19px; }
.benefit-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.process-grid { position: relative; display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.process-grid::before { content: ""; position: absolute; top: 29px; left: 12.5%; right: 12.5%; height: 1px; background: #cddbd9; }
.process-step { position: relative; text-align: center; }
.process-number { position: relative; z-index: 1; display: grid; width: 58px; height: 58px; margin: 0 auto 18px; place-items: center; border: 7px solid #f8fafb; border-radius: 50%; color: #fff; background: var(--brand); font-size: 14px; font-weight: 800; box-shadow: 0 0 0 1px #c9dad7; }
.process-step h3 { margin: 0; font-size: 16px; }
.process-step p { margin: 7px auto 0; max-width: 190px; color: var(--muted); font-size: 13px; }

.role-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.role-card { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.role-top { display: flex; align-items: center; gap: 13px; }
.role-avatar { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; color: var(--brand-strong); background: var(--brand-soft); font-size: 14px; font-weight: 850; }
.role-card:nth-child(2) .role-avatar { color: var(--blue); background: var(--blue-soft); }
.role-card:nth-child(3) .role-avatar { color: var(--purple); background: var(--purple-soft); }
.role-top h3 { margin: 0; font-size: 17px; }
.role-top small { color: var(--muted); }
.role-list { display: grid; gap: 10px; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; }
.role-list li { display: flex; gap: 9px; color: #55636d; font-size: 13px; }
.role-list li::before { content: "✓"; color: var(--brand); font-weight: 850; }

.final-cta { padding: 0 0 92px; }
.cta-card { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 35px; overflow: hidden; padding: 48px 54px; border-radius: 24px; color: #fff; background: var(--navy); }
.cta-card::after { content: ""; position: absolute; width: 260px; height: 260px; right: 18%; top: -190px; border: 50px solid rgba(37,168,155,.17); border-radius: 50%; }
.cta-card h2 { position: relative; z-index: 1; margin: 0; max-width: 650px; font-size: clamp(28px,4vw,42px); line-height: 1.1; letter-spacing: -.035em; }
.cta-card p { position: relative; z-index: 1; margin: 12px 0 0; color: #bdc7cf; }
.cta-card .button { position: relative; z-index: 1; color: var(--navy); background: #fff; }

.public-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: flex; min-height: 105px; align-items: center; justify-content: space-between; gap: 25px; }
.footer-copy { color: var(--muted); font-size: 12px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); font-size: 12px; text-decoration: none; }

/* App shell */
.prototype-banner {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  height: 28px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #f5f8fb;
  background: #0f1822;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.prototype-dot { width: 6px; height: 6px; border-radius: 50%; background: #55d6c7; box-shadow: 0 0 0 3px rgba(85,214,199,.15); }
.app-shell { display: grid; min-height: 100vh; grid-template-columns: var(--sidebar-width) minmax(0,1fr); padding-top: 28px; }
.app-sidebar { position: fixed; z-index: 60; top: 28px; bottom: 0; left: 0; display: flex; width: var(--sidebar-width); flex-direction: column; overflow-y: auto; color: #dbe2e9; background: var(--navy); }
.sidebar-brand { display: flex; min-height: 78px; align-items: center; justify-content: space-between; padding: 16px 17px; border-bottom: 1px solid rgba(255,255,255,.07); }
.sidebar-brand .brand-lockup strong { color: #fff; }
.sidebar-brand .brand-lockup small { color: #8593a1; }
.sidebar-brand .brand-mark { width: 39px; height: 39px; border-radius: 11px; box-shadow: none; }
.sidebar-close { display: none; color: #dbe2e9; border-color: rgba(255,255,255,.1); background: transparent; }
.sidebar-primary { display: flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; margin: 17px 15px 8px; border-radius: 8px; color: #fff; background: var(--brand); font-size: 14px; font-weight: 800; text-decoration: none; }
.sidebar-primary:hover { background: #11867d; }
.sidebar-primary svg { width: 18px; height: 18px; }
.sidebar-nav { display: grid; gap: 3px; padding: 4px 12px 15px; }
.nav-label { margin: 18px 9px 7px; color: #6f8090; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sidebar-nav a { display: flex; min-height: 42px; align-items: center; gap: 11px; padding: 0 11px; border-radius: 7px; color: #aeb9c4; font-size: 13px; font-weight: 650; text-decoration: none; }
.sidebar-nav a svg { width: 18px; height: 18px; flex: 0 0 auto; }
.sidebar-nav a:hover { color: #fff; background: rgba(255,255,255,.055); }
.sidebar-nav a.active { color: #fff; background: rgba(255,255,255,.095); box-shadow: inset 3px 0 0 #4fd1c5; }
.nav-count { display: inline-grid; min-width: 22px; height: 21px; margin-left: auto; place-items: center; border-radius: 99px; color: #c5d2dc; background: rgba(255,255,255,.08); font-size: 10px; }
.nav-count.warning { color: #ffdca1; background: rgba(222,144,24,.16); }
.sidebar-help { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; margin: auto 14px 12px; padding: 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; background: rgba(255,255,255,.04); }
.help-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; color: #aee7e1; background: rgba(49,178,164,.14); font-weight: 800; }
.sidebar-help div { display: grid; min-width: 0; }
.sidebar-help strong { color: #e7edf1; font-size: 11px; }
.sidebar-help small { overflow: hidden; color: #81909e; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-help .text-button { color: #79d5cb; font-size: 10px; }
.sidebar-user { display: grid; grid-template-columns: 36px 1fr 26px; align-items: center; gap: 9px; padding: 14px 15px; border-top: 1px solid rgba(255,255,255,.07); background: rgba(0,0,0,.09); }
.avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; color: #c4f0eb; background: rgba(40,166,153,.2); font-size: 11px; font-weight: 850; }
.sidebar-user div { display: grid; min-width: 0; }
.sidebar-user strong { overflow: hidden; color: #fff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user small { overflow: hidden; color: #7f8d9b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user form { margin: 0; }
.sidebar-signout { display: grid; width: 25px; height: 25px; padding: 0; place-items: center; border: 0; color: #8594a2; background: transparent; }
.sidebar-signout svg { width: 17px; height: 17px; }
.sidebar-scrim { display: none; }
.app-main { min-width: 0; grid-column: 2; }
.app-topbar { position: sticky; z-index: 25; top: 28px; display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 30px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 11px; }
.mobile-menu { display: none; }
.branch-picker { display: flex; align-items: center; gap: 10px; }
.branch-pin { position: relative; width: 9px; height: 9px; border: 2px solid var(--brand); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.branch-picker span:last-child { display: grid; line-height: 1.2; }
.branch-picker small { color: var(--muted); font-size: 9px; font-weight: 650; text-transform: uppercase; }
.branch-picker strong { margin-top: 2px; font-size: 12px; }
#demo-role-form { display: flex; align-items: stretch; gap: 5px; }
.demo-role-picker { display: flex; min-height: 38px; align-items: center; gap: 8px; padding: 0 9px 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.demo-role-picker span { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.demo-role-picker select { border: 0; outline: none; color: var(--ink); background: transparent; font-size: 12px; font-weight: 750; }
.demo-role-apply { min-height: 38px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--brand-strong); background: var(--brand-soft); font-size: 12px; font-weight: 800; }
.language-button { min-height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; font-size: 12px; font-weight: 700; }
.notification-button { position: relative; width: 38px; height: 38px; }
.notification-button i { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border: 2px solid #fff; border-radius: 50%; background: var(--red); }
.app-content { width: min(1440px, 100%); margin: 0 auto; padding: 30px; }

/* Shared app components */
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.page-heading h1 { margin: 0; font-size: 28px; line-height: 1.1; letter-spacing: -.035em; }
.page-heading p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.page-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.today-label { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 7px; color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.today-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.panel-header { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.panel-header h2 { margin: 0; font-size: 15px; }
.panel-header p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.panel-body { padding: 20px; }
.panel-link { color: var(--brand); font-size: 12px; font-weight: 750; text-decoration: none; }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px; }
.metric-card { position: relative; overflow: hidden; min-height: 128px; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.metric-card::after { content: ""; position: absolute; right: -24px; bottom: -34px; width: 82px; height: 82px; border-radius: 50%; background: var(--brand-soft); }
.metric-card.ready::after { background: var(--green-soft); }
.metric-card.delivery::after { background: var(--blue-soft); }
.metric-card.unpaid::after { background: var(--amber-soft); }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.metric-icon { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 9px; color: var(--brand); background: var(--brand-soft); }
.metric-icon svg { width: 18px; height: 18px; }
.metric-card.ready .metric-icon { color: var(--green); background: var(--green-soft); }
.metric-card.delivery .metric-icon { color: var(--blue); background: var(--blue-soft); }
.metric-card.unpaid .metric-icon { color: var(--amber); background: var(--amber-soft); }
.metric-change { color: var(--muted); font-size: 10px; font-weight: 650; }
.metric-value { display: block; margin-top: 12px; font-size: 28px; line-height: 1; letter-spacing: -.04em; }
.metric-label { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(300px,.8fr); gap: 18px; }
.attention-list, .activity-list { display: grid; }
.attention-item { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 14px 20px; border-bottom: 1px solid #edf0f1; text-decoration: none; }
.attention-item:last-child { border-bottom: 0; }
.attention-item:hover { background: #fbfcfc; }
.order-avatar { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 11px; color: var(--brand-strong); background: var(--brand-soft); font-size: 11px; font-weight: 850; }
.attention-copy { min-width: 0; }
.attention-copy strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.attention-copy span { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.attention-action { display: grid; justify-items: end; gap: 5px; }
.attention-action time { color: var(--red); font-size: 10px; font-weight: 750; }
.attention-action .button { min-width: 86px; }
.day-summary { display: grid; gap: 3px; }
.summary-ring { position: relative; display: grid; width: 154px; height: 154px; margin: 16px auto 23px; place-items: center; border-radius: 50%; background: conic-gradient(var(--brand) 0 68%, var(--brand-soft) 68%); }
.summary-ring::before { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: #fff; }
.summary-ring span { position: relative; z-index: 1; display: grid; text-align: center; }
.summary-ring strong { font-size: 29px; line-height: 1; }
.summary-ring small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.summary-line { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-top: 1px solid #edf0f1; font-size: 12px; }
.summary-line span { color: var(--muted); }
.summary-line strong { font-size: 13px; }

.status-pill, .payment-pill, .type-pill {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border-radius: 99px;
  color: var(--amber);
  background: var(--amber-soft);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
  text-transform: uppercase;
}
.status-pill::before, .payment-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pill.ready, .payment-pill.paid { color: var(--green); background: var(--green-soft); }
.status-pill.delivery { color: var(--blue); background: var(--blue-soft); }
.status-pill.completed { color: #5d6870; background: #edf0f1; }
.payment-pill.unpaid { color: var(--red); background: var(--red-soft); }
.type-pill { color: var(--blue); background: var(--blue-soft); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.search-control { position: relative; display: block; width: min(390px,100%); }
.search-control svg { position: absolute; top: 50%; left: 13px; width: 17px; height: 17px; color: #87939c; transform: translateY(-50%); }
.search-control input { width: 100%; height: 43px; padding: 0 13px 0 40px; border: 1px solid var(--line); border-radius: 8px; outline: none; background: #fff; font-size: 12px; }
.search-control input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,118,110,.1); }
.filter-tabs { display: flex; gap: 5px; overflow-x: auto; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: #fff; scrollbar-width: none; }
.filter-tab { min-height: 34px; padding: 0 12px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 750; white-space: nowrap; }
.filter-tab.active { color: var(--ink); background: #edf3f2; }
.filter-tab span { display: inline-grid; min-width: 18px; height: 18px; margin-left: 4px; place-items: center; border-radius: 99px; background: rgba(0,0,0,.055); font-size: 8px; }
.data-table { width: 100%; border-collapse: collapse; }
.table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .data-table { min-width: 680px; }
.data-table th { padding: 11px 16px; color: #859099; background: #fafbfb; font-size: 9px; font-weight: 800; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.data-table td { padding: 14px 16px; border-top: 1px solid #edf0f1; font-size: 11px; vertical-align: middle; }
.data-table tbody tr:hover { background: #fcfdfd; }
.data-table .order-ref { color: var(--brand); font-weight: 800; text-decoration: none; }
.table-person { display: grid; }
.table-person strong { font-size: 12px; }
.table-person small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.money { font-variant-numeric: tabular-nums; font-weight: 800; white-space: nowrap; }
.row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.mobile-ticket-list { display: none; }
.empty-state { padding: 55px 20px; text-align: center; }
.empty-icon { display: grid; width: 52px; height: 52px; margin: 0 auto 15px; place-items: center; border-radius: 14px; color: var(--brand); background: var(--brand-soft); font-size: 21px; font-weight: 850; }
.empty-state h3 { margin: 0; font-size: 16px; }
.empty-state p { margin: 6px auto 0; max-width: 360px; color: var(--muted); font-size: 12px; }

/* Forms and create order */
.create-layout { display: grid; grid-template-columns: minmax(0,1fr) 345px; align-items: start; gap: 18px; }
.step-card { margin-bottom: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.step-header { display: flex; align-items: center; gap: 12px; padding: 16px 19px; border-bottom: 1px solid var(--line); }
.step-number { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 8px; color: #fff; background: var(--brand); font-size: 11px; font-weight: 850; }
.step-header div { display: grid; }
.step-header strong { font-size: 14px; }
.step-header small { color: var(--muted); font-size: 10px; }
.step-body { padding: 19px; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 13px; }
.form-grid.three { grid-template-columns: repeat(3,1fr); }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field > span, .field > label { color: #52606a; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; outline: none; color: var(--ink); background: #fff; font-size: 12px; }
.field textarea { min-height: 82px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,118,110,.1); }
.field-hint { color: var(--muted); font-size: 9px; }
.field-error { color: var(--red) !important; font-size: 9px !important; font-weight: 650 !important; text-transform: none !important; }
.validation-summary { margin-bottom: 14px; padding: 11px 13px; border: 1px solid #edc9c6; border-radius: 8px; color: var(--red); background: var(--red-soft); font-size: 10px; }
.validation-summary:empty, .validation-summary-valid { display: none; }
.validation-summary ul { margin: 0; padding-left: 18px; }
.customer-results { display: grid; max-height: 320px; gap: 7px; overflow-y: auto; margin-top: 11px; padding-right: 3px; }
.customer-choice { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: left; }
.customer-choice:hover, .customer-choice.selected { border-color: var(--brand); background: var(--brand-pale); }
.customer-choice strong { display: block; font-size: 12px; }
.customer-choice small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.customer-choice .avatar { color: var(--brand); background: var(--brand-soft); }
.customer-choice > span:last-child { color: var(--brand); font-size: 10px; font-weight: 750; }
.category-chips { display: flex; gap: 7px; overflow-x: auto; margin-bottom: 13px; scrollbar-width: none; }
.category-chip { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: #fff; font-size: 10px; font-weight: 750; white-space: nowrap; }
.category-chip.active { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.service-choice { position: relative; min-height: 101px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; text-align: left; }
.service-choice:hover { border-color: var(--brand); box-shadow: 0 5px 15px rgba(15,118,110,.07); }
.service-choice .service-symbol { display: grid; width: 29px; height: 29px; margin-bottom: 10px; place-items: center; border-radius: 8px; color: var(--brand); background: var(--brand-soft); font-size: 13px; font-weight: 850; }
.service-choice strong { display: block; font-size: 11px; }
.service-choice small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.service-choice b { position: absolute; right: 11px; bottom: 11px; font-size: 11px; }
.service-choice::after { content: "+"; position: absolute; top: 10px; right: 10px; display: grid; width: 21px; height: 21px; place-items: center; border-radius: 6px; color: var(--brand); background: var(--brand-soft); font-size: 14px; font-weight: 650; }
.order-summary { position: sticky; top: 112px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.summary-title { display: flex; align-items: center; justify-content: space-between; padding: 17px 18px; border-bottom: 1px solid var(--line); }
.summary-title h2 { margin: 0; font-size: 15px; }
.summary-title span { color: var(--muted); font-size: 10px; }
.cart-empty { padding: 35px 18px; text-align: center; }
.cart-empty span { display: grid; width: 43px; height: 43px; margin: 0 auto 10px; place-items: center; border-radius: 12px; color: var(--brand); background: var(--brand-soft); }
.cart-empty strong { display: block; font-size: 12px; }
.cart-empty p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.cart-lines { max-height: 280px; overflow-y: auto; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px 17px; border-bottom: 1px solid #edf0f1; }
.cart-line strong { display: block; font-size: 11px; }
.cart-line small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.cart-line-price { text-align: right; }
.cart-line-price b { display: block; font-size: 11px; }
.qty-control { display: inline-flex; align-items: center; gap: 7px; margin-top: 7px; }
.qty-control button { display: grid; width: 22px; height: 22px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; }
.qty-control span { min-width: 14px; font-size: 10px; font-weight: 800; text-align: center; }
.remove-line { margin-top: 7px; border: 0; color: var(--red); background: transparent; padding: 0; font-size: 9px; font-weight: 750; }
.totals { display: grid; gap: 8px; padding: 14px 17px; background: #fafbfb; }
.total-row { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }
.total-row strong { color: var(--ink); font-size: 11px; }
.total-row.grand { margin-top: 3px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--ink); font-size: 12px; font-weight: 800; }
.total-row.grand strong { font-size: 18px; }
.accounts-payment-note { display: grid; gap: 3px; margin: 0 17px 14px; padding: 12px; border: 1px solid #c9dedb; border-radius: 8px; color: #4f6764; background: var(--brand-pale); }
.accounts-payment-note strong { color: var(--brand-strong); font-size: 12px; }
.accounts-payment-note span { font-size: 11px; }
.summary-submit { padding: 0 17px 17px; background: #fafbfb; }
.summary-disclaimer { margin: 9px 0 0; color: var(--muted); font-size: 8px; text-align: center; }

/* Details, accounting, admin */
.details-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: 18px; }
.order-overview { display: grid; gap: 16px; }
.customer-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 20px; }
.customer-identity { display: flex; align-items: center; gap: 12px; }
.customer-identity .avatar { width: 42px; height: 42px; }
.customer-identity strong { display: block; font-size: 13px; }
.customer-identity small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.mini-actions { display: flex; gap: 6px; }
.mini-actions a, .mini-actions button { display: grid; width: 35px; height: 35px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #fff; }
.mini-actions svg { width: 16px; height: 16px; }
.line-list { display: grid; }
.line-item { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 13px 20px; border-top: 1px solid #edf0f1; }
.line-symbol { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 9px; color: var(--brand); background: var(--brand-soft); font-size: 10px; font-weight: 850; }
.line-item strong { display: block; font-size: 11px; }
.line-item small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.line-item b { font-size: 11px; }
.detail-total { display: flex; align-items: center; justify-content: flex-end; gap: 35px; padding: 16px 20px; border-top: 1px solid var(--line); background: #fafbfb; }
.detail-total span { color: var(--muted); font-size: 10px; }
.detail-total strong { font-size: 19px; }
.status-stepper { display: grid; padding: 8px 20px 20px; }
.status-step { position: relative; display: grid; grid-template-columns: 26px 1fr auto; gap: 11px; min-height: 62px; }
.status-step:not(:last-child)::before { content: ""; position: absolute; top: 25px; bottom: -1px; left: 12px; width: 2px; background: #dfe5e7; }
.step-dot { position: relative; z-index: 1; display: grid; width: 26px; height: 26px; place-items: center; border: 2px solid #d5dddf; border-radius: 50%; color: transparent; background: #fff; font-size: 10px; font-weight: 850; }
.status-step.done .step-dot, .status-step.current .step-dot { border-color: var(--brand); color: #fff; background: var(--brand); }
.status-step.current .step-dot { box-shadow: 0 0 0 5px var(--brand-soft); }
.status-step.done:not(:last-child)::before { background: var(--brand); }
.status-step-copy strong { display: block; font-size: 11px; }
.status-step-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.status-step time { color: var(--muted); font-size: 9px; }
.info-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; overflow: hidden; border-top: 1px solid var(--line); background: var(--line); }
.info-item { padding: 13px 18px; background: #fff; }
.info-item span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.info-item strong { display: block; margin-top: 4px; font-size: 11px; }
.note-box { margin: 0 20px 20px; padding: 13px; border-left: 3px solid #e1ad5a; border-radius: 4px 8px 8px 4px; color: #6b5127; background: var(--amber-soft); font-size: 10px; }
.primary-action-card { padding: 20px; border: 1px solid #b8d9d4; border-radius: var(--radius); background: var(--brand-pale); }
.primary-action-card h3 { margin: 0; font-size: 15px; }
.primary-action-card p { margin: 6px 0 15px; color: #5e7774; font-size: 10px; }
.action-warning { display: grid; gap: 2px; margin: 0 0 12px; padding: 11px 12px; border: 1px solid #efcaca; border-radius: 8px; color: #7f3733; background: var(--red-soft); }
.action-warning strong { font-size: 13px; }
.action-warning span { font-size: 12px; }
.receipt-state { display: flex; align-items: center; gap: 11px; padding: 13px 20px; border-top: 1px solid var(--line); }
.receipt-state-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; color: var(--green); background: var(--green-soft); font-weight: 850; }
.receipt-state div { display: grid; flex: 1; }
.receipt-state strong { font-size: 10px; }
.receipt-state small { color: var(--muted); font-size: 9px; }
.account-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 18px; }
.account-metric { padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.account-metric span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.account-metric strong { display: block; margin-top: 7px; font-size: 25px; letter-spacing: -.035em; }
.account-metric small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.breakdown { display: grid; gap: 14px; }
.breakdown-row { display: grid; grid-template-columns: 75px 1fr auto; align-items: center; gap: 10px; font-size: 10px; }
.bar-track { height: 7px; overflow: hidden; border-radius: 99px; background: #edf0f1; }
.bar-fill { height: 100%; border-radius: inherit; background: var(--brand); }
.bar-fill.card { background: var(--blue); }
.bar-fill.benefit { background: var(--amber); }
.admin-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.admin-card { padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; box-shadow: var(--shadow-sm); }
.admin-card:hover { border-color: #b6cfcc; transform: translateY(-1px); }
.admin-card .benefit-icon { width: 40px; height: 40px; }
.admin-card h3 { margin: 15px 0 5px; font-size: 14px; }
.admin-card p { margin: 0; color: var(--muted); font-size: 10px; }
.admin-card span:last-child { display: inline-block; margin-top: 14px; color: var(--brand); font-size: 10px; font-weight: 800; }
.permission-list { display: grid; }
.permission-row { display: grid; grid-template-columns: 1fr repeat(3,90px); align-items: center; gap: 10px; padding: 13px 18px; border-top: 1px solid #edf0f1; font-size: 10px; }
.permission-row.header { border-top: 0; color: var(--muted); background: #fafbfb; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.permission-check { display: grid; width: 21px; height: 21px; margin: auto; place-items: center; border-radius: 6px; color: var(--green); background: var(--green-soft); font-weight: 850; }
.permission-no { color: #b8c0c4; text-align: center; }

/* Login, dialogs, printable docs */
.login-page { display: grid; min-height: 100vh; grid-template-columns: minmax(360px,.8fr) minmax(500px,1.2fr); background: #fff; }
.login-panel { display: flex; flex-direction: column; padding: 36px clamp(30px,6vw,88px); }
.login-panel .brand-lockup { margin-bottom: auto; }
.login-form-wrap { width: min(410px,100%); margin: 70px auto; }
.login-form-wrap .eyebrow { margin-bottom: 13px; }
.login-form-wrap h1 { margin: 0; font-size: 35px; letter-spacing: -.045em; }
.login-form-wrap > p { margin: 10px 0 27px; color: var(--muted); font-size: 13px; }
.role-preview { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin: 12px 0 20px; }
.role-preview label { position: relative; }
.role-preview input { position: absolute; opacity: 0; }
.role-preview span { display: grid; min-height: 67px; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #fff; font-size: 10px; font-weight: 750; text-align: center; }
.role-preview input:checked + span { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.login-footnote { margin-top: auto; color: var(--muted); font-size: 10px; }
.login-visual { position: relative; display: grid; overflow: hidden; place-items: center; background: linear-gradient(145deg, #11212b, #183a3c); }
.login-visual::before, .login-visual::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.login-visual::before { width: 520px; height: 520px; right: -160px; top: -170px; }
.login-visual::after { width: 370px; height: 370px; left: -190px; bottom: -180px; }
.login-quote { position: relative; z-index: 1; width: min(440px,70%); color: #fff; }
.login-quote .washer { position: relative; width: 190px; height: 190px; margin: 0 auto 45px; border: 10px solid rgba(255,255,255,.08); border-radius: 45px; background: rgba(255,255,255,.05); }
.washer::before { content: ""; position: absolute; inset: 37px; border: 8px solid rgba(255,255,255,.3); border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(71,204,190,.8), rgba(16,91,86,.9)); box-shadow: inset 0 0 0 12px rgba(255,255,255,.06); }
.washer::after { content: "•••"; position: absolute; top: 8px; right: 17px; color: #62cbbf; font-size: 13px; letter-spacing: 4px; }
.login-quote blockquote { margin: 0; font-size: 26px; font-weight: 650; line-height: 1.35; letter-spacing: -.03em; }
.login-quote p { margin: 15px 0 0; color: #9eb4b6; font-size: 12px; }
.dialog { width: min(500px,calc(100% - 28px)); padding: 0; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 25px 90px rgba(14,24,32,.28); }
.dialog::backdrop { background: rgba(14,24,32,.55); backdrop-filter: blur(3px); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 20px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: 0; font-size: 17px; }
.dialog-header p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.dialog-close { border: 0; color: var(--muted); background: transparent; font-size: 21px; }
.dialog-body { padding: 20px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: #fafbfb; }
.toast { position: fixed; z-index: 150; right: 25px; bottom: 25px; display: flex; max-width: min(390px,calc(100% - 30px)); align-items: center; gap: 10px; padding: 13px 16px; border: 1px solid #c8e1dc; border-radius: 10px; color: #234b43; background: #f1faf7; box-shadow: var(--shadow-md); font-size: 11px; font-weight: 700; opacity: 0; pointer-events: none; transform: translateY(15px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-check { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-weight: 850; }
.document-page { width: min(800px,calc(100% - 30px)); margin: 35px auto; padding: 42px; background: #fff; box-shadow: var(--shadow-md); }
.document-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; padding-bottom: 25px; border-bottom: 2px solid var(--ink); }
.document-head h1 { margin: 0; font-size: 27px; }
.document-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.prototype-stamp { padding: 7px 11px; border: 2px solid var(--red); color: var(--red); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; transform: rotate(2deg); }
.document-info { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; padding: 23px 0; }
.document-info div { display: grid; gap: 3px; }
.document-info span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.document-info strong { font-size: 12px; }
.document-table { width: 100%; border-collapse: collapse; }
.document-table th { padding: 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; text-align: left; text-transform: uppercase; }
.document-table td { padding: 12px 10px; border-bottom: 1px solid #edf0f1; font-size: 11px; }
.document-totals { display: grid; width: 260px; gap: 8px; margin: 20px 0 0 auto; }
.document-totals div { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.document-totals .grand { padding-top: 10px; border-top: 1px solid var(--ink); color: var(--ink); font-size: 14px; font-weight: 850; }
.document-footer { margin-top: 35px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; text-align: center; }
.document-actions { display: flex; justify-content: center; gap: 9px; margin: 20px auto 40px; }
.simple-page { display: grid; min-height: 100vh; place-items: center; padding: 25px; }
.simple-card { width: min(450px,100%); padding: 35px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-align: center; box-shadow: var(--shadow-md); }
.simple-card h1 { margin: 0; font-size: 25px; }
.simple-card p { margin: 10px 0 20px; color: var(--muted); font-size: 12px; }

@media (max-width: 1100px) {
  .hero-grid { gap: 35px; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .service-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-grid, .details-grid { grid-template-columns: 1fr; }
  .day-summary { grid-template-columns: 160px 1fr; align-items: center; }
  .summary-ring { margin: 12px auto; }
}

@media (max-width: 900px) {
  .container { width: min(100% - 30px, 720px); }
  .public-links > a:not(.button) { display: none; }
  .hero { padding: 58px 0 75px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 680px; }
  .hero-demo { width: min(560px,100%); min-height: 470px; margin: 0 auto; }
  .benefit-grid, .role-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2,1fr); gap: 35px 15px; }
  .process-grid::before { display: none; }
  .cta-card { grid-template-columns: 1fr; padding: 38px; }
  .app-shell { display: block; }
  .app-main { grid-column: auto; }
  .app-sidebar { top: 28px; width: min(290px,86vw); transform: translateX(-105%); transition: transform .2s ease; box-shadow: 20px 0 60px rgba(0,0,0,.25); }
  body.sidebar-open .app-sidebar { transform: translateX(0); }
  .sidebar-close { display: grid; }
  .sidebar-scrim { position: fixed; z-index: 50; inset: 28px 0 0 0; display: block; border: 0; background: rgba(13,23,31,.45); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  body.sidebar-open .sidebar-scrim { opacity: 1; pointer-events: auto; }
  .mobile-menu { display: grid; }
  .app-content { padding: 24px 20px; }
  .create-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .admin-grid { grid-template-columns: repeat(2,1fr); }
  .login-page { grid-template-columns: 1fr; }
  .login-panel { min-height: 100vh; }
  .login-visual { display: none; }
}

@media (max-width: 650px) {
  .public-nav { min-height: 66px; }
  .public-nav .button { min-height: 40px; padding: 0 12px; font-size: 12px; }
  .public-nav .brand-lockup small { display: none; }
  .hero { padding-top: 45px; }
  .hero h1 { font-size: 44px; }
  .hero-copy { font-size: 15px; }
  .hero-actions .button { width: 100%; }
  .hero-demo { min-height: 360px; }
  .demo-window { inset: 5px 0 auto; }
  .demo-app { grid-template-columns: 92px 1fr; min-height: 290px; }
  .demo-nav { padding: 12px 8px; }
  .demo-content { padding: 14px; }
  .floating-receipt { right: -3px; bottom: -16px; width: 165px; }
  .section { padding: 68px 0; }
  .section-heading { margin-bottom: 28px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .cta-card { padding: 30px 25px; border-radius: 17px; }
  .footer-inner { flex-direction: column; justify-content: center; text-align: center; padding: 25px 0; }
  .app-topbar { min-height: 62px; padding: 0 14px; }
  .branch-picker small, .language-button, .notification-button { display: none; }
  .demo-role-picker { padding-left: 8px; }
  .demo-role-picker span { display: none; }
  .app-content { padding: 20px 13px 85px; }
  .page-heading { align-items: stretch; flex-direction: column; gap: 14px; }
  .page-heading-actions { justify-content: stretch; }
  .page-heading-actions .button { flex: 1; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { min-height: 112px; padding: 15px; }
  .metric-value { font-size: 24px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .filter-tabs { width: 100%; }
  .desktop-table { display: none; }
  .mobile-ticket-list { display: grid; gap: 9px; }
  .mobile-ticket-card { display: grid; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
  .mobile-ticket-head, .mobile-ticket-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .mobile-ticket-head a { color: var(--brand); font-size: 11px; font-weight: 800; text-decoration: none; }
  .mobile-ticket-person strong { display: block; font-size: 12px; }
  .mobile-ticket-person small { color: var(--muted); font-size: 9px; }
  .mobile-ticket-foot { padding-top: 10px; border-top: 1px solid #edf0f1; }
  .mobile-ticket-foot .button { min-height: 36px; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .details-grid { gap: 12px; }
  .account-metrics, .admin-grid { grid-template-columns: 1fr; }
  .permission-row { grid-template-columns: 1fr repeat(3,50px); padding-inline: 10px; }
  .day-summary { display: block; }
  .document-page { width: 100%; margin: 0; padding: 25px 18px; box-shadow: none; }
  .document-info { grid-template-columns: 1fr; gap: 12px; }
  .document-actions { margin-bottom: 20px; }
  .login-panel { padding: 25px 22px; }
  .login-form-wrap { margin: 50px auto; }
}

/* Keep operational screens readable for counter staff without making the layout dense. */
.app-body .prototype-banner { font-size: 12px; }
.app-body .nav-label { font-size: 11px; }
.app-body .sidebar-nav a { font-size: 14px; }
.app-body .sidebar-help strong,
.app-body .sidebar-user strong { font-size: 13px; }
.app-body .sidebar-help small,
.app-body .sidebar-user small { font-size: 11px; }
.app-body .branch-picker small,
.app-body .demo-role-picker span { font-size: 11px; }
.app-body .branch-picker strong,
.app-body .demo-role-picker select { font-size: 13px; }
.app-body .panel-header h2 { font-size: 17px; }
.app-body .panel-header p,
.app-body .metric-change,
.app-body .metric-label { font-size: 12px; }
.app-body .attention-copy strong,
.app-body .table-person strong { font-size: 14px; }
.app-body .attention-copy span,
.app-body .attention-action time,
.app-body .table-person small { font-size: 12px; }
.app-body .status-pill,
.app-body .payment-pill,
.app-body .type-pill { font-size: 11px; }
.app-body .search-control input { font-size: 14px; }
.app-body .filter-tab { font-size: 13px; }
.app-body .data-table th { font-size: 11px; }
.app-body .data-table td { font-size: 13px; }
.app-body .field > span,
.app-body .field > label { font-size: 12px; }
.app-body .field input,
.app-body .field select,
.app-body .field textarea { font-size: 14px; }
.app-body .field-hint,
.app-body .field-error,
.app-body .validation-summary { font-size: 12px !important; }
.app-body .customer-choice strong,
.app-body .service-choice strong,
.app-body .cart-line strong { font-size: 13px; }
.app-body .customer-choice small,
.app-body .service-choice small,
.app-body .cart-line small,
.app-body .cart-empty p { font-size: 11px; }
.app-body .customer-choice > span:last-child,
.app-body .category-chip,
.app-body .service-choice b,
.app-body .cart-line-price b,
.app-body .total-row,
.app-body .total-row strong { font-size: 12px; }
.app-body .qty-control button { width: 30px; height: 30px; }
.app-body .qty-control span,
.app-body .remove-line,
.app-body .summary-disclaimer { font-size: 11px; }
.app-body .customer-identity strong,
.app-body .line-item strong,
.app-body .status-step-copy strong,
.app-body .info-item strong { font-size: 13px; }
.app-body .customer-identity small,
.app-body .line-item small,
.app-body .status-step-copy small,
.app-body .status-step time,
.app-body .info-item span,
.app-body .receipt-state small,
.app-body .account-metric small { font-size: 11px; }
.app-body .primary-action-card p,
.app-body .receipt-state strong,
.app-body .admin-card p,
.app-body .admin-card span:last-child { font-size: 12px; }
.app-body .mobile-ticket-head a,
.app-body .mobile-ticket-person small { font-size: 12px; }
.app-body .mobile-ticket-person strong { font-size: 14px; }

@media print {
  .prototype-banner, .app-sidebar, .app-topbar, .document-actions, .toast { display: none !important; }
  .app-shell { display: block; padding: 0; }
  .app-main { display: block; }
  .app-content { padding: 0; }
  .document-page { width: 100%; margin: 0; padding: 20px; box-shadow: none; }
  body { background: #fff; }
}
