/* ============================================================
   APEX APP UI KIT
   A faithful recreation of the Apex app's dark theme (violet
   accent), drawn at a fixed 1280 x 800 design size. Tokens come
   from the app's own index.css and accents.ts. All data shown in
   these mockups is fictional.
   ============================================================ */
.a-win {
  --a-bg: #0a0b10;
  --a-panel: #10121a;
  --a-card: #11131b;
  --a-card-2: #161925;
  --a-line: #232633;
  --a-line-2: #2e3242;
  --a-text: #edeff7;
  --a-text-2: #b4b8cb;
  --a-text-3: #8c91ab;
  --a-text-4: #5f6479;
  --a-v: #976ef7;
  --a-v-2: #b49cfa;
  --a-v-3: #d3c6fd;
  --a-v-bg: rgba(151, 110, 247, 0.13);
  --a-v-line: rgba(151, 110, 247, 0.45);
  --a-ink: #0d0f17;
  --a-green: #2cce67;
  --a-green-bg: rgba(44, 206, 103, 0.12);
  --a-amber: #f5a524;
  --a-amber-bg: rgba(245, 165, 36, 0.12);
  --a-red: #ef5757;
  --a-sky: #5aa9e6;
  --a-sky-bg: rgba(90, 169, 230, 0.1);

  position: absolute;
  left: 0;
  top: 0;
  width: 1280px;
  height: 800px;
  display: grid;
  grid-template-columns: 208px 1fr;
  grid-template-rows: 34px 52px 1fr;
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: -0.003em;
  color: var(--a-text);
  text-align: left;
  transform-style: preserve-3d;
  font-feature-settings: "cv11", "ss01";
}
.a-win *, .a-win *::before, .a-win *::after { box-sizing: border-box; }
.a-win svg { width: 15px; height: 15px; flex-shrink: 0; }
.a-win b { font-weight: 600; }
.a-win small { font-size: 11px; color: var(--a-text-3); }
.a-win code { font-family: "JetBrains Mono", "SF Mono", Menlo, monospace; }

/* The window plate holds the background so content layers can
   separate from it (and from each other) in 3D. */
.a-plate {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: var(--a-bg);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 60px 140px -40px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ---------- Window title bar ---------- */
.a-bar {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid var(--a-line);
  background: #0c0d13;
  border-radius: 14px 14px 0 0;
}
.a-bar .lights { display: inline-flex; gap: 7px; }
.a-bar .lights i { width: 10px; height: 10px; border-radius: 50%; background: #3a3d4a; }
.a-bar .lights i:nth-child(1) { background: #ec6a5e; }
.a-bar .lights i:nth-child(2) { background: #f4bf4f; }
.a-bar .lights i:nth-child(3) { background: #61c554; }
.a-bar .url {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 320px;
  justify-content: center;
  padding: 3px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--a-text-3);
  font-size: 11px;
}
.a-bar .url svg { width: 10px; height: 10px; }

/* ---------- Sidebar ---------- */
.a-side {
  grid-column: 1;
  grid-row: 2 / 4;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--a-panel);
  border-right: 1px solid var(--a-line);
  border-radius: 0 0 0 14px;
}
.a-logo {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--a-line);
}
.a-logo svg { width: 26px; height: 26px; }
.a-nav { padding: 6px 10px; flex: 1; }
.a-nav .sec {
  display: block;
  margin: 14px 10px 6px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--a-text-3);
}
.a-nav .it {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  height: 31px;
  padding: 0 10px;
  margin-bottom: 1px;
  border-radius: 7px;
  color: var(--a-text-2);
  font-size: 13px;
}
.a-nav .it svg { color: var(--a-text-3); }
.a-nav .it.on { background: #1b1e2a; color: var(--a-text); font-weight: 500; }
.a-nav .it.on svg { color: var(--a-text); }
.a-nav .it.on::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: var(--a-v);
}
.a-side .foot { padding: 8px 10px 10px; border-top: 1px solid var(--a-line); }
.a-side .foot .it { margin: 0; }
.a-side .copy { display: block; text-align: center; font-size: 10px; color: var(--a-text-4); margin-top: 8px; }

/* ---------- Top bar ---------- */
.a-top {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 0 18px;
  border-bottom: 1px solid var(--a-line);
}
.a-search {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 6px 0 12px;
  border-radius: 8px;
  border: 1px solid var(--a-line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--a-text-3);
}
.a-search kbd {
  margin-left: auto;
  font: 500 10px "Inter", sans-serif;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--a-text-3);
}
.a-top .ico { position: relative; color: var(--a-text-2); display: inline-flex; }
.a-top .ico svg { width: 17px; height: 17px; }
.a-top .badge {
  position: absolute;
  top: -8px;
  right: -11px;
  font-size: 8.5px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 999px;
  background: var(--a-v);
  color: var(--a-ink);
}

/* ---------- Main + shared parts ---------- */
.a-main {
  grid-column: 2;
  grid-row: 3;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 20px 24px;
  transform-style: preserve-3d;
}
.a-main > * { flex-shrink: 0; }
.p3d { transform-style: preserve-3d; }

.av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
  background: linear-gradient(135deg, #6d7290, #3a3e52);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.av.jp { background: linear-gradient(135deg, #a78bfa, #4f6df5); }
.av.pn { background: linear-gradient(135deg, #f7b267, #e5568d); }
.av.ml { background: linear-gradient(135deg, #3fd2c7, #2b78e4); }
.av.er { background: linear-gradient(135deg, #f472b6, #8b5cf6); }
.av.dw { background: linear-gradient(135deg, #8d93a8, #4b5063); }
.av.sys { background: #2a2d3a; color: var(--a-text-2); }

.tile {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--a-v-bg);
  border: 1px solid rgba(151, 110, 247, 0.3);
  color: var(--a-v-2);
  font-size: 12px;
  font-weight: 600;
}
.tile.xl { width: 46px; height: 46px; border-radius: 10px; font-size: 18px; }
.tile.sm { width: 18px; height: 18px; border-radius: 5px; font-size: 9.5px; }

.cap {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--a-text-3);
}
.card {
  position: relative;
  background: var(--a-card);
  border: 1px solid var(--a-line);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.9);
}
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grow { flex: 1; }
.t3 { color: var(--a-text-3); }
.lnk { color: var(--a-v-2); font-size: 12px; }

.pg-head { display: flex; align-items: center; justify-content: space-between; min-height: 42px; }
.pg-head h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.025em; }
.pg-head p { margin: 4px 0 0; color: var(--a-text-3); font-size: 13px; }

.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--a-line);
  background: rgba(255, 255, 255, 0.02);
}
.seg span { padding: 5px 13px; border-radius: 999px; font-size: 12.5px; color: var(--a-text-2); }
.seg span.on { background: var(--a-v); color: var(--a-ink); font-weight: 500; }
.seg.sq { border-radius: 8px; }
.seg.sq span { border-radius: 6px; }

.tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--a-line);
  height: 40px;
  align-items: stretch;
}
.tabs span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--a-text-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.tabs span.on { color: var(--a-v-2); border-bottom-color: var(--a-v); }
.tabs span i {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 500;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--a-text-3);
}
.tabs.st { gap: 22px; }
.tabs.st span { font-size: 12.5px; }

.a-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 14px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--a-text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  white-space: nowrap;
}
.a-btn.v { background: var(--a-v); color: var(--a-ink); font-weight: 600; }
.a-btn.ghost { background: transparent; border-color: var(--a-line); }
.a-btn svg { width: 13px; height: 13px; }

.pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--a-line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--a-text-2);
  white-space: nowrap;
}
.pill.q { color: var(--a-sky); border-color: rgba(90, 169, 230, 0.45); background: var(--a-sky-bg); }
.pill.e { color: var(--a-v-2); border-color: var(--a-v-line); background: var(--a-v-bg); }
.pill.a { color: var(--a-green); border-color: rgba(44, 206, 103, 0.45); background: var(--a-green-bg); }
.pill.w { color: var(--a-amber); border-color: rgba(245, 165, 36, 0.45); background: var(--a-amber-bg); }
.chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  color: var(--a-text-2);
}
.bub {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--a-text-3);
  border: 1px solid var(--a-line);
  background: rgba(255, 255, 255, 0.03);
}
.fld {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--a-line);
  background: rgba(0, 0, 0, 0.18);
  color: var(--a-text);
  font-size: 13px;
}
.fld > svg:last-child { margin-left: auto; color: var(--a-text-3); }
.flbl { display: block; font-size: 12px; font-weight: 500; color: var(--a-text-2); margin-bottom: 6px; }
.caret {
  display: none;
  width: 1.5px;
  height: 15px;
  margin-left: 1px;
  background: var(--a-v-2);
  vertical-align: -3px;
  animation: a-blink 1s steps(1) infinite;
}
@keyframes a-blink { 50% { opacity: 0; } }

/* ============================================================
   DASHBOARD
   ============================================================ */
.db-head { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.db-head h3 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.025em; }
.db-kpis {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 0;
  height: 74px;
}
.kpi { display: flex; align-items: center; gap: 11px; padding: 0 14px; border-left: 1px solid var(--a-line); }
.kpi:first-of-type { border-left: 0; }
.ki {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--a-line);
  color: var(--a-text-2);
}
.ki.v { color: var(--a-v-2); background: var(--a-v-bg); border-color: rgba(151, 110, 247, 0.25); }
.ki.g { color: var(--a-green); background: var(--a-green-bg); border-color: rgba(44, 206, 103, 0.25); }
.ki.a { color: var(--a-amber); background: var(--a-amber-bg); border-color: rgba(245, 165, 36, 0.25); }
.kt { display: flex; flex-direction: column; }
.kt .cap { font-size: 9px; }
.kt b { font-size: 21px; line-height: 1.15; letter-spacing: -0.02em; }
.kt small { font-size: 10px; }

.db-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 158px 158px 1fr;
  gap: 12px;
  transform-style: preserve-3d;
}
.wp {
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #161827, var(--a-card) 60%);
}
.wp .rbtn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--a-line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wp .rbtn svg { width: 12px; height: 12px; }
.wp .big { margin-top: auto; font-size: 32px; letter-spacing: -0.03em; line-height: 1.05; }
.wp .sub { color: var(--a-text-3); font-size: 12px; margin-top: 4px; }

.gauge { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 18px; }
.gauge .arc { position: absolute; left: 50%; top: 12px; width: 170px; height: 128px; transform: translateX(-50%); }
.gauge b { position: relative; font-size: 34px; letter-spacing: -0.03em; line-height: 1; }
.gauge span { position: relative; color: var(--a-text-3); font-size: 11.5px; margin-top: 6px; }

.load .cap { display: block; margin-bottom: 8px; }
.lr { display: grid; grid-template-columns: 22px 64px 1fr 18px; align-items: center; gap: 9px; height: 25px; }
.lr .nm { font-size: 12.5px; }
.lr .bar { height: 10px; border-radius: 3px; background: rgba(255, 255, 255, 0.04); overflow: hidden; }
.lr .bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #8b63f3, #a98bfa); }
.lr b { font-size: 12.5px; text-align: right; }

.risk ul { list-style: none; margin: 8px 0 0; padding: 0; }
.risk li {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 21px;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.risk li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--a-amber); flex-shrink: 0; }
.risk .amber { color: var(--a-amber); font-size: 12px; }

.focus { display: flex; flex-direction: column; gap: 8px; padding: 13px 14px; }
.fh { display: flex; gap: 8px; align-items: flex-start; }
.fh > div:first-child { flex: 1; min-width: 0; }
.fh b, .fh span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fh b { font-size: 13.5px; font-weight: 500; }
.fh span { font-size: 11px; color: var(--a-text-3); margin-top: 2px; }
.fv { text-align: right; }
.fv b { font-size: 12.5px; font-weight: 600; }
.fh > svg { width: 13px; height: 13px; color: var(--a-text-4); margin-top: 2px; }
.fs { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.fs svg { width: 13px; height: 13px; color: var(--a-text-4); }
.fw { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--a-text-2); white-space: nowrap; overflow: hidden; }
.fw svg { width: 13px; height: 13px; color: var(--a-amber); }
.ff {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid var(--a-line);
  font-size: 11px;
  color: var(--a-text-3);
}
.ff b { color: var(--a-text); font-weight: 500; }

.doit {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 0;
  color: var(--a-ink);
  background: linear-gradient(155deg, #a888fb 0%, #9469f5 55%, #8357ee 100%);
  box-shadow: 0 24px 60px -24px rgba(151, 110, 247, 0.85);
}
.doit .cap { color: rgba(13, 15, 23, 0.65); }
.doit b { font-size: 17px; letter-spacing: -0.02em; margin-top: 4px; }
.doit > span:not(.cap):not(.go) { font-size: 12.5px; color: rgba(13, 15, 23, 0.75); }
.doit .go {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  background: #12131d;
  color: var(--a-v-3);
  font-weight: 600;
  font-size: 12.5px;
}
.doit .go svg { width: 12px; height: 12px; }

.others { grid-column: span 3; padding: 12px 16px 6px; }
.or {
  display: grid;
  grid-template-columns: 1fr 120px 70px 44px 62px 16px;
  align-items: center;
  gap: 10px;
  height: 43px;
  border-top: 1px solid var(--a-line);
}
.others .row { height: 26px; margin-bottom: 4px; }
.or .on b { display: block; font-size: 13px; font-weight: 500; }
.or .on small { font-size: 10.5px; }
.or .pill { justify-self: center; }
.or .ev { font-size: 12.5px; text-align: right; }
.or .d { color: var(--a-text-3); font-size: 12px; text-align: right; }
.or .st { display: inline-flex; align-items: center; gap: 5px; color: var(--a-amber); font-size: 11.5px; }
.or .st i { width: 6px; height: 6px; border-radius: 50%; background: var(--a-amber); }
.or .st.ok { color: var(--a-green); }
.or .st.ok i { background: var(--a-green); }
.or > svg { width: 13px; height: 13px; color: var(--a-text-4); }

.activity { padding: 12px 14px; }
.activity .cap { display: block; margin-bottom: 8px; }
.ar { display: flex; gap: 9px; align-items: flex-start; padding: 6px 0; font-size: 11.5px; line-height: 1.35; }
.ar .av { width: 20px; height: 20px; font-size: 8px; margin-top: 1px; }
.ar b { font-weight: 500; }
.ar small { display: block; font-size: 10.5px; margin-top: 2px; }

/* ============================================================
   DEAL PIPELINE
   ============================================================ */
.tools { display: flex; align-items: center; gap: 8px; height: 34px; }
.tools .inp, .tools .sel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 11px;
  border-radius: 7px;
  border: 1px solid var(--a-line);
  font-size: 12px;
  color: var(--a-text-2);
  white-space: nowrap;
}
.tools .inp { width: 236px; color: var(--a-text-3); }
.tools .sel svg { width: 12px; height: 12px; color: var(--a-text-3); }
.tools .sel.wide { width: 128px; justify-content: space-between; color: var(--a-text); }
.tools .lbl { font-size: 12px; color: var(--a-text-3); }
.tog { position: relative; display: inline-flex; height: 32px; border-radius: 7px; border: 1px solid var(--a-line); }
.tog-pill {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 50%;
  width: calc(50% - 2px);
  border-radius: 5px;
  background: var(--a-v-bg);
  box-shadow: inset 0 0 0 1px rgba(151, 110, 247, 0.3);
}
.tog > span:not(.tog-pill) {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 78px;
  font-size: 12px;
  color: var(--a-text-2);
}
.tog > span svg { width: 12px; height: 12px; }
.tog > span.on { color: var(--a-v-2); }

.pl-body { position: relative; flex: 1; min-height: 0; transform-style: preserve-3d; }
.pl-board {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  transform-style: preserve-3d;
}
.col {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 11px;
  border: 1px solid var(--a-line);
  background: rgba(255, 255, 255, 0.018);
  transform-style: preserve-3d;
}
.col-frame { position: absolute; inset: 0; border-radius: 11px; }
.col-h { display: flex; flex-direction: column; gap: 2px; padding: 2px 4px 6px; }
.col-h span { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.col-h span i { font-style: normal; font-size: 10.5px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: var(--a-text-3); }
.col-h small { font-size: 11px; }
.col-h .dot { width: 8px; height: 8px; border-radius: 50%; }
.bcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 11px 12px;
  border-radius: 9px;
  border: 1px solid var(--a-line);
  background: var(--a-card-2);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.9);
}
.bcard .bt { display: flex; gap: 10px; align-items: center; }
.bcard .bt b { display: block; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.bcard .bt small { font-size: 10.5px; }
.bcard .bm { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.bcard .bm b { font-size: 12px; }
.bcard .bm small { margin-left: auto; }
.bcard .bm .av { width: 18px; height: 18px; font-size: 7px; }
.bcard .bm .st { color: var(--a-amber); font-size: 10.5px; }

.pl-table {
  position: absolute;
  inset: 0 0 auto 0;
  visibility: hidden;
  transform-style: preserve-3d;
}
.tframe {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 1px solid var(--a-line);
  background: var(--a-card);
}
.th, .prow {
  position: relative;
  display: grid;
  grid-template-columns: 2.5fr 1.15fr 1fr 0.9fr 0.95fr 1fr 0.85fr;
  align-items: center;
  padding: 0 14px;
}
.th { height: 34px; font-size: 12px; color: var(--a-text-3); border-bottom: 1px solid var(--a-line); }
.grp {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--a-line);
}
.grp i { font-style: normal; font-size: 10.5px; color: var(--a-text-3); }
.prow { height: 40px; font-size: 12.5px; border-bottom: 1px solid var(--a-line); background: var(--a-card); }
.prow:last-child { border-bottom: 0; border-radius: 0 0 10px 10px; }
.prow .dn { display: flex; align-items: center; gap: 10px; }
.prow .dn b { display: block; font-weight: 500; font-size: 12.5px; }
.prow .dn small { font-size: 10.5px; }
.prow .tile { width: 26px; height: 26px; font-size: 11px; }

/* ============================================================
   DEAL ROOM + LOG INTERACTION
   ============================================================ */
.dl-page { position: relative; display: flex; flex-direction: column; gap: 12px; flex: 1; transform-style: preserve-3d; }
.crumb { font-size: 12px; color: var(--a-text-3); height: 16px; }
.crumb b { color: var(--a-text-2); font-weight: 500; }
.dl-head { display: flex; align-items: center; gap: 14px; }
.dh { flex: 1; min-width: 0; }
.dt { display: flex; align-items: center; gap: 8px; }
.dt h3 { margin: 0 6px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -0.025em; white-space: nowrap; }
.dm { display: flex; gap: 16px; margin-top: 6px; font-size: 12px; color: var(--a-text-3); white-space: nowrap; }
.dm b { color: var(--a-text-2); font-weight: 500; }
.sw { position: relative; display: inline-grid; }
.sw > span { grid-area: 1 / 1; }
.dl-ago { color: var(--a-amber); }
.dl-now { color: var(--a-green); visibility: hidden; }
.dbtns { display: flex; gap: 8px; }
.dl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dl-stats .card { padding: 11px 14px; }
.dl-stats b { display: block; font-size: 19px; letter-spacing: -0.02em; margin-top: 5px; }
.dl-stats .ok { color: var(--a-green); }
.dl-body { display: grid; grid-template-columns: 1.45fr 1fr; gap: 12px; flex: 1; min-height: 0; }
.dcol { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.thesis p { margin: 7px 0 0; font-size: 13px; color: var(--a-text-2); line-height: 1.5; }
.dl-act { flex: 1; overflow: hidden; padding-bottom: 6px; }
.dl-act .row b { font-size: 13.5px; }
.act-list { position: relative; margin-top: 6px; }
.act-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  border-top: 1px solid var(--a-line);
  font-size: 12.5px;
}
.act-row .ai {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--a-text-2);
}
.act-row .ai svg { width: 13px; height: 13px; }
.act-row > span:nth-child(2) { flex: 1; min-width: 0; }
.act-row small { display: block; font-size: 10.5px; margin-top: 1px; }
.act-row time { font-size: 11px; color: var(--a-text-3); }
.dl-new {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  visibility: hidden;
  border-top: 0;
  border-bottom: 1px solid var(--a-line);
}
.dl-new .ai { background: var(--a-v-bg); color: var(--a-v-2); }
.dl-new time { color: var(--a-green); }
.nextm .mt { margin: 10px 0 2px; font-size: 14.5px; font-weight: 500; }
.fresh .swb { position: relative; display: grid; margin-top: 10px; }
.fresh .swb > div { grid-area: 1 / 1; display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 500; }
.fresh .swb small { display: block; font-weight: 400; margin-top: 2px; }
.fresh .ic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fr-stale .ic { background: var(--a-amber-bg); color: var(--a-amber); }
.fr-fresh { visibility: hidden; }
.fr-fresh .ic { background: var(--a-green-bg); color: var(--a-green); }

.dl-dim {
  position: absolute;
  inset: 0;
  border-radius: 0 0 14px 0;
  background: rgba(4, 5, 9, 0.66);
}
.dl-modal {
  position: absolute;
  left: 50%;
  top: 70px;
  width: 520px;
  margin-left: -260px;
  padding: 20px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform-style: preserve-3d;
}
.mp { position: relative; }
.mp-frame {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: #10121a;
  border: 1px solid var(--a-line-2);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.mp-head { display: flex; align-items: center; justify-content: space-between; }
.mp-head b { font-size: 18px; letter-spacing: -0.02em; }
.mp-head svg { color: var(--a-text-2); }
.mp-deal {
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--a-line);
  background: rgba(255, 255, 255, 0.02);
}
.mp-deal .dd { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 12.5px; color: var(--a-text-3); }
.dchip { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: var(--a-text); font-weight: 600; font-size: 12.5px; }
.mp-deal .fld { height: 38px; gap: 6px; }
.mp-deal > small { display: block; margin-top: 7px; font-size: 11px; }
.mp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px 0 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 500;
}
.mp-chip .av { width: 20px; height: 20px; font-size: 7.5px; }
.mp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mp-row .fld small { margin-left: auto; }
.mp-row .fld svg:first-child { color: var(--a-text-3); }
.mp-act { display: flex; align-items: center; gap: 10px; }
.mp-act .more { font-size: 12.5px; font-weight: 500; }
.mp-act .a-btn { height: 36px; padding: 0 18px; font-size: 13px; }

/* ============================================================
   SETTINGS · SUB-STAGES
   ============================================================ */
.ss-body {
  position: relative;
  width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform-style: preserve-3d;
}
.ss-body h4 { margin: 2px 0 2px; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.ss-group { padding: 0; transform-style: preserve-3d; }
.ss-gframe { position: absolute; inset: 0; border-radius: 10px; }
.ss-gh {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 16px;
  font-size: 12px;
  color: var(--a-text-3);
}
.ss-gh > b { font-size: 14.5px; color: var(--a-text); }
.ss-gh > span b { color: var(--a-text); font-weight: 500; }
.ss-gh .add { color: var(--a-text); font-weight: 500; }
.ss-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 16px;
  border-top: 1px solid var(--a-line);
  background: var(--a-card);
  font-size: 13px;
}
.ss-row:last-child { border-radius: 0 0 10px 10px; }
.ss-row > b { font-weight: 500; font-size: 13.5px; }
.ss-hl {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(151, 110, 247, 0.2), rgba(151, 110, 247, 0.04));
  box-shadow: inset 2px 0 0 var(--a-v);
  visibility: hidden;
}
.rad { position: relative; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #4b4f63; background: #2a2d3a; flex-shrink: 0; }
.rad.on { border-color: var(--a-v); background: radial-gradient(circle, var(--a-v) 0 4px, #1f1d33 4.5px); }
.ss-row code {
  position: relative;
  font-size: 11px;
  color: var(--a-text-3);
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
}
.dflt {
  position: relative;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--a-v-2);
  border: 1px solid var(--a-v-line);
  background: var(--a-v-bg);
}
.ss-row .ctl { position: relative; display: inline-flex; align-items: center; gap: 18px; font-size: 12.5px; color: var(--a-text); }
.ss-row .ctl svg { width: 13px; height: 13px; color: var(--a-text-2); }
.ss-a { position: absolute; left: 470px; top: 50%; width: 1px; height: 1px; }
.token {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 11px 0 4px;
  border-radius: 999px;
  background: var(--a-v);
  color: var(--a-ink);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  visibility: hidden;
  box-shadow: 0 0 0 4px rgba(151, 110, 247, 0.25), 0 14px 34px -6px rgba(151, 110, 247, 0.85);
}
.token .tile { background: var(--a-ink); color: var(--a-v-3); border: 0; }

/* ============================================================
   REPORTS
   ============================================================ */
.rp-ask { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.rp-ask > b { font-size: 13.5px; }
.rp-q {
  height: 50px;
  padding: 11px 13px;
  border-radius: 8px;
  border: 1px solid var(--a-line);
  background: rgba(0, 0, 0, 0.2);
  font-size: 13.5px;
  color: var(--a-text);
}
.rp-acts { display: flex; align-items: center; gap: 18px; }
.rp-acts .a-btn { height: 36px; padding: 0 16px; font-size: 13px; }
.rp-acts > span:last-child { font-size: 13px; font-weight: 500; }
.rp-grid { display: grid; grid-template-columns: 300px 1fr; gap: 12px; flex: 1; min-height: 0; transform-style: preserve-3d; }
.rp-cfg { display: flex; flex-direction: column; gap: 7px; padding: 14px 16px; transform-style: preserve-3d; }
.rp-cfg .cap { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; }
.rp-cfg .cap:first-child { margin-top: 0; }
.rp-cfg .cap svg { width: 12px; height: 12px; }
.rp-cfg .fld { height: 34px; }
.rp-cfg .seg { align-self: flex-start; }
.rp-cols { display: flex; flex-direction: column; gap: 3px; transform-style: preserve-3d; }
.rp-col {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 29px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--a-line);
  background: var(--a-card-2);
  font-size: 12.5px;
}
.rp-col svg { width: 12px; height: 12px; color: var(--a-text-4); }
.rp-col i { margin-left: auto; font-style: normal; font-size: 10.5px; color: var(--a-text-4); }
.rp-col svg:last-child { color: var(--a-text-3); }
.rp-fil {
  position: relative;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--a-v-line);
  background: var(--a-v-bg);
  color: var(--a-v-3);
  font-size: 12px;
}
.rp-fil b { font-weight: 400; color: var(--a-text-3); }
.rp-fil svg { width: 11px; height: 11px; }
.rp-prev { padding: 0; display: flex; flex-direction: column; transform-style: preserve-3d; }
.rp-prev .ph { display: flex; align-items: center; gap: 9px; height: 54px; padding: 0 14px 0 18px; border-bottom: 1px solid var(--a-line); }
.rp-prev .ph > b { font-size: 14px; font-weight: 500; }
.rp-prev .ph .t3 { font-size: 12px; }
.rp-prev .ph svg { color: var(--a-text-2); }
.rp-table { position: relative; transform-style: preserve-3d; }
.rp-th, .rp-tr {
  position: relative;
  display: grid;
  grid-template-columns: 1.55fr 1.05fr 1.05fr 0.95fr 1.2fr;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
}
.rp-th { height: 40px; font-size: 12.5px; color: var(--a-text-3); border-bottom: 1px solid var(--a-line); transform-style: preserve-3d; }
.rp-th > span { position: relative; display: block; }
.rp-tr { height: 42px; font-size: 12.5px; border-bottom: 1px solid var(--a-line); background: var(--a-card); }
.rp-tr span:nth-child(3) { font-family: "JetBrains Mono", Menlo, monospace; font-size: 11.5px; color: var(--a-text-2); }
.rp-tr span:nth-child(5) { color: var(--a-text-2); }
.rp-file {
  position: absolute;
  right: 50px;
  top: 300px;
  width: 250px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(160deg, #1a1d2b, #11131b);
  border: 1px solid rgba(44, 206, 103, 0.4);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.95), 0 0 40px -10px rgba(44, 206, 103, 0.35);
  visibility: hidden;
}
.rp-file .csv {
  width: 40px;
  height: 46px;
  border-radius: 6px;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #052e16;
  background: linear-gradient(160deg, #4ade80, #22a35a);
}
.rp-file b { font-size: 14px; }

/* ============================================================
   SETTINGS · INTEGRATIONS
   ============================================================ */
.ig-grid {
  width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 172px;
  gap: 12px;
  transform-style: preserve-3d;
}
.ig-tile { display: flex; flex-direction: column; gap: 11px; padding: 16px 16px 14px; background: var(--a-card); }
.ig-tile .ih { display: flex; align-items: center; gap: 11px; }
.ig-tile .lg {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--c);
}
.ig-tile .lg.dark { background: #050608; border: 1px solid var(--a-line-2); }
.ig-tile .in { flex: 1; min-width: 0; }
.ig-tile .in b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-tile .in small { display: block; font-size: 11.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-st {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--a-text-3);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--a-line);
}
.ig-st.ok { color: var(--a-green); background: var(--a-green-bg); border-color: rgba(44, 206, 103, 0.45); }
.ig-tile p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--a-text-2); }
.ig-tile .ia { display: flex; gap: 8px; margin-top: auto; }
.ig-tile .ia span { font-size: 11.5px; padding: 5px 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); color: var(--a-text-2); }

/* Thumbnails on the finale wall: flatten for speed */
.a-win.thumb, .a-win.thumb * { transform-style: flat !important; }
