:root {
  color-scheme: dark;
  font-family: Inter, "SF Pro Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #f5f7ff;
  background: #080a12;
  --ink: #f5f7ff;
  --muted: #9298ac;
  --muted-strong: #bcc2d3;
  --violet: #9b87ff;
  --violet-bright: #b7a9ff;
  --mint: #69f5c0;
  --cyan: #60dfff;
  --amber: #ffc16b;
  --red: #ff7e91;
  --surface: rgba(17, 19, 31, .68);
  --surface-strong: rgba(24, 27, 43, .84);
  --surface-soft: rgba(255, 255, 255, .035);
  --line: rgba(255, 255, 255, .105);
  --line-strong: rgba(255, 255, 255, .17);
  --shadow: 0 24px 80px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .055);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 46% -10%, rgba(74, 58, 135, .15), transparent 31rem),
    linear-gradient(180deg, #080a12 0%, #0a0c15 48%, #070910 100%);
  color: var(--ink);
}
body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background: linear-gradient(110deg, rgba(255,255,255,.018), transparent 40%, rgba(155,135,255,.018));
  content: "";
  pointer-events: none;
}
::selection { color: #090b13; background: var(--violet-bright); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 99px; background: #34384c; background-clip: padding-box; }

.ambient { position: fixed; z-index: -3; border-radius: 50%; opacity: .32; filter: blur(90px); pointer-events: none; }
.ambient-one { top: -16rem; right: -8rem; width: 36rem; height: 36rem; background: #735cff; }
.ambient-two { top: 37rem; left: -20rem; width: 35rem; height: 35rem; background: #126a74; opacity: .2; }
.grid-field {
  position: fixed;
  z-index: -2;
  inset: 0;
  opacity: .13;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  pointer-events: none;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--violet-bright);
  outline-offset: 2px;
}
svg { display: block; }
.shell { width: min(1440px, calc(100vw - 56px)); margin-inline: auto; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

.glass-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.046), rgba(255,255,255,.015)), var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px) saturate(130%);
  -webkit-backdrop-filter: blur(28px) saturate(130%);
}

.topbar { display: flex; min-height: 86px; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid rgba(255,255,255,.075); }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; }
.brand > span:last-child { display: grid; gap: .05rem; }
.brand strong { font-size: .8rem; letter-spacing: .16em; }
.brand small { color: var(--muted); font-size: .68rem; letter-spacing: .04em; }
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(167, 149, 255, .36);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(155,135,255,.23), rgba(96,223,255,.07));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 10px 30px rgba(82,61,179,.18);
}
.brand-mark svg { width: 24px; height: 24px; fill: none; stroke: #d5cdff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark.mini { width: 29px; height: 29px; border-radius: 9px; }
.brand-mark.mini svg { width: 18px; height: 18px; }
.topbar-actions { display: flex; align-items: center; gap: .8rem; }
.live-chip, .ghost-link { display: inline-flex; align-items: center; gap: .52rem; border: 1px solid var(--line); border-radius: 99px; padding: .55rem .78rem; font-size: .72rem; }
.live-chip { color: var(--muted-strong); background: rgba(255,255,255,.025); }
.live-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 13px rgba(105,245,192,.85); }
.live-chip.unavailable i { background: var(--red); box-shadow: 0 0 13px rgba(255,126,145,.8); }
.ghost-link { color: #e5e2f4; text-decoration: none; transition: border-color .2s, background .2s; }
.ghost-link:hover { border-color: rgba(155,135,255,.45); background: rgba(155,135,255,.08); }
.ghost-link svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(2.5rem, 8vw, 8rem); align-items: end; padding: clamp(5rem, 9vw, 8.5rem) 0 3.2rem; }
.hero-copy { max-width: 850px; }
.eyebrow { margin: 0 0 .5rem; color: var(--violet-bright); font: 760 .68rem/1.3 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .15em; text-transform: uppercase; }
.hero-copy > .eyebrow { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.2rem; color: var(--muted-strong); }
.hero-copy > .eyebrow::before { width: 26px; height: 1px; background: var(--violet); content: ""; }
.hero-copy > .eyebrow b { border: 1px solid rgba(155,135,255,.25); border-radius: 99px; padding: .25rem .45rem; color: var(--violet-bright); font-size: .55rem; font-weight: 700; letter-spacing: .12em; }
.hero h1 { margin: 0; max-width: 940px; font-size: clamp(3.65rem, 7.3vw, 7.8rem); font-weight: 610; line-height: .88; letter-spacing: -.073em; }
.hero h1 em { color: transparent; background: linear-gradient(94deg, #f3f0ff 4%, #a998ff 52%, #73dbf7 106%); background-clip: text; -webkit-background-clip: text; font-style: normal; }
.lede { max-width: 700px; margin: 1.75rem 0 0; color: #aab0c3; font-size: clamp(.98rem, 1.25vw, 1.12rem); line-height: 1.65; }
.hero-signal { position: relative; min-height: 310px; overflow: hidden; border-radius: 28px; padding: 1.4rem; }
.hero-signal::before { position: absolute; inset: -40% 15% 20%; border-radius: 50%; background: rgba(144,124,255,.11); filter: blur(36px); content: ""; }
.signal-orbit { position: relative; display: grid; height: 165px; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(183,169,255,.24); border-radius: 50%; transform: rotate(-18deg); }
.orbit-a { width: 154px; height: 74px; }
.orbit-b { width: 112px; height: 150px; transform: rotate(43deg); border-color: rgba(96,223,255,.18); }
.orbit-core { position: relative; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; background: radial-gradient(circle at 35% 30%, #d8d0ff, #8c76fc 45%, #33255c); box-shadow: 0 0 42px rgba(155,135,255,.42), inset 0 1px 1px rgba(255,255,255,.5); transform: rotate(12deg); }
.orbit-core::after { position: absolute; inset: 13px; border: 1px solid rgba(8,10,18,.5); border-radius: 5px; content: ""; }
.signal-copy { position: relative; }
.micro-label { color: var(--muted); font: 700 .58rem ui-monospace, monospace; letter-spacing: .18em; }
.signal-copy strong { display: block; margin-top: .35rem; font-size: 1.45rem; letter-spacing: -.025em; }
.signal-copy p { margin: .35rem 0 0; color: var(--muted); font-size: .78rem; }
.signal-footer { position: absolute; right: 1.35rem; bottom: 1.2rem; left: 1.35rem; display: flex; justify-content: space-between; padding-top: .85rem; border-top: 1px solid var(--line); color: #7e8498; font-size: .64rem; }

.summary { display: grid; grid-template-columns: repeat(12, 1fr); gap: .8rem; margin-bottom: .8rem; }
.summary-card { position: relative; grid-column: span 3; min-height: 148px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; padding: 1.15rem; background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.012)), rgba(18,20,32,.67); box-shadow: inset 0 1px 0 rgba(255,255,255,.045); backdrop-filter: blur(22px); }
.summary-card::after { position: absolute; right: -35px; bottom: -60px; width: 120px; height: 120px; border-radius: 50%; background: var(--card-glow, rgba(155,135,255,.11)); filter: blur(5px); content: ""; }
.summary-card-head { display: flex; align-items: center; justify-content: space-between; }
.summary-icon { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(155,135,255,.24); border-radius: 11px; color: var(--violet-bright); background: rgba(155,135,255,.07); }
.summary-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.summary-trend { color: var(--mint); font: 700 .58rem ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.summary-card strong { position: relative; z-index: 1; display: block; margin-top: 1.1rem; font-size: 2.35rem; font-weight: 590; line-height: 1; letter-spacing: -.055em; }
.summary-card > span { position: relative; z-index: 1; display: block; margin-top: .4rem; color: var(--muted); font-size: .72rem; }
.summary-card.warning { --card-glow: rgba(255,193,107,.11); }
.summary-card.warning .summary-icon, .summary-card.warning .summary-trend { color: var(--amber); border-color: rgba(255,193,107,.22); background: rgba(255,193,107,.06); }
.summary-card.success { --card-glow: rgba(105,245,192,.1); }
.summary-card.success .summary-icon, .summary-card.success .summary-trend { color: var(--mint); border-color: rgba(105,245,192,.22); background: rgba(105,245,192,.06); }
.summary-card.cyan { --card-glow: rgba(96,223,255,.1); }
.summary-card.cyan .summary-icon, .summary-card.cyan .summary-trend { color: var(--cyan); border-color: rgba(96,223,255,.22); background: rgba(96,223,255,.06); }

.command-bar { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; border-radius: 20px; padding: .75rem .82rem .75rem 1rem; }
.operator-field { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.command-icon, .source-icon { display: grid; flex: 0 0 auto; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: #a9afc4; background: rgba(255,255,255,.03); }
.command-icon svg, .source-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.operator-field label { display: grid; gap: .08rem; }
.operator-field label span { color: var(--muted); font-size: .59rem; letter-spacing: .08em; text-transform: uppercase; }
.operator-field input { width: 190px; border: 0; padding: 0; color: #e9ebf7; background: transparent; font-size: .78rem; }
.operator-field small { color: #686e82; font-size: .64rem; }
.sync-button { display: inline-flex; align-items: center; gap: .6rem; border: 1px solid rgba(168,150,255,.28); border-radius: 13px; padding: .78rem 1.05rem; color: #ece9ff; background: linear-gradient(135deg, rgba(155,135,255,.22), rgba(96,223,255,.08)); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); font-size: .74rem; font-weight: 700; cursor: pointer; transition: transform .2s, border-color .2s, background .2s; }
.sync-button:hover { transform: translateY(-1px); border-color: rgba(183,169,255,.52); background: linear-gradient(135deg, rgba(155,135,255,.3), rgba(96,223,255,.12)); }
.sync-button.loading svg { animation: spin 1s linear infinite; }
.sync-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@keyframes spin { to { transform: rotate(360deg); } }

.pipeline { margin-bottom: .8rem; overflow: hidden; border-radius: 24px; padding: 1.15rem; }
.pipeline-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; margin-bottom: 1rem; }
.pipeline-head h2 { margin: 0; font-size: 1.35rem; font-weight: 620; letter-spacing: -.035em; }
.pipeline-head > div > p:last-child { margin: .35rem 0 0; color: var(--muted); font-size: .72rem; }
.research-button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .55rem; border: 1px solid rgba(96,223,255,.25); border-radius: 12px; padding: .7rem .88rem; color: #dff8ff; background: linear-gradient(135deg, rgba(96,223,255,.13), rgba(155,135,255,.08)); font-size: .68rem; font-weight: 700; cursor: pointer; transition: transform .2s, border-color .2s; }
.research-button:hover { transform: translateY(-1px); border-color: rgba(96,223,255,.48); }
.research-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.portfolio-lanes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .65rem; }
.portfolio-lane { --lane-color: var(--violet-bright); display: flex; min-width: 0; height: 510px; min-height: 0; flex-direction: column; border: 1px solid rgba(255,255,255,.075); border-radius: 17px; padding: .72rem; background: rgba(3,5,11,.24); }
.portfolio-lane.research { --lane-color: var(--cyan); }
.portfolio-lane.building { --lane-color: var(--violet-bright); }
.portfolio-lane.prelaunch { --lane-color: #ff8fc8; }
.portfolio-lane.ready { --lane-color: var(--amber); }
.portfolio-lane.launched { --lane-color: var(--mint); }
.portfolio-lane.parked { --lane-color: #8c92a5; }
.lane-head { display: flex; align-items: center; gap: .55rem; padding: .1rem .08rem .65rem; border-bottom: 1px solid rgba(255,255,255,.065); }
.lane-icon { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid color-mix(in srgb, var(--lane-color) 28%, transparent); border-radius: 9px; color: var(--lane-color); background: color-mix(in srgb, var(--lane-color) 6%, transparent); }
.lane-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lane-head-copy { min-width: 0; flex: 1; }
.lane-head-copy strong { display: block; font-size: .66rem; }
.lane-head-copy small { display: block; margin-top: .15rem; overflow: hidden; color: #646b7e; font-size: .52rem; text-overflow: ellipsis; white-space: nowrap; }
.lane-count { display: grid; min-width: 22px; height: 21px; place-items: center; border: 1px solid color-mix(in srgb, var(--lane-color) 20%, transparent); border-radius: 7px; color: var(--lane-color); font: 700 .57rem ui-monospace, monospace; }
.lane-projects { display: grid; min-height: 0; flex: 1; align-content: start; gap: .42rem; margin-top: .55rem; overflow-y: auto; padding-right: .1rem; }
.lane-project { display: grid; width: 100%; gap: .48rem; border: 1px solid rgba(255,255,255,.065); border-radius: 12px; padding: .58rem; color: #e8eaf4; background: rgba(255,255,255,.025); text-align: left; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.lane-project:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--lane-color) 30%, transparent); background: color-mix(in srgb, var(--lane-color) 5%, transparent); }
.lane-project.active { border-color: color-mix(in srgb, var(--lane-color) 38%, transparent); box-shadow: inset 2px 0 0 var(--lane-color); }
.lane-project-top { display: grid; grid-template-columns: 29px minmax(0, 1fr) auto; gap: .48rem; align-items: center; }
.lane-project .project-glyph { width: 29px; height: 29px; border-radius: 9px; }
.lane-project .project-glyph svg { width: 17px; height: 17px; }
.lane-project-name { min-width: 0; }
.lane-project-name strong { display: block; overflow: hidden; font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }
.lane-project-name small { display: block; margin-top: .14rem; color: #70768a; font-size: .51rem; }
.lane-project-status { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px rgba(105,245,192,.45); }
.lane-project-status.blocked, .lane-project-status.incident { background: var(--red); box-shadow: 0 0 8px rgba(255,126,145,.45); }
.lane-project-status.paused, .lane-project-status.maintenance { background: var(--amber); box-shadow: 0 0 8px rgba(255,193,107,.4); }
.lane-project-situation { display: -webkit-box; min-height: 2.4em; margin: 0; overflow: hidden; color: #969caf; font-size: .54rem; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.lane-project-foot { display: flex; justify-content: space-between; gap: .5rem; padding-top: .42rem; border-top: 1px solid rgba(255,255,255,.055); color: #656c80; font-size: .49rem; }
.lane-project-foot .attention { color: var(--amber); }
.lane-empty { display: grid; min-height: 150px; place-items: center; align-content: center; gap: .45rem; color: #5f6679; text-align: center; }
.lane-empty svg { width: 23px; height: 23px; fill: none; stroke: var(--lane-color); stroke-width: 1.25; opacity: .55; }
.lane-empty strong { color: #858b9e; font-size: .59rem; }
.lane-empty span { max-width: 150px; font-size: .5rem; line-height: 1.4; }
.state-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin-top: .8rem; padding: .75rem .15rem 0; border-top: 1px solid var(--line); color: #62697c; font-size: .53rem; }
.state-legend b { color: #a7adbe; font-weight: 650; }

.notice { position: sticky; z-index: 20; top: .8rem; min-height: 0; margin: 0; border-radius: 13px; transition: .25s; }
.notice.success, .notice.error { min-height: 46px; margin-bottom: .8rem; border: 1px solid rgba(105,245,192,.24); padding: .82rem 1rem; color: #c9fbe8; background: rgba(15,50,40,.88); box-shadow: 0 16px 40px rgba(0,0,0,.25); backdrop-filter: blur(18px); font-size: .76rem; }
.notice.error { border-color: rgba(255,126,145,.26); color: #ffd5dc; background: rgba(59,22,32,.9); }

.workspace { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: .8rem; align-items: start; }
.sidebar { position: sticky; top: .8rem; max-height: calc(100vh - 1.6rem); overflow: hidden; border-radius: 22px; padding: 1rem; }
.section-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.section-title h2, .integration-title h2 { margin: 0; font-size: 1.05rem; font-weight: 610; letter-spacing: -.025em; }
.portfolio-title h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.2rem; }
.count-badge { display: inline-grid; min-width: 25px; height: 21px; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: rgba(255,255,255,.03); font: 700 .65rem ui-monospace, monospace; }
.icon-button, .text-button { color: var(--muted-strong); background: rgba(255,255,255,.045); cursor: pointer; }
.icon-button { display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid var(--line); border-radius: 11px; transition: color .2s, border-color .2s, background .2s; }
.icon-button:hover { color: #fff; border-color: rgba(155,135,255,.4); background: rgba(155,135,255,.1); }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.text-button { border-radius: 9px; padding: .55rem .7rem; font-size: .7rem; }
.search-label { position: relative; display: flex; align-items: center; margin: 1rem 0 .85rem; }
.search-label svg { position: absolute; left: .72rem; width: 16px; height: 16px; fill: none; stroke: #747b90; stroke-width: 1.6; stroke-linecap: round; pointer-events: none; }
.search-label input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: .72rem 3rem .72rem 2.25rem; color: var(--ink); background: rgba(5,7,13,.38); font-size: .74rem; }
.search-label > span { position: absolute; right: .62rem; border: 1px solid rgba(255,255,255,.09); border-radius: 5px; padding: .18rem .3rem; color: #666c7e; font: 600 .55rem ui-monospace, monospace; pointer-events: none; }
input::placeholder, textarea::placeholder { color: #62687b; }
.project-list { display: grid; max-height: calc(100vh - 258px); gap: .38rem; overflow-y: auto; padding-right: .12rem; }
.project-link { display: grid; grid-template-columns: 39px minmax(0, 1fr) auto; gap: .72rem; width: 100%; align-items: center; border: 1px solid transparent; border-radius: 14px; padding: .68rem; color: #e9ebf6; background: transparent; text-align: left; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.project-link:hover { border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.035); transform: translateX(2px); }
.project-link.active { border-color: rgba(155,135,255,.22); background: linear-gradient(100deg, rgba(155,135,255,.13), rgba(155,135,255,.035)); box-shadow: inset 3px 0 0 var(--violet); }
.project-glyph { display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; color: var(--project-color, #b7a9ff); background: rgba(255,255,255,.035); }
.project-link.active .project-glyph { border-color: color-mix(in srgb, var(--project-color, #b7a9ff) 35%, transparent); background: color-mix(in srgb, var(--project-color, #b7a9ff) 9%, transparent); box-shadow: 0 7px 24px color-mix(in srgb, var(--project-color, #b7a9ff) 9%, transparent); }
.project-glyph svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.project-link-copy { min-width: 0; }
.project-link-copy strong { display: block; overflow: hidden; font-size: .76rem; font-weight: 630; text-overflow: ellipsis; white-space: nowrap; }
.project-link-copy small { display: block; margin-top: .25rem; overflow: hidden; color: #777e92; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.project-state { display: grid; justify-items: end; gap: .35rem; }
.project-state > i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px rgba(105,245,192,.45); }
.project-state > i.blocked, .project-state > i.incident { background: var(--red); box-shadow: 0 0 8px rgba(255,126,145,.45); }
.project-state span { color: #62697c; font: 650 .55rem ui-monospace, monospace; }
.catalog-note { display: flex; align-items: center; gap: .65rem; margin-top: .82rem; padding: .75rem .3rem .05rem; border-top: 1px solid var(--line); }
.catalog-pulse { width: 8px; height: 8px; border: 2px solid rgba(105,245,192,.36); border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px rgba(105,245,192,.55); }
.catalog-note div { display: grid; gap: .08rem; }
.catalog-note strong { color: #b9bece; font-size: .63rem; }
.catalog-note small { color: #676d80; font-size: .58rem; }

.content { min-width: 0; }
#project-detail { display: grid; gap: .8rem; }
#create-panel, .detail-card, .wallet-panel { border-radius: 22px; padding: 1.2rem; }
.empty { min-height: 420px; display: grid; place-items: center; align-content: center; gap: .9rem; border-radius: 22px; color: var(--muted); }
.empty p { margin: 0; font-size: .82rem; }
.empty-glyph { display: grid; width: 62px; height: 62px; place-items: center; border: 1px solid var(--line); border-radius: 19px; color: #7f779f; background: rgba(155,135,255,.05); }
.empty-glyph svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.project-hero { display: flex; min-height: 200px; align-items: center; justify-content: space-between; gap: 2rem; overflow: hidden; border-radius: 24px; padding: 1.5rem; }
.project-hero::after { position: absolute; width: 0; height: 0; }
.project-identity { display: flex; min-width: 0; align-items: center; gap: 1.2rem; }
.project-avatar { display: grid; flex: 0 0 auto; width: 84px; height: 84px; place-items: center; border: 1px solid color-mix(in srgb, var(--project-color, #b7a9ff) 34%, transparent); border-radius: 25px; color: var(--project-color, #b7a9ff); background: linear-gradient(145deg, color-mix(in srgb, var(--project-color, #b7a9ff) 17%, transparent), rgba(255,255,255,.018)); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 18px 48px color-mix(in srgb, var(--project-color, #b7a9ff) 10%, transparent); }
.project-avatar svg { width: 47px; height: 47px; fill: none; stroke: currentColor; stroke-width: 1.12; stroke-linecap: round; stroke-linejoin: round; }
.identity-meta { display: flex; align-items: center; gap: .65rem; }
.identity-meta .eyebrow { margin: 0; }
.source-chip { border: 1px solid rgba(105,245,192,.19); border-radius: 99px; padding: .22rem .47rem; color: var(--mint); background: rgba(105,245,192,.055); font: 650 .55rem ui-monospace, monospace; letter-spacing: .05em; text-transform: uppercase; }
.source-chip.unmanaged { color: var(--amber); border-color: rgba(255,193,107,.21); background: rgba(255,193,107,.055); }
.lane-chip { border: 1px solid rgba(155,135,255,.2); border-radius: 99px; padding: .22rem .47rem; color: var(--violet-bright); background: rgba(155,135,255,.05); font: 650 .55rem ui-monospace, monospace; letter-spacing: .04em; text-transform: uppercase; }
.lane-chip.research { color: var(--cyan); border-color: rgba(96,223,255,.2); background: rgba(96,223,255,.05); }
.lane-chip.prelaunch { color: #ff9bce; border-color: rgba(255,143,200,.2); background: rgba(255,143,200,.05); }
.lane-chip.ready { color: var(--amber); border-color: rgba(255,193,107,.2); background: rgba(255,193,107,.05); }
.lane-chip.launched { color: var(--mint); border-color: rgba(105,245,192,.2); background: rgba(105,245,192,.05); }
.lane-chip.parked { color: #a0a6b7; }
.project-hero h2 { margin: .42rem 0 .45rem; font-size: clamp(1.9rem, 4vw, 3.25rem); font-weight: 600; line-height: 1; letter-spacing: -.055em; }
.project-hero .muted { max-width: 730px; margin: 0; line-height: 1.5; font-size: .8rem; }
.score { --score: 0; position: relative; display: grid; flex: 0 0 auto; width: 112px; height: 112px; place-items: center; border-radius: 50%; background: conic-gradient(var(--violet) calc(var(--score) * 1%), rgba(255,255,255,.07) 0); }
.score::before { position: absolute; inset: 7px; border: 1px solid rgba(255,255,255,.065); border-radius: 50%; background: rgba(12,14,23,.92); content: ""; }
.score > div { position: relative; z-index: 1; display: grid; text-align: center; }
.score strong { font-size: 1.35rem; font-weight: 650; letter-spacing: -.04em; }
.score span { margin-top: .16rem; color: var(--muted); font-size: .53rem; letter-spacing: .1em; text-transform: uppercase; }

.source-grid { display: grid; grid-template-columns: 1.1fr .9fr .8fr 1.2fr; gap: .8rem; }
.source-card { display: flex; min-width: 0; align-items: center; gap: .7rem; border-radius: 17px; padding: .82rem; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.source-card .source-icon { width: 34px; height: 34px; color: #8f95aa; }
.source-card div { min-width: 0; display: grid; gap: .16rem; }
.source-card small { color: #70768a; font-size: .56rem; letter-spacing: .07em; text-transform: uppercase; }
.source-card strong { overflow: hidden; color: #cdd1df; font-size: .67rem; font-weight: 590; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.next-gate { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 1rem; align-items: center; border-radius: 19px; padding: 1rem; }
.next-gate-label { display: flex; align-items: center; gap: .7rem; }
.next-gate-label .source-icon { color: var(--amber); border-color: rgba(255,193,107,.17); background: rgba(255,193,107,.045); }
.next-gate-label > span:last-child { display: grid; gap: .15rem; }
.next-gate-label small { color: #7d7480; font: 650 .52rem ui-monospace, monospace; letter-spacing: .12em; }
.next-gate-label strong { font-size: .7rem; font-weight: 620; }
.next-gate p { margin: 0; color: #b2b6c7; font-size: .73rem; line-height: 1.48; }

.intelligence-panel, .prelaunch-panel { position: relative; overflow: hidden; }
.intelligence-panel::before, .prelaunch-panel::before { position: absolute; top: -11rem; right: -8rem; width: 24rem; height: 24rem; border-radius: 50%; background: rgba(155,135,255,.09); filter: blur(48px); content: ""; pointer-events: none; }
.prelaunch-panel::before { background: rgba(255,143,200,.08); }
.knowledge-coverage { position: relative; display: flex; flex-wrap: wrap; gap: .42rem; margin: .9rem 0 1.1rem; }
.knowledge-coverage span { display: inline-flex; align-items: center; gap: .42rem; border: 1px solid var(--line); border-radius: 99px; padding: .34rem .54rem; color: #82889b; background: rgba(255,255,255,.025); font-size: .58rem; }
.knowledge-coverage i { width: 6px; height: 6px; border-radius: 50%; background: #585e70; }
.knowledge-coverage span.covered { color: #b8e9d7; border-color: rgba(105,245,192,.15); background: rgba(105,245,192,.035); }
.knowledge-coverage span.covered i { background: var(--mint); box-shadow: 0 0 8px rgba(105,245,192,.48); }
.intelligence-form { position: relative; display: grid; gap: .65rem; }
.intelligence-form fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .72rem; margin: 0; border: 1px solid rgba(255,255,255,.075); border-radius: 17px; padding: .9rem; background: rgba(4,6,12,.25); }
.intelligence-form legend { padding: 0 .4rem 0 0; color: #c9cddd; font-size: .69rem; font-weight: 680; }
.intelligence-form legend span { display: inline-grid; width: 25px; height: 22px; margin-right: .35rem; place-items: center; border: 1px solid rgba(155,135,255,.2); border-radius: 7px; color: var(--violet-bright); background: rgba(155,135,255,.06); font: 700 .52rem ui-monospace, monospace; }
.intelligence-form label, .prelaunch-form label { display: grid; gap: .38rem; color: #8c92a5; font-size: .64rem; font-weight: 600; letter-spacing: .015em; }
.intelligence-form .field-wide, .prelaunch-form .field-wide { grid-column: 1 / -1; }
.intelligence-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .25rem; }
.intelligence-actions span { color: #6e7487; font-size: .58rem; line-height: 1.4; }

.prelaunch-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.prelaunch-head h2 { margin: 0; font-size: 1.42rem; font-weight: 610; letter-spacing: -.035em; }
.prelaunch-head > div:first-child > p:last-child { max-width: 680px; margin: .45rem 0 0; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.prelaunch-score { --campaign-score: 0; position: relative; display: grid; flex: 0 0 auto; width: 92px; height: 92px; place-items: center; border-radius: 50%; background: conic-gradient(#ff8fc8 calc(var(--campaign-score) * 1%), rgba(255,255,255,.07) 0); text-align: center; }
.prelaunch-score::before { position: absolute; inset: 6px; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; background: rgba(12,14,23,.94); content: ""; }
.prelaunch-score strong, .prelaunch-score span { position: relative; z-index: 1; display: block; }
.prelaunch-score strong { font-size: 1.05rem; letter-spacing: -.04em; }
.prelaunch-score span { max-width: 55px; margin-top: .1rem; color: #8b8191; font-size: .48rem; line-height: 1.2; letter-spacing: .07em; text-transform: uppercase; }
.campaign-guardrail { position: relative; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: .75rem; margin: 1rem 0; border: 1px solid rgba(255,193,107,.13); border-radius: 13px; padding: .75rem; background: rgba(255,193,107,.026); }
.campaign-guardrail strong { color: #d9bc8f; font-size: .64rem; }
.campaign-guardrail span { color: #9b896f; font-size: .6rem; line-height: 1.45; }
.prelaunch-form { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr); gap: .75rem; }
.campaign-brief, .audience-metrics { border: 1px solid rgba(255,255,255,.075); border-radius: 17px; padding: .9rem; background: rgba(4,6,12,.28); }
.campaign-brief { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .72rem; }
.campaign-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .72rem; }
.audience-metrics { align-self: start; }
.metrics-title { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: .7rem; }
.metrics-title small { color: #ff9bce; font: 700 .5rem ui-monospace, monospace; letter-spacing: .13em; }
.metrics-title h3 { margin: .17rem 0 0; font-size: .86rem; }
.metric-row { display: grid !important; grid-template-columns: minmax(0, 1fr) 66px 66px; gap: .45rem !important; align-items: center; border-top: 1px solid rgba(255,255,255,.065); padding: .52rem 0; }
.metric-row > span:first-child { color: #c2c6d5; font-size: .6rem; }
.metric-row > span small { display: block; margin-top: .15rem; color: #646b7e; font-size: .49rem; font-weight: 500; }
.metric-row input { padding: .55rem .42rem; text-align: center; }
.metric-heading { border-top: 0; padding-top: 0; color: #60677a; font: 650 .48rem ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.metric-heading span:not(:first-child) { text-align: center; }
.metric-secondary > span:last-child { color: #585f71; font: 600 .46rem ui-monospace, monospace; text-align: center; text-transform: uppercase; }
.campaign-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .15rem; }
.campaign-actions > span { color: #6e7487; font-size: .58rem; }
.campaign-actions > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.intelligence-actions button, .campaign-actions button { border: 1px solid rgba(155,135,255,.28); border-radius: 11px; padding: .72rem .92rem; color: #efedff; background: linear-gradient(135deg, rgba(155,135,255,.24), rgba(96,223,255,.08)); font-size: .68rem; font-weight: 680; cursor: pointer; }
.campaign-actions button.secondary { border-color: rgba(255,143,200,.19); color: #e8c4d7; background: rgba(255,143,200,.055); }

.automation-panel { position: relative; overflow: hidden; }
.automation-panel::before { position: absolute; top: -12rem; right: -8rem; width: 28rem; height: 28rem; border-radius: 50%; background: rgba(105,245,192,.075); filter: blur(55px); content: ""; pointer-events: none; }
.automation-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.automation-head h2 { margin: 0; font-size: 1.42rem; font-weight: 610; letter-spacing: -.035em; }
.automation-head p:last-child { max-width: 720px; margin: .45rem 0 0; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.automation-status { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .5rem; border: 1px solid var(--line); border-radius: 99px; padding: .52rem .7rem; color: #8c92a5; background: rgba(255,255,255,.025); font-size: .6rem; text-transform: uppercase; }
.automation-status i { width: 7px; height: 7px; border-radius: 50%; background: #63697b; }
.automation-status.autopilot { color: #aef4d9; border-color: rgba(105,245,192,.2); background: rgba(105,245,192,.05); }
.automation-status.autopilot i { background: var(--mint); box-shadow: 0 0 11px rgba(105,245,192,.65); }
.automation-status.supervised { color: #c9c0ff; border-color: rgba(155,135,255,.22); }
.automation-status.supervised i { background: var(--violet); }
.automation-status.paused { color: #ffd09a; border-color: rgba(255,193,107,.22); background: rgba(255,193,107,.045); }
.automation-status.paused i { background: var(--amber); }
.automation-boundary { position: relative; display: flex; align-items: center; gap: .7rem; margin: 1rem 0; border: 1px solid rgba(105,245,192,.12); border-radius: 13px; padding: .72rem; background: rgba(105,245,192,.025); }
.automation-boundary .source-icon { flex: 0 0 auto; color: var(--mint); border-color: rgba(105,245,192,.17); background: rgba(105,245,192,.045); }
.automation-boundary p { margin: 0; color: #819a91; font-size: .61rem; line-height: 1.48; }
.automation-boundary strong { margin-right: .35rem; color: #b5e4d3; }
.automation-form { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: .75rem; }
.automation-controls, .automation-readiness-card { border: 1px solid rgba(255,255,255,.075); border-radius: 17px; padding: .9rem; background: rgba(4,6,12,.28); }
.automation-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .72rem; }
.automation-controls > label, .content-composer label { display: grid; gap: .38rem; color: #8c92a5; font-size: .64rem; font-weight: 600; }
.automation-check { display: flex !important; align-items: center; gap: .6rem !important; border: 1px solid rgba(255,255,255,.07); border-radius: 11px; padding: .65rem; background: rgba(255,255,255,.02); }
.automation-check input { flex: 0 0 auto; width: auto; accent-color: var(--mint); }
.automation-check span { display: grid; gap: .14rem; }
.automation-check b { color: #c7ccda; font-size: .62rem; }
.automation-check small { color: #686f82; font-size: .51rem; font-weight: 500; line-height: 1.3; }
.automation-pause, .automation-save { grid-column: 1 / -1; }
.automation-save { display: flex; justify-content: flex-end; }
.automation-save button, .composer-actions button { border: 1px solid rgba(105,245,192,.22); border-radius: 11px; padding: .72rem .92rem; color: #d8f8ec; background: linear-gradient(135deg, rgba(105,245,192,.15), rgba(96,223,255,.06)); font-size: .68rem; font-weight: 680; cursor: pointer; }
.automation-readiness-card { align-self: start; }
.automation-readiness { display: grid; gap: .55rem; }
.channel-readiness { border: 1px solid rgba(255,255,255,.07); border-radius: 13px; padding: .7rem; background: rgba(255,255,255,.016); }
.channel-readiness.ready { border-color: rgba(105,245,192,.14); background: rgba(105,245,192,.025); }
.channel-readiness-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .52rem; border-bottom: 1px solid rgba(255,255,255,.065); }
.channel-readiness-head strong { font-size: .68rem; }
.channel-readiness-head span { color: var(--red); font: 700 .49rem ui-monospace, monospace; letter-spacing: .08em; }
.channel-readiness.ready .channel-readiness-head span { color: var(--mint); }
.readiness-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem .5rem; margin-top: .55rem; }
.readiness-checks span { display: flex; align-items: center; gap: .35rem; min-width: 0; }
.readiness-checks i { flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.readiness-checks .pass i { background: var(--mint); }
.readiness-checks b { overflow: hidden; color: #777e90; font-size: .49rem; font-weight: 560; text-overflow: ellipsis; white-space: nowrap; }
.readiness-checks .pass b { color: #9fb4ac; }
.content-operations { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr); gap: .75rem; margin-top: .75rem; }
.content-composer, .content-queue { border: 1px solid rgba(255,255,255,.075); border-radius: 17px; padding: .9rem; background: rgba(4,6,12,.28); }
.content-composer h3, .content-queue h3 { margin: 0; font-size: .86rem; }
.composer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .72rem; margin-top: .8rem; }
.composer-grid .field-wide { grid-column: 1 / -1; }
.composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .72rem; }
.composer-actions span { color: #656c7f; font-size: .54rem; line-height: 1.4; }
.content-list { display: grid; gap: .55rem; max-height: 770px; margin-top: .8rem; overflow-y: auto; padding-right: .15rem; }
.content-empty { margin: 0; border: 1px dashed rgba(255,255,255,.08); border-radius: 12px; padding: 1.5rem .8rem; color: #666d7f; font-size: .6rem; text-align: center; }
.content-item { border: 1px solid rgba(255,255,255,.075); border-radius: 13px; padding: .72rem; background: rgba(255,255,255,.018); }
.content-item.published { border-color: rgba(105,245,192,.13); background: rgba(105,245,192,.022); }
.content-item.blocked, .content-item.failed { border-color: rgba(255,126,145,.14); background: rgba(255,126,145,.025); }
.content-item-head { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.content-item-channel { display: flex; align-items: center; gap: .45rem; }
.content-item-channel > b { display: grid; min-width: 27px; height: 25px; place-items: center; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; color: #e1e5f2; font: 720 .55rem ui-monospace, monospace; }
.content-item-channel.x > b { color: #f2f3f9; }
.content-item-channel.telegram > b { color: #8bddff; border-color: rgba(80,188,239,.2); }
.content-item-channel small { color: #697083; font-size: .51rem; text-transform: capitalize; }
.content-item > p { margin: .65rem 0; color: #b9becd; font-size: .64rem; line-height: 1.48; }
.content-item-facts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem; color: #636a7d; font-size: .5rem; }
.content-item-facts code { color: #6f819f; font-size: .49rem; }
.content-item .content-block-reason { margin: .55rem 0 0; color: #b8848e; font-size: .55rem; }
.receipt-link { display: inline-block; margin-top: .55rem; color: var(--mint); font-size: .56rem; text-decoration: none; }
.content-cancel { margin-top: .55rem; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: .45rem .55rem; color: #8e95a7; background: rgba(255,255,255,.03); font-size: .53rem; cursor: pointer; }

.detail-card > .section-title { margin-bottom: 1.05rem; }
.pill { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; padding: .28rem .52rem; color: #aeb3c5; background: rgba(255,255,255,.025); font: 680 .56rem ui-monospace, monospace; letter-spacing: .04em; text-transform: uppercase; }
.pill.active { color: var(--mint); border-color: rgba(105,245,192,.23); background: rgba(105,245,192,.05); }
.pill.blocked, .pill.incident, .pill.danger { color: #ffadb9; border-color: rgba(255,126,145,.25); background: rgba(255,126,145,.055); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .78rem; }
.form-grid label, .integration-form label { display: grid; gap: .38rem; color: #8c92a5; font-size: .64rem; font-weight: 600; letter-spacing: .015em; }
.wide { grid-column: 1 / -1; }
input, select, textarea { width: 100%; border: 1px solid rgba(255,255,255,.105); border-radius: 11px; padding: .73rem .78rem; color: #eef0fa; background: rgba(4,6,12,.42); transition: border-color .2s, background .2s; }
input:hover, select:hover, textarea:hover { border-color: rgba(255,255,255,.17); }
input:focus, select:focus, textarea:focus { border-color: rgba(155,135,255,.45); background: rgba(8,9,17,.68); outline: none; box-shadow: 0 0 0 3px rgba(155,135,255,.07); }
select { color-scheme: dark; }
textarea { min-height: 74px; resize: vertical; line-height: 1.45; }
.actions { display: flex; justify-content: flex-end; gap: .6rem; }
.form-grid button, .integration-form > button { border: 1px solid rgba(155,135,255,.28); border-radius: 11px; padding: .72rem .92rem; color: #efedff; background: linear-gradient(135deg, rgba(155,135,255,.24), rgba(96,223,255,.08)); font-size: .7rem; font-weight: 680; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.form-grid button:hover, .integration-form > button:hover { border-color: rgba(183,169,255,.5); }
.blocker-section { margin-top: 1.2rem; padding-top: 1.05rem; border-top: 1px solid var(--line); }
.subhead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.subhead h3 { margin: 0; font-size: .78rem; }
.subhead span { color: #6f7588; font-size: .59rem; }
.blocker-list { display: grid; gap: .48rem; margin: .72rem 0 0; padding: 0; list-style: none; }
.blocker-list li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: .7rem; align-items: center; border: 1px solid rgba(255,193,107,.12); border-radius: 12px; padding: .72rem; background: rgba(255,193,107,.035); }
.blocker-list li::before { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 9px rgba(255,193,107,.35); content: ""; }
.blocker-list li strong { font-size: .68rem; font-weight: 580; line-height: 1.35; }
.blocker-list li .muted { text-align: right; font-size: .57rem; }
.blocker-list li.clear { grid-template-columns: 8px 1fr; color: #a7d9c7; border-color: rgba(105,245,192,.12); background: rgba(105,245,192,.035); }
.blocker-list li.clear::before { background: var(--mint); box-shadow: 0 0 9px rgba(105,245,192,.35); }

.integrations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.integration-form { display: grid; gap: .7rem; border-radius: 22px; padding: 1.15rem; }
.integration-title { display: flex; gap: .72rem; align-items: center; margin-bottom: .3rem; }
.integration-title .eyebrow { margin-bottom: .17rem; }
.provider { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 13px; }
.provider svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.provider.telegram { color: #8bddff; border-color: rgba(80,188,239,.24); background: rgba(37,141,192,.1); }
.provider.x { color: #f0f2f9; background: rgba(255,255,255,.055); }
.check { display: flex !important; align-items: center; gap: .55rem !important; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; padding: .65rem; background: rgba(255,255,255,.02); }
.check input { width: auto; accent-color: var(--violet); }
.guardrail { margin: 0; border: 1px solid rgba(255,193,107,.12); border-radius: 10px; padding: .65rem; color: #bba47f; background: rgba(255,193,107,.025); font-size: .61rem; line-height: 1.45; }

.wallet-panel { overflow: hidden; }
.wallet-list { display: grid; gap: .55rem; margin-top: .9rem; }
.wallet-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: .75rem; align-items: center; border: 1px solid rgba(105,245,192,.12); border-radius: 14px; padding: .8rem; background: linear-gradient(100deg, rgba(105,245,192,.04), rgba(255,255,255,.012)); }
.wallet-glyph { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(105,245,192,.18); border-radius: 13px; color: var(--mint); background: rgba(105,245,192,.05); }
.wallet-glyph svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.wallet-copy { min-width: 0; }
.wallet-copy strong { display: block; font-size: .72rem; }
.wallet-copy code { display: block; margin-top: .22rem; overflow: hidden; color: #7f879a; font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }
.wallet-meta { text-align: right; }
.wallet-meta p { margin: .35rem 0 0; color: #70778b; font-size: .57rem; }
.proposal-section textarea[name="payload"] { font: .68rem/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.proposal-list { display: grid; gap: .55rem; margin-top: 1rem; }
.proposal { border: 1px solid var(--line); border-radius: 13px; padding: .85rem; background: rgba(5,7,13,.3); }
.proposal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.proposal-head strong { font-size: .7rem; }
.proposal code { display: block; max-width: 100%; margin-top: .6rem; overflow-wrap: anywhere; color: #8495b2; font-size: .61rem; }
.proposal p { color: #9ca2b4; font-size: .68rem; }
.proposal .actions button { border-radius: 9px; padding: .55rem .7rem; color: #eceaff; background: rgba(155,135,255,.16); font-size: .62rem; cursor: pointer; }
.proposal .actions button.secondary { color: #aeb3c4; background: rgba(255,255,255,.05); }

footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 3rem 0 3.5rem; color: #62687a; font-size: .62rem; }
.footer-brand { display: flex; align-items: center; gap: .6rem; color: #9399aa; }
footer p { margin: 0; }

@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; }
  .summary-card { grid-column: span 6; }
  .source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-lanes { display: flex; align-items: flex-start; overflow-x: auto; padding-bottom: .3rem; scroll-snap-type: x proximity; }
  .portfolio-lane { flex: 0 0 250px; scroll-snap-align: start; }
  .prelaunch-form { grid-template-columns: 1fr; }
  .campaign-actions { grid-column: auto; }
  .automation-form, .content-operations { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .shell { width: min(100% - 32px, 760px); }
  .hero { grid-template-columns: 1fr; padding-top: 4.5rem; }
  .hero-signal { min-height: 265px; }
  .workspace { grid-template-columns: 1fr; }
  .sidebar { position: static; max-height: none; }
  .project-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; }
  .catalog-note { grid-column: 1 / -1; }
  .integrations { grid-template-columns: 1fr; }
  .intelligence-form fieldset { grid-template-columns: 1fr; }
  .intelligence-form .field-wide { grid-column: auto; }
}
@media (max-width: 680px) {
  .shell { width: min(100% - 22px, 540px); }
  .topbar { min-height: 75px; }
  .live-chip { display: none; }
  .ghost-link { padding: .5rem .65rem; }
  .hero { padding: 4rem 0 2.2rem; }
  .hero-signal { min-height: 310px; }
  .hero h1 { font-size: clamp(3.2rem, 17vw, 5rem); }
  .hero-copy > .eyebrow b { display: none; }
  .summary-card { grid-column: span 12; min-height: 128px; }
  .command-bar { align-items: stretch; flex-direction: column; }
  .pipeline-head { align-items: stretch; flex-direction: column; }
  .research-button { justify-content: center; }
  .portfolio-lane { flex-basis: calc(100vw - 70px); }
  .operator-field { display: grid; grid-template-columns: 36px minmax(0, 1fr); }
  .operator-field small { grid-column: 2; }
  .operator-field input { width: 100%; }
  .sync-button { justify-content: center; }
  .project-list { grid-template-columns: 1fr; }
  .project-hero { align-items: flex-start; flex-direction: column; }
  .project-identity { align-items: flex-start; }
  .identity-meta { flex-wrap: wrap; }
  .project-avatar { width: 64px; height: 64px; border-radius: 19px; }
  .project-avatar svg { width: 36px; height: 36px; }
  .score { width: 96px; height: 96px; align-self: flex-end; margin-top: -3rem; }
  .source-grid, .form-grid { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  .next-gate { grid-template-columns: 1fr; }
  .prelaunch-head, .intelligence-actions, .campaign-actions { align-items: flex-start; flex-direction: column; }
  .prelaunch-score { align-self: flex-end; margin-top: -3.4rem; }
  .campaign-guardrail, .campaign-brief, .campaign-dates { grid-template-columns: 1fr; }
  .prelaunch-form .field-wide { grid-column: auto; }
  .campaign-actions > div { justify-content: flex-start; }
  .metric-row { grid-template-columns: minmax(0, 1fr) 59px 59px; }
  .automation-head, .composer-actions { align-items: flex-start; flex-direction: column; }
  .automation-status { align-self: flex-start; }
  .automation-controls, .composer-grid { grid-template-columns: 1fr; }
  .automation-pause, .automation-save, .composer-grid .field-wide { grid-column: auto; }
  .automation-save { justify-content: flex-start; }
  .readiness-checks { grid-template-columns: 1fr; }
  .wallet-card { grid-template-columns: 42px minmax(0, 1fr); }
  .wallet-meta { grid-column: 2; text-align: left; }
  footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* KMS 1.0 application shell */
.app-sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  display: flex;
  width: 244px;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.095);
  padding: 1rem .8rem;
  background: linear-gradient(180deg, rgba(18,20,34,.9), rgba(8,10,18,.8));
  box-shadow: 20px 0 60px rgba(0,0,0,.18), inset -1px 0 rgba(255,255,255,.02);
  backdrop-filter: blur(30px) saturate(145%);
  transition: width .24s ease;
}
.side-brand { display: flex; min-height: 52px; align-items: center; gap: .7rem; padding: .15rem .18rem 1rem; border-bottom: 1px solid var(--line); }
.side-brand-copy { display: grid; min-width: 0; flex: 1; gap: .08rem; }
.side-brand-copy strong { font-size: .72rem; letter-spacing: .13em; }
.side-brand-copy small { color: var(--muted); font-size: .61rem; }
.side-collapse { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--muted-strong); background: rgba(255,255,255,.025); cursor: pointer; }
.side-collapse svg, .side-nav svg { fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.side-collapse svg { width: 16px; height: 16px; transition: transform .24s ease; }
.side-nav { display: grid; gap: .3rem; padding-top: 1.05rem; }
.side-nav a { position: relative; display: flex; min-height: 46px; align-items: center; gap: .8rem; border: 1px solid transparent; border-radius: 13px; padding: 0 .75rem; color: #8f96aa; text-decoration: none; transition: color .18s, border-color .18s, background .18s; }
.side-nav a:hover { color: #e8eaff; background: rgba(255,255,255,.035); }
.side-nav a.active { border-color: rgba(155,135,255,.22); color: #f2efff; background: linear-gradient(100deg, rgba(155,135,255,.17), rgba(96,223,255,.045)); box-shadow: inset 0 1px rgba(255,255,255,.06); }
.side-nav a.active::before { position: absolute; left: -13px; width: 3px; height: 22px; border-radius: 3px; background: linear-gradient(var(--violet-bright), var(--cyan)); box-shadow: 0 0 16px rgba(155,135,255,.65); content: ""; }
.side-nav svg { width: 19px; height: 19px; flex: 0 0 auto; }
.side-nav span { overflow: hidden; font-size: .73rem; font-weight: 650; white-space: nowrap; }
.side-foot { display: flex; align-items: center; gap: .7rem; margin-top: auto; padding: .8rem .6rem .25rem; color: var(--muted); }
.side-foot > span:last-child { display: grid; gap: .08rem; }
.side-foot b { color: var(--muted-strong); font-size: .64rem; }
.side-foot small { font-size: .58rem; }
.status-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--mint); box-shadow: 0 0 15px rgba(105,245,192,.7); }
.app-sidebar.collapsed { width: 78px; }
.app-sidebar.collapsed .side-brand-copy, .app-sidebar.collapsed .side-nav span, .app-sidebar.collapsed .side-foot > span:last-child { display: none; }
.app-sidebar.collapsed .side-brand { flex-direction: column; }
.app-sidebar.collapsed .side-collapse svg { transform: rotate(180deg); }
.app-sidebar.collapsed .side-nav a { justify-content: center; padding: 0; }
.app-sidebar.collapsed .side-nav a.active::before { left: -13px; }
.app-sidebar.collapsed .side-foot { justify-content: center; }
.app-stage { min-height: 100vh; margin-left: 244px; transition: margin-left .24s ease; }
body.sidebar-collapsed .app-stage { margin-left: 78px; }
.app-stage .shell { width: min(1600px, calc(100vw - 300px)); }
body.sidebar-collapsed .app-stage .shell { width: min(1720px, calc(100vw - 134px)); }
.topbar { min-height: 72px; }
.topbar .brand-mark { display: none; }
.topbar .brand strong { font-size: .92rem; letter-spacing: -.015em; }
.topbar .brand small { font-size: .63rem; }

.project-switcher { position: sticky; z-index: 25; top: 0; display: grid; grid-template-columns: 130px 34px minmax(0,1fr) 34px; gap: .55rem; align-items: center; margin: .85rem 0 1rem; border-radius: 19px; padding: .6rem; }
.switcher-label { display: grid; gap: .12rem; padding-left: .55rem; }
.switcher-label small { color: var(--muted); font: 700 .53rem ui-monospace, monospace; letter-spacing: .13em; }
.switcher-label strong { font-size: .77rem; }
.carousel-arrow { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--muted-strong); background: rgba(255,255,255,.025); cursor: pointer; }
.carousel-arrow:hover { color: white; border-color: rgba(155,135,255,.45); }
.carousel-arrow svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.project-carousel { display: flex; min-width: 0; gap: .45rem; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.project-carousel::-webkit-scrollbar { display: none; }
.carousel-project { display: flex; min-width: 184px; align-items: center; gap: .55rem; scroll-snap-align: start; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: .45rem .55rem; color: var(--muted-strong); background: rgba(4,6,13,.3); text-align: left; cursor: pointer; }
.carousel-project:hover, .carousel-project.active { border-color: color-mix(in srgb, var(--project-color, var(--violet)) 40%, var(--line)); color: white; background: rgba(155,135,255,.07); }
.carousel-glyph { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border: 1px solid color-mix(in srgb, var(--project-color) 30%, transparent); border-radius: 9px; color: var(--project-color); background: color-mix(in srgb, var(--project-color) 7%, transparent); }
.carousel-glyph svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.carousel-copy { display: grid; min-width: 0; flex: 1; gap: .12rem; }
.carousel-copy strong, .carousel-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carousel-copy strong { font-size: .65rem; }
.carousel-copy small { color: #737a8e; font-size: .52rem; }
.carousel-state { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--mint); }
.carousel-state.blocked, .carousel-state.incident { background: var(--red); }
.carousel-state.paused { background: var(--amber); }

body:not([data-route="dashboard"]) .hero,
body:not([data-route="dashboard"]) #summary,
body:not([data-route="dashboard"]) #dashboard-focus { display: none; }
#projects-page, #scrum-page, #project-page, #research-page, #revenue-page, #audit-page, #settings-page { display: none; }
body[data-route="projects"] #projects-page,
body[data-route="scrum"] #scrum-page,
body[data-route="project"] #project-page,
body[data-route="research"] #research-page,
body[data-route="revenue"] #revenue-page,
body[data-route="audit"] #audit-page,
body[data-route="settings"] #settings-page { display: block; }
.command-bar { position: relative; z-index: 2; }
body[data-route="dashboard"] .command-bar { margin-top: .8rem; }
body:not([data-route="dashboard"]) .command-bar { min-height: 58px; }
.hero { padding-top: 3rem; }
.dashboard-focus { margin-bottom: .8rem; border-radius: 23px; padding: 1.15rem; }
.register-method { margin: .35rem 0 0; color: var(--muted); font: 600 .56rem ui-monospace, monospace; letter-spacing: .035em; }
.text-link { color: var(--violet-bright); font-size: .7rem; font-weight: 700; text-decoration: none; }
.dashboard-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
.dashboard-action { display: grid; gap: .7rem; min-height: 150px; border: 1px solid var(--line); border-radius: 16px; padding: .85rem; color: inherit; background: rgba(4,6,13,.26); text-align: left; cursor: pointer; }
.dashboard-action:hover { border-color: rgba(155,135,255,.37); transform: translateY(-1px); }
.dashboard-action-top { display: flex; align-items: center; gap: .55rem; }
.dashboard-action-top strong { min-width: 0; flex: 1; overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-action p { margin: 0; color: #aeb4c7; font-size: .68rem; line-height: 1.5; }
.dashboard-action-foot { display: flex; align-items: end; justify-content: space-between; color: var(--muted); font-size: .59rem; }
.attention { color: var(--amber) !important; }

.projects-page, .research-page, .revenue-page, .audit-page, .settings-page { margin-bottom: 1rem; border-radius: 25px; padding: 1.25rem; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; margin-bottom: 1.2rem; padding: .35rem .15rem .9rem; border-bottom: 1px solid var(--line); }
.page-heading h1 { margin: 0; font-size: clamp(1.8rem,3vw,2.7rem); font-weight: 580; letter-spacing: -.05em; }
.page-heading p:last-child { max-width: 720px; margin: .45rem 0 0; color: var(--muted); font-size: .74rem; line-height: 1.55; }
.primary-action, .preview-button, .claim-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid rgba(155,135,255,.35); border-radius: 12px; padding: .72rem .9rem; color: white; background: linear-gradient(135deg, rgba(155,135,255,.32), rgba(96,223,255,.1)); box-shadow: inset 0 1px rgba(255,255,255,.12); font-size: .68rem; font-weight: 750; text-decoration: none; cursor: pointer; }
.primary-action svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.project-controls { display: flex; gap: .6rem; margin-bottom: .9rem; }
.project-controls .search-label { max-width: none; flex: 1; margin: 0; }
.project-controls > select { width: 190px; flex: 0 0 190px; }
.project-controls select, .audit-controls select, .ledger-panel select { border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; color: var(--muted-strong); background: #121522; }
.projects-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .7rem; }
.project-grid-card { display: grid; min-height: 242px; gap: .9rem; border: 1px solid var(--line); border-radius: 18px; padding: .95rem; background: linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.01)),rgba(5,7,14,.31); }
.project-grid-head, .project-grid-identity, .project-grid-actions { display: flex; align-items: center; }
.project-grid-head { justify-content: space-between; gap: .8rem; }
.project-grid-identity { min-width: 0; gap: .6rem; }
.project-grid-identity > span:last-child { display: grid; min-width: 0; gap: .12rem; }
.project-grid-identity strong, .project-grid-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-grid-identity strong { font-size: .75rem; }
.project-grid-identity small { color: var(--muted); font-size: .56rem; }
.project-grid-signal small { color: var(--violet-bright); font: 700 .53rem ui-monospace, monospace; letter-spacing: .1em; }
.project-grid-signal p { margin: .35rem 0 0; color: #bec4d4; font-size: .7rem; line-height: 1.5; }
.project-grid-facts { display: flex; flex-wrap: wrap; gap: .35rem .8rem; color: var(--muted); font-size: .58rem; }
.project-grid-actions { align-self: end; justify-content: space-between; gap: .7rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.mini-preview { color: var(--cyan); font-size: .64rem; font-weight: 700; text-decoration: none; }

#project-page > .sidebar { display: none; }
#project-page { grid-template-columns: 1fr; }
#project-page .content { min-width: 0; }
.project-hero { position: relative; }
.project-hero-actions { margin-left: auto; }
.preview-button { white-space: nowrap; }
.preview-button.disabled { border-color: var(--line); color: #73798c; background: rgba(255,255,255,.025); pointer-events: none; }
.project-tabs { position: sticky; z-index: 20; top: 82px; display: flex; gap: .35rem; margin: .7rem 0; overflow-x: auto; border-radius: 16px; padding: .45rem; }
.project-tabs button { flex: 0 0 auto; border: 1px solid transparent; border-radius: 10px; padding: .63rem .78rem; color: var(--muted); background: transparent; font-size: .64rem; font-weight: 680; cursor: pointer; }
.project-tabs button:hover { color: white; background: rgba(255,255,255,.035); }
.project-tabs button.active { border-color: rgba(155,135,255,.26); color: white; background: rgba(155,135,255,.13); }
.panel-hidden { display: none !important; }
.project-overview { border-radius: 20px; padding: 1.05rem; }
.project-action-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; }
.project-action-card { min-height: 112px; border: 1px solid var(--line); border-radius: 15px; padding: .85rem; background: rgba(4,6,13,.26); }
.project-action-card small { display: block; margin-bottom: .55rem; color: var(--muted); font: 700 .55rem ui-monospace, monospace; letter-spacing: .09em; text-transform: uppercase; }
.project-action-card strong { display: block; color: #d5d9e7; font-size: .7rem; font-weight: 580; line-height: 1.5; }
.project-action-card.good { border-color: rgba(105,245,192,.13); }
.project-action-card.attention { border-color: rgba(255,193,107,.2); }

.lab-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; margin-bottom: .8rem; }
.lab-metrics .summary-card { grid-column: auto; }
.research-signals { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
.research-card { display: flex; min-height: 260px; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; padding: 1rem; background: rgba(5,7,14,.32); }
.research-card-head { display: flex; justify-content: space-between; gap: .6rem; }
.verdict { border: 1px solid var(--line); border-radius: 99px; padding: .35rem .48rem; color: var(--muted); font: 700 .54rem ui-monospace,monospace; }
.verdict.kill { color: var(--red); border-color: rgba(255,126,145,.22); }
.verdict.candidate { color: var(--mint); border-color: rgba(105,245,192,.22); }
.verdict.watch { color: var(--amber); border-color: rgba(255,193,107,.22); }
.research-card h2 { margin: .85rem 0 .45rem; font-size: 1.05rem; letter-spacing: -.025em; }
.research-card > p { display: -webkit-box; overflow: hidden; margin: 0 0 .7rem; color: #aeb4c7; font-size: .68rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
.research-meta { margin-top: auto; padding: .5rem 0 .75rem; color: #747b8f; font-size: .56rem; }
.research-card button { align-self: flex-start; }

.risk-chip { border: 1px solid rgba(255,193,107,.24); border-radius: 99px; padding: .55rem .7rem; color: var(--amber); font: 700 .58rem ui-monospace,monospace; letter-spacing: .05em; }
.financial-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .65rem; margin-bottom: .8rem; }
.finance-stat { min-height: 112px; border: 1px solid var(--line); border-radius: 17px; padding: .9rem; background: rgba(5,7,14,.32); }
.finance-stat small { color: var(--muted); font: 700 .56rem ui-monospace,monospace; letter-spacing: .09em; text-transform: uppercase; }
.finance-stat strong { display: block; margin-top: 1.15rem; font-size: 1.7rem; font-weight: 590; letter-spacing: -.05em; }
.finance-stat.positive strong { color: var(--mint); }
.finance-stat.cyan strong { color: var(--cyan); }
.finance-stat.warning strong { color: var(--amber); }
.revenue-layout { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(360px,.92fr); gap: .75rem; }
.inset-card { border: 1px solid var(--line); border-radius: 18px; padding: 1rem; background: rgba(5,7,14,.3); }
.financial-form .form-grid { padding: 0; border: 0; background: transparent; }
.financial-list { display: grid; gap: .55rem; }
.ledger-panel .financial-list { max-height: 690px; overflow-y: auto; padding-right: .2rem; }
.financial-entry { border: 1px solid var(--line); border-radius: 15px; padding: .8rem; background: rgba(255,255,255,.022); }
.financial-entry.revenue { border-left: 2px solid rgba(105,245,192,.55); }
.financial-entry.cost { border-left: 2px solid rgba(255,193,107,.55); }
.financial-entry-head, .financial-amount { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.financial-entry-head > div { display: grid; gap: .14rem; }
.financial-entry-head small { color: var(--muted); font: 700 .52rem ui-monospace,monospace; letter-spacing: .09em; }
.financial-entry-head strong { font-size: .72rem; }
.financial-amount { margin-top: .75rem; }
.financial-amount strong { font-size: 1rem; }
.financial-amount span { color: var(--muted); font-size: .63rem; }
.financial-entry > p { margin: .55rem 0 0; font-size: .57rem; }
.claim-button { width: 100%; margin-top: .7rem; padding: .62rem; color: var(--mint); border-color: rgba(105,245,192,.25); background: rgba(105,245,192,.06); }
.claim-button:disabled { color: var(--muted); border-color: var(--line); background: rgba(255,255,255,.025); cursor: default; }
.financial-mini-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; margin-bottom: .7rem; }
.financial-mini-summary .summary-card { grid-column: auto; }

.audit-controls { display: flex; gap: .6rem; margin-bottom: .8rem; }
.audit-list { display: grid; gap: .4rem; }
.audit-row { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: .7rem; border: 1px solid rgba(255,255,255,.065); border-radius: 13px; padding: .68rem; background: rgba(4,6,13,.24); }
.audit-glyph { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--violet-bright); }
.audit-glyph svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.audit-copy { display: grid; min-width: 0; gap: .16rem; }
.audit-copy strong { font-size: .68rem; }
.audit-copy span, .audit-row time { overflow: hidden; color: var(--muted); font-size: .56rem; text-overflow: ellipsis; white-space: nowrap; }

.settings-form { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: .7rem; }
.settings-form fieldset { display: grid; align-content: start; gap: .7rem; min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 18px; padding: 1rem; background: rgba(5,7,14,.28); }
.settings-form legend { padding: 0 .4rem; color: var(--violet-bright); font-size: .7rem; font-weight: 750; }
.settings-form label { display: grid; gap: .35rem; color: var(--muted); font-size: .61rem; }
.settings-form input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: .68rem; color: var(--ink); background: rgba(3,5,10,.48); }
.settings-footer { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid rgba(105,245,192,.14); border-radius: 16px; padding: .85rem; background: rgba(105,245,192,.035); }
.settings-footer > div { display: grid; gap: .18rem; }
.settings-footer strong { font-size: .7rem; }
.settings-footer span { color: var(--muted); font-size: .6rem; }
.empty-message { grid-column: 1/-1; margin: 0; border: 1px dashed var(--line); border-radius: 15px; padding: 1.2rem; color: var(--muted); font-size: .7rem; text-align: center; }
.subtle-message { grid-column: 1/-1; margin: -.55rem 0 .15rem; color: var(--muted); font-family: var(--mono); font-size: .63rem; text-align: center; }
.secure-intake { display: flex; align-items: center; gap: .7rem; margin: .15rem 0; border: 1px solid rgba(96,223,255,.16); border-radius: 13px; padding: .72rem; background: rgba(96,223,255,.035); }
.secure-intake p { display: grid; gap: .18rem; margin: 0; }
.secure-intake strong { color: #e7f9ff; font-size: .66rem; }
.secure-intake small { color: var(--muted); font-size: .56rem; line-height: 1.45; }
.integration-form input[readonly] { color: #81889d; background: rgba(255,255,255,.018); }
.credential-status { border: 1px solid var(--line); border-radius: 10px; padding: .58rem .68rem; color: var(--muted); background: rgba(255,255,255,.02); font-size: .58rem; line-height: 1.45; }
.credential-status.verified { color: var(--mint); border-color: rgba(105,245,192,.2); background: rgba(105,245,192,.045); }
.credential-status.pending { color: var(--amber); border-color: rgba(255,193,107,.2); background: rgba(255,193,107,.04); }

@media (max-width: 1250px) {
  .projects-grid, .dashboard-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .revenue-layout { grid-template-columns: 1fr; }
  .settings-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .settings-form fieldset:last-of-type { grid-column: 1/-1; }
}
@media (max-width: 900px) {
  .app-sidebar { width: 78px; }
  .app-sidebar .side-brand-copy, .app-sidebar .side-nav span, .app-sidebar .side-foot > span:last-child { display: none; }
  .app-sidebar .side-brand { flex-direction: column; }
  .app-sidebar .side-nav a { justify-content: center; padding: 0; }
  .app-stage, body.sidebar-collapsed .app-stage { margin-left: 78px; }
  .app-stage .shell, body.sidebar-collapsed .app-stage .shell { width: calc(100vw - 104px); }
  .project-switcher { grid-template-columns: 34px minmax(0,1fr) 34px; }
  .switcher-label { display: none; }
  .projects-grid, .dashboard-actions, .research-signals, .project-action-grid { grid-template-columns: 1fr; }
  .financial-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .settings-form { grid-template-columns: 1fr; }
  .settings-form fieldset:last-of-type { grid-column: auto; }
  .settings-footer { grid-column: auto; }
  .project-hero-actions { margin-left: 0; }
}
@media (max-width: 620px) {
  .app-sidebar { width: 60px; padding-inline: .45rem; }
  .app-stage, body.sidebar-collapsed .app-stage { margin-left: 60px; }
  .app-stage .shell, body.sidebar-collapsed .app-stage .shell { width: calc(100vw - 76px); }
  .side-brand .brand-mark { width: 34px; height: 34px; }
  .side-collapse { width: 28px; height: 28px; }
  .topbar-actions .ghost-link { display: none; }
  .project-controls, .page-heading, .audit-controls, .settings-footer { align-items: stretch; flex-direction: column; }
  .project-controls > select { width: 100%; flex: 0 0 auto; }
  .financial-summary, .financial-mini-summary { grid-template-columns: 1fr; }
  .financial-mini-summary .summary-card { grid-column: auto; }
  .project-tabs { top: 72px; }
}
.research-gates {
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  gap: 8px;
  margin: 16px 0;
}

.research-gate {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.research-gate small,
.research-gate span,
.research-gate strong { display: block; }
.research-gate strong { margin: 4px 0; font-size: 1rem; }
.research-gate span { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.research-detail { margin: 10px 0 16px; color: var(--muted); }
.research-detail summary { cursor: pointer; color: var(--ink); font-weight: 700; }

@media (max-width: 920px) {
  .research-gates { grid-template-columns: repeat(2, minmax(110px, 1fr)); }
}
