*{box-sizing:border-box}body{margin:0;font-family:-apple-system,Hiragino Sans,sans-serif;background:#e8eaef;color:#1a1d24}.editor-root{height:100vh;display:grid;grid-template-areas:"header" "stage";grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}.editor-root[data-history=open]{grid-template-areas:"header header" "stage drawer";grid-template-columns:minmax(0,1fr) 22rem}.editor-header{grid-area:header;background:#17181d;color:#eee;display:flex;align-items:center;flex-wrap:wrap}.editor-header-global,.editor-header-site{display:flex;align-items:center;gap:8px;min-width:0;min-height:44px;padding:6px 12px}.editor-header-global{border-right:1px solid #2b2f38}.editor-header-site{flex:1}.header-status{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}.editor-brand{font-size:13px;letter-spacing:.02em}.editor-site-name{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.header-spacer{flex:1}.header-meta{color:#aeb8c8;font-size:11px}.editor-header button,.flow-header button{flex:none;background:transparent;color:#bbb;border:0;padding:7px 10px;border-radius:8px;cursor:pointer;font-size:13px;white-space:nowrap}.editor-header button.on{background:#2e3340;color:#fff}.editor-header button:disabled{opacity:.4;cursor:default}.state-pill{display:inline-flex;align-items:center;gap:8px;min-width:0;padding:3px 10px;border-radius:999px;background:#262b35;font-size:11.5px}.state-text{overflow:hidden;max-width:28rem;text-overflow:ellipsis;white-space:nowrap}.state-pill[data-tone=ready]{background:#17462f;color:#a9e5c3}.state-pill[data-tone=working]{background:#1e2f4d;color:#b6cdf3}.state-pill[data-tone=attention]{background:#4a3a12;color:#f0d79a}.state-pill[data-tone=error]{background:#4a1f1f;color:#ffb4ab}.state-pill[data-tone=readonly]{background:#2b303a;color:#c3cad6}.state-note{color:inherit;font-size:10.5px;opacity:.85}.state-action{border:1px solid currentColor!important;border-radius:6px!important;padding:1px 8px!important;color:inherit!important;font-size:11px!important}.header-menu{position:relative;display:inline-flex;min-width:0}.header-menu>button{overflow:hidden;max-width:12rem;text-overflow:ellipsis}.menu-scrim{position:fixed;z-index:10;top:0;right:0;bottom:0;left:0;padding:0!important;background:transparent;border:0}.menu-popup{position:absolute;z-index:11;top:calc(100% + 4px);min-width:12rem;max-height:60vh;overflow-y:auto;padding:6px;border:1px solid #d5dbe3;border-radius:10px;background:#fff;color:#2c333d;box-shadow:0 10px 32px #00000038}.menu-popup[data-align=start]{left:0}.menu-popup[data-align=end]{right:0}.menu-popup button{display:block;width:100%;padding:8px 10px!important;border-radius:7px;color:#2c333d!important;text-align:left}.menu-popup button:hover:not(:disabled){background:#eef1f6}.menu-popup button[aria-current=true]{font-weight:700}.menu-popup hr{margin:5px 2px;border:0;border-top:1px solid #e4e8ee}.menu-kicker{margin:4px 10px 8px;color:#6d7684;font-size:11px}.preview-stage{position:relative;grid-area:stage;min-width:0;min-height:0;display:flex;flex-direction:column;background:#e8eaef}.notices{display:flex;flex-direction:column;gap:8px;padding:0 12px}.notices:not(:empty){padding-top:8px}.notices .flow-notice{display:flex;align-items:center;gap:12px;margin:0}.flow-notice button{flex:none;border:1px solid currentColor;border-radius:6px;padding:3px 10px;background:transparent;color:inherit;cursor:pointer;font:inherit}.preview{flex:1;min-height:0;display:flex;justify-content:center;background:#e8eaef}.preview iframe{border:0;width:100%;max-width:100%;height:100%;background:#fff}.preview-bar{display:flex;justify-content:flex-end;gap:4px;padding:6px 12px 0}.preview-bar button{border:1px solid #c4ccd8;border-radius:7px;padding:3px 10px;background:#fff;color:#3f4855;cursor:pointer;font:inherit;font-size:12px}.preview-bar button[aria-pressed=true]{border-color:#24397c;background:#e5ebff;color:#24397c}.history-drawer{grid-area:drawer;min-height:0;display:flex;flex-direction:column;background:#fff;border-left:1px solid #d5dbe3;color:#3f4855;font-size:13px}.history-drawer header{display:flex;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid #e1e4e8}.history-body{flex:1;min-height:0;overflow:auto;padding:14px}.history-note{margin:0 0 10px;color:#6d7684;font-size:12px}.history-note button{margin-left:8px}.panel-close{margin-left:auto;border:0;background:transparent;color:#5c6570;cursor:pointer;font-size:12px}.history-undo{margin:0 0 12px;border:0;border-radius:8px;padding:8px 14px;background:#3a56a6;color:#fff;font:inherit;font-weight:700;cursor:pointer}.history-undo:disabled{opacity:.45;cursor:default}@media(max-width:959px){.editor-root[data-history=open]{grid-template-areas:"header" "stage";grid-template-columns:minmax(0,1fr)}.history-drawer{position:fixed;z-index:11;top:0;right:0;bottom:0;width:min(22rem,100vw);box-shadow:0 8px 32px #0000002e}.editor-header-global{flex:1;border-right:0;padding-right:0}.editor-header-site{display:contents}.editor-header-site>.header-spacer{display:none}.editor-header-site>.header-menu{margin-right:12px}.header-status{order:1;flex:1 1 100%;padding:0 12px 8px}.state-pill{flex-wrap:wrap;border-radius:14px}.state-text{max-width:none;overflow:visible;white-space:normal}.flow-main{padding:20px 0 40px}.site-cards{grid-template-columns:minmax(0,1fr)}}.auth-gate{min-height:100vh;display:grid;place-items:center}.auth-card{width:320px;background:#fff;border-radius:14px;padding:28px;box-shadow:0 8px 32px #0000001f;display:flex;flex-direction:column;gap:12px}.auth-card form{display:flex;flex-direction:column;gap:12px}.auth-card h1{margin:0 0 4px;font-size:22px}.auth-card label{font-size:12px;color:#444;display:flex;flex-direction:column;gap:4px}.auth-card input{padding:9px 10px;border:1px solid #ccc;border-radius:7px;font:inherit}.auth-card input[readonly]{background:#f3f5f8;color:#5c6570}.auth-card button{padding:10px;border:0;border-radius:7px;background:#3a56a6;color:#fff;font-weight:700;cursor:pointer}.auth-card button:disabled{opacity:.45;cursor:default}.auth-card .error{color:#b3261e;font-size:12.5px;margin:0}.invite-title{margin:0;font-size:15px}.invite-summary,.invite-note{margin:0;color:#5c6570;font-size:12.5px;line-height:1.6}.preview-empty{display:grid;place-content:center;justify-items:center;gap:12px;text-align:center;width:100%;padding:24px;color:#4c5666;font-size:14px}.preview-empty h2{margin:0;font-size:18px;color:#1a1d24}.preview-empty p{margin:0;max-width:34rem;line-height:1.7;overflow-wrap:anywhere}.preview-empty .preview-empty-detail{color:#6d7684;font-size:12.5px}.block-toolbar{position:absolute;z-index:6;display:flex;align-items:center;gap:2px;padding:3px 4px;border:1px solid #cfd6e0;border-radius:10px;background:#fff;box-shadow:0 4px 18px #0000002e;font-size:12px}.block-toolbar-name{padding:0 8px;color:#4c5666;font-weight:700;white-space:nowrap}.block-toolbar button{border:0;border-radius:7px;padding:6px 9px;background:transparent;color:#3f4855;cursor:pointer;font:inherit;white-space:nowrap}.block-toolbar button:hover:not(:disabled){background:#eef1f6}.block-toolbar button.on{background:#e5ebff;color:#24397c}.block-toolbar button.danger{color:#8b2929}.block-toolbar button:disabled{opacity:.4;cursor:default}.block-toolbar[data-narrow=true]{position:fixed;z-index:9;right:8px;bottom:60px;left:8px;justify-content:space-between;border-radius:12px}.flow-root{min-height:100vh;display:flex;flex-direction:column}.flow-header{display:flex;align-items:center;gap:8px;padding:8px 14px;background:#17181d;color:#eee}.flow-header .editor-brand.text-button{width:auto;margin:0;color:#eee;background:transparent}.flow-main{width:min(52rem,calc(100vw - 32px));margin:0 auto;padding:32px 0 64px}.flow-title{margin:0 0 20px;font-size:22px}.flow-note{color:#5c6570;font-size:13px}.flow-alert{display:flex;align-items:center;gap:12px;margin:0 0 16px;padding:10px 12px;border-radius:10px;background:#fff0ef;color:#8b2929;font-size:13px}.flow-alert button{border:1px solid currentColor;border-radius:6px;padding:3px 10px;background:transparent;color:inherit;cursor:pointer;font:inherit}.flow-notice{margin:0 0 16px;padding:10px 12px;border-radius:10px;background:#eef2fb;color:#24397c;font-size:13px}.flow-empty{display:flex;flex-direction:column;align-items:flex-start;gap:12px}button.primary{border:0;border-radius:8px;padding:10px 16px;background:#3a56a6;color:#fff;font:inherit;font-weight:700;cursor:pointer}button.primary:disabled{opacity:.45;cursor:default}.site-cards,.preset-cards{display:grid;gap:10px;margin:0 0 20px;padding:0;list-style:none}.site-cards{grid-template-columns:repeat(auto-fill,minmax(15rem,1fr))}.site-cards button{display:flex;flex-direction:column;gap:6px;width:100%;padding:16px;border:1px solid #d5dbe3;border-radius:12px;background:#fff;text-align:left;font:inherit;cursor:pointer}.site-cards button:hover{border-color:#3a56a6}.site-card-state{font-size:11.5px;color:#19734b}.site-card-state[data-ready=false]{color:#8a6d20}.site-card-meta{color:#6d7684;font-size:11.5px}.site-create fieldset{margin:0 0 20px;padding:0;border:0}.site-create legend{padding:0;margin-bottom:10px;font-size:13px;font-weight:700}.preset-cards label{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;padding:14px;border:1px solid #d5dbe3;border-radius:12px;background:#fff;cursor:pointer}.preset-cards input{grid-row:span 2}.preset-cards span{color:#5c6570;font-size:12.5px}.preset-cards label:has(input:checked){border-color:#3a56a6;box-shadow:0 0 0 1px #3a56a6 inset}.site-create-field{display:block;max-width:24rem;margin-bottom:20px;font-size:13px}.site-create-field input,.site-create-field select{width:100%;margin-top:6px;padding:9px 10px;border:1px solid #ccc;border-radius:7px;font:inherit}.site-create-actions{display:flex;gap:10px;align-items:center}.site-create-actions button:not(.primary){border:0;background:transparent;color:#3a56a6;cursor:pointer;font:inherit}.history-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}.history-list li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:4px 10px;align-items:center;padding:9px 4px;border-bottom:1px solid #eef1f5}.history-time{color:#6d7684;font-size:11.5px;white-space:nowrap}.history-summary{overflow:hidden;font-size:12.5px;text-overflow:ellipsis}.history-actor{grid-column:2;color:#8790a0;font-size:11px}.history-actions{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:6px}.history-list button,.history-note button{border:1px solid #c4ccd8;border-radius:7px;padding:5px 10px;background:#fff;cursor:pointer;font:inherit;font-size:11.5px}.history-list button:disabled{opacity:.45;cursor:default}.history-confirm{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center;margin-top:6px;border-radius:8px;padding:8px;background:#f4f6fa}.history-confirm .history-note{flex:1 1 14rem;margin:0}.history-confirm button.confirm{border-color:#3a56a6;color:#3a56a6;font-weight:700}.perf-overlay{position:fixed;right:12px;bottom:12px;z-index:20;width:min(30rem,calc(100vw - 24px));max-height:42vh;overflow-y:auto;padding:8px 10px;border-radius:10px;background:#141820eb;color:#e6eaf1;font-size:11px;line-height:1.5;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;pointer-events:auto}.perf-timers{display:flex;flex-wrap:wrap;gap:10px;padding-bottom:6px;border-bottom:1px solid #39404d}.perf-timer{color:#9fd0ff}.perf-empty{color:#8b95a5}.perf-requests{list-style:none;margin:6px 0 0;padding:0}.perf-requests li{display:grid;grid-template-columns:minmax(0,1fr) 3em 4.5em;column-gap:8px;padding:2px 0}.perf-requests li[data-failed=true] .perf-status{color:#ff9c92}.perf-route{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.perf-status,.perf-total{text-align:right}.perf-phases{grid-column:1 / -1;color:#8b95a5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
