@font-face{font-family:Fredoka;src:url('../Fredoka-VariableFont_wdth,wght.ttf');font-weight:300 700;font-display:swap}
:root{font-family:Fredoka,system-ui,-apple-system,sans-serif;color:#2e2e34;background:#fbfaf6;font-synthesis:none;--accent:#8f87d8;--border:#e9e5dc;--muted:#75717e}
*{box-sizing:border-box}body{margin:0;height:100dvh;display:flex;flex-direction:column;overflow:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;background:#fffefa;border:1px solid var(--border);border-radius:10px;padding:9px 13px;cursor:pointer;white-space:nowrap;transition:background .15s}button:hover:not(:disabled){background:#eeebfa}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,textarea:focus-visible{outline:3px solid #7469c5;outline-offset:3px}button.primary{background:var(--accent);color:white;border-color:var(--accent);font-weight:500}button.primary:hover{background:#7d75c4}button.quiet{border-color:transparent;background:transparent}button.large{padding:15px 25px;border-radius:15px;font-size:17px}button svg{pointer-events:none}[hidden]{display:none!important}
.toolbar{flex-shrink:0;display:flex;align-items:center;gap:12px;padding:15px 24px;border-bottom:1px solid var(--border);z-index:5;background:#fbfaf6}.brand img{width:115px;display:block}.tool-name{padding-left:14px;border-left:1px solid var(--border);font-size:14px;color:var(--muted)}.file-info{flex:1;min-width:0;font-size:12px;color:var(--muted)}.file-info strong{display:block;color:#38343f;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.zoom-tools{display:flex;align-items:center;gap:5px}.zoom-tools button{padding:7px 10px}.zoom-tools output{width:57px;text-align:center;font-size:13px;font-variant-numeric:tabular-nums}.workspace{flex:1;display:flex;min-height:0}.preview-area{flex:1;position:relative;min-width:0;overflow:hidden;background:radial-gradient(ellipse at 40% 45%,#f0edf9 0,transparent 65%),#f6f4ee}.viewport{position:absolute;inset:0;overflow:hidden;touch-action:none;cursor:grab}.viewport:active{cursor:grabbing}.plane{position:absolute;top:0;left:0;transform-origin:0 0;background-color:white;background-image:linear-gradient(45deg,#ddd 25%,transparent 25%),linear-gradient(-45deg,#ddd 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ddd 75%),linear-gradient(-45deg,transparent 75%,#ddd 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;box-shadow:0 3px 25px #29203920}.plane canvas{display:block;width:100%;height:100%}.empty-state,.preview-message{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:36px;overflow:auto}.empty-state h1{font-size:clamp(26px,3vw,40px);font-weight:500;letter-spacing:-.035em;margin:22px 0 10px}.empty-state>p{max-width:430px;line-height:1.7;color:var(--muted);margin:0 0 24px;font-family:system-ui,sans-serif;font-size:14px}.eyebrow{font-size:11px;color:#8b829c;letter-spacing:.14em;text-transform:uppercase;font-weight:500}.file-symbol{height:84px;width:73px;border-radius:14px;background:#ede9ff;color:#877ac7;display:flex;align-items:center;justify-content:center;font-size:31px;font-weight:500;margin-top:23px;transform:rotate(-7deg);box-shadow:8px 8px 0 #e6e1f15c;position:relative}.file-symbol span{position:absolute;bottom:-10px;right:-12px;font-size:24px;background:#fffefa;border:1px solid var(--border);border-radius:9px;padding:2px 9px;transform:rotate(14deg)}.empty-state>p.drop-hint{font-size:12px;margin:12px 0 25px}.privacy-note{display:flex;align-items:center;gap:7px;font-size:12px;color:#726b8e}.empty-state>p.fine-print{font-size:11px;line-height:1.6;max-width:400px;margin:16px 0 0;color:#938d9c}.sidebar{width:330px;flex-shrink:0;display:flex;flex-direction:column;background:#fffefa;border-left:1px solid var(--border);min-height:0}.panel-heading{padding:19px 20px 10px;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#91889b;display:flex;justify-content:space-between;align-items:center}.panel-heading button{display:none}.tabs{display:flex;padding:0 16px;border-bottom:1px solid var(--border);gap:10px}.tabs button{flex:1;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;padding:14px 8px;color:var(--muted)}.tabs button[aria-selected=true]{border-bottom-color:var(--accent);color:#51457b}.count{font-size:11px;background:#f0edf7;padding:2px 6px;margin-left:7px;border-radius:5px}.panel{flex:1;overflow:auto;padding:16px 12px;min-height:0}.panel-empty{text-align:center;font:13px/1.7 system-ui,sans-serif;color:#938d9c;padding:30px 15px}.layer-tree,.layer-tree ul{list-style:none;padding:0;margin:0}.layer-tree ul{margin-left:16px;border-left:1px solid #efebf4;padding-left:4px}.layer-row{display:flex;align-items:center;gap:6px;min-height:40px;padding:5px 7px;border-radius:7px}.layer-row:hover{background:#f5f2fc}.layer-row[data-hidden=true]{color:#938c9b}.layer-row.selected{background:#eee9fb}.layer-toggle{padding:0;width:19px;min-width:19px;height:26px;background:transparent;border:0;font-size:10px}.layer-spacer{width:19px;flex-shrink:0}.layer-name{overflow-wrap:anywhere;min-width:0;font:12px/1.5 system-ui,sans-serif}.layer-name-button{border:0;padding:0;background:transparent;text-align:left;white-space:normal}.layer-kind{font-size:10px;color:#9086ab;width:18px;flex-shrink:0;text-align:center}.visibility{font:10px system-ui,sans-serif;margin-left:auto;white-space:nowrap;padding-left:5px;flex-shrink:0}.text-actions{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:0 5px}.text-actions>span{font:11px/1.5 system-ui,sans-serif;color:var(--muted)}.text-actions button{font-size:11px;padding:7px 8px}.text-explanation{font:11px/1.7 system-ui,sans-serif;color:#8f8799;padding:0 5px;margin:14px 0}.text-card{border:1px solid var(--border);border-radius:12px;padding:13px;margin:0 4px 12px}.text-card.selected{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.text-card-header{display:flex;align-items:center;gap:8px;font:11px system-ui,sans-serif;color:#84788e}.text-card-header strong{overflow-wrap:anywhere;font-weight:500;flex:1}.text-card-header button{font-size:10px;padding:5px 7px}.text-card pre{font:13px/1.7 system-ui,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0 0;user-select:text}.text-card .state{font:10px/1.6 system-ui,sans-serif;color:#8b7e96;margin-top:7px}.warnings{max-height:105px;overflow:auto;background:#fff5df;padding:10px 16px;font:11px/1.6 system-ui,sans-serif;color:#806435}.sidebar-footer{border-top:1px solid var(--border);padding:14px 18px;font:11px/1.7 system-ui,sans-serif;color:#978e9f;display:flex;flex-direction:column;gap:5px}.sidebar-footer a{color:#8276a6}.progress{position:absolute;left:50%;top:22px;transform:translateX(-50%);display:flex;gap:12px;align-items:center;background:#fffefa;padding:10px 12px 10px 18px;border:1px solid var(--border);border-radius:14px;box-shadow:0 8px 35px #2b204914;z-index:4;white-space:nowrap;font-size:13px}.progress button{font-size:12px}.spinner{width:15px;height:15px;border:2px solid #ded8f2;border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.preview-notes{position:absolute;bottom:16px;left:16px;right:16px;margin:auto;max-width:650px;pointer-events:none;padding:9px 14px;background:#fffefaee;border:1px solid #e8dfce;border-radius:9px;font:11px/1.6 system-ui,sans-serif;color:#75644b;text-align:center}.preview-message{background:#f6f4ee}.preview-message h2{font-size:23px;font-weight:500;margin:16px 0 8px}.preview-message p{max-width:430px;font:13px/1.8 system-ui,sans-serif;color:var(--muted);margin:0 0 20px}.message-symbol{font-size:43px;color:#b0a4c5}.drop-overlay{position:absolute;inset:12px;z-index:9;border:3px dashed var(--accent);border-radius:20px;background:#efebfff2;display:grid;place-items:center;color:#6f62ad;font-size:22px}.mobile-tools{display:none}dialog{border:1px solid var(--border);border-radius:23px;background:#fffefa;color:#2e2e34;width:min(500px,calc(100vw - 32px));padding:30px;box-shadow:0 30px 80px #28203025}dialog::backdrop{background:#2b243d66;backdrop-filter:blur(4px)}dialog h2{font-size:25px;font-weight:500;margin:15px 0}dialog p{font:13px/1.8 system-ui,sans-serif;color:var(--muted)}.dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:9px;margin-top:24px}dialog textarea{display:block;width:100%;height:220px;margin-bottom:16px;border:1px solid var(--border);border-radius:8px;padding:12px;resize:vertical;font:14px/1.7 system-ui,sans-serif}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:20;background:#3b3349;color:white;border-radius:10px;padding:11px 20px;font-size:13px}
@media(max-width:1150px){.tool-name{display:none}.toolbar{gap:8px;padding:12px 16px}.brand img{width:90px}.sidebar{width:300px}.file-info{max-width:220px}.zoom-tools{margin-left:auto}}
@media(max-width:760px){.toolbar{flex-wrap:wrap;padding:10px 12px;gap:7px}.toolbar>.brand{margin-right:auto}.toolbar>.file-info{order:5;flex:1 1 100%;max-width:none;display:flex;gap:8px;align-items:center;font-size:10px;min-height:16px}.file-info strong{font-size:11px;max-width:47%;flex-shrink:0}.toolbar button{font-size:12px;padding:7px 10px}.zoom-tools{order:6;margin:0 auto;gap:8px}.zoom-tools button{padding:5px 12px}.sidebar{display:none;position:fixed;left:0;right:0;bottom:calc(50px + env(safe-area-inset-bottom));height:min(65dvh,600px);width:auto;z-index:8;border:1px solid var(--border);border-radius:20px 20px 0 0;box-shadow:0 -20px 70px #2b20491a}.panel-open .sidebar{display:flex}.panel-heading{padding:10px 18px 0}.panel-heading button{display:block}.tabs button{padding:12px}.sidebar-footer{padding:8px 18px}.mobile-tools{display:flex;gap:1px;flex-shrink:0;background:var(--border);padding-bottom:env(safe-area-inset-bottom);z-index:10}.mobile-tools button{flex:1;border:0;border-radius:0;height:50px;font-size:13px;background:#fffefa}.mobile-tools span+span{color:#9489b1;margin-left:5px}.empty-state{padding:24px}.empty-state h1{font-size:28px}.empty-state .file-symbol{height:62px;width:56px;font-size:24px;margin-top:16px}.empty-state>p{font-size:12px;margin-bottom:18px}.empty-state .eyebrow{font-size:10px}.empty-state>p.fine-print{font-size:10px}.empty-state>p.drop-hint{display:none}.privacy-note{margin-top:18px;font-size:10px}.empty-state button.large{font-size:14px;padding:13px 22px}.progress{top:12px;font-size:12px;padding:9px 10px;gap:8px}.preview-notes{bottom:10px;left:10px;right:10px;font-size:10px}.toast{bottom:70px}.preview-message{padding:22px}.preview-message h2{font-size:21px}.preview-message p{font-size:12px}.viewport{touch-action:none}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
