﻿html { font-size: 16px; }

:root {
  --saycompute-primary: #5DCF55;
  --saycompute-accent: #00E5FF;
  --brand-green: var(--saycompute-primary);
  --brand-blue: var(--saycompute-accent);
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: system-ui, sans-serif;
  background: #f6f7f9;
  color: #0f172a;
}

.container {
  margin: 0 auto;
  max-width: 72rem;
  padding: 0.75rem 1rem 2.5rem;
}

/* Center footer ad/link and remove underline */
.center-footer-ad {
  text-align: center;
  margin: 1rem 0;
}
.center-footer-ad a { text-decoration: none; color: inherit; }

.site-banner {
  background: #fef2f2;
  color: #991b1b;
  border-bottom: 1px solid #fecaca;
  padding: 0.55rem 1rem;
  text-align: center;
  font-size: 0.9rem;
}

/* Very dark gray menu bar. The nav text is the bright brand green (var(--saycompute-primary), fixed -- see .nav-link
   below), which never had enough contrast against the old white header. Putting the bar on a
   dark surface is what that color was designed for. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #111827;
  border-bottom: 1px solid #0b1120;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  box-sizing: border-box;
}

.menu-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  margin-right: 0.25rem;
  color: inherit;
  text-decoration: none;
}

.menu-logo:hover { text-decoration: none; }

.menu-logo .brand-say,
.menu-logo .saycompute-wordmark__say { color: var(--saycompute-primary); }

.menu-logo .brand-compute,
.menu-logo .saycompute-wordmark__compute { color: var(--saycompute-accent); }

.menu-logo .brand-say,
.menu-logo .saycompute-wordmark__say { font-size: calc(1em + 2px); }

.menu-logo .brand-dot {
  color: var(--saycompute-accent);
  font-size: 1em;
  line-height: 1;
  margin: 0 0.08em;
}


.menu-logo img {
  display: block;
  height: 1.85rem;
  width: auto;
}

.brand-wordmark,
.saycompute-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-decoration: none;
  line-height: 1;
  margin-left: 0.4rem;
  white-space: nowrap;
  flex: 0 0 auto;
}

.brand-wordmark:hover,
.saycompute-wordmark:hover { text-decoration: none; }

.brand-say,
.saycompute-wordmark__say { color: var(--saycompute-primary); }

.brand-compute,
.saycompute-wordmark__compute { color: var(--saycompute-accent); }

.xcompute-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}

.xcompute-wordmark .xcompute-wordmark__x { color: var(--saycompute-primary); font-size: calc(1em + 2px); }
.xcompute-wordmark .xcompute-wordmark__compute { color: var(--saycompute-accent); }

.brand-inline {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  font-weight: 500;
}

.nav-link,
.user-menu-toggle {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.7rem;
    min-height: 2.75rem;
    background: transparent;
    /* Fixed chrome color -- do not read --brand-green here. That variable is
       overwritten site-wide (via bars.js) by the tenant's Support Portal brand
       colors, which are meant for shop buttons/cards/customer support only.
       Using it for header nav text/username made the header text color (and
       readability against the white header background) change unexpectedly
       per tenant, including disappearing entirely when a tenant's saved color
       was close to white. */
    color: var(--saycompute-primary);
    text-decoration: none;
    border: 0;
    border-radius: 0.5rem;
    font: 600 0.9rem system-ui, sans-serif;
    cursor: pointer;
}

    .nav-link:hover,
    .user-menu-toggle:hover {
        background: var(--saycompute-accent);
        color: #0f172a;
    }

    .nav-link[aria-expanded="true"],
    .user-menu-toggle[aria-expanded="true"] {
        background: var(--saycompute-accent);
        color: #0f172a;
    }

.nav-spacer { flex: 1 1 0; min-width: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-register {
  text-decoration: none;
  min-height: 2.75rem;
  padding: 0.4rem 0.85rem;
}

/* Register is the accent-first call to action: accent background, primary on hover. */
.btn-brand.nav-register {
  background: var(--brand-btn-hover, color-mix(in srgb, var(--brand-blue) 34%, #06341f));
}
.btn-brand.nav-register:hover {
  background: var(--brand-btn-bg, color-mix(in srgb, var(--brand-green) 34%, #06341f));
}

@media (max-width: 720px) {
  .site-nav { gap: 0.25rem; }
  .nav-spacer { flex-basis: 100%; height: 0; }
}

.app-switch {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.app-switch-label {
  font: 600 0.9rem system-ui, sans-serif;
  color: #e8eef6;
  white-space: nowrap;
}

.app-switch select,
.business-unit-switch {
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.4rem 0.55rem;
  min-height: 2.75rem;
  font: 600 0.9rem system-ui, sans-serif;
  background: #fff;
  color: #0f172a;
}

/* Do not let the user menu shrink or clip. bars.js injects the "Our Apps" and
   "Business Types" menus into .site-nav after first paint, which is enough extra
   width to squeeze this flex item to zero -- the username rendered, then visibly
   collapsed a moment later. It only looked correct with DevTools open because the
   narrower viewport wrapped the nav onto another row. */
.user-menu {
  position: relative;
  flex: 0 0 auto;
}

.user-menu-toggle {
  flex: 0 0 auto;
  white-space: nowrap;
}

.user-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 0.25rem);
  z-index: 40;
  min-width: 14rem;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.user-menu-list[hidden] { display: none; }

.user-menu-note {
  margin: 0;
  padding: 0.4rem 0.7rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.user-menu-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  padding: 0.5rem 0.7rem;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: #0f172a;
  font: 600 0.9rem system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.user-menu-item:hover { background: #f1f5f9; }

.user-menu form { margin: 0; }

.help-panel {
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.help-panel[hidden] { display: none; }

.help-main {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.35rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.6rem 1rem;
}

.help-item {
  background: #ecfdf3;
  color: #006b33;
  border: 0;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  font: 600 0.85rem system-ui, sans-serif;
}

.help-item:hover {
  background: var(--brand-btn-bg, color-mix(in srgb, var(--brand-green) 34%, #06341f));
  color: #fff;
}

.help-def {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem 2.2rem 1rem 1rem;
  color: #0f172a;
}

.help-def[hidden] { display: none; }
.help-def h2 { margin: 0 0 0.35rem; font-size: 1rem; }
.help-def p { margin: 0 0 0.5rem; color: #334155; }

.help-def-close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid #cbd5e1;
  background: transparent;
  color: #0f172a;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  border-radius: 0.35rem;
}

.work {
  width: 100%;
  position: relative;
}

.work-app { padding: 0.5rem 0 2.5rem; }

.work-kicker,
.home-kicker {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-green, var(--saycompute-primary));
}

.work-app-switch { min-width: 14rem; }

.work-prompt-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.work-prompt-row textarea { min-height: 8rem; }

.work-sera-avatar {
  flex: 0 0 auto;
  width: 64px;
  height: auto;
  object-fit: contain;
  align-self: flex-start;
}

.mascot-img {
  border: 1px solid #efdecd;
  border-radius: 6px;
  background: #fff;
}

.prompt-window {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.prompt-window-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.prompt-window-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
}

.prompt-window-input {
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.875rem;
  background: #fff;
}

.prompt-window-input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

@media (max-width: 640px) {
  .prompt-window-field { flex: 1 1 100%; }
}

.work-ask {
  min-width: 8.5rem;
  flex: 0 0 auto;
  align-self: flex-start;
  white-space: nowrap;
}

.work-report th {
  width: 32%;
  color: #555;
  font-weight: 600;
  background: #fafafa;
}

.work-report-wrap,
.sub-table-wrap { overflow-x: auto; }

.home-hero { padding: 2.5rem 0 1.5rem; }
.home-lead { max-width: 42rem; }
.home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0.75rem;
}
.home-note { color: #666; }
.home-band {
  padding: 1.75rem 0;
  border-top: 1px solid #eee;
}
.home-steps { padding-left: 1.2rem; }
.home-steps li { margin: 0.5rem 0; }
.home-close { margin-bottom: 2rem; }

@media (max-width: 576px) {
  .work-prompt-row { flex-direction: column; }
  .work-ask {
    align-self: flex-end;
  }
}

table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  border-bottom: 1px solid #eee;
  padding: 0.35rem 0.5rem;
  vertical-align: top;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.price-card {
  border: 1px solid #ddd;
  padding: 0.75rem;
  background: #fafafa;
}

.price-card.chosen { border-color: #1a5fd6; }
.price-card .price { font-size: 1.25rem; }

.price-pop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 1rem 1rem;
  overflow: auto;
}

.price-pop[hidden] { display: none; }

.price-pop-card {
  position: relative;
  width: min(920px, 100%);
  background: #fff;
  color: #111;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.25);
}

.price-pop-card .help-def-close {
  color: #111;
  border-color: #111;
}

.login-wrap {
  min-height: 60vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  background: #eef1f3;
}

.login-card {
  width: min(420px, 100%);
  padding: 1.75rem 1.5rem 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.login-card h1 { margin: 0 0 0.35rem; font-size: 1.6rem; }
.login-lead { margin: 0 0 1rem; color: #444; }

.social-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  font: 600 0.95rem system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0.5rem;
}

.social-btn svg { width: 18px; height: 18px; flex: 0 0 18px; }

.social-btn.google {
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
}
.social-btn.google:hover { background: #f7f8f8; }

.social-btn.apple {
  background: #000;
  color: #fff;
  border: 1px solid #000;
}
.social-btn.apple:hover { background: #222; }

.social-btn.microsoft {
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #8c8c8c;
}
.social-btn.microsoft:hover { background: #f3f3f3; }

.or-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.1rem 0;
  color: #666;
}
.or-line::before,
.or-line::after {
  content: "";
  flex: 1;
  border-top: 1px solid #ddd;
}

.login-form label { display: block; margin: 0.55rem 0 0.2rem; }
.login-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.7rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
}
.login-submit {
  margin-top: 0.9rem;
  width: 100%;
  padding: 0.65rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--brand-btn-bg, color-mix(in srgb, var(--brand-green) 34%, #06341f));
  color: #fff;
  font: 600 1rem system-ui, sans-serif;
  cursor: pointer;
}
.login-submit:hover { background: var(--brand-btn-hover, color-mix(in srgb, var(--brand-blue) 34%, #06341f)); color: #fff; }
.login-links {
  display: flex;
  justify-content: space-between;
  margin-top: 0.9rem;
}

.login-notice {
  background: #e7f6ee;
  color: #166534;
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
  margin: 0 0 1rem;
}

.login-notice-register {
  background: #fff7ed;
  color: #9a3412;
}

.login-notice-closed {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0.5rem 0 2rem;
}
.page-wide { max-width: 72rem; }

.settings-banner {
  background: #ecfdf3;
  color: #14532d;
  border: 1px solid #bbf7d0;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}
.settings-banner p { margin: 0; }
.settings-banner.settings-banner-danger { border-color: #dc2626; background: #fef2f2; color: #991b1b; }
.settings-banner p + p { margin-top: 0.35rem; }

.panel {
  background: linear-gradient(180deg, rgba(85, 212, 76, 0.06), rgba(81, 232, 255, 0.06)), #fff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid var(--theme-card-chrome, var(--brand-green));
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

/* --brand-green / --brand-blue are light accent tokens, so a filled surface mixes them toward
   #06341f to carry white label text. */
.btn-brand,
.work button[type=submit]:not(.login-submit),
.dialog-body button[type=submit] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.5rem;
  background: var(--brand-btn-bg, color-mix(in srgb, var(--brand-green) 34%, #06341f));
  color: #fff;
  font: 600 0.95rem system-ui, sans-serif;
  padding: 0.55rem 1rem;
  cursor: pointer;
  text-decoration: none;
}
.btn-brand:hover,
.work button[type=submit]:not(.login-submit):hover,
.dialog-body button[type=submit]:hover {
  background: var(--brand-btn-hover, color-mix(in srgb, var(--brand-blue) 34%, #06341f));
  color: #fff;
}

.btn-quiet,
.work button.btn-quiet[type=submit] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #fff;
  color: #0f172a;
  font: 600 0.95rem system-ui, sans-serif;
  padding: 0.55rem 1rem;
  cursor: pointer;
  text-decoration: none;
}
.btn-quiet:hover,
.work button.btn-quiet[type=submit]:hover { background: #f8fafc; color: #0f172a; }

.work > h1,
.page h1,
.panel > h1 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.work input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=button]):not([type=submit]),
.work select,
.work textarea,
.dialog-body input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),
.dialog-body select,
.dialog-body textarea {
  width: 100%;
  max-width: 32rem;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.55rem 0.7rem;
  font: inherit;
  background: #fff;
}

.work table input,
.work table select { width: auto; max-width: none; }

.work label,
.dialog-body label { font-weight: 600; font-size: 0.875rem; }

.validation-summary-errors {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
}

.legal {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0.5rem 0 2.5rem;
}
.legal h1 { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; }
.legal h2 { margin-top: 1.75rem; font-size: 1.1rem; font-weight: 600; }
.legal p, .legal li { color: #475569; line-height: 1.7; }
.legal-meta { font-size: 0.9rem; color: #64748b; }

.dialog-body {
  margin: 0;
  min-height: 100dvh;
  font-family: system-ui, sans-serif;
}

/* Point of Sale app page: Configuration / Entities and Lists / Launch Terminals tabs
   (Pages/Forms/Pos/Index.cshtml, wwwroot/js/pos-tabs.js, wwwroot/js/pos-config.js). */
.pos-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; border-bottom: 1px solid #e2e8f0; margin-bottom: 1rem; }
.pos-tab {
  border: none; background: none; padding: 0.6rem 0.9rem; font-weight: 600; font-size: 0.9rem;
  color: #64748b; cursor: pointer; border-bottom: 2px solid transparent;
}
.pos-tab.is-current { color: #0f172a; border-bottom-color: var(--theme-card-chrome, var(--brand-green, var(--saycompute-primary))); }
.pos-tab:hover { color: #0f172a; }

.pos-config-section { margin-bottom: 1.5rem; }
.pos-config-hint { color: #64748b; font-size: 0.82rem; margin: 0.2rem 0 0.6rem; }
.pos-config-status { font-size: 0.85rem; margin: 0.4rem 0; min-height: 1.1rem; }
.pos-config-status.is-error { color: #991b1b; }

.pos-config-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.pos-config-table th { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid #e2e8f0; color: #475569; }
.pos-config-table td { padding: 0.35rem 0.5rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.pos-config-table input, .pos-config-table select {
  border: 1px solid #cbd5e1; border-radius: 0.35rem; padding: 0.3rem 0.4rem; font: inherit; width: 100%;
}
.pos-config-table input[type=checkbox] { width: auto; }

.pos-config-add { margin-top: 0.7rem; border: 1px solid #e2e8f0; border-radius: 0.5rem; padding: 0.6rem 0.8rem; }
.pos-config-add summary { cursor: pointer; font-weight: 600; font-size: 0.88rem; }
.pos-config-add-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.6rem; margin: 0.7rem 0; }
.pos-config-add-grid label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.8rem; font-weight: 600; color: #475569; }
.pos-config-add-grid input, .pos-config-add-grid select {
  border: 1px solid #cbd5e1; border-radius: 0.35rem; padding: 0.4rem 0.5rem; font: inherit;
}

.pos-schedule-host { padding: 0.6rem 0; }
.pos-day-chip { display: inline-flex; align-items: center; gap: 0.2rem; font-size: 0.78rem; margin-right: 0.4rem; }
.pos-day-chip input { width: auto; }

/* Shift accountability report: over/short cash variance per closed shift */
.pos-short { color: #991b1b; font-weight: 600; }
.pos-over { color: #92400e; font-weight: 600; }

/* Contextual help: a "?" beside a field that opens a plain-language explanation in place. */
.pos-help-inline { display: inline-block; position: relative; vertical-align: middle; margin-left: 0.2rem; }
.pos-help-inline > summary {
  list-style: none; cursor: pointer; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  border: 1px solid #94a3b8; color: #475569; font-size: 0.7rem; font-weight: 700; line-height: 1rem; text-align: center;
}
.pos-help-inline > summary::-webkit-details-marker { display: none; }
.pos-help-inline[open] > div {
  position: absolute; z-index: 20; top: 1.4rem; left: -0.5rem; width: min(18rem, 80vw);
  background: #fff; color: #334155; border: 1px solid #cbd5e1; border-radius: 0.5rem;
  padding: 0.55rem 0.7rem; font-size: 0.8rem; font-weight: 400; line-height: 1.4; box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}
.pos-help { margin-top: 1rem; border: 1px solid #e2e8f0; border-radius: 0.5rem; padding: 0.6rem 0.8rem; }
.pos-help > summary { cursor: pointer; font-weight: 600; font-size: 0.88rem; }
.pos-help-styles { margin: 0.6rem 0 0; font-size: 0.85rem; }
.pos-help-styles dt { font-weight: 600; margin-top: 0.5rem; }
.pos-help-styles dd { margin: 0.1rem 0 0; color: #475569; }

/* Get started checklist */
.pos-setup-progress { font-size: 0.85rem; font-weight: 600; color: #475569; margin: 0.4rem 0; }
.pos-setup-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.pos-setup-steps li { display: flex; gap: 0.7rem; align-items: flex-start; border: 1px solid #e2e8f0; border-radius: 0.5rem; padding: 0.6rem 0.8rem; }
.pos-setup-steps li.is-done { background: #f0fdf4; border-color: #bbf7d0; }
.pos-setup-steps .pos-config-hint { margin: 0.15rem 0 0.3rem; }
.pos-step-mark {
  flex: 0 0 1.4rem; height: 1.4rem; border-radius: 50%; border: 2px solid #cbd5e1;
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; color: #fff;
}
.is-done .pos-step-mark { background: #16a34a; border-color: #16a34a; }

/* Today: one card per register */
.pos-register-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 0.8rem; }
.pos-register-card { border: 1px solid #e2e8f0; border-radius: 0.6rem; padding: 0.8rem 0.9rem; }
.pos-register-card.is-open { border-color: #86efac; }
.pos-register-card header { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.pos-register-card h4 { margin: 0; font-size: 0.95rem; font-weight: 600; }
.pos-style-chip { font-size: 0.72rem; font-weight: 600; color: #475569; background: #f1f5f9; border-radius: 999px; padding: 0.15rem 0.55rem; white-space: nowrap; }
.pos-register-state { font-size: 0.85rem; color: #334155; margin: 0.45rem 0; }
.pos-register-actions { display: flex; align-items: center; gap: 0.3rem; }
.pos-kiosk-setup { margin-top: 0.6rem; font-size: 0.82rem; }
.pos-kiosk-setup > summary { cursor: pointer; color: #475569; }
.pos-kiosk-url { word-break: break-all; }
.pos-drawer-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin: 0.5rem 0; }
.pos-drawer-table td { padding: 0.2rem 0; }
.pos-drawer-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.pos-drawer-table tr.is-total td { border-top: 1px solid #cbd5e1; font-weight: 700; padding-top: 0.35rem; }
.pos-over-short-preview { font-size: 0.85rem; min-height: 1.1rem; margin-bottom: 0.4rem; }


/* Compact assistant identity stays in normal flow beside its label. */
.sera-assistant {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  max-width: 100%;
}
.sera-assistant > img {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.sera-assistant > :not(img) { min-width: 0; overflow-wrap: anywhere; }

.feature-unavailable-note { display: block; margin: .35rem 0; color: #64748b; font-size: .85rem; font-weight: normal; }
[aria-disabled="true"] { cursor: not-allowed; }

/* The prompt/form swap toggle always sits at the right edge of its row, in flex toolbars and block containers alike. */
.work-layout-swap {
  display: block;
  margin-left: auto;
}

/* Tenant theme tokens (Settings > Brand colors > More colors). Each falls back to the original value. */
body { background: var(--theme-bg-page, #f6f7f9); color: var(--theme-text-main, #0f172a); }
.panel {
  background: linear-gradient(180deg, rgba(85, 212, 76, 0.06), rgba(81, 232, 255, 0.06)), var(--theme-bg-surface, #fff);
  border-color: var(--theme-card-border, #e2e8f0);
  border-top-color: var(--theme-card-chrome, var(--brand-green));
}
.shop-card { border-top-color: var(--theme-card-chrome, var(--brand-green)); }
.text-slate-500 { color: var(--theme-text-muted, rgb(100 116 139)); }
.text-slate-600 { color: var(--theme-text-secondary, rgb(71 85 105)); }

.brand-theme { margin-top: .9rem; border: 1px solid #e2e8f0; border-radius: .5rem; padding: .6rem .8rem; }
.brand-theme > summary { cursor: pointer; font-weight: 600; }
.brand-theme-palettes { display: flex; flex-direction: column; gap: .4rem; margin: .5rem 0; }
.brand-theme-palette { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.brand-theme-palette > span { min-width: 8rem; }
.brand-theme-swatch { width: 1.6rem; height: 1.6rem; border: 1px solid #cbd5e1; border-radius: .3rem; cursor: pointer; padding: 0; }
.brand-theme-import { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .6rem; }
.brand-theme-import textarea { width: 100%; font: .85rem ui-monospace, monospace; }
.brand-theme-group { border: 0; padding: 0; margin: .5rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .35rem; }
.brand-theme-group > legend { font-weight: 600; margin-bottom: .25rem; }
.brand-theme-row { display: flex; align-items: center; gap: .4rem; padding: .2rem .35rem; border: 1px solid transparent; border-radius: .35rem; cursor: pointer; }
.brand-theme-row > span { flex: 1; font-size: .9rem; }
.brand-theme-row input[type=color] { width: 2rem; height: 1.6rem; padding: 0; border: 0; }
.brand-theme-row input[type=text] { width: 5.5rem; font: .85rem ui-monospace, monospace; }
.brand-theme-row.is-active { border-color: var(--theme-card-chrome, var(--brand-green)); background: #f8fafc; }
/* Follow the OS/browser dark preference. Tenant theme values set inline still win. */
:root { color-scheme: light dark; }
@media (prefers-color-scheme: dark) {
  /* Dark Reader Default (background #181a1b, text #e8e6e3).
     Neutrals are that engine's mapping of the light tokens, not Tailwind slate. */
  :root {
    --theme-bg-page: #1c1f20;        /* #f6f7f9 */
    --theme-bg-surface: #181a1b;     /* #ffffff */
    --theme-card-border: #27374c;    /* border of #e2e8f0 */
    --theme-text-main: #d6d2cd;      /* #0f172a; pure black maps to #e8e6e3 */
    --theme-text-muted: #9d9487;     /* #64748b */
    --theme-text-secondary: #b0aa9f; /* #475569 */
  }
  .panel { background: var(--theme-bg-surface); }
  input, select, textarea { background: #181a1b; color: #e8e6e3; border-color: #3b3d3e; }
  .brand-theme-row.is-active { background: #242729; }
}
