@charset "UTF-8";
:root {
  color-scheme:light;
  --paper:#f6f4ed;
  --ink:#28362b;
  --muted:#6e7569;
  --line:#dcded1;
  --green:#354e39;
  --sage:#e9eddf;
  --amber:#93632c;
  --white:#fffef9;
  --serif:Georgia,"Noto Serif SC","Songti SC",SimSun,serif;
  --sans:"Segoe UI","Microsoft YaHei",sans-serif;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:14px/1.65 var(--sans);
}
button,input,select {
  font:inherit;
}
button,a,input,select,summary {
  -webkit-tap-highlight-color:transparent;
}
button {
  cursor:pointer;
}
a {
  color:var(--green);
  text-underline-offset:4px;
}
a.nav-button { text-decoration:none; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
  outline:3px solid #a87937;
  outline-offset:4px;
}
button {
  color:inherit;
}
h1,h2,h3,p {
  margin-top:0;
}
h1,h2,h3 {
  line-height:1.35;
}
button:disabled {
  cursor:default;
}
.shell {
  display:grid;
  grid-template-columns:238px minmax(0,1fr);
  min-height:100vh;
}
.sidebar {
  padding:34px 22px 24px;
  background:#eef0e5;
  border-right:1px solid var(--line);
  position:sticky;
  top:0;
  height:100vh;
  display:flex;
  flex-direction:column;
}
.brand {
  display:flex;
  gap:12px;
  align-items:center;
  font:600 23px var(--serif);
  text-decoration:none;
  letter-spacing:2px;
}
.brand small {
  font:8px/2.5 var(--sans);
  display:block;
  letter-spacing:1.25px;
}
.brand-mark {
  background:var(--green);
  color:var(--paper);
  font:28px/48px var(--serif);
  text-align:center;
  width:47px;
  flex-shrink:0;
  border-radius:6px 15px 6px 15px;
}
.edition {
  font-size:11px;
  color:var(--muted);
  letter-spacing:2px;
  margin:25px 0 34px 2px;
}
.cooking-edition {
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:5px;
  letter-spacing:.5px;
}
.edition-link {
  border:0;
  padding:0;
  background:transparent;
  color:var(--green);
  font:inherit;
  letter-spacing:inherit;
  text-decoration:underline;
  text-underline-offset:3px;
}
.edition-link.active { font-weight:600; }
.sidebar nav {
  display:grid;
  gap:9px;
}
.nav-button {
  border:0;
  background:transparent;
  display:flex;
  gap:13px;
  align-items:center;
  padding:13px 12px;
  text-align:left;
  border-radius:5px;
}
.nav-button>span {
  font:10px var(--serif);
  opacity:.55;
}
.nav-button b {
  font-size:10px;
  font-weight:500;
  margin-left:auto;
  opacity:.65;
}
.nav-button.active {
  background:var(--green);
  color:var(--white);
}
.nav-button:not(.active):hover {
  background:#e0e5d6;
}
.sidebar .cooking-subnav {
  margin-top:0;
  padding-left:12px;
  border-left:1px solid #cdd3c2;
  gap:5px;
}
.cooking-subnav .nav-button {
  padding:9px 10px;
  font-size:13px;
}
.cooking-subnav .nav-button.active {
  background:#e0e5d6;
  color:var(--green);
  box-shadow:inset 3px 0 var(--green);
}
.field-note {
  border-top:1px solid #cdd3c2;
  margin-top:55px;
  padding:23px 5px;
}
.field-note>p:not(.small) {
  font:19px/1.8 var(--serif);
  margin:15px 0;
}
.eyebrow {
  font-size:10px;
  letter-spacing:1.6px;
  font-weight:600;
  color:var(--muted);
}
.small {
  font-size:12px;
}
.muted {
  color:var(--muted);
}
.local-status {
  margin-top:auto;
  font-size:10px;
  color:var(--muted);
  display:flex;
  gap:6px;
  align-items:center;
}
.local-status i {
  height:6px;
  width:6px;
  background:#64805b;
  border-radius:50%;
}
.workspace {
  min-width:0;
}
.topbar {
  height:72px;
  padding:0 44px;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:11px;
  color:var(--muted);
  letter-spacing:.5px;
}
.slash {
  padding:0 10px;
  color:#a7ae9d;
}
.snapshot-label {
  font-size:10px;
  border:1px solid var(--line);
  padding:4px 10px;
  border-radius:3px;
}
main {
  padding:41px 44px 0;
  max-width:1510px;
  margin:auto;
}
.hero {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding-bottom:28px;
}
.hero .eyebrow {
  margin-bottom:14px;
  color:#798267;
}
.hero h1 {
  font:500 clamp(30px,3.4vw,45px)/1.35 var(--serif);
  letter-spacing:2px;
  margin-bottom:17px;
}
.intro {
  color:var(--muted);
  font-size:13px;
  margin-bottom:0;
  max-width:650px;
}
.stamp {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  border:1px solid #bec6b1;
  outline:1px solid #bec6b1;
  outline-offset:-5px;
  width:106px;
  height:126px;
  border-radius:50% 50% 4px 4px;
  color:#768267;
  transform:rotate(7deg);
  margin-right:15px;
}
.stamp strong {
  font:27px/1.25 var(--serif);
  letter-spacing:6px;
  padding-left:6px;
  margin:6px 0;
}
.stamp>span {
  font-size:8px;
  letter-spacing:1px;
}
.trust-strip {
  display:grid;
  grid-template-columns:1fr 1.2fr 1.15fr;
  border:1px solid var(--line);
  border-radius:6px;
  padding:20px 8px;
  background:#f0f0e6;
  margin-bottom:35px;
}
.trust-strip>div {
  padding:0 21px;
  border-right:1px solid var(--line);
}
.trust-strip>div:last-child {
  border:0;
}
.trust-strip span,.trust-strip small {
  display:block;
  font-size:10px;
  color:var(--muted);
}
.trust-strip strong {
  display:block;
  font-size:15px;
  margin:3px 0 4px;
  font-weight:600;
}
.amber {
  color:var(--amber);
}
.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:17px;
}
.section-heading h2 {
  font:600 21px var(--serif);
  margin:0;
  letter-spacing:1px;
}
.section-heading>span {
  font-size:11px;
  color:var(--muted);
}
.toolbar {
  display:flex;
  gap:12px;
  margin-bottom:12px;
}
.search-field {
  display:flex;
  align-items:center;
  gap:12px;
  border:1px solid #cdd2c2;
  border-radius:5px;
  background:var(--white);
  padding:0 14px;
  flex:1;
  min-width:0;
}
.search-field>span {
  font:27px Georgia;
  color:var(--muted);
}
.search-field input {
  width:100%;
  min-width:0;
  border:0;
  background:transparent;
  padding:12px 0;
  font-size:12px;
  color:var(--ink);
  outline-offset:0;
}
.search-field input:focus-visible {
  outline:none;
}
.search-field:focus-within {
  outline:2px solid var(--green);
}
kbd {
  font:11px var(--sans);
  border:1px solid var(--line);
  padding:0 5px;
  border-radius:3px;
  color:#939a8b;
}
.select-field {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  color:var(--muted);
}
select {
  border:1px solid var(--line);
  border-radius:5px;
  background:var(--white);
  color:var(--ink);
  padding:10px 26px 10px 10px;
  font-size:11px;
  max-width:100%;
}
.filters {
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  font-size:11px;
  color:var(--muted);
}
.filters label {
  display:flex;
  gap:8px;
  align-items:center;
}
.filters select {
  padding-top:6px;
  padding-bottom:6px;
  background:transparent;
}
.text-button {
  border:0;
  padding:5px 0;
  background:transparent;
  font-size:11px;
  color:var(--muted);
  text-decoration:underline;
  text-underline-offset:4px;
}
.reset {
  margin-left:auto;
}
.catalog-note {
  font-size:10px;
  color:var(--muted);
  margin:14px 0 20px;
}
.card-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:15px;
}
.catalog-card {
  display:flex;
  flex-direction:column;
  text-align:left;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:7px;
  padding:20px;
  min-width:0;
  position:relative;
  transition:border-color .15s,transform .15s,box-shadow .15s;
}
.catalog-card:hover {
  border-color:#8c9e7c;
  transform:translateY(-2px);
  box-shadow:0 5px 15px #28362b09;
}
.card-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:16px;
}
.row-number {
  font:11px var(--serif);
  color:#99a08d;
}
.type-chip {
  font-size:9px;
  color:var(--muted);
  border:1px solid var(--line);
  padding:1px 6px;
  border-radius:3px;
}
.type-chip.portable {
  color:#926c35;
  background:#f8f1e4;
  border-color:#e6d9bc;
}
.catalog-card h3 {
  font:600 20px var(--serif);
  letter-spacing:1px;
  margin:0 0 3px;
}
.english-hint {
  font-size:10px;
  color:var(--muted);
  margin:0 0 19px;
  overflow-wrap:anywhere;
}
.stats {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  border-top:1px solid #e9eadf;
  padding-top:13px;
  width:100%;
  margin-top:auto;
}
.stat span {
  display:block;
  font-size:9px;
  color:var(--muted);
  margin-bottom:3px;
}
.stat strong {
  font:500 20px/1.5 var(--serif);
  overflow-wrap:anywhere;
}
.stat strong.unknown {
  font:11px/1.6 var(--sans);
  color:var(--amber);
}
.card-foot {
  display:flex;
  justify-content:space-between;
  font-size:9px;
  color:var(--muted);
  border-top:1px dashed var(--line);
  margin-top:14px;
  padding-top:12px;
  gap:10px;
}
.card-foot b {
  color:var(--green);
  font-weight:500;
}
.tags {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.tag {
  font-size:10px;
  background:var(--sage);
  color:var(--green);
  padding:3px 8px;
  border-radius:3px;
}
.ingredient-card .tags {
  margin-top:auto;
  min-height:56px;
  align-content:flex-start;
}
.ingredient-card .english-hint {
  margin-bottom:12px;
}
.prefab {
  font:10px/1.6 Consolas,monospace;
  overflow-wrap:anywhere;
  color:var(--muted);
  margin:0 0 17px;
}
.empty-state {
  text-align:center;
  background:var(--white);
  border:1px dashed var(--line);
  padding:45px 20px;
  border-radius:5px;
  color:var(--muted);
}
.empty-state>span {
  font:40px var(--serif);
  color:#8e9d7c;
}
.empty-state h3 {
  color:var(--ink);
  margin-top:15px;
}
.secondary {
  border:1px solid var(--line);
  border-radius:4px;
  background:var(--white);
  padding:8px 16px;
  color:var(--green);
}
.error-box {
  padding:25px;
  background:#fff0df;
  border:1px solid #dbc6a5;
  border-radius:6px;
}
.error-box p {
  overflow-wrap:anywhere;
}
footer {
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  border-top:1px solid var(--line);
  margin-top:40px;
  padding:20px 0 25px;
  font-size:9px;
  color:var(--muted);
}
.skip {
  position:fixed;
  top:-60px;
  left:10px;
  z-index:20;
  background:var(--white);
  padding:10px;
}
.skip:focus {
  top:10px;
}
[hidden] {
  display:none!important;
}
dialog {
  position:fixed;
  inset:0 0 0 auto;
  margin:0;
  width:min(640px,100%);
  height:100%;
  max-height:100%;
  max-width:100%;
  border:0;
  border-left:1px solid var(--line);
  padding:0;
  background:var(--paper);
  color:var(--ink);
  box-shadow:-15px 0 80px #17201822;
}
dialog::backdrop {
  background:#1e2b2466;
  backdrop-filter:blur(2px);
}
body:has(dialog[open]) {
  overflow:hidden;
}
.dialog-bar {
  position:sticky;
  top:0;
  background:var(--paper);
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 30px;
  border-bottom:1px solid var(--line);
}
.icon-button {
  font-size:28px;
  background:transparent;
  border:0;
  line-height:1;
  width:36px;
  height:36px;
  color:var(--muted);
}
#detail-content {
  padding:30px;
}
#detail-title {
  font:500 34px var(--serif);
  letter-spacing:2px;
  margin:12px 0 4px;
}
.detail-hint {
  color:var(--muted);
  font-size:12px;
  margin-bottom:20px;
}
.notice {
  border-left:3px solid #a98243;
  background:#efeade;
  color:#725a35;
  padding:12px 15px;
  font-size:12px;
  margin:20px 0;
  overflow-wrap:anywhere;
}
.detail-stats {
  background:var(--white);
  border:1px solid var(--line);
  padding:16px;
  border-radius:6px;
}
.detail-stats .stats {
  border:0;
  padding:0;
  margin:0;
}
.detail-stats small {
  display:block;
  color:var(--muted);
  font-size:10px;
  line-height:1.6;
  margin-top:7px;
}
.detail-section {
  margin-top:27px;
}
.detail-section h3 {
  font:600 18px var(--serif);
  margin-bottom:14px;
}
.key-values {
  display:grid;
  grid-template-columns:120px minmax(0,1fr);
  gap:9px 14px;
  font-size:12px;
}
.key-values dt {
  color:var(--muted);
}
.key-values dd {
  margin:0;
  overflow-wrap:anywhere;
}
.source-link {
  display:inline-block;
  margin-top:15px;
  font-size:12px;
}
.rule-description {
  background:var(--sage);
  padding:15px;
  font-size:12px;
  border-radius:5px;
  line-height:2;
}
.evidence-table {
  width:100%;
  border-collapse:collapse;
  font-size:11px;
}
.evidence-table th,.evidence-table td {
  text-align:left;
  vertical-align:top;
  border-bottom:1px solid var(--line);
  padding:9px 7px;
  overflow-wrap:anywhere;
  white-space:pre-wrap;
}
.evidence-table th {
  width:100px;
  color:var(--muted);
  font-weight:400;
}
.evidence-table a {
  font-size:10px;
}
.evidence-table td {
  word-break:break-word;
}
details {
  border:1px solid var(--line);
  border-radius:5px;
  padding:12px 14px;
  margin:12px 0;
  background:#ffffff44;
}
summary {
  cursor:pointer;
  font-size:12px;
}
pre {
  font:11px/1.7 Consolas,monospace;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  max-height:360px;
  overflow:auto;
  margin-bottom:0;
}
.issue {
  border-top:1px solid var(--line);
  padding:15px 0;
}
.issue h3 {
  font-size:13px;
  margin:0 0 6px;
}
.issue p {
  font-size:12px;
  color:var(--muted);
  margin:0;
  overflow-wrap:anywhere;
}
.evidence-panel {
  background:var(--white);
  border:1px solid var(--line);
  border-radius:6px;
  padding:24px;
  margin-bottom:18px;
}
.evidence-panel h2 {
  font:600 23px var(--serif);
}
.evidence-panel p {
  font-size:12px;
  color:var(--muted);
}
.metadata-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:15px;
}
.metadata-grid>div {
  padding:15px;
  border:1px solid var(--line);
  border-radius:5px;
  font-size:13px;
}
.metadata-grid span {
  font-size:10px;
  color:var(--muted);
  display:block;
  margin-bottom:5px;
}
.hash {
  font:10px/1.8 Consolas,monospace;
  overflow-wrap:anywhere;
}
.loading {
  padding:50px;
  text-align:center;
  grid-column:1/-1;
  color:var(--muted);
}
@media(min-width:1550px) {
  .card-grid {
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}
@media(max-width:1150px) {
  .shell {
    grid-template-columns:205px minmax(0,1fr);
  }
  .sidebar {
    padding-left:16px;
    padding-right:16px;
  }
  .brand {
    font-size:20px;
    gap:9px;
  }
  .brand small {
    font-size:7px;
  }
  .topbar {
    padding:0 28px;
  }
  main {
    padding:30px 28px 0;
  }
  .card-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .trust-strip>div {
    padding:0 13px;
  }
  .stamp {
    width:85px;
    height:107px;
    margin-right:0;
  }
  .stamp strong {
    font-size:24px;
  }
  .trust-strip small {
    font-size:9px;
  }
}
@media(max-width:760px) {
  .shell {
    display:block;
  }
  .sidebar {
    position:static;
    width:100%;
    height:auto;
    padding:20px 20px 0;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .brand {
    font-size:23px;
  }
  .brand small {
    font-size:8px;
  }
  .brand-mark {
    height:40px;
    width:40px;
    line-height:40px;
  }
  .edition,.field-note,.local-status {
    display:none;
  }
  .sidebar .cooking-edition {
    display:flex;
    margin:14px 0 0;
  }
  .sidebar nav {
    display:flex;
    margin-top:20px;
    gap:6px;
  }
  .nav-button {
    flex:1;
    justify-content:center;
    font-size:12px;
    padding:10px 5px;
    border-radius:4px 4px 0 0;
    gap:7px;
  }
  .nav-button>span,.nav-button b {
    display:none;
  }
  .sidebar .cooking-module-nav {
    flex-wrap:wrap;
  }
  .sidebar .cooking-subnav {
    flex-basis:100%;
    width:100%;
    margin-top:6px;
    padding:6px 0 0;
    border-left:0;
    border-top:1px solid #cdd3c2;
    flex-wrap:wrap;
  }
  .cooking-subnav .nav-button {
    flex:1 0 54px;
    padding:9px 5px;
    font-size:12px;
  }
  .topbar {
    height:49px;
    padding:0 20px;
    font-size:10px;
  }
  .snapshot-label {
    font-size:9px;
    padding:2px 5px;
  }
  main {
    padding:26px 20px 0;
  }
  .hero {
    padding-bottom:24px;
  }
  .hero h1 {
    font-size:30px;
    letter-spacing:1px;
    margin-bottom:12px;
  }
  .hero .eyebrow {
    font-size:8px;
    letter-spacing:1px;
  }
  .intro {
    font-size:11px;
  }
  .stamp {
    display:none;
  }
  .trust-strip {
    padding:14px 0;
    margin-bottom:27px;
    gap:0;
    grid-template-columns:1fr 1.15fr 1fr;
  }
  .trust-strip>div {
    padding:0 10px;
  }
  .trust-strip span,.trust-strip small {
    font-size:8px;
  }
  .trust-strip strong {
    font-size:12px;
  }
  .toolbar {
    flex-wrap:wrap;
    gap:9px;
  }
  .search-field {
    flex-basis:100%;
  }
  .select-field {
    margin-left:auto;
  }
  .filters {
    gap:9px;
  }
  .filters label {
    font-size:10px;
    gap:6px;
  }
  .filters select {
    font-size:10px;
    padding:7px;
  }
  .catalog-card {
    padding:16px;
  }
  .catalog-card h3 {
    font-size:18px;
  }
  .card-grid {
    gap:11px;
  }
  .english-hint {
    font-size:9px;
  }
  .card-top {
    margin-bottom:13px;
  }
  .stat strong {
    font-size:18px;
  }
  .catalog-note {
    font-size:9px;
  }
  .card-foot {
    font-size:8px;
  }
  .type-chip {
    font-size:8px;
  }
  .stat span {
    font-size:8px;
  }
  .metadata-grid {
    grid-template-columns:1fr;
  }
  .evidence-panel {
    padding:18px;
  }
  .key-values {
    grid-template-columns:95px minmax(0,1fr);
  }
  #detail-content {
    padding:23px;
  }
  .dialog-bar {
    padding:12px 23px;
  }
  footer {
    font-size:8px;
  }
}
@media(max-width:390px) {
  .card-grid {
    grid-template-columns:1fr;
  }
  .trust-strip>div {
    padding:0 7px;
  }
  .trust-strip strong {
    font-size:11px;
  }
  .trust-strip small {
    font-size:7px;
  }
  .hero h1 {
    font-size:27px;
  }
}
.english-hint,.prefab,.catalog-note,.tag,.card-foot,.type-chip,.stat span,.detail-stats small {
  font-size:11px;
}
@media(max-width:760px) {
  .trust-strip {
    grid-template-columns:1fr 1.2fr;
    padding:14px 0 0;
  }
  .trust-strip>div {
    padding:0 13px;
  }
  .trust-strip>div:nth-child(2) {
    border-right:0;
  }
  .trust-strip>div:last-child {
    grid-column:1/-1;
    border-top:1px solid var(--line);
    display:grid;
    grid-template-columns:85px 1fr;
    align-items:center;
    padding:10px 13px;
    margin-top:12px;
  }
  .trust-strip>div:last-child small {
    grid-column:2;
  }
  .trust-strip>div:last-child strong {
    margin:0;
  }
  .trust-strip span,.trust-strip small {
    font-size:10px;
  }
  .trust-strip strong {
    font-size:13px;
  }
  .catalog-note {
    font-size:11px;
  }
  .english-hint,.prefab,.tag,.type-chip,.stat span,.detail-stats small {
    font-size:11px;
  }
  .card-foot {
    font-size:10px;
  }
  .intro {
    font-size:12px;
  }
  .filters label,.filters select {
    font-size:11px;
  }
}
@media(max-width:600px) {
  .card-grid {
    grid-template-columns:1fr;
  }
  .catalog-card {
    padding:20px;
  }
  .catalog-card h3 {
    font-size:21px;
  }
  .stat strong {
    font-size:22px;
  }
  .card-top {
    margin-bottom:16px;
  }
}
.card-identity {
  display:flex;
  align-items:center;
  gap:13px;
  margin-bottom:18px;
  width:100%;
}
.card-heading {
  min-width:0;
}
.card-heading h3 {
  overflow-wrap:anywhere;
}
.card-heading .english-hint {
  margin:5px 0 0;
}
.food-portrait {
  width:64px;
  height:64px;
  flex:0 0 64px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #dce1cf;
  border-radius:12px;
  background:radial-gradient(ellipse at center,#f5f3e7,#e8eddd);
}
.food-image {
  display:block;
  object-fit:contain;
  max-width:48px;
  max-height:48px;
}
.image-fallback {
  font:28px var(--serif);
  color:#9ba68d;
}
.stat-label {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:5px;
  min-height:28px;
  margin-bottom:4px;
}
.stat-icon {
  display:block;
  object-fit:contain;
  flex-shrink:0;
}
.stat-label span {
  margin:0;
  color:var(--ink);
}
.stat .stat-caption {
  font-size:10px;
  color:var(--muted);
  margin-top:3px;
}
.detail-identity {
  display:flex;
  align-items:center;
  gap:20px;
  margin:20px 0 25px;
}
.detail-identity>div:last-child {
  min-width:0;
}
.detail-identity #detail-title {
  margin:0 0 6px;
  overflow-wrap:anywhere;
}
.detail-identity .detail-hint {
  margin:0;
}
.detail-portrait {
  width:88px;
  height:88px;
  flex-basis:88px;
  border-radius:18px;
}
.detail-portrait .food-image {
  width:64px;
  height:64px;
  max-width:64px;
  max-height:64px;
}
@media(max-width:1150px) and (min-width:761px) {
  .card-identity {
    gap:10px;
  }
  .catalog-card h3 {
    font-size:18px;
  }
}
@media(max-width:760px) {
  .detail-identity {
    gap:14px;
  }
  .detail-portrait {
    width:72px;
    height:72px;
    flex-basis:72px;
  }
  .detail-portrait .food-image {
    width:56px;
    height:56px;
  }
  .detail-identity #detail-title {
    font-size:28px;
  }
}
.catalog-display {
  display:flex;
  align-items:center;
  gap:16px;
  font-size:11px;
  color:var(--muted);
}
.layout-switch {
  display:flex;
  padding:3px;
  gap:3px;
  border:1px solid var(--line);
  border-radius:6px;
  background:#ecefe3;
}
.layout-switch button {
  border:0;
  border-radius:4px;
  background:transparent;
  padding:6px 14px;
  color:var(--muted);
  font-size:12px;
}
.layout-switch button[aria-pressed="true"] {
  color:var(--white);
  background:var(--green);
}
.layout-switch button:not([aria-pressed="true"]):hover {
  color:var(--ink);
  background:var(--white);
}
.table-hint {
  margin:-7px 0 14px;
  font-size:11px;
  color:var(--muted);
}
.table-results {
  width:100%;
  max-height:70vh;
  overflow:auto;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--white);
  scrollbar-color:#abb69c #edf0e6;
}
.catalog-table {
  border-spacing:0;
  table-layout:fixed;
  width:100%;
  min-width:900px;
  font-size:12px;
  line-height:1.4;
}
.catalog-table .column-name { width:240px; }
.catalog-table .column-stat { width:80px; }
.catalog-table .column-perish { width:110px; }
.catalog-table .column-cook { width:90px; }
.catalog-table .column-priority { width:70px; }
.catalog-table .column-cooker { width:150px; }
.catalog-table th,.catalog-table td {
  padding:9px 13px;
  border-bottom:1px solid #e3e6d9;
  text-align:left;
  vertical-align:middle;
  font-weight:400;
}
.catalog-table thead th {
  position:sticky;
  top:0;
  z-index:2;
  background:#e9eddf;
  color:var(--green);
  white-space:nowrap;
  height:45px;
  box-shadow:0 1px 0 var(--line);
  font-size:11px;
  font-weight:600;
}
.catalog-table .stat-label {
  margin:0;
  flex-wrap:nowrap;
  min-height:0;
}
.catalog-table .stat-label span {
  font-size:11px;
}
.catalog-table tr>:first-child {
  position:sticky;
  left:0;
  z-index:1;
  min-width:230px;
  max-width:280px;
  background:var(--white);
  border-right:1px solid #e3e6d9;
}
.catalog-table thead tr>:first-child {
  z-index:3;
  background:#e9eddf;
}
.catalog-table tbody tr {
  cursor:pointer;
}
.catalog-table tbody tr:nth-child(even) {
  background:#f8f9f2;
}
.catalog-table tbody tr:nth-child(even)>:first-child {
  background:#f8f9f2;
}
.catalog-table tbody tr:hover,.catalog-table tbody tr:focus-within,
.catalog-table tbody tr:hover>:first-child,.catalog-table tbody tr:focus-within>:first-child {
  background:#edf1e3;
}
.catalog-table tbody tr:last-child>* {
  border-bottom:0;
}
.table-identity {
  display:flex;
  align-items:center;
  gap:10px;
}
.table-identity>div:last-child {
  min-width:0;
}
.table-identity .food-portrait {
  width:36px;
  height:36px;
  flex-basis:36px;
  border-radius:7px;
}
.table-identity .food-image {
  width:32px;
  height:32px;
}
.table-identity .image-fallback {
  font-size:19px;
}
.table-item-name {
  border:0;
  background:transparent;
  padding:0;
  text-align:left;
  color:var(--ink);
  font-size:13px;
  font-weight:600;
  line-height:1.5;
}
.table-item-name:hover {
  text-decoration:underline;
  text-underline-offset:3px;
}
.table-english {
  font-size:10px;
  color:var(--muted);
  margin-top:2px;
  max-width:195px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.catalog-table .table-number {
  text-align:right;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.catalog-table .table-number.unresolved {
  color:var(--amber);
}
.table-number small {
  display:block;
  font-size:10px;
  margin-top:3px;
}
.table-perish {
  white-space:nowrap;
}
.table-cooker {
  color:var(--muted);
  font-size:11px;
  white-space:nowrap;
}
.table-cooker.portable {
  color:var(--amber);
}
.ingredient-table {
  min-width:1852px;
}
.ingredient-table .column-rarity {
  width:132px;
}
.ingredient-table .column-state-id {
  width:220px;
}
.ingredient-table .column-tag {
  width:84px;
}
.ingredient-table thead th:not(:first-child):not(:last-child) {
  text-align:right;
}
.table-state-id {
  overflow-wrap:anywhere;
  font-size:11px;
}
.table-state-id small {
  display:block;
  color:var(--muted);
  margin-top:3px;
}
.ingredient-table .table-zero {
  color:var(--muted);
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}
@media(max-width:760px) {
  .section-heading {
    gap:10px;
    flex-wrap:wrap;
  }
  .catalog-display {
    gap:10px;
  }
  .layout-switch button {
    padding:7px 11px;
  }
  .catalog-table tr>:first-child {
    min-width:180px;
    max-width:200px;
  }
  .catalog-table {
    min-width:840px;
  }
  .catalog-table .column-name {
    width:180px;
  }
  .ingredient-table {
    min-width:1756px;
  }
  .ingredient-table .column-rarity {
    width:96px;
  }
  .table-english {
    max-width:130px;
  }
}
.prediction-notice {
  padding:16px 20px;
  margin-bottom:22px;
  border:1px solid #dfd8bd;
  border-radius:6px;
  background:#f1eee1;
}
.prediction-notice>p {
  margin:8px 0 0;
  font-size:12px;
  color:#725f3b;
}
.prediction-notice details {
  margin-bottom:0;
}
.prediction-workbench {
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);
  gap:22px;
  align-items:start;
}
.pot-builder,.prediction-panel {
  min-width:0;
  border:1px solid var(--line);
  border-radius:7px;
  padding:22px;
  background:var(--white);
}
.pot-cooker {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:12px;
  color:var(--muted);
  margin-bottom:18px;
}
.pot-cooker select {
  flex:1;
  min-width:0;
  font-size:12px;
}
.pot-slots {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
}
.pot-slot-wrap {
  position:relative;
  min-width:0;
}
.pot-slot {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  width:100%;
  height:145px;
  padding:10px 4px;
  background:#f8f8f1;
  border:1px dashed #c6ceba;
  border-radius:7px;
}
.pot-slot.active {
  border:2px solid var(--green);
  background:#edf2e5;
  padding:9px 3px;
}
.pot-slot>small {
  font:10px var(--serif);
  color:var(--muted);
  align-self:flex-start;
  padding-left:4px;
}
.pot-slot>b {
  font:30px var(--serif);
  color:#8f9e81;
}
.pot-slot>span {
  font-size:11px;
  text-align:center;
  overflow-wrap:anywhere;
}
.pot-slot .food-portrait {
  width:52px;
  height:52px;
  flex-basis:52px;
  border:0;
  background:transparent;
}
.slot-remove {
  position:absolute;
  top:3px;
  right:3px;
  border:0;
  border-radius:50%;
  background:#f8f8f1;
  color:var(--muted);
  width:25px;
  height:25px;
  padding:0;
  font-size:20px;
  line-height:1;
}
.slot-remove:hover {
  background:#e1e7d5;
  color:var(--ink);
}
.pot-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:17px 0 9px;
}
.pot-actions>span {
  font-size:12px;
  color:var(--muted);
}
.primary {
  border:1px solid var(--green);
  border-radius:5px;
  background:var(--green);
  color:var(--white);
  padding:10px 25px;
  font-size:13px;
}
.primary:disabled {
  color:#8e9785;
  border-color:var(--line);
  background:#e7ebde;
}
.picker-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:25px 0 12px;
}
.picker-heading h3 {
  font:600 18px var(--serif);
  margin:0;
}
#picker-instruction {
  margin:10px 0;
  font-size:11px;
}
.ingredient-picker {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
  max-height:380px;
  overflow:auto;
  padding:4px;
  margin:0 -4px;
}
.picker-item {
  min-width:0;
  border:1px solid var(--line);
  border-radius:5px;
  background:transparent;
  display:flex;
  align-items:center;
  gap:7px;
  padding:8px;
  text-align:left;
}
.picker-item:not(:disabled):hover {
  border-color:#8a9d79;
  background:#f0f4e8;
}
.picker-item:disabled {
  opacity:.55;
}
.picker-item .food-portrait {
  width:34px;
  height:34px;
  flex-basis:34px;
  border:0;
  background:transparent;
}
.picker-item .food-image {
  width:32px;
  height:32px;
}
.picker-item>div:last-child {
  min-width:0;
}
.picker-item span {
  font-size:12px;
  overflow-wrap:anywhere;
}
.picker-item small {
  display:block;
  color:var(--muted);
  font-size:9px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.prediction-empty {
  padding:45px 15px;
  text-align:center;
  font:18px/1.8 var(--serif);
  color:#8d9980;
}
.result-summary {
  font-size:12px;
  color:var(--muted);
  margin-bottom:16px;
}
.outcome-card {
  border:1px solid var(--line);
  border-radius:7px;
  background:#f9faf3;
  padding:16px;
  margin:0 0 14px;
}
.outcome-open {
  display:flex;
  align-items:center;
  gap:12px;
  text-align:left;
  width:100%;
  padding:0;
  margin-bottom:17px;
  background:transparent;
  border:0;
}
.outcome-open>.food-portrait {
  width:48px;
  height:48px;
  flex-basis:48px;
  border:0;
  background:transparent;
}
.outcome-open>div:nth-child(2) {
  min-width:0;
}
.outcome-open h3 {
  font:600 20px var(--serif);
  margin:0 0 5px;
  overflow-wrap:anywhere;
}
.outcome-open span {
  font-size:10px;
}
.outcome-chance {
  margin-left:auto;
  text-align:right;
  white-space:nowrap;
}
.outcome-chance strong {
  font:27px var(--serif);
  color:var(--green);
}
.outcome-chance small {
  display:block;
  margin-top:5px;
  font-size:9px;
  color:var(--muted);
}
.match-row {
  display:flex;
  gap:10px;
  justify-content:space-between;
  align-items:center;
  padding:7px 0;
  border-top:1px solid var(--line);
}
@media(max-width:1150px) {
  .prediction-workbench {
    grid-template-columns:minmax(0,1fr);
  }
}
@media(max-width:760px) {
  .pot-builder,.prediction-panel {
    padding:16px;
  }
  .pot-slots {
    gap:6px;
  }
  .pot-slot {
    height:140px;
  }
  .outcome-open {
    gap:8px;
  }
  .outcome-open h3 {
    font-size:18px;
  }
  .outcome-chance strong {
    font-size:23px;
  }
}
.signature-controls {
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);
  gap:24px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:7px;
  padding:24px;
  margin-bottom:18px;
}
.signature-choose,.signature-settings {
  min-width:0;
}
.signature-choose h2 {
  font:600 21px var(--serif);
  margin-bottom:18px;
}
.signature-picker-frame {
  min-width:0;
  border:1px solid var(--line);
  border-radius:6px;
}
.signature-picker-frame>.search-field {
  border:0;
  border-bottom:1px solid var(--line);
  border-radius:5px 5px 0 0;
}
.signature-picker {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px;
  max-height:192px;
  overflow:auto;
  padding:8px;
  margin:0;
}
.signature-ingredient {
  min-width:0;
  display:flex;
  align-items:center;
  gap:6px;
  border:1px solid var(--line);
  border-radius:5px;
  background:#f8f9f2;
  padding:7px;
  text-align:left;
}
.signature-ingredient:hover,.signature-ingredient.selected {
  border-color:#8b9e79;
  background:#e9efde;
}
.signature-ingredient.selected {
  box-shadow:inset 0 0 0 1px var(--green);
}
.signature-ingredient>.food-portrait {
  width:32px;
  height:32px;
  flex-basis:32px;
  background:transparent;
  border:0;
}
.signature-ingredient .food-image {
  width:30px;
  height:30px;
}
.signature-ingredient>span {
  font-size:12px;
  overflow-wrap:anywhere;
}
.signature-selection {
  display:flex;
  gap:15px;
  align-items:center;
  min-height:92px;
  margin-bottom:22px;
}
.signature-selection h2 {
  font:500 28px var(--serif);
  margin:0 0 7px;
}
.signature-selection p {
  margin:0;
}
.signature-options {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:10px 0 18px;
}
.signature-options label {
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:6px;
  color:var(--muted);
  font-size:11px;
}
.signature-options select {
  width:100%;
  min-width:0;
}
.signature-group {
  margin-top:30px;
}
.signature-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.signature-card {
  min-width:0;
  display:flex;
  flex-direction:column;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:7px;
  padding:18px;
}
.signature-card-head {
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin-bottom:17px;
}
.signature-dish {
  min-width:0;
  display:flex;
  gap:10px;
  align-items:center;
  text-align:left;
  padding:0;
  border:0;
  background:transparent;
  flex:1;
}
.signature-dish>.food-portrait {
  width:48px;
  height:48px;
  flex-basis:48px;
  border:0;
  background:transparent;
}
.signature-dish>div:last-child {
  min-width:0;
}
.signature-dish h3 {
  font:600 20px var(--serif);
  margin:0 0 5px;
  overflow-wrap:anywhere;
}
.signature-dish small {
  color:var(--muted);
  font-size:10px;
  overflow-wrap:anywhere;
}
.special-badge {
  display:inline-block;
  flex-shrink:0;
  border:1px solid #d9be82;
  border-radius:4px;
  background:#f7edcf;
  color:#87662d;
  padding:3px 8px;
  font-size:10px;
}
.signature-card .stats {
  margin-top:0;
}
.signature-example-label {
  font-size:11px;
  color:var(--muted);
  margin:18px 0 9px;
}
.signature-example {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:18px;
}
.example-chip {
  display:inline-flex;
  align-items:center;
  gap:4px;
  border:1px solid var(--line);
  border-radius:4px;
  padding:3px 6px;
  font-size:10px;
}
.example-chip.selected {
  border-color:#a6b68e;
  background:#edf2e2;
}
.example-chip>.food-portrait {
  width:24px;
  height:24px;
  flex-basis:24px;
  border:0;
  background:transparent;
}
.example-chip .food-image {
  width:24px;
  height:24px;
}
.signature-try {
  margin-top:auto;
  width:100%;
  font-size:12px;
}
.signature-more-actions {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:20px;
  padding-top:23px;
}
.signature-empty {
  border:1px dashed var(--line);
  border-radius:5px;
  padding:20px;
  color:var(--muted);
  font-size:12px;
}
@media(max-width:1150px) {
  .signature-controls {
    grid-template-columns:minmax(0,1fr);
  }
  .signature-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:760px) {
  .signature-controls {
    padding:18px;
    gap:18px;
  }
  .signature-picker {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .signature-grid {
    grid-template-columns:minmax(0,1fr);
  }
  .signature-choose h2 {
    font-size:19px;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
  }
}

.rarity-edit-button {
  border:1px solid var(--line);
  border-radius:4px;
  background:transparent;
  color:var(--green);
  padding:4px 7px;
  font-size:11px;
  font-variant-numeric:tabular-nums;
}
.rarity-edit-button:hover { background:#e9eddf; }
.rarity-editor {
  display:flex;
  align-items:flex-end;
  flex-wrap:wrap;
  gap:10px;
  margin:16px 0 8px;
}
.rarity-editor label {
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:12px;
  color:var(--muted);
}
.rarity-editor input {
  width:155px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:4px;
  background:var(--white);
  color:var(--ink);
}
.rarity-status { min-height:20px; }
.example-controls {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px 20px;
  margin:18px 0 14px;
}
.example-cooker-label,.example-guaranteed-label {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  color:var(--muted);
  font-size:12px;
  margin:0;
}
.example-guaranteed-label { color:var(--ink); cursor:pointer; gap:8px; min-height:44px; }
.example-guaranteed-label input { width:18px; height:18px; margin:0; accent-color:var(--green); }
.example-probability {
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:11px;
}
.example-probability.uncertain {
  display:inline-block;
  padding:4px 8px;
  border:1px solid #d3ae36;
  border-radius:999px;
  background:#fff0b8;
  color:#704c00;
  font-weight:600;
}
.dish-example-row {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:14px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:6px;
  background:#f8f9f2;
  margin-bottom:10px;
}
.dish-example-pot {
  display:flex;
  align-items:center;
  gap:6px;
}
.example-ingredient {
  position:relative;
  border:1px solid var(--line);
  border-radius:5px;
  padding:3px;
  background:var(--white);
}
.example-ingredient .food-portrait {
  width:36px;
  height:36px;
  border:0;
  border-radius:3px;
  background:transparent;
}
.example-ingredient .food-image {
  width:34px;
  height:34px;
}
.ingredient-tooltip {
  position:absolute;
  z-index:5;
  left:50%;
  bottom:calc(100% + 7px);
  transform:translateX(-50%);
  padding:5px 8px;
  background:var(--green);
  color:var(--white);
  border-radius:4px;
  width:max-content;
  max-width:180px;
  white-space:normal;
  font-size:11px;
  pointer-events:none;
  opacity:0;
  visibility:hidden;
}
.example-ingredient:first-child .ingredient-tooltip {
  left:0;
  transform:none;
}
.example-ingredient:last-child .ingredient-tooltip {
  left:auto;
  right:0;
  transform:none;
}
.example-ingredient:hover .ingredient-tooltip,.example-ingredient:focus .ingredient-tooltip {
  opacity:1;
  visibility:visible;
}
.dish-example-summary {
  margin-right:auto;
  font-size:12px;
}
.dish-example-summary>strong {
  margin-inline-end:8px;
}
@media(max-width:760px) {
  .signature-options { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dish-example-row {
    display:grid;
    grid-template-columns:16px minmax(0,1fr) auto;
    gap:10px;
  }
  .dish-example-pot { grid-column:2 / -1; }
  .dish-example-summary { grid-column:2; margin:0; }
  .dish-example-row>.text-button { grid-column:3; }
}

.signature-exclusion-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:18px;
}
.signature-exclusion-toolbar p { margin:0; }
.signature-exclusion-toolbar button { font-size:12px; }
.exclusion-content { padding:25px 30px 35px; }
.exclusion-content h2 { font:500 28px var(--serif); margin-top:0; }
.exclusion-content section { margin-top:26px; }
.exclusion-content h3 { font:500 19px var(--serif); }
.exclusion-list { display:flex; flex-direction:column; gap:9px; }
.exclusion-candidates { max-height:360px; overflow:auto; margin-top:14px; }
.exclusion-dish {
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--line);
  border-radius:5px;
  background:var(--white);
  padding:9px;
}
.exclusion-dish>.food-portrait { width:40px; height:40px; flex-basis:40px; }
.exclusion-dish .food-image { width:36px; height:36px; }
.exclusion-dish-name { flex:1; min-width:0; }
.exclusion-dish-name strong { font-size:13px; }
.exclusion-dish-name small { display:block; font-size:10px; color:var(--muted); overflow-wrap:anywhere; margin-top:4px; }
.exclusion-dish button { flex-shrink:0; font-size:12px; padding:7px 9px; }
@media(max-width:760px) {
  .exclusion-content { padding:23px; }
  .exclusion-dish { gap:8px; }
}

.detail-status {
  display:flex;
  align-items:center;
  gap:8px;
}
.detail-warning-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  padding:0;
  border:1px solid #d8c49b;
  border-radius:50%;
  background:#f4eddd;
  color:#80632e;
  font-size:16px;
}
.detail-warning-button:hover { background:#ebe0c4; }
.detail-warning-bubble {
  position:fixed;
  inset:auto;
  width:min(440px,calc(100vw - 60px));
  margin:0;
  padding:14px 16px;
  border:1px solid #d8c49b;
  border-radius:8px;
  background:#fcf8ed;
  color:#725a35;
  box-shadow:0 8px 24px #17201824;
  font-size:12px;
  line-height:1.8;
}
.detail-warning-bubble p { margin:0; }
.detail-more { margin-top:12px; }
.detail-more>summary { color:var(--green); }
.source-evidence>summary {
  font:600 18px var(--serif);
  color:var(--ink);
}
.source-evidence[open]>summary { margin-bottom:14px; }
