:root { color-scheme: light; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --forest:#103e23; --ink:#122a1b; --muted:#68756d; --lime:#99c916; --line:#dce6df; }
* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; color: var(--ink); background: #fff; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.app-page, .taste-page { min-height: 100vh; background: #fff; }
.app-header, .taste-header { position: relative; z-index: 20; display: grid; height: 64px; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 32px; border-bottom: 1px solid #e5ebe6; background: rgba(255,255,255,.96); }
.wordmark { color: var(--forest); font-size: 24px; font-weight: 850; letter-spacing: -.055em; text-decoration: none; }
.app-header nav, .taste-header nav { display: flex; align-items: center; gap: 28px; }
.app-header nav a, .taste-header nav a, .taste-header nav span { color: #33463a; font-size: 13px; font-weight: 650; text-decoration: none; }
.app-header nav a.active { color: var(--forest); font-weight: 850; }
.avatar, .user-dot { display: grid; width: 30px; height: 30px; justify-self: end; place-items: center; border-radius: 50%; color: #fff; background: var(--forest); font-size: 12px; font-weight: 800; }
.saved-banner { display: flex; width: min(960px, calc(100% - 40px)); margin: 20px auto 0; padding: 14px 18px; align-items: center; gap: 12px; border: 1px solid #cfe0ca; border-radius: 16px; background: #f4f9ed; box-shadow: 0 8px 24px rgba(20,57,32,.05); }
.saved-banner svg { width: 22px; color: #3d781c; }.saved-banner span { display: grid; gap: 2px; color: #617066; font-size: 12px; }.saved-banner strong { color: var(--forest); font-size: 14px; }

/* Home entry */
.home-main { padding-bottom: 72px; }.home-hero { padding: 74px 24px 70px; text-align: center; }.home-hero p { margin: 0 0 8px; color: #607067; font-size: 14px; }.home-hero h1 { margin: 0; color: #0d2e1b; font-size: clamp(42px, 5vw, 66px); letter-spacing: -.065em; line-height: 1; }
.ask-bar { display: flex; width: min(720px, 100%); height: 66px; margin: 38px auto 0; padding: 7px; align-items: center; border: 1px solid #dce3de; border-radius: 34px; background: #fff; box-shadow: 0 14px 40px rgba(27,52,35,.09); }.ask-bar input { min-width: 0; padding: 0 20px; flex: 1; border: 0; outline: 0; color: var(--ink); }.ask-bar button, .chat-composer button { display: grid; width: 50px; height: 50px; place-items: center; border: 0; border-radius: 50%; color: #fff; background: var(--forest); cursor: pointer; }.ask-bar svg, .chat-composer svg { width: 20px; }
.feed { width: min(1120px, calc(100% - 48px)); margin: auto; }.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 20px; }.section-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.035em; }.section-heading span { color: var(--muted); font-size: 12px; }.feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }.feed-card { overflow: hidden; border: 1px solid #e0e6e1; border-radius: 18px; background: #fff; box-shadow: 0 8px 26px rgba(27,52,35,.055); }.feed-card img { display: block; width: 100%; height: 190px; object-fit: cover; }.feed-card div { display: grid; gap: 4px; padding: 14px; }.feed-card span, .feed-card small { color: #7a857e; font-size: 11px; }.feed-card strong { font-size: 15px; }
.taste-entry, .ai-taste-entry { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 16px; margin-top: 28px; padding: 18px 20px; border: 1px solid #dbe5d6; border-radius: 18px; background: #f6f9ee; }.taste-entry > span, .ai-taste-entry > span { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 15px; color: #28420d; background: #e4f596; }.taste-entry svg, .ai-taste-entry svg { width: 20px; }.taste-entry strong, .ai-taste-entry strong { display: block; font-size: 15px; }.taste-entry p, .ai-taste-entry p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }.taste-entry a, .ai-taste-entry a { display: inline-flex; height: 42px; align-items: center; gap: 7px; padding: 0 16px; border-radius: 21px; color: #fff; background: var(--forest); font-size: 12px; font-weight: 750; text-decoration: none; }.taste-entry a svg { width: 15px; }

/* AI entry */
.chat-main { padding: 32px 20px 60px; background: #f6f8f5; min-height: calc(100vh - 64px); }.chat-shell { display: grid; width: min(780px, 100%); min-height: 680px; grid-template-rows: auto 1fr auto; margin: 20px auto 0; overflow: hidden; border: 1px solid #dde5df; border-radius: 22px; background: #fff; box-shadow: 0 20px 55px rgba(24,48,31,.09); }.chat-shell > header { display: flex; padding: 18px 22px; align-items: center; gap: 12px; border-bottom: 1px solid #e5ebe6; }.ai-avatar { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; color: #fff; background: var(--forest); font-weight: 900; }.chat-shell header div { display: grid; gap: 2px; }.chat-shell header small { color: var(--muted); }.messages { padding: 28px; overflow: auto; }.user-message { width: fit-content; max-width: 72%; margin-left: auto; padding: 13px 16px; border-radius: 18px 18px 4px 18px; background: #dff28a; }.ai-message { max-width: 78%; margin-top: 24px; padding: 16px; border: 1px solid #e2e8e3; border-radius: 4px 18px 18px; }.ai-message p { margin: 0; line-height: 1.5; }.mini-results { display: grid; gap: 8px; margin-top: 14px; }.mini-results span { padding: 10px 12px; border-radius: 10px; background: #f4f6f3; font-size: 13px; }.feedback { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; color: var(--muted); font-size: 11px; }.feedback button { display: grid; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 50%; color: #647269; background: transparent; cursor: pointer; }.feedback button:hover { background: #eef2ee; }.feedback svg { width: 15px; }.feedback-reasons { width: min(420px, 100%); margin-top: 12px; padding: 14px; border: 1px solid #dde4de; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(22,45,29,.1); }.feedback-reasons[hidden], .ai-taste-entry[hidden] { display: none; }.feedback-reasons strong { display: block; margin-bottom: 8px; font-size: 12px; }.feedback-reasons button { width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }.feedback-reasons button:hover { background: #f2f5f1; }.ai-taste-entry { margin: 14px 0 0; }.chat-composer { display: flex; margin: 16px 20px 20px; padding: 6px; border: 1px solid #dfe5e0; border-radius: 28px; box-shadow: 0 8px 24px rgba(28,51,35,.06); }.chat-composer input { min-width: 0; flex: 1; padding: 0 14px; border: 0; outline: 0; }.chat-composer button { width: 42px; height: 42px; }

/* Profile entry */
.profile-main { min-height: calc(100vh - 64px); padding: 50px 20px; background: #f7f9f6; }.profile-card { width: min(760px, 100%); margin: 20px auto 0; padding: 28px; border: 1px solid #dfe6e0; border-radius: 22px; background: #fff; box-shadow: 0 16px 45px rgba(23,47,30,.07); }.profile-head { display: flex; align-items: center; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid #e5ebe6; }.profile-avatar { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 50%; color: #fff; background: var(--forest); font-size: 22px; font-weight: 800; }.profile-head h1 { margin: 0; font-size: 24px; }.profile-head p { margin: 5px 0 0; color: var(--muted); }.settings-list { display: grid; }.settings-list > * { display: grid; min-height: 78px; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; padding: 12px 4px; border: 0; border-bottom: 1px solid #edf0ed; color: var(--ink); background: transparent; text-align: left; text-decoration: none; cursor: pointer; }.setting-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: #395043; background: #eef2ee; }.setting-icon.lime { color: #29430e; background: #e4f596; }.setting-icon svg { width: 19px; }.settings-list span:nth-child(2) { display: grid; gap: 4px; }.settings-list small { color: var(--muted); }.settings-list b { color: var(--forest); font-size: 12px; }

/* Approved taste UI */
.taste-header { grid-template-columns: 1fr auto; }.taste-header nav { justify-self: end; }.taste-close { display: none; color: var(--forest); }.taste-close svg { width: 28px; }
.taste-main { display: grid; width: min(1430px, calc(100% - 64px)); min-height: calc(100vh - 64px); grid-template-columns: 330px minmax(0, 1fr); align-items: center; gap: 34px; margin: auto; padding: 72px 0 58px; }.learning-panel h1 { margin: 0 0 48px; font-size: 30px; letter-spacing: -.045em; }.mascot-row { display: grid; grid-template-columns: 122px 1fr; align-items: center; gap: 8px; }.mascot { display: block; width: 132px; margin-left: -12px; filter: drop-shadow(0 12px 18px rgba(32,59,39,.08)); }.speech { position: relative; min-height: 148px; padding: 25px 22px; border: 1.5px solid #d5e0d8; border-radius: 22px; background: #fff; }.speech::before { content:""; position: absolute; left: -14px; top: 42%; width: 26px; height: 26px; border-bottom: 1.5px solid #d5e0d8; border-left: 1.5px solid #d5e0d8; background: #fff; transform: rotate(45deg); }.speech strong { position: relative; z-index: 1; display: block; font-size: 20px; line-height: 1.28; }.speech p { position: relative; z-index: 1; margin: 10px 0 0; font-size: 14px; line-height: 1.45; }.thinking { position: relative; z-index: 1; display: flex; height: 38px; align-items: center; gap: 6px; }.thinking[hidden], #tasteInsight[hidden], #tasteHint[hidden] { display: none; }.thinking i, .learning-count i { width: 8px; height: 8px; border-radius: 50%; background: var(--forest); animation: bounce 850ms ease-in-out infinite; }.thinking i:nth-child(2) { animation-delay: 110ms; }.thinking i:nth-child(3) { animation-delay: 220ms; }.learning-count { display: flex; margin: 44px 0 0 28px; align-items: center; gap: 12px; color: #24452f; font-size: 14px; }.learning-count i { animation: none; }.learning-count span { margin-left: 8px; }
.taste-board { position: relative; min-width: 0; height: 828px; }.taste-stage { position: relative; width: 100%; height: 100%; overflow: hidden; border: 1.5px solid #dbe5de; border-radius: 30px; background: #f9fcfa; box-shadow: inset 0 1px 0 #fff, 0 15px 45px rgba(24,49,31,.055); }.round-table::before { content:""; position: absolute; left: -19%; top: 84px; width: 138%; height: 515px; border: 1.5px solid #e0e9e3; border-radius: 50%; background: #fbfdfb; }.table-ring { position: absolute; z-index: 0; left: -18%; width: 136%; border: 1.5px solid #dde8e1; border-radius: 50%; pointer-events: none; }.table-ring-one { top: 142px; height: 330px; }.table-ring-two { top: 324px; height: 360px; }
.dish { position: absolute; z-index: 2; display: grid; width: 218px; min-height: 220px; grid-template-rows: 178px auto; place-items: center; padding: 0; border: 0; color: var(--forest); background: transparent; cursor: pointer; translate: -50% 0; transition: scale 180ms ease, translate 180ms ease; }.dish:hover { scale: 1.035; translate: -50% -4px; }.food-image { position: relative; display: grid; width: 205px; height: 174px; place-items: center; overflow: visible; border: 3px solid transparent; border-radius: 50%; transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease; }.food-image img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 13px rgba(30,50,36,.12)); }.dish-name { align-self: start; max-width: 205px; margin-top: 4px; font-size: 17px; font-weight: 850; line-height: 1.12; text-align: center; }.check { position: absolute; z-index: 3; right: 3px; top: 3px; display: grid; width: 38px; height: 38px; place-items: center; border: 3px solid #fff; border-radius: 50%; color: #fff; background: var(--forest); opacity: 0; transform: scale(.7); transition: opacity 160ms ease, transform 180ms cubic-bezier(.22,1,.36,1); }.check svg { width: 20px; stroke-width: 2.6; }.dish[data-selected="true"] .food-image { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(153,201,22,.12); transform: translateY(-3px); }.dish[data-selected="true"] .check { opacity: 1; transform: scale(1); }
.dish[data-table-slot="top-edge-left"] { left: -2%; top: 74px; }.dish[data-table-slot="top-left"] { left: 31%; top: 48px; }.dish[data-table-slot="top-right"] { left: 67%; top: 48px; }.dish[data-table-slot="top-edge-right"] { left: 102%; top: 74px; }.dish[data-table-slot="bottom-edge-left"] { left: -10%; top: 360px; }.dish[data-table-slot="bottom-left"] { left: 13%; top: 356px; }.dish[data-table-slot="bottom-mid-left"] { left: 37%; top: 362px; }.dish[data-table-slot="bottom-center"] { left: 61%; top: 346px; }.dish[data-table-slot="bottom-right"] { left: 85%; top: 358px; }.dish[data-table-slot="bottom-edge-right"] { left: 110%; top: 362px; }
.taste-actions { position: absolute; z-index: 6; right: 0; bottom: 42px; left: 0; display: grid; place-items: center; gap: 18px; }.taste-actions strong { color: var(--forest); font-size: 22px; }.taste-actions button, .dialog-submit { display: inline-flex; width: min(540px, calc(100% - 80px)); height: 72px; align-items: center; justify-content: center; gap: 62px; border: 0; border-radius: 38px; color: #fff; background: var(--forest); box-shadow: 0 14px 30px rgba(16,62,35,.16); font-size: 22px; font-weight: 820; cursor: pointer; }.taste-actions button svg { width: 28px; }.taste-actions button:disabled { opacity: .34; box-shadow: none; cursor: default; }

/* Allergy and global feedback */
.allergy-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 0; border-radius: 24px; color: var(--ink); background: transparent; box-shadow: 0 30px 80px rgba(14,28,20,.28); }.allergy-dialog::backdrop { background: rgba(9,20,14,.42); backdrop-filter: blur(5px); }.dialog-card { position: relative; padding: 34px; background: #fff; }.dialog-handle { display: none; }.dialog-close { position: absolute; right: 16px; top: 16px; display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 50%; color: #2d4033; background: #f3f4f0; font-size: 24px; cursor: pointer; }.eyebrow { margin: 0 0 10px; color: #76920e; font-size: 11px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }.dialog-card h2 { margin: 0; color: var(--forest); font-size: 36px; letter-spacing: -.045em; }.dialog-copy { margin: 10px 0 22px; color: var(--muted); line-height: 1.5; }.allergy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }.allergy-grid button { min-height: 46px; padding: 0 12px; border: 1px solid #dfe5df; border-radius: 14px; color: var(--ink); background: #fbfcfa; font-weight: 700; cursor: pointer; }.allergy-grid button[aria-pressed="true"] { border-color: var(--forest); background: #e9f3bd; box-shadow: inset 0 0 0 1px var(--forest); }.allergy-grid .allergy-none { grid-column: 1/-1; }.dialog-submit { width: 100%; height: 50px; margin-top: 24px; font-size: 14px; }.safety-note { margin: 12px 0 0; color: #758079; font-size: 11px; text-align: center; }.toast { position: fixed; z-index: 80; left: 50%; bottom: 30px; padding: 12px 17px; border-radius: 999px; color: #fff; background: var(--forest); box-shadow: 0 18px 44px rgba(20,50,35,.2); opacity: 0; translate: -50% 12px; transition: opacity 180ms ease, translate 180ms ease; pointer-events: none; }.toast.is-visible { opacity: 1; translate: -50% 0; }

@keyframes bounce { 0%,100% { opacity:.35; transform:translateY(0); } 50% { opacity:1; transform:translateY(-4px); } }
@media (max-width: 1000px) and (min-width: 761px) {
  .taste-main { display: block; width: min(820px, calc(100% - 40px)); padding: 30px 0 48px; }
  .learning-panel { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; gap: 18px; }
  .learning-panel h1 { margin: 0; font-size: 27px; }
  .mascot-row { grid-template-columns: 105px minmax(0, 1fr); }
  .mascot { width: 116px; }
  .speech { min-height: 116px; padding: 18px; }
  .speech strong { font-size: 18px; }
  .learning-count { grid-column: 1 / -1; justify-content: center; margin: 6px 0 0; }
  .taste-board { height: 720px; margin-top: 24px; }
  .dish { width: 190px; grid-template-rows: 156px auto; }
  .food-image { width: 178px; height: 152px; }
  .dish[data-table-slot="bottom-left"] { left: 12%; }.dish[data-table-slot="bottom-mid-left"] { left: 37%; }.dish[data-table-slot="bottom-center"] { left: 62%; }.dish[data-table-slot="bottom-right"] { left: 87%; }
}
@media (max-width: 760px) {
  .app-header, .taste-header { height: 58px; padding: 0 16px; }.app-header { grid-template-columns: 1fr auto; }.app-header nav { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; height: 58px; justify-content: space-around; border-top: 1px solid #e2e8e3; background: rgba(255,255,255,.96); }.app-header .avatar { display: none; }.wordmark { font-size: 20px; }
  .saved-banner { width: calc(100% - 28px); margin-top: 14px; }.home-main { padding-bottom: 92px; }.home-hero { padding: 42px 16px 44px; }.home-hero h1 { font-size: 38px; }.ask-bar { height: 56px; margin-top: 26px; }.ask-bar button { width: 44px; height: 44px; }.feed { width: calc(100% - 28px); }.feed-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }.feed-card img { height: 132px; }.feed-card div { padding: 10px; }.taste-entry, .ai-taste-entry { grid-template-columns: 42px 1fr; padding: 15px; }.taste-entry > a, .ai-taste-entry > a { grid-column: 1/-1; justify-content: center; }
  .chat-main, .profile-main { padding: 14px 10px 82px; }.chat-shell { min-height: calc(100vh - 94px); margin-top: 10px; border-radius: 18px; }.messages { padding: 18px; }.user-message, .ai-message { max-width: 90%; }.profile-card { margin-top: 10px; padding: 20px 16px; }.profile-head h1 { font-size: 21px; }
  .taste-header { height: 70px; grid-template-columns: 1fr auto; padding: 0 20px; }.taste-header nav { display: none; }.taste-close { display: grid; justify-self: end; }.taste-header .wordmark { font-size: 24px; }.taste-main { display: block; width: 100%; min-height: auto; padding: 58px 0 30px; }.learning-panel { padding: 0 18px; }.learning-panel h1 { display: none; }.mascot-row { grid-template-columns: 110px minmax(0, 1fr); gap: 6px; }.mascot { width: 126px; margin-left: -20px; }.speech { min-height: 130px; padding: 20px 17px; border-radius: 22px; }.speech strong { font-size: clamp(18px, 5.4vw, 23px); }.speech p { font-size: 14px; }.learning-count { justify-content: center; margin: 22px 0 0; font-size: 15px; }.taste-board { height: auto; margin-top: 70px; }.taste-stage { width: calc(100% - 16px); height: 760px; margin: 0 8px; border-radius: 22px; }.round-table::before { left: -66%; top: 90px; width: 232%; height: 520px; }.table-ring { left: -62%; width: 224%; }.table-ring-one { top: 142px; height: 300px; }.table-ring-two { top: 335px; height: 330px; }.dish { width: 174px; min-height: 190px; grid-template-rows: 150px auto; }.food-image { width: 164px; height: 146px; }.dish-name { max-width: 170px; margin-top: 4px; font-size: 15px; }.check { right: 1px; top: 2px; width: 34px; height: 34px; }.dish[data-table-slot="top-edge-left"] { left: -12%; top: 104px; }.dish[data-table-slot="top-left"] { left: 31%; top: 90px; }.dish[data-table-slot="top-right"] { left: 70%; top: 90px; }.dish[data-table-slot="top-edge-right"] { left: 113%; top: 104px; }.dish[data-table-slot="bottom-edge-left"] { display: none; }.dish[data-table-slot="bottom-left"] { left: -8%; top: 370px; }.dish[data-table-slot="bottom-mid-left"] { left: 28%; top: 358px; }.dish[data-table-slot="bottom-center"] { left: 58%; top: 346px; }.dish[data-table-slot="bottom-right"] { left: 89%; top: 358px; }.dish[data-table-slot="bottom-edge-right"] { left: 121%; top: 370px; }.taste-actions { position: static; padding: 34px 16px 0; gap: 24px; }.taste-actions strong { font-size: 23px; }.taste-actions button { width: 100%; height: 66px; gap: 44px; border-radius: 34px; font-size: 21px; }.allergy-dialog { width: 100%; max-width: none; max-height: 86svh; margin: auto 0 0; border-radius: 28px 28px 0 0; }.dialog-card { padding: 26px 20px max(20px, env(safe-area-inset-bottom)); }.dialog-handle { display:block; width:40px; height:4px; margin:-12px auto 22px; border-radius:999px; background:#d8dcd7; }.allergy-grid { grid-template-columns: repeat(2,1fr); gap:8px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration:.01ms !important; transition-duration:.01ms !important; } }
