/* Tulsi three-shop ordering — shared look.
   Kaiku Labs house tokens (DESIGN.md) and the visual language of the preview
   the family approved on 2026-08-03. Light only — never a dark screen (house rule). */

@font-face{font-family:"Atkinson";font-weight:400;font-display:swap;
  src:url("fonts/atkinson-400-latin.woff2") format("woff2")}
@font-face{font-family:"Atkinson";font-weight:700;font-display:swap;
  src:url("fonts/atkinson-700-latin.woff2") format("woff2")}

:root{
  color-scheme:light;
  --night:#0b1730;
  --blue:#1763ff;
  --deep:#0d3ea8;
  --blue-hover:#0d3ea8;
  /* The approved functional green, kept at the one value that passes the text
     contrast target. Nothing paints with it since the per-dish onion-and-garlic
     mark was deleted on 13 August; it stays so the next green on these screens
     starts from the checked value rather than a fresh guess. */
  --green:#197653;
  --veg:#1e8a3c;
  --lime:#dff84a;
  --coral:#d9815f;
  --amber:#986000;
  --amber-bg:#fff3ce;
  --red:#b3261e;
  --red-bg:#fdecea;
  --ink:#142033;
  --soft:#5f6f85;
  --page:#f7f9fc;
  --card:#ffffff;
  --line:#d8e2ef;
  --control:#66758a;
  --frame:#e8edf5;
  --soft-blue:#eef4ff;
  --soft-blue-line:#c7d9f7;
  --positive-bg:#e4f5ec;
  --positive-line:#bfe3d2;
  --positive-ink:#12583c;
  --warm-bg:#fff8f3;
  --warm-ink:#8a4526;
  --disabled-bg:#f2f5fa;
  --amber-line:#e7d19a;
  --amber-ink:#5c3d00;
  --red-line:#f0c4bf;
  /* THE BORDER IS THE ONLY THING DRAWING THESE CONTROLS, so it has to reach the
     3:1 a control's own boundary needs (WCAG 2.2, 1.4.11). At #97a7c0 it was
     2.44 on a white card and 2.05 against the lime flash on the sound strip:
     twenty-two controls whose edges the standard says are too faint to find,
     including every Edit and Mark-finished on the owner's dish list.
     Two rules wrote that hex by hand rather than reading this line, so the token
     itself was used by nothing and darkening it alone would have changed nothing
     at all -- both now read it. Measured against every background either control
     sits on: white 4.05, page 3.84, amber strip 3.65, green strip 3.58, lime
     flash 3.40. Still plainly lighter than --control, which is the difference
     these were reaching for. */
  --quiet-line:#6e8096;
  --band-muted:#aebfd4;
  --band-soft:#cad6e8;
  --band-note:#bdd2c4;
  --band-warm:#ffd9a8;
  --select-bg:#132242;
  --select-line:#516585;
  --focus:#0d47a1;
  --shadow:0 2px 8px rgba(20,32,51,.08);
  --page-gutter:clamp(18px,2.5vw,24px);
  --display:"Atkinson","Segoe UI",Arial,sans-serif;
  --body:"Atkinson","Segoe UI",Arial,sans-serif;
}

*{box-sizing:border-box;margin:0}
html{-webkit-text-size-adjust:100%;overscroll-behavior-y:none}
body{background:var(--page);color:var(--ink);font-family:var(--body);
  /* Must-have 8: smallest type on any customer screen is 16. Raise only. */
  font-size:16px;line-height:1.5;min-height:100vh;overscroll-behavior-y:none}

[hidden]{display:none!important}

button,input,select{font:inherit;color:inherit}
button{cursor:pointer;touch-action:manipulation;
  transition:background-color 120ms ease,border-color 120ms ease,color 120ms ease,filter 120ms ease}
button:disabled{cursor:not-allowed}
/* A pressed control changes tone, never position. Counter buttons stay under
   the finger, and disabled controls never borrow the enabled pressed state. */
button:not(:disabled):active{filter:brightness(.88)}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px;
  box-shadow:0 0 0 5px var(--card)}

/* 16 as well: the landing is the first screen a customer sees, and must-have 8
   has no small print. */
.kicker{font-family:var(--display);font-weight:700;font-size:16px;
  letter-spacing:.08em;text-transform:uppercase;color:var(--deep)}

/* The Indian vegetarian mark: green-bordered white square, filled circle. */
.vegdot{width:17px;height:17px;background:var(--card);border:2.5px solid var(--veg);
  display:inline-block;position:relative;flex:none}
.vegdot::after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--veg)}

.band{background:var(--card);color:var(--ink);border-bottom:1px solid var(--line)}
.card{background:var(--card);border:1px solid var(--line);border-radius:8px;
  box-shadow:var(--shadow)}

.btn{font-family:var(--display);font-weight:700;background:var(--blue);color:#fff;
  border:1px solid var(--blue);border-radius:8px;padding:12px 20px;font-size:16px;min-height:44px}
.btn[disabled]{background:var(--disabled-bg);border-color:var(--line);color:var(--soft)}
.btn-quiet{background:var(--card);color:var(--deep);border:1.5px solid var(--blue)}
@media(hover:hover){
  .btn:not(:disabled):hover{background:var(--blue-hover)}
  .btn-quiet:not(:disabled):hover{background:#eef4ff;color:var(--deep)}
  /* Red-outline buttons keep red on a light red; the blue hover above made red text on dark blue. */
  .finish:not(:disabled):hover,.stopbtn:not(:disabled):hover,.danger:not(:disabled):hover{background:var(--red-bg)}
}

/* 16 is the floor everywhere a customer reads, per must-have 8. Raise, never lower. */
.note{font-size:16px;color:var(--soft)}

/* Account controls join the screen with the same breathing room as its content. */
.account-card{width:calc(100% - 2 * var(--page-gutter));max-width:936px;
  margin:24px auto;padding:clamp(18px,2.5vw,24px);border:1px solid var(--line);
  border-radius:8px;background:var(--card);display:grid;gap:16px;overflow-wrap:anywhere}
.account-card h2{font-family:var(--display);font-size:22px;line-height:1.3}
.account-actions{display:flex;flex-wrap:wrap;gap:12px}
.account-actions .btn{max-width:100%;white-space:normal}
.session-actions{max-width:984px;margin:0 auto;padding:0 var(--page-gutter) 28px}
.account-card form{display:grid;gap:16px}
.account-card input:not([type=checkbox]){display:block;width:100%;min-width:0;
  min-height:44px;margin-top:6px;padding:10px 12px;border:1px solid var(--control);border-radius:8px}
.account-content > * + *,.tulsi-privacy-lock > * + *{margin-top:20px}
dialog.tulsi-privacy-lock{margin:auto;inset:0;height:auto;max-height:calc(100dvh - 32px);overflow-y:auto}
.tulsi-privacy-lock input{width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--control);border-radius:8px;background:var(--card)}
#owner-tools .account-card,#owner-tools .payment-corrections{width:100%;max-width:none;margin:24px 0}
#owner-tools .session-actions{max-width:none;margin:20px 0 0;padding:0}
@media(max-width:480px){.account-actions .btn{width:100%}}

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

.skip-link{position:fixed;left:16px;top:12px;z-index:20000;padding:12px 18px;
  background:var(--card);color:var(--deep);border:2px solid var(--deep);border-radius:8px;
  transform:translateY(-200%);font-weight:700}
.skip-link:focus{transform:none}
.account-content input{font:inherit;min-height:44px;padding:10px 12px;border:1px solid var(--control);border-radius:8px}
label:has(> input[type=checkbox]),label:has(> input[type=radio]){min-height:44px;display:inline-flex;align-items:center;gap:8px}
input[type=checkbox],input[type=radio]{min-width:24px;min-height:24px;flex:none}

/* A demo ribbon. This is sample data, and it must never be mistaken for the
   family's real shop. */
.demobar{background:var(--amber-bg);color:var(--amber);font-size:16px;
  padding:8px 16px;text-align:center;border-bottom:1px solid var(--amber-line)}
.demobar a{color:var(--deep)}

/* ---- THINGS THAT MOVE FROM ONE PLACE TO ANOTHER -------------------------
   THE CUSTOMER'S SCREEN ONLY. Every screen here is written out whole on any
   change — the only way a redraw can never leave half the old screen behind —
   so anything that changes place stops existing where it was and starts existing
   where it now belongs in the same instant, with nothing joining the two.
   Carrying a piece of the screen across instead was tried on all three and kept
   on one, because of what it costs: for as long as anything is moving the
   browser stops the WHOLE page being tappable, every button on it, and that
   cannot be switched off. It is the browser refusing to let anybody tap a screen
   whose picture and whose buttons are in different places.
   On the counter and the owner's screen those buttons take money, cancel a
   customer's food and finish the day's book, so both of them stay still and stay
   tappable. On the customer's own phone nothing is paid and nothing is written —
   payment happens at the counter — and the movement earns its place there, so
   the rules live here rather than in that one file only in case a second screen
   ever earns it back. */
::view-transition-group(*){animation-duration:180ms}
::view-transition{pointer-events:none}
/* Something that has just ARRIVED rises into place, so it cannot be misread as
   something that MOVED. Marked by the screen from its own list: asking the
   browser to tell the two apart by "this one has no before-picture" is written
   down as the way to do it, and does not work in the browser these phones run. */
@keyframes vtIn{from{opacity:0;transform:translateY(10px)}}
::view-transition-new(.vt-in){animation:vtIn 180ms ease-out}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;
    animation-duration:.01ms!important;animation-iteration-count:1!important}
  ::view-transition-group(*),::view-transition-new(*),::view-transition-old(*){
    animation:none!important}
}
