/* 24slow v3. Direction from v2 (green #205d45, 18px base, 48px tap targets). No external fonts. */
:root{
  --ink:#202c27;--muted:#5c6962;--green:#205d45;--green-hover:#164a36;--pale:#edf4ec;
  --paper:#fff;--page:#fafbf8;--line:#e2e7e1;--focus:#2363c6;--warn-bg:#fff5e2;--warn-ink:#6b4a17;--warn-line:#eedbb2;
  --alert-bg:#fdecea;--alert-ink:#9b1c1c;--alert-line:#f2c4bf;
  font-family:"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",system-ui,sans-serif;
  font-size:18px;line-height:1.55;color:var(--ink);background:var(--page);
  -webkit-text-size-adjust:100%;text-size-adjust:100%;
}
:root.large-type{font-size:22px}
*{box-sizing:border-box}
body{margin:0;overflow-wrap:anywhere;word-break:keep-all}
body.has-tray{padding-bottom:150px}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
a{color:var(--green);text-underline-offset:.2em}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
main:focus{outline:none}
[hidden]{display:none!important}
h1,h2,h3,p{margin-top:0}
h1,h2,h3{line-height:1.35;letter-spacing:-.03em}
h1{font-size:1.6rem;margin-bottom:14px}
h2{font-size:1.2rem;margin-bottom:12px}
h3{font-size:1rem;margin-bottom:8px}
table{border-collapse:collapse}

.primary,.secondary,.quiet-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:.5rem 1rem;border-radius:12px;font-weight:650;text-decoration:none;border:1px solid transparent;text-align:center}
.primary{background:var(--green);color:#fff}.primary:hover{background:var(--green-hover)}
.secondary{background:#f2f5ef;color:var(--green);border-color:#d6ded1}.secondary:hover{background:#e8efe4}
.quiet-button{background:transparent;color:var(--muted);border-color:var(--line)}
.skip-link{position:fixed;left:1rem;top:-10rem;background:#fff;padding:1rem;z-index:100;border:3px solid var(--focus)}.skip-link:focus{top:1rem}

.site-header{background:#fff;border-bottom:1px solid var(--line)}
.header-inner{max-width:960px;margin:auto;padding:8px 16px 0;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{text-decoration:none;color:var(--ink);display:inline-flex;align-items:center;min-height:48px}
.brand-word{font-size:1.6rem;font-weight:850;letter-spacing:-.07em}.brand-dot{color:var(--green)}
.text-button{border:0;background:#f2f5ef;min-height:48px;padding:.3rem .8rem;border-radius:10px;font-size:.8rem;color:#35493b;white-space:nowrap}
.main-nav{max-width:960px;margin:auto;padding:0 8px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
.main-nav a{display:flex;align-items:center;justify-content:center;min-height:48px;padding:4px 2px;text-decoration:none;color:var(--muted);font-size:.8rem;font-weight:600;text-align:center;line-height:1.25}
.main-nav a:hover{color:var(--green)}
#nav-count{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:3px;font-size:.7rem;background:#eaf0e7;border-radius:7px;color:var(--green)}

main{max-width:960px;margin:auto;padding:20px 16px 48px;min-height:60vh}
.lead{color:var(--muted);font-size:.95rem}
.help-text,.meta{font-size:.82rem;color:var(--muted);line-height:1.6}
.missing{color:var(--muted);font-weight:500;font-size:.85em}
.unit{font-size:.72em;font-weight:500;margin-left:2px}
.breadcrumb{font-size:.85rem;color:var(--muted);margin-bottom:4px}
.breadcrumb a{display:inline-flex;align-items:center;min-height:48px}

.hero{padding:8px 0 16px}
.hero h1{font-size:1.75rem;line-height:1.3}
.hero h1 span{color:var(--green)}
.search-form{margin:0 0 16px}
.search-form label{display:block;font-size:.85rem;font-weight:650;margin-bottom:6px}
.search-input-row{display:flex;align-items:center;gap:8px;border:1.5px solid #547f63;border-radius:14px;padding:4px 4px 4px 14px;background:#fff;min-width:0}
.search-input-row:focus-within{border-color:var(--green);box-shadow:0 0 0 3px #ddebd8}
.search-input-row input{flex:1;min-width:0;width:100%;border:0;background:transparent;min-height:48px;outline:0;font-size:1rem}
.search-input-row button{flex-shrink:0;min-width:64px}

.home-section{padding:20px 0;border-top:1px solid var(--line)}
.quick-links{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.quick-links a{display:inline-flex;align-items:center;min-height:48px;padding:8px 14px;border:1px solid var(--line);border-radius:12px;text-decoration:none;color:#35493b;background:#fff;font-size:.88rem}
.quick-links a:hover{border-color:#799681}
.quick-links a.active,.segmented a.active{background:var(--green);border-color:var(--green);color:#fff;font-weight:700}

.result-heading{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;margin:20px 0 8px}
.result-heading h1{font-size:1.3rem;margin:0}.result-heading p{margin:0;color:var(--green);font-weight:700}
.results{display:grid;gap:12px;margin-top:12px}
.card,.rank-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;min-width:0}
.card-title{font-size:1.08rem;margin:0}
.card-title a{color:var(--ink);text-decoration:none;display:flex;align-items:center;min-height:48px}
.card-title a:hover{text-decoration:underline}
.card .meta,.rank-card .meta{margin:0 0 6px}
.card .meta a,.recall-item .meta a{display:inline-flex;align-items:center;min-height:48px}
.tags{margin:4px 0 8px;display:flex;flex-wrap:wrap;gap:6px}
.tag{display:inline-block;font-size:.74rem;background:var(--pale);color:#35493b;border-radius:7px;padding:3px 8px;font-weight:600}
.tag.warn{background:var(--warn-bg);color:var(--warn-ink)}
.tag.alert{background:var(--alert-bg);color:var(--alert-ink);border:1px solid var(--alert-line)}
.basis-label{font-size:.78rem;color:#5d6e58;margin:0 0 4px;font-weight:600}
.facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0;background:#f6f8f3;border-radius:12px;padding:10px}
.facts div{min-width:0}.facts dt{font-size:.74rem;color:#64705f}
.facts dd{margin:0;font-weight:700;font-size:.98rem;font-variant-numeric:tabular-nums}
.card-actions{display:flex;justify-content:flex-end;margin-top:10px}
.card-actions:empty{display:none}

.pagination{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;margin:24px 0}
.empty{padding:32px 18px;text-align:center;background:#fff;border:1px solid var(--line);border-radius:16px;margin:20px 0}
.empty h1{font-size:1.25rem}
.notice{padding:14px 16px;border-radius:12px;background:#f1f5eb;color:#3f4d39;margin:14px 0;font-size:.9rem}
.notice p:last-child{margin-bottom:0}
.notice.warning{background:var(--warn-bg);color:var(--warn-ink);border:1px solid var(--warn-line)}
.notice.warning h2{font-size:1.15rem;color:var(--warn-ink)}
.notice.alert{background:var(--alert-bg);color:var(--alert-ink);border:1px solid var(--alert-line)}
.notice.alert .help-text{color:var(--alert-ink);font-size:.82rem;margin-top:6px}
.notice.alert a{color:var(--alert-ink)}
.comparison thead .tag{margin-top:4px;padding:2px 4px;font-size:.68rem;overflow-wrap:break-word;word-break:keep-all}
.notice.compact{padding:10px 14px;font-size:.84rem}

.detail-page{max-width:760px;margin:auto}
.product-heading h1{font-size:1.55rem;margin-bottom:10px}
.pairs{display:grid;grid-template-columns:minmax(6.5em,34%) minmax(0,1fr);gap:6px 12px;margin:0 0 12px;font-size:.9rem}
.pairs div{display:contents}
.pairs dt{color:var(--muted)}
.pairs dd{margin:0}
.recall-pairs{padding-top:10px;border-top:1px solid var(--warn-line)}
.block{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;margin:0 0 16px}
.block h3{margin-top:12px}
.table-wrap{max-width:100%;overflow-x:auto}
.nutrition-table,.others-table{width:100%;table-layout:fixed}
.nutrition-table th,.nutrition-table td,.others-table th,.others-table td{padding:10px 6px;border-bottom:1px solid var(--line);text-align:right;vertical-align:top;font-size:.9rem;font-variant-numeric:tabular-nums}
.nutrition-table th:first-child,.others-table th,.others-table td{text-align:left}
.nutrition-table thead th{font-size:.78rem;color:#475646;font-weight:650;line-height:1.35}
.nutrition-table tbody th{font-weight:600}
.nutrition-table td{font-weight:650}
.th-note{font-weight:500;color:var(--muted);font-size:.92em}
.dv{display:block;font-size:.78rem;color:var(--muted);font-weight:500}
.more summary{min-height:48px;display:list-item;padding:12px 0;cursor:pointer;font-size:.88rem;color:#52654d}
.positions{padding-left:1.1em;margin:0 0 10px}
.positions li{margin:0 0 8px}
.positions a{display:inline-flex;align-items:center;min-height:48px}
.materials{background:#f6f8f3;border-radius:10px;padding:12px;font-size:.9rem}
.materials.pre{white-space:pre-line}
.shop-links{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 0}
.shop-link{display:flex;align-items:center;justify-content:center;min-height:52px;padding:10px;background:#f4f6f1;border-radius:11px;text-decoration:none;color:#344830;font-weight:650;font-size:.88rem;text-align:center}
.detail-compare{margin-top:12px}

.group{background:#fff;border:1px solid var(--line);border-radius:14px;margin:0 0 10px}
.group summary{min-height:52px;display:list-item;padding:13px 16px;cursor:pointer;font-weight:650}
.count{font-size:.78rem;color:var(--muted);font-weight:500;margin-left:4px}
.cat-list{list-style:none;margin:0;padding:0 8px 10px}
.cat-list a{display:flex;flex-wrap:wrap;align-items:center;gap:0 6px;min-height:48px;padding:6px 8px;text-decoration:none;border-top:1px solid var(--line)}

.segmented{display:flex;gap:4px;padding:4px;background:#f0f3ed;border-radius:12px;margin:0 0 14px}
.segmented a{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;min-height:48px;border-radius:9px;text-decoration:none;font-size:.85rem;text-align:center}
.rank-form{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;margin:0 0 12px;font-size:.88rem}
.rank-form label{display:flex;align-items:center;gap:6px}
.rank-form select{min-height:48px;border:1px solid #c9d3c3;border-radius:10px;background:#fff;padding:6px 8px}
.rank-form .check{min-height:48px}
.rank-form input[type=checkbox]{width:22px;height:22px;accent-color:var(--green)}
.rank-scope{display:inline-block;font-size:.85rem;background:#edf2e6;color:#3a5232;border-radius:8px;padding:6px 10px;margin:0 0 6px;font-weight:600}
.rank-list{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:10px}
.rank-metric{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;background:#f4f7ef;border-radius:9px;padding:8px 12px;margin:6px 0 0;font-size:.85rem}
.rank-metric strong{font-size:1.15rem;color:var(--green)}
.metric-basis{margin-left:auto;font-size:.78rem;color:var(--muted)}

.comparison{width:100%;table-layout:fixed;background:#fff;border:1px solid var(--line);border-radius:14px}
.comparison th,.comparison td{padding:10px 6px;border-bottom:1px solid var(--line);vertical-align:top;text-align:left;font-size:.88rem;overflow-wrap:anywhere}
.comparison thead th{background:#f2f6eb;font-weight:650}
.comparison thead th a{display:flex;align-items:center;min-height:48px}
.comparison thead .meta{display:block;font-weight:500;font-size:.75rem}
.comparison .remove{display:inline-flex;align-items:center;min-height:48px;font-size:.78rem;font-weight:500}
.comparison tbody th{width:22%;font-weight:600;color:#475646}
.comparison td{font-weight:650;font-variant-numeric:tabular-nums}
.comparison .mark{display:block;font-size:.72rem;font-weight:600;margin-top:2px}
/* 낮음·높음에 좋고 나쁨을 뜻하는 색을 쓰지 않는다(DESIGN 7.7). */
.comparison .lowest,.comparison .highest{background:#f3f5f1}
.comparison .lowest .mark,.comparison .highest .mark{color:var(--ink);font-weight:700}

.recall-item{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px;margin:0 0 10px}
.recall-item h3{font-size:1rem;margin-bottom:8px}
.plain-list{padding-left:1.1em}.plain-list li{margin-bottom:8px}
.related-list{list-style:none;padding:0;margin:0 0 8px}.related-list li{border-top:1px solid var(--line);padding:2px 0 8px;min-width:0}
.related-list li:first-child{border-top:0}.related-list a{display:flex;align-items:center;min-height:48px;overflow-wrap:anywhere}
.related-list .meta{display:block;overflow-wrap:anywhere}

.compare-tray{position:fixed;left:8px;right:8px;bottom:8px;z-index:40;max-width:720px;margin:auto;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px;background:#fff;border:1px solid #d8e1d0;border-radius:16px;box-shadow:0 8px 28px #1d38231f}
#tray-text{flex:1 1 100%;font-size:.82rem;color:#35493b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#tray-link{flex:1}
#tray-link[aria-disabled=true]{background:#9aa99f}

.site-footer{max-width:960px;margin:auto;border-top:1px solid var(--line);padding:20px 16px 32px;color:#5f6b5d;font-size:.78rem}
.site-footer p{margin:4px 0}
.site-footer a{display:inline-flex;align-items:center;min-height:48px}

/* Category pictures (DESIGN.md 9B). Sizes come from the width/height attributes, so nothing moves. */
.art{display:block;flex-shrink:0;object-fit:contain}
.card-head{display:flex;align-items:center;gap:12px;min-width:0}
.card-head-text{min-width:0;flex:1}
.card-head .art{width:56px;height:56px;border-radius:14px;background:var(--pale)}
.title-row{display:flex;align-items:center;gap:14px;min-width:0}
.title-row h1{margin-bottom:0;min-width:0;flex:1}
.title-row.has-art{margin-bottom:6px}
.title-row:not(.has-art) h1{margin-bottom:14px}
.product-heading .title-row:not(.has-art) h1{margin-bottom:10px}
.art-detail{width:96px;height:96px;border-radius:20px;background:var(--pale)}
.art-header{width:72px;height:72px;border-radius:16px;background:var(--pale)}
.art-caption{font-size:.75rem;color:var(--muted);margin:0 0 12px}
.art-small{width:36px;height:36px}
.art-links a{gap:8px;padding:6px 14px 6px 8px}
.art-links a:last-child{padding-left:14px}
.group-summary{display:inline-flex;align-items:center;gap:10px;vertical-align:middle}
.group-summary .art{width:40px;height:40px}

/* Nutrient-claim lines and source lines */
.claim-list{list-style:none;margin:0 0 10px;padding:0}
.claim-list li{padding:10px 0;border-bottom:1px solid var(--line)}
.claim-list li:first-child{padding-top:0}
.claim-sentence{margin:0 0 4px;font-weight:600;font-size:.95rem}
.claim-list .help-text{margin:0 0 4px}
.claim-quote{margin:0;font-size:.8rem;color:#4a5a47;background:#f6f8f3;border-left:3px solid #b9cdb5;padding:6px 10px;border-radius:0 8px 8px 0;white-space:pre-line}
.claim-quote q{quotes:none}
.quote-label{display:inline-block;font-size:.72rem;font-weight:700;color:#5d6e58;margin-right:4px}
.source-line{font-size:.78rem;color:var(--muted);margin:8px 0 0}
.source-line a{display:inline-flex;align-items:center;min-height:48px}

/* /guide: quoted official material is set apart from our own sentences */
.guide-page{max-width:760px;margin:auto}
.guide-page>h2,.guide-section>h2{margin-top:24px}
.guide-links{list-style:none;padding:0;margin:0 0 20px;display:grid;gap:10px}
.guide-links a{display:flex;flex-direction:column;gap:2px;min-height:48px;padding:14px 16px;background:#fff;border:1px solid var(--line);border-radius:14px;text-decoration:none;color:var(--ink)}
.guide-links a:hover{border-color:#799681}
.guide-links strong{color:var(--green)}
.guide-links span{font-size:.84rem;color:var(--muted)}
.quote{margin:0 0 16px;background:#f7f9f4;border:1px solid #dfe7da;border-left:5px solid #9fbd99;border-radius:4px 14px 14px 4px;padding:14px 14px 10px;min-width:0}
.quote-body{font-size:.92rem}
.quote-body>:last-child{margin-bottom:0}
.quote-source{margin-top:10px;padding-top:8px;border-top:1px dashed #cfdbc9;font-size:.76rem;color:#5d6e58;line-height:1.5}
.quote-h{font-size:.95rem;margin:14px 0 6px}
.quote-h:first-child{margin-top:0}
.quote-notes{padding-left:1.4em;font-size:.84rem;margin:10px 0 0}
.quote-notes.plain{list-style:none;padding-left:0}
.quote-notes li{margin-bottom:6px}
.ref-table{width:100%;background:#fff;border-radius:10px}
.ref-table th,.ref-table td{padding:8px 6px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;font-size:.86rem}
.ref-table thead th{font-size:.78rem;color:#475646;font-weight:650;background:#f2f6eb}
.ref-table tbody th{font-weight:600}
.ref-table .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.ref-table .num.pre{white-space:pre-line}
.ref-table .pre,.pre{white-space:pre-line}
.ref-table .sub{font-size:.78rem;color:var(--muted)}
.ref-table sup{font-size:.68em;margin-left:1px;color:var(--muted)}
.claims-table th:first-child{width:24%}.claims-table td:nth-child(2){width:18%}
.met-table td:nth-child(3),.met-table thead th{white-space:nowrap}
.met-table thead th[colspan]{white-space:normal}
.met-table tbody th{width:44%}
.met-table .cat-row th{background:#eef3e8;font-size:.8rem;color:#3a5232}
.intake-heading{margin-top:22px}
.intake-table h3{margin:18px 0 8px}
.guide-form{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:flex-end;margin:0 0 8px}
.guide-form label{display:flex;flex-direction:column;gap:4px;font-size:.85rem;font-weight:650}
.guide-form select{min-height:48px;min-width:9em;border:1px solid #c9d3c3;border-radius:10px;background:#fff;padding:6px 8px;font-weight:500}
.guideline-list,.allergen-list{padding-left:1.6em;margin:0}
.guideline-list li,.allergen-list li{margin-bottom:8px}
.rec-list{list-style:none;padding:0;margin:0}
.rec-list li{margin:0 0 8px}
.rec-main{font-weight:650}
.rec-heading{font-weight:700;color:#3a5232}
.rec-nested{margin-left:1em!important}
.rec-detail{margin-left:1.2em!important;font-size:.88rem;color:#3f4d39;position:relative}
.rec-detail::before{content:"·";position:absolute;left:-.8em}
.example-list{margin:0}
.example-list div{margin-bottom:10px}
.example-list dt{font-weight:650;font-size:.86rem;color:#3a5232}
.example-list dd{margin:2px 0 0}
.guide-box h3{margin:16px 0 8px}

@media (max-width:600px){
  .facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .shop-links{grid-template-columns:1fr}
  .pairs{grid-template-columns:minmax(0,40%) minmax(0,1fr)}
  .nutrition-table th,.nutrition-table td{padding:9px 3px;font-size:.84rem}
  .comparison th,.comparison td{padding:8px 3px;font-size:.8rem}
  .ref-table th,.ref-table td{padding:7px 4px;font-size:.8rem}
  .art-detail{width:80px;height:80px}
  .quote{padding:12px 10px 8px}
  .met-table th,.met-table td{padding:7px 3px}
}
.large-type .facts{grid-template-columns:repeat(2,minmax(0,1fr))}
.large-type .main-nav a{font-size:.68rem}

/* ---------------------------------------------------------------- AI 도우미 느리 (DESIGN.md 9A/9B) */
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.primary:disabled{background:#9aa99f;cursor:not-allowed}

.chat-page{max-width:760px;margin:auto}
.demo-banner{margin:0 0 10px;text-align:center;font-size:.92rem}
.neuri-stage{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:14px;margin:0 -16px;padding:8px 16px;background:var(--page);border-bottom:1px solid transparent}
.chat-page.is-scrolled .neuri-stage{border-bottom-color:var(--line);box-shadow:0 8px 14px -12px #1d382366}
.neuri-figure{flex:0 0 96px;width:96px;height:96px}
.neuri-pose{display:block;width:100%;height:100%}
.neuri-pose.swap{animation:neuri-swap .18s ease-out}
@keyframes neuri-swap{from{opacity:.4;transform:translateY(3px) scale(.97)}to{opacity:1;transform:none}}
.neuri-bubble{position:relative;flex:1;min-width:0;background:#fff;border:1px solid var(--line);border-radius:16px;padding:10px 14px}
.neuri-bubble::before{content:"";position:absolute;left:-8px;top:calc(50% - 7px);width:13px;height:13px;background:#fff;border-left:1px solid var(--line);border-bottom:1px solid var(--line);transform:rotate(45deg)}
.neuri-title{font-size:.78rem;color:var(--green);margin:0 0 2px;letter-spacing:-.02em}
.neuri-status{margin:0;font-size:.95rem;font-weight:600;line-height:1.45;min-height:1.45em}
.chat-page.is-active .neuri-figure{flex-basis:72px;width:72px;height:72px}
.chat-page.is-active .neuri-bubble{padding:8px 12px}
.chat-disclaimer{font-size:.8rem;color:#3f4d39;background:#f1f5eb;border-radius:10px;padding:8px 12px;margin:10px 0 14px;line-height:1.55}
.chat-disclaimer strong{display:block;font-size:.92rem;color:#205d45}

.chat-log{display:flex;flex-direction:column;gap:14px;padding-bottom:14px}
.turn{scroll-margin-top:120px;scroll-margin-bottom:150px}
.turn.is-new{animation:msg-in .18s ease-out both}
@keyframes msg-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.msg{display:flex;gap:8px;min-width:0}
.msg p{margin:0 0 8px}.msg p:last-child{margin-bottom:0}
.msg ul{margin:0 0 8px;padding-left:1.2em}.msg li{margin-bottom:4px}
.msg ol{margin:0 0 8px;padding-left:1.6em}
.msg strong{font-weight:750}
/* A table in an answer: scrolls sideways inside the bubble (never widens it); shadows at the edges
   appear only while there is more to scroll (background-attachment local/scroll). */
.md-table{--md-bg:#fff;display:block;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;margin:4px 0 10px;border:1px solid var(--line);border-radius:10px;
  background:linear-gradient(to right,var(--md-bg) 40%,transparent) left center/32px 100% no-repeat local,
    linear-gradient(to left,var(--md-bg) 40%,transparent) right center/32px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%,#1d382366,transparent) left center/18px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%,#1d382366,transparent) right center/18px 100% no-repeat scroll,
    var(--md-bg)}
.md-table:last-child{margin-bottom:0}
.md-table table{border-collapse:collapse;min-width:100%;font-size:.9em;line-height:1.4}
.md-table th,.md-table td{padding:8px 10px;border-bottom:1px solid var(--line);vertical-align:top;text-align:left;word-break:keep-all;overflow-wrap:break-word}
.md-table thead th{min-width:6.5em;background:#205d451c;color:#2f4a2b;font-weight:700;font-size:.92em;vertical-align:bottom;border-bottom:2px solid #b9cdb5}
.md-table tbody tr:last-child td{border-bottom:0}
.md-table .md-r{text-align:right}.md-table .md-c{text-align:center}
.md-table .md-num{white-space:nowrap;font-variant-numeric:tabular-nums}
@media (max-width:600px){.md-table table{font-size:.84em}.md-table th,.md-table td{padding:7px 5px}.md-table thead th{min-width:3.4em}}  /* three columns fit a 360px screen */
.is-sorry .md-table{--md-bg:var(--warn-bg)}
.msg-face{flex:0 0 40px;display:block;width:40px;height:40px;border-radius:50%;background:var(--pale)}
.msg-name{display:none}
.msg-helper .msg-body{flex:1;min-width:0;background:#fff;border:1px solid var(--line);border-radius:4px 16px 16px 16px;padding:12px 14px;font-size:.95rem}
/* A phone: 느리's face and name on a line above the answer, which takes the whole content width (DESIGN.md 9A.6). */
@media (max-width:719px){
  .msg-helper{flex-wrap:wrap;align-items:center;gap:4px 8px}
  .msg-helper .msg-face{flex-basis:28px;width:28px;height:28px}
  .msg-name{display:block;font-size:.8rem;font-weight:700;color:var(--green);line-height:1.2}
  .msg-helper .msg-body{flex:1 0 100%;padding:12px}
}
/* A record name the server linked (DESIGN.md 9A.6): the site's link colour, underlined. The padding widens
   what a finger can hit without making the line or the table row taller (inline padding takes no room). */
.msg .md-link{color:var(--green);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em;padding:6px 0}
.msg .md-link:hover{color:var(--green-hover);text-decoration-thickness:2px}
.md-table .md-link{padding:8px 10px;margin:0 -10px}
@media (max-width:600px){.md-table .md-link{padding:7px 5px;margin:0 -5px}}
.turn-user{display:flex;flex-direction:column;align-items:flex-end}
.msg-from{margin:4px 2px 0;max-width:85%;font-size:.76rem;color:var(--muted);text-align:right;line-height:1.4}
.msg-user{max-width:85%;background:var(--green);color:#fff;border-radius:16px 4px 16px 16px;padding:10px 14px;font-size:.95rem}
.msg-user p{white-space:pre-wrap}
.msg-source{margin:10px 0 0!important;padding:8px 10px;background:#f6f8f3;border-left:3px solid #9fbd99;border-radius:0 8px 8px 0;font-size:.8rem;color:#3f4d39;line-height:1.5}
.source-label{display:inline-block;font-weight:700;color:#2f4a2b;margin-right:4px}
.msg-notice{font-weight:600}
.is-sorry .msg-body{background:var(--warn-bg);border-color:var(--warn-line);color:var(--warn-ink)}
.msg-actions{margin-top:10px!important}
.msg-actions button{min-height:48px}
.chat-cards{display:grid;gap:10px;margin:10px 0 0}
.chat-cards .card{padding:12px 14px}
.chat-cards:empty{display:none}
.chat-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px!important}
.chips-label{font-size:.82rem;color:var(--muted);margin-top:10px!important}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.chip{min-height:48px;padding:8px 14px;border:1px solid #c9d8c6;border-radius:24px;background:#f6f9f4;color:var(--green);font-weight:600;font-size:.88rem;text-align:left;line-height:1.35}
.chip:hover{background:#e8efe4}
.chip:disabled{opacity:.6;cursor:default}
.typing{display:inline-flex;gap:5px;padding:8px 2px}
.typing span{width:8px;height:8px;border-radius:50%;background:#8fa894;animation:typing 1.2s ease-in-out infinite}
.typing span:nth-child(2){animation-delay:.15s}.typing span:nth-child(3){animation-delay:.3s}
@keyframes typing{0%,60%,100%{opacity:.35;transform:none}30%{opacity:1;transform:translateY(-3px)}}

.composer{position:sticky;bottom:0;z-index:20;margin:0 -16px;padding:8px 16px calc(6px + env(safe-area-inset-bottom,0px));background:var(--page);border-top:1px solid var(--line)}
body.has-tray .composer{bottom:calc(var(--tray-h,112px) + 12px)}
.composer-row{display:flex;align-items:flex-end;gap:8px;background:#fff;border:1.5px solid #547f63;border-radius:14px;padding:4px 4px 4px 12px}
.composer-row:focus-within{border-color:var(--green);box-shadow:0 0 0 3px #ddebd8}
.composer textarea{flex:1;min-width:0;border:0;background:transparent;resize:none;font:inherit;font-size:1rem;line-height:1.5;padding:10px 0;min-height:48px;max-height:calc(4.5em + 20px);outline:0;overflow-y:hidden;color:var(--ink)}
.composer textarea:disabled{cursor:not-allowed}
.chat-send{flex-shrink:0;min-width:76px}
.chat-screen{display:flex;align-items:center;gap:8px;margin:0 0 6px;padding:2px 4px 2px 12px;background:var(--pale);border:1px solid #c9d8c6;border-radius:12px}
.chat-screen-text{flex:1;min-width:0;margin:0;font-size:.85rem;line-height:1.4;color:var(--ink)}
.chat-screen-label{font-weight:700}
.chat-screen-clear{display:inline-flex;align-items:center;min-height:44px;padding:0 8px;font-size:.82rem;font-weight:650;white-space:nowrap}
.composer-foot{display:flex;align-items:center;justify-content:flex-end;gap:8px}
.chat-new{display:inline-flex;align-items:center;min-height:48px;padding:0 4px;font-size:.82rem;font-weight:650;white-space:nowrap}

.neuri-fab{position:fixed;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:39;display:inline-flex;align-items:center;gap:6px;min-height:52px;padding:6px 16px 6px 6px;background:#fff;color:var(--green);border:1px solid #c9d8c6;border-radius:28px;box-shadow:0 6px 20px #1d382329;font-weight:700;font-size:.85rem;text-decoration:none;line-height:1.2}
.neuri-fab:hover{background:#f2f7ef}
.neuri-fab{transition:opacity .18s ease-out,transform .18s ease-out,visibility 0s linear 0s}
.neuri-fab.is-away{opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .18s ease-out,transform .18s ease-out,visibility 0s linear .18s}
.neuri-fab.is-compact{padding:6px}
.neuri-fab.is-compact span{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.neuri-fab span{padding-left:10px}
.fab-face+span{padding-left:0}
.fab-face{display:block;width:40px;height:40px;border-radius:50%;background:var(--pale)}
body.has-tray .neuri-fab{bottom:calc(var(--tray-h,112px) + 20px)}
.neuri-fab~.site-footer{padding-bottom:96px}
body.has-tray .neuri-fab~.site-footer{padding-bottom:32px}

.neuri-home{display:flex;align-items:center;gap:14px}
.neuri-home-pose{flex:0 0 96px;width:96px;height:96px}
.neuri-home-text{min-width:0}
.neuri-home-text h2{margin-bottom:6px}
.neuri-home-text p{font-size:.92rem;margin-bottom:10px;color:#35493b}

@media (min-width:720px){
  .neuri-figure{flex-basis:140px;width:140px;height:140px}
  .chat-page.is-active .neuri-figure{flex-basis:112px;width:112px;height:112px}
  .neuri-status{font-size:1.02rem}
  .chat-cards{margin-left:48px;grid-template-columns:repeat(2,minmax(0,1fr))}
  .msg-helper .msg-body{max-width:calc(100% - 48px)}
  .neuri-home-pose{flex-basis:120px;width:120px;height:120px}
  .neuri-fab{right:20px;bottom:20px}
}
@media (prefers-reduced-motion:reduce){
  .turn.is-new,.neuri-pose.swap{animation:none}
  .neuri-fab,.neuri-fab.is-away{transition:none}
  .typing span{animation:none;opacity:.7}
}

/* 원재료 식품 */
.cited-mark{display:inline-block;margin-left:4px;padding:0 5px;border:1px solid #c9d3c3;border-radius:6px;font-size:.66rem;font-weight:600;color:#4a5a47;vertical-align:.12em;white-space:nowrap}
.food-marks{margin-top:10px}
.empty-links{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.home-also{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0}
.home-also .help-text{margin:0}

/* 공유 버튼 (DESIGN.md 7.12): shown by app.js only */
.share{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:0 0 12px}
.share-button{min-height:48px;padding:.35rem .9rem;font-size:.85rem;font-weight:650}
.share-status{font-size:.82rem;color:var(--green);font-weight:600}
.share-status:empty{display:none}

/* 이름과 당류 수치가 다른 제품 (/name-claims, DESIGN.md 9.5) */
.nc-page{max-width:760px;margin:auto}
.nc-page h1{font-size:1.45rem}
.nc-page .lead{margin-bottom:6px}
.nc-section{margin:8px 0 20px}
.nc-section h2{margin-bottom:4px}
.nc-list{list-style:none;margin:8px 0 0;padding:0;background:#fff;border:1px solid var(--line);border-radius:14px}
.nc-list li{display:flex;flex-direction:column;gap:2px;padding:8px 14px 10px;border-top:1px solid var(--line);min-width:0}
.nc-list li:first-child{border-top:0}
.nc-name{display:flex;align-items:center;min-height:48px;font-weight:650;color:var(--ink);text-decoration:none}
.nc-name:hover{text-decoration:underline}
.nc-list .meta,.nc-list .help-text{margin:0}
.nc-value{font-size:.88rem}
.nc-value strong{font-weight:750}
.nc-criterion{color:var(--muted);margin-left:6px}
.nc-how p{font-size:.9rem}
.nc-how .nowrap{white-space:nowrap}
.nc-how a,.nc-entry a{display:inline-flex;align-items:center;min-height:48px}

/* 제품 검색 결과가 없을 때: 음식·원재료 식품 결과와 느리에게 넘기기 */
.handoff{margin:18px 0 0}
.handoff .help-text{margin:8px 0 0}
.handoff-button{width:100%;max-width:28rem;white-space:normal;overflow-wrap:anywhere}
.also{margin:0 0 20px}
.also-h{font-size:1.1rem;margin:0 0 4px}
.also-more{margin:10px 0 0;text-align:center}
.also-none{margin:0 0 20px;text-align:center;color:var(--muted)}
