@font-face{font-family:WorkshopHand;src:url('./fonts/Kalam-Regular.ttf') format('truetype');font-display:swap}#notebook{width:min(650px,92vw);border:8px solid #654532;border-radius:7px;background:#f1e5c9;color:#322e29;box-shadow:0 16px 70px #0009;padding:20px;max-height:88dvh}#notebook::backdrop{background:#101914a8}.book-heading{display:flex;align-items:center;justify-content:space-between}.book-heading h2{font:26px WorkshopHand,'Bradley Hand',cursive;margin:0}.book-caption{font:18px WorkshopHand,'Bradley Hand',cursive}#notebook label{font:14px system-ui}#notebook textarea{display:block;box-sizing:border-box;width:100%;height:55dvh;resize:vertical;border:0;border-left:1px solid #b46e6655;outline-offset:3px;padding:0 12px;margin:12px 0;color:#2c3440;background:repeating-linear-gradient(transparent 0,transparent 31px,#9f998655 32px);font:21px/32px WorkshopHand,'Bradley Hand','Segoe Print',cursive}.book-status{font:14px system-ui}#notebook button,#free-ruler button{min-height:42px;padding:8px 12px;background:#34453b;color:#eee7d9;border:1px solid #d8c6a166;border-radius:4px;font:14px system-ui}#free-ruler{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);width:min(620px,94vw);box-sizing:border-box;padding:12px;background:#1b2620f2;border:1px solid #d8c6a166;border-radius:6px;text-align:center}#free-ruler[hidden]{display:none}#free-ruler p{font:14px/1.4 system-ui;margin:0 0 8px}#free-ruler output{display:block;font:22px system-ui;color:#e8d29e;margin:8px}#free-ruler div{display:flex;flex-wrap:wrap;justify-content:center;gap:5px}#free-ruler label{display:flex;align-items:center;gap:10px;justify-content:center;margin-top:8px;font:14px system-ui}#free-ruler input{width:65%}.top-actions{flex-wrap:wrap}
#free-ruler [hidden]{display:none!important}#free-ruler button[aria-pressed=true]{background:#d8c6a1;color:#223026}
#toolbox{position:absolute;left:8px;top:85px;bottom:12px;z-index:25;width:92px;display:flex;flex-direction:column;gap:5px;overflow-y:auto;padding:7px;box-sizing:border-box;background:#1b2620eb;border:1px solid #d8c6a155;border-radius:6px}#toolbox>span{font:14px system-ui;color:#d8c6a1;text-align:center;padding:3px}#toolbox button{flex:none;min-height:42px;border:1px solid #d8c6a155;border-radius:4px;padding:6px 3px;background:#34453b;color:#eee7d9;font:14px/1.15 system-ui}#toolbox button[aria-pressed=true]{background:#d8c6a1;color:#223026}.brief{left:118px!important}.face-picker{left:118px!important}#tenon-panel,#mortise-panel,#cut-panel,#free-ruler{width:min(600px,calc(100% - 116px))!important;left:calc(50% + 50px)!important}.bottom{left:116px!important;width:calc(100% - 130px)!important}.joinery-panel .cut-tools{display:none!important}.joinery-panel[data-tool-mode=align] .cut-tools,.joinery-panel[data-tool-mode=saw] .cut-tools{display:flex!important}.joinery-panel .cut-tools>button{display:none!important}.joinery-panel[data-tool-mode=align] #tenon-saw,.joinery-panel[data-tool-mode=saw] #tenon-saw{display:block!important}#free-ruler [data-tool]{display:none!important}@media(max-width:600px){#toolbox{width:78px;left:4px;top:78px;padding:4px}#toolbox button{font-size:14px}#tenon-panel,#mortise-panel,#cut-panel,#free-ruler{width:calc(100% - 92px)!important;left:calc(50% + 40px)!important;padding:8px!important}.brief,.face-picker{left:94px!important}.bottom{left:94px!important;width:calc(100% - 102px)!important}.brand h1,.brand .eyebrow{display:none}}

.joinery-panel[data-tool-mode=align] #tenon-light-strokes,.joinery-panel[data-tool-mode=saw] #tenon-light-strokes{display:block!important}

.joinery-panel[data-tool-mode=align] #tenon-fine-align{display:block!important}

.joinery-panel[data-tool-mode=align] #tenon-keep-small:not([hidden]),.joinery-panel[data-tool-mode=saw] #tenon-keep-small:not([hidden]){display:block!important}

#one-shot-badge{position:absolute;right:12px;top:112px;z-index:35;max-width:calc(100% - 140px)}#one-shot-dialog{max-width:760px;max-height:85vh;overflow:auto}#one-shot-dialog [data-issues]{font-size:14px}
#one-shot-badge{background:#26332bf2;color:#f5edd6;border:1px solid #8e9778;border-radius:8px;padding:10px 14px;font:inherit;min-height:44px;text-align:left;box-shadow:0 3px 12px #0005}
#one-shot-dialog{box-sizing:border-box;width:min(760px,calc(100vw - 28px));padding:22px;background:#26332b;color:#eee8d8;border:1px solid #8e9778;border-radius:12px;font-size:16px;line-height:1.5}
#one-shot-dialog::backdrop{background:#111b18ba}#one-shot-dialog button{background:#18261e;color:#f5edd6;border:1px solid #8e9778;border-radius:6px;padding:10px 14px;min-height:44px;font:inherit}#one-shot-dialog [data-go]{background:#dbc79d;color:#202d24}#one-shot-dialog button:disabled{opacity:.45}#one-shot-dialog input{max-width:100%}

/* Art Director ledger treatment: live editable notes, fine sewn cover edge. */
#notebook{box-sizing:border-box;width:min(640px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;border:1px solid #d1bfa0;border-left:22px solid #344957;border-radius:3px;padding:20px 24px 18px 30px;background:linear-gradient(100deg,#e6d7b9 0,#f3e8d2 7%,#f3e8d2 95%,#e9dec6);color:#302b24;box-shadow:-5px 4px 0 #263b47,0 18px 55px #0008}
#notebook::before{content:'';position:absolute;left:5px;top:100px;width:15px;height:210px;pointer-events:none;background:repeating-linear-gradient(transparent 0 46px,#d8cdb4 47px 49px,transparent 50px 52px)}
#notebook .book-heading h2{display:none}
#notebook .book-heading{justify-content:flex-end;margin:4px 0}
#notebook .ui-panel-bar{background:transparent;border-bottom:1px solid #a9977555;padding-bottom:9px}
#notebook .ui-panel-grip{font:21px Georgia,serif;color:#302b24;text-align:left;background:transparent}
#notebook .book-caption{font:600 17px/1.5 system-ui;color:#302b24;margin:12px 0 18px}
#notebook label,#notebook .book-status{font:14px/1.5 system-ui;color:#655b4d}
#notebook textarea{height:48dvh;min-height:190px;color:#302b24;font:16px/28px system-ui;padding:8px 10px;margin:10px 0;border-left:1px solid #8c746c55;background:repeating-linear-gradient(transparent 0 27px,#9b8c6d26 27px 28px)}
#notebook textarea::placeholder{color:#655b4d;opacity:1}
#notebook textarea:focus-visible{outline:2px solid #344957;outline-offset:3px}
#notebook button{min-height:44px;background:#344957;color:#f3e8d2;border:1px solid #506775;border-radius:3px}
#notebook .ui-panel-grip{color:#302b24;background:transparent;border:0}
#notebook.ui-collapsed::before{display:none}

#notebook .book-heading{display:none}
#notebook .ui-panel-grip{background:transparent!important;color:#302b24!important;font:20px Georgia,serif!important;border:0!important}
#notebook::before{left:-15px;width:26px;background:repeating-linear-gradient(transparent 0 46px,#d8cdb4 47px 48px,transparent 49px 52px)}

#workshop-radio{width:min(410px,94vw);max-height:85dvh;overflow:auto}#workshop-radio>h2{display:none}#workshop-radio label{display:flex;align-items:center;justify-content:space-between;gap:16px}#workshop-radio input[type=range]{max-width:65%}#workshop-radio small{display:block;color:#d4c6a5;line-height:1.5}

/* Contextual recovery actions must remain visible when native saw state enables them. */
.joinery-panel[data-tool-mode=align] #tenon-rip-other-end:not([hidden]),.joinery-panel[data-tool-mode=saw] #tenon-rip-other-end:not([hidden]),.joinery-panel[data-tool-mode=align] #tenon-reclamp:not([hidden]){display:block!important}
