:root {
  --forest: #17483d;
  --deep: #112e28;
  --paper: #f5f4ef;
  --ink: #182b25;
  --muted: #52645d;
  --line: #cdd6ce;
  --mint: #e4eee7;
  --gold: #e0c58c;
  --ui: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}
.access-page, body:has(#setup), .workspace-home { color: var(--ink); background: var(--paper); font: 16px/1.5 var(--ui); }
.access-page { min-height: 100svh; display: grid; place-items: center; padding: clamp(18px, 5vw, 82px); }
.access-page *, #setup * { box-sizing: border-box; }
.login-shell {
  display: grid; grid-template-columns: 1.03fr 1fr; width: min(1080px, 100%);
  min-height: min(640px, 82svh); background: #fff; overflow: hidden;
  border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 64px #20352c14;
}
.login-photo {
  background: linear-gradient(180deg, #0c201f75, transparent 48%), var(--deep) url('/assets/dining-room.webp') center 62% / cover;
  padding: clamp(22px, 4vw, 48px); color: white;
}
.access-brand { display: inline-flex; align-items: center; gap: 11px; font: 650 15px/1.3 var(--ui); letter-spacing: -.025em; }
.access-mark { display: inline-block; position: relative; flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--forest); }
.access-mark::after { content: ""; position: absolute; inset: 7px 6px; background: linear-gradient(90deg,#f4e7bd 23%,transparent 23% 38%,#f4e7bd 38% 62%,transparent 62% 77%,#f4e7bd 77%); transform: skewY(-16deg); }
.login-photo .access-mark { background: #123b31; box-shadow: 0 0 0 1px #e8f3e34d; }
.access-card { align-self: center; padding: clamp(30px, 5vw, 76px); min-width: 0; }
.access-card h1, #setup .signup-intro h1, #setup .assistant-heading h1, .workspace-heading h1 {
  font: 500 clamp(42px, 4.6vw, 68px)/1.02 var(--display); letter-spacing: -.045em; text-wrap: balance;
}
.access-card h1 { margin: 0 0 34px; }
.access-card form { display: grid; gap: 7px; }
.access-card label, .signup label, .assistant-panel label { font: 640 14px/1.45 var(--ui); color: var(--ink); }
.access-card input, .signup input:not([type=checkbox]), .assistant-panel textarea {
  width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #a1b1a8;
  border-radius: 8px; background: #fff; color: var(--ink); font: 400 16px/1.4 var(--ui);
}
.access-card input { margin-bottom: 11px; }
.access-card .access-primary, #setup .primary {
  min-height: 46px; padding: 12px 18px; border: 1px solid transparent; border-radius: 8px;
  background: var(--forest); color: #fff; font: 650 15px/1.4 var(--ui); cursor: pointer;
}
.access-card .access-primary:hover:enabled, #setup .primary:hover:enabled { background: #0b392e; }
.access-card .access-primary:disabled, #setup .primary:disabled { background: #52685d; color: #fff; opacity: .85; cursor: default; }
.access-page :focus-visible, #setup :focus-visible, .workspace-home :focus-visible { outline: 3px solid #a57327; outline-offset: 3px; }
.access-footer { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 18px; }
.access-footer a, #setup a:not(.button) { color: var(--forest); font-weight: 620; text-underline-offset: 3px; }
.access-footer a { display: inline-flex; align-items: center; min-height: 36px; gap: 8px; }
.access-error { color: #953e2c; font-size: 14px; }
.access-back { display: block; margin: 16px auto 0; background: none; border: 0; color: var(--forest); cursor: pointer; padding: 8px; }
body:has(#setup) { min-height: 100svh; display: flow-root; }
body:has(#setup)>header, .workspace-bar {
  min-height: 66px; background: var(--deep); color: #cfddd3; padding: 0 clamp(18px, 5vw, 76px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #ffffff20;
}
body:has(#setup)>header a, .workspace-bar .access-brand { color: #fbf9f1; }
body:has(#setup)>header>span, .staff-session { font-size: 13px; font-weight: 550; }
#setup { max-width: 1080px; margin: clamp(16px, 3vh, 34px) auto 40px; }
#setup h1, #setup h2 { color: var(--deep); letter-spacing: -.035em; }
#setup .panel, .assistant-panel { background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 35px #20352c09; }
#setup .signup-layout, .assistant-panel {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); padding: 0;
  max-width: none; column-gap: clamp(25px, 4vw, 54px); overflow: hidden;
}
.signup-intro, .assistant-heading {
  grid-column: 1; grid-row: 1 / span 4; min-width: 0; padding: clamp(28px, 4vw, 48px);
  color: #edf4ec; background: var(--deep); position: relative; isolation: isolate;
}
.signup-intro::after, .assistant-heading::after {
  content: ""; position: absolute; z-index: -1; bottom: 0; left: 0; right: 0; height: min(42%, 230px);
  background: linear-gradient(180deg,var(--deep),#143b313b 48%), url('/assets/dining-room.webp') 50% 65% / cover;
}
#setup .signup-intro h1, #setup .assistant-heading h1 { color: #fff9ea; margin: 0 0 18px; }
.signup-intro>p, .assistant-heading>p { color: #d7e6dc; max-width: 36ch; line-height: 1.65; margin: 0; }
.signup-layout>form, .signup-layout>p, .signup-layout>.access-footer { grid-column: 2; margin-right: clamp(24px, 3.5vw, 44px); }
.signup-layout>form { padding-top: 22px; }
.signup-layout>p:empty { display: none; }
.signup-layout>.access-footer { margin-bottom: 16px; margin-top: 10px; padding-top: 10px; }
.signup-group { display: grid; gap: 9px; border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.signup-group legend { padding: 0 0 5px; font-size: 17px; color: var(--ink); letter-spacing: -.03em; }
.signup-group.owner-fields { border-top: 1px solid var(--line); margin-top: 4px; }
.owner-fields legend { float: left; padding-top: 12px; }
.signup form { gap: 10px; }
.signup label { gap: 4px; }
.signup input:not([type=checkbox]) { min-height: 41px; padding: 8px 12px; }
.signup input[readonly] { background: #eef2ed; color: #48574e; border-style: dashed; border-color: #b7c5bc; cursor: default; }
.signup small { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.link-feedback { overflow-wrap: anywhere; margin-top: -5px; line-height: 1.35; }
.signup [aria-invalid=true] { border-color: #a23d2b !important; }
.signup #link-error { color: #933223; }
.invite-applied { justify-self: start; margin: 0; padding: 5px 11px; color: #215743; background: var(--mint); border-radius: 20px; font-size: 13px; font-weight: 650; }
.assistant-panel { min-height: 430px; }
@media (min-width: 741px) {
  #setup .signup-intro h1, #setup .assistant-heading h1 { font-size: clamp(38px,3.7vw,54px); }
  .assistant-heading { grid-row: 1; padding-bottom: 132px; }
  .assistant-heading::after { height: 122px; }
  .assistant-work { grid-row: 1; grid-column: 2; }
}
.assistant-heading .access-brand { margin-bottom: 30px; }
.assistant-work { align-self: center; min-width: 0; padding: 36px clamp(24px,3.5vw,44px) 36px 0; }
.assistant-work .chat { display: grid; gap: 12px; margin-bottom: 18px; }
.assistant-work .chat:empty { display: none; }
.chat p { margin: 0; background: #eef3ed; border-radius: 10px; padding: 12px 14px; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.chat p.user { background: #e1ede5; margin-left: 9%; justify-self: end; }
.chat small { display: block; font-weight: 650; }
.assistant-work textarea { resize: vertical; min-height: 132px; }
.assistant-work .actions { justify-content: space-between; align-items: center; gap: 8px; }
.assistant-work .link-button { color: var(--forest); background: none; border: 0; padding-inline: 0; text-decoration: underline; text-underline-offset: 3px; }
.review { border: 1px solid #bacbbf; border-radius: 10px; background: #f4f7f1; margin: 16px 0; padding: 16px; }
.review li { margin: 8px 0; overflow-wrap: anywhere; }
#setup nav { gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; width: fit-content; max-width: 100%; background: #fff; }
#setup nav button { border: 0; background: none; color: var(--muted); }
#setup nav [aria-current=step] { color: var(--deep); background: var(--mint); }
@media (max-width: 740px) {
  .access-page { padding: 18px; align-content: center; }
  .login-shell { grid-template-columns: 1fr; min-height: 0; width: min(100%,490px); }
  .login-photo { min-height: clamp(110px,20svh,180px); padding: 19px 24px; background-position: center 64%; }
  .access-card { padding: 26px 24px; }
  .access-card h1 { margin-bottom: 23px; }
  #setup { margin-top: 20px; }
  #setup .signup-layout,.assistant-panel { display: block; }
  .signup-intro,.assistant-heading { padding: 24px; }
  .signup-intro::after,.assistant-heading::after { display: none; }
  #setup .signup-intro h1,#setup .assistant-heading h1 { font-size: 36px; margin-bottom: 9px; }
  .signup-intro>p,.assistant-heading>p { max-width: none; font-size: 15px; }
  .signup-layout>form,.signup-layout>p,.signup-layout>.access-footer { margin-inline: 20px; }
  .signup-layout>form { padding-top: 20px; }
  .assistant-panel { min-height: 0; }
  .assistant-heading .access-brand { margin-bottom: 16px; }
  .assistant-work { padding: 24px 20px; }
}

.assistant-work .chat { max-height: min(52vh,520px); overflow-y: auto; overscroll-behavior: contain; }
.owner-turn { min-width: 0; }
.owner-report { margin: 8px 0 0; padding: 15px; background: #fbfcf8; border: 1px solid var(--line); border-radius: 10px; }
.owner-report h3 { font-size: 18px; margin: 0 0 8px; }
.owner-report dl { margin: 0 0 8px; }
.owner-report dl>div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.owner-report dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.owner-report small { font-size: 12px; color: var(--muted); }
.owner-shortcuts, .owner-tools>div { display: flex; flex-wrap: wrap; gap: 6px; }
.owner-shortcuts { margin: 12px 0; }
#setup .owner-shortcuts button, #setup .owner-workspace-link { padding: 7px 11px; min-height: 36px; color: var(--forest); background: white; border: 1px solid #b9c9bc; border-radius: 8px; font: 600 13px/1.3 var(--ui); cursor: pointer; }
#setup .owner-turn .owner-workspace-link { margin: 6px 0; }
.owner-tools { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.owner-tools summary { color: var(--forest); cursor: pointer; }
.owner-tools>div { padding: 12px 0; }
.owner-workspace-dialog { box-sizing: border-box; width: min(1220px,96vw); height: 92dvh; max-height: none; padding: 0; border: 1px solid var(--line); border-radius: 14px; }
.owner-workspace-dialog[open] { display: flex; flex-direction: column; }
.owner-workspace-dialog::backdrop { background: #10251fc4; }
.owner-workspace-dialog header { background: var(--deep); color: white; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; gap: 12px; }
.owner-workspace-dialog button { color: var(--forest); background: var(--paper); border: 0; padding: 10px 14px; border-radius: 8px; cursor: pointer; }
.owner-workspace-dialog iframe { border: 0; width: 100%; flex: 1; min-height: 0; }

.voice-input { margin: .25rem 0 .8rem; }
.voice-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin-bottom: .4rem; }
.voice-controls button,.voice-controls select { width: auto; min-height: 44px; margin: 0; }
.voice-controls [hidden] { display: none; }
.voice-controls [aria-pressed="true"] { background: #174940; color: white; }
.voice-input small,.voice-input [role="status"] { display: block; color: #40555a; font-size: .85rem; }
.voice-input [role="status"]:not(:empty) { margin-top: .3rem; font-weight: 600; }

.access-card .device-choice{display:flex;align-items:center;gap:.65rem;font-size:.9rem;font-weight:500}
.access-card .device-choice input,.signup .device-choice input{width:1.1rem;height:1.1rem;min-height:0;margin:0;flex:none}
