:root {
  --paper:#f6f5ef; --white:#fffefb; --ink:#292b23; --mute:#626458;
  --line:#e2e1d7; --green:#3e5038; --green-dark:#263424; --soft:#e8ede0;
  --serif:"Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans:"Inter",system-ui,sans-serif;
}
* {box-sizing:border-box}
body {margin:0;background:var(--paper);color:var(--ink);font:15px/1.5 var(--sans)}
button,input,select {font:inherit;color:inherit}
button {cursor:pointer}
a {color:inherit}
a:focus-visible,button:focus-visible,input:focus-visible {outline:3px solid #556848;outline-offset:3px}
button:disabled {cursor:default;opacity:.4}
h1,h2,h3,p,figure,dl {margin:0}
h1,h2,h3 {line-height:1.12}
h1,h2 {font-family:var(--serif);font-weight:400;letter-spacing:-.035em}
h1 {font-size:clamp(2.8rem,5.6vw,5.15rem)}
h2 {font-size:clamp(1.7rem,2.5vw,2.1rem)}
h3 {font-size:1.08rem}
small {font-size:.82em}
.rail {width:225px;position:fixed;inset:0 auto 0 0;background:var(--white);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:28px 15px 22px;z-index:5}
.brand {text-decoration:none;display:flex;gap:11px;align-items:center;padding:0 8px;font-weight:730;line-height:1.3}
.brand small {display:block;color:var(--mute);font-weight:400;margin-top:3px}
.brand-mark {display:grid;place-items:center;flex:0 0 39px;height:39px;background:var(--green);color:white;border-radius:10px;font:1.5rem var(--serif)}
.navigation {display:grid;gap:6px;margin-top:39px}
.navigation a {min-height:46px;display:flex;align-items:center;gap:11px;text-decoration:none;border-radius:9px;padding:8px 13px;color:var(--mute);font-weight:600}
.navigation a span {font-size:1.2rem}
.navigation a:hover,.navigation a[aria-current="page"] {color:var(--green-dark);background:var(--soft)}
.rail-note {margin-top:auto;padding:8px;color:var(--mute);font-size:.8rem}
main {max-width:1510px;margin-left:225px;padding:0 38px 40px}
.top {min-height:75px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.breadcrumb {font-size:.85rem;color:var(--mute)}
.breadcrumb span {color:#8b8d7e;padding:0 8px}
.breadcrumb strong {color:var(--ink);font-weight:650}
.project-progress {display:flex;align-items:center;gap:11px;white-space:nowrap;color:var(--mute);font-size:.82rem}
progress {width:88px;height:7px;appearance:none;overflow:hidden;border:0;border-radius:10px;background:var(--line)}
progress::-webkit-progress-bar {background:var(--line)}
progress::-webkit-progress-value {background:var(--green);border-radius:10px}
progress::-moz-progress-bar {background:var(--green)}
.hero {position:relative;min-height:275px;overflow:hidden;background:#e9eadd;border:1px solid #dde1d2;border-radius:19px;display:flex;align-items:center}
.hero-text {padding:28px 35px;position:relative;z-index:1;width:min(58%,560px)}
.kicker {font-size:.71rem;font-weight:750;letter-spacing:.14em;text-transform:uppercase;color:var(--green);margin-bottom:8px}
.hero p:not(.kicker) {font-size:1rem;color:#4f5a48;margin:9px 0 18px;max-width:32ch}
.hero-art {position:absolute;top:0;right:0;bottom:0;width:56%;overflow:hidden;pointer-events:none}
.hero-art img {position:absolute;mix-blend-mode:multiply;width:79%;height:132%;object-fit:contain;right:7%;top:-12%;transform:rotate(-9deg)}
.hero-art img+img {width:56%;height:110%;right:-17%;top:2%;transform:rotate(17deg);opacity:.42}
.button {display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 13px;border-radius:9px;border:1px solid var(--line);background:var(--white);text-decoration:none;font-weight:670;font-size:.87rem}
.button.primary {color:white;background:var(--green);border-color:var(--green)}
.button.primary:hover {background:var(--green-dark)}
.button.subtle {background:transparent}
.button:hover {filter:brightness(.97)}
.button.full {width:100%}
.dashboard {display:grid;grid-template-columns:minmax(0,1.12fr) minmax(300px,.88fr);gap:23px;margin-top:24px;align-items:start}
.section-head {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.section-head .jump {font-size:.84rem;font-weight:650;text-underline-offset:4px;white-space:nowrap}
.panel,.piece-row,.recipe-card {background:var(--white);border:1px solid var(--line);border-radius:13px}
.piece-list {display:grid;gap:8px;list-style:none;padding:0;margin:0}
.piece-row {display:flex;align-items:center;min-width:0}
.piece-row.selected {border-color:#839479;background:#fbfdf7}
.piece-open {display:flex;align-items:center;gap:12px;text-align:left;border:0;background:transparent;padding:8px 12px;border-radius:inherit;min-height:73px;flex:1;min-width:0}
.thumb {width:53px;height:53px;flex:0 0 53px;object-fit:contain;background:#f2f0e6;mix-blend-mode:multiply;border-radius:8px}
.piece-name {display:block;font-weight:710;line-height:1.25}
.piece-info {color:var(--mute);font-size:.78rem;display:block;margin-top:5px}
.piece-count {margin-left:auto;white-space:nowrap;color:var(--mute);font-size:.75rem;font-variant-numeric:tabular-nums}
.piece-open:hover .piece-name {text-decoration:underline;text-underline-offset:3px}
.move {display:flex;padding-right:7px}
.move button {width:44px;height:44px;border:0;background:transparent;border-radius:8px;font-size:1.15rem}
.move button:hover:not(:disabled) {background:var(--soft)}
.focus {padding:17px}
.focus-top {display:flex;align-items:flex-start;gap:13px}
.focus-top .thumb {width:68px;height:68px;flex-basis:68px}
.focus-top h3 {font-size:1.19rem;margin-bottom:4px}
.muted {color:var(--mute)}
.small {font-size:.81rem}
.next {background:var(--soft);padding:12px;border-radius:9px;margin:14px 0 10px}
.next strong {display:block;margin-bottom:4px}
.palette {display:flex;gap:6px;flex-wrap:wrap;margin:13px 0 0}
.palette span,.swatch {display:inline-block;background:var(--swatch);border:1px solid #23232235;border-radius:50%;width:23px;height:23px}
details.checklist {margin-top:12px;padding-top:8px;border-top:1px solid var(--line)}
summary {cursor:pointer;font-weight:650;padding:8px 0}
.checklist label {display:flex;align-items:center;gap:9px;min-height:42px;border-bottom:1px solid var(--line);font-size:.84rem}
.checklist label:last-child {border-bottom:0}
.checklist input {width:18px;height:18px;accent-color:var(--green);flex-shrink:0}
.page-head {margin:12px 0 19px}
.page-head h1 {font-size:clamp(2.5rem,5vw,3.9rem)}
.page-head p {color:var(--mute);margin-top:7px}
.filters {display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.filters button,.weights button {min-height:42px;background:var(--white);border:1px solid var(--line);border-radius:8px;padding:5px 11px;font-size:.86rem;font-weight:650}
.filters button[aria-pressed=true],.weights button[aria-pressed=true] {background:var(--green);color:white;border-color:var(--green)}
.recipe-toolbar {display:flex;gap:14px;align-items:end;flex-wrap:wrap;margin:0 0 17px}
.search {display:grid;gap:4px;flex:1 1 230px;font-weight:650;font-size:.84rem}
.search input {min-height:44px;padding:8px 11px;border:1px solid #aeb3a3;border-radius:9px;background:var(--white);width:100%}
.weights {display:flex;gap:5px;flex-wrap:wrap;margin:5px 0 2px}
.recipe-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:12px;align-items:start}
.recipe-card {padding:16px}
.focus .recipe-card {padding:12px;margin:0 0 11px}
.recipe-title {display:flex;gap:10px;align-items:center;margin-bottom:6px}
.recipe-title .swatch {width:34px;height:34px;flex:0 0 34px}
.recipe-title p {margin-top:3px;font-size:.73rem;color:var(--mute)}
.recipe-card .status {color:var(--green-dark);background:var(--soft);display:inline-block;border-radius:5px;padding:1px 6px;font-size:.73rem;font-weight:650;margin:3px 0}
.recipe-card .zone {font-size:.84rem;color:var(--mute);margin:5px 0}
table {width:100%;border-collapse:collapse;margin:8px 0;font-variant-numeric:tabular-nums;font-size:.84rem}
th,td {padding:5px 1px;text-align:left;border-bottom:1px solid var(--line)}
thead {color:var(--mute)}
th:not(:first-child),td:not(:first-child) {text-align:right;white-space:nowrap;padding-left:7px}
tfoot th,tfoot td {border-bottom:0}
.recipe-card dl {display:grid;grid-template-columns:auto 1fr;gap:4px 8px;font-size:.79rem;margin:6px 0 0}
.recipe-card dd {margin:0}
.recipe-card dt {font-weight:650;color:var(--mute)}
.detail-link {display:inline-flex;align-items:center;min-height:40px;font-size:.81rem;text-underline-offset:3px}
.announce {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:1050px) {main {padding-inline:23px;margin-left:185px}.rail{width:185px}.dashboard{gap:15px}}
@media(max-width:820px) {
  .rail {inset:auto 0 0;width:auto;height:auto;padding:4px 12px max(5px,env(safe-area-inset-bottom));border-right:0;border-top:1px solid var(--line)}
  .brand,.rail-note {display:none}.navigation {grid-template-columns:repeat(3,1fr);gap:5px;margin:0}.navigation a {justify-content:center}
  main {margin:0;padding:0 16px calc(78px + env(safe-area-inset-bottom))}
  .top {min-height:58px}.breadcrumb {font-size:.75rem}.breadcrumb span{padding:0 3px}.project-progress{font-size:.73rem}progress{width:42px}
  .hero-text{padding:22px;width:64%}.hero{min-height:230px}.hero p:not(.kicker){font-size:.87rem}.hero-art{width:51%;mask-image:linear-gradient(to right,transparent 0%,#000 38%)}.hero-art img{width:124%;right:-20%}
}
@media(max-width:620px) {
  .dashboard {display:flex;flex-direction:column;gap:20px;margin-top:16px}.dashboard>*{width:100%}.dashboard .workbench {order:-1}
  .hero {min-height:202px}.hero-text{padding:17px}.hero h1{font-size:3.05rem}.hero p:not(.kicker){margin-bottom:11px}
  .recipe-grid {display:grid;grid-template-columns:1fr}.section-head{margin-bottom:8px}.focus{padding:13px}
}
@media(max-width:365px) {.breadcrumb {max-width:158px}.project-progress progress {display:none}.move button{width:40px}}
