:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#1d2635;background:#f6f8fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 50% -15%,#e5ecff 0,transparent 42%),#f6f8fb}.shell{max-width:1120px;margin:0 auto;padding:0 32px}.topbar{height:94px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e3e8f0}.brand{display:flex;align-items:center;gap:12px;font-size:17px;font-weight:760;letter-spacing:-.035em}.brand-mark{width:31px;height:31px;border-radius:9px;background:#4166e8;color:white;display:grid;place-items:center;font-size:18px;font-weight:800;box-shadow:0 5px 12px #4166e833}.local-badge{display:flex;align-items:center;gap:8px;color:#607186;font-size:13px;font-weight:650}.badge-dot{width:7px;height:7px;border-radius:50%;background:#36b58a;box-shadow:0 0 0 4px #36b58a1a}main{max-width:730px;margin:0 auto;padding:72px 0 64px}.intro{text-align:center;margin-bottom:42px}.eyebrow{font-size:12px;letter-spacing:.18em;font-weight:800;color:#4166e8;margin:0 0 17px}h1{font-size:clamp(34px,5vw,52px);line-height:1.1;letter-spacing:-.055em;margin:0;font-weight:780}.intro-copy{font-size:17px;line-height:1.6;color:#69788c;max-width:520px;margin:18px auto 0}.workspace{background:#fff;border:1px solid #e3e9f1;border-radius:18px;padding:32px;box-shadow:0 18px 60px #1831580b,0 2px 5px #18315806}.workspace-header{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:24px}.step{font-size:11px;color:#7b8aa0;letter-spacing:.17em;font-weight:800;margin:0 0 8px}h2{font-size:23px;letter-spacing:-.035em;margin:0}.limit{color:#8a98aa;font-size:13px;margin:0 0 3px;white-space:nowrap}.limit span{padding:0 5px}.dropzone{border:2px dashed #cbd8ef;border-radius:14px;min-height:257px;background:#f9fbff;display:flex;align-items:center;justify-content:center;flex-direction:column;cursor:pointer;transition:border-color .2s,background .2s,transform .2s;outline:none}.dropzone:hover,.dropzone:focus-visible,.dropzone.dragging{border-color:#5578ee;background:#f2f6ff}.dropzone.dragging{transform:scale(1.008)}.upload-icon{width:56px;height:56px;border-radius:16px;background:#ebf0ff;color:#486ce8;display:grid;place-items:center;margin-bottom:18px}.upload-icon svg{width:30px;height:30px}.dropzone strong{font-size:17px;letter-spacing:-.025em}.dropzone>span{font-size:14px;color:#8693a6;margin-top:5px}.browse{color:#4166e8;font-weight:700;text-decoration:underline;text-underline-offset:3px}.dropzone small{font-size:12px;color:#a0acba;margin-top:21px}.selection{margin-top:16px;border:1px solid #e2e8f1;border-radius:12px;padding:13px 15px;display:flex;align-items:center;gap:13px}.selection[hidden],.message[hidden],.results[hidden]{display:none}.file-icon{width:38px;height:42px;background:#ecf1ff;border-radius:7px;color:#4568dc;font-size:10px;font-weight:800;display:grid;place-items:center;flex:none}.file-details{min-width:0;display:flex;flex-direction:column;gap:2px;flex:1}.file-details strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-details span{font-size:12px;color:#8b99ac}.text-button{border:0;background:none;color:#718097;cursor:pointer;font-size:13px;font-weight:650}.text-button:hover{color:#d0455a}.primary-button{width:100%;height:51px;margin-top:21px;background:#4166e8;color:white;border:0;border-radius:10px;font-family:inherit;font-size:15px;font-weight:700;box-shadow:0 7px 16px #4166e82e;cursor:pointer}.primary-button:hover:not(:disabled){background:#3357d3}.primary-button:disabled{background:#b8c6e9;box-shadow:none;cursor:not-allowed}.message{margin-top:17px;padding:12px 14px;border-radius:9px;background:#fff1f1;color:#a53543;font-size:14px;line-height:1.45}.results{border-top:1px solid #edf0f5;margin-top:30px;padding-top:27px}.result-heading{display:flex;gap:12px;align-items:flex-start}.check{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#dcf7e9;color:#158656;font-size:16px;font-weight:800}.result-heading h3{font-size:18px;margin:1px 0 4px;letter-spacing:-.025em}.result-heading p{font-size:13px;color:#8492a5;margin:0}.downloads{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}.download{border:1px solid #dfe7f2;border-radius:11px;text-decoration:none;color:inherit;display:flex;align-items:center;gap:11px;padding:14px;min-width:0}.download:hover{border-color:#8ca5f1;background:#f9fbff}.download-type{width:42px;height:42px;display:grid;place-items:center;border-radius:9px;font-size:10px;font-weight:800;flex:none}.jpg{color:#c87829;background:#fff0dd}.pdf{color:#d05866;background:#ffe9eb}.download-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.download-copy strong{font-size:13px}.download-copy small{font-size:11px;color:#8492a5;white-space:nowrap}.download-icon{margin-left:auto;color:#5b76c7;font-size:21px}.footnote{text-align:center;color:#a1aebe;font-size:12px;margin:24px 0 0}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:650px){.shell{padding:0 17px}.topbar{height:72px}main{padding:48px 0}.intro{margin-bottom:30px}.intro-copy{font-size:16px}.workspace{padding:22px}.workspace-header{align-items:flex-start;flex-direction:column;gap:6px}.dropzone{min-height:230px}.downloads{grid-template-columns:1fr}.limit{font-size:12px}}@media(prefers-reduced-motion:reduce){.dropzone{transition:none}}

/* ---------- Editor ---------- */
[hidden]{display:none!important}
.open-status{margin:12px 0 0;text-align:center;font-size:13px;color:#69788c}
.editor{position:fixed;inset:0;display:flex;flex-direction:column;background:#e9edf3}
.editor-bar{height:60px;flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 16px;background:#fff;border-bottom:1px solid #e3e8f0}
.doc-info{display:flex;align-items:center;gap:14px;min-width:0}
.doc-title{display:flex;flex-direction:column;min-width:0}
.doc-title strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.doc-title span{font-size:12px;color:#8492a5}
.bar-actions{display:flex;align-items:center;gap:8px}
.ghost-button,.secondary-button,.icon-button{font-family:inherit;border:1px solid #dfe6f0;background:#fff;color:#33415a;border-radius:9px;font-size:13px;font-weight:650;cursor:pointer;height:36px;padding:0 12px;white-space:nowrap}
.ghost-button{border-color:transparent;color:#5b6b81}
.ghost-button:hover,.secondary-button:hover:not(:disabled),.icon-button:hover:not(:disabled){background:#f3f6fb}
.icon-button{width:36px;padding:0;font-size:18px}
.icon-button:disabled,.secondary-button:disabled{opacity:.4;cursor:not-allowed}
.secondary-button.wide{width:100%;margin-top:18px;height:42px}
.primary-button.compact{width:auto;height:36px;margin:0;padding:0 16px;font-size:13px;box-shadow:none}
.warnings{flex:none;background:#fff8e6;color:#7a5200;border-bottom:1px solid #f3e2b3;font-size:13px;line-height:1.45;padding:9px 18px}
.warnings p{margin:0}
.editor-body{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 330px}
.stage{overflow:auto;display:grid;place-items:center;padding:28px}
.canvas-wrap{position:relative;touch-action:none;box-shadow:0 8px 30px #18315822,0 1px 3px #18315814;background:conic-gradient(#fff 25%,#e4e8ee 0 50%,#fff 0 75%,#e4e8ee 0) 0 0/16px 16px}
.canvas-wrap canvas{display:block}
.selection-box{position:absolute;border:1.5px solid #4166e8;outline:1px solid #ffffffb0;pointer-events:none}
.handle{position:absolute;width:12px;height:12px;background:#fff;border:2px solid #4166e8;border-radius:3px;pointer-events:auto}
.handle.nw{left:-7px;top:-7px;cursor:nwse-resize}.handle.se{right:-7px;bottom:-7px;cursor:nwse-resize}
.handle.ne{right:-7px;top:-7px;cursor:nesw-resize}.handle.sw{left:-7px;bottom:-7px;cursor:nesw-resize}
.selection-box.no-handles .handle{display:none}
.sidebar{background:#fff;border-left:1px solid #e3e8f0;overflow:auto;display:flex;flex-direction:column}
.panel{padding:16px 16px 18px;border-bottom:1px solid #edf0f5}
.panel h3{font-size:11px;color:#7b8aa0;letter-spacing:.15em;font-weight:800;margin:0 0 10px;text-transform:uppercase}
.layer-list{list-style:none;margin:0;padding:0;max-height:38vh;overflow:auto}
.layer-row{display:flex;align-items:center;gap:7px;min-height:34px;padding:0 6px;border-radius:8px;cursor:pointer;font-size:13px;user-select:none}
.layer-row:hover{background:#f5f7fb}
.layer-row.selected{background:#e9efff;color:#2447c4}
.layer-row.dim .layer-name{opacity:.45}
.layer-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.eye{width:26px;height:26px;flex:none;border:0;background:none;border-radius:6px;cursor:pointer;color:#56657c;display:grid;place-items:center;padding:0}
.eye:hover{background:#e6ebf3}.eye svg{width:16px;height:16px}
.eye[aria-pressed=false]{color:#b7c1cf}
.caret{width:16px;flex:none;border:0;background:none;color:#7b8aa0;cursor:pointer;padding:0;font-size:10px}
.kind{width:22px;height:22px;flex:none;border-radius:6px;display:grid;place-items:center;font-size:10px;font-weight:800;background:#eef1f6;color:#5c6b80}
.kind.type{background:#efe9ff;color:#6b45d8}.kind.group{background:#fff1dc;color:#b06a14}
.kind.pixel,.kind.smartobject{background:#e3f5ec;color:#1f8a59}.kind.shape,.kind.fill{background:#e6efff;color:#3a62d8}
.clip-mark{color:#8a98aa;font-size:12px;flex:none}
#props{display:flex;flex-direction:column;gap:14px;font-size:13px}
.props-name{font-size:15px;font-weight:700;letter-spacing:-.02em;overflow-wrap:anywhere;margin:0}
.props-kind{font-size:12px;color:#8492a5;margin:2px 0 0}
.props-empty,.note{color:#7d8ba0;font-size:13px;line-height:1.5;margin:0}
.note.warn{color:#8a5a00;background:#fff8e6;border-radius:8px;padding:8px 10px}
.field{display:flex;flex-direction:column;gap:5px;min-width:0}
.field>span{font-size:12px;color:#6a7a8f;font-weight:600}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#props input[type=number],#props input[type=text],#props select,#props textarea{width:100%;font-family:inherit;font-size:13px;color:#1d2635;border:1px solid #dfe6f0;border-radius:8px;padding:7px 9px;background:#fff;min-width:0}
#props textarea{min-height:84px;resize:vertical;line-height:1.4}
#props input:focus,#props select:focus,#props textarea:focus{outline:2px solid #4166e855;border-color:#4166e8}
#props input[type=range]{width:100%;accent-color:#4166e8}
#props input[type=color]{width:44px;height:34px;border:1px solid #dfe6f0;border-radius:8px;padding:2px;background:#fff;cursor:pointer}
.check-label{display:flex;align-items:center;gap:7px;font-size:12px;color:#5b6b81;cursor:pointer}
.segmented{display:inline-flex;border:1px solid #dfe6f0;border-radius:8px;overflow:hidden}
.segmented button{border:0;background:#fff;height:32px;min-width:36px;padding:0 9px;font-family:inherit;font-size:13px;color:#56657c;cursor:pointer}
.segmented button+button{border-left:1px solid #dfe6f0}
.segmented button[aria-pressed=true]{background:#e9efff;color:#2447c4;font-weight:700}
.section-title{font-size:11px;color:#7b8aa0;letter-spacing:.12em;font-weight:800;text-transform:uppercase;margin:4px 0 -4px}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);max-width:min(560px,92vw);background:#2b1b1e;color:#fff;padding:12px 16px;border-radius:10px;font-size:14px;line-height:1.45;box-shadow:0 10px 30px #0003;z-index:20}
.export-dialog{border:0;border-radius:16px;padding:28px;width:min(500px,92vw);box-shadow:0 30px 80px #18315840}
.export-dialog::backdrop{background:#16203066}
@media(max-width:900px){.editor-body{grid-template-columns:1fr;grid-template-rows:minmax(300px,55vh) auto;overflow:auto}.stage{padding:16px}.sidebar{border-left:0;border-top:1px solid #e3e8f0;overflow:visible}.layer-list{max-height:none}.editor-bar{padding:0 10px}.doc-title span{display:none}.ghost-button{padding:0 6px}}
@media(max-width:520px){.primary-button.compact{padding:0 10px}.icon-button{width:32px}.grid2{gap:8px}}

/* ---------- PDF templates ---------- */
.top-nav{display:flex;gap:4px}
.top-nav a{color:#5b6b81;text-decoration:none;font-size:13px;font-weight:650;padding:8px 12px;border-radius:8px}
.top-nav a:hover{background:#eef2f8}
.top-nav a[aria-current=page]{background:#e9efff;color:#2447c4}
main.wide{max-width:820px}
main.wide .workspace+.workspace{margin-top:22px}
.dropzone.small{min-height:170px}
.dropzone.small>span{text-align:center;padding:0 12px}
.template-pick{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#6a7a8f;font-weight:600;min-width:220px}
.template-pick select,.form select,.form input[type=number],.form input[type=text]{width:100%;font-family:inherit;font-size:13px;color:#1d2635;border:1px solid #dfe6f0;border-radius:8px;padding:7px 9px;background:#fff;min-width:0}
.form input:focus,.form select:focus,.template-pick select:focus{outline:2px solid #4166e855;border-color:#4166e8}
.form input[type=color]{width:44px;height:34px;border:1px solid #dfe6f0;border-radius:8px;padding:2px;background:#fff;cursor:pointer}
.form .field{margin-bottom:12px}
.form .grid2 .field{margin-bottom:0}
.form .grid2,.form .row{margin-bottom:12px}
.fill-status{margin:14px 0 0;font-size:14px;color:#158656;font-weight:600}
.fill-texts{display:flex;flex-direction:column;gap:12px;margin:0 0 14px}
.fill-text textarea{width:100%;font-family:inherit;font-size:13px;color:#1d2635;border:1px solid #dfe6f0;border-radius:8px;padding:8px 10px;background:#fff;resize:vertical;line-height:1.4}
.fill-text textarea:focus{outline:2px solid #4166e855;border-color:#4166e8}
.fill-text .text-button{align-self:flex-start;padding:0}
#update-pdf{margin-top:10px}
.template-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.template-item{border:1px solid #e2e8f1;border-radius:12px;padding:12px 14px;display:flex;align-items:center;gap:13px}
.template-empty{color:#7d8ba0;font-size:14px;padding:18px;text-align:center;border:1px dashed #d6dfec;border-radius:12px}
.text-button.danger{color:#c03a4c}
.name-input{font-family:inherit;font-size:15px;font-weight:700;border:1px solid transparent;border-radius:8px;padding:6px 8px;min-width:0;width:min(320px,40vw);color:#1d2635}
.name-input:hover{border-color:#dfe6f0}.name-input:focus{outline:2px solid #4166e855;border-color:#4166e8}
.secondary-button[aria-pressed=true]{background:#4166e8;border-color:#4166e8;color:#fff}
.pages{overflow:auto;padding:24px 32px 60px}
.page-block{width:max-content;margin:0 auto 26px}
.page-label{font-size:12px;font-weight:700;color:#7b8aa0;margin:0 0 6px}
.pdf-page{position:relative;background:#fff;box-shadow:0 8px 30px #18315822,0 1px 3px #18315814;touch-action:none;user-select:none}
.pdf-page img{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.pdf-page.adding{cursor:crosshair}
.field-layer{position:absolute;inset:0}
.fbox{position:absolute;display:flex;align-items:center;border:1px dashed #4166e8b0;background:#4166e812;cursor:move;overflow:hidden;white-space:nowrap}
.fbox.ghost{border-color:#4166e855;background:#4166e808;cursor:ns-resize}
.fbox.ghost .ftext{opacity:.55}
.fbox.selected{border:1.5px solid #4166e8;background:#4166e81f;overflow:visible}
.fbox.selected.ghost{border-style:dashed;border-width:1px;background:#4166e80d}
.pdf-page.adding .fbox{cursor:crosshair}
.ftext{line-height:1;pointer-events:none;overflow:hidden;text-overflow:clip}
.ftext.placeholder{color:#4166e8!important;font-style:italic;opacity:.85}
.fbox .handle{right:-7px;bottom:-7px;cursor:nwse-resize}
.draw-rect{position:absolute;border:1.5px solid #4166e8;background:#4166e826}
.form .note{margin:0 0 12px}
@media(max-width:900px){.pages{padding:16px}.bar-actions{flex-wrap:wrap;justify-content:flex-end}.editor-bar{height:auto;min-height:60px;padding:8px 10px}.template-pick{min-width:0;width:100%}}
.ftext{white-space:pre;line-height:1.15}
.ftext.align-right{text-align:right}.ftext.align-center{text-align:center}
.page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
.page-head .page-label{margin:0}
.role-label{display:flex;align-items:center;gap:6px;font-size:12px;color:#6a7a8f;font-weight:600}
.role-select{font-family:inherit;font-size:12px;border:1px solid #dfe6f0;border-radius:7px;padding:4px 6px;background:#fff;color:#1d2635}
.source-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.source-tab{font-family:inherit;font-size:12px;font-weight:650;border:1px solid #dfe6f0;background:#fff;color:#4a5a70;border-radius:999px;padding:5px 11px;cursor:pointer}
.source-tab[aria-pressed=true]{background:#e9efff;border-color:#b9c9f5;color:#2447c4}
.source-tab.add{border-style:dashed;color:#4166e8}
.form .section-title{margin:0 0 8px}
.csv-slots{list-style:none;margin:14px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.csv-slot{border:1px solid #e2e8f1;border-radius:11px;padding:10px 12px;display:flex;align-items:center;gap:12px}
.slot-number{width:28px;height:28px;border-radius:50%;background:#ecf1ff;color:#4568dc;font-size:12px;font-weight:800;display:grid;place-items:center;flex:none}
.fdeco{position:absolute;inset:0;mix-blend-mode:multiply;pointer-events:none;box-sizing:border-box}
.fbox .ftext{position:relative}
.fdeco.cover{mix-blend-mode:normal}
.rows-end{position:absolute;left:0;right:0;border-top:1.5px dashed #e5484d;pointer-events:none}
.rows-end::after{content:'rows end';position:absolute;right:4px;top:1px;font-size:10px;color:#e5484d;font-weight:700}
.wide-check{margin-bottom:12px}
.preview-copy button{width:auto;padding:0 10px;font-size:12px;white-space:nowrap}
.check-panel{margin-top:16px;border:1px solid #e3e8f0;border-radius:12px;padding:14px 16px;background:#fbfcfe}
.check-head{margin:0 0 6px;font-size:15px;font-weight:700}
.check-head.good{color:#158656}.check-head.bad{color:#c62f3a}.check-head.ai{color:#5b3fd1;margin-top:4px}
.check-sub{margin:4px 0;font-size:13px;color:#5b6b81}
.issue-list{list-style:none;margin:10px 0;padding:0;display:flex;flex-direction:column;gap:6px;max-height:340px;overflow:auto}
.issue{border-left:3px solid #c9d2df;background:#fff;border-radius:6px;padding:7px 10px;font-size:13px}
.issue p{margin:2px 0 0}.issue .suggestion{color:#5b6b81}
.issue.error{border-left-color:#e5484d}.issue.warning{border-left-color:#e2a336}.issue.info{border-left-color:#7c8da5}
.check-actions{margin-top:10px;gap:8px;flex-wrap:wrap}
.ai-button{color:#5b3fd1;border-color:#d9d0fb}
.ai-box{margin-top:12px;border-top:1px dashed #d9d0fb;padding-top:10px}
.ai-box input{flex:1;min-width:0}

.top-nav{align-items:center}.top-nav .who{font-size:12px;color:#8492a5;padding-left:10px;margin-left:4px;border-left:1px solid #e3e8f0}
