:root {
  color-scheme: light;
  --canvas: #f5f2e9;
  --paper: #fffcf4;
  --ink: #202b25;
  --muted: #59665c;
  --rule: #cecfc2;
  --green: #214e3c;
  --light: #e6ede3;
  --orange: #a64328;
  font: 16px/1.5 system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--green); text-underline-offset: .2em; }
button, input, textarea, select { font: inherit; }
button, input, select, textarea { max-width: 100%; }
button {
  background: var(--paper); color: var(--green); border: 1px solid var(--rule);
  border-radius: .45rem; padding: .56rem .8rem; cursor: pointer; font-weight: 650;
}
button:hover { background: var(--light); border-color: var(--green); }
button:disabled { opacity: .48; cursor: default; }
button.primary { background: var(--green); color: white; border-color: var(--green); }
button.primary:hover { background: #32644e; }
:focus-visible { outline: 3px solid #a34a24; outline-offset: 3px; }
input, textarea, select {
  display: block; width: 100%; margin-top: .3rem; padding: .52rem .6rem;
  color: var(--ink); background: white; border: 1px solid #adbaae; border-radius: .4rem;
}
textarea { resize: vertical; }
label { display: block; font-size: .9rem; font-weight: 650; }
label + label { margin-top: .6rem; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2 { font-family: Georgia, serif; font-weight: 500; line-height: 1.06; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); letter-spacing: -.055em; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.55rem, 3vw, 2rem); letter-spacing: -.033em; margin-bottom: .85rem; }
h3, h4 { line-height: 1.22; overflow-wrap: anywhere; }
p + p { margin-top: .6rem; }
.shell { width: min(91%, 1360px); margin-inline: auto; }
main.shell { padding-bottom: 4rem; }
.masthead { color: #fffdf5; background: #1c3328; }
.mast-inner { display: flex; justify-content: space-between; align-items: center; padding: .85rem 0; gap: .75rem; }
.brand { display: inline-flex; gap: .65rem; align-items: center; color: inherit; text-decoration: none; font-weight: 700; }
.mark { border: 1px solid #d5e0cb; color: #e3eedb; border-radius: 50%; width: 2.45rem; aspect-ratio: 1; display: grid; place-items: center; font: bold .8rem/1 Georgia, serif; }
.masthead nav { display: flex; gap: 1rem; align-items: center; }
.masthead nav a, .quiet { color: inherit; font-size: .9rem; }
.quiet { background: none; border-color: #9bab9e; }
.quiet:hover { background: #355142; }
.pagehead { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 2.5rem 0 1.6rem; flex-wrap: wrap; }
.pagehead p:not(.eyebrow) { margin-top: .7rem; }
.eyebrow { color: var(--orange); font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; margin-bottom: .65rem; }
.muted, small { color: var(--muted); font-weight: 400; }
.version { border: 1px solid var(--rule); border-radius: 2rem; background: var(--paper); padding: .3rem .8rem; font-size: .86rem; }
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: .8rem; padding: clamp(1rem, 2.6vw, 2rem); min-width: 0; }
.dashboard, .review-grid, .compare-grid { display: grid; align-items: start; gap: 1rem; }
.dashboard { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.review-grid { grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); }
.compare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1rem; }
.stack { display: grid; gap: .75rem; align-content: start; }
.stack > label { margin: 0; }
.stack > button { justify-self: start; }
.stack > h2 { margin: 0; }
.details, details { border-top: 1px solid var(--rule); margin-top: .8rem; padding-top: .65rem; }
summary { color: var(--green); font-weight: 650; cursor: pointer; }
details form { margin-top: .8rem; }
.formline { display: flex; gap: .75rem; align-items: end; flex-wrap: wrap; }
.formline label { flex: 1; }
.plain, .menu-list { list-style: none; padding: 0; margin: .8rem 0; }
.plain li, .menu-list li { padding: .5rem 0; border-top: 1px solid var(--rule); }
.menu-list a, .downloads a { display: flex; justify-content: space-between; gap: 1rem; }
.back { display: inline-block; margin-top: 1.1rem; }
.back + .pagehead { margin-top: 1.2rem; }
.tabs { display: flex; gap: 1rem; flex-wrap: wrap; border-bottom: 1px solid var(--rule); margin-bottom: 1rem; padding: 0 0 .7rem; }
.source .filelink { display: inline-block; margin: .75rem 0; overflow-wrap: anywhere; }
.proof { width: 100%; border: 1px solid var(--rule); border-radius: .4rem; margin-bottom: .65rem; background: white; }
iframe.proof { min-height: 410px; height: 56vh; }
.notice { padding: .7rem .85rem; border-radius: .45rem; background: var(--light); margin: .7rem 0; }
.lower { margin-top: 1rem; }
.history li { display: grid; gap: .15rem; }
.code { font: .9rem/1.4 ui-monospace, monospace; }
.toolbar, .controls { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.toolbar { padding: .85rem 0; }
.controls button { font-size: .78rem; padding: .36rem .5rem; }
button.remove { color: #873921; }
.category { border: 1px solid var(--rule); border-radius: .65rem; background: #f4f4e9; margin: 0; min-width: 0; }
.category-head, .category-add { padding: .75rem; }
.category-head .controls { margin-top: .65rem; }
.category-head h3, .category-head h4 { color: var(--green); margin-bottom: .5rem; }
.subcategory { margin: .25rem .55rem .65rem; background: #edf0e7; }
.dish { padding: .8rem; border-top: 1px solid var(--rule); background: #fffdfa; }
.dish > .controls { margin-top: .7rem; }
.dish-core { display: grid; grid-template-columns: minmax(4rem, 1fr) minmax(7rem, 3fr) minmax(4.5rem, 1fr); gap: .5rem; margin: .55rem 0; align-items: end; }
.dish-core > label, .option-row > label { margin: 0; }
.dish-more label { margin-top: .65rem; }
.options { border: 1px solid var(--rule); border-radius: .4rem; margin: .75rem 0; padding: .55rem; min-width: 0; }
.options legend { font-weight: 650; }
.option-row { display: grid; grid-template-columns: minmax(5rem, 2fr) minmax(4.5rem, 1fr) auto; gap: .4rem; align-items: end; margin-bottom: .5rem; }
#editor-status { margin: .55rem 0; }
#editor-status:empty { margin: .9rem 0 0; }
.customer-page { width: min(100%, 850px); margin: 2.5rem auto 0; }
.card.customer-page > p, .card.customer-page > label { margin: .95rem 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .5rem; border-bottom: 1px solid var(--rule); vertical-align: top; overflow-wrap: anywhere; }
.compare-category { margin-top: .9rem; }
.compare-category .compare-category { padding-left: 1rem; border-left: 1px solid var(--rule); }
.compare-dish { border-top: 1px solid var(--rule); padding: .4rem 0; overflow-wrap: anywhere; }
.compare-dish p { margin: .25rem 0; }
.price { float: right; padding-left: .4rem; }
.login { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 7vw, 7rem); width: min(100%, 920px); margin: clamp(2rem, 12vh, 8rem) auto 0; align-items: center; }
.login-intro h1 { font-size: clamp(3rem, 8vw, 6rem); }
.login-intro p:last-child { margin-top: 1rem; max-width: 34ch; }
.login-form { display: grid; gap: .95rem; }
.login-form button { justify-self: start; }
@media (max-width: 850px) {
  .review-grid, .dashboard, .login { grid-template-columns: minmax(0, 1fr); }
  .source { max-width: 100%; }
}
@media (max-width: 550px) {
  .masthead nav { gap: .5rem; }
  .compare-grid { grid-template-columns: 1fr; }
  .dish-core { grid-template-columns: 1fr 1fr; }
  .dish-core label:nth-child(2) { grid-row: 1; grid-column: 1 / -1; }
}
