@font-face { font-family: "Archivo"; src: url(/static/archivo.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; src: url(/static/archivo-ext.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Black, white and one blue. Blue marks the chef's own signed words and the action that needs them. */
:root {
  --black: #000;
  --white: #fff;
  --ink-2: #2f2f2f;
  --hair: #d6d6d6;
  --fill: #f2f2f2;
  --blue: #0033ff;
  --red: #9e1b1b;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: var(--white); color: var(--black); font-family: var(--font); overscroll-behavior: none; font-variant-numeric: tabular-nums; }
body { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

header { flex: none; display: flex; align-items: center; justify-content: center; gap: 10px; height: 60px; padding: env(safe-area-inset-top) 20px 0; box-sizing: content-box; }
.mark { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--blue); display: grid; place-items: center; }
.mark::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
header h1 { font-size: 26px; font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; }

main { flex: 1; min-height: 0; overflow-y: auto; position: relative; padding: 8px 20px 24px; scroll-behavior: smooth; }
.empty { padding-top: 6vh; }
.empty h2 { font-size: clamp(38px, 11vw, 48px); font-weight: 800; font-stretch: 108%; letter-spacing: -0.03em; line-height: 1.02; }
.try { margin-top: 28px; font-size: 16px; font-weight: 700; color: var(--ink-2); }
.suggest { list-style: none; padding: 0; margin-top: 28px; display: flex; flex-direction: column; }
.suggest button { width: 100%; text-align: left; padding: 13px 0; border-top: 1px solid var(--hair); display: flex; flex-direction: column; gap: 3px; }
.suggest li:last-child button { border-bottom: 1px solid var(--hair); }
.suggest b { font-size: 18px; font-weight: 700; line-height: 1.3; }
.suggest span { font-size: 16px; line-height: 1.35; color: var(--ink-2); }
.suggest button:hover b { text-decoration: underline; text-underline-offset: 3px; }
.suggest .verify b { color: var(--blue); }
.thread:not(:empty) ~ .empty { display: none; }
.thread { display: flex; flex-direction: column; gap: 26px; padding-top: 14px; }

/* The chef's words, set as a quotation: these are what the verifier checks. */
.chef { display: flex; flex-direction: column; gap: 10px; padding-left: 16px; border-left: 4px solid var(--blue); animation: rise .3s ease-out both; }
.said { font-size: 22px; line-height: 1.32; font-weight: 500; letter-spacing: -0.01em; }
.said .w { transition: background .2s, color .2s; padding: 1px 0; }
.said .w.lit { background: var(--blue); color: var(--white); }
.said.pending { color: #9a9a9a; }
.meta { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--blue); }
.meta .play { width: 30px; height: 30px; background: var(--blue); color: var(--white); display: grid; place-items: center; }
.meta .play svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.meta .sig { display: flex; align-items: center; gap: 5px; }
.meta .sig svg { width: 14px; height: 14px; }

/* Agentimo's replies */
.aimo { display: flex; gap: 12px; align-items: flex-start; animation: rise .3s ease-out both; }
.aimo .mark { margin-top: 2px; width: 26px; height: 26px; border-radius: 7px; }
.aimo .mark::after { width: 9px; height: 9px; }
.aimo p { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.working { display: flex; gap: 12px; align-items: center; animation: rise .25s ease-out both; }
.working .mark { width: 26px; height: 26px; border-radius: 7px; }
.working .mark::after { width: 9px; height: 9px; }
.working .dots { display: flex; gap: 5px; }
.working .dots i { width: 7px; height: 7px; background: var(--black); animation: dot 1s infinite ease-in-out; }
.working .dots i:nth-child(2) { animation-delay: .15s; }
.working .dots i:nth-child(3) { animation-delay: .3s; }
.working span { font-size: 17px; font-weight: 600; }

/* Order slip: everything on it comes from Valio Aimo's server, never from the assistant's text */
.order { border: 2px solid var(--black); background: var(--white); animation: rise .35s ease-out both; }
.order .top { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; gap: 12px; background: var(--black); color: var(--white); }
.order.held .top { background: var(--blue); }
.order.rejected .top, .order.declined .top, .order.returned .top { background: var(--red); }
.status { font-size: 17px; font-weight: 800; white-space: nowrap; }
.when { font-size: 16px; font-weight: 500; white-space: nowrap; }
.order .why { padding: 14px 16px 2px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.lines { list-style: none; padding: 0; margin: 6px 0 0; }
.line { padding: 14px 16px; border-top: 1px dashed var(--black); display: flex; flex-direction: column; gap: 3px; }
.line:first-child { border-top: 0; }
.line .row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.line.removed .name, .line.removed .price, .line.removed .qty { text-decoration: line-through; color: #9a9a9a; }
.line.removed .evidence { display: none; }
.line .name { font-size: 18px; font-weight: 700; line-height: 1.25; }
.line .price { font-size: 18px; font-weight: 700; white-space: nowrap; }
.line .qty { font-size: 16px; color: var(--ink-2); }
.remove { font-size: 16px; font-weight: 700; color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.evidence { display: flex; flex-direction: column; gap: 7px; margin-top: 9px; }
.ev { display: flex; align-items: flex-start; gap: 8px; font-size: 16px; line-height: 1.32; color: var(--ink-2); text-align: left; }
.ev svg { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.ev.hear { color: var(--blue); font-weight: 700; }
.ev.hear svg { fill: currentColor; stroke: none; width: 13px; height: 13px; margin: 2px 2px 0 1px; }
.ev.flag { color: var(--red); font-weight: 700; }
.ev.flag.unusual, .ev.flag.unclear, .ev.flag.unsigned { color: var(--blue); }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border-top: 2px solid var(--black); }
.total span:first-child { font-size: 18px; font-weight: 700; }
.total span:last-child { font-size: 30px; font-weight: 800; font-stretch: 85%; letter-spacing: -0.01em; }
.checks { padding: 0 16px 14px; font-size: 15.5px; font-weight: 600; }
.checks summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.checks summary::-webkit-details-marker { display: none; }
.checks summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 4px; transition: transform .2s; }
.checks[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.checks svg { width: 15px; height: 15px; stroke-width: 2.6; }
.checks ul { list-style: none; padding: 10px 0 0; display: flex; flex-direction: column; gap: 7px; font-weight: 500; }
.checks li { display: flex; gap: 7px; align-items: center; }
.checks li.no { color: var(--red); }
.actions { display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 0 12px 8px; }
.approve { height: 58px; background: var(--blue); color: #fff; font-size: 19px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px; transition: transform .12s; }
.approve:active { transform: scale(.985); background: #0029cc; }
.approve svg { width: 25px; height: 25px; }
.decline { height: 44px; font-size: 17px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.done { padding: 0 16px 16px; font-size: 16.5px; font-weight: 700; display: flex; align-items: flex-start; gap: 7px; line-height: 1.35; }
.done svg { width: 18px; height: 18px; stroke-width: 2.6; flex: none; }

footer { flex: none; padding: 10px 20px max(env(safe-area-inset-bottom), 20px); }
.controls { display: flex; align-items: center; justify-content: center; gap: 22px; }
.kbd { width: 50px; height: 50px; flex: none; }
.kbd { border: 2px solid var(--black); border-radius: 50%; display: grid; place-items: center; }
.kbd svg { width: 24px; height: 24px; stroke-width: 1.8; }
.typed { display: flex; gap: 8px; margin-bottom: 12px; }
.typed input { flex: 1; min-width: 0; height: 54px; border: 2px solid var(--black); border-radius: 0; background: var(--white); padding: 0 16px; font: inherit; font-size: 18px; outline: none; }
.typed input:focus { border-color: var(--blue); }
.typed button { height: 54px; padding: 0 20px; background: var(--black); color: #fff; font-weight: 800; font-size: 18px; }

.mic {
  position: relative; width: 80px; height: 80px; border-radius: 40px; flex: none;
  background: var(--blue); color: #fff; overflow: hidden;
  transition: width .45s cubic-bezier(.2, .8, .2, 1), transform .15s;
}
.mic:active { transform: scale(.96); }
body.listening .mic { width: min(300px, 70vw); }
body.listening .kbd { display: none; }
.mic > * { position: absolute; transition: opacity .25s, transform .35s cubic-bezier(.2, .8, .2, 1); }
.icon { inset: 0; display: grid; place-items: center; }
.icon svg { width: 32px; height: 32px; stroke-linecap: round; }
.rec { inset: 0; display: flex; align-items: center; gap: 14px; padding: 0 14px 0 24px; opacity: 0; transform: scale(.9); pointer-events: none; }
.time { flex: none; width: 44px; font-size: 18px; font-weight: 700; }
.wave { flex: 1; height: 38px; display: flex; align-items: center; justify-content: space-between; min-width: 0; }
.wave i { width: 4px; height: 100%; background: #fff; transform: scaleY(.1); transition: transform .08s linear; }
.stop { flex: none; width: 50px; height: 50px; border-radius: 25px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; }
.stop::after { content: ""; width: 16px; height: 16px; background: #fff; }
.spin { inset: 23px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .3); border-top-color: #fff; opacity: 0; animation: spin .8s linear infinite; }
body.listening .icon, body.sending .icon { opacity: 0; transform: scale(.6); }
body.listening .rec { opacity: 1; transform: none; transition-delay: .12s; }
body.sending .spin { opacity: 1; }

.toast { position: fixed; left: 20px; right: 20px; bottom: 130px; background: var(--black); color: #fff; padding: 14px 16px; font-size: 16px; font-weight: 600; animation: rise .3s ease-out both; }

.framed header { height: 64px; }

/* Attack lab notes: what an attack did, shown above the order card it produced */
.lab { padding: 12px 14px; background: var(--black); color: var(--white); animation: rise .3s ease-out both; }
.lab b { display: block; font-size: 15px; font-weight: 800; color: #bdbdbd; margin-bottom: 4px; }
.lab p { font-size: 17px; font-weight: 600; line-height: 1.35; }

/* Rules */
.rules-summary { margin-top: 22px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.rules-summary b { color: var(--black); margin-right: 4px; }
.change { font-size: inherit; font-weight: 700; color: var(--black); text-decoration: underline; text-underline-offset: 3px; }
.order .why .change { color: inherit; }
.sheet { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); display: flex; align-items: flex-end; z-index: 10; }
.sheet form { width: 100%; background: var(--white); padding: 22px 20px max(env(safe-area-inset-bottom), 20px); display: flex; flex-direction: column; gap: 14px; animation: rise .25s ease-out both; }
.sheet h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.sheet label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 700; min-width: 0; }
.sheet textarea, .sheet input { font: inherit; font-size: 17px; font-weight: 400; line-height: 1.4; border: 2px solid var(--black); border-radius: 0; padding: 10px 12px; outline: none; min-width: 0; }
.sheet textarea:focus, .sheet input:focus { border-color: var(--blue); }
.sheet .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.sheet .save { height: 54px; background: var(--blue); color: #fff; font-size: 18px; font-weight: 800; }
.sheet .cancel { height: 40px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* Undo and approval hint */
.done span { flex: 1; }
.undo { font-size: 16.5px; font-weight: 800; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.hint { text-align: center; font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.order.cancelled .top { background: var(--ink-2); }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes dot { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
