/* Copied verbatim from artifact/index.html <style> (lines 11-243). Do not edit: app-only styles go in app.css. */
:root{
  /* Brand: Ma'adanei Gourmet — black bar, olive-gold leaf, dark olive ink, fish blue reserved for fish */
  --bar:#070807; --brand:#aca400; --brand-ink:#7d7700; --brand-soft:#f3f1d9;
  --ink:#2f3022; --ink-2:#5c5d4a; --muted:#8b8b79; --line:#e3e1d4; --bg:#f6f5ef; --surface:#ffffff;
  --good:#2e7d32; --good-soft:#e5f2e6; --warn:#a86a00; --warn-soft:#fbf0d9; --bad:#b3261e; --bad-soft:#fbe6e4;
  --fish:#1a8fd0;
  --f-display:"Rubik","Assistant",system-ui,sans-serif; --f-body:"Assistant",system-ui,"Segoe UI",Arial,sans-serif;
  color-scheme:light;
  /* layout: fixed black brand bar, tab rail, question bar, then tab content as full-width scanned tables */
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--f-body);font-size:15px;line-height:1.45}
h1,h2,h3{font-family:var(--f-display);text-wrap:balance;margin:0;color:var(--ink)}
h2{font-size:20px;font-weight:600} h3{font-size:16px;font-weight:600}
button,select,input,textarea{font-family:inherit;font-size:14px;color:var(--ink)}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.num{font-variant-numeric:tabular-nums;white-space:nowrap}
header.bar{background:var(--bar);color:#fff;display:flex;align-items:center;gap:16px;padding:10px 20px;flex-wrap:wrap}
header.bar img{height:34px;width:auto}
header.bar h1{color:#fff;font-size:18px;font-weight:600}
header.bar .sub{color:#c9c8b8;font-size:13px}
header.bar .sp{flex:1}
header.bar label{color:#c9c8b8;font-size:13px;display:flex;gap:8px;align-items:center}
header.bar select{background:#1b1c17;color:#fff;border:1px solid #3a3b30;border-radius:6px;padding:5px 8px}
nav.tabs{display:flex;gap:2px;background:var(--surface);border-bottom:1px solid var(--line);padding:0 12px;overflow-x:auto}
nav.tabs button{background:none;border:0;border-bottom:3px solid transparent;padding:11px 12px;cursor:pointer;color:var(--ink-2);font-weight:600;white-space:nowrap}
nav.tabs button[aria-selected="true"]{color:var(--ink);border-bottom-color:var(--brand)}
nav.tabs button:hover{color:var(--ink)}
main{padding:16px 20px 40px;max-width:1500px;margin:0 auto;display:flex;flex-direction:column;gap:16px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:16px}
.row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.stack{display:flex;flex-direction:column;gap:12px}
.muted{color:var(--muted)} .small{font-size:13px}
.btn{background:var(--brand);color:#fff;border:0;border-radius:6px;padding:7px 14px;cursor:pointer;font-weight:700}
.btn:hover{background:var(--brand-ink)} .btn[disabled]{opacity:.5;cursor:default}
.btn.ghost{background:transparent;color:var(--ink);border:1px solid var(--line);font-weight:600}
.btn.ghost:hover{background:var(--brand-soft)}
.btn.danger{background:var(--bad)}
select,input[type=text],input[type=number],textarea{border:1px solid var(--line);border-radius:6px;padding:6px 8px;background:#fff}
textarea{width:100%;min-height:60px;resize:vertical}
.banner{border-radius:8px;padding:10px 14px;border:1px solid}
.banner.warn{background:var(--warn-soft);border-color:#ecd39b;color:#5f3d00}
.banner.info{background:var(--brand-soft);border-color:#e0dcae}
.banner.bad{background:var(--bad-soft);border-color:#f0c2bd}
.banner.good{background:#e8f3e6;border-color:#a9cfa2;color:#1f4d1a}
.chip{display:inline-block;border-radius:999px;padding:1px 9px;font-size:12px;font-weight:700;white-space:nowrap;border:1px solid transparent}
.chip.good{background:var(--good-soft);color:var(--good)} .chip.bad{background:var(--bad-soft);color:var(--bad)} .chip.warn{background:var(--warn-soft);color:var(--warn)} .chip.neutral{background:#efeee6;color:var(--ink-2)} .chip.brand{background:var(--brand-soft);color:var(--brand-ink)}
.tablewrap{overflow-x:auto;border:1px solid var(--line);border-radius:8px;background:#fff}
table{border-collapse:collapse;width:100%;font-size:13.5px}
th,td{padding:6px 9px;border-bottom:1px solid var(--line);text-align:right;vertical-align:top}
th{background:#f1f0e8;color:var(--ink-2);font-weight:700;position:sticky;top:0;z-index:1;white-space:nowrap;text-align:center!important;vertical-align:top!important}
/* two-row headers (average price): sub-chain row stays on top, the measure row sticks right below it */
.hdr2 thead tr:first-child th{top:0;height:32px;box-sizing:border-box}
.hdr2 thead tr:nth-child(2) th{top:32px}
.tablewrap.pmwrap{max-height:75vh;overflow:auto}
td.n,th.n{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
tr.sub td{background:#f8f7ef;font-weight:700}
tr.total td{background:#ecebdf;font-weight:700}
tr.grp td{background:var(--brand-soft);font-weight:700}
tbody tr:hover td{background:#fbfaf3}
td .delta{display:block;font-size:11.5px;color:var(--muted);font-weight:400}
a{color:var(--brand-ink)} a:hover{color:var(--ink)}
th.scgroup{text-align:center;border-inline-start:2px solid var(--line)}
td.sc0,th.sc0{border-inline-start:2px solid var(--line)}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
.kpi{background:#fff;border:1px solid var(--line);border-radius:8px;padding:10px 12px}
.kpi .l{font-size:12.5px;color:var(--ink-2)} .kpi .v{font-family:var(--f-display);font-size:21px;font-weight:600} .kpi .d{font-size:12.5px;color:var(--muted)}
.insight{display:grid;grid-template-columns:36px 1fr auto;gap:12px;background:#fff;border:1px solid var(--line);border-inline-start:4px solid var(--brand);border-radius:8px;padding:12px 14px}
.insight .rank{font-family:var(--f-display);font-size:22px;color:var(--brand-ink);font-weight:700}
.insight .imp{text-align:left;font-variant-numeric:tabular-nums}
.insight .imp b{font-family:var(--f-display);font-size:18px;display:block}
.insight h3{margin-bottom:4px}
.insight.collapsed .fnd{display:none}
.gins-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:14px}
@media (max-width:420px){.gins-grid{grid-template-columns:1fr}}
.gins{border-inline-start:4px solid var(--line);background:#fbfaf4;border-radius:6px;padding:8px 12px;display:grid;gap:3px;font-size:14px}
.gins.bad{border-inline-start-color:#b5452f} .gins.good{border-inline-start-color:#5f8a2b}
.instog{background:none;border:1px solid var(--line);border-radius:6px;padding:2px 10px;margin:8px 0 0;font:inherit;font-size:13px;color:var(--brand-ink);cursor:pointer}
.insight .act{margin-top:6px;padding:6px 10px;background:#f8f7ef;border-radius:6px}
.qa{display:flex;gap:8px;align-items:stretch}
.qa input{flex:1;padding:9px 12px;font-size:15px}
.answer{border-inline-start:4px solid var(--brand)}
.answer .q{font-weight:700;margin-bottom:6px}
.answer .body p{margin:0 0 6px}
.answer .body ul{margin:0 0 6px;padding-inline-start:20px}
.chartbox{position:relative;height:320px}
.legend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13px}
.legend span{display:inline-flex;align-items:center;gap:6px;cursor:pointer;user-select:none}
.legend i{width:14px;height:3px;border-radius:2px;display:inline-block}
.legend .off{opacity:.35}
.filters{display:flex;flex-wrap:wrap;gap:10px;align-items:end}
.filters label{display:flex;flex-direction:column;gap:3px;font-size:12.5px;color:var(--ink-2)}
.spark{vertical-align:middle}
.empty{padding:28px;text-align:center;color:var(--muted)}
details>summary{cursor:pointer;font-weight:700;color:var(--ink-2)}
.progress{height:6px;background:var(--line);border-radius:3px;overflow:hidden}
.progress>div{height:100%;background:var(--brand);width:0}
.draft{display:grid;gap:6px;background:#fff;border:1px dashed #cfcbb0;border-radius:8px;padding:10px}
.draft input[type=text]{width:100%;font-weight:700}
.twocol{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media (max-width:900px){.twocol{grid-template-columns:1fr}.insight{grid-template-columns:28px 1fr}.insight .imp{grid-column:2;text-align:right}}
@media (max-width:520px){main{padding:12px}header.bar{padding:10px 12px}}
a{color:var(--brand-ink)}
.mobile-only,.mobile-inline,tr.mrow{display:none}
.chips{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px}
.chipbtn{border:1px solid var(--line);background:#fff;border-radius:999px;padding:5px 12px;white-space:nowrap;cursor:pointer;font-weight:600;color:var(--ink-2)}
.chipbtn[aria-pressed="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}
details.card>summary,details.filt>summary{padding:2px 0}
.qanote{font-size:12px;color:var(--muted)}
@media (max-width:700px){
  .desk-only{display:none!important} .mobile-only{display:flex} .mobile-inline{display:inline}
  html,body{font-size:14.5px}
  header.bar{gap:10px;padding:8px 12px} header.bar img{height:26px} header.bar h1{font-size:15px} header.bar .sub{display:none}
  nav.tabs{position:sticky;top:0;z-index:5;padding:0 4px} nav.tabs button{padding:10px 9px;font-size:14px}
  main{padding:10px 10px 32px;gap:12px}
  .card{padding:12px}
  h2{font-size:17px}
  .kpis{grid-template-columns:1fr 1fr;gap:8px} .kpi{padding:8px 10px} .kpi .v{font-size:18px}
  .insight{grid-template-columns:22px 1fr;gap:8px;padding:10px} .insight .rank{font-size:18px}
  .qa input{font-size:16px}
  .tablewrap{max-height:none!important}
  table.resp thead{display:none}
  table.resp,table.resp tbody,table.resp tr,table.resp td{display:block;width:100%}
  table.resp tr{border-bottom:1px solid var(--line);padding:8px 10px}
  table.resp td{border:0;padding:2px 0;display:flex;justify-content:space-between;align-items:baseline;gap:12px;text-align:right}
  table.resp td[data-label]::before{content:attr(data-label);color:var(--muted);font-weight:600;font-size:12.5px}
  table.resp td.h{font-weight:700;font-size:15px;display:block}
  table.resp td:empty,table.resp td.gcell{display:none}
  table.resp tr.mrow{display:block;background:var(--brand-soft);font-weight:700}
  table.resp tr.sub,table.resp tr.total{background:#f3f2e9}
  table.resp td .delta{display:inline;margin-inline-start:6px}
  td .delta{font-size:11px}
  .tablewrap.rwrap{max-height:72vh!important;overflow:auto}
  table.rtab{font-size:12.5px;width:max-content;min-width:100%}
  table.rtab th,table.rtab td{padding:4px 6px}
  table.rtab th{white-space:normal;min-width:56px;max-width:90px;line-height:1.2}
  table.rtab td.h,table.rtab td.gcell{min-width:96px;max-width:140px;white-space:normal}
  .tablewrap.pmxwrap{max-height:72vh!important;overflow:auto}
  table.pmx{font-size:12.5px;width:auto}
  table.pmx th,table.pmx td{padding:4px 6px}
  table.pmx th.scgroup{white-space:normal;min-width:96px;font-size:12px;line-height:1.2}
  table.pmx.hdr2 thead tr:first-child th{height:40px} table.pmx.hdr2 thead tr:nth-child(2) th{top:40px}
  table.pmx .nm{position:sticky;inset-inline-start:0;background:#fff;z-index:2;min-width:92px;max-width:110px;white-space:normal;box-shadow:-1px 0 0 var(--line)}
  table.pmx th.nm{background:#f1f0e8;z-index:3}
  table.pmx tr.sub td.nm{background:#f8f7ef} table.pmx tr.total td.nm{background:#ecebdf}
  .chartbox{height:250px}
  .filters label{flex:1 1 140px} .filters select,.filters input[type=text]{width:100%}
  .twocol{grid-template-columns:1fr}
}
header.bar #pdfBtn{padding:5px 12px}
.overlay{position:fixed;inset:0;background:rgba(7,8,7,.55);z-index:50;display:flex;align-items:center;justify-content:center;padding:16px}
#expDlg .dialog{max-height:calc(100vh - 32px);display:flex;flex-direction:column;overflow:hidden}
#expDlg .explist{overflow-y:auto;flex:1 1 auto;min-height:80px;display:flex;flex-direction:column;gap:6px;padding:4px 2px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
#expDlg .expfoot{flex:0 0 auto}
.dialog{background:#fff;border-radius:10px;padding:18px;max-width:420px;width:100%;display:flex;flex-direction:column;gap:12px;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.dialog label{display:flex;gap:8px;align-items:center;font-size:15px}
.exphead{display:flex;align-items:center;gap:14px;background:var(--bar);color:#fff;padding:10px 16px;border-radius:8px}
.exporting .exphead span{flex:1 1 160px;min-width:0}
.exporting .gosa-note{display:none!important}
.exp-brief .insight .fnd,.exp-brief .insight .act{display:none!important}
.expnote{font-size:14px;color:var(--ink-2);font-weight:600}
.exphead img{height:30px}.exphead b{font-family:var(--f-display);font-size:18px}.exphead span{color:#c9c8b8;font-size:13px}
.exporting details.filt,.exporting details.card,.exporting #draftCard,.exporting [data-qdel],.exporting .mobile-only{display:none!important}
.exporting .tablewrap{max-height:none!important;overflow:visible!important}
.exporting td[data-label]::before{content:none!important;display:none!important}
/* print look: Excel-like grid, zebra rows, columns as wide as their widest value */
.exporting main{max-width:none!important}
.exporting #view{width:max-content!important;min-width:var(--expw,1060px)}
.exporting #view *:not(table):not(thead):not(tbody):not(tr):not(th):not(td):not(.tablewrap):not(.card):not(.exphead):not(.stack){max-width:var(--expw,1060px)}
.exporting .card{border:0!important;padding:4px 0!important;background:transparent!important}
.exporting .tablewrap{border:0!important;background:transparent!important;border-radius:0!important}
.exporting table{width:auto!important;min-width:0!important;border-collapse:collapse!important;font-size:13px!important}
.rtab td.over{color:var(--bad)!important;font-weight:700}
.rtab td.under{color:var(--warn)!important;font-weight:700}
.chartbox-half{height:190px}
.fustep{border-inline-start:3px solid var(--line);padding-inline-start:12px;margin-top:4px}
.fuq{font-weight:700;margin-bottom:2px}
.fuform{gap:8px}.fuform .fuin{flex:1;min-width:0}
.exporting .chip.exl{color:#b54708!important;font-weight:600!important;font-size:.85em}
.exporting .noexp{display:none!important}
.amtog{border:1px solid var(--line);background:#fff;border-radius:6px;width:22px;height:22px;line-height:18px;padding:0;margin-inline-end:6px;cursor:pointer;font-weight:700;color:var(--ink-2)}
.exporting .amtog,.exporting .amall{display:none!important}
.pstab th,.exporting table.pstab th{white-space:normal!important;min-width:60px!important;max-width:105px!important;line-height:1.25;vertical-align:bottom!important}
.exporting th,.exporting td{border:1px solid #bdb9a0!important;padding:3px 8px!important;white-space:nowrap!important;position:static!important;max-width:none!important;min-width:0!important}
.exporting .exp-dense td{padding:1px 6px!important;line-height:1.25!important}
.exporting .exp-dense th{padding:2px 6px!important}
.exporting th{white-space:normal!important;max-width:120px!important;background:#dcdac2!important;color:#2f3022!important;vertical-align:top!important;text-align:center!important}
.exporting tbody tr td{background:#ffffff!important}
.exporting tbody tr:nth-child(even) td{background:#f3f2e8!important}
.exporting tbody tr.sub td{background:#e4e2cc!important;font-weight:700!important}
.exporting tbody tr.total td{background:#d3d0b2!important;font-weight:700!important}
.exporting tbody tr.mrow{display:none!important}
.exporting td .chip{background:none!important;border:0!important;padding:0!important;font-weight:600!important}
.exporting td a{color:inherit!important;text-decoration:none!important}
.exporting td .delta{display:none!important}
.exporting table.hdr2{font-size:16px!important}
.exporting table.hdr2 td,.exporting table.hdr2 th{padding:4px 9px!important}
.exporting .noexp{display:none!important}
.exporting .kpis{grid-template-columns:repeat(auto-fit,minmax(270px,1fr))!important;gap:14px!important;margin-top:6px}
.exporting .kpi{padding:16px 18px!important;border:1px solid #d9d6bf!important;border-top:5px solid var(--brand)!important;border-radius:8px!important;background:#fff!important;min-height:132px}
.exporting .kpi .l{font-size:17px!important;font-weight:700!important;color:var(--ink)!important}
.exporting .kpi .v{font-size:38px!important;line-height:1.15!important;margin:6px 0!important;color:var(--ink)!important}
.exporting .kpi .d{font-size:14px!important;color:var(--ink-2)!important}
.exporting .insights-card{border:1px solid #d9d6bf!important;border-radius:8px!important;padding:14px 16px!important;min-height:700px;background:#fff!important}
.exporting .insights-card h2{font-size:22px!important}
.exporting .insight{border:1px solid #e3e1d4!important;border-inline-start:5px solid var(--brand)!important}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
.spin{display:inline-block;width:12px;height:12px;border:2px solid var(--line);border-top-color:var(--brand);border-radius:50%;animation:sp 0.8s linear infinite;vertical-align:-1px}
@keyframes sp{to{transform:rotate(360deg)}}
/* ---------- splash: the ring of the full logo fills with gold as the data loads ---------- */
#splash{position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:#f6f5ef;color:#2f3022;overflow:hidden;transition:opacity .6s ease,visibility .6s}
#splash.gone{opacity:0;visibility:hidden}
.sp-bg{position:absolute;inset:-25%;filter:blur(70px)}
.sp-bg i{position:absolute;width:60vmax;height:60vmax;border-radius:50%;mix-blend-mode:multiply;animation:spDrift 16s ease-in-out infinite alternate}
.sp-bg i:nth-child(1){background:radial-gradient(circle,rgba(172,164,0,.55) 0,transparent 62%);top:-12%;right:-8%}
.sp-bg i:nth-child(2){background:radial-gradient(circle,rgba(88,104,46,.45) 0,transparent 62%);bottom:-18%;left:-12%;animation-duration:20s;animation-delay:-7s}
.sp-bg i:nth-child(3){background:radial-gradient(circle,rgba(214,170,74,.40) 0,transparent 60%);top:35%;left:30%;width:44vmax;height:44vmax;animation-duration:24s;animation-delay:-12s}
@keyframes spDrift{0%{transform:translate(0,0) scale(1)}50%{transform:translate(7vmax,-5vmax) scale(1.15)}100%{transform:translate(-6vmax,6vmax) scale(.9)}}
.sp-box{position:relative;display:grid;justify-items:center;gap:10px;text-align:center;padding:24px}
.sp-ring{position:relative;width:min(70vw,300px);aspect-ratio:1;border-radius:50%;animation:spBreath 3.2s ease-in-out infinite}
.sp-ring::before{content:"";position:absolute;inset:4%;border-radius:50%;background:#fff;box-shadow:0 24px 70px rgba(47,48,34,.18)}
.sp-ring img{position:absolute;inset:0;width:100%;height:100%}
/* the logo's own circle is drawn in as the data loads: a conic mask that opens with --p */
@property --p{syntax:'<number>';inherits:true;initial-value:0}
#splash{transition:opacity .6s ease,visibility .6s,--p .5s ease}
.sp-rings{-webkit-mask-image:conic-gradient(#000 calc(var(--p) * 1turn),transparent calc(var(--p) * 1turn + .5deg));mask-image:conic-gradient(#000 calc(var(--p) * 1turn),transparent calc(var(--p) * 1turn + .5deg))}
@keyframes spBreath{0%,100%{transform:scale(1)}50%{transform:scale(1.025)}}
.sp-title{margin-top:14px;font-family:var(--f-display);font-size:clamp(20px,5.4vw,27px);font-weight:700;color:#2f3022}
.sp-pct{font:700 15px/1 var(--f-body);color:#7d7700;letter-spacing:.04em;font-variant-numeric:tabular-nums}
.sp-txt{font-size:13.5px;color:#5c5d4a;min-height:1.4em;font-variant-numeric:tabular-nums}
@media (prefers-reduced-motion:reduce){.sp-bg i,.sp-ring{animation:none}#splash{transition:opacity .3s}}
#histBar{position:absolute;left:0;right:0;bottom:0;height:2px;background:rgba(172,164,0,.15)} #histBar i{display:block;height:100%;width:0;background:var(--brand);transition:width .3s}
header.bar{position:relative}
