#scrapbookStudio{width:min(96vw,1560px);max-width:none;height:96dvh;max-height:96dvh;margin:auto;padding:0;border:1px solid #9f987e;border-radius:16px;background:#f8f3e7;color:#34402e;overflow:hidden}
#scrapbookStudio::backdrop{background:#18251fd9}
#scrapbookStudio[open]{display:flex;flex-direction:column}
.scrap-studio-header{display:flex;align-items:center;gap:12px;padding:14px 20px;border-bottom:1px solid #c9c1a8;background:#fffdf6;flex-wrap:wrap}
.scrap-studio-header h2{font:26px Georgia,serif;margin:0}.scrap-studio-header .actions{margin-left:auto;gap:8px}
.scrap-studio-body{display:grid;grid-template-columns:280px minmax(0,1fr) 245px;flex:1;min-height:0}
.scrap-tools,.scrap-inspector{overflow:auto;padding:18px;background:#f3eedf}
.scrap-tools{border-right:1px solid #d1c8ad}.scrap-inspector{border-left:1px solid #d1c8ad}
.scrap-tools details{margin-bottom:14px;border-bottom:1px solid #d4cbb5;padding-bottom:14px}.scrap-tools summary{font-weight:750;cursor:pointer}.scrap-tools label,.scrap-inspector label{font-size:14px;margin-top:12px}
.scrap-tools button,.scrap-inspector button{font-size:14px;padding:8px 10px;min-height:40px}.scrap-tools input,.scrap-tools select,.scrap-inspector input,.scrap-inspector select,.scrap-inspector textarea{padding:8px;font-size:14px}
.scrap-tools input[type=color],.scrap-inspector input[type=color]{padding:3px;width:100%;height:40px}
.scrap-palette{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.scrap-palette button{min-width:42px;background:#fffdf5;color:#34402e;border:1px solid #bdb69f;border-radius:8px}.scrap-palette .scrap-sticker{font-size:26px}
.scrap-workspace{overflow:auto;padding:24px;background:repeating-linear-gradient(45deg,#cfc9bb,#cfc9bb 12px,#d6d0c3 12px,#d6d0c3 24px)}
#scrapCanvas{display:block;width:100%;max-width:800px;height:auto;margin:auto;box-shadow:0 10px 35px #232c2940;touch-action:none;background:#fff7e8;outline:none}
#scrapCanvas:focus-visible{outline:3px solid #755775;outline-offset:4px}
.scrap-mode{display:flex;gap:6px;margin-top:12px}.scrap-mode button[aria-pressed=true]{background:#755775;color:white}
.scrap-studio-footer{padding:9px 20px;background:#fffdf6;border-top:1px solid #c9c1a8;font-size:14px;min-height:42px}
.handmade-scrapbook-page{margin:0;min-width:0}.handmade-scrapbook-page>svg{display:block;width:100%;height:auto;box-shadow:0 8px 22px #343b2830}.handmade-scrapbook-page figcaption{padding:10px 0;font:20px Georgia,serif;color:#405436}
.handmade-scrapbook-page .actions{margin:6px 0 18px}.scrapbook-empty{grid-column:1/-1;padding:36px;text-align:center;background:#fff9e9;border:2px dashed #c7b489;border-radius:12px}
@media(max-width:1100px){.scrap-studio-body{grid-template-columns:230px minmax(0,1fr)}.scrap-inspector{grid-column:1/-1;border-left:0;border-top:1px solid #d1c8ad;max-height:230px;display:flex;gap:16px;flex-wrap:wrap}.scrap-inspector>div{flex:1;min-width:180px}.scrap-inspector>p{width:100%}}
@media(max-width:700px){#scrapbookStudio{width:100vw;height:100dvh;max-height:100dvh;border-radius:0;border:0}.scrap-studio-header{padding:10px;gap:6px}.scrap-studio-header h2{font-size:20px}.scrap-studio-header button{font-size:13px;padding:8px;min-height:40px}.scrap-studio-body{display:block;overflow:auto}.scrap-tools{overflow:visible;border-right:0;padding:12px}.scrap-tools>details{display:block}.scrap-tools>details:not([open]){margin-bottom:8px;padding-bottom:8px}.scrap-workspace{padding:14px}.scrap-inspector{max-height:none;overflow:visible;display:block;padding:12px}.scrap-studio-footer{padding:8px 12px}.scrapbook-spread{grid-template-columns:1fr}}
