:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#e5e7eb;background:#0f1115;--panel:#191c22;--border:#343a46;--accent:#2563eb}*{box-sizing:border-box}body{margin:0;min-height:100vh}.page-header{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px max(16px,env(safe-area-inset-right)) 14px max(16px,env(safe-area-inset-left));background:#151820;border-bottom:1px solid var(--border)}h1,h2,p{margin:0}.page-header h1{font-size:1.35rem}.page-header p{font-size:.85rem;color:#aab2c0;margin-top:3px}main{padding:18px}.workspace{display:grid;grid-template-columns:minmax(0,3fr) minmax(280px,1fr);gap:18px;max-width:1500px;margin:auto}.editor-column,.metadata{display:grid;align-content:start;gap:8px}.metadata{padding:16px;border:1px solid var(--border);border-radius:10px;background:var(--panel);max-height:calc(100vh - 170px);overflow:auto}label{display:grid;gap:5px;font-size:.82rem;font-weight:650}.control{width:100%;padding:9px 10px;border:1px solid var(--border);border-radius:6px;background:#101319;color:#f3f4f6;font:inherit}.sp-editor-shell{position:relative;border:1px solid var(--border);border-radius:8px;overflow:hidden;background:#fff}.sp-editor-toolbar{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:8px;background:#242833;border-bottom:1px solid var(--border)}.sp-editor-btn,.sp-editor-color-btn,.primary,.secondary,.danger,.success{border:1px solid #485063;border-radius:6px;padding:7px 9px;background:#303644;color:#fff;cursor:pointer}.sp-editor-btn:disabled{opacity:.4}.sp-editor-separator{width:1px;height:22px;background:#555}.sp-editor-toolbar-end{display:flex;gap:5px;margin-left:auto}.sp-editor-color{position:absolute;width:1px;height:1px;opacity:0}.sp-editor-palette{position:absolute;z-index:20;width:226px;padding:10px;background:#111827;border:1px solid #475569;border-radius:8px;box-shadow:0 10px 30px #0008}.sp-editor-palette[hidden]{display:none}.sp-editor-palette-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.sp-editor-palette-close{padding:0 5px;background:transparent;border:0;color:#e5e7eb;cursor:pointer;font-size:18px}.sp-editor-palette-colors{display:grid;grid-template-columns:repeat(5,32px);gap:7px}.sp-editor-palette-swatch{width:32px;height:32px;padding:0;background:var(--swatch);border:2px solid #64748b;border-radius:6px;cursor:pointer}.sp-editor-palette-swatch:hover,.sp-editor-palette-swatch:focus-visible{border-color:#fff;transform:scale(1.06)}.sp-editor-palette-native{width:100%;margin-top:10px;padding:7px;background:#1f2937;border:1px solid #475569;border-radius:6px;color:#e5e7eb;cursor:pointer}.sp-editor-bg-btn{background:#facc15;color:#111}.sp-editor-area,.sp-editor-raw{display:block;width:100%;min-height:58vh;padding:18px;border:0;outline:0;background:#fff;color:#1f2937;font:16px/1.6 Georgia,serif;overflow:auto}.sp-editor-raw{font-family:ui-monospace,monospace;white-space:pre}.sp-editor-shell.is-light .sp-editor-area{background:#fff;color:#111}.section-head,.actions,dialog>header,.history-controls{display:flex;align-items:center;justify-content:space-between;gap:10px}.cve-row{padding:10px;margin-top:7px;border:1px solid var(--border);border-radius:6px}.cve-row header,.cve-flags{display:flex;align-items:center;gap:8px}.cve-row header{justify-content:space-between}.cve-row input[type=url]{margin-top:6px}.actions{max-width:1500px;margin:18px auto;justify-content:flex-end;flex-wrap:wrap}.primary{background:#1d4ed8}.success{background:#15803d}.danger{background:#b91c1c}dialog{width:min(1100px,calc(100% - 24px));max-height:90vh;padding:18px;border:1px solid var(--border);border-radius:10px;background:#171a20;color:#e5e7eb;overflow:auto}dialog::backdrop{background:#000b}.history-controls{justify-content:flex-start;flex-wrap:wrap;margin:18px 0}.history-controls label{flex:1 1 260px}.change,.comment{padding:12px;margin:10px 0;border:1px solid var(--border);border-radius:7px}.before-after{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}.before-after pre{padding:10px;margin:0;max-height:240px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#0c0e12;border-radius:5px}.before-after pre:first-child{border-left:3px solid #dc2626}.before-after pre:last-child{border-left:3px solid #16a34a}@media(max-width:800px){main{padding:10px}.workspace{grid-template-columns:1fr}.metadata{max-height:none}.sp-editor-area,.sp-editor-raw{min-height:55vh;padding:12px}.actions>*{width:100%}.page-header{position:static}.before-after{grid-template-columns:1fr}dialog{width:100%;max-height:100vh;height:100vh;border-radius:0;margin:0}.history-controls>*{width:100%;flex-basis:100%}}@media(max-width:480px){.sp-editor-toolbar{gap:3px;padding:6px}.sp-editor-btn,.sp-editor-color-btn{padding:6px;font-size:.75rem}.metadata{padding:12px}.page-header h1{font-size:1.1rem}}

/* Shared editor modes and review form controls */
.sp-editor-area,.sp-editor-raw{background:#111827;color:#fff}.sp-editor-area[hidden],.sp-editor-raw[hidden]{display:none!important}.sp-editor-shell.is-light .sp-editor-area,.sp-editor-shell.is-light .sp-editor-raw{background:#fff;color:#111}.tag-box{display:flex;align-items:center;flex-wrap:wrap;gap:5px;min-height:42px;padding:6px;border:1px solid var(--border);border-radius:6px;background:#101319}.tag-list{display:flex;flex-wrap:wrap;gap:5px}.tag-chip{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border:1px solid #475569;border-radius:999px;background:#2a3040;font-size:.78rem}.tag-chip button,.cve-remove{padding:0;border:0;background:transparent;color:#fca5a5;font-size:17px;cursor:pointer}.tag-box input{flex:1;min-width:150px;padding:5px;border:0;outline:0;background:transparent;color:#fff}.cve-section{display:grid;gap:7px}#review-cve-panel{display:grid;gap:7px}#review-cve-panel[hidden]{display:none}.cve-row{display:flex;align-items:center;gap:10px}.cve-row>strong{min-width:120px;font-family:ui-monospace,monospace}.cve-flags{flex:1;flex-wrap:wrap}.cve-source{padding:3px 6px;border:1px solid #475569;border-radius:4px;background:#303644;color:#fff;cursor:pointer}.cve-source.required{background:#991b1b;border-color:#ef4444}.cve-footer,.dialog-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}.error{color:#fca5a5}#cve-source-dialog form{display:grid;gap:12px;min-width:min(360px,80vw)}.word-removed{background:#7f1d1d;color:#fecaca;text-decoration:line-through}.word-added{background:#14532d;color:#bbf7d0}mark{padding:0 1px;border-radius:2px}@media(max-width:800px){.cve-row{align-items:flex-start;flex-wrap:wrap}.cve-row>strong{flex:1}.cve-flags{order:3;flex-basis:100%}}
