:root {
  color-scheme: light;
  --bg: #f4f6fb;
  --paper: #fff;
  --ink: #17233a;
  --muted: #62708a;
  --line: #e6ebf3;
  --blue: #2359ec;
  --nav: #111b31;
  --navy: #1a2743;
  --radius: 17px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); font-size: 14px; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: clamp(27px, 3vw, 36px); line-height: 1.12; letter-spacing: -.045em; }
h2 { font-size: 19px; letter-spacing: -.025em; }
h3 { font-size: 15px; letter-spacing: -.015em; }
small,.muted { color: var(--muted); }
a { color: var(--blue); text-decoration: none; }
button,input,select,textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible { outline: 3px solid #739aff; outline-offset: 2px; }
button svg, .with-icon svg { flex: 0 0 auto; }
button { color: inherit; }
[hidden] { display: none !important; }
.shell { display: grid; grid-template-columns: 245px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { background: var(--nav); color: #fff; display: flex; flex-direction: column; min-height: 100dvh; position: sticky; top: 0; height: 100dvh; overflow-y: auto; z-index: 10; }
.brand { padding: 31px 21px 28px; display: flex; align-items: center; gap: 11px; white-space: nowrap; }
.brand strong { font-size: 18px; letter-spacing: -.04em; color: #fff; }
.brand em { font-style: normal; color: #8baaff; font-size: 11px; letter-spacing: .06em; margin-left: 3px; }
.logo { width: 39px; height: 39px; border-radius: 12px; display: inline-grid; place-items: center; background: linear-gradient(145deg,#3976ff,#2554de); box-shadow: 0 6px 19px #08143344; color: #fff; flex-shrink: 0; }
.logo svg { fill: currentColor; stroke-width: 1.2; }
.workspace { margin: 0 15px 26px; padding: 11px 9px; border: 1px solid #2b3750; border-radius: 11px; display: flex; align-items: center; gap: 9px; }
.avatar, .workspace-avatar { display: inline-grid; place-items: center; flex-shrink: 0; font-weight: 750; width: 34px; height: 34px; border-radius: 10px; color: #2359ec; background: #eaf0ff; font-size: 12px; }
.workspace-avatar { background: #293b63; color: #c8d7ff; }
.workspace strong, .workspace small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace div { min-width: 0; }
.workspace strong { font-size: 12px; }
.workspace small { color: #aab7ce; margin-top: 4px; font-size: 11px; }
.sidebar nav { padding: 0 13px; display: grid; gap: 4px; }
.nav-label { color: #a4b1c8; font-size: 10px; font-weight: 700; letter-spacing: .11em; padding: 0 11px 8px; }
.nav-label:not(:first-child) { padding-top: 17px; }
.nav-item { padding: 10px 11px; display: flex; align-items: center; gap: 11px; min-height: 42px; border-radius: 9px; color: #cbd5e7; font-size: 12px; font-weight: 550; }
.nav-item:hover { background: #1c2a47; color: #fff; }
.nav-item.active { background: #233966; color: #fff; }
.nav-item.active svg { color: #91afff; }
.sidebar-footer { margin-top: auto; padding: 19px 15px; }
.mode { border-top: 1px solid #2b3750; padding: 15px 10px 0; color: #b4c6e9; font-size: 12px; }
.mode i, .dot { width: 7px; height: 7px; background: #71dcb9; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 3px #71dcb923; margin-right: 8px; }
.main { min-width: 0; }
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 28px; display: flex; justify-content: space-between; align-items: center; min-height: 66px; gap: 10px; }
.crumb, .top-tools, .with-icon { display: flex; align-items: center; gap: 8px; }
.crumb { font-size: 12px; font-weight: 650; }
.crumb span { color: var(--muted); }
.top-tools { gap: 12px; }
.top-account { display: flex; align-items: center; gap: 9px; border-left: 1px solid var(--line); padding-left: 13px; font-size: 12px; }
.icon-btn { border: 1px solid var(--line); background: white; color: #475875; border-radius: 9px; display: inline-grid; place-items: center; padding: 0; width: 36px; height: 36px; position: relative; }
.icon-btn:hover { background: #f1f5ff; }
.ping { width: 7px; height: 7px; border-radius: 50%; background: #ef9760; position: absolute; top: 7px; right: 8px; border: 1px solid #fff; }
.mobile-menu { display: none; }
.page { padding: 28px; max-width: 1510px; margin: auto; }
.page-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 16px; }
.page-title p { margin-top: 7px; line-height: 1.5; color: var(--muted); }
.button { border: 1px solid transparent; border-radius: 10px; min-height: 40px; padding: 8px 13px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; background: var(--blue); color: white; font-size: 13px; font-weight: 700; max-width: 100%; text-align: center; }
.button:hover { background: #1646d3; }
.button.secondary { background: #fff; color: #2d3d59; border-color: #dce4f0; }
.button.secondary:hover { background: #f0f5ff; }
.button.quiet { background: transparent; color: var(--blue); padding-inline: 4px; }
.button.quiet:hover { color: #113bac; }
.button.danger { background: #fff2f2; color: #a22632; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; border-radius: 18px; background: linear-gradient(109deg,#10348d 0%,#1748c5 58%,#1d59e5 100%); color: #fff; min-height: 205px; padding: 24px 27px; margin-bottom: 21px; }
.hero-content { z-index: 1; max-width: 570px; }
.hero-meta { display: inline-flex; align-items: center; gap: 7px; color: #e1eaff; font-size: 11px; background: #ffffff20; border: 1px solid #ffffff35; border-radius: 99px; padding: 5px 9px; margin-bottom: 12px; }
.hero h2 { font-size: clamp(23px,3vw,32px); line-height: 1.1; letter-spacing: -.042em; }
.hero p { max-width: 440px; color: #e2ebff; line-height: 1.5; margin: 9px 0 15px; font-size: 13px; }
.hero .button { color: #1945bc; background: #fff; }
.hero .button:hover { background: #eaf0ff; }
.radar { pointer-events: none; position: absolute; top: 0; bottom: 0; right: 0; width: 49%; min-width: 315px; overflow: hidden; mask-image: linear-gradient(90deg,transparent,#000 32%); background-image: linear-gradient(#a7c2ff1d 1px, transparent 1px),linear-gradient(90deg,#a7c2ff1d 1px, transparent 1px); background-size: 27px 27px; }
.radar::before,.radar::after,.radar-core { content: ""; border-radius: 50%; border: 1px solid #b2ccff7c; width: 242px; height: 242px; position: absolute; top: 50%; left: 62%; transform: translate(-50%,-50%); }
.radar::before { width: 320px; height: 320px; opacity: .53; }
.radar::after { width: 170px; height: 170px; opacity: .75; }
.radar-core { width: 100px; height: 100px; background: #a7c5ff39; box-shadow: 0 0 55px #afcaff4a; display: grid; place-items: center; color: #fff; }
.radar-core span { width:44px; height:44px; display:grid; place-items:center; border-radius: 13px; background: #c5daff3b; color: white; }
.blip { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #d5efff; box-shadow: 0 0 0 5px #cfebff31,0 0 15px #ecf8ff; z-index: 1; }
.blip.one { top: 32%; left: 35%; }.blip.two { top: 71%; left: 79%; }.blip.three { top: 18%; left: 82%; }.blip.four { top: 80%; left: 46%; width: 5px;height: 5px; }
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 19px; }
.metric { display: grid; gap: 7px; border: 1px solid var(--line); background: #fff; padding: 14px; border-radius: 13px; color: var(--ink); min-width: 0; }
.metric:hover { border-color: #b6c8f0; }
.metric > strong { font-size: 30px; letter-spacing: -.04em; }
.metric > span:last-child { font-size: 12px; color: var(--muted); }
.tint { display: inline-grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: #eaf0ff; color: #295de0; flex-shrink: 0; }
.tint.green { background: #e6f8f0; color: #13744e; }
.tint.violet { background: #f0ebff; color: #724bd4; }
.tint.orange { background: #fff2e4; color: #a6530a; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(255px,1fr); gap: 14px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; min-height: 56px; }
.panel-head p { color: var(--muted); margin-top: 5px; font-size: 12px; }
.panel-content { padding: 16px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th,td { padding: 12px 13px; border-top: 1px solid var(--line); }
th { color: #63718b; text-transform: uppercase; letter-spacing: .06em; font-size: 10px; background: #f8faff; font-weight: 750; }
td { font-size: 12px; }
td small,.subline { display: block; margin-top: 5px; color: var(--muted); }
.job-name { font-weight: 700; color: var(--ink); }
.job-name:hover { color: var(--blue); }
.pill { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; border-radius: 20px; padding: 4px 8px; background: #eef1f7; color: #495974; font-size: 10px; font-weight: 700; vertical-align: middle; }
.pill.live,.pill.confirmed { color: #106746; background: #e5f6ed; }
.pill.interested { color: #6d3bc2; background: #f0e9ff; }
.pill.in_progress { color: #1948b3; background: #e9f0ff; }
.pill.declined { color: #9c2e39; background: #fff0f0; }
.pill.demo { color: #895111; background: #fff3dd; }
.activity { padding: 0 14px 6px; }
.activity-row { display: flex; gap: 9px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--line); }
.activity-row > div { min-width: 0; }
.activity-row h3 { font-size: 12px; }
.activity-row p { color: var(--muted); margin-top: 4px; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.activity-row time { color: #60708a; display: block; margin-top: 5px; font-size: 10px; }
.stack { display: grid; gap: 14px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; }
.card { padding: 15px; display: grid; gap: 12px; align-content: start; overflow-wrap: anywhere; }
.card-top { display: flex; gap: 10px; align-items: center; }
.card-top h3 { line-height: 1.25; }
.card-top p { color: var(--muted); font-size: 12px; margin-top: 3px; }
.card .dim { color: var(--muted); font-size: 12px; line-height: 1.55; }
.card dl,.data-list { display: grid; gap: 9px; font-size: 13px; margin: 0; }
.card dl div,.data-list div { display: grid; grid-template-columns: minmax(85px,1fr) minmax(0,1.6fr); gap: 9px; }
dt { color: var(--muted); }
dd { margin: 0; }
.form { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.filters { grid-template-columns: repeat(4,minmax(0,1fr)); }
.field { display: grid; align-content: start; gap: 6px; color: #334362; font-size: 12px; font-weight: 680; min-width: 0; }
.field.full { grid-column: 1/-1; }
input,select,textarea { min-width: 0; width: 100%; padding: 9px 10px; border: 1px solid #d9e1ef; border-radius: 8px; background: #fff; color: var(--ink); min-height: 40px; font-size: 14px; }
textarea { resize: vertical; min-height: 90px; }
.error { color: #aa2535; line-height: 1.45; font-size: 13px; }
.error:empty { display: none; }
.empty { text-align: center; color: var(--muted); padding: 29px 15px; line-height: 1.5; }
.banner { padding: 11px 13px; border-radius: 9px; color: #73501b; background: #fff5df; font-size: 12px; line-height: 1.45; }
.banner.blue { background: #eaf0ff; color: #214aa6; }
.text-block { border: 1px solid var(--line); background: #f6f8fc; border-radius: 9px; padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.score { font-weight: 750; color: var(--blue); }
.bar-track { width: 100%; height: 8px; accent-color: var(--blue); display: block; margin-top: 7px; }
.bar-item { margin-bottom: 14px; }
.bar-item > div { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
dialog { width: min(620px,calc(100% - 26px)); max-height: 88dvh; padding: 0; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); box-shadow: 0 24px 65px #101b3b54; }
dialog::backdrop { background: #111b31ae; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 13px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.modal-body { padding: 16px; }
#toast:not(:empty) { position: fixed; bottom: 18px; right: 18px; max-width: min(470px,calc(100vw - 36px)); z-index: 20; color: #fff; background: #162542; border-radius: 10px; padding: 12px 15px; box-shadow: 0 10px 35px #101b3b50; }
.auth { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-intro { background: radial-gradient(ellipse at 77% 81%,#254eaa 0%,#142b64 44%,#111b31 85%); position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 34px 38px; color: #fff; }
.auth-intro .brand { padding: 0; }
.auth-story { max-width: 500px; margin: auto 0; z-index: 1; padding: 45px 0 100px; }
.auth-story h1 { font-size: clamp(34px,5vw,68px); }
.auth-story p { color: #d4e1ff; line-height: 1.6; margin-top: 15px; max-width: 360px; }
.auth-intro .radar { top: 40%; opacity: .68; width: 84%; }
.auth-content { display: grid; place-items: center; padding: 25px; }
.auth-box { width: min(100%,420px); padding: 25px; }
.auth-box h2 { font-size: 27px; }
.auth-box > p { margin: 8px 0 20px; color: var(--muted); }
.auth-box .button { width: 100%; }
.public { max-width: 720px; margin: 28px auto; padding: 0 15px; }
.public h1 { margin-bottom: 12px; }
.loading { padding: 35px; color: var(--muted); }
.cover { display: none; }
@media (max-width: 1150px) { .shell { grid-template-columns: 213px minmax(0,1fr); } .page { padding: 21px; } .topbar { padding-inline: 21px; } .grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 900px) { .dashboard-grid { grid-template-columns: minmax(0,1fr); } .filters { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { position: fixed; width: 244px; left: 0; bottom: 0; transform: translateX(-100%); visibility: hidden; transition: transform .18s ease, visibility .18s ease; }
  .shell.menu-open .sidebar { transform: translateX(0); visibility: visible; }
  .shell.menu-open .cover { display: block; position: fixed; inset: 0; background: #0b153d99; z-index: 9; border: 0; width: 100%; }
  .mobile-menu { display: inline-grid; }
  .topbar { padding: 8px 13px; min-height: 57px; }
  .crumb > span, .crumb > svg, .top-account > span:last-child { display: none; }
  .top-tools { gap: 7px; }
  .top-account { padding-left: 7px; }
  .page { padding: 17px 13px 25px; }
  .hero { padding: 18px; }
  .radar { opacity: .45; right: -64px; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .auth { display: block; }
  .auth-intro { padding: 22px 20px; }
  .auth-story { padding: 26px 0 14px; }
  .auth-story h1 { font-size: clamp(30px,8vw,46px); }
  .auth-content { padding: 15px; }
  .auth-box { padding: 18px; }
}
@media (max-width: 470px) {
  .page-title { align-items: flex-start; flex-direction: column; gap: 10px; }
  .grid { grid-template-columns: minmax(0,1fr); }
  .form-grid:not(.filters) { grid-template-columns: minmax(0,1fr); }
  input,select,textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
.demo-entry { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 15px; gap: 9px; }
.demo-entry p { font-size: 12px; line-height: 1.45; }
.consent-check { display: flex; align-items: flex-start; gap: 8px; line-height: 1.45; color: var(--muted); }
.consent-check input { margin: 2px 0 0; padding: 0; width: 16px; height: 16px; min-height: 0; flex-shrink: 0; }
details summary { cursor: pointer; }
details .text-block { margin-top: 8px; }

.market-compact { min-height: 100vh; max-width: 1080px; margin: 0 auto; padding: 20px 24px 60px; }
.market-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 18px; }
.market-identity { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 13px; min-width: 0; }
.market-identity .brand { color: var(--ink); }
.market-identity > span { font-size: 12px; color: var(--muted); }
.market-tabs { display: flex; gap: 7px; padding: 6px 0 12px; overflow-x: auto; }
.market-tabs a { border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; white-space: nowrap; color: var(--ink); }
.market-tabs a[aria-current] { background: var(--ink); border-color: var(--ink); color: white; }
.market-content { padding: 15px 0; }
.market-check { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.market-check input { accent-color: #2563eb; flex-shrink: 0; width: 17px; height: 17px; }
.market-check span { font-size: 14px; }
.market-rows { display: grid; }
.market-row { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); }
.market-row small { display: block; margin-top: 5px; color: var(--muted); overflow-wrap: anywhere; }
.market-row > div { min-width: 0; overflow-wrap: anywhere; }
.market-row .actions { justify-content: flex-end; }
.market-kpis { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.market-kpis strong { font-size: clamp(20px, 4vw, 33px); letter-spacing: -.04em; }
.market-kpis span { font-size: 13px; color: var(--muted); }
.market-offer { min-width: 0; overflow-wrap: anywhere; }
.market-offer h2 { margin: 2px 0 0; }
.market-fit { border: 1px solid var(--line); padding: 10px 12px; border-radius: 10px; }
.market-fit summary { cursor: pointer; font-weight: 650; }
.market-fit ul { display: grid; padding-left: 18px; margin: 10px 0 0; gap: 6px; }
.market-fit small { display: block; color: var(--muted); margin-top: 2px; }
.market-message { padding: 10px 13px; border-left: 3px solid #93b8ff; background: #f3f7fd; border-radius: 8px; overflow-wrap: anywhere; }
.market-message p { white-space: pre-wrap; margin-top: 5px; }
.market-content .form .stack { gap: 12px; }
@media (max-width: 680px) {
  .market-compact { padding: 9px 14px 36px; }
  .market-top { align-items: flex-start; }
  .market-identity { flex-direction: column; align-items: flex-start; }
  .market-identity > span { margin-left: 2px; }
  .market-row { flex-direction: column; align-items: flex-start; gap: 9px; }
  .market-row .actions { justify-content: flex-start; }
  .market-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
