:root,html[data-theme=light]{color-scheme:light;--surface: #fffdf8;--surface-raised: #ffffff;--surface-soft: #f7f2e9;--surface-warm: #f3eee4;--ink: #29251f;--muted: #716b62;--border: #e6ded2;--primary: #a94332;--primary-hover: #913927;--accent: #d6a85f;--sage: #728b70;--shadow-sm: 0 2px 6px rgba(48, 39, 28, .055);--shadow-md: 0 10px 28px rgba(48, 39, 28, .08);--shadow-lg: 0 18px 48px rgba(48, 39, 28, .12);--font-body: "Segoe UI Variable", system-ui, -apple-system, "Segoe UI", sans-serif;--font-heading: "Segoe UI Variable", system-ui, -apple-system, "Segoe UI", sans-serif}html[data-theme=dark]{color-scheme:dark;--surface: #24211d;--surface-raised: #2d2924;--surface-soft: #37322c;--surface-warm: #332e27;--ink: #f5f0e7;--muted: #c4bcaf;--border: #4b443c;--primary: #b85a4b;--primary-hover: #c57163;--accent: #d6a85f;--sage: #9ab59a;--shadow-sm: 0 2px 8px rgba(0, 0, 0, .14);--shadow-md: 0 10px 28px rgba(0, 0, 0, .2);--shadow-lg: 0 18px 48px rgba(0, 0, 0, .28)}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{background:var(--surface);color:var(--ink);font-family:var(--font-body);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}button,input{font:inherit}a{color:inherit}::selection{background:#a943322e}.app-provider{min-height:100vh;background:var(--surface);color:var(--ink)}.app-frame{display:flex;flex-direction:column;min-height:100vh}.topbar{height:66px;position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,3.2vw,48px);background:color-mix(in srgb,var(--surface-raised) 94%,transparent);border-bottom:1px solid var(--border);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.brand-lockup{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-weight:700;font-size:16px;letter-spacing:-.035em}.brand-lockup:hover{text-decoration:none}.brand-mark{width:31px;height:31px;display:grid;place-items:center;border-radius:10px;color:#fff;background:var(--primary);font-family:var(--font-heading);font-size:22px;line-height:1;box-shadow:0 3px 8px #a943322e}.brand-mark span{color:#e8be79}.brand-light{font-weight:500}.topbar-right{display:flex;align-items:center;gap:17px}.topbar-right .fui-Badge{font-size:12px}.privacy-chip{display:inline-flex;gap:6px;align-items:center;color:var(--muted);font-size:12px}.privacy-chip svg{width:16px;height:16px;color:var(--sage)}.workspace{display:flex;flex:1;min-height:0;width:min(100%,1680px);margin:0 auto}.sidebar{width:248px;flex:0 0 248px;display:flex;flex-direction:column;gap:5px;padding:28px 17px 20px;background:var(--surface-soft);border-right:1px solid var(--border)}.nav-caption{padding:4px 11px 8px;color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.12em}.nav-caption--spaced{margin-top:31px}.side-link{min-height:42px;padding:0 10px;display:flex;align-items:center;gap:11px;border-radius:8px;color:var(--muted);text-decoration:none;font-size:13px;font-weight:500;transition:color .15s ease,background .15s ease,transform .15s ease}.side-link>svg:first-child{width:19px;height:19px}.side-link:hover{background:color-mix(in srgb,var(--primary) 7%,transparent);color:var(--ink);text-decoration:none}.side-link--active{color:var(--primary);background:color-mix(in srgb,var(--primary) 10%,transparent);font-weight:700}.side-link--active:hover{color:var(--primary);background:color-mix(in srgb,var(--primary) 13%,transparent)}.side-link-arrow{margin-left:auto;opacity:0;transition:opacity .15s ease}.side-link--active .side-link-arrow,.side-link:hover .side-link-arrow{opacity:.8}.sidebar-info{padding:15px 14px 13px;gap:8px;border:1px solid var(--border);border-radius:10px;background:var(--surface-raised);box-shadow:var(--shadow-sm)}.sidebar-info-icon{color:var(--primary)}.sidebar-info-icon svg{width:19px;height:19px}.sidebar-info h3{margin:0;color:var(--ink);font-size:13px;font-weight:700}.sidebar-info p{margin:0;color:var(--muted);font-size:12px;line-height:1.65}.sidebar-info-foot{padding-top:7px;color:var(--primary);border-top:1px solid var(--border);font-size:11px;font-weight:600}.privacy-info .sidebar-info-icon{color:var(--sage)}.sidebar-bottom{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:auto;padding:13px 5px 0;border-top:1px solid var(--border);color:var(--muted);font-size:11px}.sidebar-bottom .fui-Button{width:100%;justify-content:flex-start;margin-top:5px;padding-left:0;color:var(--muted)}.status-dot{width:7px;height:7px;border-radius:50%;background:#779574;box-shadow:0 0 0 3px #77957424}.sidebar-collection-note{display:flex;gap:10px;align-items:flex-start;margin-top:35px;padding:13px;border-radius:9px;background:var(--surface-raised);color:var(--muted);font-size:12px;line-height:1.6}.sidebar-collection-note svg{flex:0 0 19px;color:var(--primary)}.sidebar-collection-note p{margin:0}.main-content{flex:1;min-width:0;display:flex;flex-direction:column;gap:18px;padding:28px clamp(18px,3vw,44px) 40px}.eyebrow{display:block;color:var(--muted);font-size:9px;font-weight:700;letter-spacing:.13em;line-height:1.6}.editor-title-row{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}.editor-title-copy h1,.page-intro h1{margin:3px 0 4px;color:var(--ink);font-family:var(--font-heading);font-size:clamp(26px,3vw,34px);font-weight:400;letter-spacing:-.025em;line-height:1.15}.editor-title-copy p,.page-intro p{margin:0;color:var(--muted);font-size:13px}.local-note{display:flex;align-items:center;gap:7px;padding-bottom:3px;color:var(--sage);font-size:11px;white-space:nowrap}.local-note svg{width:17px;height:17px}.set-tabs{display:flex;align-items:center;overflow:auto hidden;gap:2px;min-height:44px;border-bottom:1px solid var(--border);scrollbar-width:thin}.set-tab{display:inline-flex;flex:0 0 auto;gap:9px;height:43px;padding:0 14px;border-radius:0;border-bottom:2px solid transparent;color:var(--muted);font-size:12px;font-weight:600}.set-tab--active{border-bottom-color:var(--primary);color:var(--primary)}.set-tab .fui-Badge{font-size:10px}.editor-columns{display:grid;grid-template-columns:minmax(295px,.87fr) minmax(410px,1.13fr);gap:clamp(18px,2.2vw,30px);align-items:start}.card-list-panel{min-width:0}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:12px}.section-heading h2,.sheet-preview-heading h2{margin:2px 0 0;color:var(--ink);font-family:var(--font-heading);font-size:20px;font-weight:400;letter-spacing:-.02em}.section-hint{padding-bottom:3px;color:var(--muted);font-size:11px}.editor-section-heading{margin:2px 0 12px}.card-slot-list{display:flex;flex-direction:column;gap:7px}.slot-card.fui-Card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px;min-width:0;padding:8px 9px 8px 10px;border:1px solid var(--border);border-radius:9px;background:var(--surface-raised);box-shadow:var(--shadow-sm);transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}.slot-card:hover{border-color:color-mix(in srgb,var(--primary) 40%,var(--border));box-shadow:var(--shadow-md);transform:translateY(-1px)}.slot-card--selected.fui-Card{border-color:color-mix(in srgb,var(--primary) 62%,var(--border));box-shadow:0 0 0 2px color-mix(in srgb,var(--primary) 12%,transparent),var(--shadow-sm)}.slot-card-main{min-width:0;display:flex;align-items:center;gap:10px;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.slot-number{min-width:20px;color:#a59a89;font-family:var(--font-heading);font-size:14px}.slot-thumb{width:43px;height:43px;flex:0 0 43px;display:grid;place-items:center;overflow:hidden;border-radius:7px;background:var(--surface-warm);color:var(--primary)}.slot-thumb svg{width:19px;height:19px}.slot-thumb img{width:100%;height:100%;object-fit:cover}.slot-text{min-width:0;display:flex;flex-direction:column;gap:2px}.slot-name{overflow:hidden;color:var(--ink);font-size:12px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.slot-file{overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.slot-card-main .fui-Badge{flex:0 0 auto;font-size:9px}.slot-card-actions{display:flex;align-items:center;gap:0}.slot-card-actions .fui-Button{min-width:28px;padding:0 5px;color:var(--muted);font-size:10px}.slot-card-actions .fui-Button svg{width:16px;height:16px}.upload-area{display:flex;flex-direction:column;align-items:center;gap:7px;margin-top:13px;padding:16px 12px 12px;border:1px dashed color-mix(in srgb,var(--primary) 38%,var(--border));border-radius:9px;background:color-mix(in srgb,var(--primary) 3%,var(--surface-raised));text-align:center}.upload-area>span{color:var(--muted);font-size:10px}.upload-area small{max-width:32ch;color:var(--muted);font-size:10px}.upload-area .fui-Button{min-height:35px;font-size:12px}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%)}.sheet-panel{min-width:0}.preview-card.fui-Card{border:1px solid var(--border);border-radius:12px;background:var(--surface-raised);box-shadow:var(--shadow-sm)}.sheet-preview-card.fui-Card{padding:clamp(12px,1.7vw,20px)}.sheet-preview-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:13px}.sheet-preview-heading .fui-Badge{font-size:10px;white-space:nowrap}.paper-frame{display:flex;justify-content:center;padding:10px;border:1px solid var(--border);border-radius:8px;background:var(--surface-soft)}.paper-svg{display:block;width:min(100%,470px);height:auto;overflow:visible;filter:drop-shadow(0 3px 5px rgba(39,33,24,.12))}.paper-fill{fill:var(--surface-raised);stroke:var(--border);stroke-width:1.2}.dimension-line{stroke:var(--accent);stroke-width:1}.dimension-line marker path{stroke:var(--accent)}.dimension-label{fill:var(--muted);font-size:4px;text-anchor:middle;font-family:var(--font-body)}.paper-slot{cursor:pointer;outline:none}.paper-slot-fill{fill:var(--surface-soft)}.paper-slot-ring{fill:none;stroke:color-mix(in srgb,var(--muted) 55%,var(--border));stroke-width:.8;transition:stroke .14s ease,stroke-width .14s ease}.paper-slot:hover .paper-slot-ring,.paper-slot:focus-visible .paper-slot-ring{stroke:var(--primary);stroke-width:1.7}.paper-slot--selected .paper-slot-ring{stroke:var(--accent);stroke-width:1.6}.paper-slot-image{pointer-events:none}.paper-slot-empty{fill:none;stroke:var(--muted);stroke-width:.9;stroke-linecap:round}.paper-slot-empty text{fill:var(--muted);stroke:none;font-size:3.6px;text-anchor:middle;font-family:var(--font-body)}.paper-slot-caption rect{fill:#1916139e}.paper-slot-caption text{fill:#fff;font-size:4px;font-weight:600;text-anchor:middle;font-family:var(--font-body)}.preview-footer-meta{display:flex;justify-content:space-between;gap:12px;padding-top:10px;color:var(--muted);font-size:10px}.preview-footer-meta>span:first-child{display:inline-flex;align-items:center;gap:6px}.dimension-swatch{display:inline-block;width:8px;height:8px;border:1px solid var(--accent);border-radius:50%}.print-settings{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px;padding:11px 12px;border:1px solid var(--border);border-radius:9px;background:var(--surface-raised)}.print-settings span{display:flex;flex-direction:column;gap:2px;color:var(--ink);font-size:11px}.print-settings strong{color:var(--muted);font-size:9px;font-weight:500}.selected-hint{margin-top:9px;padding:9px 11px;border-radius:7px;background:color-mix(in srgb,var(--accent) 15%,var(--surface-raised));color:var(--muted);font-size:10px}.selected-hint strong{color:var(--ink)}.export-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:11px;padding-top:11px;border-top:1px solid var(--border);color:var(--muted);font-size:11px}.export-bar strong{color:var(--ink)}.export-bar .fui-Button{min-height:37px;font-size:12px}.print-hint{margin:8px 0 0;color:var(--muted);font-size:10px;line-height:1.55}.dev-state-switch{display:flex;flex-wrap:wrap;align-items:center;gap:6px;align-self:flex-end;padding:5px 7px;border:1px dashed var(--border);border-radius:8px;color:var(--muted);font-size:10px}.dev-state-switch .fui-Button{min-height:24px;padding:0 7px;font-size:10px}.state-card.fui-Card{display:grid;min-height:230px;place-items:center;border:1px solid var(--border);background:var(--surface-raised)}.state-message{align-self:stretch}.empty-card.fui-Card{display:flex;align-items:center;gap:12px;padding:35px;text-align:center;border:1px solid var(--border);background:var(--surface-raised)}.empty-card h2{margin:0;font-family:var(--font-heading);font-size:23px;font-weight:400}.empty-card p{max-width:50ch;margin:0;color:var(--muted)}.empty-card-icon{display:grid;width:52px;height:52px;place-items:center;border-radius:50%;background:color-mix(in srgb,var(--primary) 11%,transparent);color:var(--primary)}.empty-card-icon svg{width:25px;height:25px}.app-footer{display:flex;justify-content:space-between;gap:20px;padding:14px clamp(18px,3.2vw,48px);border-top:1px solid var(--border);color:var(--muted);font-size:10px}.footer-separator{padding:0 4px;color:#b5aa98}.footer-check{padding-right:3px;color:var(--sage);font-weight:700}.page-intro{margin:2px 0 4px}.page-intro h1{margin-top:4px}.collection-section{display:flex;flex-direction:column;gap:14px}.collection-section .section-heading{margin-top:4px}.collection-section .section-heading h2{margin:2px 0 0;font-family:var(--font-heading);font-size:20px;font-weight:400}.collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.collection-card.fui-Card{padding:0;overflow:hidden;border:1px solid var(--border);border-radius:11px;background:var(--surface-raised);box-shadow:var(--shadow-sm);transition:transform .17s ease,box-shadow .17s ease,border-color .17s ease}.collection-card:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--primary) 35%,var(--border));box-shadow:var(--shadow-md)}.collection-card-open{display:block;width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.collection-art{position:relative;display:flex;align-items:center;justify-content:center;height:164px;overflow:hidden;background:#e7e2d5}.collection-art--0{background:linear-gradient(130deg,#dfe7d7,#f1e7d2)}.collection-art--1{background:linear-gradient(130deg,#252f4b,#686181)}.collection-art--2{background:linear-gradient(130deg,#f0dfc7,#eac1a0)}.collection-art-image{position:absolute;width:57%;height:90%;object-fit:cover;border:4px solid var(--surface-raised);border-radius:100px;box-shadow:0 8px 22px #201b1538}.collection-art-image--0{transform:translate(-45%,8%) rotate(-12deg)}.collection-art-image--1{z-index:1;height:100%;width:61%}.collection-art-image--2{transform:translate(45%,8%) rotate(12deg)}.collection-art--1 .collection-art-image{border-color:#3a4155}.collection-art-placeholder{position:absolute;display:grid;width:76px;height:76px;place-items:center;border:4px solid var(--surface-raised);border-radius:50%;background:var(--surface-soft);color:var(--primary);font-family:var(--font-heading);font-size:22px;box-shadow:var(--shadow-md)}.collection-art-placeholder--0{transform:translate(-50%,10%) rotate(-12deg)}.collection-art-placeholder--2{transform:translate(50%,10%) rotate(12deg)}.collection-art-count{position:absolute;right:10px;bottom:10px;z-index:2;display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border:1px solid rgba(255,255,255,.44);border-radius:999px;background:#231f1a99;color:#fff;font-size:10px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.collection-art-count svg{width:14px;height:14px}.collection-card-content{padding:14px 15px 13px}.collection-title-line{display:flex;align-items:center;justify-content:space-between;gap:8px}.collection-title-line h3{overflow:hidden;margin:0;color:var(--ink);font-family:var(--font-heading);font-size:18px;font-weight:400;text-overflow:ellipsis;white-space:nowrap}.collection-title-line svg{flex:0 0 auto;width:17px;height:17px;color:var(--primary);opacity:0;transform:translate(-3px);transition:opacity .14s ease,transform .14s ease}.collection-card:hover .collection-title-line svg{opacity:1;transform:translate(0)}.collection-card-content>p{margin:5px 0 11px;color:var(--muted);font-size:11px}.collection-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:10px;border-top:1px solid var(--border);color:var(--muted);font-size:10px}.collection-meta .fui-Badge{font-size:9px}.finish-card.fui-Card{display:flex;flex-direction:row;align-items:center;gap:15px;padding:18px 20px;border:1px solid color-mix(in srgb,var(--accent) 42%,var(--border));border-radius:11px;background:color-mix(in srgb,var(--accent) 8%,var(--surface-raised))}.finish-icon{display:grid;flex:0 0 43px;width:43px;height:43px;place-items:center;border-radius:50%;background:color-mix(in srgb,var(--accent) 23%,transparent);color:#8d672a}html[data-theme=dark] .finish-icon{color:#e4c078}.finish-icon svg{width:21px;height:21px}.finish-copy{flex:1;min-width:0}.finish-copy h2{margin:1px 0 3px;font-family:var(--font-heading);font-size:19px;font-weight:400}.finish-copy p{margin:0;color:var(--muted);font-size:11px}.finish-card .fui-Button{flex:0 0 auto;font-size:11px}@media(max-width:1100px){.sidebar{width:215px;flex-basis:215px}.editor-columns{grid-template-columns:minmax(270px,.9fr) minmax(350px,1.1fr);gap:17px}.slot-card.fui-Card{grid-template-columns:minmax(0,1fr)}.slot-card-actions{justify-content:flex-end}}@media(max-width:850px){.sidebar{width:66px;flex-basis:66px;padding:20px 9px;align-items:center}.nav-caption,.side-link span,.side-link-arrow,.sidebar-info,.sidebar-bottom,.sidebar-collection-note{display:none}.side-link{width:44px;height:44px;min-height:44px;justify-content:center;padding:0}.side-link>svg:first-child{width:21px;height:21px}.main-content{padding:22px 18px 30px}.editor-columns{grid-template-columns:1fr}.sheet-panel{order:-1}.paper-svg{width:min(100%,380px)}.slot-card.fui-Card{grid-template-columns:minmax(0,1fr) auto}.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.topbar{height:58px;padding-inline:14px}.topbar-right{gap:7px}.topbar-right>.fui-Badge{display:none}.privacy-chip{font-size:0}.privacy-chip svg{width:19px;height:19px}.sidebar{width:52px;flex-basis:52px;padding-inline:4px}.side-link{width:40px;height:40px;min-height:40px}.main-content{padding:19px 13px 26px;gap:14px}.editor-title-row{align-items:flex-start;flex-direction:column;gap:8px}.editor-title-copy h1,.page-intro h1{font-size:28px}.local-note{font-size:10px}.set-tab{padding-inline:10px;font-size:11px}.sheet-preview-card.fui-Card{padding:11px}.sheet-preview-heading{align-items:flex-start}.sheet-preview-heading h2{font-size:18px}.sheet-preview-heading .fui-Badge{font-size:9px}.paper-frame{padding:6px}.paper-svg{width:100%}.preview-footer-meta{font-size:9px}.slot-card.fui-Card{padding:7px}.slot-number{min-width:17px;font-size:12px}.slot-thumb{width:37px;height:37px;flex-basis:37px}.slot-card-main{gap:7px}.slot-card-main .fui-Badge{display:none}.slot-card-actions .fui-Button{min-width:24px;padding-inline:3px}.slot-card-actions .fui-Button:first-child:not(:last-child){font-size:0}.slot-card-actions .fui-Button:first-child:not(:last-child) svg{width:15px}.print-settings{gap:5px;padding:9px 7px}.print-settings span{font-size:10px}.export-bar{align-items:flex-start}.export-bar .fui-Button{padding-inline:10px;font-size:11px}.collection-grid{grid-template-columns:1fr}.collection-art{height:155px}.finish-card.fui-Card{flex-wrap:wrap;align-items:flex-start;padding:14px}.finish-icon{width:36px;height:36px;flex-basis:36px}.finish-copy{flex-basis:calc(100% - 55px)}.finish-card .fui-Button{width:100%;justify-content:center}.app-footer{flex-direction:column;gap:4px;padding:12px 14px}.dev-state-switch{align-self:stretch}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
