/* Kai-bespoke layer. The landing surface is the shared agent-landing template
   (zimac-landing.css, data-agent="kai"); this file carries only what is truly
   Kai's: the work-ship brand mark, the landing demo figures (pressure map,
   conversion card, target grid, import list), and the delivery console. */

/* De-drift: on the landing surface, mono labels use the family's system mono
   stack. The console (outside .agent-landing) keeps DM Mono untouched. */
.agent-landing { --mono: var(--l-mono); }

/* Kai's work ship inside the canonical persona mark. */
.ln-persona-mark .brand-mark { transform: scale(.7); }

/* The footer sign-in control matches the canonical foot links. */
.agent-landing .ln-foot-col .text-button { padding: 0; border: 0; background: none; text-align: left; color: var(--l-muted); font-size: 13.5px; transition: color .2s; }
.agent-landing .ln-foot-col .text-button:hover { color: var(--l-text); }

/* Kai's work ship: a steady hull holding course above one breaking wave. */
.brand-mark { position: relative; width: 36px; height: 36px; flex: 0 0 36px; transform: none; display: inline-grid; place-items: center; color: #60a5fa; filter: drop-shadow(0 0 9px rgba(96,165,250,.24)); }
.brand-mark::before { content: none; }
.brand-mark .kai-mark { width: 100%; height: 100%; display: block; overflow: visible; }
.brand-mark .kai-ship { fill: #60a5fa; }
.brand-mark .kai-mast { fill: none; stroke: #60a5fa; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark .kai-wave { fill: none; stroke: #bfdbfe; stroke-width: 2.8; stroke-linecap: round; }

/* Dialog + console buttons (the landing uses the shared ln-btn family). */
.button { border-radius: 11px; padding: 12px 17px; }
.button-primary { background: linear-gradient(180deg, #93c5fd, #60a5fa); box-shadow: 0 12px 28px rgba(30,64,175,.22); }
.button-ghost { background: rgba(11,25,20,.58); }
.button-large { padding: 15px 22px; }

.method-grid { gap: 12px; margin-top: 62px; border: 0; }
.method-grid article, .method-grid article:first-child { min-height: 300px; padding: 31px 27px; border: 1px solid rgba(255,255,255,.09); border-radius: 16px; background: rgba(255,255,255,.025); }
.method-grid article > span { color: var(--mint); }
.method-grid h3 { margin-top: 65px; }
.method-grid p { color: #9caca4; }
.method-grid small { color: #6f8279; }

.conversion-card { overflow: hidden; border-radius: 18px; }
.source-code, .mapped-steps > div { border-radius: 10px; }
.target-grid { gap: 12px; background: transparent; }
.target-grid article { border: 1px solid rgba(255,255,255,.09); border-radius: 16px; background: linear-gradient(145deg, #12211b, #0d1814); }

/* Finn and Kai share one dark operational surface; Kai adds deployment-state color. */
.console { background: #07100d; color: #dfe8e3; }
.sidebar { background: #08120e; border-right-color: #20322a; }
.workspace { border-radius: 11px; }
.sidebar nav button { border-radius: 9px; }
.workspace-main { background: radial-gradient(circle at 88% 0, rgba(96,165,250,.06), transparent 30%), #0a1410; }
.app-header { background: rgba(9,19,15,.9); border-bottom-color: #24352e; backdrop-filter: blur(16px); }
.crumb { color: #7f9188; }
.crumb b { color: #dce7e1; }
.icon-button, .profile { border-color: #2b3d34; background: #101d18; color: #9bada4; border-radius: 9px; }
.profile span { border-radius: 7px; }
.page-title h1 { color: #edf4f0; }
.page-title p { color: #82958b; }
.app-button { border-color: #30433a; background: #111f19; color: #d7e4de; border-radius: 9px; }
.app-button.primary { background: var(--mint); color: #07100d; border-color: var(--mint); }
.stat-card, .panel { border-color: #263a31; border-radius: 16px; background: linear-gradient(145deg, #122019, #0d1914); }
.stat-card > small, .stat-card p { color: #81948a; }
.panel-head { border-bottom-color: #273a31; }
.panel-head p { color: #7e9187; }
.panel-head a, .link-button { color: var(--mint); }
.status-pill { border-radius: 8px; background: rgba(96,165,250,.12); color: var(--mint); }
.status-pill.baking, .status-pill.running, .status-pill.succeeded { background: rgba(96,165,250,.12); color: var(--mint); }
.status-pill.rolled_back, .status-pill.failed { background: rgba(227,108,93,.13); color: #f18b7e; }
.status-pill.waiting_approval { background: rgba(240,180,93,.13); color: var(--amber); }
.status-pill.healthy, .status-pill.clear { background: rgba(96,165,250,.12); color: var(--mint); }
.status-pill.evaluating { background: rgba(112,169,232,.13); color: #8fc1f4; }
.status-pill.breached, .status-pill.blocking { background: rgba(227,108,93,.14); color: #f18b7e; }
.status-pill.waived { background: rgba(240,180,93,.13); color: var(--amber); }
.rollout-meta small, .metric small, .map-stage small, .guard-row small { color: #7f9188; }
.rollout-meta .revision, .metric, .data-table th { background: #0a1510; border-color: #2a3c33; }
.deployment-map::before { background: #34483e; }
.map-dot { background: #0e1b16; border-color: #3b5146; }
.map-stage.complete .map-dot { background: #2c8d6b; border-color: #2c8d6b; }
.map-stage.active .map-dot { color: var(--mint); border-color: var(--mint); box-shadow: 0 0 0 5px rgba(96,165,250,.08); }
.traffic-bar { background: #1c2d25; }
.guard-row, .data-table td, .stage-card, .audit-item { border-bottom-color: #23362d; }
.guard-icon { background: rgba(96,165,250,.1); color: var(--mint); }
.data-table tbody tr:hover { background: rgba(96,165,250,.025); }
.data-table td small, .pipeline-card p, .pipeline-card-foot, .stage-card small, .audit-item small { color: #7d9086; }
.target-icon, .pipeline-card .path span, .traffic-steps span { border-color: #2c4036; background: #0b1712; color: var(--mint); border-radius: 8px; }
.import-editor input, .import-editor textarea, .modal input, .modal textarea { border-color: #31453a; background: #0a1510; color: #e5eee9; border-radius: 9px; }
.summary-score { border-bottom-color: #26392f; }
.score-ring::before { background: #111f19; }
.mapped-list > div { border-bottom-color: #25372f; }
.connection-logo { border-radius: 11px; }
.audit-item code { color: var(--mint); background: rgba(96,165,250,.08); }

/* Interactive workspace dialogs and evidence surfaces. */
.workspace-modal { width: min(720px, calc(100vw - 32px)); max-height: min(850px, calc(100vh - 32px)); overflow: auto; border-radius: 18px; }
.workspace-modal > h2 { margin-bottom: 10px; }
.workspace-modal > p:not(.eyebrow) { color: #91a199; line-height: 1.6; }
.workspace-form { display: grid; gap: 14px; margin-top: 24px; }
.workspace-form label { display: grid; gap: 7px; margin: 0; color: #93a59c; font-size: 9px; }
.workspace-form input, .workspace-form textarea, .workspace-form select, .workspace-search input { width: 100%; border: 1px solid #31453a; border-radius: 9px; background: #0a1510; color: #e5eee9; padding: 11px 12px; outline: none; }
.workspace-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #60a5fa 50%), linear-gradient(135deg, #60a5fa 50%, transparent 50%); background-position: calc(100% - 17px) 16px, calc(100% - 12px) 16px; background-size: 5px 5px; background-repeat: no-repeat; }
.workspace-form input:focus, .workspace-form textarea:focus, .workspace-form select:focus, .workspace-search input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(96,165,250,.08); }
.workspace-form .app-button { width: max-content; min-width: 190px; margin-top: 4px; }
.workspace-callout { display: grid; gap: 5px; padding: 14px 15px; border: 1px solid rgba(96,165,250,.18); border-radius: 11px; background: rgba(96,165,250,.045); }
.workspace-callout b { color: #dfeae5; font-size: 10px; }
.workspace-callout span { color: #82958b; font-size: 9px; line-height: 1.55; }
.dialog-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 22px 0; }
.dialog-stat-grid > div { min-width: 0; padding: 14px; border: 1px solid #283b32; border-radius: 11px; background: #0b1712; display: grid; gap: 7px; }
.dialog-stat-grid small { color: #788b81; font-size: 8px; }
.dialog-stat-grid b { overflow: hidden; color: #dce8e2; font-family: var(--mono); font-size: 10px; text-overflow: ellipsis; }
.evidence-timeline { margin: 12px 0 22px; }
.evidence-timeline article { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 11px; padding-bottom: 20px; }
.evidence-timeline article::after { content: ""; position: absolute; top: 13px; bottom: 0; left: 5px; width: 1px; background: #2b4036; }
.evidence-timeline article:last-child::after { display: none; }
.evidence-timeline article > span { z-index: 1; width: 11px; height: 11px; margin-top: 2px; border: 2px solid var(--mint); border-radius: 50%; background: #0f1b16; }
.evidence-timeline article div { display: grid; gap: 4px; }
.evidence-timeline small { color: #6f8378; font-family: var(--mono); font-size: 7px; text-transform: uppercase; }
.evidence-timeline b { color: #dde9e3; font-size: 10px; }
.evidence-timeline p { margin: 0; color: #8fa198; font-size: 9px; line-height: 1.55; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 17px; border-top: 1px solid #2a3d34; }
.connection-result { text-align: center; padding: 10px 0; }
.connection-result .guard-icon { margin: 0 auto 14px; }
.connection-result h3 { font-size: 21px; }
.connection-result p { color: #8da097; line-height: 1.6; }
.connection-result pre { max-height: 250px; margin: 18px 0; padding: 15px; overflow: auto; text-align: left; border: 1px solid #2b4036; border-radius: 10px; background: #08120e; color: #a9c7b8; font: 8px/1.6 var(--mono); white-space: pre-wrap; }
.workspace-search { margin-top: 20px; }
#workspace-search-results { display: grid; gap: 6px; margin-top: 10px; }
#workspace-search-results button { width: 100%; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 11px; padding: 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: inherit; text-align: left; }
#workspace-search-results button:hover, #workspace-search-results button:focus { border-color: #30463b; background: #12221b; outline: none; }
#workspace-search-results button > span:nth-child(2) { display: grid; gap: 3px; }
#workspace-search-results button b { font-size: 10px; }
#workspace-search-results button small, #workspace-search-results button i { color: #71847a; font-size: 8px; font-style: normal; }
.empty-search { margin: 24px 0 0; color: #71847a; text-align: center; }
.notification-list { display: grid; margin-top: 20px; }
.notification-list article { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #283b32; }
.notification-list article:last-child { border: 0; }
.notification-list article > div { display: grid; gap: 5px; }
.notification-list b { font-size: 10px; line-height: 1.45; }
.notification-list small { color: #75887e; font-size: 8px; }
.profile-sheet { display: flex; align-items: center; gap: 14px; margin: 24px 0; }
.profile-avatar { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: #1b5642; color: var(--mint); font-weight: 700; }
.profile-sheet h3 { margin: 0 0 5px; }
.profile-sheet p { margin: 0; color: #809288; font-size: 9px; }
.detail-list { display: grid; margin: 20px 0; border-top: 1px solid #283b32; }
.detail-list > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid #283b32; }
.detail-list dt { color: #71847a; font-size: 8px; }
.detail-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #cddad3; font-family: var(--mono); font-size: 8px; line-height: 1.5; }
.workspace-summary { margin-top: 20px; }
.access-status { margin: 14px 0; padding: 10px 12px; border: 1px solid rgba(240,180,93,.35); border-radius: 9px; background: rgba(240,180,93,.08); color: #f3c981 !important; font-size: 9px; line-height: 1.5; }
.access-status[hidden] { display: none; }

.wave-pipeline-grid { display: grid; gap: 14px; }
.wave-card { overflow: hidden; }
.wave-track { display: grid; grid-template-columns: repeat(3, 1fr); padding: 22px; }
.wave-track > section { min-width: 0; padding: 0 18px; border-right: 1px solid #293d33; }
.wave-track > section:last-child { border: 0; }
.wave-node { position: relative; height: 30px; display: flex; align-items: center; }
.wave-node::after { content: ""; position: absolute; left: 26px; right: -18px; height: 1px; background: #344a3f; }
.wave-track > section:last-child .wave-node::after { display: none; }
.wave-node span { z-index: 1; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--mint); border-radius: 50%; background: #0c1813; color: var(--mint); font-family: var(--mono); font-size: 8px; }
.wave-node i { position: absolute; left: 0; bottom: -3px; height: 2px; max-width: 100%; background: var(--mint); opacity: .45; }
.wave-track section > div:last-child { display: grid; gap: 5px; margin-top: 13px; }
.wave-track b { font-size: 11px; }
.wave-track small { overflow: hidden; color: #75887e; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.wave-track p { margin: 4px 0 0; color: #87998f; font-size: 8px; }
.wave-track p strong { color: var(--mint); font-family: var(--mono); }

.monitor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.monitor-card { padding: 20px; border-top: 2px solid #3a5045; }
.monitor-card.breached { border-top-color: var(--red); }
.monitor-card.evaluating { border-top-color: var(--blue); }
.monitor-card.healthy { border-top-color: var(--mint); }
.monitor-card-head { display: flex; justify-content: space-between; gap: 16px; }
.monitor-card-head small { color: #70847a; font-size: 7px; text-transform: uppercase; letter-spacing: .5px; }
.monitor-card h3 { margin: 8px 0 0; font-size: 14px; }
.monitor-card > p { min-height: 32px; margin: 19px 0; color: #8da097; font-size: 9px; line-height: 1.55; }
.monitor-reading { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 13px; }
.monitor-reading strong { color: #e4eee9; font-family: var(--mono); font-size: 24px; font-weight: 500; }
.monitor-reading span { padding-bottom: 3px; color: #75887e; font-size: 8px; }
.breach-meter { height: 4px; margin: 16px 0; overflow: hidden; border-radius: 4px; background: #21332a; }
.breach-meter i { display: block; height: 100%; border-radius: 4px; background: var(--red); }
.monitor-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.monitor-card-foot > span { color: #70847a; font-size: 7px; }
.monitor-card-foot > div { display: flex; gap: 8px; }

.blocker-list > section { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center; padding: 17px 20px; border-bottom: 1px solid #26392f; }
.blocker-list > section:last-child { border: 0; }
.blocker-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: rgba(96,165,250,.1); color: var(--mint); font-family: var(--mono); font-size: 10px; }
.blocker-icon.blocking { background: rgba(227,108,93,.13); color: #f18b7e; }
.blocker-icon.waived { background: rgba(240,180,93,.13); color: var(--amber); }
.blocker-title { display: flex; align-items: center; gap: 9px; }
.blocker-title b { font-size: 10px; }
.blocker-list p { margin: 7px 0 5px; color: #a1b0a8; font-size: 9px; }
.blocker-list small { color: #6f8278; font-size: 8px; }
.blocker-actions { display: flex; gap: 7px; }
.blocker-actions .app-button { height: 30px; padding: 0 10px; }

.rollout-policy { margin-top: 14px; }
.rollout-policy-body { display: grid; grid-template-columns: .85fr 1.15fr; gap: 30px; padding: 22px; }
.rollout-policy-body > div > small { color: #6e8177; font-family: var(--mono); font-size: 7px; letter-spacing: .8px; }
.percentage-ladder { display: flex; align-items: flex-start; margin-top: 18px; }
.percentage-ladder section { flex: 1; position: relative; display: grid; gap: 6px; }
.percentage-ladder section span { width: 38px; height: 38px; display: grid; place-items: center; z-index: 1; border: 1px solid #375044; border-radius: 50%; background: #0d1914; color: #9caea4; font-family: var(--mono); font-size: 8px; }
.percentage-ladder section i { position: absolute; top: 19px; left: 38px; right: 0; height: 1px; background: #354b40; }
.percentage-ladder section:last-child i { display: none; }
.percentage-ladder section.active span { border-color: var(--mint); color: var(--mint); box-shadow: 0 0 0 4px rgba(96,165,250,.08); }
.percentage-ladder section small { color: #6f8278; font-size: 7px; }
.compact-waves { display: grid; gap: 6px; margin-top: 13px; }
.compact-waves section { display: grid; grid-template-columns: 27px 1fr auto; align-items: center; gap: 10px; padding: 9px; border: 1px solid #293d33; border-radius: 9px; }
.compact-waves section > span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #15271f; color: #8aa398; font-family: var(--mono); font-size: 7px; }
.compact-waves section > div { display: grid; gap: 3px; }
.compact-waves b { font-size: 9px; }
.compact-waves small { color: #708279; font-size: 7px; }
.compact-waves strong { color: var(--mint); font-family: var(--mono); font-size: 9px; }
.compact-waves section.active { border-color: rgba(96,165,250,.45); background: rgba(96,165,250,.035); }
.policy-overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.monitor-dot { width: 12px; height: 12px; margin: 0 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(96,165,250,.08); }
.monitor-dot.evaluating { background: var(--blue); box-shadow: 0 0 0 4px rgba(112,169,232,.08); }
.monitor-dot.breached { background: var(--red); box-shadow: 0 0 0 4px rgba(227,108,93,.08); }
.system-clear.alert > span { background: var(--amber); box-shadow: 0 0 0 4px rgba(240,180,93,.1); }
.system-clear.alert b { color: #f0c77c; }

@media (max-width: 1050px) {
  .method-grid article:nth-child(3) { border-left-color: rgba(255,255,255,.09); }
  .monitor-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .method-grid article, .method-grid article:nth-child(3) { border: 1px solid rgba(255,255,255,.09); border-radius: 14px; }
  .workspace-modal { padding: 24px; }
  .workspace-modal .form-row, .dialog-stat-grid { grid-template-columns: 1fr; }
  .detail-list > div { grid-template-columns: 90px 1fr; }
  .monitor-grid, .policy-overview-grid, .rollout-policy-body { grid-template-columns: 1fr; }
  .wave-track { grid-template-columns: 1fr; gap: 22px; }
  .wave-track > section { padding: 0; border: 0; }
  .wave-node::after { display: none; }
  .blocker-list > section { grid-template-columns: 34px 1fr; }
  .blocker-actions { grid-column: 1 / -1; }
}
