:root{--accent:#2fa39a;--accent-strong:#1e7a70;--accent-soft:#e6f4f2;--highlight:#ffe08a;--highlight-soft:#fff8e1;--danger:#b4521c;--text:#1f2a2e;--text-muted:#5b6a6e;--border:#dde3e2;--surface:#fff;--background:#f4f6f5;--canvas:#eef1f0;--dark:#1f2a2e;--radius:8px;--font:system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;--mono:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}html,body,#root,.app{height:100%;margin:0}body{font-family:var(--font);color:var(--text);background:var(--background);font-size:14px}button{font:inherit;color:inherit}kbd{font-family:var(--font);opacity:.85;margin-left:6px;font-size:11px;font-weight:500}[hidden]{display:none!important}.button{border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);cursor:pointer;white-space:nowrap;justify-content:center;align-items:center;height:36px;padding:0 14px;font-weight:600;display:inline-flex}.button:disabled{opacity:.55;cursor:default}.button-primary{background:var(--accent-strong);border-color:var(--accent-strong);color:#fff}.button-primary:hover:not(:disabled){background:#18675f}.button-danger{background:var(--danger);border-color:var(--danger);color:#fff}.button-secondary:hover:not(:disabled){background:var(--background)}.button-large{height:44px;padding:0 20px;font-size:15px}.icon-button{border-radius:var(--radius);width:34px;height:34px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;display:inline-flex}.icon-button:hover:not(:disabled){background:var(--background);color:var(--text)}.icon-button:disabled{opacity:.35;cursor:default}.link-button{color:var(--accent-strong);cursor:pointer;background:0 0;border:0;padding:0;font-size:12px;font-weight:600}.link-button:hover{text-decoration:underline}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.start{flex-direction:column;align-items:center;max-width:640px;margin:0 auto;padding:64px 16px 32px;display:flex}.logo{display:block}.start-title{margin:16px 0 4px;font-size:32px}.start-tagline{color:var(--text-muted);margin:0 0 32px}.dropzone{background:var(--surface);text-align:center;border:2px dashed #9fd1cb;border-radius:14px;width:100%;padding:40px 16px}.dropzone-over{border-color:var(--accent);background:var(--accent-soft)}.dropzone-icon{color:var(--accent)}.dropzone-title{margin:12px 0 4px;font-size:16px;font-weight:700}.dropzone-or{color:var(--text-muted);margin:0 0 14px;font-size:12px}.recent{width:100%;margin-top:32px}.recent-title{color:var(--text-muted);margin:0 0 8px;font-size:13px}.recent-list{border:1px solid var(--border);background:var(--surface);border-radius:12px;margin:0;padding:0;list-style:none;overflow:hidden}.recent-list li+li{border-top:1px solid var(--border)}.recent-item{text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:10px;width:100%;padding:14px 16px;display:flex}.recent-item:hover{background:var(--background)}.recent-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-weight:600;overflow:hidden}.recent-date{color:var(--text-muted);font-size:12px}.start-note{color:var(--text-muted);text-align:center;margin-top:32px;font-size:12px}.editor-screen{grid-template-rows:auto 1fr auto;height:100%;display:grid}.topbar{border-bottom:1px solid var(--border);background:var(--surface);align-items:center;gap:6px;min-width:0;padding:10px 20px;display:flex}.brand{cursor:pointer;background:0 0;border:0;align-items:center;gap:10px;padding:0;font-size:16px;font-weight:700;display:inline-flex}.topbar-divider{background:var(--border);width:1px;height:22px;margin:0 10px}.file-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-weight:600;overflow:hidden}.dirty-badge{background:var(--highlight-soft);color:#8a6100;border-radius:999px;flex-shrink:0;margin-left:6px;padding:2px 8px;font-size:12px;font-weight:600}.dirty-badge:before{content:"●";color:#e0a400;margin-right:4px}.topbar-spacer{flex:1}.segmented{border-radius:var(--radius);background:var(--background);margin-right:12px;padding:3px;display:inline-flex}.segmented button{height:30px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-radius:6px;padding:0 14px;font-weight:600}.segmented .segmented-active{background:var(--surface);color:var(--text);box-shadow:0 1px 2px #00000014}.topbar .button{margin-left:6px}.workspace{grid-template-columns:260px 1fr;min-height:0;display:grid}.sidebar{border-right:1px solid var(--border);background:var(--surface);flex-direction:column;min-height:0;padding:20px;display:flex}.sidebar-head{justify-content:space-between;align-items:baseline;margin-bottom:12px;display:flex}.sidebar-head h2{margin:0;font-size:14px}.sidebar-count,.sidebar-empty{color:var(--text-muted);font-size:12px}.sidebar-empty{margin:0}.change-list{margin:0 0 12px;padding:0;list-style:none;overflow-y:auto}.change{border:1px solid var(--border);border-radius:var(--radius);cursor:pointer;flex-direction:column;align-items:flex-start;gap:6px;margin-bottom:10px;padding:12px;display:flex}.change:hover{border-color:#b9c4c2}.change-active{background:var(--highlight-soft);border-color:#e6c75a}.change-label{color:var(--text-muted);font-size:12px}.change-before,.change-after{overflow-wrap:anywhere;max-width:100%;text-decoration-thickness:1px}.change-before{color:var(--text-muted)}.change-after{font-weight:600;text-decoration:none}.sidebar-note{border-radius:var(--radius);background:var(--accent-soft);color:#2b5853;gap:8px;margin:auto 0 0;padding:12px;font-size:12px;line-height:1.6;display:flex}.sidebar-note svg{color:var(--accent-strong);flex-shrink:0;margin-top:2px}.canvas{background:var(--canvas);flex-direction:column;min-width:0;min-height:0;display:flex;position:relative}.view{flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.editor-frame,.preview-frame{flex:1;min-height:0}.banner{align-items:center;gap:8px;padding:10px 16px;font-size:13px;display:flex}.banner-warning{color:#7a3a12;background:#fdf0e6}.searchbar{z-index:2;border:1px solid var(--border);background:var(--surface);border-radius:10px;align-items:center;gap:2px;padding:6px 6px 6px 10px;display:flex;position:absolute;top:12px;right:24px;box-shadow:0 6px 20px #0000001f}.searchbar input{width:220px;height:30px;font:inherit;border:0;outline:none}.searchbar-count{min-width:56px;color:var(--text-muted);text-align:right;margin-right:4px;font-size:12px}.statusbar{border-top:1px solid var(--border);background:var(--surface);color:var(--text-muted);white-space:nowrap;align-items:center;gap:20px;padding:6px 20px;font-size:12px;display:flex}.status-mode:before{content:"●";color:var(--accent);margin-right:6px}.status-readonly:before{color:var(--danger)}.statusbar-spacer{flex:1}.status-caret{text-overflow:ellipsis;overflow:hidden}.dialog{width:min(400px,100vw - 32px);color:var(--text);border:0;border-radius:14px;padding:0;box-shadow:0 16px 48px #0000002e}.dialog::backdrop{background:#1f2a2e40}.dialog-body{padding:20px 20px 16px}.dialog-title{align-items:center;gap:10px;margin:0 0 12px;font-size:16px;display:flex}.dialog-icon{color:var(--accent-strong);display:inline-flex}.dialog-warning .dialog-icon{color:var(--danger)}.dialog-content p{color:#3b484c;margin:0;line-height:1.7}.issue{border-radius:var(--radius);font-family:var(--mono);white-space:pre-wrap;overflow-wrap:anywhere;background:#f4f2ef;margin:12px 0 0;padding:12px;font-size:12px;line-height:1.7}.dialog-actions{border-top:1px solid var(--border);background:#f7f8f8;justify-content:flex-end;gap:8px;padding:14px 20px;display:flex}.toast{z-index:10;background:var(--dark);color:#fff;border-radius:12px;gap:12px;max-width:380px;padding:16px 18px;display:flex;position:fixed;bottom:48px;right:24px;box-shadow:0 12px 32px #00000040}.toast-icon{color:#7fd6cd}.toast-title{margin-bottom:2px;font-weight:700}.toast-body{color:#d5dedc;font-size:13px;line-height:1.6}
