:root {
  --ink: #080808;
  --ink-2: #0d0d0d;
  --panel: #111111;
  --panel-2: #171717;
  --line: #30302e;
  --muted: #979792;
  --paper: #f2f1ed;
  --lime: #d9ff43;
  --orange: #ff4d00;
  --violet: #9c7cff;
  --green: #4ce095;
  --amber: #ffbd59;
  --red: #ff6b62;
  --cyan: #6de1e8;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--ink); color-scheme: dark; }
body { margin: 0; min-width: 320px; background: var(--ink); color: var(--paper); font-family: var(--sans); }
button, input, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.eyebrow { margin: 0 0 14px; color: var(--lime); font: 700 10px/1 var(--mono); letter-spacing: .16em; }
.brand-mark { width: 30px; height: 28px; display: inline-flex; align-items: end; gap: 3px; transform: skew(-10deg); }
.brand-mark i { display: block; width: 7px; background: var(--lime); }
.brand-mark i:nth-child(1) { height: 13px; }
.brand-mark i:nth-child(2) { height: 21px; }
.brand-mark i:nth-child(3) { height: 28px; }
.ml-monogram { width: 38px; height: 38px; display: inline-grid; place-items: center; flex: 0 0 auto; background: var(--lime); color: var(--ink); font: 900 15px/1 var(--sans); letter-spacing: -.08em; }
.form-error { min-height: 18px; margin: 10px 0 0; color: #ff9b94; font-size: 12px; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(440px, .8fr) 1.2fr; background: #080808; }
.login-card { padding: clamp(40px, 7vw, 110px); display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.login-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 90px; }
.login-brand strong, .side-brand strong { font: 800 23px/1 var(--sans); letter-spacing: -.05em; }
.login-brand sup, .side-brand sup { margin-left: 3px; color: var(--lime); font: 700 9px var(--mono); letter-spacing: 0; }
.login-card h1 { margin: 0; max-width: 590px; font-size: clamp(44px, 5vw, 75px); line-height: .93; letter-spacing: -.065em; }
.login-card h1 em { color: var(--lime); font-weight: 500; }
.login-lead { max-width: 420px; margin: 26px 0 46px; color: #9daf9f; line-height: 1.6; }
.login-card form { max-width: 440px; display: grid; }
.login-card label, .note-editor label { margin: 18px 0 8px; color: #9eb0a4; font: 700 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.login-card input, .note-editor input, .note-editor textarea, .brain-toolbar input {
  width: 100%; border: 1px solid #365043; border-radius: 0; outline: none; background: #0d1b14; color: var(--paper); padding: 15px 16px;
}
.login-card input:focus, .note-editor input:focus, .note-editor textarea:focus, .brain-toolbar input:focus { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime); }
.login-card form > button, .primary-action { margin-top: 24px; display: flex; justify-content: space-between; border: 0; background: var(--lime); color: #0a120d; padding: 16px 18px; font-weight: 800; }
.login-card small { margin-top: 34px; color: #60756a; font: 9px var(--mono); letter-spacing: .1em; }
.login-visual { position: relative; overflow: hidden; background: radial-gradient(circle at 52% 48%, #262b13 0, #11130d 28%, #080808 68%); isolation: isolate; }
.login-visual::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .13; background-image: linear-gradient(#7f875b 1px, transparent 1px), linear-gradient(90deg, #7f875b 1px, transparent 1px); background-size: 52px 52px; mask-image: radial-gradient(circle, black, transparent 78%); }
#brain-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.brain-nucleus { position: absolute; left: 52%; top: 48%; width: 116px; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; filter: drop-shadow(0 0 24px #d9ff4366); }
.brain-nucleus::before, .brain-nucleus::after, .brain-nucleus i { content: ""; position: absolute; inset: 16px -16px; border: 1px solid #d9ff4380; border-radius: 50%; animation: nucleus-orbit 15s linear infinite; }
.brain-nucleus::after { transform: rotate(60deg); animation-duration: 20s; animation-direction: reverse; }
.brain-nucleus i:nth-child(1) { transform: rotate(-60deg); animation-duration: 23.33s; }
.brain-nucleus i:nth-child(2) { inset: 26px -6px; border-style: dashed; opacity: .65; animation-duration: 11.67s; animation-direction: reverse; }
.brain-nucleus i:nth-child(3) { inset: 38px 8px; border-color: #9c7cff88; animation-duration: 9.17s; }
.brain-nucleus b { position: absolute; inset: 35px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #d9ff43 18%, #88a71e 45%, #202608 72%); box-shadow: 0 0 12px #fff, 0 0 38px #d9ff43, 0 0 85px #d9ff4355; animation: nucleus-pulse 2.67s ease-in-out infinite; }
.brain-nucleus b::before, .brain-nucleus b::after { content: ""; position: absolute; width: 7px; aspect-ratio: 1; border-radius: 50%; background: #f2f1ed; box-shadow: 0 0 10px #fff; }
.brain-nucleus b::before { left: -31px; top: 12px; animation: electron-a 7.5s linear infinite; }
.brain-nucleus b::after { right: -29px; bottom: 10px; animation: electron-b 9.17s linear infinite; }
.brain-readout { position: absolute; min-width: 132px; padding: 10px 12px; border-left: 1px solid #d9ff43; background: linear-gradient(90deg, #11140de8, transparent); font-family: var(--mono); backdrop-filter: blur(6px); }
.brain-readout span { display: block; margin-bottom: 5px; color: #777d68; font-size: 8px; letter-spacing: .13em; }
.brain-readout b { color: #d9ff43; font-size: 9px; letter-spacing: .09em; }
.readout-one { top: 18%; left: 9%; }
.readout-two { top: 27%; right: 7%; }
.readout-three { bottom: 20%; right: 10%; }
.brain-caption { position: absolute; left: 8%; right: 8%; bottom: 8%; display: grid; grid-template-columns: 8px 1fr; gap: 5px 10px; align-items: center; font-family: var(--mono); }
.brain-caption i { grid-row: 1 / 3; width: 7px; aspect-ratio: 1; border-radius: 50%; background: var(--lime); box-shadow: 0 0 13px var(--lime); animation: nucleus-pulse 1.83s ease-in-out infinite; }
.brain-caption span { color: var(--lime); font-size: 9px; letter-spacing: .18em; }
.brain-caption b { color: #686d5d; font-size: 8px; letter-spacing: .12em; }
@keyframes spin { to { rotate: 360deg; } }
@keyframes nucleus-orbit { to { rotate: 360deg; } }
@keyframes nucleus-pulse { 50% { scale: 1.18; opacity: .78; } }
@keyframes electron-a { to { transform: rotate(360deg) translateX(48px) rotate(-360deg); } }
@keyframes electron-b { to { transform: rotate(-360deg) translateX(42px) rotate(360deg); } }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 22px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #0b0b0b; }
.side-brand { display: flex; align-items: center; gap: 12px; color: var(--paper); text-decoration: none; }
.sidebar nav { display: grid; gap: 5px; margin-top: 70px; }
.sidebar nav button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 12px; border: 0; border-left: 2px solid transparent; background: transparent; color: #82968b; text-align: left; font-size: 13px; }
.sidebar nav button span { color: #4d6558; font: 9px var(--mono); }
.sidebar nav button:hover, .sidebar nav button.active { background: #112118; color: var(--paper); border-left-color: var(--lime); }
.sidebar nav button.active span { color: var(--lime); }
.side-status { margin-top: auto; padding: 15px 12px; display: flex; gap: 11px; border: 1px solid #233b2e; background: #0c1b13; }
.status-dot { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 2px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.side-status div { display: grid; gap: 5px; }
.side-status b { font: 700 9px var(--mono); letter-spacing: .1em; }
.side-status small { color: #687e72; font-size: 10px; }
.logout { margin-top: 12px; padding: 10px; border: 0; background: transparent; color: #687e72; font-size: 11px; text-align: left; }
.logout:hover { color: var(--paper); }
.workspace { min-width: 0; padding: 0 clamp(22px, 4vw, 64px) 70px; background: linear-gradient(180deg, #10100c 0, #080808 700px); }
.topbar { min-height: 118px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.topbar h1 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-actions button, .panel-head button { border: 1px solid #334c40; background: #0b1812; padding: 10px 13px; color: #9bad9f; font-size: 11px; }
.live-pill { padding: 10px 13px; border: 1px solid #294739; color: #9db3a5; font: 700 9px var(--mono); letter-spacing: .12em; }
.live-pill i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px var(--green); }
.view { display: none; padding-top: 38px; }
.view.active { display: block; }
.hero-panel { min-height: 360px; padding: clamp(30px, 4vw, 55px); display: flex; align-items: end; justify-content: space-between; border: 1px solid #3b3b32; background: radial-gradient(circle at 83% 24%, #d9ff431f, transparent 29%), linear-gradient(130deg, #171713, #0e0e0d); position: relative; overflow: hidden; }
.hero-panel::after { content: ""; position: absolute; width: 360px; aspect-ratio: 1; right: -60px; top: -105px; border: 1px dashed #52705f; border-radius: 50%; }
.hero-panel > div { position: relative; z-index: 1; }
.hero-panel > div > span, .section-intro span, .panel-head span, .cost-banner span { color: var(--lime); font: 700 9px var(--mono); letter-spacing: .16em; }
.hero-panel h2, .section-intro h2 { margin: 15px 0 18px; font-size: clamp(38px, 5vw, 70px); line-height: .95; letter-spacing: -.06em; }
.hero-panel h2 em, .section-intro h2 em { color: var(--lime); font-weight: 500; }
.hero-panel p { max-width: 580px; margin: 0; color: #91a69a; line-height: 1.55; }
.hero-clock { text-align: right; }
.hero-clock strong { display: block; font: 400 clamp(42px, 6vw, 84px)/1 var(--mono); letter-spacing: -.08em; }
.hero-clock span { color: #6f8578 !important; }
.central-heading { min-height: 125px; display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 32px 2px 18px; }
.central-heading span { color: var(--lime); font: 700 9px var(--mono); letter-spacing: .16em; }
.central-heading h3 { margin: 8px 0 0; font-size: clamp(26px, 3vw, 42px); letter-spacing: -.05em; }
.central-heading p { max-width: 420px; margin: 0; color: var(--muted); line-height: 1.5; }
.access-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.access-card { min-height: 220px; padding: 24px; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--panel); color: var(--paper); text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.access-card:hover { transform: translateY(-3px); border-color: #77776f; background: #171717; }
.access-card > span { color: var(--muted); font: 700 9px var(--mono); letter-spacing: .1em; }
.access-card > strong { margin-top: 42px; font-size: 28px; letter-spacing: -.05em; }
.access-card > p { margin: 9px 0 24px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.access-card > b { margin-top: auto; color: var(--lime); font: 700 10px var(--mono); letter-spacing: .08em; }
.access-card.featured { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.access-card.featured > span, .access-card.featured > p, .access-card.featured > b { color: var(--ink); }
.access-card.violet:hover { border-color: var(--violet); }
.access-card.violet > b { color: var(--violet); }
.access-card.orange:hover { border-color: var(--orange); }
.access-card.orange > b { color: var(--orange); }
.project-strip { margin-top: 12px; min-height: 76px; padding: 18px 22px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: #0d0d0d; }
.project-strip > span { margin-right: auto; color: var(--muted); font: 700 9px var(--mono); letter-spacing: .14em; }
.project-strip a { padding: 9px 12px; border: 1px solid var(--line); color: var(--paper); text-decoration: none; font-size: 11px; }
.project-strip a:hover { border-color: var(--lime); color: var(--lime); }
.operation-heading { margin-top: 8px; }
.metric-grid { margin: 18px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-card { min-height: 150px; padding: 21px; border: 1px solid var(--line); background: var(--panel); }
.metric-card > span { color: #788d82; font: 700 9px var(--mono); letter-spacing: .12em; }
.metric-card strong { display: block; margin: 24px 0 10px; font: 500 34px/1 var(--mono); letter-spacing: -.06em; }
.metric-card small { color: #779084; font-size: 11px; }
.metric-card .metric-ok { color: var(--green); }
.panel { border: 1px solid var(--line); background: var(--panel); }
.overview-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 12px; }
.panel-head { min-height: 76px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.panel-head h3 { margin: 6px 0 0; font-size: 16px; }
.panel-head > b { color: #789084; font: 700 9px var(--mono); letter-spacing: .1em; }
.activity-chart { min-height: 235px; padding: 22px; display: grid; align-items: center; }
.activity-chart svg { width: 100%; height: 190px; overflow: visible; }
.chart-grid { stroke: #294034; stroke-width: 1; }
.chart-line { fill: none; stroke: var(--lime); stroke-width: 2.5; }
.chart-dot { fill: var(--lime); }
.chart-empty { color: #687f72; text-align: center; }
.chart-legend { padding: 0 22px 20px; display: flex; gap: 20px; color: #71887b; font-size: 10px; }
.chart-legend i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; }
.success { background: var(--green); color: var(--green); }
.warning { background: var(--amber); color: var(--amber); }
.error { background: var(--red); color: var(--red); }
.running { background: var(--cyan); color: var(--cyan); }
.run-feed { max-height: 330px; overflow: auto; }
.run-item { padding: 16px 20px; display: grid; grid-template-columns: 9px 1fr auto; gap: 12px; align-items: start; border-bottom: 1px solid #24392f; }
.run-item > i { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; }
.run-item b { display: block; font-size: 12px; }
.run-item p { margin: 5px 0 0; color: #748b7e; font-size: 10px; line-height: 1.4; }
.run-item time { color: #5f7568; font: 9px var(--mono); }

.section-intro { min-height: 245px; display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; border-bottom: 1px solid var(--line); }
.section-intro h2 { font-size: clamp(42px, 5.5vw, 76px); }
.section-intro > p { max-width: 500px; margin: 0 0 27px; color: #849a8e; line-height: 1.6; }
.workflow-tabs { margin: 28px 0 12px; display: flex; gap: 8px; }
.workflow-tabs button { padding: 13px 16px; border: 1px solid var(--line); background: #0c1913; color: #7f9589; font-size: 12px; }
.workflow-tabs button.active { border-color: var(--lime); color: var(--paper); }
.workflow-canvas { min-height: 420px; overflow-x: auto; background-color: #0b1711; background-image: radial-gradient(#2b4437 1px, transparent 1px); background-size: 24px 24px; }
.workflow-canvas svg { min-width: 980px; width: 100%; height: 420px; }
.flow-edge { stroke: #527262; stroke-width: 2; fill: none; }
.flow-edge-active { stroke: var(--lime); stroke-dasharray: 7 7; animation: dash 1.3s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.flow-node rect { fill: #12231a; stroke: #3d5a4b; stroke-width: 1; }
.flow-node .node-accent { fill: var(--lime); stroke: none; }
.flow-node text { fill: var(--paper); font: 600 12px var(--sans); }
.flow-node .node-type { fill: #7c9185; font: 8px var(--mono); letter-spacing: 1px; }
.flow-node-success rect { stroke: var(--green); }
.flow-node-running rect { stroke: var(--cyan); }
.flow-node-error rect { stroke: var(--red); }
.workflow-detail { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.workflow-copy, .workflow-run { padding: 24px; border: 1px solid var(--line); background: var(--panel); }
.workflow-copy h3, .workflow-run h3 { margin: 0 0 10px; }
.workflow-copy p, .workflow-run p { color: #81978a; line-height: 1.5; }
.workflow-run button { margin-top: 10px; border: 0; background: var(--lime); color: var(--ink); padding: 12px 16px; font-weight: 800; }

.brain-toolbar { margin: 28px 0 12px; display: flex; align-items: end; justify-content: space-between; gap: 15px; }
.cesar-knowledge-map { position: relative; height: min(62vh, 620px); min-height: 430px; margin-top: 28px; overflow: hidden; background: radial-gradient(circle at 50% 50%, #252b13 0, #11130d 30%, #090909 72%); }
.cesar-knowledge-map::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: radial-gradient(#d9ff43 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(circle, #000 15%, transparent 78%); }
#cesar-map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cesar-map-head { position: absolute; z-index: 2; top: 22px; left: 24px; right: 24px; display: flex; justify-content: space-between; align-items: start; pointer-events: none; }
.cesar-map-head span { color: var(--lime); font: 700 9px var(--mono); letter-spacing: .15em; }
.cesar-map-head h3 { margin: 7px 0 0; font-size: 19px; }
.cesar-map-head p { margin: 7px 0 0; color: #777d6e; font-size: 10px; }
.cesar-map-head > b { padding: 8px 10px; border: 1px solid #d9ff4355; color: var(--lime); background: #0b0d09cc; font: 700 8px var(--mono); letter-spacing: .1em; }
.cesar-map-stats { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 20px; display: flex; gap: 20px; pointer-events: none; color: #777d6e; font: 700 8px var(--mono); letter-spacing: .11em; }
.cesar-map-stats b { color: var(--paper); font-size: 10px; }
.cesar-map-stats i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.cesar-map-tooltip { position: absolute; z-index: 3; max-width: 260px; padding: 10px 12px; border: 1px solid #d9ff4366; background: #090b08ee; color: var(--paper); font-size: 11px; line-height: 1.4; pointer-events: none; backdrop-filter: blur(8px); }
.cesar-map-tooltip b { display: block; margin-bottom: 4px; color: var(--lime); font: 700 8px var(--mono); letter-spacing: .1em; }
.brain-toolbar label { width: min(540px, 100%); }
.brain-toolbar label span { display: block; margin-bottom: 8px; color: #748b7e; font: 700 9px var(--mono); letter-spacing: .12em; }
.brain-toolbar button, #new-note { height: 48px; border: 0; background: var(--lime); color: var(--ink); padding: 0 18px; font-weight: 800; }
.brain-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .5fr); gap: 12px; }
.note-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.note-card { min-height: 210px; padding: 22px; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--panel); }
.note-card h3 { margin: 0 0 13px; font-size: 20px; }
.note-card p { margin: 0; color: #84998d; font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
.note-tags { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.note-tags span { padding: 5px 7px; border: 1px solid #355043; color: #8aa094; font: 8px var(--mono); text-transform: uppercase; }
.note-meta { margin-top: 15px; display: flex; align-items: center; justify-content: space-between; color: #5f7568; font-size: 9px; }
.note-meta button { border: 0; background: transparent; color: #8b625f; }
.note-meta span { display: flex; gap: 8px; }
.note-meta [data-edit-note] { color: var(--lime); }
.note-editor { padding-bottom: 22px; align-self: start; }
.note-editor > label, .note-editor > .primary-action, .note-editor > .form-error { margin-left: 20px; margin-right: 20px; }
.note-editor textarea { resize: vertical; line-height: 1.5; }
.note-editor .panel-head button { border: 0; font-size: 20px; }

.radar-status-grid { margin: 28px 0 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.radar-source { min-height: 120px; padding: 20px; display: grid; grid-template-columns: 1fr auto; border: 1px solid var(--line); background: var(--panel); }
.radar-source span { color: #82968a; font: 700 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.radar-source strong { grid-row: 1 / 3; grid-column: 2; color: var(--lime); font: 500 38px var(--mono); }
.radar-source small { align-self: end; color: #667c70; }
.radar-source.source-error { border-color: #65423f; }
.radar-source.source-error strong { color: #d98378; }
.radar-toolbar { padding: 18px 20px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.radar-toolbar > div:first-child { display: grid; gap: 5px; }
.radar-toolbar span { color: #6f8578; font: 9px var(--mono); text-transform: uppercase; }
.radar-toolbar strong { font-size: 18px; }
.radar-toolbar > button { height: 42px; border: 0; padding: 0 16px; background: var(--lime); color: var(--ink); font-weight: 800; }
.radar-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.radar-filters button { padding: 7px 10px; border: 1px solid #324b3f; background: transparent; color: #81958a; font: 700 9px var(--mono); text-transform: uppercase; }
.radar-filters button.active { border-color: var(--lime); color: var(--lime); }
.radar-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.radar-card { min-height: 280px; padding: 20px; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--panel); }
.radar-card header, .radar-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.radar-category { color: #789083; font: 700 9px var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.recommendation { padding: 6px 8px; color: #0a130d; background: #809287; font: 800 8px var(--mono); letter-spacing: .06em; }
.recommendation-publicar { background: var(--lime); }
.recommendation-atualizar { background: #e7c967; }
.recommendation-monitorar { background: #7ab1a3; }
.radar-card h3 { margin: 22px 0 10px; font-size: 19px; line-height: 1.2; }
.radar-card p { margin: 0; color: #7e9287; font-size: 12px; line-height: 1.5; }
.radar-score { margin-top: auto; padding: 22px 0 16px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.radar-score > div { height: 4px; overflow: hidden; background: #263b30; }
.radar-score i { display: block; height: 100%; background: var(--lime); }
.radar-score strong { color: #97aa9f; font: 10px var(--mono); }
.radar-card footer { padding-top: 13px; border-top: 1px solid #293e33; color: #667c70; font: 9px var(--mono); }
.radar-card footer a { color: var(--lime); text-decoration: none; white-space: nowrap; }
.radar-method { margin-top: 12px; padding: 22px; display: grid; grid-template-columns: .35fr 1fr; align-items: center; }
.radar-method span { color: var(--lime); font: 9px var(--mono); letter-spacing: .1em; }
.radar-method h3 { margin: 6px 0 0; }
.radar-method p { margin: 0; color: #81958a; line-height: 1.6; }

.agent-command { margin: 28px 0 12px; display: grid; grid-template-columns: .8fr 1.2fr; min-height: 300px; overflow: hidden; background: radial-gradient(circle at 17% 18%, #d9ff431b, transparent 30%), #10100e; }
.agent-command-copy { padding: 38px; display: flex; flex-direction: column; justify-content: end; border-right: 1px solid var(--line); }
.agent-command-copy > span, .agent-governance > div:first-child span { color: var(--lime); font: 700 9px var(--mono); letter-spacing: .16em; }
.agent-command-copy h3 { margin: 12px 0 16px; font-size: clamp(30px, 3.5vw, 52px); line-height: .98; letter-spacing: -.06em; }
.agent-command-copy p { max-width: 520px; margin: 0; color: var(--muted); line-height: 1.6; }
.agent-live-metrics { display: grid; grid-template-columns: 1fr 1fr; }
.agent-live-metrics > div { min-height: 150px; padding: 26px; display: flex; flex-direction: column; justify-content: end; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.agent-live-metrics > div:nth-child(even) { border-right: 0; }
.agent-live-metrics > div:nth-child(n+3) { border-bottom: 0; }
.agent-live-metrics span { color: #777d70; font: 700 8px var(--mono); letter-spacing: .12em; }
.agent-live-metrics strong { margin: 12px 0 5px; color: var(--lime); font: 500 38px/1 var(--mono); letter-spacing: -.06em; }
.agent-live-metrics small { color: #686e64; font-size: 10px; }
.agent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.agent-card { min-height: 290px; padding: 24px; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--panel); }
.agent-card header { display: flex; justify-content: space-between; }
.agent-card header span { color: #6f8578; font: 9px var(--mono); }
.agent-card header b { padding: 5px 7px; border: 1px solid #d9ff4344; color: var(--lime); font: 8px var(--mono); }
.agent-card h3 { margin: 42px 0 12px; font-size: 30px; letter-spacing: -.05em; }
.agent-card p { color: #82968b; line-height: 1.5; }
.agent-card footer { margin-top: auto; padding-top: 15px; display: grid; gap: 7px; border-top: 1px solid #293e33; color: #6f8578; font: 9px var(--mono); }
.agent-card footer span:last-child { color: var(--paper); }
.agent-operation-flow { margin-top: 12px; }
.agent-operation-flow ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.agent-operation-flow li { position: relative; min-height: 180px; padding: 25px; display: flex; gap: 14px; border-right: 1px solid var(--line); }
.agent-operation-flow li:last-child { border: 0; }
.agent-operation-flow li:not(:last-child)::after { content: "→"; position: absolute; z-index: 1; right: -9px; top: 27px; color: var(--lime); background: var(--panel); }
.agent-operation-flow li > span { color: var(--lime); font: 10px var(--mono); }
.agent-operation-flow li b { font-size: 14px; }
.agent-operation-flow li p { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.agent-governance { margin-top: 12px; padding: 28px; display: grid; grid-template-columns: 1.2fr 1.3fr repeat(3, auto); align-items: center; gap: 26px; }
.agent-governance h3 { margin: 8px 0 0; font-size: 21px; }
.agent-governance > p { color: var(--muted); line-height: 1.55; }
.agent-governance > div:not(:first-child) { color: #8d9389; font: 700 9px var(--mono); white-space: nowrap; }
.agent-governance > div:not(:first-child) b { margin-right: 7px; color: var(--lime); }
.relevance-agent-panel { margin-top: 12px; }
.agent-metrics { display: grid; grid-template-columns: repeat(4, 1fr); }
.agent-metrics > div { min-height: 120px; padding: 22px; display: grid; gap: 7px; border-right: 1px solid var(--line); }
.agent-metrics > div:last-child { border: 0; }
.agent-metrics span { color: #71877a; font: 9px var(--mono); letter-spacing: .08em; }
.agent-metrics strong { color: var(--lime); font: 500 25px var(--mono); }
.agent-metrics small { color: #61766a; }
.agent-config-message { margin: 0; padding: 16px 22px; border-top: 1px solid var(--line); color: #80958a; font-size: 12px; }
.editor-agent-panel { margin-top: 18px; }
.editor-draft-list { display: grid; gap: 10px; padding: 0 22px 20px; }
.editor-draft-list details { border: 1px solid var(--line); background: rgba(255,255,255,.018); padding: 14px; }
.editor-draft-list summary { cursor: pointer; display: grid; gap: 5px; }
.editor-draft-list summary span { color: var(--muted); font-size: 10px; letter-spacing: .14em; }
.editor-draft-list summary strong { color: var(--text); font-size: 15px; }
.editor-draft-list p { color: var(--muted); line-height: 1.65; }
.draft-source-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.draft-source-links a { color: var(--green); font-size: 11px; text-decoration: none; border: 1px solid var(--line); padding: 7px 9px; }
.editor-draft-list pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; color: var(--text); line-height: 1.75; max-height: 520px; overflow: auto; }
.agent-roadmap { margin-top: 12px; }
.agent-roadmap ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.agent-roadmap li { min-height: 150px; padding: 25px; display: flex; gap: 16px; border-right: 1px solid var(--line); }
.agent-roadmap li:last-child { border: 0; }
.agent-roadmap li > span { color: var(--lime); font: 10px var(--mono); }
.agent-roadmap li b { font-size: 13px; }
.agent-roadmap li p { margin: 9px 0; color: #778d80; font-size: 12px; line-height: 1.5; }

.audit-table-wrap { margin-top: 28px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 15px 18px; color: #70867a; font: 700 9px var(--mono); letter-spacing: .1em; text-align: left; }
td { padding: 16px 18px; border-top: 1px solid #283d32; color: #8fa297; vertical-align: top; }
td:first-child { color: var(--paper); font-weight: 700; }
.status-chip { display: inline-flex; align-items: center; gap: 7px; font: 700 8px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.status-chip i { width: 7px; height: 7px; border-radius: 50%; }
.empty-state { padding: 35px; color: #6c8276; text-align: center; }
.toast { position: fixed; z-index: 20; right: 24px; bottom: 24px; max-width: 360px; padding: 14px 18px; transform: translateY(20px); opacity: 0; pointer-events: none; border: 1px solid #4e705e; background: #13251b; color: var(--paper); font-size: 12px; transition: .2s ease; }
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid, .section-intro { grid-template-columns: 1fr; }
  .section-intro { padding-bottom: 30px; }
  .section-intro > p { margin: 0; }
  .agent-grid { grid-template-columns: 1fr; }
  .agent-command { grid-template-columns: 1fr; }
  .agent-command-copy { min-height: 280px; border-right: 0; border-bottom: 1px solid var(--line); }
  .agent-operation-flow ol { grid-template-columns: 1fr; }
  .agent-operation-flow li { min-height: 120px; border-right: 0; border-bottom: 1px solid var(--line); }
  .agent-operation-flow li:not(:last-child)::after { content: "↓"; right: 25px; top: auto; bottom: -9px; }
  .agent-governance { grid-template-columns: 1fr 1fr; }
  .radar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-card { min-height: 100vh; padding: 35px 25px; border: 0; }
  .login-brand { margin-bottom: 60px; }
  .login-visual { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; z-index: 10; width: 100%; height: auto; padding: 16px 20px; flex-direction: row; align-items: center; overflow-x: auto; border: 0; border-bottom: 1px solid var(--line); }
  .side-brand { margin-right: 20px; }
  .sidebar nav { margin: 0; display: flex; }
  .sidebar nav button { width: max-content; border-left: 0; border-bottom: 2px solid transparent; }
  .sidebar nav button.active { border-left: 0; border-bottom-color: var(--lime); }
  .side-status, .logout { display: none; }
  .workspace { padding: 0 16px 45px; }
  .topbar { min-height: 95px; }
  .topbar .eyebrow { display: none; }
  .live-pill { display: none; }
  .hero-panel { min-height: 440px; display: grid; }
  .hero-clock { text-align: left; }
  .central-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .access-grid { grid-template-columns: 1fr; }
  .project-strip { align-items: stretch; flex-direction: column; }
  .project-strip > span { margin: 0 0 8px; }
  .metric-grid { grid-template-columns: 1fr; }
  .workflow-detail, .brain-layout, .note-grid { grid-template-columns: 1fr; }
  .brain-toolbar { align-items: stretch; flex-direction: column; }
  .cesar-knowledge-map { min-height: 480px; }
  .cesar-map-stats { gap: 10px; flex-wrap: wrap; }
  .agent-roadmap ol { grid-template-columns: 1fr; }
  .agent-metrics { grid-template-columns: 1fr 1fr; }
  .agent-roadmap li { border-right: 0; border-bottom: 1px solid var(--line); }
  .cost-banner { grid-template-columns: 1fr; }
  .cost-banner strong { grid-row: auto; grid-column: auto; }
  .agent-live-metrics, .agent-governance { grid-template-columns: 1fr; }
  .agent-live-metrics > div { min-height: 125px; border-right: 0; }
  .agent-live-metrics > div:nth-child(n+3) { border-bottom: 1px solid var(--line); }
  .agent-live-metrics > div:last-child { border-bottom: 0; }
  .radar-status-grid, .radar-grid, .radar-method { grid-template-columns: 1fr; }
  .radar-toolbar { grid-template-columns: 1fr; }
  .radar-filters { justify-content: flex-start; }
}
