
.bd-case{--bd-ink:#1c2420;--bd-muted:#55605a;--bd-line:#dce1d9;--bd-wash:#f1f4ec;--bd-accent:#355e4d;max-width:940px;margin:0 auto;color:var(--bd-ink);font-family:inherit;line-height:1.55;text-align:left}
.bd-case *, .bd-case *::after,.bd-case *::before{box-sizing:border-box}
.bd-case [hidden]{display:none!important}
.bd-case h2,.bd-case h3,.bd-case h4,.bd-case p,.bd-case figure{margin:0}
.bd-case button,.bd-case select{font:inherit;letter-spacing:inherit}
.bd-case button{cursor:pointer;color:var(--bd-ink);border:1px solid var(--bd-line);background:white;box-shadow:none;min-height:42px;line-height:1.25;padding:7px 15px;border-radius:100px;font-size:15px;font-weight:600;transition:background-color .15s,color .15s,border-color .15s}
.bd-case button:disabled{opacity:.42;cursor:default}
.bd-case button:focus-visible,.bd-case select:focus-visible,.bd-case canvas:focus-visible{outline:3px solid #347951;outline-offset:3px}
@media(hover:hover){.bd-case button:not(:disabled):hover{background:#edf1e9;border-color:#96a99c}.bd-case .bd-primary:not(:disabled):hover{background:#294a3c;color:#fff}}
.bd-intro{padding:8px 0 0}
.bd-kicker{font-size:15px;font-weight:650;color:var(--bd-accent)}
.bd-case .bd-intro h2{font-weight:720;letter-spacing:-.06em;font-size:clamp(52px,8vw,86px);line-height:1.16;margin:8px 0 10px}
.bd-case .bd-lead{font-weight:520;font-size:clamp(21px,3.2vw,32px);letter-spacing:-.035em;line-height:1.4}
.bd-cover{position:relative;border-radius:26px;overflow:hidden;margin-top:24px!important;background:#2b483b}
.bd-cover img{display:block;width:100%;height:auto}
.bd-case .bd-cover figcaption{position:absolute;left:4%;bottom:5.5%;right:4%;display:flex;gap:9px;align-items:baseline;justify-content:space-between;color:#faf9ed;font-weight:650;font-size:clamp(15px,2.5vw,24px);text-shadow:0 1px 5px #153527}
.bd-cover figcaption span{font-size:clamp(12px,1.8vw,16px);font-weight:450;font-variant-numeric:tabular-nums}
douge-workshop{display:block}
.bd-chapter{margin-top:clamp(52px,8vw,80px);scroll-margin-top:28px}
.bd-heading{margin:0 0 20px}
.bd-case .bd-heading h3{font-size:clamp(30px,4.3vw,49px);line-height:1.22;letter-spacing:-.055em;font-weight:710}
.bd-case .bd-heading p{color:var(--bd-muted);font-size:clamp(16px,2vw,19px);margin-top:11px;max-width:39em}
.bd-lab,.bd-boards,.bd-native-layout{border:1px solid var(--bd-line);border-radius:24px;background:#fff;overflow:hidden}
.bd-lab{padding:clamp(16px,3.5vw,32px)}
.bd-lab-top,.bd-controls,.bd-exports{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.bd-name{font-size:clamp(20px,3vw,28px);font-weight:650;letter-spacing:-.035em;overflow-wrap:anywhere}
.bd-files,.bd-actions,.bd-operation,.bd-tabs,.bd-board-list{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.bd-tabs,.bd-board-list{gap:3px;width:fit-content;padding:3px;border-radius:24px;background:#f1f3ef}
.bd-tabs{margin:16px 0 12px}
.bd-tabs button,.bd-board-list button{min-height:36px;padding:5px 13px;border-color:transparent;background:transparent;font-size:15px}
.bd-tabs button[aria-pressed=true],.bd-board-list button[aria-pressed=true]{background:#fff;box-shadow:0 1px 4px #293e2c30;border-color:#d9dfd7;color:#20382b}
.bd-sheet,.bd-board-view{display:flex;align-items:center;justify-content:center;min-width:0;background:var(--bd-wash);border-radius:16px;overflow:hidden}
.bd-sheet{padding:18px;min-height:200px;height:clamp(248px,46vw,400px)}
.bd-editor,.bd-original,.bd-board-canvas{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.bd-editor,.bd-original{width:auto;height:100%;max-width:100%}
.bd-original{image-rendering:pixelated}
.bd-editor{cursor:crosshair;touch-action:manipulation}
.bd-readouts{display:flex;gap:12px;justify-content:space-between;align-items:baseline;color:var(--bd-muted);font-size:14px;font-variant-numeric:tabular-nums;margin:9px 0 21px}
.bd-operation{gap:12px}
.bd-operation label{display:grid;gap:3px;font-size:14px;color:var(--bd-muted)}
.bd-operation select{min-height:43px;max-width:100%;font-size:16px;padding:6px 24px 6px 10px;border:1px solid var(--bd-line);border-radius:10px;background-color:#fff;color:var(--bd-ink)}
.bd-case button.bd-primary{background:var(--bd-accent);color:white;border-color:var(--bd-accent)}
.bd-case .bd-hint,.bd-case .bd-live{font-size:14px;color:var(--bd-muted);margin-top:11px}
.bd-case .bd-live{color:var(--bd-accent);font-weight:600}
.bd-live:empty{display:none}
.bd-boards{padding:clamp(16px,3vw,26px)}
.bd-board-list{margin-bottom:20px}
.bd-board-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(215px,.88fr);gap:clamp(17px,3vw,30px);align-items:center}
.bd-board-view{padding:15px;height:clamp(240px,36vw,320px)}
.bd-board-canvas{width:auto;height:100%;max-width:100%}
.bd-case .bd-stock h4,.bd-case .bd-notes h4{font-size:clamp(19px,2.6vw,26px);line-height:1.35;letter-spacing:-.035em;font-weight:660}
.bd-case .bd-board-sum{color:var(--bd-muted);font-size:14px;margin:4px 0 10px}
.bd-inventory{display:grid;grid-template-columns:1fr 1fr;gap:5px}
.bd-inventory button{display:flex;align-items:center;gap:5px;border:1px solid transparent;border-radius:8px;font-size:14px;padding:6px;min-height:37px;background:#f6f7f3;text-align:left;white-space:nowrap}
.bd-inventory button::before{content:"";display:block;width:12px;height:12px;border-radius:100%;background:var(--bd-pigment);box-shadow:inset 0 0 0 1px #182a2136;flex-shrink:0}
.bd-inventory button[aria-pressed=true]{border-color:var(--bd-accent);background:#e6eee2}
.bd-inventory b{margin-left:auto;font-size:13px;font-variant-numeric:tabular-nums;font-weight:560}
.bd-case .bd-clear-filter{margin-top:7px;min-height:33px;font-size:14px}
.bd-exports{margin-top:22px;padding-top:20px;border-top:1px solid var(--bd-line)}
.bd-exports strong{font-size:19px}
.bd-case .bd-exports p{font-size:15px;color:var(--bd-muted);margin-top:2px}
.bd-native-layout{display:grid;grid-template-columns:.8fr 1.2fr;background:#eef2e9;align-items:center;gap:clamp(20px,4.6vw,55px);padding:clamp(20px,4vw,38px)}
.bd-native-layout figure{text-align:center}
.bd-native-layout figure img{width:min(100%,214px);height:auto;display:block;margin:0 auto;border-radius:16px;box-shadow:0 14px 33px #2e492d1a,0 0 0 1px #c4ccbd}
.bd-native-layout figcaption{font-size:13px;color:var(--bd-muted);line-height:1.4;margin-top:12px}
.bd-notes>div+div{margin-top:20px;padding-top:16px;border-top:1px solid #cbd5c6}
.bd-case .bd-notes p{font-size:clamp(15px,1.8vw,17px);line-height:1.65;color:#465449;margin-top:6px}
.bd-notes span{white-space:nowrap}
@media(max-width:650px){
 .bd-board-grid{grid-template-columns:1fr}.bd-board-view{height:235px}.bd-case .bd-inventory{grid-template-columns:repeat(auto-fit,minmax(92px,1fr))}.bd-native-layout{gap:22px}.bd-native-layout figure img{border-radius:12px}
}
@media(max-width:510px){
 .bd-lab,.bd-boards{padding:13px}.bd-cover,.bd-lab,.bd-boards,.bd-native-layout{border-radius:17px}
 .bd-controls{align-items:flex-start}.bd-native-layout{grid-template-columns:1fr;padding:19px}.bd-native-layout figure img{width:150px}.bd-operation select{padding-right:12px}
 .bd-sheet{height:clamp(205px,65vw,292px);min-height:0;padding:8px}.bd-board-view{height:202px;padding:8px}
 .bd-board-list{max-width:100%;gap:1px}.bd-board-list button{font-size:14px;padding:5px 10px}
 .bd-actions button,.bd-files button{padding-left:12px;padding-right:12px}
 .bd-readouts{gap:6px;font-size:13px}.bd-inventory button{min-height:42px}.bd-notes>div+div{margin-top:13px;padding-top:12px}
}
@media(prefers-reduced-motion:reduce){.bd-case *{transition:none!important;animation:none!important}}


.bd-case .bd-export-note:not(:empty){font-size:14px;color:var(--bd-accent);margin-top:10px}
@supports (width:1cqw){
 .bd-sheet,.bd-board-view{container-type:size}
 .bd-sheet .bd-editor,.bd-sheet .bd-original,.bd-board-view .bd-board-canvas{width:min(100cqw,calc(100cqh * var(--bd-ar,1.2)));height:auto;max-height:100%}
}

.bd-case .bd-lead,.bd-case .bd-heading h3{text-wrap:balance}
.bd-viewbar{display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap;margin:16px 0 12px}
.bd-viewbar .bd-tabs{margin:0}
.bd-case .bd-viewbar>button{min-height:36px;font-size:14px;padding:6px 12px}
.bd-case .bd-viewbar>button[aria-pressed=true]{background:#e5eee0;border-color:#9bad9f}
@media(max-width:510px){
 .bd-board-list{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;width:100%;gap:0}
 .bd-board-list button{padding:5px 2px;white-space:nowrap}
}
