:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#202a3d;background:#eef0f4;font-synthesis:none;--ink:#151c2c;--blue:#315aff;--line:#e3e7ee;--muted:#8b92a0;--light:#f6f7fa;--radius:10px;--sheet-ratio:1.4}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait}svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px;flex-shrink:0}a{color:inherit;text-decoration:none}h1,h2,p{margin:0}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #9aaffe;outline-offset:3px}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.boot{height:100dvh;display:grid;place-items:center}.spinner{width:17px;height:17px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;display:inline-block;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.login-screen{min-height:100dvh;display:grid;place-items:center;background:#151c2c;background-image:radial-gradient(ellipse at 50% 0%,#2b3a60,transparent 65%);padding:24px}.login-card{background:white;border-radius:22px;width:min(100%,360px);padding:36px;box-shadow:0 20px 90px #050a1855;display:flex;flex-direction:column;gap:18px}.login-card h1{font-family:inherit;font-size:25px;letter-spacing:-1px;font-weight:600;margin:4px 0 12px}.login-card .brand-mark{align-self:flex-start}.login-card .primary{justify-content:space-between}.login-card input{height:48px}
.topbar{height:72px;background:var(--ink);color:white;display:flex;align-items:center;justify-content:space-between;padding:0 30px;gap:20px}.brand{display:flex;align-items:center;gap:11px;font-family:inherit;font-weight:500;letter-spacing:-.55px;font-size:21px;white-space:nowrap}.brand-mark{display:grid;place-items:center;background:var(--blue);width:35px;height:35px;border-radius:10px;color:white}.brand-mark svg{width:25px;height:25px;stroke-width:1.6}.brand-mark.large{height:48px;width:48px;border-radius:14px}.brand-mark.large svg{height:33px;width:33px}.beta{font-family:inherit;letter-spacing:1.3px;font-size:9px;border:1px solid #42495b;border-radius:4px;padding:4px 5px;color:#a4acbd;margin-left:4px;font-weight:600}.header-actions{display:flex;align-items:center;gap:18px}.header-button{display:flex;align-items:center;gap:8px;border:0;color:#d7dceb;background:transparent;font-size:13px;font-weight:500;padding:8px}.header-button:hover{color:white}.header-button svg{width:18px;height:18px}.icon-button{width:31px;height:31px;border:0;border-radius:7px;background:transparent;display:grid;place-items:center;color:#737d90;flex-shrink:0}.icon-button:hover{color:var(--ink);background:#eff1f6}.icon-button svg{height:17px;width:17px}.on-dark{color:#9fa8bd}.on-dark:hover{color:white;background:#ffffff12}
.workspace{display:grid;grid-template-columns:268px minmax(0,1fr) 176px;min-height:calc(100dvh - 72px)}.controls{background:#fff;border-right:1px solid var(--line);padding:22px 23px 16px;display:flex;flex-direction:column}.panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:10px}.panel-heading h1{font-family:inherit;font-size:22px;font-weight:500;letter-spacing:-.7px}.small-label{font-size:9px;letter-spacing:1.25px;font-weight:600;color:#9299a7;white-space:nowrap}.field{min-width:0;margin-bottom:14px}label{display:block;font-size:14px;font-weight:550;margin-bottom:7px;color:#48536a}textarea,input:not([type=file]),select{display:block;width:100%;border:1px solid #dfe3eb;background:#fafbfd;color:var(--ink);border-radius:8px;padding:11px 12px;transition:border-color .15s,box-shadow .15s}textarea{resize:vertical;min-height:100px;line-height:1.55;font-size:13px}textarea::placeholder,input::placeholder{color:#a4aaba}textarea:hover,input:not([type=file]):hover,select:hover{border-color:#b8c0d0}textarea:focus,input:not([type=file]):focus,select:focus{border-color:#849cff;box-shadow:0 0 0 3px #315aff0b;outline:none}.theme-field{margin-bottom:16px}.theme-field textarea{min-height:78px;height:92px}.reference-field{position:relative;margin-bottom:16px}.upload-zone{border:1px dashed #ccd2df;border-radius:9px;position:relative;background:#fafbfd;transition:background .15s,border-color .15s;overflow:hidden}.upload-zone:hover,.upload-zone.drag-over{background:#f0f3ff;border-color:#879dff}.upload-zone input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;z-index:2}.upload-zone:focus-within{outline:3px solid #9aaffe;outline-offset:3px}.upload-empty{min-height:65px;display:flex;align-items:center;padding:14px 12px;gap:10px;color:#8590a6;font-size:13px}.upload-empty>svg{height:22px;width:22px;stroke-width:1.5}.upload-empty>span:first-of-type{color:#556078}.file-types{display:block;font-size:9px;letter-spacing:.5px;color:#a1a8b7;margin-top:4px}.upload-plus{margin-left:auto;font-size:20px;font-weight:400;color:#929bb0}.upload-preview{display:flex;align-items:center;gap:10px;min-height:69px;padding:9px}.upload-preview img{width:48px;height:48px;object-fit:contain;border-radius:5px;background:#fff}.upload-preview span{font-size:11px;color:#6a7488;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.remove-reference{position:absolute;right:0;top:-2px;border:0;background:transparent;color:#8a91a1;font-size:13px;padding:2px}.remove-reference:hover{color:var(--blue)}
.segmented{display:flex;align-items:center;gap:3px;background:#edf0f5;padding:3px;border-radius:8px}.segmented button{display:flex;align-items:center;justify-content:center;gap:6px;flex:1;background:transparent;border:0;border-radius:6px;color:#7c8596;line-height:1;padding:9px 6px;font-size:13px;font-weight:550;white-space:nowrap;transition:color .15s,background .15s,box-shadow .15s}.segmented button.selected{color:#28344c;background:#fff;box-shadow:0 1px 4px #14244a12}.segmented button:hover{color:#233654}.segmented svg{height:15px;width:15px;stroke-width:1.35}.mode-control{margin-bottom:18px}.configuration{padding-top:18px;border-top:1px solid var(--line)}select{appearance:none;cursor:pointer;font-size:13px;padding:11px 29px 11px 11px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='m3 4.5 3 3 3-3' stroke='%23919aad' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}.field-row{display:grid;grid-template-columns:1fr 86px;gap:10px}.button{display:flex;align-items:center;justify-content:center;gap:9px;border-radius:8px;font-size:13px;font-weight:550;min-height:43px;padding:11px 15px;border:1px solid transparent;transition:background .15s,box-shadow .15s,transform .15s}.button:hover{transform:translateY(-1px)}.button:active{transform:translateY(0)}.primary{background:var(--blue);color:white;box-shadow:0 3px 7px #315aff18}.primary:hover{background:#254ee9;box-shadow:0 4px 12px #315aff2a}.primary:disabled{opacity:.6;transform:none;box-shadow:none}.primary svg{width:18px;height:18px}.generate{width:100%;margin-top:4px;justify-content:flex-start;height:44px;font-size:14px}.button-arrow{margin-left:auto;font-size:19px;font-weight:400}.controls-footer{margin-top:auto;padding-top:16px;display:flex;align-items:center;gap:7px;color:#9aa2b1;font-size:10px}.status-dot{width:5px;height:5px;border-radius:50%;background:#57b296;display:inline-block;flex-shrink:0}.status-dot.muted{background:#abb3c2}.status-dot.busy{background:var(--blue);animation:pulse 1.5s ease-in-out infinite}.status-dot.failed{background:#d86c6c}@keyframes pulse{50%{opacity:.4}}.error{font-size:12px;color:#bd4252;line-height:1.5;margin-top:12px;overflow-wrap:anywhere}
.canvas-area{position:relative;display:flex;flex-direction:column;min-width:0;background-color:#eef0f4;background-image:radial-gradient(#cbd1dc 0.65px,transparent .65px);background-size:13px 13px;padding:27px 34px 22px}.canvas-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px}.sheet-heading{min-width:0}.sheet-heading .small-label{display:block;margin-bottom:6px}.sheet-heading h2{font-family:inherit;font-weight:500;letter-spacing:-.5px;font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:310px}.view-control{border:1px solid #dce1ea;background:#e4e8ef;padding:3px;flex-shrink:0}.view-control button{font-size:13px;padding:8px 12px}.canvas-stage{flex:1;display:flex;align-items:center;justify-content:center;padding:35px 28px 28px;min-height:450px}.sheet-surround{position:relative;width:min(100%,680px,calc((100dvh - 245px)*var(--sheet-ratio)))}.sheet-paper{position:relative;width:100%;aspect-ratio:7/5;overflow:hidden;background:#fff;border-radius:2px;box-shadow:0 2px 4px #2638540a,0 15px 45px -17px #23335350,0 0 0 1px #28375208;transition:aspect-ratio .25s}.sheet-paper>img{width:100%;height:100%;object-fit:contain;display:block}.sheet-paper.is-working>img{opacity:.42}.dimension{position:absolute;font-size:9px;letter-spacing:.4px;color:#919bab;pointer-events:none}.dimension-top{top:-18px;left:50%;transform:translateX(-50%)}.dimension-side{right:-24px;top:50%;transform:translateY(-50%) rotate(90deg)}.empty-sheet{display:grid;place-items:center;height:100%;color:#e7ebf2}.empty-sheet svg{height:70px;width:70px;stroke-width:1}.working-overlay{position:absolute;inset:0;display:grid;place-items:center;background:#ffffff66}.working-pill{display:flex;align-items:center;gap:10px;background:#fff;box-shadow:0 4px 30px #2435521a;border:1px solid #e3e7f0;border-radius:30px;padding:13px 17px;color:#425473;font-size:11px;font-weight:500}.working-pill .spinner{color:var(--blue);height:14px;width:14px}.canvas-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px}.sheet-status{display:flex;align-items:center;gap:7px;font-size:10px;color:#828d9f;min-width:0;flex-wrap:wrap}.cost{border-left:1px solid #cfd5df;margin-left:3px;padding-left:10px;color:#a0a8b5;font-variant-numeric:tabular-nums}.export-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}.secondary{background:#ffffffd9;color:#5b6780;border-color:#dce1ea;box-shadow:0 1px 3px #14243a05}.secondary:hover{background:#fff;border-color:#bdc7da}.compact{min-height:36px;font-size:13px;padding:8px 11px;gap:6px;border-radius:7px}.compact svg{height:14px;width:14px;stroke-width:1.5}.disabled{opacity:.38;pointer-events:none}.canvas-error{background:#fff7f8;padding:10px 12px;border:1px solid #f0d2d7;border-radius:7px;font-size:11px;margin-top:13px}
.sticker-panel{background:#fafbfd;border-left:1px solid var(--line);padding:29px 16px 20px;min-width:0}.sticker-panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.sticker-panel h2{font-size:14px;font-weight:600;color:#495671}.count-badge{height:20px;min-width:20px;padding:3px 5px;font-size:10px;color:#929bb0;border-radius:5px;background:#eef1f6;text-align:center}.sticker-list{display:flex;flex-direction:column;gap:13px}.sticker-card{border-radius:9px;border:1px solid #e1e6ef;overflow:hidden;background:white;position:relative;transition:border-color .15s,box-shadow .15s}.sticker-card:hover{border-color:#bdc9eb;box-shadow:0 4px 15px #3047790a}.sticker-image-button{display:block;width:100%;padding:8px;background-color:white;background-image:linear-gradient(45deg,#f3f5f9 25%,transparent 25%),linear-gradient(-45deg,#f3f5f9 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#f3f5f9 75%),linear-gradient(-45deg,transparent 75%,#f3f5f9 75%);background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0;border:0;aspect-ratio:1.13}.sticker-image-button img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 3px #26365112)}.sticker-image-button:disabled{cursor:default}.sticker-card-footer{display:flex;align-items:center;padding:4px 5px 4px 9px;gap:3px;border-top:1px solid #eef0f6}.sticker-card-title{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#8a94a8;font-size:10px;font-weight:500}.sticker-card .icon-button{width:25px;height:25px;color:#929db0}.sticker-card .icon-button svg{height:13px;width:13px}.sticker-card .icon-button:hover{color:var(--blue);background:#f0f3ff}.sticker-card .delete-button:hover{color:#ce5d6a;background:#fff1f3}.icon-button:disabled{opacity:.3;cursor:default}.sticker-empty{display:flex;flex-direction:column;gap:13px}.sticker-empty div{aspect-ratio:1.1;border:1px dashed #e0e5ef;border-radius:9px;background:#f7f9fc}
dialog{color:var(--ink);border:1px solid #dce2ee;background:#fff;box-shadow:0 25px 90px #0d173744;border-radius:18px;padding:23px;width:min(calc(100% - 32px),470px);max-height:calc(100dvh - 50px)}dialog::backdrop{background:#121b3866;backdrop-filter:blur(4px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px}.dialog-heading h2{font-family:inherit;font-weight:500;font-size:22px;letter-spacing:-.5px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.history-item{background:#f6f8fc;border:1px solid #e4e9f2;border-radius:10px;padding:10px;text-align:left;min-width:0}.history-item:hover{border-color:#99afff}.history-thumb{aspect-ratio:5/4;background:#e9edf5;display:flex;align-items:center;justify-content:center;border-radius:5px;overflow:hidden;margin-bottom:10px;padding:9px}.history-thumb img{height:100%;width:100%;object-fit:contain;filter:drop-shadow(0 2px 3px #22325412)}.history-title{font-size:12px;color:#55607a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500;display:block}.history-meta{display:block;font-size:10px;color:#9ca4b3;margin-top:4px}.history-empty{grid-column:1/-1;text-align:center;font-size:12px;color:#9aa3b5;padding:40px 0}.edit-preview-wrap{height:180px;background:#f5f7fb;border-radius:9px;display:flex;align-items:center;justify-content:center;padding:15px;margin-bottom:19px}.edit-preview-wrap img{max-width:100%;max-height:100%;object-fit:contain}.edit-dialog textarea{margin-bottom:18px}.edit-dialog .primary{width:100%}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);color:#fff;background:#25334c;box-shadow:0 8px 35px #15203530;font-size:12px;padding:13px 20px;border-radius:10px;max-width:calc(100% - 32px);z-index:10}
@media(min-width:1450px){.workspace{grid-template-columns:292px minmax(0,1fr) 205px}.controls{padding-left:29px;padding-right:29px}.canvas-area{padding-left:48px;padding-right:48px}.sticker-panel{padding-left:23px;padding-right:23px}.sticker-image-button{aspect-ratio:1.25}}

@media(min-width:1000px) and (max-height:800px){.canvas-stage{min-height:0;padding-top:24px;padding-bottom:16px}.sticker-list{max-height:calc(100dvh - 168px);overflow-y:auto;padding-bottom:3px;scrollbar-width:thin;scrollbar-color:#dbe1ed transparent}.sticker-panel-heading{margin-bottom:15px}}
@media(max-width:1100px){.workspace{grid-template-columns:248px minmax(0,1fr) 145px}.controls{padding-left:19px;padding-right:19px}.canvas-area{padding-left:23px;padding-right:23px}.sticker-panel{padding-left:12px;padding-right:12px}.sheet-heading h2{max-width:220px;font-size:16px}.sticker-card-footer{padding-left:6px}.sticker-card .icon-button{width:22px}.sticker-card-title{font-size:9px}}
@media(max-width:900px){.workspace{grid-template-columns:235px minmax(0,1fr)}.sticker-panel{grid-column:2;border-top:1px solid var(--line);border-left:0;padding:17px 23px}.controls{grid-row:1/3}.sticker-panel-heading{margin-bottom:13px}.sticker-list{flex-direction:row;overflow-x:auto;max-height:none;padding-bottom:4px;gap:10px}.sticker-card{flex:0 0 115px}.sticker-empty{flex-direction:row}.sticker-empty div{width:95px;flex-shrink:0}.canvas-stage{padding:35px 19px 25px;min-height:400px}.sheet-surround{width:min(100%,680px,calc(440px*var(--sheet-ratio)))}.canvas-toolbar{align-items:flex-start}.canvas-area{padding:24px 23px 18px}.sheet-heading h2{max-width:170px}.view-control button{padding:8px}.sheet-status{font-size:9px;gap:5px}.cost{padding-left:6px;margin-left:1px}.canvas-footer{gap:8px}.compact{padding:7px 8px}}
@media(max-width:650px){.topbar{height:62px;padding:0 18px}.brand{font-size:18px;gap:9px}.brand-mark{height:30px;width:30px;border-radius:9px}.brand-mark svg{height:22px;width:22px}.beta{font-size:8px;letter-spacing:1px;margin-left:1px}.header-actions{gap:9px}.header-button{padding:5px}.header-button span{display:none}.workspace{display:flex;flex-direction:column;min-height:calc(100dvh - 62px)}.controls{padding:22px 21px 20px;border-right:0;border-bottom:1px solid var(--line)}.panel-heading{margin-bottom:18px}.panel-heading h1{font-size:20px}.controls form{display:grid;grid-template-columns:1fr 1fr;column-gap:14px;align-items:start}.panel-heading{grid-column:1/-1}.theme-field{grid-column:1/-1;margin-bottom:17px}.theme-field textarea{min-height:90px;max-height:220px;resize:vertical}.reference-field{margin-bottom:0}.upload-empty{min-height:65px;padding:10px;gap:8px}.upload-empty>svg{width:19px;height:19px}.upload-plus{display:none}.upload-preview{min-height:65px}.mode-control{margin:24px 0 0;min-height:67px;padding:4px}.mode-control button{height:57px;flex-direction:column;gap:7px;font-size:13px;padding:8px 6px}.configuration{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:14px;padding-top:0;border:0;margin-top:20px}.configuration>.field{margin-bottom:0}.field-row{grid-template-columns:1fr 65px;gap:8px}.field-row .field{margin-bottom:0}.generate{grid-column:1/-1;margin-top:19px}.controls-footer{display:none}.controls .error{grid-column:1/-1}.canvas-area{padding:24px 21px 18px;min-height:610px}.canvas-stage{min-height:450px;padding:30px 24px 25px}.sheet-surround{width:min(100%,680px,calc(440px*var(--sheet-ratio)))}.sheet-heading h2{max-width:210px;font-size:17px}.view-control button{padding:9px 11px}.canvas-footer{min-height:37px}.sheet-status{font-size:10px;max-width:190px}.compact{font-size:13px;padding:8px 11px}.sticker-panel{padding:20px 21px 24px}.sticker-panel-heading h2{font-size:13px}.sticker-card{flex-basis:126px}.sticker-card-title{font-size:10px}.sticker-card .icon-button{width:25px}.sticker-card-footer{padding-left:9px}.sticker-empty div{width:115px}.sticker-list{gap:12px}dialog{padding:20px}.login-card{padding:30px}.login-card h1{font-size:24px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition:none!important}}
.retry-button{display:flex;align-items:center;gap:5px;border:1px solid #bfcaf0;border-radius:5px;padding:3px 7px;background:#ffffffb3;color:var(--blue);font-size:13px;font-weight:550;margin-left:2px}.retry-button:hover{background:white;border-color:#8ca4f1}.retry-button:disabled{opacity:.5}
.upload-options{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin-top:12px}.upload-options.has-subject{grid-template-columns:minmax(0,1fr)}.upload-options>div{min-width:0}.upload-options label{font-size:14px;margin-bottom:6px}.upload-options select,.upload-options input{font-size:13px;min-height:38px;padding-top:9px;padding-bottom:9px}.field-help{font-size:11px;line-height:1.4;color:#8791a4;margin:6px 2px 0}.upload-spinner{width:48px;height:48px;flex:0 0 48px;display:grid;place-items:center;color:var(--blue);background:#f2f5fd;border-radius:5px}.upload-preview>img{flex:0 0 48px}.upload-preview>#reference-name{min-width:0}.upload-spinner .spinner{width:17px;height:17px}
@media(min-width:651px) and (max-height:800px){.controls.has-upload{padding-top:18px;padding-bottom:12px}.has-upload .panel-heading{margin-bottom:12px}.has-upload .theme-field{margin-bottom:12px}.has-upload .theme-field textarea{height:78px}.has-upload .reference-field{margin-bottom:12px}.has-upload .mode-control{margin-bottom:12px}.has-upload .configuration{padding-top:12px}.has-upload .configuration .field{margin-bottom:10px}.has-upload .controls-footer{padding-top:10px}}
@media(max-width:650px){.reference-field:has(.upload-options:not([hidden])){grid-column:1/-1}.reference-field:has(.upload-options:not([hidden]))+.mode-control{grid-column:1/-1;margin-top:14px;min-height:37px}.reference-field:has(.upload-options:not([hidden]))+.mode-control button{height:auto;min-height:31px;flex-direction:row}}
.sheet-options{grid-column:1/-1}.style-tiles{display:flex;gap:9px}.style-tile{flex:1;min-width:0;height:77px;border:1px solid #dce6f1;border-radius:8px;background:#f6f9fc;padding:7px;transition:border-color .15s,background .15s}.style-tile svg{height:100%;width:auto;stroke:#85bfe3;stroke-width:1.4;fill:none}.style-tile .mini-sheet{fill:white;stroke:#d5e2ed;stroke-width:.8}.style-tile.selected{border-color:#4c9fde;background:#eaf5ff;box-shadow:0 0 0 1px #4c9fde}.style-tile:hover{background:#eff8ff}.optional-section{border-top:1px solid #e5eaf1;padding:12px 0;font-size:13px}.optional-section summary{color:#48536a;font-weight:550;cursor:pointer;list-style:none;display:flex;justify-content:space-between}.optional-section summary:after{content:'+';color:#7c9aba}.optional-section[open] summary:after{content:'−'}.optional-section[open] summary{margin-bottom:11px}.optional-section select,.optional-section input,.optional-section textarea{margin-bottom:9px}.optional-section textarea{min-height:70px}.optional-section input[type=file]{font-size:11px;max-width:100%;color:#75849c}.optional-section .field-row{grid-template-columns:minmax(0,1fr) 77px}.optional-section label{font-size:12px}.mini-preview{max-width:100%;height:65px;object-fit:contain;border-radius:5px}.sheet-tools{display:flex;gap:6px;justify-content:flex-end;margin-top:12px}.sheet-tools .icon-button{border:1px solid #dce1ea;background:#fff9;font-size:17px}.sheet-tools button:disabled{opacity:.35;cursor:default}.resize-row,.card-actions,.dialog-tabs{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.resize-row{margin:0 0 18px}.resize-row>*{flex:1}.card-actions{margin-top:10px}.card-actions .button{font-size:11px;min-height:29px;padding:6px 9px}.dialog-tabs{margin-bottom:16px}.saved-preview{width:100%;height:145px;object-fit:contain;background:#eef1f7;border-radius:5px;margin-bottom:10px}.wide-dialog{width:min(calc(100% - 28px),940px)}.library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px}.spaced{margin-top:18px}.cost-total{font-size:32px;letter-spacing:-1px;margin-bottom:7px}.debug-note{font-size:12px;color:#7b889d;display:block;margin:10px 0}.cost-table{width:100%;border-collapse:collapse;font-size:12px;margin:22px 0}.cost-table td,.cost-table th{text-align:right;padding:10px 7px;border-bottom:1px solid #e6eaf0;font-variant-numeric:tabular-nums}.cost-table td:first-child,.cost-table th:first-child{text-align:left;overflow-wrap:anywhere}.cost-table th{color:#7b889d;font-weight:500}#cost-details details{padding:10px 0;border-bottom:1px solid #e6eaf0;font-size:12px}#cost-details summary{cursor:pointer}#cost-details pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f7f9fc;padding:14px;border-radius:8px;max-height:400px;overflow:auto;font-size:11px}#inspect-dialog{height:min(90dvh,920px);overflow:hidden}#inspect-scroll{overflow:auto;height:calc(100% - 112px);background:#e6ebf2;border:1px solid #dce1ea;border-radius:8px;overscroll-behavior:contain}#inspect-canvas{width:max-content;min-width:100%;min-height:100%;padding:15px}#inspect-canvas svg{display:block;background:white;box-shadow:0 2px 10px #25334c20}.inspect-controls{display:flex;align-items:center;gap:9px;margin-bottom:14px;flex-wrap:wrap}.inspect-controls select{width:auto;max-width:290px;flex:1}.inspect-controls output{font-size:12px;min-width:44px;text-align:center}.check-label{display:flex;align-items:center;gap:7px;font-size:12px;margin:0;white-space:nowrap}.check-label input{width:auto;padding:0}#point-count{font-size:11px;color:#8a96a7}.controls .configuration{padding-top:12px}.canvas-area{position:sticky;top:0;max-height:100dvh;min-height:650px}.sticker-list{max-height:calc(100dvh - 180px);overflow:auto}.history-item .icon-button{margin-left:auto}
@media(max-width:900px){.canvas-area{position:relative;max-height:none;min-height:550px}.sticker-list{max-height:none}.sheet-tools{justify-content:flex-start}}
@media(max-width:650px){.sheet-options{display:grid;grid-template-columns:1fr 1fr;column-gap:14px;margin-top:20px}.sheet-options>.optional-section{grid-column:1/-1}.style-tile{height:58px;padding:4px}.style-tiles{gap:6px}.sheet-options>.field{margin-bottom:12px}.header-actions{gap:5px}.header-button{font-size:12px}.canvas-area{min-height:640px}.sheet-tools{margin-top:16px}.inspect-controls{gap:6px}.inspect-controls select{max-width:180px}.cost-table{font-size:10px}.cost-table td,.cost-table th{padding:7px 4px}#inspect-scroll{height:calc(100% - 145px)}}
.editing-sheet .configuration{border-top:0;padding-top:0;margin-top:0}
.editing-sheet .configuration,.editing-sheet .configuration>.field-row{display:block}
.editing-sheet .generate>svg{display:none}
.save-note{grid-column:1/-1;text-align:center;margin-top:9px}
#current-sheet-button{grid-column:1/-1;margin-bottom:15px}
#background-generate-controls{margin-top:9px}
#background-generate-controls .button{width:100%}
.editing-sheet .sheet-options{margin-top:0}
.reference-modes{display:grid;grid-template-columns:1fr 1fr;gap:6px}.reference-modes button{border:1px solid #dce3ed;background:#f8fafc;border-radius:7px;min-height:37px;padding:8px 5px;color:#758299;font-size:12px}.reference-modes button:last-child{grid-column:1/-1}.reference-modes button.selected{border-color:#86b9e7;background:#edf6ff;color:#305e87;box-shadow:0 0 0 1px #86b9e7}.reference-modes button:hover{background:#edf6ff}#reference-mode-field{grid-column:1/-1;margin-bottom:18px}
.plan-summary{grid-column:1/-1;color:#56647b;font-size:14px;line-height:1.6;padding-bottom:20px}.plan-summary p{margin:0 0 13px;white-space:pre-wrap;overflow-wrap:anywhere}.plan-summary .small-label{line-height:1.6;letter-spacing:.3px}.plan-review{width:min(100%,650px);margin:auto;padding:25px;background:#fff;border:1px solid #dce4ef;border-radius:12px;box-shadow:0 9px 40px #2b426012;display:flex;flex-direction:column;gap:14px}.plan-review-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.plan-review-heading h2{font-family:inherit;font-weight:500;font-size:20px;letter-spacing:-.3px}.plan-review-heading .small-label{font-size:10px;letter-spacing:.3px;text-align:right}.plan-review textarea{min-height:270px;max-height:55dvh;font-size:14px;line-height:1.8;resize:vertical;border-color:#e0e7ef;padding:15px;color:#3f4d64;background:#fcfdff}.plan-review textarea:disabled{opacity:1;color:#7e8a9c}.plan-review .field-help{margin:0}.plan-review .error{margin:0}.plan-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}.plan-actions .button{min-width:136px}.reviewing-plan{gap:15px}.reviewing-plan .canvas-toolbar .small-label{visibility:hidden}.reviewing-plan .canvas-footer{margin-top:auto}.plan-pending .sticker-empty{display:none}.saved-plan-preview{height:145px;margin-bottom:10px;border-radius:5px;background:linear-gradient(135deg,#f7fbff,#e8f1fb);color:#8ca6c4;display:grid;place-items:center;font-size:18px;letter-spacing:-.3px}.planning-sheet .panel-heading{margin-bottom:20px}
@media(max-width:900px){.sticker-panel.plan-pending{display:none}.plan-review{margin:15px auto}.reviewing-plan{min-height:650px}}
.reference-modes button:last-child{grid-column:auto}.reference-modes button{font-size:11px;line-height:1.3;padding:8px 4px;white-space:normal}.plan-adjust{border-top:1px solid #e5eaf1;padding-top:12px}.plan-adjust summary,.original-prompt summary{font-size:12px;color:#63748d;cursor:pointer}.plan-adjust textarea{min-height:68px;max-height:150px;font-size:13px;line-height:1.5;margin:12px 0 9px}.plan-adjust .button{margin-left:auto;min-height:33px}.original-prompt{margin:0 0 18px}.original-prompt p{margin-top:10px;font-size:12px;color:#77869a;line-height:1.6;white-space:pre-wrap;max-height:145px;overflow:auto}.plan-review{max-height:calc(100dvh - 255px);overflow-y:auto}.plan-review>textarea{min-height:175px;max-height:43dvh;flex-shrink:1}.plan-adjust,.plan-review-heading,.plan-actions{flex-shrink:0}
.sheet-hit-overlay{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;touch-action:none}.sheet-hit-overlay.interaction-disabled{pointer-events:none}.sticker-hit{pointer-events:all;fill:transparent;stroke:transparent;stroke-width:1.6;vector-effect:non-scaling-stroke;cursor:grab;touch-action:none;outline:none}.sticker-hit:hover,.sticker-hit:focus-visible,.sticker-hit.selected{fill:#69b6ff0e;stroke:#448fdd}.interaction-disabled .sticker-hit{pointer-events:none;stroke:transparent;fill:transparent}.sticker-hit:active{cursor:grabbing}.sticker-drag-ghost{fill:#73baff30;stroke:#338bdf;stroke-width:2;stroke-dasharray:5 3;vector-effect:non-scaling-stroke;pointer-events:none}.sticker-drag-ghost.needs-snap{fill:#ffbd7026;stroke:#d89844}.sheet-paper.is-dragging{cursor:grabbing;user-select:none}.sheet-paper.is-dragging .sticker-hit{cursor:grabbing}.sticker-menu{position:fixed;width:180px;z-index:20;padding:6px;background:#fff;border:1px solid #dce4ef;border-radius:11px;box-shadow:0 8px 35px #172d4c26}.sticker-menu-title{padding:8px 9px;font-size:11px;color:#8a97aa;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;border-bottom:1px solid #edf0f5;margin-bottom:4px}.sticker-menu button{width:100%;text-align:left;border:0;background:transparent;border-radius:6px;min-height:37px;padding:8px 9px;color:#41516c;font-size:13px}.sticker-menu button:hover,.sticker-menu button:focus-visible{background:#edf5ff;color:#286aaf;outline:none}.sticker-menu button.danger{color:#bd5364}.sticker-menu button.danger:hover{background:#fff1f3}
@media(max-width:650px){.plan-summary{padding-bottom:0}.planning-sheet .panel-heading{margin-bottom:12px}.plan-summary p{margin-bottom:8px}.plan-review{padding:18px;margin:10px auto}.plan-review textarea{min-height:290px;max-height:65dvh;font-size:14px;padding:12px}.reviewing-plan{min-height:610px}.plan-actions .button{min-width:0;flex:1;font-size:12px}.plan-review-heading h2{font-size:19px}#reference-mode-field{margin-top:14px;margin-bottom:0}.reference-modes{grid-template-columns:1fr 1fr 1.4fr}.reference-modes button:last-child{grid-column:auto}}
@media(max-width:900px){.plan-review{max-height:none}.plan-review>textarea{min-height:235px}.plan-adjust textarea{min-height:72px}.reference-modes{grid-template-columns:1fr 1fr}}
.sheet-size-row{display:flex;align-items:center;gap:6px}.sheet-size-row>select{flex:1;min-width:0;padding-left:8px;font-size:12px}.orientation-control{display:flex;gap:3px;flex-shrink:0}.orientation-control button{height:36px;width:30px;border:1px solid #dce4ee;border-radius:6px;background:#f8fafc;color:#9aa8bc;padding:5px}.orientation-control svg{width:19px;height:19px;stroke-width:1.2}.orientation-control button.selected{background:#edf6ff;border-color:#8dbce7;color:#4085bb}.layout-warning{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:6px 0 12px;padding:10px 12px;border:1px solid #efbdc5;border-radius:8px;background:#fff4f6;color:#ac3b50;font-size:12px}.layout-warning .button{flex-shrink:0;font-size:12px;min-height:31px;color:#a44356;border-color:#e8bcc4;background:white}.sheet-paper.has-layout-issues{overflow:visible;box-shadow:0 0 0 1px #d78999,0 15px 45px -17px #23335350}.sticker-hit.invalid{fill:#f15f721d;stroke:#db344d;stroke-width:2}.sticker-hit.invalid:hover,.sticker-hit.invalid:focus-visible,.sticker-hit.invalid.selected{fill:#f15f7235;stroke:#b9213a}.interaction-disabled .sticker-hit.invalid{fill:#f15f7218;stroke:#db344d}.sheet-hit-overlay{z-index:2}.working-overlay{z-index:3}.has-layout-issues .dimension{color:#b75267}
#inspect-dialog[open]{display:flex;flex-direction:column;gap:0}#inspect-dialog>.dialog-heading{flex-shrink:0}#inspect-scroll{height:auto;flex:1;min-height:120px}.inspect-controls{flex-shrink:0}.smoothing-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex-shrink:0;border-top:1px solid #e5eaf1;padding:12px 0;margin-bottom:8px}.smoothing-controls>label{font-size:12px;margin:0}.smoothing-controls select{width:auto;max-width:135px;font-size:12px;min-height:34px;padding-top:7px;padding-bottom:7px}.smoothing-controls input[type=range]{flex:1;width:90px;min-width:65px;max-width:170px;margin:0;padding:0;accent-color:#5f9fd7;box-shadow:none;border:0;background:transparent}.smoothing-controls output{font-size:11px;color:#7f8da3;width:31px}.smoothing-controls .button{min-height:33px;font-size:12px;padding:7px 10px}.smoothing-controls .field-help{flex-basis:100%;font-size:11px;margin:0}#inspect-error{margin:0 0 9px;flex-shrink:0}
@media(max-width:650px){.sheet-size-row{gap:4px}.orientation-control button{width:27px;padding:3px}.sheet-size-row>select{font-size:11px;padding-left:7px;padding-right:22px}.layout-warning{font-size:11px;padding:9px}.smoothing-controls{gap:6px}.smoothing-controls>label{flex-basis:100%}.smoothing-controls select{max-width:113px}.smoothing-controls input[type=range]{min-width:50px}.smoothing-controls .button{font-size:11px;padding:6px 8px}.smoothing-controls output{width:28px}}
.safe-inset-guide{display:none;fill:none;stroke:#85b4d1;stroke-width:1;stroke-dasharray:5 4;vector-effect:non-scaling-stroke;pointer-events:none}.safe-inset-label{display:none;font-family:inherit;font-size:7px;font-weight:400;fill:#789caf;stroke:none;pointer-events:none}.show-safe-guide .safe-inset-guide,.show-safe-guide .safe-inset-label{display:block}.sticker-hit.quality-advisory{fill:#eeb2430a;stroke:#d1a14c;stroke-width:1}.sticker-hit.quality-advisory:hover,.sticker-hit.quality-advisory.selected{fill:#eeb24318;stroke:#b98c3e}.layout-warning.quality-warning{background:#fffbef;color:#977134;border-color:#ead8ad}.sticker-menu{width:210px}.sticker-menu-quality{padding:4px 9px 8px;color:#8191a6;font-size:10px;line-height:1.5;border-bottom:1px solid #edf0f5;margin-bottom:4px}.sticker-menu-quality.advisory{color:#a67b2e}.sticker-menu-quality.bad{color:#c13c51}.sticker-menu button[data-command^=rotate]{display:inline-block;width:calc(50% - 3px);text-align:center;background:#f6f8fb;margin:3px 0}.edit-actions{display:grid;gap:8px}.edit-actions .button{width:100%}.replacement-note{text-align:center;margin:9px 0 0}.library-filters{display:flex;gap:10px}.library-filters input{min-width:0}.library-filters select{width:135px;flex-shrink:0}.catalog-metadata{font-size:10px;color:#8795a9;line-height:1.5;max-height:45px;overflow:hidden;margin-top:7px}
.sheet-art-scene{position:absolute;inset:0;width:100%;height:100%;overflow:visible;display:none;pointer-events:none;z-index:1}.optimistic-scene-active .sheet-art-scene{display:block}.optimistic-scene-active>#sheet-preview,.optimistic-scene-active>#cut-overlay{visibility:hidden}.hide-scene-cuts .scene-cut{display:none}.saving-position .sticker-drag-ghost{opacity:.5}.layout-warning-message{min-width:0}#layout-warning-message{font-size:11px;line-height:1.5}.layout-warning{flex-shrink:0}
.appearance-preview-active .sheet-art-scene{display:block}.appearance-preview-active>#sheet-preview,.appearance-preview-active>#cut-overlay{visibility:hidden}.color-control{display:flex;align-items:center;gap:9px;margin-top:9px;min-height:31px}.color-control>label{font-size:12px;margin:0;flex:1}.color-control input[type=color]{width:39px;height:29px;min-height:0;padding:3px;border-radius:6px;cursor:pointer;background:#fff}.color-control .button{min-height:29px;padding:5px 8px;font-size:11px}.washout-control{display:flex;align-items:center;gap:8px;margin-top:10px}.washout-control>label{font-size:12px;margin:0}.washout-control input[type=range]{flex:1;min-width:40px;width:auto;padding:0;border:0;box-shadow:none;accent-color:#6b9fcb;background:transparent}.washout-control output{font-size:10px;color:#7d8ba0;min-width:31px;text-align:right}.imprint-exclusion-guide{stroke:#bd9a66;stroke-dasharray:3 3}.catalog-usage{font-size:10px;color:#7c8ba1;line-height:1.4;margin-top:6px;font-variant-numeric:tabular-nums}#undo-button{color:#4e638b}
@media(min-width:651px){body:has(#studio:not([hidden])){overflow:hidden}.topbar{height:58px;padding:0 24px}.workspace{height:calc(100dvh - 58px);min-height:0;grid-template-columns:250px minmax(0,1fr)}.controls{grid-row:auto;padding:16px 18px 12px;min-height:0;overflow-y:auto;scrollbar-width:thin}.controls-footer{display:none}.panel-heading{margin-bottom:13px}.panel-heading h1{font-size:20px}.field{margin-bottom:11px}.theme-field textarea{height:71px;min-height:65px}.reference-field{margin-bottom:11px}.mode-control{margin-bottom:12px}.style-tile{height:59px;padding:5px}.sheet-options .field{margin-bottom:11px}.optional-section{padding:10px 0}.configuration{padding-top:10px}.configuration>.field{margin-bottom:10px}.configuration select{padding-top:9px;padding-bottom:9px}.generate{height:40px;min-height:40px;margin-top:0}.upload-options{gap:8px;margin-top:9px}.upload-options label{font-size:12px;margin-bottom:5px}.upload-options select,.upload-options input{min-height:34px;padding-top:7px;padding-bottom:7px}.field-help{font-size:10px}.reference-modes button{min-height:31px;padding:6px 4px}.canvas-area{position:relative;top:auto;height:100%;min-height:0;max-height:none;padding:17px 25px 14px;overflow:hidden}.canvas-toolbar{gap:12px}.sheet-heading .small-label{font-size:8px;margin-bottom:3px}.sheet-heading h2{font-size:17px;max-width:min(600px,55vw)}.sheet-tools{margin-top:8px;gap:5px}.canvas-stage{container-type:size;min-height:0;flex:1;padding:25px 27px 21px;overflow:visible}.sheet-surround{width:min(100%,760px,calc(100cqh*var(--sheet-ratio)))}.canvas-footer{min-height:34px;flex-shrink:0}.view-control button{font-size:12px;padding:7px 10px}.sheet-tools .button{min-height:31px;padding:6px 10px}.sheet-tools .icon-button{height:31px}.layout-warning{margin:0 0 8px;padding:8px 10px;max-height:98px;overflow:auto}.canvas-error{margin-top:8px;max-height:55px;overflow:auto}.reviewing-plan{gap:10px}.plan-review{max-height:calc(100dvh - 222px);padding:19px;gap:11px}.plan-review>textarea{min-height:155px;max-height:35dvh}.plan-adjust textarea{min-height:65px}.plan-summary{font-size:13px}.edit-preview-wrap{height:155px}.edit-dialog textarea{min-height:78px;margin-bottom:13px}.dialog-heading{margin-bottom:15px}}
@media(min-width:651px) and (max-width:1100px){.workspace{grid-template-columns:225px minmax(0,1fr)}.controls{padding-left:14px;padding-right:14px}.canvas-area{padding-left:19px;padding-right:19px}.header-actions{gap:12px}}
@media(max-width:650px){.workspace{display:flex;flex-direction:column}.canvas-area{min-height:580px}.sheet-surround{width:min(100%,680px,calc(400px*var(--sheet-ratio)))}.library-filters select{width:110px}.layout-warning{align-items:flex-start}.sticker-menu{width:200px}}
.exact-size-row{display:grid;grid-template-columns:64px 9px minmax(0,1fr);align-items:center;gap:6px}.exact-size-row input,.exact-size-row select{padding:9px 8px;min-width:0;font-size:12px}.exact-size-row select{padding-right:24px}.exact-size-row>span{font-size:15px;color:#8793a4}.exact-size-row+.field-help{margin-top:5px}.mode-control button{font-size:11px;padding:9px 5px}.mode-control svg{width:12px;height:12px}.clarification-form{width:100%;display:flex;flex-direction:column;gap:18px}.clarification-form fieldset{border:0;padding:0;margin:0 0 20px;min-width:0}.clarification-form legend{font-size:15px;font-weight:550;line-height:1.4;margin-bottom:13px}.clarification-options{display:flex;flex-wrap:wrap;gap:8px}.clarification-options label{display:flex;align-items:center;gap:8px;border:1px solid #dbe4ef;background:#fafcff;border-radius:8px;padding:10px 12px;font-size:13px;font-weight:400;cursor:pointer;margin:0}.clarification-options label:has(input:checked){border-color:#86b9e7;background:#edf6ff;color:#305e87}.clarification-options input[type=radio],.clarification-options input[type=checkbox]{width:15px;height:15px;min-height:0;margin:0;padding:0;box-shadow:none;accent-color:#447faa}.clarification-form textarea{min-height:65px;margin-top:12px}.clarification-form>.button{align-self:flex-end;min-width:140px}.sticker-hit.needs-room{fill:#ffbd7026;stroke:#d89844}.sheet-paper.transparent-preview{box-shadow:none;border-radius:0;background-color:transparent;background-image:linear-gradient(45deg,#e3e7ee 25%,transparent 25%),linear-gradient(-45deg,#e3e7ee 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e3e7ee 75%),linear-gradient(-45deg,transparent 75%,#e3e7ee 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}.sheet-paper.transparent-preview.has-layout-issues{box-shadow:none}.sheet-paper.is-dragging .sheet-art-scene{will-change:transform}
.canvas-stage{position:relative}.canvas-stage:has(.add-sticker-button:not([hidden])){padding-bottom:48px}.add-sticker-button{position:absolute;right:0;bottom:6px;z-index:4;display:grid;place-items:center;width:40px;height:40px;border:1px solid #cdd9ed;border-radius:50%;background:#fff;color:var(--blue);box-shadow:0 3px 12px #24355214}.add-sticker-button svg{width:21px;height:21px;stroke-width:1.8}.add-sticker-button:hover{background:#edf5ff;border-color:#90b3e7}.add-sticker-button:focus-visible{outline:3px solid #9aaffe;outline-offset:3px}.add-sticker-button:disabled{opacity:.4;cursor:default}.add-sticker-dialog textarea{min-height:90px;margin-bottom:17px}.add-sticker-upload-field{position:relative}.add-sticker-dialog .optional-label{color:#9aa3b3;font-size:11px;font-weight:400;margin-left:5px}.add-sticker-dialog .primary{width:100%}.add-sticker-dialog .error{margin:12px 0}.add-sticker-dialog .upload-preview>span:last-child{min-width:0}.add-sticker-dialog .upload-options{margin-top:0}
.firesprint-lockup{display:flex;align-items:center;background:#fff;border-radius:5px;padding:4px 7px;flex-shrink:0}.firesprint-lockup img{display:block;width:125px;height:auto}.brand{font-size:19px;gap:12px}.login-logo{display:block;width:205px;height:auto;margin-bottom:25px}.login-card h1{margin-bottom:23px}.login-card input{margin:0 0 12px}.login-card>.button{width:100%;margin-top:12px}.setup-email{font-size:14px;color:#78869b;margin:-9px 0 20px;overflow-wrap:anywhere}.credit-button{display:flex;gap:5px;align-items:center;border:1px solid #ffffff26;background:#ffffff0d;color:#dce6f8;border-radius:16px;padding:7px 11px;font-size:11px;white-space:nowrap}.credit-button span:first-child{font-weight:650;color:#fff;font-variant-numeric:tabular-nums}.credit-button:hover{background:#ffffff1a}.header-actions{gap:10px}.credit-summary{display:flex;align-items:baseline;gap:10px;color:#7d8a9e}.credit-summary strong{font-size:34px;color:var(--ink);letter-spacing:-1px;font-weight:550}.credit-ledger{margin-top:22px}.credit-entry{display:flex;justify-content:space-between;gap:16px;border-top:1px solid #e6eaf0;padding:11px 0;font-size:13px}.credit-entry strong{font-weight:500;display:block;overflow-wrap:anywhere}.credit-entry small{display:block;color:#94a0b1;font-size:10px;margin-top:4px}.credit-entry>span{font-variant-numeric:tabular-nums;white-space:nowrap;color:#468362}.credit-entry>span.debit{color:#718098}.dialog-tabs .selected,.admin-tabs .selected{border-color:#95b6e2;background:#edf5ff;color:#376891}.admin-tabs{border-bottom:1px solid #e3e8f0;padding-bottom:13px}.admin-create-user{display:grid;grid-template-columns:minmax(180px,1fr) 125px auto;gap:9px;margin:18px 0}.admin-create-user input{min-width:0;font-size:13px;padding:10px}.admin-link-result{background:#edf5ff;border:1px solid #d1e3f6;border-radius:9px;padding:13px;margin-bottom:17px}.admin-link-result>div{display:flex;gap:7px}.admin-link-result input{font-size:12px;min-width:0;padding:8px}.admin-users-list{display:grid;gap:11px}.admin-user-card{border:1px solid #e3e8f0;border-radius:9px;padding:13px}.admin-user-heading{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:10px}.admin-user-heading strong{font-size:13px;font-weight:550;overflow-wrap:anywhere}.admin-user-controls{display:flex;flex-wrap:wrap;gap:7px}.admin-user-controls select{width:90px}.admin-user-controls input{width:100px}.admin-user-controls select,.admin-user-controls input{padding:7px 8px;font-size:12px;min-height:33px}.admin-user-controls .button{min-height:33px;font-size:11px;padding:7px 9px}.admin-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin-bottom:17px}.admin-settings-grid label{font-size:12px}.admin-settings-grid select,.admin-settings-grid input{font-size:13px}.admin-size-heading{display:flex;align-items:center;justify-content:space-between;margin:21px 0 11px}.admin-size-heading h3{font-size:15px;font-weight:550}.settings-sizes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:21px}.settings-size-row{display:grid;grid-template-columns:18px minmax(48px,1fr) 12px minmax(48px,1fr) 10px 27px;align-items:center;gap:6px}.settings-size-row input[type=checkbox]{width:15px;height:15px;margin:0;padding:0;accent-color:#517ba8}.settings-size-row input[type=number]{min-width:0;padding:8px;font-size:12px}.settings-size-row>span{color:#97a3b4;text-align:center}.settings-size-row .icon-button{width:27px}.review-filters{display:flex;align-items:center;gap:9px;margin:15px 0}.review-filters input{min-width:0;flex:1;font-size:13px}.review-filters select{width:155px;font-size:12px}.review-filters .field-help{white-space:nowrap;min-width:65px}.review-artwork{height:min(42dvh,380px);min-height:180px;background:#f4f6fa;border:1px solid #e6ebf3;border-radius:10px;display:grid;place-items:center;color:#8997a9;font-size:14px;overflow:hidden}.review-image-button{display:block;border:0;background:transparent;cursor:zoom-in;padding:18px;width:100%;height:100%;min-height:0}.review-image-button img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 5px #27344913)}.review-caption{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin:14px 0}.review-caption h3{font-size:15px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.review-caption .field-help{text-align:right;font-size:10px}.review-actions{display:flex;gap:10px;justify-content:flex-end}.review-actions .button{min-width:115px}.review-actions kbd{font-family:inherit;font-size:10px;opacity:.5;border:1px solid currentColor;border-radius:3px;line-height:1;padding:3px;margin-left:8px}#review-deny{color:#a65164}#review-undo{margin-top:13px}#admin-error{margin:0 0 12px}.asset-preview-button{display:block;width:100%;padding:0;background:none;border:0;cursor:zoom-in}.asset-preview-button .saved-preview{margin-bottom:10px}.asset-view-controls{display:flex;align-items:center;gap:7px;margin-bottom:10px}.asset-view-controls .field-help{margin-right:auto}.asset-full-scroll{height:min(68dvh,780px);overflow:auto;background-color:#f3f5f8;background-image:linear-gradient(45deg,#e8edf3 25%,transparent 25%),linear-gradient(-45deg,#e8edf3 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e8edf3 75%),linear-gradient(-45deg,transparent 75%,#e8edf3 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0;border-radius:9px}.asset-full-scroll img{width:100%;height:100%;object-fit:contain;display:block}.asset-full-scroll.actual-size img{width:auto;height:auto;max-width:none;max-height:none}.asset-full-scroll.actual-size{cursor:all-scroll}#library-more{display:block;margin:17px auto 0}
@media(max-width:900px){.brand{font-size:16px;gap:8px}.firesprint-lockup img{width:100px}.header-actions{gap:4px}.header-button{font-size:12px;padding:7px}.credit-button{padding:6px 8px}}
@media(max-width:650px){.topbar{height:auto;min-height:68px;flex-wrap:wrap;padding:12px 16px;gap:10px}.brand{font-size:16px}.firesprint-lockup img{width:110px}.header-actions{width:100%;justify-content:space-between;gap:3px}.header-button{font-size:11px}.header-actions .credit-button span{display:inline}.credit-button{font-size:10px}.workspace{min-height:calc(100dvh - 115px)}.admin-create-user{grid-template-columns:1fr 105px}.admin-create-user .button{grid-column:1/-1}.admin-settings-grid{gap:12px}.settings-sizes{grid-template-columns:1fr}.review-filters{flex-wrap:wrap}.review-filters select{width:132px}.review-filters input{min-width:125px}.review-filters .field-help{margin-left:auto}.review-caption{display:block}.review-caption .field-help{text-align:left}.review-actions{gap:7px}.review-actions .button{flex:1;min-width:0;font-size:12px}.review-actions kbd{display:none}.review-artwork{height:36dvh}.admin-user-heading{align-items:flex-start}.asset-full-scroll{height:65dvh}}
.admin-holds{margin-top:20px;border-top:1px solid #e3e8f0;padding-top:14px}.admin-holds summary{font-size:13px;cursor:pointer}.admin-hold-row{display:grid;grid-template-columns:minmax(0,1fr) 95px auto;gap:8px;align-items:center;padding:12px 0;border-bottom:1px solid #edf0f5}.admin-hold-row strong{display:block;font-size:12px;font-weight:500;overflow-wrap:anywhere}.admin-hold-row small{display:block;font-size:10px;color:#8795a8;margin-top:4px}.admin-hold-row input{padding:8px;font-size:12px;min-width:0}.admin-hold-row .button{font-size:12px;min-height:33px}#admin-credit-holds{font-size:12px;color:#7b899b;margin-top:10px}
/* FireSprint brand accents; sheet diagrams and production status colors stay distinct. */
:root{--ink:#252525;--brand-action:#bd4a12;--brand-action-hover:#a83e0d}
.primary{background:var(--brand-action);box-shadow:0 3px 7px #bd4a1218}.primary:hover{background:var(--brand-action-hover);box-shadow:0 4px 12px #bd4a122a}.primary:disabled{box-shadow:none}
.topbar{background:#242424;background-image:linear-gradient(100deg,#3b2c25 0%,#242424 40%)}.header-button{color:#e5e1de}.credit-button{color:#e9e3de}
.login-screen{background-color:#232323;background-image:radial-gradient(ellipse at 50% 0%,#4a3328,transparent 65%)}.login-card{box-shadow:0 20px 90px #12100e66}.login-card input:focus{border-color:#cc743f;box-shadow:0 0 0 3px #bd4a1212}.login-card .primary:focus-visible{outline-color:#e9935d}
/* Phone refinements: comfortable controls without changing the desktop workspace. */
.sticker-menu{overflow-y:auto;overscroll-behavior:contain}
@media(max-width:650px){
  .login-screen{padding:16px;padding-top:max(16px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom));align-items:safe center}
  .login-card{padding:25px;gap:12px}.login-logo{max-width:100%;margin-bottom:16px}.login-card h1{margin-bottom:15px}
  :is(#studio,dialog,.login-card) :is(input:not([type=checkbox]):not([type=radio]),textarea,select){font-size:16px}
  :is(#studio,dialog,.login-card) :is(button,.button,select,input:not([type=checkbox]):not([type=radio])){min-height:44px}
  :is(#studio,dialog) .icon-button{width:44px;height:44px;min-width:44px}
  .header-actions{flex-wrap:wrap;justify-content:flex-start;gap:4px}.header-button{padding:9px}.header-actions .on-dark{margin-left:auto}
  .controls{padding:16px}.controls form{column-gap:12px}.theme-field textarea{height:80px;min-height:72px}
  .reference-field,#reference-mode-field,#sheet-mode-control{grid-column:1/-1}
  #sheet-mode-control{margin:12px 0 0;min-height:0}#sheet-mode-control button{height:auto;min-height:44px;flex-direction:row;font-size:13px}
  #sheet-mode-control svg{width:15px;height:15px}
  .sheet-options{margin-top:12px;column-gap:12px}.sheet-options>.field{grid-column:1/-1}
  .sheet-size-row>select{min-width:0;flex:1}.orientation-control button{width:44px;height:44px;min-width:44px}
  .style-tile{height:58px}.optional-section{padding:6px 0}.optional-section summary,.plan-adjust summary,.original-prompt summary{min-height:44px;display:flex;align-items:center}
  .optional-section[open] summary{margin-bottom:7px}.optional-section .field-row{grid-template-columns:minmax(0,1fr) 94px}
  .color-control input[type=color]{width:44px;height:44px;flex-shrink:0}.washout-control input[type=range]{min-height:44px}
  .remove-reference{min-height:44px;top:-14px;padding:8px 0 8px 10px}
  .canvas-area{padding:18px 16px 14px}.sheet-tools{flex-wrap:wrap;gap:6px;margin-top:10px}.canvas-toolbar{flex-wrap:wrap;gap:10px}
  .sheet-heading{flex:1;min-width:145px}.sheet-heading h2{max-width:100%;overflow-wrap:anywhere}.view-control button{min-height:44px}
  .canvas-footer{flex-wrap:wrap;gap:8px}.export-actions{margin-left:auto}.add-sticker-button{width:44px;height:44px}
  .sticker-menu{width:220px}.sticker-menu button{min-height:44px;font-size:14px}
  dialog,.wide-dialog{width:calc(100% - 16px);max-height:calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:16px;overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:12px}
  .dialog-heading{margin-bottom:12px}.dialog-heading h2{font-size:20px}.dialog-heading .icon-button{margin:-6px -6px -6px 0}
  .dialog-tabs{gap:7px}.resize-row{gap:8px}.check-label{min-height:44px}
  .inspect-controls select{max-width:100%;min-width:140px}.smoothing-controls{flex-wrap:wrap}.smoothing-controls select{max-width:none;flex:1;min-width:130px}.smoothing-controls input[type=range]{min-height:44px}
  #inspect-dialog[open]{display:flex;flex-direction:column;height:calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow-y:auto}
  #inspect-dialog>.dialog-heading,#inspect-dialog>.inspect-controls,#smoothing-controls{flex-shrink:0}
  #inspect-scroll{flex:1;min-height:140px;height:auto}
  .library-filters{flex-wrap:wrap;gap:8px}.library-filters input{flex:1;min-width:140px}.library-filters select{width:130px}
  .asset-full-scroll{height:55dvh;min-height:140px}.asset-view-controls{flex-wrap:wrap}.asset-view-controls .field-help{flex:1;min-width:100px}
  .admin-settings-grid{grid-template-columns:1fr}.settings-size-row{grid-template-columns:44px minmax(48px,1fr) 12px minmax(48px,1fr) 10px 44px;gap:4px}
  .settings-size-row input[type=checkbox]{width:28px;height:44px;margin:auto}.settings-size-row .icon-button{width:44px}
  .admin-hold-row{grid-template-columns:minmax(0,1fr) 95px auto}.admin-hold-row>div{grid-column:1/-1}
  .clarification-options label{min-height:44px}.plan-review textarea{min-height:180px}.plan-review .plan-adjust textarea{min-height:90px}
}
