#project-panel{width:min(540px,calc(100% - 24px));max-height:85dvh;overflow:auto;background:#23362c;color:#f3ead8;border:1px solid #d8c6a166;border-radius:12px;padding:22px;box-shadow:0 20px 80px #0008;font:16px system-ui}
#project-panel::backdrop{background:#0e1917aa;backdrop-filter:blur(5px)}
.project-heading{position:sticky;top:-22px;z-index:2;display:flex;align-items:center;justify-content:space-between;margin:-22px -22px 18px;padding:16px 22px;background:#23362c;border-bottom:1px solid #d8c6a144}.project-heading h2{margin:0;font:26px Georgia,serif}#project-close{font-size:26px;padding:0 10px;flex:none}
#project-panel label{display:grid;gap:8px}#project-panel input{width:100%;min-width:0;border:1px solid #d8c6a155;border-radius:5px;background:#18261f;color:#fff3d9;padding:10px;font:16px system-ui;box-sizing:border-box}
#project-panel button{min-height:44px;font:14px system-ui;background:#d8c6a1;color:#1e2b23;border:0;border-radius:5px;padding:9px 13px}#project-panel button:disabled{opacity:.5}
.project-piece{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:16px;padding-bottom:16px;border-bottom:1px solid #d8c6a133}.project-piece input{grid-column:1}.project-piece span{grid-column:1;font-size:14px;color:#cec6b5}.project-piece button{grid-column:2;grid-row:1/3;align-self:center}
.project-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}#project-status{font-size:14px;line-height:1.5;color:#edd7a4}.project-note{font-size:14px;line-height:1.5;color:#c7cabe;margin-bottom:0}
@media(max-width:600px){.top-actions{flex-wrap:wrap;justify-content:flex-end;max-width:260px;gap:5px}#project-entry{min-height:36px}#project-panel{padding:18px}.project-heading{top:-18px;margin:-18px -18px 18px;padding:12px 18px}}

.project-piece .trash-board{color:#e9b7a3}#project-trash{border-top:1px solid #d5ddcc26;margin-top:14px;padding-top:12px}#project-trash[hidden]{display:none}#project-trash summary{cursor:pointer;padding:8px 0;color:#c3bba9}.project-trash-piece{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:7px 0}.project-trash-piece span{overflow-wrap:anywhere}#project-empty-trash{margin-top:10px;color:#e9b7a3}#project-cancel-empty[hidden]{display:none}
.project-piece button{grid-row:1;align-self:stretch}.project-piece button.trash-board{grid-row:2;background:#523c34;color:#ffe1ce}#project-empty-trash{background:#523c34;color:#ffe1ce}
#offcut-choice{width:min(390px,calc(100% - 32px));box-sizing:border-box;border:1px solid #d8c6a166;border-radius:12px;padding:24px;background:#23362c;color:#f3ead8;box-shadow:0 20px 80px #0008;font:16px system-ui}#offcut-choice::backdrop{background:#0e191744}#offcut-choice h2{margin:0 0 14px;font:24px Georgia,serif}#offcut-choice p{line-height:1.5}#offcut-choice div{display:flex;gap:10px;margin:20px 0 14px}#offcut-choice button{min-height:44px;padding:10px 14px;border:1px solid #d8c6a177;border-radius:5px;background:#344b3d;color:#f3ead8;font:14px system-ui}#offcut-choice [data-offcut-keep]{background:#d8c6a1;color:#1e2b23}#offcut-choice small{opacity:.75}

.project-piece{grid-template-columns:96px minmax(0,1fr) auto;column-gap:12px;align-items:center}.project-piece .board-thumbnail{grid-column:1;grid-row:1/3;width:96px;height:64px;object-fit:contain;border-radius:6px;background:#24332d}.project-piece input,.project-piece span{grid-column:2;min-width:0}.project-piece button{grid-column:3}.project-trash-piece .board-thumbnail{width:72px;height:44px;object-fit:contain;border-radius:5px;flex:none}.project-trash-piece span{flex:1}@media(max-width:520px){.project-piece{grid-template-columns:68px minmax(0,1fr) auto;column-gap:8px}.project-piece .board-thumbnail{width:68px;height:58px}.project-piece button{padding:8px;font-size:13px}}

#project-save-notice{position:absolute;top:72px;right:16px;z-index:55;max-width:min(420px,calc(100% - 32px));padding:8px 12px;border:1px solid #dfc59277;border-radius:6px;background:#17221ff5;color:#f0d7a6;font:13px/1.4 system-ui;text-align:left}#project-save-notice[hidden]{display:none}#project-save-notice:disabled{opacity:.8}@media(max-width:700px){#project-save-notice{top:112px;right:12px;max-width:calc(100% - 24px)}}

#project-link-fallback[hidden]{display:none!important}#project-link-fallback{display:block;margin-top:12px}#project-link-value{display:block;box-sizing:border-box;width:100%;margin-top:6px;font:14px/1.4 system-ui;padding:10px;user-select:text}
#offcut-choice label{display:grid;gap:8px;font-size:14px}#offcut-choice input{width:100%;box-sizing:border-box;min-height:44px;padding:10px 12px;border:1px solid #d8c6a177;border-radius:5px;background:#16261e;color:#f3ead8;font:16px system-ui}#offcut-choice input:focus-visible{outline:2px solid #d8c6a1;outline-offset:2px}
#project-templates:not(:empty){margin:12px 0;padding:10px;border:1px solid #d8c6a155;border-radius:8px}#project-templates>strong{display:block;margin-bottom:8px}.project-template{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 0}.project-template button{min-height:36px}

.project-template .board-thumbnail{width:96px;height:64px;object-fit:contain;border-radius:6px;flex:none}.project-template span{flex:1}
