﻿:root {
  color-scheme: dark;
  --blue: #2B7DB0;
  --navy: #143C53;
  --bg: #091117;
  --panel: #101d27;
  --panel-raised: #142431;
  --line: #253b4a;
  --text: #ffffff;
  --muted: #a6bac8;
  --accent: #78bee8;
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: #365569 #101d27; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: radial-gradient(ellipse at 90% 0%, #143c533b, transparent 40%), var(--bg); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--blue); color: white; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 20; padding: 12px; color: white; background: var(--navy); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.topbar { min-height: 88px; padding: 12px 4%; background: #0b151eeF; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 25px; position: sticky; top: 0; z-index: 5; backdrop-filter: blur(18px); }
.brand { display: flex; gap: 13px; align-items: center; color: white; font-size: 17px; font-weight: 650; text-decoration: none; flex-shrink: 0; }
.brand-logo { width: 56px; height: 56px; object-fit: contain; }
.brand small { display: block; font-size: 8px; letter-spacing: 1.5px; margin-top: 7px; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: 13px; }
.main-nav a:hover, .main-nav a:focus-visible { color: white; background: var(--navy); }
.connection { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #c7dce9; border: 1px solid var(--line); background: #143c5340; padding: 9px 12px; border-radius: 7px; white-space: nowrap; }
.connection-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px #2b7db080; }
.read-only { color: var(--muted); }
main { max-width: 1510px; margin: auto; padding: 38px 4%; }
.heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.eyebrow { font-size: 10px; font-weight: 650; color: var(--muted); letter-spacing: 2px; }
h1 { font-size: clamp(30px, 3vw, 40px); letter-spacing: -1.5px; margin: 11px 0; font-weight: 650; }
.heading-dot { color: var(--blue); }
h2 { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: -.2px; }
p { color: var(--muted); font-size: 13px; margin: 8px 0; line-height: 1.6; }
small { color: var(--muted); font-size: 11px; line-height: 1.6; }
.refresh { display: grid; gap: 10px; text-align: right; }
button { border: 1px solid #355163; border-radius: 7px; padding: 9px 14px; background: #172c3a; color: #e0edf6; font-size: 12px; }
button:hover:not(:disabled) { background: var(--navy); border-color: var(--blue); }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--blue); border-color: #4695c4; color: white; padding: 11px 19px; font-weight: 650; box-shadow: 0 4px 14px #0004; }
.primary:hover:not(:disabled) { background: #246f9d; border-color: var(--accent); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: 0 4px 20px #00000012; }
.filters { margin: 20px 0; }
.filter-heading, .table-heading, .dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.filter-heading h2 { display: flex; align-items: center; gap: 9px; }
.filter-heading .icon { color: var(--accent); }
.text-button { border: 0; background: transparent; color: var(--accent); padding: 6px 9px; }
.filter-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin: 22px 0 16px; }
.search { grid-column: span 2; }
label { display: flex; flex-direction: column; gap: 8px; color: #bccdd9; font-size: 11px; font-weight: 500; }
input, select { width: 100%; min-width: 0; background: #0b1720; border: 1px solid #304959; border-radius: 7px; padding: 10px 12px; color: #edf5fa; font-size: 12px; height: 41px; }
input::placeholder { color: #95a9b8; }
input:hover, select:hover { border-color: #53778e; }
select { cursor: pointer; }
.metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin: 24px 0; }
.metric { display: flex; position: relative; flex-direction: column; gap: 12px; overflow: hidden; }
.metric > span:not(.metric-icon) { font-size: 12px; color: #c2d1dc; padding-right: 34px; }
.metric strong { font-size: 37px; letter-spacing: -1.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.metric-icon { position: absolute; top: 18px; right: 18px; color: var(--accent); padding: 8px; border: 1px solid #2b7db033; border-radius: 9px; background: #143c5370; line-height: 0; }
.metric.featured { background: linear-gradient(125deg, #143C53, #101d27); border-color: #2b7db080; }
.charts { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-bottom: 24px; }
.charts > .panel { min-width: 0; }
.subtitle { font-size: 11px; margin: 8px 0 24px; }
.bars { display: grid; gap: 19px; max-height: 280px; overflow: auto; padding-right: 6px; }
.bar-label { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; margin-bottom: 9px; color: #bdcedb; }
.bar-label strong { color: #e8f3fa; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-label span { overflow-wrap: anywhere; }
.track { height: 6px; background: #1c3241; border-radius: 4px; overflow: hidden; }
.fill { height: 100%; background: linear-gradient(90deg, #205b7f, var(--blue)); border-radius: 4px; }
.timeline { display: flex; align-items: end; gap: 12px; overflow-x: auto; min-height: 230px; padding: 5px 0 10px; background: repeating-linear-gradient(to top, transparent 0, transparent 49px, #a6bac80a 50px, transparent 51px); }
.month-column { min-width: 52px; flex: 1; display: flex; align-items: center; flex-direction: column; gap: 10px; font-size: 10px; color: var(--muted); }
.month-space { height: 155px; display: flex; align-items: end; width: 100%; justify-content: center; }
.month-fill { width: 70%; max-width: 36px; min-height: 2px; background: linear-gradient(to top, #143C53, #2B7DB0); border: 1px solid #2b7db060; border-radius: 4px 4px 0 0; }
.month-column:hover .month-fill { background: var(--blue); }
.month-column b { color: #d6e8f4; font-weight: 500; }
.lead-panel { padding: 0; overflow: hidden; }
.table-heading { padding: 24px; }
.table-heading .subtitle { margin-bottom: 0; }
.table-heading select { width: 85px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; font-size: 12px; }
th { background: #152632; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #b6cad8; font-weight: 550; padding: 14px 20px; }
th button { border: 0; padding: 0; background: none; font-weight: 550; color: inherit; }
th button:hover:not(:disabled) { background: none; color: white; }
td { padding: 17px 20px; border-bottom: 1px solid #223542; max-width: 245px; overflow: hidden; text-overflow: ellipsis; color: #cbdbe6; }
td strong { color: #f0f6fa; font-weight: 550; }
td small { display: block; margin-top: 5px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
tbody tr:hover { background: #152a38; }
.badge { display: inline-block; padding: 5px 9px; border-radius: 5px; background: #20313e; color: #cad9e2; border: 1px solid #3a4e5d; font-size: 10px; }
.badge.closed { background: #143C53; color: #b0e0fc; border-color: #2B7DB0; }
.badge.declined { background: #22262c; color: #c8c9cc; border-color: #454950; }
.badge.followup { background: #1a2c39; color: #b0cbdc; border-color: #3d6077; }
.badge.contract { background: #173b50; color: #93c9eb; border-color: #2e6383; }
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; gap: 15px; font-size: 11px; color: var(--muted); }
.pagination button + button { margin-left: 8px; }
footer { text-align: center; font-size: 11px; color: var(--muted); margin: 30px 0 8px; }
#notice { padding: 12px 16px; background: #143c5355; border: 1px solid #2b7db066; color: #c6e6fa; font-size: 13px; border-radius: 8px; }
#notice:empty { display: none; }
#notice.error { background: #332123; border-color: #764247; color: #ffd0d3; }
.empty { font-size: 13px; color: var(--muted); padding: 25px 20px; }
dialog { border: 1px solid #42657b; border-radius: 14px; padding: 26px; width: min(640px,92vw); max-height: 85vh; overflow: auto; color: var(--text); background: var(--panel); box-shadow: 0 24px 80px #0008; }
dialog::backdrop { background: #000a; backdrop-filter: blur(5px); }
dl { display: grid; grid-template-columns: 145px 1fr; gap: 16px; font-size: 13px; margin: 25px 0 0; }
dt { color: var(--muted); text-transform: capitalize; }
dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.performance-panel { margin-bottom: 24px; }
.performance-panel .table-heading select { width: 170px; }
.performance-note { margin: 0; padding: 0 24px 22px; font-size: 11px; line-height: 1.7; max-width: 900px; }
.performance-panel .track { margin-top: 8px; width: 100px; }
.performance-panel tfoot { font-weight: 600; background: #142632; }
.performance-panel .table-scroll { max-height: 450px; }
.performance-panel thead { position: sticky; top: 0; z-index: 1; }
.performance-panel td:first-child { white-space: normal; overflow-wrap: anywhere; }
#filter-error:not(:empty) { color: #ffbcc3; }
#filter-error:empty { display: none; }
@media (max-width: 1100px) { .read-only { display: none; } .main-nav { gap: 0; } .main-nav a { padding: 10px; } }
@media (max-width: 950px) { .topbar { flex-wrap: wrap; gap: 12px; } .main-nav { order: 3; width: 100%; border-top: 1px solid var(--line); padding-top: 8px; } html { scroll-padding-top: 155px; } .filter-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } .metrics { grid-template-columns: repeat(2,1fr); } .charts { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  main { padding: 26px 16px; } .topbar { padding: 10px 16px; } .connection { font-size: 10px; padding: 7px; } .brand { font-size: 14px; gap: 8px; } .brand-logo { width: 43px; height: 43px; } .brand small { font-size: 6px; letter-spacing: .8px; }
  .heading { align-items: start; flex-direction: column; } .refresh { text-align: left; } .filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; } .panel { padding: 18px; } .lead-panel { padding: 0; } .metrics { gap: 10px; } .metric { padding-top: 55px; } .metric-icon { top: 13px; right: auto; left: 18px; padding: 6px; } .metric > span:not(.metric-icon) { padding-right: 0; } .metric strong { font-size: 32px; }
  .pagination { align-items: start; flex-direction: column; } .table-heading { padding: 18px; } dl { grid-template-columns: 1fr; gap: 6px; } dd { margin-bottom: 12px; } .performance-panel .table-heading { align-items: start; flex-direction: column; } .performance-note { padding: 0 18px 18px; }
}
@media (max-width: 380px) { .connection { border: 0; background: transparent; padding: 0; font-size: 9px; } .brand small { max-width: 125px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } button { transition: none; } }
.account-menu{display:flex;align-items:center;gap:14px}.account-menu>span{font-size:12px;max-width:150px;overflow-wrap:anywhere}.account-menu small{display:block;font-size:10px;text-transform:capitalize}.account-menu form{margin:0}.topbar .connection{display:none}.login-page{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 15%,#143c5380,transparent 60%),#091117}.login-layout{width:100%;max-width:480px;padding:32px 20px}.login-brand{justify-content:center;margin-bottom:30px}.login-card{padding:34px}.login-card h1{font-size:32px;margin-top:16px}.login-form{display:grid;gap:20px;margin-top:28px}.login-form input{height:46px}.login-form .primary{margin-top:4px;min-height:46px}.login-help{font-size:11px;margin:24px 0 0}.login-error{padding:12px 14px;margin-top:20px;border:1px solid #764247;background:#332123;color:#ffd0d3;font-size:12px;line-height:1.6;border-radius:8px}@media(max-width:1100px){.topbar{flex-wrap:wrap}.main-nav{order:3;width:100%}}@media(max-width:600px){.account-menu{gap:8px}.account-menu>span{max-width:85px;font-size:11px}.login-card{padding:26px}.account-menu button{padding:8px}}
