@charset "UTF-8";
:root {
  --ink:#263245;
  --muted:#788293;
  --subtle:#a3acba;
  --line:#e8ebf0;
  --panel:#fff;
  --paper:#f6f7fa;
  --blue:#315df4;
  --blue-dark:#244bd4;
  --blue-pale:#eef2ff;
  font-family:Inter,"Pretendard Variable",Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI","Malgun Gothic",sans-serif;
  color:var(--ink);
  background:var(--paper);
  font-synthesis:none;
  line-height:1.5;
  -webkit-text-size-adjust:100%;
}
* { box-sizing:border-box; }
body { margin:0; }
button,input,select,textarea { font:inherit; }
button { border:0; background:none; color:inherit; cursor:pointer; }
button,input,select,textarea,a { -webkit-tap-highlight-color:transparent; }
button,a,input[type=checkbox] { touch-action:manipulation; }
button:disabled { cursor:not-allowed; opacity:.32; }
button:hover:not(:disabled) { background-color:#f0f3f8; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible { outline:3px solid #9cb1ff; outline-offset:3px; }
button:focus:not(:focus-visible) { outline:none; }
a { color:inherit; text-decoration:none; }
svg { width:20px; height:20px; display:block; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
[hidden] { display:none!important; }
::selection { background:#dce5ff; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.skip-link { position:fixed; left:16px; top:-100px; z-index:100; padding:12px 18px; background:var(--blue); color:#fff; border-radius:9px; }
.skip-link:focus { top:12px; }
.editor-shell { height:100vh; height:100dvh; display:flex; flex-direction:column; overflow:hidden; }
.stitch-nav-link { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:8px 12px; border:1px solid var(--line); border-radius:8px; font-size:12px; white-space:nowrap; }
.stitch-nav-link:hover { background:var(--blue-pale); color:var(--blue-dark); }
.stitch-session-note { margin:0; padding:9px 22px; background:#eef2ff; color:#46577c; font-size:12px; line-height:1.7; flex-shrink:0; }
.stitch-session-error { width:min(600px,calc(100% - 40px)); margin:12vh auto; padding:28px; border:1px solid var(--line); border-radius:14px; background:var(--panel); }
.stitch-session-error h1 { font-size:22px; }
.stitch-session-error p { color:#647087; line-height:1.8; }
.stitch-session-error div { display:flex; flex-wrap:wrap; gap:12px; }
.stitch-session-error a { display:inline-flex; align-items:center; min-height:44px; padding:10px 14px; background:var(--blue); color:white; border-radius:8px; }
.editor-header { min-height:76px; flex-shrink:0; display:flex; align-items:center; justify-content:space-between; gap:24px; padding:0 24px; border-bottom:1px solid var(--line); background:#fff; z-index:5; }
.identity,.brand,.editor-title,.header-actions,.history-actions { display:flex; align-items:center; }
.identity { gap:22px; min-width:0; }
.brand { gap:10px; font-size:18px; font-weight:750; letter-spacing:-.7px; white-space:nowrap; }
.brand-mark { width:34px; height:34px; color:var(--blue); stroke:none; }
.header-divider { height:23px; width:1px; background:var(--line); }
.editor-title { gap:10px; white-space:nowrap; }
.editor-title h1 { font-size:14px; font-weight:600; margin:0; letter-spacing:-.35px; }
.prototype-badge { background:#f2f4f7; color:#788293; border:1px solid #e8ebf0; border-radius:5px; font-size:10px; padding:2px 6px; font-weight:600; }
.header-actions { gap:10px; }
.editor-help-button,.editor-more>summary { display:flex; align-items:center; justify-content:center; gap:6px; min-width:44px; min-height:44px; padding:8px 10px; border-radius:8px; color:#59677d; font-size:12px; white-space:nowrap; }
.editor-help-button svg,.editor-more>summary svg { width:18px; height:18px; }
.editor-more { position:relative; }
.editor-more>summary { cursor:pointer; list-style:none; }
.editor-more>summary::-webkit-details-marker { display:none; }
.editor-more>summary:hover,.editor-more[open]>summary { background:var(--blue-pale); color:var(--blue-dark); }
.editor-more>summary:focus-visible { outline:3px solid #9cb1ff; outline-offset:3px; }
.editor-more-panel { position:absolute; top:calc(100% + 8px); right:0; width:220px; max-width:calc(100vw - 24px); padding:8px; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:0 12px 38px #26324524; }
.editor-language-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding-left:11px; font-size:12px; color:#59677d; }
.editor-more-panel .reset-button { display:flex; width:100%; justify-content:flex-start; margin-top:4px; border-top:1px solid var(--line); border-radius:0 0 6px 6px; }
.editor-more-panel .reset-button span { display:inline; }
.history-actions { gap:2px; margin-right:8px; padding-right:12px; border-right:1px solid var(--line); }
.icon-button { width:44px; min-width:44px; height:44px; display:inline-flex; align-items:center; justify-content:center; border-radius:8px; }
.reset-button { min-height:44px; display:flex; align-items:center; gap:7px; padding:0 11px; font-size:12px; font-weight:550; border-radius:8px; color:#687385; }
.reset-button svg { width:17px; height:17px; }
.language-button { min-width:44px; min-height:44px; border-radius:8px; font-size:12px; font-weight:700; color:#647087; }
.project-menu-button { min-width:44px; min-height:44px; display:flex; align-items:center; justify-content:center; gap:7px; padding:0 11px; border:1px solid #e1e6ef; border-radius:8px; font-size:12px; font-weight:600; white-space:nowrap; color:#59677d; }
.project-menu-button svg { width:17px; height:17px; }
.primary-button { display:flex; align-items:center; justify-content:center; gap:8px; min-height:44px; background:var(--blue); color:white; padding:0 17px; border-radius:9px; font-size:12px; font-weight:650; box-shadow:0 3px 8px #315df417; white-space:nowrap; }
.primary-button svg { width:17px; height:17px; }
.primary-button:hover:not(:disabled) { background:var(--blue-dark); }
.editor-body { display:grid; grid-template-columns:72px minmax(0,1fr) 300px; flex:1; min-height:0; }
.toolrail { z-index:4; display:flex; flex-direction:column; align-items:center; justify-content:space-between; background:#fff; border-right:1px solid var(--line); padding:16px 8px 12px; }
.toolrail-group { display:flex; flex-direction:column; align-items:center; gap:9px; width:100%; }
.tool-button { min-width:52px; min-height:58px; padding:9px 3px 7px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; border-radius:10px; color:#7c8798; }
.tool-button svg { width:21px; height:21px; }
.tool-button span { font-size:10px; font-weight:600; letter-spacing:-.25px; }
.tool-button.is-active,.tool-button[aria-pressed=true] { color:var(--blue); background:var(--blue-pale); }
.tool-button:hover:not(:disabled) { color:var(--blue); }
.tool-divider { height:1px; width:24px; background:var(--line); margin:5px 0; }
.toolrail-foot { height:44px; display:flex; align-items:center; }
.private-dot { width:6px; height:6px; border-radius:50%; background:#89a58a; display:inline-block; flex-shrink:0; }
.inspector-toggle { display:none; }
.workspace { position:relative; display:flex; flex-direction:column; min-width:0; min-height:0; background:#f2f4f8; }
.workspace-toolbar { display:flex; align-items:center; justify-content:space-between; min-height:60px; background:#f9fafc; padding:0 22px; border-bottom:1px solid #e8ebf0; gap:12px; flex-shrink:0; }
.mobile-history { display:none; }
.smart-guides-control { flex-shrink:0; margin-left:auto; }
.smart-guides-toggle { display:flex; align-items:center; justify-content:center; gap:6px; min-height:44px; min-width:44px; padding:8px 10px; border:1px solid #e5e8ef; border-radius:8px; color:#7b8494; background:#fff; font-size:11px; font-weight:550; white-space:nowrap; }
.smart-guides-toggle svg { width:17px; height:17px; }
.smart-guides-toggle[aria-pressed=true] { color:#8743b8; border-color:#e4d5f4; background:#f5effc; }
.smart-guides-toggle:hover:not(:disabled) { color:#7434a3; background:#f0e8fa; }
.document-info { display:flex; align-items:center; min-width:0; gap:9px; font-size:11px; color:#697488; }
.document-info>span:nth-child(2) { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.document-dot { width:6px; height:6px; border-radius:50%; background:#a5b1c3; flex-shrink:0; }
.document-size { font-size:10px; color:#9aa3b2; margin-left:4px; white-space:nowrap; }
.zoom-controls { display:flex; align-items:center; flex-shrink:0; gap:0; color:#748095; }
.zoom-controls .icon-button { width:44px; min-width:44px; height:44px; }
.zoom-controls svg { width:16px; height:16px; }
#zoom-value { min-width:42px; text-align:center; font-size:11px; font-variant-numeric:tabular-nums; color:#59667a; }
.zoom-divider { width:1px; height:14px; background:#dfe4ed; margin:0 7px; }
.fit-button { display:flex; align-items:center; justify-content:center; gap:6px; min-height:44px; min-width:56px; padding:0 6px; border-radius:7px; font-size:11px; }
.canvas-stage { position:relative; flex:1; min-height:0; min-width:0; overflow:auto; display:flex; align-items:center; justify-content:center; padding:38px 32px 64px; background-image:radial-gradient(#d6dce7 .65px,transparent .65px); background-size:18px 18px; outline-offset:-4px!important; overscroll-behavior:auto; }
.image-drop-overlay { position:fixed; z-index:9; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; padding:24px; border:2px dashed var(--blue); border-radius:12px; background:#f3f6ffed; color:var(--blue-dark); text-align:center; pointer-events:none; }
.image-drop-overlay strong { font-size:20px; }
.image-drop-overlay span { max-width:420px; font-size:12px; line-height:1.8; overflow-wrap:anywhere; }
.canvas-wrap { position:relative; flex-shrink:0; box-shadow:0 12px 38px #2632450d,0 2px 6px #26324508; line-height:0; background:#fff; }
.group-transform-overlay { position:absolute; z-index:5; outline:1px solid var(--blue); pointer-events:none; line-height:0; overflow:visible; }
.group-transform-stem { position:absolute; left:50%; top:-28px; width:1px; height:28px; background:var(--blue); pointer-events:none; }
.group-transform-handle { position:absolute; display:block; width:44px; height:44px; min-width:44px; min-height:44px; margin:0; padding:0; border:0; border-radius:4px; background:transparent; pointer-events:auto; touch-action:none; transform:translate(-50%,-50%); }
.group-transform-handle::after { content:""; position:absolute; left:50%; top:50%; width:9px; height:9px; transform:translate(-50%,-50%); border:1.5px solid var(--blue); border-radius:1px; background:#fff; box-shadow:0 1px 3px #26324524; }
.group-transform-handle:hover:not(:disabled) { background:transparent; }
.group-transform-handle:hover::after { background:var(--blue-pale); border-color:var(--blue-dark); }
.group-transform-handle.is-nw { left:0; top:0; cursor:nwse-resize; }
.group-transform-handle.is-ne { left:100%; top:0; cursor:nesw-resize; }
.group-transform-handle.is-sw { left:0; top:100%; cursor:nesw-resize; }
.group-transform-handle.is-se { left:100%; top:100%; cursor:nwse-resize; }
.group-transform-handle.is-rotate { left:50%; top:-28px; cursor:grab; }
.group-transform-handle.is-rotate::after { width:12px; height:12px; border-radius:50%; }
.group-transform-handle.is-rotate:active { cursor:grabbing; }
.smart-guide-overlay { position:absolute; inset:0; overflow:hidden; z-index:4; pointer-events:none; line-height:1.4; color:#bd3bba; }
.smart-guide-overlay * { pointer-events:none; }
.smart-guide-line { position:absolute; display:block; height:0; border-top:1px solid currentColor; transform-origin:0 0; }
.smart-guide-line.is-size { border-top-style:dashed; }
.smart-guide-line.is-reference { opacity:.7; }
.smart-guide-point { position:absolute; width:5px; height:5px; border:1px solid currentColor; background:#fff; border-radius:50%; transform:translate(-50%,-50%); }
.smart-guide-point.is-size { border-radius:0; }
.smart-guide-badge { position:absolute; display:block; padding:3px 6px; border:1px solid #e7c8ed; border-radius:4px; color:#963294; background:#fff9ff; box-shadow:0 1px 3px #3e164512; font-size:11px; font-weight:600; line-height:1.3; font-variant-numeric:tabular-nums; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.smart-guide-badge.is-reference { background:#fff; font-weight:500; }
#editor-canvas { display:block; width:100%; height:100%; touch-action:none; }
.canvas-stage { align-items:safe center; justify-content:safe center; }
.canvas-wrap { background-color:#fff; background-image:linear-gradient(45deg,#e4e7ed 25%,transparent 25%),linear-gradient(-45deg,#e4e7ed 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e4e7ed 75%),linear-gradient(-45deg,transparent 75%,#e4e7ed 75%); background-size:20px 20px; background-position:0 0,0 10px,10px -10px,-10px 0; }
.canvas-text-frame { position:absolute; z-index:2; overflow:hidden; transform-origin:center center; outline:1px solid var(--blue); }
.canvas-text-frame:focus-within { outline:1px solid var(--blue); outline-offset:2px; }
.canvas-text-editor { position:absolute; min-width:1px; min-height:1px; margin:0; padding:0; border:0; border-radius:0; resize:none; overflow:hidden; background:transparent; color:inherit; line-height:1.24; outline:0; white-space:pre-wrap; overflow-wrap:anywhere; word-break:break-all; }
.canvas-text-editor:focus-visible { outline:0; }
.crop-overlay { position:absolute; z-index:3; transform-origin:center; touch-action:none; overflow:hidden; cursor:crosshair; outline:1px solid #fff; background:#14233a12; }
.crop-selection { position:absolute; border:2px solid #fff; box-shadow:0 0 0 1px #315df4,0 0 0 9999px #10223b70; cursor:move; }
.crop-selection::after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(to right,transparent 33%,#ffffff90 33%,#ffffff90 calc(33% + 1px),transparent calc(33% + 1px),transparent 66%,#ffffff90 66%,#ffffff90 calc(66% + 1px),transparent calc(66% + 1px)),linear-gradient(to bottom,transparent 33%,#ffffff90 33%,#ffffff90 calc(33% + 1px),transparent calc(33% + 1px),transparent 66%,#ffffff90 66%,#ffffff90 calc(66% + 1px),transparent calc(66% + 1px)); }
.crop-handle { position:absolute; z-index:1; width:32px; height:32px; border:4px solid transparent; }
.crop-handle::after { content:""; display:block; width:12px; height:12px; background:#fff; border:2px solid #315df4; }
.crop-nw { top:-3px; left:-3px; cursor:nwse-resize; }
.crop-ne { top:-3px; right:-3px; cursor:nesw-resize; transform:scaleX(-1); }
.crop-sw { bottom:-3px; left:-3px; cursor:nesw-resize; transform:scaleY(-1); }
.crop-se { bottom:-3px; right:-3px; cursor:nwse-resize; transform:scale(-1); }
.crop-floating { position:absolute; z-index:4; bottom:48px; left:50%; transform:translateX(-50%); display:flex; gap:4px; padding:5px; margin:0; width:max-content; max-width:calc(100% - 16px); background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:0 4px 18px #15243d1c; }
.crop-floating button { min-height:44px; padding:6px 12px; border-radius:7px; font-size:11px; }
.crop-floating .crop-floating-apply { background:var(--blue); color:#fff; }
.crop-floating .crop-floating-apply:hover { background:var(--blue-dark); }
.photo-licenses { display:flex; flex-wrap:wrap; gap:0 8px; font-size:10px; }
.photo-licenses a { min-height:44px; display:inline-flex; align-items:center; color:var(--blue); text-decoration:underline; }
.canvas-hint { position:absolute; left:16px; right:16px; bottom:16px; margin:0; text-align:center; pointer-events:none; color:#8c97a7; font-size:11px; line-height:1.5; }
.workspace-status { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:34px; padding:7px 18px; border-top:1px solid #e4e8ef; background:#f9fafc; color:#939cab; font-size:10px; flex-shrink:0; }
#status { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.local-note { display:flex; align-items:center; gap:6px; flex-shrink:0; font-size:9px; }
.local-note .private-dot { width:5px; height:5px; }
.inspector { display:flex; flex-direction:column; min-height:0; overflow:hidden; background:#fff; border-left:1px solid var(--line); }
.inspector-mobile-header { display:none; }
.properties-section { padding:23px 20px 17px; border-bottom:1px solid var(--line); flex-shrink:0; max-height:48%; overflow-y:auto; }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:17px; }
.section-heading h2 { font-size:13px; font-weight:700; letter-spacing:-.3px; margin:0; }
.type-badge { color:#8a94a4; font-size:10px; }
.selection-fields { border:0; margin:0; padding:0; min-width:0; }
.property-subheading { margin:20px 0 10px; padding-top:14px; border-top:1px solid var(--line); color:#59677d; font-size:11px; font-weight:650; }
.image-controls>.property-subheading { margin-top:0; border-top:0; }
.multi-section-heading { grid-column:1/-1; margin:8px 0 0; }
.multi-selection-controls { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:8px; min-width:0; }
.multi-selection-count { margin:0; font-size:12px; font-weight:650; }
.multi-selection-state { margin:0; color:#647087; font-size:10px; line-height:1.6; overflow-wrap:anywhere; }
.multi-selection-state:empty { display:none; }
.selection-action-grid { display:grid; grid-column:1/-1; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; min-width:0; }
.selection-action-button { flex-wrap:wrap; column-gap:7px; font-size:11px; }
.selection-action-button kbd { color:#66738a; font-family:inherit; font-size:9px; font-weight:500; line-height:1.5; white-space:nowrap; }
.selection-action-state { grid-column:1/-1; }
.multi-selection-help { margin:0; color:#647087; font-size:11px; line-height:1.75; overflow-wrap:anywhere; }
.group-properties { grid-column:1/-1; min-width:0; }
.group-properties input { min-width:0; }
.group-state { margin:6px 0 0; color:#647087; font-size:10px; line-height:1.6; overflow-wrap:anywhere; }
.group-state:empty { display:none; }
.group-transform-fields { grid-column:1/-1; min-width:0; margin:12px 0 0; padding:12px 0 0; border:0; border-top:1px solid var(--line); }
.group-transform-fields legend { padding:0 8px 0 0; font-size:11px; font-weight:650; color:#59677d; }
.group-transform-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:end; gap:8px; margin-top:8px; }
.group-transform-field { display:flex; flex-direction:column; gap:6px; min-width:0; color:#788293; font-size:10px; }
.group-transform-field .unit-field { width:100%; }
.group-transform-field input { text-align:right; }
.group-transform-quick { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:8px; }
.group-transform-hint { margin:8px 0 0; font-size:10px; color:#788293; line-height:1.7; overflow-wrap:anywhere; }
.group-action-grid { display:grid; grid-column:1/-1; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.group-action-button { display:flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; padding:8px 6px; border:1px solid #dce4f3; border-radius:7px; background:#f8faff; color:#56657d; font-size:11px; font-weight:600; line-height:1.6; text-align:center; overflow-wrap:anywhere; }
.group-action-button:hover:not(:disabled) { color:var(--blue); background:var(--blue-pale); border-color:#cbd7ff; }
.group-reorder-note { grid-column:1/-1; margin:0; padding:7px 9px; border:1px solid #eee0c2; border-radius:6px; color:#805a2c; background:#fffaf0; font-size:10px; line-height:1.7; overflow-wrap:anywhere; }
.multi-selection-target { display:flex; align-items:center; gap:9px; grid-column:1/-1; min-width:0; }
.multi-selection-target .field-label { margin:0; flex-shrink:0; }
.multi-selection-target select { min-width:0; flex:1; }
.multi-alignment-grid { display:grid; grid-column:1/-1; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.multi-distribution-grid { display:grid; grid-column:1/-1; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.multi-selection-button { display:flex; align-items:center; justify-content:center; gap:4px; min-width:44px; min-height:46px; padding:7px 4px; border:1px solid #e2e7ef; border-radius:7px; color:#56657d; background:#f8faff; font-size:10px; font-weight:550; line-height:1.5; text-align:center; overflow-wrap:anywhere; }
.multi-selection-button span { min-width:0; }
.multi-selection-button svg { width:16px; height:16px; }
.multi-selection-button:hover:not(:disabled) { color:var(--blue); background:var(--blue-pale); border-color:#cbd7ff; }
.multi-selection-clear { grid-column:1/-1; min-width:44px; min-height:44px; padding:9px 12px; border:1px solid #e2e7ef; border-radius:7px; font-size:11px; color:#647087; }
.field-label { display:block; font-size:11px; color:#8a94a5; font-weight:500; margin:0 0 7px; }
input[type=text],input[type=number],select { min-height:44px; border:1px solid #e6eaf0; color:#4a5669; background:#fcfdff; border-radius:7px; width:100%; padding:10px 11px; font-size:12px; }
input:disabled,select:disabled { opacity:.5; }
input[type=number] { -moz-appearance:textfield; }
input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.field-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-top:12px; }
.unit-field { display:flex; align-items:center; min-height:44px; padding:0 10px; gap:8px; border:1px solid #e6eaf0; background:#fcfdff; border-radius:7px; min-width:0; }
.unit-field>span { font-size:10px; color:#9da6b4; }
.unit-field>span:last-child { font-size:9px; }
.unit-field input { min-width:0; padding:10px 0; border:0; background:transparent; border-radius:0; flex:1; text-align:right; font-variant-numeric:tabular-nums; }
.unit-field:focus-within { border-color:#a4b6ff; }
.type-controls { margin-top:17px; }
.text-style-row { display:flex; align-items:flex-end; gap:10px; margin-top:12px; }
.text-alignment { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin-bottom:12px; }
.text-alignment button { display:flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; padding:8px; border:1px solid #e2e7ef; border-radius:7px; background:#f8faff; color:#71809b; }
.text-alignment button[aria-pressed=true] { color:var(--blue); border-color:#cbd7ff; background:var(--blue-pale); }
.text-alignment button svg { width:19px; height:19px; }
.text-line-height-field { display:flex; align-items:center; gap:8px; }
.text-line-height-field input { min-width:0; flex:1; font-variant-numeric:tabular-nums; }
.text-line-height-field>span { color:#8a94a5; font-size:11px; }
.size-field { flex:1; display:flex; flex-direction:column; gap:7px; font-size:11px; color:#8a94a5; }
.size-field input { font-variant-numeric:tabular-nums; }
.bold-toggle { display:flex; align-items:center; justify-content:center; position:relative; flex-shrink:0; width:44px; height:44px; cursor:pointer; }
.bold-toggle input { position:absolute; opacity:0; width:1px; height:1px; }
.bold-toggle>span[aria-hidden] { width:44px; height:44px; display:flex; align-items:center; justify-content:center; border-radius:7px; font:700 16px Georgia,serif; background:#f4f6f9; color:#71809b; border:1px solid #e6eaf0; }
.bold-toggle input:checked+span { color:var(--blue); background:var(--blue-pale); border-color:#dce4ff; }
.bold-toggle:focus-within { outline:3px solid #9cb1ff; outline-offset:3px; border-radius:7px; }
.field-hint { font-size:10px; color:#9aa3b2; line-height:1.6; margin:8px 0 0; }
.text-effects-panel { margin-top:14px; }
.text-effect-toggle { display:flex; align-items:center; gap:9px; min-height:44px; font-size:12px; font-weight:650; cursor:pointer; }
.text-effect-toggle input { width:18px; height:18px; margin:0; accent-color:var(--blue); }
.text-effect-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 10px; border:0; padding:2px 0 10px; margin:0; min-width:0; }
.text-effect-fields:disabled { opacity:.45; }
.text-effect-number,.text-effect-color { display:flex; flex-direction:column; gap:7px; min-width:0; font-size:11px; color:#71809b; }
.text-effect-number input { width:100%; min-width:0; min-height:44px; font-variant-numeric:tabular-nums; }
.text-effects-reset { width:100%; margin-top:6px; }
.canvas-text-editor { cursor:text; }
.color-row { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:18px; }
.color-row .field-label { margin:0; }
input[type=color] { width:60px; height:44px; padding:6px; border:1px solid #e6eaf0; border-radius:7px; background:#fff; cursor:pointer; }
input[type=color]::-webkit-color-swatch-wrapper { padding:0; }
input[type=color]::-webkit-color-swatch { border:0; border-radius:4px; }
.opacity-row { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:14px; }
.opacity-row .field-label { margin:0; }
.opacity-row output { color:#8590a1; font-size:10px; font-variant-numeric:tabular-nums; }
.opacity-range { display:block; width:100%; height:32px; margin:0; accent-color:var(--blue); cursor:pointer; }
.image-controls { margin-top:14px; border-top:1px solid var(--line); min-width:0; }
.photo-replacement { padding-top:14px; padding-bottom:4px; }
.photo-replacement .photo-note { margin:8px 0; color:#647087; font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
.photo-control-group { border-bottom:1px solid var(--line); min-width:0; }
.photo-control-group>summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:48px; padding:12px 1px; list-style:none; font-size:11px; font-weight:650; color:#647087; cursor:pointer; border-radius:5px; touch-action:manipulation; }
.photo-control-group>summary::-webkit-details-marker { display:none; }
.photo-control-group>summary::after { content:""; width:6px; height:6px; margin-right:3px; border-right:1.5px solid #9ba6b6; border-bottom:1.5px solid #9ba6b6; transform:rotate(45deg); flex-shrink:0; }
.photo-control-group[open]>summary::after { transform:rotate(225deg); }
.photo-control-group>summary:hover { color:var(--blue); }
.photo-control-group>summary:focus-visible { outline:3px solid #9cb1ff; outline-offset:1px; }
.photo-control-content { padding:1px 0 15px; min-width:0; }
.photo-button { min-height:44px; width:100%; display:flex; align-items:center; justify-content:center; gap:7px; padding:10px 9px; border:1px solid #e2e7ef; background:#f8faff; border-radius:7px; font-size:11px; font-weight:550; line-height:1.6; overflow-wrap:anywhere; }
.photo-button svg { width:17px; height:17px; }
.photo-button-primary { background:var(--blue); border-color:var(--blue); color:white; }
.photo-button-primary:hover:not(:disabled) { background:var(--blue-dark); border-color:var(--blue-dark); }
.photo-button+.photo-button { margin-top:8px; }
.crop-controls { margin-top:12px; }
.crop-coordinate-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.crop-coordinate { display:flex; flex-direction:column; gap:7px; color:#8a94a5; font-size:10px; min-width:0; }
.crop-coordinate input { min-width:0; font-variant-numeric:tabular-nums; }
.crop-ratio-label { margin-top:13px; }
.crop-controls>.photo-button { margin-top:12px; }
.photo-button-row { display:flex; gap:8px; margin-top:8px; }
.photo-button-row>.photo-button { min-width:0; flex:1; margin-top:0; }
.adjustment-control+.adjustment-control { margin-top:9px; }
.adjustment-label { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:11px; color:#8a94a5; }
.adjustment-label output { color:#66758e; font-size:10px; font-variant-numeric:tabular-nums; }
.adjustment-control input[type=range] { display:block; width:100%; height:36px; margin:0; accent-color:var(--blue); cursor:pointer; }
.photo-control-content>.adjustment-control:last-of-type { margin-bottom:8px; }
.background-notice { font-size:11px; line-height:1.8; color:#8a94a5; margin:0 0 12px; overflow-wrap:anywhere; }
.background-status { min-height:0; margin:8px 0 0; color:#647087; font-size:10px; line-height:1.7; overflow-wrap:anywhere; }
.background-status:empty { display:none; }
.photo-restore-button { margin-top:14px; background:white; color:#78879c; }
.mosaic-overlay { position:absolute; z-index:3; transform-origin:center; touch-action:none; overflow:hidden; cursor:crosshair; outline:1px solid var(--blue); }
.mosaic-region { position:absolute; border:1px dashed #315df4; cursor:move; }
.mosaic-region.is-selected { border:2px solid #315df4; box-shadow:0 0 0 1px #fff; }
.mosaic-handle { position:absolute; width:32px; height:32px; z-index:1; }
.mosaic-handle::after { content:""; display:block; width:10px; height:10px; background:white; border:2px solid #315df4; }
.mosaic-handle[data-corner=nw] { top:-2px; left:-2px; cursor:nwse-resize; }
.mosaic-handle[data-corner=ne] { top:-2px; right:-2px; transform:scaleX(-1); cursor:nesw-resize; }
.mosaic-handle[data-corner=sw] { bottom:-2px; left:-2px; transform:scaleY(-1); cursor:nesw-resize; }
.mosaic-handle[data-corner=se] { bottom:-2px; right:-2px; transform:scale(-1); cursor:nwse-resize; }
#mosaic-list { width:100%; min-height:112px; font-size:12px; padding:5px; }
#mosaic-list option { padding:5px; }
.mosaic-coordinates { margin:12px 0; }
.adjustment-control input[type=range],.opacity-range { height:44px; }
.selection-empty { font-size:11px; color:#99a2b1; line-height:1.8; margin:0 0 10px; }
.layers-section { padding:20px 12px 0; flex:1; min-height:0; display:flex; flex-direction:column; overflow:hidden; }
.layers-section>.section-heading { padding:0 8px; margin-bottom:6px; }
.layer-count { color:#97a0af; background:#f5f6f9; border-radius:5px; font-size:9px; min-width:20px; text-align:center; padding:1px 5px; }
.layers-intro { font-size:9px; color:#a1a9b7; margin:0 8px 14px; }
.layer-list { display:flex; flex-direction:column; gap:4px; min-height:0; overflow-y:auto; flex:1; }
.layer-select,.group-select { cursor:grab; }
.layer-list.is-layer-order-dragging,.layer-list.is-layer-order-dragging * { cursor:grabbing!important; user-select:none; }
.layer-list.is-layer-order-dragging.is-order-invalid,.layer-list.is-layer-order-dragging.is-order-invalid * { cursor:not-allowed!important; }
.layer-row.is-order-source,.layer-group-row.is-order-source { outline:1px dashed #8da7fc; outline-offset:-2px; }
.layer-order-marker { position:fixed; height:3px; margin-top:-1.5px; background:var(--blue); border-radius:3px; z-index:30; pointer-events:none; box-shadow:0 0 0 1px #fff; }
.layer-order-marker::before { content:""; position:absolute; left:0; top:-2px; width:7px; height:7px; border-radius:50%; background:var(--blue); }
.layer-row { min-height:58px; display:flex; align-items:center; gap:0; border:1px solid transparent; border-radius:8px; padding:3px 3px 3px 8px; }
.layer-row[aria-selected=true],.layer-row.is-selected,.layer-row.selected { background:#f0f4ff; border-color:#e1e8ff; }
.layer-row.is-hidden { opacity:.5; }
.layer-row.is-group-member { padding-left:22px; }
.layer-group-row { display:flex; align-items:center; min-width:0; min-height:52px; gap:0; padding:3px; border:1px solid #e6eaf1; border-radius:8px; background:#f8f9fc; }
.layer-group-row.is-selected,.layer-group-row[aria-selected=true] { background:#eef2ff; border-color:#d4deff; }
.layer-group-row.is-hidden { opacity:.5; }
.group-toggle { display:inline-flex; align-items:center; justify-content:center; min-width:44px; width:44px; min-height:44px; padding:0; flex-shrink:0; border-radius:5px; color:#7c899f; }
.group-toggle svg { width:16px; height:16px; transition:transform .12s ease; }
.group-toggle[aria-expanded=false] svg { transform:rotate(-90deg); }
.group-select { display:flex; align-items:center; gap:6px; min-width:0; min-height:44px; flex:1; padding:3px 4px; border-radius:5px; text-align:left; }
.group-select:hover:not(:disabled) { background:transparent; }
.group-label { display:block; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; font-weight:650; color:#59677d; }
.group-count { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; min-width:20px; padding:1px 5px; border-radius:5px; background:#e9edf5; color:#6e7b93; font-size:9px; font-weight:500; font-variant-numeric:tabular-nums; }
.layer-select { display:flex; align-items:center; gap:10px; min-width:0; min-height:46px; padding:0; flex:1; text-align:left; border-radius:5px; }
.layer-select:hover:not(:disabled) { background:transparent; }
.layer-thumb { width:34px; height:34px; flex-shrink:0; display:flex; align-items:center; justify-content:center; border-radius:5px; background:#fff; border:1px solid #e7ebf1; overflow:hidden; color:#7a8698; font-size:15px; }
.layer-thumb img { width:100%; height:100%; object-fit:contain; }
.layer-thumb svg { width:16px; height:16px; }
.layer-label { display:flex; flex-direction:column; gap:2px; min-width:0; overflow:hidden; font-size:11px; font-weight:550; color:#59677d; }
.layer-label>span:first-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.layer-meta { font-size:9px; font-weight:400; color:#a1aaba; }
.layer-actions { display:flex; align-items:center; gap:0; flex-shrink:0; }
.layer-actions .icon-button,.layer-row>.icon-button { min-width:44px; width:44px; height:44px; border-radius:5px; color:#9ba6b6; }
.layer-actions svg,.layer-row>.icon-button svg { width:15px; height:15px; }
.layer-toolbar { display:flex; align-items:center; justify-content:center; gap:9px; padding:8px 3px; margin-top:8px; border-top:1px solid var(--line); flex-shrink:0; }
.layer-toolbar .icon-button { color:#8793a5; }
.layer-toolbar svg { width:17px; height:17px; }
.layer-toolbar-divider { width:1px; height:18px; background:var(--line); margin:0 3px; }
.danger-button:hover:not(:disabled) { background:#fff0ee; color:#bd5148; }
.inspector-note { display:flex; align-items:center; justify-content:center; gap:6px; color:#a1aaba; font-size:9px; padding:10px 14px; margin-top:auto; flex-shrink:0; }
.inspector-note svg { width:12px; height:12px; }
.inspector-note p { margin:0; }
.project-dialog { width:min(620px,calc(100vw - 32px)); max-width:none; max-height:calc(100vh - 32px); max-height:calc(100dvh - 32px); padding:0; border:1px solid var(--line); border-radius:16px; background:#fff; color:var(--ink); box-shadow:0 20px 90px #13254338; overflow:hidden; }
.project-dialog::backdrop { background:#18263b70; }
.project-dialog-shell { display:flex; flex-direction:column; max-height:calc(100vh - 34px); max-height:calc(100dvh - 34px); }
.project-dialog-header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:20px 20px 15px; border-bottom:1px solid var(--line); flex-shrink:0; }
.project-dialog-header h2 { margin:0 0 7px; font-size:18px; }
.project-dialog-header p,.project-note { margin:0; font-size:12px; line-height:1.75; color:#657187; overflow-wrap:anywhere; }
.project-close { min-width:44px; min-height:44px; border-radius:8px; font-size:25px; line-height:1; color:#758197; flex-shrink:0; }
.project-body { min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:0 20px 20px; }
.project-section { padding:20px 0; border-bottom:1px solid var(--line); }
.project-section h3 { margin:0 0 9px; font-size:14px; }
.project-field { display:flex; flex-direction:column; gap:7px; margin:14px 0 12px; font-size:12px; color:#657187; }
.project-field input { font-size:13px; }
.project-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.project-button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; min-width:44px; padding:10px 14px; border:1px solid #dce3ef; border-radius:8px; font-size:12px; font-weight:600; text-align:center; line-height:1.5; overflow-wrap:anywhere; }
.project-button-primary { background:var(--blue); color:#fff; border-color:var(--blue); }
.project-button-primary:hover:not(:disabled) { background:var(--blue-dark); }
.project-result,.project-candidate { margin-top:15px; padding:14px; background:#f5f7fc; border:1px solid #e3e8f2; border-radius:10px; }
.project-result h4,.project-candidate h4 { font-size:13px; margin:0 0 7px; }
.project-info { font-size:12px; line-height:1.75; margin:0 0 8px; overflow-wrap:anywhere; }
.project-warning { color:#875017; background:#fff7e9; border-radius:6px; padding:10px 12px; margin:10px 0; font-size:12px; line-height:1.75; }
.project-status { font-size:12px; line-height:1.8; color:#506079; margin:15px 0 0; overflow-wrap:anywhere; }
.project-status:empty { display:none; }
.project-limits { margin-top:12px; }
.smart-guides-control { display:flex; align-items:center; gap:6px; }
.canvas-settings-button { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; min-width:44px; padding:7px 10px; border:1px solid var(--line); border-radius:7px; font-size:11px; color:#58677e; background:#fff; }
.canvas-settings-button svg { width:16px; height:16px; }
.canvas-dialog form { display:flex; flex-direction:column; min-height:0; overflow:hidden; margin:0; }
.canvas-dialog .project-footer { gap:8px; flex-wrap:wrap; }
.canvas-dimensions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:16px 0; }
.canvas-unit-field { display:flex; align-items:center; gap:8px; }
.canvas-unit-field input { min-width:0; width:100%; }
.canvas-unit-field span { color:#718098; font-size:12px; }
.canvas-presets { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.canvas-current,.canvas-mode-note { font-size:12px; line-height:1.75; margin:10px 0; overflow-wrap:anywhere; }
.canvas-anchor-fieldset { border:0; padding:0; min-width:0; margin:16px 0; }
.canvas-anchor-fieldset legend { font-size:12px; font-weight:600; margin-bottom:8px; }
.canvas-anchor-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; max-width:360px; }
.canvas-anchor-option { display:flex; align-items:center; justify-content:center; gap:6px; min-height:44px; border:1px solid #dce3ef; border-radius:7px; padding:7px; font-size:12px; cursor:pointer; }
.canvas-anchor-option:has(input:checked) { color:var(--blue); border-color:#9aafff; background:var(--blue-pale); }
.canvas-anchor-option input { width:16px; height:16px; margin:0; flex-shrink:0; }
.canvas-confirmation { margin:14px 0; padding:12px; border:1px solid #edcf9d; border-radius:9px; background:#fff8ec; }
.autosave-status { color:#546a5c; font-size:10px; line-height:1.6; overflow-wrap:anywhere; }
.autosave-status[data-phase="error"],.autosave-status[data-phase="unavailable"],.autosave-status[data-phase="conflict"] { color:#97551c; }
.workspace-status { flex-wrap:wrap; gap:3px 14px; }
.autosave-status { margin-left:auto; }
.draft-confirm { margin-top:12px; padding:12px; border:1px solid #edcf9d; border-radius:8px; background:#fff8ec; }
.draft-confirm p { font-size:12px; line-height:1.75; margin:0; }
.draft-status { margin:10px 0; font-size:12px; line-height:1.75; overflow-wrap:anywhere; }
.project-footer { display:flex; justify-content:flex-end; padding:12px 20px; border-top:1px solid var(--line); background:#fafbfe; flex-shrink:0; }
@media (min-width:761px) {
  .properties-section:has(#multi-selection-controls:not([hidden])) { max-height:min(50%,max(30%,calc(100% - 340px))); padding-block:16px 12px; }
  .properties-section:has(#multi-selection-controls:not([hidden]))>.section-heading { margin-bottom:10px; }
  .inspector:has(#multi-selection-controls:not([hidden])) .layers-section { min-height:0; }
}
@media (min-width:761px) and (max-height:560px) {
  .layers-intro { display:none; }
  .layers-section { padding-top:12px; }
}
@media (max-width:1100px) {
  .editor-help-button>span,.editor-more>summary>span { display:none; }
  .editor-header { padding-inline:18px; gap:14px; }
  .identity { gap:14px; }
  .header-actions { gap:4px; }
  .reset-button span { display:none; }
  .reset-button { width:44px; padding:0; justify-content:center; }
  .history-actions { margin-right:2px; padding-right:6px; }
  .workspace-toolbar { padding-inline:12px; }
  .document-size { display:none; }
  .canvas-stage { padding-inline:22px; }
  .workspace-status { flex-wrap:wrap; gap:3px 12px; }
  .local-note { font-size:8px; }
}
@media (max-width:760px) {
  .editor-help-button,.editor-more>summary { padding:8px; }
  .header-actions .stitch-nav-link { font-size:10px; padding-inline:8px; }
  .header-actions .primary-button>span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
  .header-actions .primary-button { width:44px; padding:0; }
  .editor-header { min-height:66px; padding:0 12px; gap:8px; }
  .identity { gap:8px; }
  .brand { gap:7px; font-size:15px; }
  .brand-mark { width:29px; height:29px; }
  .header-divider,.editor-title h1,.history-actions,.reset-button { display:none; }
  .editor-title { gap:0; }
  .prototype-badge { font-size:9px; padding:2px 5px; }
  .header-actions { gap:3px; }
  .language-button { min-width:44px; padding:0 3px; font-size:10px; }
  .project-menu-button { padding:0 9px; gap:4px; font-size:10px; }
  .project-menu-button svg { width:15px; height:15px; }
  .primary-button { min-height:44px; gap:5px; padding:0 11px; border-radius:8px; font-size:10px; }
  .primary-button svg { width:15px; height:15px; }
  .editor-body { display:flex; flex-direction:column; position:relative; }
  .workspace { flex:1; order:1; }
  .workspace-toolbar { min-height:51px; padding:0 9px 0 13px; gap:6px; }
  .workspace-toolbar { flex-wrap:wrap; row-gap:0; padding-block:3px; }
  .workspace-toolbar .mobile-history { order:0; }
  .workspace-toolbar .zoom-controls { order:1; margin-left:auto; }
  .smart-guides-control { order:2; flex-basis:100%; display:flex; margin:0; padding-top:3px; border-top:1px solid var(--line); }
  .smart-guides-toggle { padding-block:7px; }
  .mobile-history { display:flex; flex-shrink:0; }
  .workspace-toolbar .document-info { display:none; }
  .document-info { font-size:9px; gap:5px; max-width:44%; }
  .document-dot { width:4px; height:4px; }
  .zoom-controls .icon-button { width:44px; min-width:44px; }
  #zoom-value { min-width:34px; font-size:10px; }
  .zoom-divider { margin:0 3px; }
  .fit-button { min-width:44px; padding:0 3px; }
  .fit-button span { display:none; }
  .canvas-stage { padding:28px 16px 56px; }
  .canvas-hint { font-size:9px; bottom:16px; }
  .workspace-status { min-height:30px; padding:6px 13px; font-size:9px; }
  .workspace-status #status { max-width:100%; }
  .toolrail { order:2; flex-direction:row; min-height:72px; justify-content:center; border:0; border-top:1px solid var(--line); padding:5px 8px calc(5px + env(safe-area-inset-bottom)); gap:8px; }
  .toolrail-group { flex-direction:row; justify-content:center; width:auto; gap:8px; }
  .tool-button { min-width:50px; min-height:56px; padding:7px 5px 5px; gap:4px; border-radius:9px; }
  .tool-button span { font-size:9px; }
  .tool-button svg { width:21px; height:21px; }
  .tool-divider,.toolrail-foot { display:none; }
  .inspector-toggle { display:flex; }
  .inspector { position:absolute; z-index:10; top:0; right:0; bottom:calc(72px + env(safe-area-inset-bottom)); width:min(320px,100%); border:0; border-left:1px solid #e0e6ef; box-shadow:-12px 0 45px #24355220; border-radius:12px 0 0 0; }
  .inspector-mobile-header { display:flex; align-items:center; justify-content:space-between; min-height:54px; padding:5px 12px 5px 20px; border-bottom:1px solid var(--line); position:sticky; top:0; background:white; z-index:2; }
  .inspector-mobile-header strong { font-size:12px; }
  .properties-section { padding-top:18px; }
  .inspector-note { min-height:44px; }
}
@media (max-width:360px) {
  .editor-header { padding-inline:9px; }
  .brand { font-size:13px; gap:6px; }
  .brand-mark { width:27px; height:27px; }
  .identity { gap:5px; }
  .prototype-badge { font-size:8px; padding:2px 4px; }
  .header-actions { gap:0; }
  .project-menu-button { width:44px; padding:0; }
  .project-menu-button span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
  .project-dialog { width:calc(100vw - 16px); max-height:calc(100dvh - 16px); border-radius:12px; }
  .project-dialog-shell { max-height:calc(100dvh - 18px); }
  .project-dialog-header { padding:14px 14px 12px; }
  .project-dialog-header h2 { font-size:16px; }
  .project-body { padding-inline:14px; }
  .project-actions { flex-direction:column; }
  .project-actions>.project-button { width:100%; }
  .primary-button { padding-inline:8px; }
  .toolrail { gap:5px; padding-inline:5px; }
  .toolrail-group { gap:5px; }
  .tool-button { min-width:49px; }
  .document-info { max-width:38%; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; }
}
