:root{--editor-accent:#1d4ed8;--editor-accent-strong:#1e40af;--editor-tint:#eff6ff;--editor-tint-border:#bfdbfe;--editor-bg:#f8fafc;--editor-surface:#ffffff;--editor-text:#172033;--editor-muted:#64748b;--editor-border:#e2e8f0;--editor-border-strong:#cbd5e1;--editor-danger:#b91c1c;--editor-danger-tint:#fef2f2;--editor-danger-border:#fca5a5;--editor-warn-text:#92400e;--editor-warn-tint:#fffbeb;--editor-warn-border:#fde68a;--editor-ok:#15803d;--editor-ok-tint:#f0fdf4;--editor-ok-border:#bbf7d0;--editor-radius:12px;--editor-radius-sm:8px;--editor-space:8px;--editor-shadow:0 1px 3px rgb(15 23 42/0.08);--editor-focus:0 0 0 3px rgb(29 78 216/0.14)}.editor-workspace{color:var(--editor-text);min-width:0;font-size:14px;line-height:1.6}.editor-columns{display:grid;gap:calc(var(--editor-space) * 3);min-width:0}.editor-input-pane,.editor-preview-pane{min-width:0;display:none}.editor-input-pane.is-current,.editor-preview-pane.is-current{display:block}.editor-pane-switch{display:inline-flex;width:100%;padding:4px;margin-bottom:calc(var(--editor-space) * 2);border:1px solid var(--editor-border);border-radius:999px;background:var(--editor-bg)}.editor-pane-switch button{flex:1;min-height:40px;border:0;border-radius:999px;background:transparent;color:var(--editor-muted);font-weight:600;font-size:14px}.editor-pane-switch button[aria-pressed=true]{background:var(--editor-surface);color:var(--editor-accent);box-shadow:var(--editor-shadow)}.editor-preview-pane{background:var(--editor-bg);border:1px solid var(--editor-border);border-radius:var(--editor-radius);padding:calc(var(--editor-space) * 2);overflow-wrap:anywhere}.editor-preview-header{display:flex;align-items:center;justify-content:space-between;gap:var(--editor-space);margin-bottom:calc(var(--editor-space) * 2)}.editor-preview-header strong{font-size:14px}.editor-preview-header span{font-size:12px;color:var(--editor-muted)}.editor-preview-frame{max-width:440px;margin:0 auto;border:1px solid var(--editor-border-strong);border-radius:20px;background:var(--editor-surface);padding:calc(var(--editor-space) * 2);box-shadow:var(--editor-shadow);display:grid;gap:calc(var(--editor-space) * 2)}.editor-workspace :is(input:not([type=checkbox]):not([type=radio]),select,textarea,button){max-width:100%}.editor-workspace :is(input,select,textarea):focus-visible,.editor-workspace button:focus-visible{outline:2px solid var(--editor-accent);outline-offset:2px}.editor-workspace button:disabled{opacity:.45;cursor:not-allowed}.editor-field{width:100%;min-height:44px;border:1px solid var(--editor-border-strong);border-radius:var(--editor-radius-sm);padding:10px 12px;background:var(--editor-surface);color:var(--editor-text);font-size:14px}.editor-field:focus{border-color:var(--editor-accent);outline:none;box-shadow:var(--editor-focus)}.editor-field.is-inline{width:auto;max-width:100%}.editor-field.is-title{font-size:18px;font-weight:700}.editor-field.is-compact{min-height:36px;padding:4px 8px}.editor-field.is-short{width:120px}.ui-password-field{position:relative;display:block;width:100%;min-width:0;max-width:100%}.ui-password-field>.ui-password-input{width:100%;padding-right:48px}.ui-password-field>.ui-password-input::-ms-clear,.ui-password-field>.ui-password-input::-ms-reveal{display:none}.ui-password-toggle{position:absolute;top:50%;right:4px;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:40px;height:36px;padding:0;border:0;border-radius:var(--editor-radius-sm);background:transparent;color:var(--editor-muted);cursor:pointer}.ui-password-toggle:hover{color:var(--editor-text);background:var(--editor-bg)}.ui-password-toggle:focus-visible{outline:none;box-shadow:var(--editor-focus);color:var(--editor-accent)}.ui-password-toggle:disabled{cursor:not-allowed;opacity:.5}.editor-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;border:1px solid var(--editor-border-strong);border-radius:var(--editor-radius-sm);padding:8px 14px;background:var(--editor-surface);color:var(--editor-text);font-size:14px;font-weight:600;white-space:nowrap;cursor:pointer}.editor-button:hover:not(:disabled){background:var(--editor-bg)}.editor-button:disabled{opacity:.45;cursor:not-allowed}.editor-button.is-small{min-height:32px;padding:4px 10px;font-size:13px;font-weight:500;color:var(--editor-muted)}.editor-button.is-small:hover:not(:disabled){color:var(--editor-text)}.editor-button.editor-primary,.editor-primary{background:var(--editor-accent);color:#fff;border-color:var(--editor-accent);min-height:44px;padding:10px 20px}.editor-button.editor-primary:hover:not(:disabled){background:var(--editor-accent-strong)}.editor-button.editor-danger,.editor-danger{color:var(--editor-danger)}.editor-button.editor-primary.is-danger{background:var(--editor-danger);border-color:var(--editor-danger)}.editor-button.editor-primary.is-danger:hover:not(:disabled){background:var(--editor-danger);filter:brightness(.9)}.editor-button.is-wrap{white-space:normal;text-align:center}.editor-button.editor-danger:hover:not(:disabled){background:var(--editor-danger-tint);border-color:var(--editor-danger-border)}.editor-button.is-ghost{border-color:transparent;background:transparent}.editor-button svg{width:16px;height:16px;flex:none}.editor-card{border:1px solid var(--editor-border);border-radius:var(--editor-radius);background:var(--editor-surface);padding:calc(var(--editor-space) * 2);box-shadow:var(--editor-shadow);overflow-wrap:anywhere;min-width:0;transition:border-color .15s,box-shadow .15s}.editor-card:focus-within{border-color:var(--editor-accent);box-shadow:var(--editor-focus)}.editor-card.is-plain{box-shadow:none}.editor-card-header{justify-content:space-between;gap:var(--editor-space);margin-bottom:calc(var(--editor-space) * 1.5)}.editor-card-footer,.editor-card-header{display:flex;align-items:center;flex-wrap:wrap}.editor-card-footer{gap:4px;margin-top:calc(var(--editor-space) * 1.5);padding-top:calc(var(--editor-space) * 1.5);border-top:1px solid var(--editor-border)}.editor-card-link{color:var(--editor-text);text-decoration:none}.editor-card-link:focus-visible,.editor-card-link:hover{color:var(--editor-accent);text-decoration:underline}.editor-muted{color:var(--editor-muted);font-size:12px}.editor-label{display:block;font-size:13px;font-weight:600;color:var(--editor-text);margin-bottom:4px}.editor-label .editor-muted{font-weight:400;margin-left:6px}.editor-error{border:1px solid var(--editor-danger-border);border-radius:var(--editor-radius-sm);color:var(--editor-danger);background:var(--editor-danger-tint)}.editor-error,.editor-notice{padding:10px 12px;font-size:14px}.editor-notice{border:1px solid var(--editor-ok-border);border-radius:var(--editor-radius-sm);color:var(--editor-ok);background:var(--editor-ok-tint)}.editor-info{border-left:3px solid var(--editor-accent);border-radius:0 var(--editor-radius-sm) var(--editor-radius-sm) 0;padding:8px 12px;background:var(--editor-tint);font-size:13px}.editor-num{justify-content:center;min-width:28px;height:28px;padding:0 8px;background:var(--editor-tint);color:var(--editor-accent);font-weight:700}.editor-num,.editor-pill{display:inline-flex;align-items:center;border-radius:999px;font-size:12px;white-space:nowrap}.editor-pill{gap:6px;padding:4px 10px;font-weight:600;background:var(--editor-bg);color:var(--editor-muted);border:1px solid var(--editor-border)}.editor-pill.is-warn{background:var(--editor-warn-tint);color:var(--editor-warn-text);border-color:var(--editor-warn-border)}.editor-pill.is-ok{background:var(--editor-ok-tint);color:var(--editor-ok);border-color:var(--editor-ok-border)}.editor-pill.is-accent{background:var(--editor-tint);color:var(--editor-accent);border-color:var(--editor-tint-border)}.editor-pill.is-wrap{white-space:normal;text-align:left;line-height:1.4}.editor-pill.is-danger{background:var(--editor-danger-tint);color:var(--editor-danger);border-color:var(--editor-danger-border)}.tag-chip{display:inline-flex;align-items:center;gap:6px}.tag-chip-dot{display:inline-block;flex:none;width:10px;height:10px;border-radius:50%;box-shadow:0 0 0 1px var(--editor-surface),0 0 0 2px var(--editor-text)}.tag-chip-label{color:var(--editor-text)}.editor-switch{position:relative;display:inline-flex;align-items:center;gap:10px;min-height:44px;cursor:pointer;font-size:14px}.editor-switch input{position:absolute;opacity:0;width:1px;height:1px}.editor-switch .knob{position:relative;width:40px;height:24px;border-radius:999px;background:var(--editor-border-strong);transition:background .15s;flex:none}.editor-switch .knob:after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgb(0 0 0/.2);transition:transform .15s}.editor-switch input:checked+.knob{background:var(--editor-accent)}.editor-switch input:checked+.knob:after{transform:translateX(16px)}.editor-switch input:focus-visible+.knob{outline:2px solid var(--editor-accent);outline-offset:2px}.editor-segmented{position:relative;display:inline-flex;flex-wrap:wrap;gap:4px;padding:4px;border:1px solid var(--editor-border);border-radius:999px;background:var(--editor-bg)}.editor-segmented button,.editor-segmented label{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:6px 14px;border:0;border-radius:999px;background:transparent;cursor:pointer;color:var(--editor-muted);font-weight:600;font-size:14px}.editor-segmented button[aria-pressed=true],.editor-segmented label:has(input:checked){background:var(--editor-surface);color:var(--editor-accent);box-shadow:var(--editor-shadow)}.editor-segmented input{position:absolute;opacity:0;width:1px;height:1px}.editor-segmented label:has(input:focus-visible){outline:2px solid var(--editor-accent)}.editor-segmented svg{width:16px;height:16px}.editor-chips{display:flex;flex-wrap:wrap;gap:8px}.editor-chip{position:relative;display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:6px 12px;border:1px solid var(--editor-border-strong);border-radius:999px;background:var(--editor-surface);color:var(--editor-text);cursor:pointer;font-size:14px}.editor-chip:has(input:checked),.editor-chip[aria-pressed=true]{border-color:var(--editor-accent);background:var(--editor-tint);color:var(--editor-accent);font-weight:600}.editor-chip input{position:absolute;opacity:0;width:1px;height:1px}.editor-chip:has(input:focus-visible){outline:2px solid var(--editor-accent);outline-offset:2px}.editor-chip .chip-note{font-size:11px;color:var(--editor-warn-text);font-weight:500}.editor-chip.is-day{min-width:44px;justify-content:center;padding:6px 8px}.editor-option-row{display:flex;align-items:center;gap:8px}.editor-option-row .glyph{width:18px;height:18px;flex:none;border:2px solid var(--editor-border-strong)}.editor-option-row .glyph.is-round{border-radius:50%}.editor-option-row .glyph.is-square{border-radius:4px}.editor-option-row .glyph.is-arrow{border:0;color:var(--editor-muted);font-size:12px;text-align:center}.editor-option-row input.editor-field{flex:1;min-width:0}.editor-branch{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:2px 0 8px 26px;font-size:12px;color:var(--editor-muted)}.editor-branch select{min-height:32px;max-width:100%;padding:4px 8px;font-size:12px;border:1px solid var(--editor-border);border-radius:999px;background:var(--editor-surface);color:var(--editor-text)}.editor-branch.is-set select{border-color:var(--editor-tint-border);background:var(--editor-tint);color:var(--editor-accent);font-weight:600}.editor-collapsible{border:1px solid var(--editor-border);border-radius:var(--editor-radius-sm);background:var(--editor-surface)}.editor-collapsible>summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;cursor:pointer;font-size:14px;font-weight:600;list-style:none}.editor-collapsible>summary::-webkit-details-marker{display:none}.editor-collapsible>summary:before{content:"▸";color:var(--editor-muted);transition:transform .15s}.editor-collapsible[open]>summary:before{transform:rotate(90deg)}.editor-collapsible>summary .editor-muted{margin-left:auto;font-weight:400;text-align:right}.editor-collapsible>.body{padding:0 12px 12px}.editor-collapsible.is-section>summary{min-height:52px;padding:12px 16px;font-size:15px;font-weight:700}.editor-collapsible.is-section>.body{padding:0 16px 16px;display:grid;gap:12px}.editor-sticky-bar{position:sticky;bottom:0;z-index:5;display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:calc(var(--editor-space) * 2);padding:12px;border:1px solid var(--editor-border);border-radius:var(--editor-radius);background:rgb(255 255 255/.96);backdrop-filter:blur(6px);box-shadow:0 -2px 12px rgb(15 23 42/.06)}.editor-sticky-bar .spacer{flex:1}.editor-empty{border:1px dashed var(--editor-border-strong);border-radius:var(--editor-radius);padding:32px 16px;text-align:center;background:var(--editor-surface)}.editor-empty p{margin:0 0 12px;color:var(--editor-muted)}.editor-section{display:grid;gap:12px;min-width:0;border:1px solid var(--editor-border);border-radius:var(--editor-radius);background:var(--editor-surface);padding:16px}.editor-collapsible.is-section>.body>*,.editor-grid-2>*,.editor-section>*{min-width:0}.editor-section-title{display:flex;align-items:center;gap:10px;margin:0;font-size:15px;font-weight:700}.editor-section-title .editor-muted{font-weight:400;margin-left:auto;text-align:right}.editor-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.editor-inline-fields{display:flex;flex-wrap:wrap;align-items:end;gap:12px}.editor-inline-fields>label{display:grid;gap:4px;font-size:13px;font-weight:600}.editor-inline-fields>label>.editor-field{width:auto}.editor-inline-fields .sep{align-self:end;padding-bottom:12px;color:var(--editor-muted)}.editor-dialog{border:1px solid var(--editor-border);border-radius:var(--editor-radius);background:var(--editor-surface);color:var(--editor-text);box-shadow:0 20px 50px rgb(15 23 42/.25);max-height:calc(100dvh - 2rem);overflow-y:auto}.editor-dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid var(--editor-border)}.editor-dialog-header h2{margin:0;font-size:18px;font-weight:700;line-height:1.3}.editor-dialog-body{padding:16px 20px 20px}.editor-eyebrow{display:inline-flex;align-items:center;gap:6px;margin:0 0 4px;font-size:12px;font-weight:700;color:var(--editor-accent);letter-spacing:.02em}.editor-eyebrow svg{width:14px;height:14px}.editor-subtitle{margin:4px 0 0;font-size:13px;color:var(--editor-muted)}.editor-toolbar{align-items:center;justify-content:space-between}.editor-toolbar,.editor-toolbar .group{display:flex;gap:8px;flex-wrap:wrap}.editor-rich{border:1px solid var(--editor-border-strong);border-radius:var(--editor-radius-sm);background:var(--editor-surface);overflow:hidden}.editor-rich:focus-within{border-color:var(--editor-accent);box-shadow:var(--editor-focus)}.editor-rich-toolbar{display:flex;flex-wrap:wrap;gap:2px;padding:6px;border-bottom:1px solid var(--editor-border);background:var(--editor-bg)}.editor-rich-toolbar .sep{width:1px;margin:4px;background:var(--editor-border)}.editor-tool{display:inline-flex;align-items:center;gap:4px;min-height:36px;padding:4px 8px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--editor-muted);font-size:12px;font-weight:600;cursor:pointer}.editor-tool svg{width:18px;height:18px}.editor-tool:hover:not(:disabled){background:var(--editor-surface);color:var(--editor-text);border-color:var(--editor-border)}.editor-tool[aria-pressed=true]{background:var(--editor-tint);color:var(--editor-accent);border-color:var(--editor-tint-border)}.editor-tool:disabled{opacity:.4;cursor:not-allowed}.editor-rich-sub{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px;border-bottom:1px solid var(--editor-border);background:var(--editor-surface)}.editor-rich-sub .editor-field{flex:1;min-width:200px}.editor-rich-emoji{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border:0;border-radius:6px;background:transparent;font-size:20px;cursor:pointer}.editor-rich-emoji:hover{background:var(--editor-tint)}.editor-rich .ProseMirror.is-compact{min-height:90px}.editor-rich .ProseMirror{min-height:140px;padding:12px 14px;line-height:1.7;color:var(--editor-text);outline:none}.editor-rich .ProseMirror p.is-editor-empty:first-child:before{content:attr(data-placeholder);color:var(--editor-muted);float:left;pointer-events:none;height:0}.editor-rich .ProseMirror h2{font-size:18px;font-weight:700;margin:12px 0 6px}.editor-rich .ProseMirror h3{font-size:16px;font-weight:700;margin:10px 0 4px}.editor-rich .ProseMirror ul{list-style:disc;padding-left:24px}.editor-rich .ProseMirror ol{list-style:decimal;padding-left:24px}.editor-rich .ProseMirror a{color:var(--editor-accent);text-decoration:underline}.editor-rich .ProseMirror img{max-width:100%;border-radius:var(--editor-radius-sm)}.editor-rich .ProseMirror img.ProseMirror-selectednode{outline:2px solid var(--editor-accent)}.editor-summary{display:grid;gap:10px}.editor-summary .kicker{display:inline-flex;align-items:center;gap:6px;margin:0;font-size:12px;font-weight:700;color:var(--editor-accent)}.editor-summary .kicker svg{width:14px;height:14px}.editor-summary h3{margin:0;font-size:18px;font-weight:700;line-height:1.3;overflow-wrap:anywhere}.editor-summary h3.is-placeholder{color:var(--editor-muted);font-weight:500}.editor-summary dl{display:grid;gap:8px;margin:0}.editor-summary dl>div{display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px;align-items:start}.editor-summary dt{display:flex;align-items:center;justify-content:center;height:22px;color:var(--editor-muted)}.editor-summary dt svg{width:16px;height:16px}.editor-summary dd{margin:0;font-size:14px;overflow-wrap:anywhere}.editor-summary dd .editor-muted{display:block}.editor-summary .when{font-size:15px;font-weight:700}.editor-timeline{display:grid;gap:0;margin:0;padding:0;list-style:none}.editor-timeline li{display:grid;grid-template-columns:56px 16px minmax(0,1fr);gap:0 8px}.editor-timeline time{padding-top:2px;font-size:13px;font-weight:700;color:var(--editor-accent);white-space:nowrap}.editor-timeline .rail{position:relative}.editor-timeline .rail:before{content:"";position:absolute;top:6px;left:50%;width:10px;height:10px;margin-left:-5px;border-radius:50%;background:var(--editor-accent)}.editor-timeline .rail:after{content:"";position:absolute;top:18px;bottom:-6px;left:50%;width:2px;margin-left:-1px;background:var(--editor-border)}.editor-timeline li:last-child .rail:after{display:none}.editor-timeline .item{padding:0 0 16px;min-width:0}.editor-timeline .item h3{margin:0 0 4px;font-size:15px;font-weight:700}.editor-card.is-selected{border-color:var(--editor-accent);background:var(--editor-tint)}.editor-inline-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.editor-inline-row .editor-field{flex:1 1 160px;width:auto}.editor-consent-row{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:10px 12px;border:1px solid var(--editor-border-strong);border-radius:var(--editor-radius-sm);background:var(--editor-surface);cursor:pointer}.editor-consent-row input{margin-top:3px;width:24px;height:24px;accent-color:var(--editor-accent)}.editor-consent-row:has(input:checked){border-color:var(--editor-accent);background:var(--editor-tint)}.editor-warn{border:1px solid var(--editor-warn-border);border-radius:var(--editor-radius-sm);padding:10px 12px;color:var(--editor-warn-text);background:var(--editor-warn-tint);font-size:14px}.editor-tip{position:relative;display:inline-block;margin-left:4px;vertical-align:middle}.editor-tip>.mark{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border:1px solid var(--editor-border-strong);border-radius:50%;font-size:10px;line-height:1;color:var(--editor-muted);cursor:help;user-select:none}.editor-tip-bubble{position:fixed;z-index:70;display:block;box-sizing:border-box;width:16rem;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow-y:auto;border-radius:var(--editor-radius-sm);padding:8px 12px;background:var(--editor-text);color:var(--editor-surface);font-size:12px;line-height:1.6;font-weight:400;text-align:left;white-space:normal;box-shadow:0 4px 16px rgb(15 23 42/.18)}.editor-tip-bubble.is-sheet{top:auto;bottom:12px;left:12px;right:12px;width:auto;max-width:none;max-height:50vh;padding:12px 14px;font-size:13px;box-shadow:0 8px 24px rgb(15 23 42/.28)}.editor-tip>.mark{position:relative;padding:0;background:transparent}@media (pointer:coarse){.editor-button{min-height:44px}.editor-button.is-small{min-height:44px;padding:8px 12px}.editor-segmented button,.editor-segmented label,.editor-tool{min-height:44px}.editor-tool{min-width:44px}.editor-chip,.editor-field.is-compact,.editor-switch{min-height:44px}}@media (min-width:1025px){.editor-columns{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:start}.editor-input-pane,.editor-preview-pane{display:block}.editor-pane-switch{display:none}.editor-preview-pane{position:sticky;top:calc(var(--editor-space) * 2);max-height:calc(100vh - 32px);overflow-y:auto}}@media (max-width:640px){.editor-grid-2{grid-template-columns:1fr}.editor-inline-fields>label{flex:1 1 100%}.editor-inline-fields>label>.editor-field{width:100%}.editor-inline-fields .sep{display:none}.editor-preview-frame{border-radius:var(--editor-radius)}.editor-dialog-body,.editor-dialog-header{padding-left:12px;padding-right:12px}.editor-sticky-bar .editor-pill,.editor-tool span{display:none}}@media (prefers-color-scheme:dark){:root{--editor-accent:#93c5fd;--editor-accent-strong:#60a5fa;--editor-tint:#1e3a5f;--editor-tint-border:#1e40af;--editor-bg:#111827;--editor-surface:#1e293b;--editor-text:#f1f5f9;--editor-muted:#cbd5e1;--editor-border:#334155;--editor-border-strong:#475569;--editor-danger:#fca5a5;--editor-danger-tint:#450a0a;--editor-danger-border:#7f1d1d;--editor-warn-text:#fde68a;--editor-warn-tint:#451a03;--editor-warn-border:#92400e;--editor-ok:#86efac;--editor-ok-tint:#052e16;--editor-ok-border:#14532d;--editor-focus:0 0 0 3px rgb(147 197 253/0.25)}.editor-button.editor-primary,.editor-primary{color:#111827}.editor-sticky-bar{background:rgb(30 41 59/.96)}.editor-switch .knob:after{background:#e2e8f0}}