/* Detra design system. One source of truth for every page: tokens, chrome, components.
   Dark only (brand), restrained motion, system type, tabular numbers, hairline surfaces. */

:root {
  color-scheme: dark;
  --bg: #09090b;
  --bg-elev: #0f0f12;
  --surface: #141418;
  --surface-2: #1b1b21;
  --surface-3: #232329;
  --chrome: rgba(12,12,15,0.72);
  --line: rgba(255,255,255,0.07);
  --line-strong: rgba(255,255,255,0.14);
  --ink: #f5f5f7;
  --ink-2: #9a9aa3;
  --ink-3: #62626b;
  --accent: #3b82f6;
  --accent-ink: #8ab4ff;
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --violet: #a78bfa;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(0,0,0,0.5);
  --sidebar-w: 248px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font: 14.5px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, Inter, sans-serif;
  -webkit-font-smoothing: antialiased; font-optical-sizing: auto;
  background-image: radial-gradient(1200px 500px at 20% -10%, rgba(59,130,246,0.08), transparent 60%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: 1.7rem; line-height: 1.1; letter-spacing: -0.025em; }
h2 { font-size: 1rem; }
h3 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); font-weight: 650; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); } .dim { color: var(--ink-3); }
.good { color: var(--good); } .bad { color: var(--bad); } .warn { color: var(--warn); }

/* ---- layout ---- */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100%; }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 22px 14px 16px; display: flex; flex-direction: column; gap: 6px;
  background: var(--bg-elev); border-right: 1px solid var(--line);
}
.brand { display: block; padding: 2px 8px 22px; }
.brand-logo { width: 150px; height: auto; display: block; opacity: 0.95; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: var(--radius-sm); color: var(--ink-2); font-weight: 500; transition: background .12s var(--ease), color .12s var(--ease), transform .1s var(--ease); }
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a:active { transform: scale(0.985); }
.nav a.active { background: var(--surface-2); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.nav .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.04); }
.nav .dot.ok { background: var(--good); box-shadow: 0 0 10px rgba(52,211,153,0.5); } .nav .dot.bad { background: var(--bad); } .nav .dot.warn { background: var(--warn); }
.nav-label { padding: 18px 11px 6px; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); font-weight: 650; }
.sidebar-foot { margin-top: auto; padding: 14px 4px 2px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); }
.sidebar-foot .btn { width: 100%; justify-content: center; white-space: nowrap; padding: 7px 10px; }
.sidebar-foot .me { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sidebar-foot img, .sidebar-foot .me-mark { width: 30px; height: 30px; border-radius: 50%; flex: none; }
.sidebar-foot .me-mark { background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; }
.sidebar-foot .me-text { min-width: 0; }
.sidebar-foot .me-name { color: var(--ink); font-weight: 600; font-size: 0.86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-foot .me-email { color: var(--ink-2); font-size: 0.74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 12px 28px; min-height: 56px;
  background: var(--chrome); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.crumbs { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; font-size: 0.92rem; }
.crumbs .sep { color: var(--ink-3); font-weight: 400; }
.crumbs .muted { font-weight: 500; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-2); transition: background .12s var(--ease); }
.icon-btn:hover { background: var(--surface); color: var(--ink); } .icon-btn:active { transform: scale(0.94); }
.menu-btn { display: none; }

.tabs-row { display: flex; gap: 2px; padding: 6px 28px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; background: var(--bg-elev); }
.tabs-row:empty { display: none; }
.tab { padding: 10px 12px 12px; color: var(--ink-2); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; transition: color .12s var(--ease); margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }

.content { padding: 28px; max-width: 1320px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .sub { color: var(--ink-2); margin-top: 6px; font-size: 0.9rem; }
.section { margin: 30px 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section:first-child { margin-top: 0; }

/* ---- components ---- */
.grid { display: grid; gap: 12px; }
.grid.tiles { grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); }
.grid.cards-2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; min-width: 0; box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset; }
.card.pad-0 { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h2 { font-size: 0.95rem; }

.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 15px; min-width: 0; position: relative; overflow: hidden; }
.tile::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent); }
.tile .label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); font-weight: 650; }
.tile .value { font-size: 1.9rem; font-weight: 750; letter-spacing: -0.035em; line-height: 1.1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.tile .sub { font-size: 0.78rem; color: var(--ink-2); margin-top: 6px; }
.tile .delta { font-size: 0.74rem; font-weight: 650; margin-left: 8px; letter-spacing: 0; }


table.tbl { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.tbl th, .tbl td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); font-weight: 650; background: rgba(255,255,255,0.02); }
.tbl td.r, .tbl th.r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: rgba(255,255,255,0.025); }
.tbl .link { color: var(--accent-ink); cursor: pointer; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 650; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; letter-spacing: 0.01em; }
.badge.ok { background: rgba(52,211,153,0.14); color: var(--good); } .badge.bad { background: rgba(248,113,113,0.14); color: var(--bad); } .badge.warn { background: rgba(251,191,36,0.14); color: var(--warn); } .badge.info { background: rgba(59,130,246,0.16); color: var(--accent-ink); }

.btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line-strong); font-weight: 600; font-size: 0.86rem; transition: background .12s var(--ease), transform .1s var(--ease); }
.btn:hover { background: var(--surface-3); } .btn:active { transform: scale(0.97); }
.btn.primary { background: var(--accent); border-color: transparent; color: #fff; } .btn.primary:hover { filter: brightness(1.1); }
.btn.sm { padding: 5px 9px; font-size: 0.78rem; }
.btn:disabled { opacity: 0.5; cursor: default; }


.kv { display: grid; grid-template-columns: 1fr auto; row-gap: 8px; column-gap: 14px; font-size: 0.88rem; }
.kv .k { color: var(--ink-2); } .kv .v { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; } .kv .v small { color: var(--ink-2); font-weight: 500; margin-left: 6px; }

.empty, .loading, .error { padding: 40px 20px; text-align: center; color: var(--ink-2); }
.error { color: var(--bad); }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; min-height: 18px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
pre.log { background: #050507; color: #c8c8cc; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; max-height: 480px; overflow: auto; margin: 0; }
.scrim { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 9; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow); padding: 11px 16px; border-radius: 11px; z-index: 20; font-size: 0.9rem; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 10; transform: translateX(-100%); transition: transform .28s var(--ease); box-shadow: var(--shadow); }
  .sidebar.open { transform: none; } .scrim.open { display: block; }
  .menu-btn { display: grid; }
  .content, .topbar { padding-left: 16px; padding-right: 16px; } .tabs-row { padding-left: 16px; }
  .grid.cards-2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---- charts / heat / forms ---- */
.chart-axis { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--ink-3); margin-top: 6px; }
.chart svg rect { transition: opacity .12s var(--ease); } .chart svg g:hover rect { opacity: 0.75; }
td.heat { background: rgba(59,130,246, var(--a)); color: var(--ink); font-weight: 600; }
.legend { display: flex; gap: 14px; font-size: 0.78rem; color: var(--ink-2); } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* =================== mockup (portfolio redesign) =================== */
.mk { --teal: #22d3ee; max-width: 1180px; }
.mk-eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-3); font-weight: 650; margin-bottom: 6px; }
.mk-body > * { animation: mkIn .5s var(--ease) both; }
.mk-body > *:nth-child(2) { animation-delay: .06s; } .mk-body > *:nth-child(3) { animation-delay: .12s; } .mk-body > *:nth-child(4) { animation-delay: .18s; } .mk-body > *:nth-child(5) { animation-delay: .24s; } .mk-body > *:nth-child(6) { animation-delay: .3s; }
@keyframes mkIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.mk-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 32px; border-radius: 22px; margin-bottom: 16px; border: 1px solid var(--line);
  background: radial-gradient(600px 220px at 0% 0%, rgba(52,211,153,.14), transparent 60%), radial-gradient(500px 200px at 100% 100%, rgba(59,130,246,.12), transparent 60%), var(--surface); }
.mk-big { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 750; letter-spacing: -0.045em; line-height: 1; margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
.mk-sub { color: var(--ink-2); font-size: 0.95rem; }
.mk-delta { font-size: 0.78rem; font-weight: 650; padding: 2px 7px; border-radius: 999px; margin-left: 6px; letter-spacing: 0; vertical-align: 3px; }
.mk-delta.up { color: var(--good); background: rgba(52,211,153,.1); } .mk-delta.down { color: var(--bad); background: rgba(248,113,113,.1); }

.mk-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.mk-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px 12px; animation: mkIn .5s var(--ease) both; transition: transform .2s var(--ease), border-color .2s var(--ease); }
.mk-kpi:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.mk-kpi-l { font-size: 0.78rem; color: var(--ink-2); font-weight: 600; }
.mk-kpi-v { font-size: 1.7rem; font-weight: 720; letter-spacing: -0.035em; margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.mk-spark { display: block; width: 100%; height: 36px; }
.mk-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; margin-bottom: 16px; }
.mk-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.mk-card-h h2 { font-size: 1.05rem; letter-spacing: -0.015em; }
.mk-muted { color: var(--ink-2); font-size: 0.82rem; }
.mk-legend { display: flex; gap: 14px; font-size: 0.78rem; color: var(--ink-2); } .mk-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.mk-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .mk-grid2.tight { gap: 22px; }
.mk-chart { width: 100%; display: block; overflow: visible; }
.mk-grid { stroke: rgba(255,255,255,.06); }
.mk-axis { fill: var(--ink-3); font-size: 11px; font-variant-numeric: tabular-nums; } .mk-axis.b { fill: var(--ink); font-weight: 650; }
.mk-draw { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: mkDraw 1.4s var(--ease) .15s forwards; }
@keyframes mkDraw { to { stroke-dashoffset: 0; } }
.mk-fade { animation: mkFade .9s var(--ease) .4s both; } @keyframes mkFade { from { opacity: 0; } to { opacity: 1; } }
.mk-grow { transform-origin: bottom; transform-box: fill-box; animation: mkGrow .6s var(--ease) both; } @keyframes mkGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.mk-cap { text-align: center; color: var(--ink-3); font-size: 0.76rem; margin-top: 4px; }

.mk-ring { position: relative; display: inline-grid; place-items: center; }
.mk-ringfill { animation: mkRing 1.2s var(--ease) both; } @keyframes mkRing { from { stroke-dashoffset: var(--c); } }
.mk-ring-c { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; }
.mk-ring-c b { font-size: 1.35rem; font-weight: 750; letter-spacing: -0.03em; } .mk-ring-c span { font-size: 0.7rem; color: var(--ink-2); }
.mk-rings { display: flex; justify-content: space-around; gap: 12px; flex-wrap: wrap; padding: 10px 0; }

.mk-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mk-in { border-top: 2px solid var(--accent); } .mk-out { border-top: 2px solid #f87171; }
.mk-total { font-size: 1.5rem; font-weight: 750; letter-spacing: -0.03em; } .mk-total.good { color: var(--ink); } .mk-total.bad { color: #fca5a5; }
.mk-line { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.mk-line span { display: block; color: var(--ink-3); font-size: 0.78rem; margin-top: 2px; }
.mk-line-r { text-align: right; min-width: 130px; } .mk-line-r b { font-variant-numeric: tabular-nums; }
.mk-mini { height: 5px; background: var(--surface-3); border-radius: 3px; overflow: hidden; margin-top: 7px; } .mk-mini.wide { flex: 1; margin: 0 6px; }
.mk-mini i, .mk-meter i { display: block; height: 100%; border-radius: 3px; animation: mkBar .9s var(--ease) .2s both; transform-origin: left; } @keyframes mkBar { from { transform: scaleX(0); } }
.mk-net { display: flex; align-items: baseline; gap: 14px; padding: 18px 22px; margin-bottom: 16px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); flex-wrap: wrap; }
.mk-net > span:first-child { color: var(--ink-2); font-weight: 600; } .mk-net b { font-size: 1.9rem; letter-spacing: -0.035em; }
.mk-section { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); font-weight: 650; margin: 26px 0 12px; }
.mk-gauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.mk-gauge { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.mk-meter { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; margin: 2px 0 10px; }
.mk-markets { display: grid; gap: 8px; }
.mk-market { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.mk-market span { display: block; color: var(--ink-3); font-size: 0.78rem; } .mk-flag { font-size: 1.5rem; } .mk-market > div:nth-child(2) { min-width: 170px; } .mk-share-n { min-width: 42px; text-align: right; }

/* flow funnel */
.mk-flow-scroll { overflow-x: auto; margin: 0 -6px; } .mk-flow { width: 100%; display: block; }
.mk-flow text { fill: var(--ink); } .f-name { font-size: 13px; font-weight: 700; } .f-ev { font-size: 10.5px; fill: var(--ink-3) !important; }
.f-n { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; } .f-of { font-size: 11px; fill: var(--ink-2) !important; font-weight: 600; }
.f-conv { font-size: 11px; font-weight: 700; fill: var(--good) !important; } .f-drop { font-size: 12px; font-weight: 700; fill: #fca5a5 !important; } .f-drop.w { fill: #ef4444 !important; }
.f-pct { font-size: 10.5px; fill: var(--ink-2) !important; font-weight: 600; }
.f-node { fill: var(--good); } .f-node.goal { fill: #fbbf24; }
.mk-stage { animation: mkIn .6s var(--ease) both; }
.mk-foot { color: var(--ink-3); font-size: 0.78rem; margin-top: 12px; line-height: 1.5; } .mk-foot code { color: var(--ink-2); }

/* phones */

@media (max-width: 900px) {
  .mk-grid2, .mk-split { grid-template-columns: 1fr; }
  .mk-hero { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .mk-draw { stroke-dashoffset: 0; } }
.mk-grid.zero { stroke: rgba(255,255,255,.22); }
.f-worst { font-size: 10.5px; font-weight: 800; fill: #ef4444 !important; text-transform: uppercase; letter-spacing: .08em; }
.f-pct.dim { fill: var(--ink-3) !important; font-weight: 500; }
.mk-chart text { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; }
.mk-ratings { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.mk-rating { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; }
.mk-rating-v { font-size: 2.4rem; font-weight: 750; letter-spacing: -0.04em; }
.mk-rating span { display: block; color: var(--ink-2); font-size: 0.8rem; margin-top: 2px; }
.mk-stars i { font-style: normal; color: var(--surface-3); font-size: 1.05rem; } .mk-stars i.on { color: #fbbf24; } .mk-stars i.half { background: linear-gradient(90deg, #fbbf24 50%, var(--surface-3) 50%); -webkit-background-clip: text; color: transparent; }
.mk-na { color: var(--ink-3); font-size: 0.8rem; font-style: italic; }
.mk-line.refund b.bad { color: #fca5a5; }
.mk-platbar { display: flex; height: 34px; border-radius: 10px; overflow: hidden; }
.mk-platbar i { display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: .85rem; color: #111; animation: mkBar .9s var(--ease) .2s both; transform-origin: left; }
.mk-fresh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.76rem; }
.mk-cap-b { padding: 2px 8px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); text-decoration: line-through; } .mk-cap-b.on { text-decoration: none; color: var(--ink-2); }
.mk-sep { width: 1px; height: 14px; background: var(--line-strong); }
.mk-note { position: relative; border-radius: 22px; padding: 24px 28px 18px; margin-bottom: 16px; border: 1px solid var(--line-strong); overflow: hidden;
  background: linear-gradient(160deg, rgba(167,139,250,.12), rgba(59,130,246,.06) 45%, var(--surface) 80%); }
.mk-note::before { content: ""; position: absolute; inset: -1px; border-radius: 22px; padding: 1px; background: linear-gradient(120deg, rgba(167,139,250,.6), rgba(59,130,246,.2), transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.mk-note-h { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.mk-note-h h2 { font-size: 1.35rem; letter-spacing: -0.025em; margin-top: 2px; }
.mk-note-ai { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; color: #fff; background: linear-gradient(135deg, #a78bfa, #3b82f6); box-shadow: 0 6px 20px rgba(124,58,237,.35); flex: none; }
.mk-note p { color: #d8d8de; font-size: 0.98rem; line-height: 1.65; margin: 0 0 10px; max-width: 78ch; }
.f-ghost { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 5 5; }
.f-dash { stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 4 6; }
.mk-note.mood-good { border-color: rgba(52,211,153,.35); } .mk-note.mood-bad { border-color: rgba(248,113,113,.4); } .mk-note.mood-mixed { border-color: rgba(251,191,36,.3); }
.mk-ventures { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.mk-venture { display: block; color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; } .mk-venture:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.mk-venture-h { font-size: 1.02rem; font-weight: 600; margin: 2px 0 14px; color: var(--ink-1, #fff); }
.mk-venture-n { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
.mk-venture-n span { display: block; color: var(--ink-3); font-size: .74rem; } .mk-venture-n b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.mk-venture.mood-good { border-color: rgba(52,211,153,.3); } .mk-venture.mood-bad { border-color: rgba(248,113,113,.35); }
