:root {
  --navy: #081d37;
  --navy-2: #102b4a;
  --ink: #10233e;
  --muted: #61718a;
  --muted-2: #8a97ab;
  --line: #dce3ed;
  --panel: #ffffff;
  --canvas: #f4f7fb;
  --blue: #1a6ef5;
  --blue-soft: #eaf2ff;
  --green: #159b69;
  --green-soft: #e7f7ef;
  --amber: #d88212;
  --amber-soft: #fff4e3;
  --red: #c85050;
  --shadow: 0 12px 30px rgba(18, 48, 85, .08);
  --radius: 16px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); font-size: 16px; }
html[data-text-size="small"] { font-size: 14px; }
html[data-text-size="medium"] { font-size: 16px; }
html[data-text-size="large"] { font-size: 18px; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); font-family: var(--font); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(26, 110, 245, .22); outline-offset: 2px; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .9em; }

.app-shell { display: grid; grid-template-columns: 254px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 28px 16px 16px; color: #dce8fa; background: linear-gradient(165deg, #071b34 0%, #0c2a4c 61%, #123c61 100%); overflow-y: auto; z-index: 40; }
.brand { display: flex; align-items: center; gap: 12px; margin: 0 8px 36px; color: white; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; color: #e7f1ff; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(255,255,255,.06); }
.brand-mark svg { width: 32px; height: 32px; }
.brand strong { display: block; font-size: 0.9375rem; letter-spacing: .01em; }
.brand span { display: block; margin-top: 3px; color: #9cb6d4; font-size: 0.6875rem; letter-spacing: .07em; text-transform: uppercase; }
.nav-list { display: grid; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 45px; padding: 0 14px; color: #b9cae0; font-weight: 600; font-size: 0.875rem; text-align: left; border: 0; border-radius: 10px; background: transparent; transition: .2s ease; }
.nav-item:hover { color: white; background: rgba(255,255,255,.07); }
.nav-item.active { color: white; background: rgba(115, 171, 255, .18); box-shadow: inset 3px 0 0 #83b4ff; }
.nav-icon { width: 18px; color: #94b8e6; font-size: 1.25rem; line-height: 1; text-align: center; }
.nav-item.active .nav-icon { color: #a9d0ff; }
.sidebar-footer { margin-top: auto; padding: 26px 8px 0; }
.privacy-note { display: flex; align-items: center; gap: 9px; padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(7, 20, 39, .18); }
.privacy-dot { width: 8px; height: 8px; border-radius: 50%; background: #76e5a9; box-shadow: 0 0 0 4px rgba(118,229,169,.12); }
.privacy-note strong { display: block; color: #e9f4ff; font-size: 0.6875rem; }
.privacy-note small { display: block; margin-top: 2px; color: #8faaca; font-size: 0.625rem; }
.sidebar-footer > p { margin: 16px 4px 0; color: #7993b4; font-size: 0.625rem; }

.main-content { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 0 44px; border-bottom: 1px solid rgba(211, 221, 235, .78); background: rgba(244,247,251,.88); backdrop-filter: blur(18px); }
.breadcrumb { display: grid; gap: 3px; }
.breadcrumb span { color: var(--muted); font-size: 0.625rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.breadcrumb strong { font-size: 1rem; }
.topbar-actions { display: flex; align-items: center; gap: 15px; }
.saved-state { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.saved-state i { width: 7px; height: 7px; border-radius: 50%; background: #43b985; box-shadow: 0 0 0 4px rgba(67,185,133,.12); }
.mobile-menu { display: none; border: 0; background: transparent; color: var(--navy); font-size: 1.4375rem; }

.view { display: none; width: min(1400px, 100%); margin: 0 auto; padding: 46px 44px 58px; animation: viewIn .25s ease both; }
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.eyebrow { margin: 0 0 10px; color: var(--blue); font-size: 0.625rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 13px; font-size: clamp(1.75rem, 3.2vw, 2.6875rem); line-height: 1.1; letter-spacing: -.04em; }
h2 { margin-bottom: 7px; font-size: 1.25rem; letter-spacing: -.025em; }
h3 { margin-bottom: 7px; font-size: 0.9375rem; letter-spacing: -.01em; }
p { color: var(--muted); line-height: 1.58; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid transparent; border-radius: 9px; font-size: 0.8125rem; font-weight: 750; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--blue); box-shadow: 0 8px 15px rgba(26,110,245,.19); }
.button.primary:hover { background: #0d5edb; }
.button.secondary { color: #244263; border-color: #d5e0ee; background: white; }
.button.secondary:hover { border-color: #adc5e1; background: #f9fbff; }
.button.auto { color: #12644b; border-color: #b9e7d4; background: #effbf5; box-shadow: 0 5px 12px rgba(21, 155, 105, .10); }
.button.auto:hover { color: #0e543f; border-color: #86d8ba; background: #e1f8ed; }
.button.auto:disabled { cursor: wait; opacity: .72; transform: none; }
.button.compact { min-height: 35px; padding: 0 12px; font-size: 0.75rem; }
.button.full { width: 100%; margin-top: 18px; }
.text-button { display: inline-flex; gap: 7px; align-items: center; padding: 0; color: var(--blue); font-size: 0.8125rem; font-weight: 750; border: 0; background: transparent; }
.text-button:hover { color: #084ebe; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 32px; align-items: stretch; padding: 46px; border-radius: 22px; color: white; background: radial-gradient(circle at 76% 12%, rgba(65,140,255,.36), transparent 31%), linear-gradient(135deg, #0b2748, #092f56); box-shadow: 0 18px 45px rgba(19,47,80,.13); overflow: hidden; }
.hero-copy { max-width: 690px; }
.hero-copy .eyebrow { color: #8fc3ff; }
.hero-copy h1 { margin-bottom: 17px; font-size: clamp(2.1875rem, 4.5vw, 3.4375rem); }
.hero-copy h1 span { color: #8ee5b1; }
.hero-text { max-width: 580px; color: #c8d9ed; font-size: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.hero-actions .primary { background: white; color: #104582; box-shadow: none; }
.hero-actions .primary:hover { background: #eaf3ff; }
.hero-actions .secondary { color: #e8f1ff; border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.07); }
.hero-panel { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 27px; border: 1px solid rgba(255,255,255,.17); border-radius: 16px; background: rgba(1,17,37,.2); }
.signal-line { display: flex; align-items: end; gap: 5px; height: 34px; margin-bottom: 8px; }
.signal-line span { width: 8px; border-radius: 6px; background: #83c9ff; }
.signal-line span:nth-child(1) { height: 9px; opacity: .4; }.signal-line span:nth-child(2) { height: 15px; opacity: .56; }.signal-line span:nth-child(3) { height: 22px; opacity: .72; }.signal-line span:nth-child(4) { height: 29px; opacity: .87; }.signal-line span:nth-child(5) { height: 34px; background: #92ebb8; }
.hero-stat { display: flex; align-items: baseline; gap: 10px; }
.hero-stat strong { font-size: 1.9375rem; letter-spacing: -.05em; }.hero-stat span { color: #aec5df; font-size: 0.75rem; font-weight: 600; }.hero-panel p { margin: 6px 0 0; color: #b1c5da; font-size: 0.75rem; }
.workflow-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 43px 0 18px; }.workflow-heading .eyebrow { margin-bottom: 7px; }.workflow-heading h2 { margin: 0; }.workflow-heading > p { margin: 0; font-size: 0.8125rem; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.workflow-card { min-height: 238px; padding: 23px; border: 1px solid #e0e7f1; border-radius: 15px; background: white; box-shadow: 0 5px 12px rgba(20,51,87,.025); transition: .2s ease; }.workflow-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }.workflow-card.blue { border-top: 3px solid var(--blue); }.workflow-card.green { border-top: 3px solid var(--green); }.workflow-card.amber { border-top: 3px solid var(--amber); }.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 27px; }.card-index { color: #98a9bf; font-size: 0.6875rem; font-weight: 800; letter-spacing: .1em; }.workflow-icon { display: grid; width: 34px; height: 34px; place-items: center; color: var(--blue); border-radius: 9px; background: var(--blue-soft); font-size: 1.25rem; }.green .workflow-icon { color: var(--green); background: var(--green-soft); }.amber .workflow-icon { color: var(--amber); background: var(--amber-soft); }.workflow-card p { min-height: 65px; margin-bottom: 20px; font-size: 0.8125rem; }.workflow-card code { color: #284d72; background: #f1f5fa; }
.guidance-strip { display: flex; align-items: flex-start; gap: 14px; margin-top: 22px; padding: 17px 20px; border: 1px solid #d4ece0; border-radius: 13px; background: #f1faf5; }.guidance-icon { display: grid; flex: 0 0 auto; width: 25px; height: 25px; place-items: center; color: white; border-radius: 50%; background: var(--green); font-weight: 800; }.guidance-strip strong { font-size: 0.8125rem; }.guidance-strip p { margin: 3px 0 0; font-size: 0.75rem; }

.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }.section-heading h1 { margin-bottom: 9px; font-size: clamp(1.875rem, 3.4vw, 2.5rem); }.section-heading p { max-width: 690px; margin-bottom: 0; }.section-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 7px; }
.context-grid { display: grid; gap: 14px; margin-bottom: 20px; }.context-grid.three { grid-template-columns: 1.05fr 1.05fr .7fr; }.context-grid.two { grid-template-columns: 1fr 1fr; }.context-grid label { display: grid; gap: 7px; color: #52637c; font-size: 0.6875rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }.context-grid input, .context-grid select { width: 100%; height: 44px; padding: 0 13px; color: var(--ink); border: 1px solid #d7e1ed; border-radius: 9px; outline: none; background: white; font-size: 0.8125rem; font-weight: 600; letter-spacing: normal; text-transform: none; }.context-grid input:focus, .context-grid select:focus { border-color: var(--blue); }
.split-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 18px; margin-bottom: 22px; }.panel, .data-panel, .command-area, .reference-panel, .custom-note-panel { border: 1px solid #dfe7f1; border-radius: var(--radius); background: var(--panel); box-shadow: 0 5px 14px rgba(19,51,88,.025); }.panel { display: flex; flex-direction: column; min-height: 300px; padding: 21px; }.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }.panel-header h3 { margin-bottom: 3px; }.panel-header p { margin: 0; font-size: 0.75rem; }.step-badge { flex: 0 0 auto; padding: 5px 8px; color: #175cc8; border-radius: 5px; background: var(--blue-soft); font-size: 0.5625rem; font-weight: 800; letter-spacing: .08em; }.step-badge.neutral { color: #697991; background: #eff3f8; }
textarea { width: 100%; resize: vertical; outline: none; }.raw-panel textarea { min-height: 164px; flex: 1; margin-top: 16px; padding: 13px; color: #29415d; border: 1px solid #d4e0ee; border-radius: 9px; background: #f9fbfe; font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.75rem; line-height: 1.5; }.raw-panel textarea:focus { border-color: var(--blue); background: white; }.panel-footer { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 14px; }
.rule-list { display: grid; gap: 4px; margin-top: 15px; }.check-row { display: flex; align-items: flex-start; gap: 9px; padding: 9px 8px; color: #4a607d; border-radius: 7px; font-size: 0.75rem; line-height: 1.45; }.check-row:hover { background: #f6f9fd; }.check-row input { width: 15px; height: 15px; margin: 1px 0 0; accent-color: var(--blue); }.check-row code { color: #1b4c82; }.helper-note { margin-top: auto; padding: 12px; color: #5c6c82; border-left: 3px solid #a9c9fa; background: #f5f9ff; font-size: 0.6875rem; line-height: 1.55; }.helper-note strong { color: #24538a; }
.file-row { display: flex; align-items: center; gap: 10px; margin-top: 9px; color: #77869a; font-size: 0.6875rem; }.file-button { display: inline-flex; align-items: center; min-height: 31px; padding: 0 10px; color: #2a5b96; border: 1px solid #cbdcf1; border-radius: 7px; background: #f6faff; font-size: 0.6875rem; font-weight: 750; cursor: pointer; }.file-button input { display: none; }
.data-panel { overflow: hidden; margin-top: 4px; }.data-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 21px 22px 16px; }.data-toolbar h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 3px; font-size: 1.0625rem; }.data-toolbar p { margin: 0; font-size: 0.75rem; }.count-pill { display: inline-grid; min-width: 23px; height: 21px; place-items: center; padding: 0 6px; color: #35608c; border-radius: 10px; background: #edf3f9; font-size: 0.625rem; }.toolbar-actions { display: flex; gap: 7px; }.table-wrap { overflow-x: auto; border-top: 1px solid #e5ebf3; }.editable-table { width: 100%; min-width: 760px; border-collapse: collapse; }.editable-table th { padding: 11px 13px; color: #718198; border-bottom: 1px solid #e5ebf3; background: #f8fafe; font-size: 0.625rem; font-weight: 800; letter-spacing: .07em; text-align: left; text-transform: uppercase; white-space: nowrap; }.editable-table td { padding: 8px 10px; border-bottom: 1px solid #edf1f5; vertical-align: middle; }.editable-table tr:last-child td { border-bottom: 0; }.editable-table tr:hover td { background: #fbfdff; }.editable-table input, .editable-table select { width: 100%; min-width: 95px; height: 34px; padding: 0 8px; color: #1e3958; border: 1px solid transparent; border-radius: 6px; outline: none; background: transparent; font-size: 0.75rem; }.editable-table input:hover, .editable-table input:focus, .editable-table select:hover, .editable-table select:focus { border-color: #c5d7ed; background: white; }.ipam-table { min-width: 1040px; }.ipam-table th:nth-child(1) { min-width: 136px; }.ipam-table th:nth-child(2) { min-width: 260px; }.ipam-table th:nth-child(3) { min-width: 310px; }.ipam-table th:nth-child(4) { min-width: 150px; }.ipam-table th:nth-child(5) { min-width: 120px; }.delete-row { display: grid; width: 29px; height: 29px; place-items: center; color: #b27575; border: 0; border-radius: 6px; background: transparent; font-size: 1.0625rem; }.delete-row:hover { color: #a23e3e; background: #fff0f0; }.validation { display: inline-flex; align-items: center; gap: 5px; max-width: 190px; color: #62738b; font-size: 0.625rem; line-height: 1.3; }.validation.ok { color: #23855d; }.validation.warn { color: #b47617; }.validation.bad { color: #be4f4f; }.validation-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }.table-empty { padding: 37px 20px; color: #8998aa; font-size: 0.8125rem; text-align: center; }.table-empty.hidden { display: none; }
.command-area { margin-top: 22px; overflow: hidden; }.command-heading { display: flex; align-items: center; justify-content: space-between; gap: 17px; padding: 22px; border-bottom: 1px solid #e3eaf3; }.command-heading .eyebrow { margin-bottom: 5px; }.command-heading h2 { margin-bottom: 4px; }.command-heading p { margin: 0; font-size: 0.75rem; }.command-actions { display: flex; flex-wrap: wrap; gap: 8px; }.code-output { max-height: 510px; min-height: 150px; margin: 0; padding: 21px 24px; overflow: auto; color: #e1edff; background: #081d37; font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.75rem; line-height: 1.62; white-space: pre; }.code-output code { color: inherit; font: inherit; }.csv-output { color: #ddf2e5; background: #092d2b; }

.standards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }.standard-card { padding: 22px; border: 1px solid #dee7f1; border-radius: 14px; background: white; }.standard-card h3 { margin: 15px 0 13px; }.standard-card ul { display: grid; gap: 10px; margin: 0; padding-left: 17px; color: #586b84; font-size: 0.75rem; line-height: 1.45; }.standard-card code { color: #214b7a; }.standard-tag { display: inline-flex; padding: 5px 8px; border-radius: 5px; font-size: 0.5625rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }.blue-tag { color: #135dcf; background: var(--blue-soft); }.green-tag { color: #15865c; background: var(--green-soft); }.amber-tag { color: #ba6f12; background: var(--amber-soft); }.reference-panel { margin-top: 20px; overflow: hidden; }.reference-header { display: flex; align-items: center; justify-content: space-between; padding: 21px 22px 17px; border-bottom: 1px solid #e3eaf1; }.reference-header h2 { margin-bottom: 3px; }.reference-header p { margin: 0; font-size: 0.75rem; }.locked-pill { padding: 5px 9px; color: #63738a; border: 1px solid #dbe4ee; border-radius: 20px; font-size: 0.625rem; font-weight: 800; }.reference-grid { display: grid; grid-template-columns: 1fr 1fr; }.reference-grid > div { min-height: 86px; padding: 17px 22px; border-right: 1px solid #e9eef5; border-bottom: 1px solid #e9eef5; }.reference-grid > div:nth-child(2n) { border-right: 0; }.reference-grid > div:nth-last-child(-n+2) { border-bottom: 0; }.reference-grid span { display: block; margin-bottom: 7px; color: #7e8ea2; font-size: 0.625rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }.reference-grid code { color: #204c80; font-size: 0.6875rem; word-break: break-word; }.custom-note-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 26px; margin-top: 20px; padding: 25px; }.custom-note-panel h2 { margin-bottom: 5px; }.custom-note-panel p { margin: 0; font-size: 0.75rem; }.custom-note-panel textarea { min-height: 88px; padding: 11px; color: #23405f; border: 1px solid #d6e1ee; border-radius: 8px; background: #fbfdff; font-size: 0.75rem; }.custom-note-panel button { margin-top: 9px; }
.toast { position: fixed; right: 26px; bottom: 24px; z-index: 80; max-width: min(370px, calc(100vw - 42px)); padding: 12px 15px; color: white; border-radius: 9px; background: #133456; box-shadow: 0 14px 28px rgba(7,29,55,.23); font-size: 0.75rem; font-weight: 650; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .25s ease; }.toast.show { opacity: 1; transform: none; }.toast.error { background: #a84646; }

@media (max-width: 1080px) { .app-shell { grid-template-columns: 214px minmax(0,1fr); }.topbar { padding: 0 28px; }.view { padding: 34px 28px 50px; }.hero-grid { padding: 34px; }.split-layout { grid-template-columns: 1fr; }.workflow-grid, .standards-grid { grid-template-columns: 1fr; }.workflow-card { min-height: auto; }.workflow-card p { min-height: 0; }.context-grid.three { grid-template-columns: 1fr 1fr; }.context-grid.three label:last-child { grid-column: span 2; }.hero-panel { display: none; } }
@media (max-width: 760px) { .app-shell { display: block; }.sidebar { position: fixed; top: 0; left: 0; width: min(270px, 82vw); height: 100vh; transform: translateX(-101%); transition: transform .25s ease; box-shadow: 17px 0 34px rgba(0,0,0,.18); }.sidebar.open { transform: none; }.mobile-menu { display: block; }.topbar { min-height: 64px; padding: 0 18px; }.topbar-actions .saved-state { display: none; }.topbar-actions .button { padding: 0 9px; font-size: 0.6875rem; }.view { padding: 27px 17px 40px; }.hero-grid { padding: 27px; border-radius: 16px; }.hero-copy h1 { font-size: 2.125rem; }.workflow-heading, .section-heading, .data-toolbar, .command-heading { align-items: flex-start; flex-direction: column; }.section-actions { justify-content: flex-start; padding-top: 0; }.context-grid.three, .context-grid.two { grid-template-columns: 1fr; }.context-grid.three label:last-child { grid-column: auto; }.command-actions { width: 100%; }.command-actions .button { flex: 1; }.reference-grid, .custom-note-panel { grid-template-columns: 1fr; }.reference-grid > div, .reference-grid > div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid #e9eef5; }.reference-grid > div:last-child { border-bottom: 0; }.custom-note-panel { gap: 16px; }.topbar .breadcrumb { margin-right: auto; margin-left: 13px; }.hero-actions .button { width: 100%; }.panel { padding: 17px; }.file-row { align-items: flex-start; flex-direction: column; }.code-output { padding: 17px; font-size: 0.6875rem; } }
/* Display preferences: merged into styles.css during packaging. */
.accessibility-controls { display: flex; align-items: center; gap: 7px; }
.text-size-control { display: inline-flex; align-items: center; min-height: 35px; overflow: hidden; color: #536982; border: 1px solid #d5e0ee; border-radius: 9px; background: white; }
.text-size-control button { width: 30px; height: 33px; padding: 0; color: #315a85; border: 0; background: transparent; font-size: .75rem; font-weight: 850; }
.text-size-control button:hover { color: #0f5fca; background: #f1f6fd; }
.text-size-control span { min-width: 67px; padding: 0 6px; color: #617187; font-size: .625rem; font-weight: 750; text-align: center; white-space: nowrap; }
.theme-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 35px; padding: 0 10px; color: #315a85; border: 1px solid #d5e0ee; border-radius: 9px; background: white; font-size: .6875rem; font-weight: 800; }
.theme-toggle:hover { color: #0f5fca; border-color: #adc5e1; background: #f9fbff; }
.theme-toggle #themeIcon { font-size: .9375rem; line-height: 1; }

html[data-theme="dark"] {
  --canvas: #0b1523;
  --panel: #101f31;
  --ink: #e9f1fb;
  --muted: #a7b6c8;
  --muted-2: #8b9bb1;
  --line: #273b54;
  --blue: #74acff;
  --blue-soft: #172f53;
  --green: #62ce97;
  --green-soft: #133b31;
  --amber: #eab65b;
  --amber-soft: #3d2c13;
  color-scheme: dark;
}
html[data-theme="dark"] .topbar { border-color: rgba(58, 81, 111, .8); background: rgba(11, 21, 35, .86); }
html[data-theme="dark"] .saved-state { color: #aebed2; }
html[data-theme="dark"] .button.secondary,
html[data-theme="dark"] .text-size-control,
html[data-theme="dark"] .theme-toggle { color: #d9e7f9; border-color: #304662; background: #13263c; }
html[data-theme="dark"] .button.secondary:hover,
html[data-theme="dark"] .theme-toggle:hover { border-color: #5277a4; background: #19334f; }
html[data-theme="dark"] .button.auto { color: #98e6c4; border-color: #2d765d; background: #113b31; box-shadow: none; }
html[data-theme="dark"] .button.auto:hover { color: #bcf3d8; border-color: #4caa84; background: #164b3e; }
html[data-theme="dark"] .text-size-control button { color: #bed6f1; }
html[data-theme="dark"] .text-size-control button:hover { color: #8fc3ff; background: #1b3653; }
html[data-theme="dark"] .text-size-control span { color: #a9bcd3; }
html[data-theme="dark"] .workflow-card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .data-panel,
html[data-theme="dark"] .command-area,
html[data-theme="dark"] .reference-panel,
html[data-theme="dark"] .custom-note-panel,
html[data-theme="dark"] .standard-card { border-color: #293f5a; background: #101f31; box-shadow: 0 5px 14px rgba(0,0,0,.16); }
html[data-theme="dark"] .workflow-card { box-shadow: 0 5px 12px rgba(0,0,0,.18); }
html[data-theme="dark"] .workflow-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.3); }
html[data-theme="dark"] .workflow-card code,
html[data-theme="dark"] .standard-card code { color: #afd0ff; background: #1a304b; }
html[data-theme="dark"] .context-grid input,
html[data-theme="dark"] .context-grid select,
html[data-theme="dark"] .raw-panel textarea,
html[data-theme="dark"] .custom-note-panel textarea { color: #dce9f8; border-color: #314961; background: #0c1929; }
html[data-theme="dark"] .context-grid input:focus,
html[data-theme="dark"] .context-grid select:focus,
html[data-theme="dark"] .raw-panel textarea:focus { border-color: #74acff; background: #102238; }
html[data-theme="dark"] .check-row:hover { background: #162b43; }
html[data-theme="dark"] .check-row,
html[data-theme="dark"] .helper-note { color: #adc0d8; }
html[data-theme="dark"] .helper-note { border-left-color: #4d80bb; background: #152a43; }
html[data-theme="dark"] .helper-note strong { color: #b9d6fc; }
html[data-theme="dark"] .data-toolbar,
html[data-theme="dark"] .command-heading,
html[data-theme="dark"] .reference-header { border-color: #293f5a; }
html[data-theme="dark"] .table-wrap { border-color: #293f5a; }
html[data-theme="dark"] .editable-table th { color: #a9bed6; border-color: #293f5a; background: #0d1b2c; }
html[data-theme="dark"] .editable-table td { border-color: #20364f; }
html[data-theme="dark"] .editable-table tr:hover td { background: #13263c; }
html[data-theme="dark"] .editable-table input,
html[data-theme="dark"] .editable-table select { color: #dce9f8; }
html[data-theme="dark"] .editable-table input:hover,
html[data-theme="dark"] .editable-table input:focus,
html[data-theme="dark"] .editable-table select:hover,
html[data-theme="dark"] .editable-table select:focus { border-color: #426588; background: #0d1b2c; }
html[data-theme="dark"] .count-pill { color: #b8d8ff; background: #193655; }
html[data-theme="dark"] .table-empty { color: #9aaec4; }
html[data-theme="dark"] .guidance-strip { border-color: #255548; background: #102d29; }
html[data-theme="dark"] .guidance-strip p { color: #b0cbbf; }
html[data-theme="dark"] .reference-grid > div { border-color: #293f5a; }
html[data-theme="dark"] .reference-grid span { color: #9db0c8; }
html[data-theme="dark"] .reference-grid code { color: #b9d6ff; }
html[data-theme="dark"] .file-button { color: #b8d8ff; border-color: #385979; background: #132b45; }
html[data-theme="dark"] .file-row { color: #a4b5c9; }
html[data-theme="dark"] .locked-pill { color: #acc0d7; border-color: #344c68; }
html[data-theme="dark"] .mobile-menu { color: #e7f0fc; }

@media (max-width: 760px) {
  .accessibility-controls { gap: 5px; }
  .text-size-control span { display: none; }
  .text-size-control { min-width: 60px; justify-content: space-between; }
  .theme-toggle #themeLabel { display: none; }
  .theme-toggle { width: 35px; justify-content: center; padding: 0; }
}
/* IPAM saved-page table */
a.button { text-decoration: none; }
.clean-table-panel { margin-top: 22px; overflow: hidden; border: 1px solid #d8e4f0; border-radius: var(--radius); background: var(--panel); box-shadow: 0 5px 14px rgba(19,51,88,.025); }
.clean-table-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px; border-bottom: 1px solid #e3eaf3; }
.clean-table-heading .eyebrow { margin-bottom: 5px; }
.clean-table-heading h2 { margin-bottom: 4px; }
.clean-table-heading p { max-width: 690px; margin: 0; font-size: .75rem; }
.clean-table-wrap { position: relative; overflow-x: auto; min-height: 112px; }
.clean-ipam-table { width: 100%; min-width: 880px; border-collapse: collapse; }
.clean-ipam-table th { padding: 12px 16px; color: #607189; border-bottom: 1px solid #e2eaf3; background: linear-gradient(90deg, #f4f8fd, #fafcff); font-size: .625rem; font-weight: 800; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.clean-ipam-table td { padding: 13px 16px; color: #28425f; border-bottom: 1px solid #ebf0f6; font-size: .75rem; vertical-align: top; }
.clean-ipam-table tbody tr:nth-child(even) td { background: #fbfdff; }
.clean-ipam-table tbody tr:hover td { background: #f0f6ff; }
.clean-ipam-table tbody tr:last-child td { border-bottom: 0; }
.clean-ipam-table td:nth-child(1) { color: #155fae; font-family: "SFMono-Regular", Consolas, monospace; font-weight: 700; white-space: nowrap; }
.clean-ipam-table td:nth-child(3) { color: #276091; font-family: "SFMono-Regular", Consolas, monospace; font-size: .6875rem; word-break: break-word; }
.clean-table-empty { display: grid; min-height: 110px; place-items: center; padding: 24px; color: #8a9aac; font-size: .8125rem; text-align: center; }
.clean-table-empty.hidden { display: none; }

html[data-theme="dark"] .clean-table-panel { border-color: #293f5a; background: #101f31; }
html[data-theme="dark"] .clean-table-heading { border-color: #293f5a; }
html[data-theme="dark"] .clean-ipam-table th { color: #a8bed7; border-color: #293f5a; background: linear-gradient(90deg, #0d1b2c, #102238); }
html[data-theme="dark"] .clean-ipam-table td { color: #d0dfef; border-color: #20364f; }
html[data-theme="dark"] .clean-ipam-table tbody tr:nth-child(even) td { background: #0e1d2f; }
html[data-theme="dark"] .clean-ipam-table tbody tr:hover td { background: #162d46; }
html[data-theme="dark"] .clean-ipam-table td:nth-child(1) { color: #83baff; }
html[data-theme="dark"] .clean-ipam-table td:nth-child(3) { color: #a9d0ff; }
html[data-theme="dark"] .clean-table-empty { color: #9dafc4; }

@media (max-width: 760px) {
  .clean-table-heading { align-items: flex-start; flex-direction: column; }
  .clean-table-heading .command-actions { width: 100%; }
  .clean-table-heading .command-actions .button { flex: 1; }
}

/* Secure Gemini review controls. */
.button.gemini { color: #5c3ea7; border-color: #d9cafa; background: #f7f2ff; box-shadow: 0 5px 12px rgba(99, 67, 177, .10); }
.button.gemini:hover { color: #472e86; border-color: #bda4f0; background: #eee5ff; }
.button.gemini:disabled { cursor: wait; opacity: .72; transform: none; }
.toolbar-actions { flex-wrap: wrap; justify-content: flex-end; }
.button.is-loading { cursor: wait; opacity: .76; transform: none; }
html[data-theme="dark"] .button.gemini { color: #d8c4ff; border-color: #65528b; background: #2a2040; box-shadow: none; }
html[data-theme="dark"] .button.gemini:hover { color: #eee5ff; border-color: #9279c8; background: #382955; }
@media (max-width: 760px) { .toolbar-actions { justify-content: flex-start; } }

/* Gemini review progress overlay. */
body.ai-review-active { overflow: hidden; }
.ai-loading-overlay { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 22px; background: rgba(5, 22, 43, .58); backdrop-filter: blur(4px); }
.ai-loading-overlay.is-open { display: flex; }
.ai-loading-dialog { width: min(420px, 100%); padding: 30px 29px 25px; color: #203c5b; border: 1px solid rgba(255, 255, 255, .74); border-radius: 18px; background: #fff; box-shadow: 0 24px 60px rgba(2, 19, 40, .33); text-align: center; animation: ai-dialog-in .2s ease-out; }
.ai-loading-dialog .eyebrow { margin: 15px 0 7px; color: #5d43a5; }
.ai-loading-dialog h2 { margin: 0 0 9px; color: #163554; font-size: 1.25rem; }
.ai-loading-dialog > p:not(.eyebrow) { margin: 0 auto; color: #60738b; font-size: .8125rem; line-height: 1.55; }
.ai-loading-spinner { display: inline-flex; align-items: flex-end; justify-content: center; gap: 5px; height: 30px; }
.ai-loading-spinner span { width: 7px; height: 11px; border-radius: 8px; background: #7555c4; animation: ai-loading-pulse .9s ease-in-out infinite; }
.ai-loading-spinner span:nth-child(2) { animation-delay: .12s; }
.ai-loading-spinner span:nth-child(3) { animation-delay: .24s; }
.ai-loading-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 20px; padding-top: 16px; color: #47705d; border-top: 1px solid #e4edf3; font-size: .6875rem; font-weight: 700; }
.ai-loading-note > span:first-child { display: inline-grid; width: 17px; height: 17px; place-items: center; color: white; border-radius: 50%; background: #28a36b; font-size: .625rem; }
@keyframes ai-loading-pulse { 0%, 100% { height: 10px; opacity: .48; } 50% { height: 28px; opacity: 1; } }
@keyframes ai-dialog-in { from { opacity: 0; transform: translateY(9px) scale(.98); } to { opacity: 1; transform: none; } }
html[data-theme="dark"] .ai-loading-dialog { color: #dce8f5; border-color: #314864; background: #12263c; box-shadow: 0 24px 60px rgba(0, 0, 0, .48); }
html[data-theme="dark"] .ai-loading-dialog h2 { color: #ecf5ff; }
html[data-theme="dark"] .ai-loading-dialog > p:not(.eyebrow) { color: #afc2d7; }
html[data-theme="dark"] .ai-loading-note { color: #a5d5ba; border-top-color: #284259; }
@media (max-width: 520px) { .ai-loading-overlay { padding: 16px; } .ai-loading-dialog { padding: 25px 20px 21px; } }
