:root{--bg:#f2f2f4;--panel:#fff;--border:#d8d8de;--text:#1d1d20;--muted:#6c6c78;--accent:#2f6fdd;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:14px}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);overscroll-behavior:none}.boot-screen{height:100%;color:var(--muted);place-items:center;display:grid}.app{flex-direction:column;height:100%;display:flex}.app-body{flex:1;min-height:0;display:flex}.toolbar{background:var(--panel);border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:6px 18px;padding:8px 12px;display:flex}.toolbar-group{align-items:center;gap:4px;display:flex}.toolbar-title{flex:240px;gap:8px;min-width:240px}.toolbar-files{margin-left:auto}.group-label{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin-right:2px;font-size:11px}.toolbar button{border:1px solid var(--border);min-width:30px;height:30px;color:var(--text);cursor:pointer;background:#fff;border-radius:6px;padding:0 9px;font-size:13px}.toolbar button:hover:not(:disabled){border-color:var(--accent)}.toolbar button.active{background:var(--accent);border-color:var(--accent);color:#fff}.title-input{min-width:0;height:30px;color:inherit;background:0 0;border:1px solid #0000;border-radius:6px;flex:1;padding:0 8px;font-size:15px;font-weight:600}.title-input:hover,.title-input:focus{border-color:var(--border);background:#fff;outline:none}.save-state{color:var(--muted);white-space:nowrap;flex-shrink:0;font-size:11px}.save-state-error{color:#c0392b}.swatches{align-items:center;gap:4px;display:flex}.swatch{cursor:pointer;border:2px solid #0000;border-radius:50%;width:22px;height:22px;padding:0}.swatch.active{border-color:var(--text)}.swatch-custom{border:1px solid var(--border);background:0 0}.width-button{place-items:center;display:grid}.width-dot{background:currentColor;border-radius:50%;display:block}.zoom-value{text-align:center;min-width:44px;color:var(--muted)}.workspace{overscroll-behavior:contain;flex:1;min-width:0;overflow:auto}.page-stack{flex-direction:column;align-items:center;gap:28px;padding:28px 16px 80px;display:flex}.page-slot{flex-direction:column;align-items:center;gap:6px;display:flex}.page{touch-action:pan-y;background:#fff;position:relative;overflow:hidden;box-shadow:0 1px 4px #0000001f}.page.focused{box-shadow:0 1px 4px #0000001f,0 0 0 2px #2f6fdd59}.workspace.pen-active .page{touch-action:none}.workspace.pen-active .text-layer{pointer-events:none}.text-layer{z-index:1;position:absolute;top:0;left:0}.text-layer-content{outline:none;min-height:100%;font-size:16px;line-height:1.7}.text-layer-content>*{margin:0 0 .75em}.text-layer-content h1{font-size:1.9em}.text-layer-content h2{font-size:1.5em}.text-layer-content p:empty:after{content:"";display:inline-block}.ink-layer{pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.wet-layer{z-index:900}.page-label{color:var(--muted);font-size:11px}.add-page{border:1px dashed var(--border);color:var(--muted);cursor:pointer;background:0 0;border-radius:8px;margin-top:4px;padding:10px 22px}.add-page:hover{border-color:var(--accent);color:var(--accent)}.layer-panel{background:var(--panel);border-left:1px solid var(--border);flex-shrink:0;width:260px;padding:14px;overflow-y:auto}.panel-section+.panel-section{margin-top:22px}.panel-section h2{text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin:0 0 8px;font-size:11px}.panel-row{gap:6px;display:flex}.layer-panel button{border:1px solid var(--border);color:inherit;cursor:pointer;background:#fff;border-radius:6px;padding:5px 8px;font-size:12px}.layer-panel button:disabled{opacity:.35;cursor:default}.layer-list{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.layer-item{border:1px solid #0000;border-radius:7px;align-items:center;gap:4px;padding:3px;display:flex}.layer-item.active{border-color:var(--accent);background:#2f6fdd12}.layer-visibility{font-size:13px;line-height:1;background:0 0!important;border:none!important}.layer-name{text-align:left;text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden;background:0 0!important;border:none!important}.layer-name-input{border:1px solid var(--accent);min-width:0;font:inherit;border-radius:6px;flex:1;padding:4px 6px}.layer-hint{color:var(--muted)}.layer-actions{gap:2px;display:flex}.layer-actions button{padding:3px 5px}.add-layer{width:100%;margin-top:8px}.panel-warning{color:#9a6b1f;margin:8px 0 0;font-size:11px}.panel-help{color:var(--muted);font-size:12px}.panel-help ul{margin:0;padding-left:16px;line-height:1.6}@media (width<=820px){.layer-panel{width:210px}}.sea-app{flex-direction:column;height:100%;display:flex}.scene-toolbar{background:var(--panel);border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:6px 16px;padding:8px 12px;display:flex}.scene-toolbar .toolbar-group{align-items:center;gap:4px;display:flex}.scene-toolbar button{border:1px solid var(--border);min-width:30px;height:30px;color:var(--text);cursor:pointer;background:#fff;border-radius:6px;padding:0 9px;font-size:13px}.scene-toolbar button:hover{border-color:var(--accent)}.scene-toolbar button.active{background:var(--accent);border-color:var(--accent);color:#fff}.scene-toolbar .swatch{cursor:pointer;border:2px solid #0000;border-radius:50%;width:22px;height:22px;padding:0}.scene-toolbar .swatch.active{border-color:var(--text)}.toolbar-file-button{border:1px solid var(--border);height:30px;color:var(--text);cursor:pointer;background:#fff;border-radius:6px;align-items:center;padding:0 9px;font-size:13px;display:inline-flex}.toolbar-file-button:hover{border-color:var(--accent)}.toolbar-file-button input[type=file]{opacity:0;width:1px;height:1px;position:absolute;overflow:hidden}.sea-error{color:#9a1c1c;background:#fde8e8;padding:8px 12px;font-size:13px}.sea-viewport{cursor:grab;touch-action:none;background:#e8e8ec;flex:1;position:relative;overflow:hidden}.sea-world{transform-origin:0 0;will-change:transform;position:absolute;top:0;left:0}.island-coastline-path{fill:#fff;stroke:#d8d4c8;stroke-width:1.5px;filter:drop-shadow(0 1px 3px #0000002e)}.island-coastline-path.overlapping{stroke-dasharray:6 5;stroke:#c08a3e}.island-label{color:var(--muted);white-space:nowrap;cursor:move;-webkit-user-select:none;user-select:none;font-size:12px;position:absolute;top:-22px;left:0}.island-thumbnail{image-rendering:pixelated}.island-layer-tiles{overflow:hidden}.ink-tile{display:block}.textbox{z-index:500}.textbox-content{outline:none;font-family:system-ui,-apple-system,sans-serif}.textbox-content p,.textbox-content h1,.textbox-content h2,.textbox-content h3{margin:0}.textbox-content p{font-size:var(--rhythm-p-size,16px);line-height:var(--rhythm-p-line,1.4)}.textbox-content h1{font-size:var(--rhythm-h1-size,28px);line-height:var(--rhythm-h1-line,1.3);font-weight:700}.textbox-content h2{font-size:var(--rhythm-h2-size,22px);line-height:var(--rhythm-h2-line,1.3);font-weight:700}.textbox-content h3{font-size:var(--rhythm-h3-size,18px);line-height:var(--rhythm-h3-line,1.3);font-weight:700}
