:root {
  --paper: #ffffff;
  --paper-2: #f3f6f1;
  --ink: #17231a;
  --ink-2: #4a5a4d;
  --ink-3: #5f6e62;
  --rule: #dfe6dc;
  --mast: #1f5e2c;
  --mast-ink: #f4f7f0;
  --focus: #8a5c00;
  --focus-mast: #f2b733;
  /* packet colours, one per recipe section: fill (--c), ink on the fill (--on), small marks (--d) */
  --c-splice: #2a7a37;  --on-splice: #fff;
  --c-craft: #c8402f;   --on-craft: #fff;
  --c-open: #d99a0b;    --on-open: #241a00;
  --c-farm: #7a5232;    --on-farm: #fff;
  --c-event: #7a4bb5;   --on-event: #fff;
  --c-shop: #1a6fa8;    --on-shop: #fff;
  --c-rewards: #dd6b1f; --on-rewards: #241a00;
  --c-none: #626b64;    --on-none: #fff;
  --d-splice: var(--c-splice); --d-craft: var(--c-craft); --d-open: var(--c-open); --d-farm: var(--c-farm);
  --d-event: var(--c-event); --d-shop: var(--c-shop); --d-rewards: var(--c-rewards); --d-none: var(--c-none);
  --shadow: 0 1px 2px rgb(23 35 26 / .06), 0 6px 18px -6px rgb(23 35 26 / .14);
  --bar-h: 64px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
/* Night reading: the catalog after dark. Packet fills keep their printed values; only the paper and small marks change. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121a14;
    --paper-2: #1a251c;
    --ink: #e8efe6;
    --ink-2: #a6b5a8;
    --ink-3: #8c9c8f;
    --rule: #2c3b2f;
    --mast: #163f20;
    --focus: #f2b733;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 20px -8px rgb(0 0 0 / .5);
    --d-splice: #57b766; --d-craft: #e8705e; --d-farm: #c09066; --d-event: #a985e3;
    --d-shop: #57a9e3; --d-none: #9aa59c;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.5 "Public Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: color-mix(in srgb, var(--d-splice) 30%, transparent); }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.bar :focus-visible { outline-color: var(--focus-mast); }
.packet-top :focus-visible { outline-color: var(--on); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
img.sp { image-rendering: pixelated; width: 32px; height: 32px; flex: none; object-fit: contain; }
.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* top bar: brand left, search centred */
.bar { position: sticky; top: 0; z-index: 10; background: var(--mast); color: var(--mast-ink); }
.bar-in { max-width: 1600px; margin: 0 auto; height: var(--bar-h); padding: 0 24px; display: grid; grid-template-columns: 1fr minmax(0, 640px) 1fr; align-items: center; gap: 16px; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 20px/1 "Alfa Slab One", serif; white-space: nowrap; justify-self: start; }
.search { position: relative; display: flex; align-items: center; }
.search-ic { position: absolute; left: 14px; width: 18px; height: 18px; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
#q {
  width: 100%; height: 44px; border: 0; border-radius: 10px; padding: 0 44px 0 42px;
  font: 500 16px "Public Sans", sans-serif; background: var(--paper); color: var(--ink);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08), 0 2px 8px rgb(0 0 0 / .18);
}
#q::placeholder { color: var(--ink-3); }
#q:focus { outline: 3px solid var(--focus-mast); outline-offset: 0; }
.key { position: absolute; right: 12px; min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--rule); color: var(--ink-3); font: 500 12px "Public Sans", sans-serif; pointer-events: none; }
#q:focus + .key, #q:not(:placeholder-shown) + .key { display: none; }

/* three panes: filters | list | item (list and item share the width equally) */
.app { max-width: 1600px; margin: 0 auto; padding: 24px; display: grid; gap: 24px; grid-template-columns: 232px minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.filters, .detail { position: sticky; top: calc(var(--bar-h) + 24px); max-height: calc(100vh - var(--bar-h) - 48px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }

/* filters */
.f-h { font-size: 13px; font-weight: 500; color: var(--ink-3); margin: 0 8px 8px; }
.f-group + .f-group { margin-top: 24px; }
.f-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.f-item {
  width: 100%; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 8px;
  border: 0; border-radius: 8px; background: none; cursor: pointer; text-align: left; font-size: 14px;
  transition: background-color .15s var(--ease-out), transform .1s ease-out;
}
.f-item:hover { background: var(--paper-2); }
.f-item[aria-pressed="true"] { background: var(--paper-2); font-weight: 600; box-shadow: inset 0 0 0 1px var(--rule); }
.f-item .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--d, var(--ink-3)); flex: none; }
.f-item .lb { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-item .ct { color: var(--ink-3); font-size: 13px; font-weight: 400; font-variant-numeric: tabular-nums; }
.f-types { max-height: 360px; overflow: auto; scrollbar-width: thin; }
.f-types .f-item { height: 32px; font-size: 13px; }
.f-foot { margin-top: 24px; padding: 16px 8px 0; border-top: 1px solid var(--rule); }

/* removed-methods switch */
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; cursor: pointer; border: 0; background: none; padding: 4px 0; text-align: left; }
.switch .track { width: 32px; height: 18px; border-radius: 9px; background: var(--paper-2); box-shadow: inset 0 0 0 1.5px var(--ink-2); position: relative; flex: none; transition: background-color .15s var(--ease-out); }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink-2); transition: transform .15s var(--ease-out); }
.switch[aria-checked="true"] .track { background: var(--c-splice); box-shadow: none; }
.switch[aria-checked="true"] .track::after { transform: translateX(14px); background: #fff; }

/* list: header and active filters stay in view while the list scrolls */
.list-top { position: sticky; top: var(--bar-h); z-index: 4; background: var(--paper); margin: -24px -4px 12px; padding: 16px 4px 4px; }
.list-top .pills { margin-bottom: 8px; }
.scoped { margin: 0 0 8px; font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 799px) { .list-top { margin-top: -16px; } }
/* list */
.list-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; min-height: 36px; }
.list-head h1 { font-size: 16px; font-weight: 600; margin: 0 auto 0 0; overflow-wrap: anywhere; }
.list-head .ct { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 10px; border-radius: 8px; border: 1px solid var(--rule); background: var(--paper); font-size: 13px; cursor: pointer; max-width: 100%; transition: background-color .15s var(--ease-out), transform .1s ease-out; }
.pill .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--d, var(--ink-3)); flex: none; }
.pill .ic { width: 14px; height: 14px; color: var(--ink-3); }
.pill:hover { background: var(--paper-2); }
.pill .lb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-toggle { display: none; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--rule); background: var(--paper); font-size: 13px; font-weight: 500; cursor: pointer; align-items: center; gap: 6px; }
.f-toggle[aria-expanded="true"] { background: var(--paper-2); }
.block + .block, .exact + .block { margin-top: 24px; }
.exact { border-color: var(--d-splice); }
.block-h { display: flex; align-items: baseline; gap: 8px; margin: 0 4px 8px; }
.block-h h2 { font-size: 14px; font-weight: 600; margin: 0; }
.block-h .ct { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: var(--paper); }
.row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 12px;
  border: 0; border-top: 1px solid var(--rule); background: none; cursor: pointer; text-align: left;
  transition: background-color .15s var(--ease-out), transform .1s ease-out;
}
.rows li:first-child .row { border-top: 0; }
.row:hover { background: var(--paper-2); }
.row:active, .f-item:active, .ing:active, .pill:active { transform: scale(.96); }
.row[aria-current="true"] { background: color-mix(in srgb, var(--d-splice) 14%, var(--paper)); }
.row .nm { flex: 1; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.row .nm small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12px; }
.row .no { font-variant-numeric: tabular-nums; }
.dots { display: flex; gap: 4px; flex: none; width: 32px; justify-content: flex-end; flex-wrap: wrap; }
.dots i { width: 8px; height: 8px; border-radius: 2px; background: var(--d); }
.more { margin: 12px auto 0; display: block; height: 36px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--rule); background: var(--paper); font-weight: 500; cursor: pointer; }
.empty { padding: 32px 16px; text-align: center; color: var(--ink-2); border: 1px dashed var(--rule); border-radius: 12px; }
.empty b { color: var(--ink); }
.empty .pill { margin-top: 12px; }
.skel { display: grid; gap: 8px; }
.skel i { height: 52px; border-radius: 8px; background: linear-gradient(90deg, var(--paper-2), var(--rule), var(--paper-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* start panel (no item open) */
.start { border: 1px solid var(--rule); border-radius: 16px; padding: 24px; }
.start h2 { font: 400 24px/1.2 "Alfa Slab One", serif; margin: 0 0 8px; text-wrap: balance; }
.start p { color: var(--ink-2); margin: 0 0 20px; max-width: 60ch; }
.dept { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.dept button {
  width: 100%; display: grid; grid-template-columns: 12px auto 1fr auto; column-gap: 12px; align-items: baseline;
  text-align: left; background: none; border: 0; border-bottom: 1px solid var(--rule); padding: 12px 4px; cursor: pointer;
  transition: background-color .15s var(--ease-out);
}
.dept button:hover { background: var(--paper-2); }
.dept .sw { width: 12px; height: 12px; border-radius: 3px; background: var(--d); align-self: center; }
.dept .dn { font: 400 17px/1.2 "Alfa Slab One", serif; }
.dept .lead { border-bottom: 2px dotted var(--rule); transform: translateY(-4px); min-width: 12px; }
.dept .dc { font-variant-numeric: tabular-nums; font-weight: 500; font-size: 14px; }
.dept .dd { grid-column: 2 / -1; color: var(--ink-3); font-size: 13px; margin-top: 2px; }

/* packet (item detail): the one bright moment is its header */
.packet { border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.packet-top { background: var(--c); color: var(--on); padding: 20px; display: flex; gap: 16px; align-items: center; }
.window { width: 72px; height: 72px; border-radius: 12px; background: #fff; display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 3px rgb(0 0 0 / .08); }
.window img.sp { width: 48px; height: 48px; }
.packet-top h2 { font: 400 24px/1.15 "Alfa Slab One", serif; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
.packet-top .no { font-size: 13px; margin-top: 6px; font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.packet-top .no a { color: inherit; display: inline-flex; align-items: center; gap: 4px; }
.back { display: none; border: 0; background: color-mix(in srgb, var(--on) 16%, transparent); color: inherit; height: 36px; padding: 0 12px 0 8px; border-radius: 8px; font-weight: 500; cursor: pointer; align-items: center; gap: 4px; }
.tabs { display: flex; gap: 4px; padding: 8px 12px 0; border-bottom: 1px solid var(--rule); }
.tabs button { border: 0; background: none; padding: 10px 12px; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--ink-2); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tabs .ct { color: var(--ink-3); font-variant-numeric: tabular-nums; margin-left: 6px; }
/* methods: quiet header with a section dot, hairline between */
.method + .method { border-top: 1px solid var(--rule); }
.method-h { display: flex; align-items: center; gap: 8px; padding: 16px 20px 0; font-weight: 600; font-size: 14px; }
.method-h .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--d); flex: none; }
.method-h .grp { margin-left: auto; font-weight: 400; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.method-b { padding: 8px 20px 16px 38px; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; max-width: 72ch; }
.method-b img.sp { width: 24px; height: 24px; vertical-align: -6px; margin-right: 4px; }
.method-b .il { font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); text-underline-offset: 3px; cursor: pointer; background: none; border: 0; padding: 0; text-align: left; }
.method-b .il:hover { text-decoration-color: currentColor; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 16px 38px; }
.tag { font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 6px; background: var(--paper-2); color: var(--ink); border: 1px solid var(--rule); }
.method.gone .method-h { color: var(--ink-3); }
.method.gone .method-h .t { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.method.gone .method-h .dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--d); }
.method.gone .method-b { color: var(--ink-2); }
.gone-tag { background: transparent; border-style: dashed; color: var(--ink-2); }
.splice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ing { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 10px; border: 1px solid var(--rule); background: var(--paper); cursor: pointer; font-weight: 500; transition: transform .1s ease-out, border-color .15s var(--ease-out); }
.ing:hover { border-color: var(--d-splice); }
.plus { color: var(--ink-3); font-size: 18px; }
.uses { border: 0; border-radius: 0; }
.uses .row { padding-inline: 20px; }
.packet .empty { margin: 16px 20px; }
.wiki-src { padding: 12px 20px 16px; margin: 0; font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--rule); }

.foot { max-width: 1600px; margin: 32px auto 0; padding: 24px 24px 40px; color: var(--ink-3); font-size: 12px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 48px; align-items: center; }
.foot p { margin: 0; max-width: 80ch; line-height: 1.6; }
.made { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; text-decoration: none; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  transition: color .15s var(--ease-out), background-color .15s var(--ease-out), transform .1s ease-out; }
.made:hover { color: var(--ink); background: var(--paper-2); }
.made:active { transform: scale(.96); }
.made img { flex: none; }

/* changelog page */
.changelog { max-width: 760px; margin: 0 auto; padding: 40px 24px 24px; }
.changelog h1 { font: 400 32px/1.15 "Alfa Slab One", serif; margin: 0 0 24px; }
.changelog h2 { font: 400 20px/1.25 "Alfa Slab One", serif; margin: 32px 0 8px; padding-top: 24px; border-top: 2px solid var(--ink); }
.changelog h2:first-of-type { margin-top: 0; }
.changelog h3 { font-size: 14px; font-weight: 600; margin: 20px 0 8px; color: var(--ink-2); }
.changelog p { color: var(--ink-2); margin: 0 0 12px; max-width: 65ch; }
.changelog ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.changelog li { line-height: 1.55; max-width: 70ch; }
.changelog li::marker { color: var(--d-splice); }
.changelog code { font-size: 13px; background: var(--paper-2); padding: 1px 5px; border-radius: 4px; }
@media (max-width: 799px) { .foot { grid-template-columns: minmax(0, 1fr); padding: 24px 16px 32px; } .made { justify-self: start; margin-left: -10px; } .changelog { padding: 24px 16px; } }

/* explanations behind recipe headings and condition tags */
.t-x, .tag-x { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font: inherit; color: inherit; }
.t-x { border: 0; background: none; padding: 0; font-weight: 600; text-align: left; }
.t-x .ic, .tag-x .ic { width: 14px; height: 14px; color: var(--ink-3); }
.t-x:hover .ic, .tag-x:hover .ic, [aria-expanded="true"] .ic { color: var(--ink); }
.tag-x[aria-expanded="true"] { background: var(--paper); border-color: var(--ink-2); }
.x-note { margin: 8px 20px 0 38px; padding: 10px 12px; border-radius: 8px; background: var(--paper-2); font-size: 13px; line-height: 1.55; color: var(--ink-2); max-width: 72ch; }
.x-tag { margin: -4px 20px 16px 38px; }
.x-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; }
.x-links a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 500; }
@media (max-width: 799px) { .x-note, .x-tag { margin-left: 20px; } }

/* recipe tree inside the item panel */
.rt { margin-top: 12px; font-size: 13px; }
.rt > summary { cursor: pointer; color: var(--ink-2); font-weight: 500; width: max-content; }
.rt-list { list-style: none; margin: 4px 0 0; padding: 0 0 0 12px; border-left: 1px solid var(--rule); }
.rt-list li { margin: 2px 0; }
.rt-list summary, .rt-leaf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 6px; border-radius: 8px; cursor: pointer; }
.rt-leaf { cursor: default; padding-left: 24px; }
.rt-list summary:hover { background: var(--paper-2); }
.rt-list summary::marker { color: var(--ink-3); }
.rt-list img.sp { width: 24px; height: 24px; margin: 0; }
.rt-nm { font-weight: 500; }
.rt-list small { color: var(--ink-3); font-size: 12px; }
.rt-open { margin-left: auto; border: 1px solid var(--rule); background: var(--paper); border-radius: 6px; font-size: 12px; padding: 0 8px; height: 24px; cursor: pointer; }

/* events */
.eb { display: inline-block; margin-left: 8px; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 600; line-height: 18px; vertical-align: 2px; color: var(--d-event); background: color-mix(in srgb, var(--d-event) 12%, transparent); white-space: nowrap; }
.eb.soft { background: transparent; font-weight: 500; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--d-event) 45%, transparent); }
.f-select { width: 100%; height: 36px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); font: 400 14px "Public Sans", sans-serif; }
.seg { display: inline-flex; padding: 2px; border-radius: 10px; background: var(--paper-2); border: 1px solid var(--rule); margin-bottom: 16px; }
.seg button { border: 0; background: none; height: 32px; padding: 0 16px; border-radius: 8px; font-weight: 500; font-size: 14px; color: var(--ink-2); cursor: pointer; transition: background-color .15s var(--ease-out); }
.seg button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.ev-when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -4px 0 16px; font-weight: 500; }
.ev-when small { flex-basis: 100%; color: var(--ink-3); font-weight: 400; font-size: 12px; }
.vf { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.vf .ic { width: 14px; height: 14px; }
.vf.ok { color: var(--d-splice); }
.vf.no { color: var(--focus); padding: 0 6px; border: 1px dashed currentColor; border-radius: 6px; }
.un-tag { border-style: dashed; background: transparent; color: var(--ink-2); }
.block-note { margin: -4px 4px 8px; font-size: 13px; color: var(--ink-3); }
.evs { margin-bottom: 16px; border-color: var(--d-event); }
.evi { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: var(--paper-2); color: var(--d-event); flex: none; }
.start-h { font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.soon { margin-bottom: 24px; }
.evd { width: 40px; flex: none; display: grid; justify-items: center; line-height: 1.1; font-size: 11px; color: var(--ink-3); }
.evd b { font: 400 18px/1.1 "Alfa Slab One", serif; color: var(--ink); }
.evs-in { margin-top: 8px; gap: 6px; }
.ev-link { border: 0; background: color-mix(in srgb, var(--on) 16%, transparent); color: inherit; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 6px; cursor: pointer; }
.method-h .grp + .vf { margin-left: 4px; }

/* top bar nav */
.tabs-top { grid-column: 3; }
.tabs-top { justify-self: end; display: flex; gap: 4px; }
.tabs-top a { white-space: nowrap; color: var(--mast-ink); text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 8px; opacity: .85; }
.tabs-top a:hover { opacity: 1; background: rgb(255 255 255 / .08); }
.tabs-top a[aria-current="page"] { opacity: 1; background: rgb(255 255 255 / .14); }
.bar-title { margin: 0; font: 400 20px/1 "Alfa Slab One", serif; text-align: center; }

/* seed planner */
.plan { max-width: 1280px; margin: 0 auto; padding: 24px; display: grid; gap: 32px; grid-template-columns: 280px minmax(0, 1fr); align-items: start; }
.plan-form { position: sticky; top: calc(var(--bar-h) + 24px); display: grid; gap: 8px; }
.plan-form .f-h { margin: 8px 0 0; }
.plan-form input { height: 40px; border-radius: 8px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); padding: 0 12px; font: 500 15px "Public Sans", sans-serif; width: 100%; }
.assume { margin-top: 16px; border-top: 1px solid var(--rule); padding-top: 12px; font-size: 13px; color: var(--ink-2); }
.assume summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.assume label { display: grid; grid-template-columns: 1fr 88px; align-items: center; gap: 8px; margin-top: 8px; }
.assume input { height: 32px; font-size: 14px; }
.assume .src { color: var(--ink-3); font-size: 12px; }
.plan-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.plan-head .sp { width: 48px; height: 48px; }
.plan-head h2 { font: 400 24px/1.2 "Alfa Slab One", serif; margin: 0; }
.mut { color: var(--ink-3); font-weight: 400; }
.small { font-size: 13px; margin: -4px 0 12px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: 12px; margin-bottom: 24px; }
.stats div { padding: 16px; display: grid; gap: 2px; }
.stats div + div { border-left: 1px solid var(--rule); }
.stats b { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stats span { font-size: 13px; color: var(--ink-3); }
.base { margin-bottom: 24px; }
.base .row { text-decoration: none; color: inherit; }
.qty { font-variant-numeric: tabular-nums; font-size: 16px; }
.tree { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.pr { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px calc(12px + var(--depth) * 24px); border-top: 1px solid var(--rule); flex-wrap: wrap; }
.pr:first-child { border-top: 0; background: var(--paper-2); }
.pr-item { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 200px; text-decoration: none; color: inherit; }
.pr-item .nm { font-weight: 500; }
.pr-item .nm small { display: block; color: var(--ink-3); font-size: 12px; font-weight: 400; }
.pr-what { font-size: 14px; font-variant-numeric: tabular-nums; display: grid; justify-items: end; text-align: right; }
.pr-what small { font-size: 12px; }
@media (max-width: 799px) {
  .plan { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .plan-form { position: static; }
  .bar-title { display: none; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stats div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .pr { padding-left: calc(12px + var(--depth) * 12px); }
}

/* medium: filters fold away behind a button; list and item stay 50/50 */
@media (max-width: 1099px) {
  .app { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .filters { display: none; position: static; max-height: none; grid-column: 1; border: 1px solid var(--rule); border-radius: 12px; padding: 16px 8px; }
  body.f-open .filters { display: block; }
  body.f-open .list { grid-column: 1; grid-row: 2; }
  .detail { grid-column: 2; grid-row: 1 / span 2; }
  .f-toggle { display: inline-flex; }
}
/* small: one pane at a time */
@media (max-width: 799px) {
  .bar-in { grid-template-columns: auto minmax(0, 1fr); padding: 0 16px; gap: 12px; }
  .mark span { display: none; }
  .key { display: none; }
  .app { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 16px; }
  .detail { position: static; max-height: none; overflow: visible; grid-column: auto; grid-row: auto; }
  body.f-open .list { grid-column: auto; grid-row: auto; }
  body.has-item .list, body.has-item .filters { display: none; }
  body:not(.has-item) .detail { display: none; }
  .back { display: inline-flex; }
  .packet-top { flex-wrap: wrap; }
  .packet-top .back { flex-basis: 100%; width: max-content; flex-grow: 0; }
  .method-b, .tags { padding-left: 20px; }
}

@media (max-width: 799px) {
  .bar-in { grid-template-columns: auto minmax(0, 1fr) auto; }
  .tabs-top a[aria-current="page"] { display: none; }
  .tabs-top a { padding: 6px 8px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}
