:root {
  --foam: #E9F8F6; --aqua: #BFE9E6; --sea: #8FD3D6;
  --teal: #0E5A66; --ink: #0A3A47; --muted: #1F5560;
  --card: rgba(255, 255, 255, 0.6); --card-line: rgba(255, 255, 255, 0.9);
  --line: rgba(14, 90, 102, 0.35);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: 'Outfit', 'Avenir Next', system-ui, sans-serif; color: var(--ink);
  background: linear-gradient(180deg, var(--foam) 0%, var(--aqua) 45%, var(--sea) 100%) fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); }
a:hover { color: var(--teal); }
.app { max-width: 430px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.screen { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 32px 20px 20px; }
.screen.center { text-align: center; }
h1 { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.15; }
p { margin: 0; line-height: 1.45; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.label { font-size: 13px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.logo { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 42px; font-weight: 600; letter-spacing: -1px; }
.logo svg { width: 52px; height: 52px; }
.card { background: var(--card); border: 1px solid var(--card-line); border-radius: 24px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 8px; align-items: center; }
.row.between { justify-content: space-between; }
.push { margin-top: auto; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.big { font-size: 34px; font-weight: 600; line-height: 1; }
.btn {
  display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 20px;
  border-radius: 27px; border: 1.5px solid var(--teal); background: var(--teal); color: #fff;
  font: 600 17px/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer; width: 100%;
}
.btn:hover { color: #fff; background: #0B4A54; }
.btn.ghost { background: transparent; color: var(--ink); font-weight: 500; font-size: 16px; min-height: 50px; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.5); color: var(--ink); }
.btn.pill { width: auto; min-height: 44px; font-size: 15px; font-weight: 500; padding: 0 16px; }
.btn.on { background: var(--teal); color: #fff; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.linkbtn { background: none; border: none; padding: 0 8px; min-height: 44px; color: var(--muted); font: 13px inherit; font-family: inherit; text-decoration: underline; cursor: pointer; align-self: flex-start; }
.field { display: flex; flex-direction: column; gap: 6px; text-align: left; font-size: 15px; font-weight: 500; }
.field input[type='text'], .field input[type='email'], .field input[type='password'], .field input[type='number'] {
  height: 50px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8); color: var(--ink); font: 400 17px inherit; font-family: inherit; width: 100%;
}
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; font-size: 15px; line-height: 1.4; text-align: left; }
.check input { width: 22px; height: 22px; flex: none; margin: 2px 0 0; accent-color: var(--teal); }
.error { color: #7A1F1F; background: rgba(255, 255, 255, 0.75); border-radius: 12px; padding: 10px 12px; font-size: 15px; text-align: left; }
.error:empty { display: none; }
.chart { width: 100%; height: 64px; }
.tabs { padding: 0 16px 20px; position: sticky; bottom: 0; }
.tabs nav { display: flex; gap: 4px; padding: 6px; border-radius: 32px; background: rgba(255, 255, 255, 0.82); border: 1px solid rgba(14, 90, 102, 0.18); }
.tabs a { flex: 1; min-height: 52px; border-radius: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--ink); font-size: 12px; }
.tabs a.on { background: var(--teal); color: #fff; font-weight: 600; }
.tabs svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 24px 20px 14px; border-bottom: 1px solid rgba(14, 90, 102, 0.18); }
.chat-head .avatar { width: 44px; height: 44px; border-radius: 22px; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.chat-head .avatar svg { width: 28px; height: 28px; }
.chat-body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 16px 20px 8px; overflow-y: auto; }
.bubble { max-width: 86%; padding: 14px 16px; font-size: 17px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.lyta { align-self: flex-start; background: rgba(255, 255, 255, 0.75); border: 1px solid var(--card-line); border-radius: 22px 22px 22px 6px; }
.bubble.user { align-self: flex-end; background: var(--teal); color: #fff; border-radius: 22px 22px 6px 22px; margin: 8px 0; }
.chat-foot { padding: 8px 20px 10px; display: flex; flex-direction: column; gap: 8px; }
.chat-foot form { display: flex; gap: 10px; align-items: center; }
.chat-foot input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 24px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.8); color: var(--ink); font: 16px inherit; font-family: inherit; }
.chat-foot input::placeholder { color: var(--muted); }
.send { width: 48px; height: 48px; flex: none; border-radius: 50%; border: none; background: var(--teal); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.send svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.item { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; }
.item input { width: 22px; height: 22px; margin: 0; accent-color: var(--teal); }
.item span:first-of-type { flex: 1; }
.meal { display: flex; flex-direction: column; gap: 3px; }
.meal b { font-weight: 500; font-size: 16px; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1.5px solid var(--teal); font-size: 15px; font-weight: 500; cursor: pointer; background: rgba(255, 255, 255, 0.4); }
.choice input:checked + span { background: var(--teal); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
fieldset[hidden] { display: none; }
legend { padding: 0; font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.group { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 500; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
