:root {
  color-scheme: dark;
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101822;
  color: #eef3f8;
  --base: #101822;
  --text: #eef3f8;
  --muted: #a8b6c6;
  --line: #afc8e526;
  --mint: #b7f3df;
  --rose: #f5a8bd;
  --radius: 22px;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; min-height: 100dvh; background: radial-gradient(ellipse at 75% 0%, #20394c 0%, transparent 52%), #101822; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .62; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #bbf8e5; outline-offset: 3px; }
[hidden] { display: none !important; }
svg { flex: none; vertical-align: middle; }
h1,h2,p { margin: 0; }
h1 { letter-spacing: -.055em; line-height: 1.04; font-weight: 680; }
h2 { font-size: 1.12rem; line-height: 1.25; letter-spacing: -.024em; }
small, .muted { color: var(--muted); }
.skip { position: fixed; left: 12px; top: 12px; transform: translateY(-180%); z-index: 9; padding: 12px; background: #162c36; }
.skip:focus { transform: none; }
.shell { display: grid; grid-template-columns: 228px minmax(0,1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 40px; padding: 30px 16px 17px; border-right: 1px solid var(--line); background: #0c131be0; backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.13rem; letter-spacing: -.055em; font-weight: 760; width: fit-content; white-space: nowrap; }
.sidebar .brand { margin-left: 10px; }
.brand img { width: 36px; height: 36px; }
.brand b { color: #b7c7d6; font-weight: 520; }
nav { display: grid; gap: 5px; }
nav a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 11px; border-radius: 11px; color: #b5c2d1; font-size: .87rem; border: 1px solid transparent; white-space: nowrap; }
nav a:hover { background: #b2d2f20a; color: var(--text); }
nav a[aria-current] { color: #c9f7e9; background: #a7e5d916; border-color: #a7e5d929; font-weight: 650; }
.profile { margin-top: auto; min-width: 0; padding: 10px 5px 1px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.profile div { display: grid; gap: 4px; min-width: 0; flex: 1; }
.profile strong { font-size: .77rem; }
.profile small { font-size: .68rem; overflow: hidden; text-overflow: ellipsis; }
.avatar { background: #263e47; border: 1px solid #b8e9de38; color: var(--mint); width: 29px; height: 29px; flex: none; border-radius: 100%; display: grid; place-items: center; font-size: .76rem; }
.top { min-height: 76px; padding: 12px clamp(20px,4.2vw,62px); display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); background: #111b2580; }
#breadcrumb, .top-actions { display: flex; align-items: center; gap: 10px; font-size: .82rem; }
#breadcrumb > span:nth-child(2) { color: #8594a3; }
.page { width: min(100%, 1430px); margin-inline: auto; padding: 29px clamp(20px,4.2vw,62px) 55px; }
.glass { border: 1px solid var(--line); background: linear-gradient(145deg,#a3b9d40c,#728eaf04), #15212dca; box-shadow: 0 16px 35px #050b1429,inset 0 1px #cadff90a; border-radius: var(--radius); }
.hero { overflow: hidden; position: relative; isolation: isolate; background: radial-gradient(ellipse at 95% 0%, #397d85 0%, transparent 64%), linear-gradient(120deg,#172c39 28%, #245468 100%); padding: clamp(26px,4.8vw,58px); min-height: 300px; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.4rem,5vw,5rem); margin: 13px 0; }
.hero-copy > p:not(.eyebrow) { color: #d0e3e8; font-size: .97rem; max-width: 30rem; line-height: 1.5; }
.hero .button { margin-top: 22px; }
.eyebrow { display: flex; gap: 8px; align-items: center; font-size: .83rem; color: #c4f2e9; }
.orbit { pointer-events: none; position: absolute; width: 55%; aspect-ratio: 1; border-radius: 49%; transform: rotate(-24deg); background: conic-gradient(from 35deg,#d4fff4 0%,#2d6c7d 12%,#0c293a 25%,#94dbd5 47%,#c1fdf0 55%,#2d7f8e 73%,#17394c 85%,#d4fff4 100%); box-shadow: inset 0 0 18px #e5fffa8a, 0 0 65px #a7ffe22e; opacity: .78; }
.orbit::before, .orbit::after { content:""; position: absolute; inset: 10%; border-radius: 50%; box-shadow: inset 0 0 42px #081d29, 0 0 22px #c6fff395; background: radial-gradient(ellipse at 78% 0%,#45868c,#153b4c 64%); }
.orbit::after { inset: 3%; background: transparent; border: 1px solid #e3fff288; box-shadow: none; }
.hero-orbit { width: clamp(270px,39vw,640px); right: -7%; top: -39%; animation: orbit-in .78s cubic-bezier(.21,.75,.28,1) both; }
@keyframes orbit-in { from { opacity: .25; transform: rotate(-54deg) scale(.9); } to { opacity: .78; transform: rotate(-24deg) scale(1); } }
.button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: #c0d6ee08; color: var(--text); min-height: 38px; border-radius: 11px; padding: 8px 13px; font-size: .84rem; font-weight: 620; text-align: center; transition: background .17s, border-color .17s, transform .17s; }
.button:hover, .icon-button:hover { background: #bfd8ed1c; border-color: #b9d7ed58; }
.button:active, .icon-button:active { transform: scale(.97); }
.button.primary, .button.light { background: #b7f3df; color: #102a27; border-color: #c9f8ec; }
.button.primary:hover, .button.light:hover { background: #d1ffef; }
.button.light { background: #e7f5f4; border-color: #e7f5f4; }
.icon-button { width: 37px; padding: 0; flex: none; }
.profile .icon-button { width: 30px; min-height: 33px; background: transparent; border-color: transparent; }
.danger { color: #ffb7cb; }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin: 15px 0; }
.stat { padding: 16px 15px; border-radius: 17px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 5px; min-width: 0; }
.stat strong { font-size: 2rem; font-weight: 680; letter-spacing: -.06em; grid-row: 1; grid-column: 1; line-height: 1.18; }
.stat > span:last-child { font-size: .8rem; color: var(--muted); }
.stat-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; grid-column: 2; grid-row: 1 / 3; align-self: center; }
.mint { color: #b9f3dc; background: #81f2d21c; }
.blue { color: #a9d8ff; background: #62acfb21; }
.amber { color: #fbd5a0; background: #f9b95c1c; }
.rose { color: #ffb8c9; background: #f5799b20; }
.violet { color: #d4c2ff; background: #ae8eff24; }
.neutral { color: #d1d9e4; background: #ccd6e01a; }
.insights, .detail-grid { display: grid; gap: 15px; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; }
.panel { padding: 20px; min-width: 0; }
.panel > .muted { margin: 12px 0 15px; line-height: 1.55; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.section-head > svg { color: #b2c3d4; }
.section-head p { color: var(--muted); margin-top: 4px; font-size: .83rem; }
.section-label { display: flex; gap: 8px; align-items: center; }
.section-label > svg { color: #afe8db; }
.chart { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: clamp(4px,1vw,18px); margin-top: 20px; }
.bar-slot { text-align: center; display: grid; justify-items: center; gap: 7px; }
.bar-slot small { font-size: .71rem; }
.bar-count { font-size: .77rem; color: #b5c9d9; font-variant-numeric: tabular-nums; }
progress { writing-mode: vertical-lr; direction: rtl; appearance: none; width: min(100%,30px); height: 73px; border-radius: 5px; overflow: hidden; background: #9fc2dc14; color: #73b8c8; border: 0; }
progress::-webkit-progress-bar { background: #9fc2dc14; }
progress::-webkit-progress-value { background: linear-gradient(#a0d2d9,#3a7d91); border-radius: 5px; }
.latest progress::-webkit-progress-value { background: linear-gradient(#b4f7de,#5ca59f); }
progress::-moz-progress-bar { background: #73b8c8; }
.empty { padding: 23px 10px; display: grid; justify-items: center; gap: 8px; text-align: center; }
.empty > span { background: #a1c6ec13; display: grid; place-items: center; border-radius: 13px; color: #b9cedf; width: 44px; height: 44px; }
.empty p { font-size: .85rem; color: var(--muted); max-width: 29rem; line-height: 1.45; }
.list-panel { margin-top: 15px; }
.list-panel .section-head { padding: 0 0 6px; }
.application-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto 70px 24px; gap: 12px; align-items: center; min-height: 59px; padding: 7px 3px; border-top: 1px solid var(--line); }
.application-row:hover { background: #adcee709; }
.company-cell { min-width: 0; display: grid; gap: 3px; }
.company-cell strong,.company-cell small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company-cell strong { font-size: .9rem; }
.company-cell small, .row-date { font-size: .76rem; color: var(--muted); }
.row-date { text-align: right; }
.row-arrow { color: #b5c7d4; text-align: right; }
.company-icon { width: 35px; height: 35px; border-radius: 9px; display: grid; place-items: center; color: #bdeae8; background: #94dedd1d; font-size: .73rem; font-weight: 700; flex: none; }
.tone-1 { color: #d6c2ff; background: #ad93ed25; }.tone-2 { color: #f0caa6; background: #e5b38525; }.tone-3 { color: #b9d8fe; background: #8ab8ec25; }.tone-4 { color: #f8bbd0; background: #eaa9c325; }
.badge { display: inline-flex; width: fit-content; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 9px; font-size: .72rem; font-weight: 650; white-space: nowrap; }
.badge i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.intro { margin: 9px 0 22px; }
.intro h1 { font-size: clamp(2rem,4vw,3.45rem); }
.intro p { color: var(--muted); margin-top: 10px; line-height: 1.55; }
.toolbar { display: flex; gap: 9px; flex-wrap: wrap; }
input, select, textarea { background: #0d1722; color: var(--text); border: 1px solid #a5bed039; border-radius: 9px; padding: 9px 10px; min-width: 0; min-height: 40px; }
textarea { resize: vertical; }
input::placeholder { color: #a3b2c3; }
input[type=checkbox] { width: 17px; height: 17px; min-height: 0; accent-color: #a7eed7; }
input[type=file] { width: 100%; }
.search-box { display: flex; align-items: center; border: 1px solid #a5bed039; border-radius: 9px; padding: 0 10px; gap: 4px; color: var(--muted); background: #0d1722; flex: 1; min-width: 220px; }
.search-box input { border: none; width: 100%; background: transparent; }
.search-box:focus-within { outline: 2px solid var(--mint); outline-offset: 2px; }
.search-box input:focus-visible { outline: none; }
.result-count { font-size: .79rem; color: var(--muted); margin-top: 15px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(225px,30%); gap: 11px; overflow-x: auto; overscroll-behavior-inline: contain; padding: 3px 2px 14px; margin-top: 15px; align-items: start; }
.column { padding: 10px; min-height: 140px; border-radius: 15px; }
.column.hover { border-color: #9cebd2; background: #254c55; }
.column h2 { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 10px; }
.column-empty { font-size: .81rem; margin: 10px; }
.board-card { display: grid; gap: 8px; padding: 11px; border-radius: 12px; background: #101a25; border: 1px solid var(--line); margin-bottom: 8px; cursor: grab; }
.board-card a { display: flex; gap: 7px; align-items: center; overflow-wrap: anywhere; font-size: .85rem; }
.board-card p { font-size: .79rem; color: var(--muted); min-height: 1.2em; line-height: 1.4; overflow-wrap: anywhere; }
.board-card select { font-size: .78rem; min-height: 34px; padding: 6px; width: 100%; }
.back { display: inline-flex; margin-bottom: 12px; padding: 5px 2px; color: #bfece3; font-size: .88rem; }
.detail-head { display: flex; align-items: center; gap: 14px; }
.detail-head > .company-icon { width: 57px; height: 57px; border-radius: 15px; font-size: 1.04rem; }
.detail-head h1 { font-size: clamp(1.7rem,3vw,3rem); overflow-wrap: anywhere; }
.detail-head p { color: var(--muted); margin: 5px 0; overflow-wrap: anywhere; }
.detail-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 5px; }
.metadata { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 15px 0; }
.metadata div { display: grid; gap: 4px; overflow-wrap: anywhere; }
.metadata p { grid-column: 1 / -1; color: var(--muted); white-space: pre-wrap; }
.metadata strong,.metadata a { font-size: .86rem; }
.metadata a { color: var(--mint); }
.entry { padding: 12px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.entry small { display: block; margin-top: 4px; }
.entry p { white-space: pre-wrap; color: #c7d2de; font-size: .86rem; margin: 7px 0; line-height: 1.5; }
.entry-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.entry-actions .button { min-height: 32px; padding: 5px 9px; font-size: .75rem; max-width: 100%; overflow-wrap: anywhere; }
.no-items { font-size: .85rem; }
.agenda-row { display: flex; align-items: center; gap: 10px; min-height: 58px; border-top: 1px solid var(--line); font-size: .8rem; }
.agenda-row div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.agenda-row small { display: block; margin-top: 3px; }
.event-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #9cdbd724; color: #b2e9db; flex: none; }
.late { color: var(--rose); }
.prospect { display: grid; gap: 8px; align-content: start; }
.prospect p { font-size: .88rem; line-height: 1.5; color: #c6d4e1; }
.prospect small { display: flex; gap: 5px; align-items: center; }
form { display: grid; gap: 11px; }
form label { display: grid; gap: 6px; color: #d4e2ed; font-size: .86rem; min-width: 0; }
form .button { justify-self: start; }
form p { line-height: 1.5; }
dialog { width: min(640px,calc(100% - 26px)); max-height: calc(100dvh - 32px); padding: 0; background: #15232f; color: var(--text); border: 1px solid #bdd8e85c; border-radius: 22px; box-shadow: 0 30px 100px #000a; }
dialog[open] { animation: pop .22s ease both; }
dialog::backdrop { background: #020910aa; backdrop-filter: blur(7px); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.editor { padding: 18px 20px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.wide { grid-column: 1 / -1; }
.form-footer { display: flex; gap: 8px; justify-content: flex-end; }
.error { color: #ffb8ca; font-size: .86rem; }
.error:empty { display: none; }
.duplicate, .checkbox { display: flex; flex-direction: row; align-items: center; }
#toast { position: fixed; right: 18px; bottom: 16px; max-width: min(420px,calc(100% - 36px)); border: 1px solid #a5e5d865; color: #e7fff6; background: #16333c; box-shadow: 0 10px 35px #03070da8; padding: 10px 15px; border-radius: 13px; opacity: 0; pointer-events: none; z-index: 4; transition: opacity .2s, transform .2s; transform: translateY(8px); }
#toast.show { opacity: 1; transform: none; }
.login { display: grid; place-items: center; padding: 20px; }
.login-wrap { width: min(100%, 460px); }
.login-wrap > .brand { margin-bottom: 16px; }
.login-card { position: relative; overflow: hidden; padding: clamp(22px,6vw,38px); isolation: isolate; }
.login-card h1 { font-size: clamp(1.8rem,5.5vw,2.75rem); }
.login-card > p { margin: 10px 0 24px; }
.login-card input { width: 100%; }
.login-card form > .button { width: 100%; margin-top: 6px; }
.login-orbit { width: 260px; top: -171px; right: -128px; z-index: -1; opacity: .37; }
@media (max-width: 1080px) {
  .shell { grid-template-columns: 190px minmax(0,1fr); }
  .sidebar { padding-inline: 11px; }
  .page,.top { padding-inline: 24px; }
}
@media (max-width: 810px) {
  .shell { display: block; }
  .sidebar { height: auto; position: static; padding: 12px 16px 0; display: grid; grid-template-columns: 1fr auto; gap: 10px 5px; border: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand { margin: 0; }
  .sidebar nav { grid-row: 2; grid-column: 1/-1; display: flex; overflow-x: auto; padding-bottom: 5px; }
  nav a { min-height: 39px; padding: 7px 8px; gap: 5px; }
  nav a svg { width: 16px; height: 16px; }
  .profile { grid-column: 2; grid-row: 1; margin: 0; border: 0; padding: 0; }
  .profile div { display: none; }
  .top { min-height: 59px; }
  .page { padding-top: 18px; }
}
@media (max-width: 570px) {
  .page,.top { padding-inline: 14px; }
  .top { gap: 5px; }
  #breadcrumb > span { display: none; }
  #breadcrumb strong { font-size: .76rem; }
  #open-search span { display: none; }
  .top-actions { gap: 4px; }
  .top-actions .button { padding-inline: 7px; font-size: .78rem; }
  .hero { min-height: 255px; }
  .hero-orbit { right: -36%; top: -23%; opacity: .35; animation: none; }
  .hero-copy > p:not(.eyebrow) { font-size: .87rem; max-width: 240px; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-block: 10px; }
  .stat { padding: 11px; }
  .insights,.detail-grid { grid-template-columns: 1fr; gap: 10px; }
  .panel { padding: 14px; }
  .application-row { grid-template-columns: auto minmax(0,1fr) auto; gap: 7px; }
  .row-date,.row-arrow { display: none; }
  .company-cell strong { font-size: .81rem; }
  .company-cell small { font-size: .71rem; }
  .badge { font-size: .68rem; }
  .search-box { min-width: 100%; }
  .toolbar > select { flex: 1; }
  .metadata { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-head { flex-wrap: wrap; }
  .detail-head > div:nth-child(2) { flex: 1; }
  .detail-actions { margin-left: 0; width: 100%; }
  .editor { grid-template-columns: 1fr; padding-inline: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* The dashboard focus panel follows the application stage. */
.hero { min-height: 0; padding: 0; background: radial-gradient(ellipse at 87% 40%,#264f53 0%,transparent 55%),linear-gradient(110deg,#15272d,#18333a); }
.hero-orbit { right: -2%; top: -62%; width: clamp(270px,37vw,560px); opacity: .28; animation: none; }
#focus-slides { position: relative; z-index: 1; }
.focus-main { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: end; padding: clamp(23px,4vw,49px); min-height: 247px; animation: focus-in .24s ease-out both; }
@keyframes focus-in { from { opacity: .5; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.focus-copy h1 { font-size: clamp(2.05rem,4.2vw,4rem); max-width: 690px; }
.focus-copy > p:not(.eyebrow) { color: #d3e3e5; font-size: .91rem; line-height: 1.45; }
.focus-copy .button { margin-top: 18px; }
.focus-number { color: #cbf6e7; font-weight: 660; font-size: clamp(4.5rem,12vw,10.5rem); line-height: .77; letter-spacing: -.105em; text-align: right; padding-right: .13em; font-variant-numeric: tabular-nums; opacity: .85; align-self: center; }
.focus-controls { display: flex; justify-content: space-between; align-items: center; gap: 7px; min-height: 60px; padding: 8px clamp(15px,3vw,37px); border-top: 1px solid #c1ede131; background: #10202768; }
.focus-tabs,.focus-arrows { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.focus-tabs button { min-height: 36px; border: 1px solid transparent; padding: 5px 11px; border-radius: 8px; background: transparent; color: #bdced5; font-size: .83rem; }
.focus-tabs button:hover { background: #b9ffdf18; }
.focus-tabs button[aria-pressed=true] { color: #d7fff0; background: #b9ffdf1b; border-color: #b9ffdf36; font-weight: 650; }
.focus-arrows { flex-wrap: nowrap; }
.previous svg { transform: rotate(180deg); }
.integration-grid { margin-bottom: 15px; }
@media (max-width: 570px) {
  .focus-main { min-height: 214px; gap: 3px; padding: 22px 15px; }
  .focus-copy h1 { font-size: clamp(1.8rem,7.8vw,2.45rem); }
  .focus-copy > p:not(.eyebrow) { font-size: .8rem; }
  .focus-number { font-size: clamp(3.1rem,13vw,4.7rem); }
  .focus-controls { padding: 7px 8px; gap: 3px; }
  .focus-tabs,.focus-arrows { gap: 2px; }
  .focus-tabs button { font-size: .7rem; padding-inline: 4px; }
  .focus-arrows .icon-button { width: 31px; min-height: 36px; }
}
