.bk-workshop { height: 100%; min-height: 0; display: flex; flex-direction: column; gap: 9px; color: #fff2d7; }
.bk-inventory { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; flex: none; }
.bk-stock { padding: 6px 9px; overflow: hidden; background: #30293c; border: 1px solid #615362; border-radius: 8px; }
.bk-stock > div { display: flex; align-items: center; gap: 5px; font-size: clamp(12px,1.3vw,17px); }
.bk-stock-name { font-weight: 740; }
.bk-stock b { margin-left: auto; color: var(--bk-tone); font-weight: 850; font-variant-numeric:tabular-nums; }
.bk-stock-icon,.bk-price span { color: var(--bk-tone); }
.bk-stock-icon { display: inline-flex; }
.bk-stock svg,.bk-price svg { width: 16px; height: 16px; flex: none; }
.bk-stock small { display: block; color: #d9c7d0; font-size: clamp(10px,.97vw,13px); line-height: 1.2; margin-top: 2px; }
.bk-columns { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: 11px; }
.bk-plot { position: relative; isolation: isolate; min-height: 0; overflow: hidden; display:flex; flex-direction:column; justify-content:flex-end; border-radius: 12px; border: 1px solid #8a6972; background: #312c42; }
.bk-picture { position:absolute; inset:0; z-index:-2; background:url("assets/chapter-workshop.webp") center 45%/cover; }
.bk-plot[data-home=bungalow] .bk-picture { background-image:url("assets/chapter-bungalow.webp"); }
.bk-plot::before {content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#1d192af7 1%,#232033c7 30%,#2b1e2a15 72%);}
.bk-plot figcaption { padding: clamp(9px,1.5vw,20px); color:#fff2d7; }
.bk-stage { color: #a7f0da; font-size:clamp(9px,.94vw,13px); letter-spacing:.13em; font-weight:780; }
.bk-plot figcaption h2 { font-size:clamp(20px,3.6vw,48px); letter-spacing:-.047em; font-weight:850; line-height:1.04; margin:3px 0 5px; }
.bk-plot figcaption p { font-size:clamp(12px,1.38vw,18px); line-height:1.25; }
.bk-plot figcaption .bk-status { margin-top:4px; font-size:clamp(11px,1.14vw,14px); color:#a5f2da; }
.bk-status:empty {display:none;}
.bk-letter-slot {position:absolute;left:9px;top:8px;}
.bk-workshop button.bk-letter {min-height:35px;border-color:#c4a97b;background:#2d2339ea;color:#ffe1a6;font-weight:700;font-size:12px;padding:5px 11px;}
.bk-plans {min-height:0; min-width:0; overflow:hidden;}
.bk-list {height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#7c6e80 transparent; padding:1px 3px 4px;scroll-padding:3px;}
.bk-card {padding:9px 10px; border:1px solid #665266;border-radius:9px;background:#30293f; margin-bottom:5px;}
.bk-card[data-ready=true] {border-color:#71998d;background:#29323d;}
.bk-card[data-built=true] {background:#272c36;border-color:#465e5e;}
.bk-card:focus-visible,.bk-list:focus-visible { outline:2px solid #ffe49e;outline-offset:-2px;}
.bk-card-head {display:flex;align-items:center;justify-content:space-between;gap:5px;}
.bk-card h3 { margin:0; color:#ffeece;font-size:clamp(14px,1.7vw,21px);line-height:1.08;letter-spacing:-.03em;}
.bk-price {display:flex;gap:5px;align-items:center;}
.bk-price span {display:inline-flex;align-items:center;gap:2px;white-space:nowrap; font-variant-numeric:tabular-nums;}
.bk-price svg {width:13px;height:13px;}
.bk-price b {font-size:12px;}
.bk-workshop .bk-desc {margin:4px 0;color:#dfcfda;font-size:clamp(11px,1.12vw,15px);line-height:1.25;}
.bk-card-foot {display:flex;align-items:center;}
.bk-lock,.bk-built {font-size:clamp(10px,1vw,13px);line-height:1.3;}
.bk-lock {color:#edcba3;} .bk-built {color:#9ae5c9;}
.bk-workshop button.bk-craft {min-height:35px;padding:5px 13px;background:#8ce5cf;color:#15272c;font-size:13px;font-weight:790;border:0;}
.bk-note {padding:0;background:#fff0cf;color:#2c2337;border:2px solid #a57f77;border-radius:13px;max-width:min(410px,90vw);max-height:88dvh;box-shadow:0 18px 50px #130f25aa;}
.bk-note::backdrop {background:#161321be;}
.bk-note article {padding:clamp(16px,3vw,26px);}
.bk-note small {color:#82515c;letter-spacing:.12em;font-size:10px;font-weight:780;}
.bk-workshop .bk-note h2 {margin:5px 0 9px;font-size:24px;color:#2c2337;}
.bk-workshop .bk-note p {font-size:15px;line-height:1.45;}
.bk-workshop .bk-note button {margin-top:12px;padding:7px 15px;min-height:38px;font-weight:750;background:#2c3040;color:#fff1d7;}
@media(max-height:355px) and (orientation:landscape) {
 .bk-workshop {gap:5px;}.bk-stock {padding:3px 6px;}.bk-columns {gap:6px;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);}
 .bk-card {padding:6px 8px;}.bk-plot figcaption {padding:8px;}.bk-workshop button.bk-letter {min-height:30px;}
}
@media(orientation:portrait) and (max-width:650px) {
 .bk-workshop {height:auto;}.bk-inventory{grid-template-columns:1fr 1fr;}
 .bk-columns {display:flex;flex-direction:column;}.bk-plot{min-height:190px;}.bk-list{max-height:410px;}
}

.bk-workshop figure,.bk-workshop figcaption p {margin:0;}
.bk-workshop button {border-radius:7px;border:1px solid #9a827f;}
.bk-workshop button:focus-visible {outline:2px solid #ffe49e;outline-offset:-2px;}
.bk-card[data-next=true]{border-color:#a2d9bd;box-shadow:inset 3px 0 #a2d9bd}
