:root {
  color-scheme: dark;
  --bg: #070a10;
  --panel: #0d131b;
  --panel-2: #111b26;
  --line: rgba(163, 190, 214, .16);
  --text: #f5f7fa;
  --muted: #99a7b7;
  --blue: #14b8ff;
  --red: #ff3150;
  --green: #4fd49a;
  --gold: #f2bd5b;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 82% 18%, rgba(0, 146, 228, .09), transparent 34%), radial-gradient(ellipse at 67% 72%, rgba(255, 36, 73, .045), transparent 38%), var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 16px 18px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: rgba(7,10,16,.93); }
.brand { display: flex; gap: 11px; align-items: center; min-height: 51px; padding: 2px 5px 22px; border-bottom: 1px solid var(--line); }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; background: linear-gradient(140deg,rgba(20,184,255,.21),rgba(255,49,80,.14)); border: 1px solid rgba(20,184,255,.52); clip-path: polygon(0 0,100% 0,100% 72%,72% 100%,0 100%); color: #fff; font-weight: 1000; font-size: 13px; letter-spacing: -.06em; }
.brand strong { display: block; font-size: 16px; letter-spacing: -.045em; font-weight: 1000; }
.brand strong span { color: var(--blue); }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .17em; }
.side-caption { margin: 26px 8px 10px; color: #718093; font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.category-nav { display: grid; gap: 5px; }
.nav-link { position: relative; display: flex; justify-content: space-between; align-items: center; min-height: 43px; padding: 0 11px; border: 1px solid transparent; color: #aab6c4; font-size: 13px; font-weight: 750; transition: .15s ease; }
.nav-link:hover { border-color: var(--line); color: #fff; background: rgba(255,255,255,.035); }
.nav-link.active { color: #fff; border-color: rgba(20,184,255,.35); background: linear-gradient(100deg,rgba(20,184,255,.12),rgba(255,49,80,.045)); }
.nav-link.active:before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--blue),var(--red)); }
.nav-link b { min-width: 25px; padding: 3px 6px; border: 1px solid var(--line); color: #c2cbd5; font-size: 10px; font-weight: 850; text-align: center; }
.side-foot { margin-top: auto; padding: 14px 9px 4px; border-top: 1px solid var(--line); color: #d3dbe3; font-size: 11px; font-weight: 800; line-height: 1.8; }
.side-foot small { color: var(--muted); font-weight: 500; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 11px rgba(79,212,154,.7); }
.main-area { min-width: 0; }
.topbar { height: 70px; padding: 0 35px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: rgba(7,10,16,.55); }
.crumb { display: flex; gap: 11px; align-items: center; color: #718093; font-size: 12px; }
.crumb i { color: #394654; font-style: normal; }
.crumb b { color: #e7ebef; font-weight: 800; }
.logout-form { margin: 0; }
.logout { min-height: 35px; display: inline-flex; align-items: center; gap: 10px; padding: 0 11px; border: 1px solid var(--line); background: transparent; color: #bbc5d0; font-size: 11px; font-weight: 850; cursor: pointer; }
.logout:hover { color: #fff; border-color: rgba(20,184,255,.55); }
.logout span { color: var(--blue); font-size: 14px; }
.mobile-categories { display: none; }
.main-content { width: min(1440px,100%); margin: 0 auto; padding: 31px 35px 70px; }
.page-heading, .detail-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 25px; }
.eyebrow { display: block; color: var(--blue); font-size: 9px; font-weight: 950; letter-spacing: .2em; }
h1 { margin: 7px 0 8px; font-size: clamp(30px,3vw,43px); line-height: .98; letter-spacing: -.055em; }
.muted { color: var(--muted); }
.page-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.search-form { width: min(315px,100%); height: 42px; display: flex; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.search-form input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 0 13px; background: transparent; color: var(--text); font-size: 12px; }
.search-form input::placeholder { color: #718093; }
.search-form button { width: 43px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--blue); font-size: 24px; cursor: pointer; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; margin: 0 0 23px; }
.metric { position: relative; min-height: 91px; padding: 15px 17px 18px; border: 1px solid var(--line); background: linear-gradient(135deg,rgba(255,255,255,.045),rgba(255,255,255,.015)); overflow: hidden; }
.metric:before { content: ""; position: absolute; inset: 0 auto auto 0; width: 54px; height: 2px; background: linear-gradient(90deg,var(--blue),var(--red)); }
.metric span { color: var(--muted); font-size: 11px; font-weight: 750; }
.metric strong { display: block; margin-top: 10px; font-size: 27px; line-height: 1; letter-spacing: -.04em; }
.metric-line { position: absolute; right: 17px; bottom: 17px; width: 24px; height: 2px; background: var(--blue); }
.metric-line.red { background: var(--red); }.metric-line.green { background: var(--green); }.metric-line.muted { background: #5a6470; }
.category-tabs { display: flex; align-items: center; gap: 5px; overflow: auto; padding-bottom: 14px; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.filter-tab, .status-tab { flex: 0 0 auto; min-height: 34px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid transparent; color: #9eacba; font-size: 11px; font-weight: 850; white-space: nowrap; }
.filter-tab:hover, .status-tab:hover { color: #fff; border-color: var(--line); }
.filter-tab.selected { color: #fff; border-color: rgba(20,184,255,.44); background: rgba(20,184,255,.09); }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 14px 0; }
.status-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.status-tab { min-height: 29px; padding: 0 9px; font-size: 10px; }
.status-tab.selected { color: #fff; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.065); }
.results-count { flex: 0 0 auto; color: #718093; font-size: 10px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); background: rgba(7,10,16,.62); }
table { width: 100%; min-width: 790px; border-collapse: collapse; }
th { padding: 12px 14px; border-bottom: 1px solid var(--line); color: #718093; font-size: 9px; font-weight: 900; letter-spacing: .13em; text-align: left; text-transform: uppercase; }
td { padding: 13px 14px; border-bottom: 1px solid rgba(163,190,214,.1); color: #c6d0db; font-size: 11px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(20,184,255,.035); }
.lead-name { display: block; color: #f5f7fa; font-size: 12px; font-weight: 850; }
.lead-name:hover, .open-link:hover { color: var(--blue); }
.cell-sub { display: block; margin-top: 4px; color: #8593a2; font-size: 10px; }
.format-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid rgba(20,184,255,.27); background: rgba(20,184,255,.07); color: #ccefff; font-size: 9px; font-weight: 900; letter-spacing: .03em; white-space: nowrap; }
.format-tag.duet { border-color: rgba(119,152,255,.32); background: rgba(119,152,255,.08); color: #d6dcff; }
.format-tag.solo { border-color: rgba(255,49,80,.28); background: rgba(255,49,80,.07); color: #ffd0d8; }
.format-tag.welcome { border-color: rgba(242,189,91,.28); background: rgba(242,189,91,.07); color: #ffe2a7; }
.format-tag.special { border-color: rgba(187,126,255,.3); background: rgba(187,126,255,.08); color: #ecd7ff; }
.status-chip { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border: 1px solid var(--line); color: #b7c1cc; font-size: 9px; font-weight: 900; white-space: nowrap; }
.status-chip:before { content: ""; width: 5px; height: 5px; margin-right: 6px; background: currentColor; }
.status-chip.red { color: #ff8496; border-color: rgba(255,49,80,.27); }.status-chip.blue { color: #85d9ff; border-color: rgba(20,184,255,.26); }.status-chip.green { color: #80e6ba; border-color: rgba(79,212,154,.25); }.status-chip.muted { color: #929eaa; }
.date-cell { color: #8492a1; font-size: 10px; white-space: nowrap; }
.open-link { color: #c8d2dc; font-weight: 850; white-space: nowrap; }.open-link b { color: var(--blue); font-size: 14px; }
.mobile-leads { display: none; }
.empty-state { min-height: 255px; display: grid; place-content: center; justify-items: center; padding: 30px; border: 1px dashed rgba(163,190,214,.23); text-align: center; }
.empty-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 13px; border: 1px solid rgba(20,184,255,.45); color: var(--blue); font-size: 26px; }
.empty-state h2 { margin: 0; font-size: 17px; }.empty-state p { max-width: 390px; margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.detail-heading { align-items: start; margin-bottom: 23px; }
.detail-heading h1 { margin-top: 12px; }
.back-link { display: inline-block; margin-bottom: 22px; color: #a9b6c4; font-size: 11px; font-weight: 850; }
.back-link:hover { color: var(--blue); }
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.button { min-height: 42px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 0 15px; border: 1px solid var(--line); background: rgba(255,255,255,.035); color: #f7fafc; font-size: 11px; font-weight: 900; cursor: pointer; }
.button b { color: currentColor; font-size: 15px; }
.button.primary { position: relative; border-color: rgba(20,184,255,.6); background: linear-gradient(100deg,rgba(0,155,225,.2),rgba(255,49,80,.12)); }
.button.primary:before { content: ""; position: absolute; left: 0; top: -1px; width: 30px; height: 2px; background: linear-gradient(90deg,var(--blue),var(--red)); }
.button.primary:hover { background: linear-gradient(100deg,rgba(0,155,225,.34),rgba(255,49,80,.2)); }
.button.ghost:hover { border-color: rgba(20,184,255,.5); }
.detail-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(280px,.75fr); gap: 14px; align-items: start; }
.panel { min-width: 0; border: 1px solid var(--line); background: linear-gradient(145deg,rgba(255,255,255,.04),rgba(255,255,255,.014)); }
.request-panel, .manage-panel { padding: 19px; }
.panel-head { display: flex; justify-content: space-between; align-items: start; gap: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.panel h2 { margin: 7px 0 0; font-size: 17px; letter-spacing: -.025em; }
.received { color: #8593a2; font-size: 10px; text-align: right; }
.data-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.data-item { min-width: 0; padding: 15px 10px 12px 0; border-bottom: 1px solid rgba(163,190,214,.1); }
.data-item:nth-child(2n) { padding-left: 15px; border-left: 1px solid rgba(163,190,214,.1); }
.data-item.full { grid-column: 1/-1; padding-left: 0; border-left: 0; }
.data-item > span { display: block; margin-bottom: 7px; color: #8290a0; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.data-item strong { color: #e8edf2; font-size: 12px; font-weight: 800; overflow-wrap: anywhere; }
.data-item strong a:hover { color: var(--blue); }.data-item strong small { color: var(--muted); font-weight: 600; }
.message-text { margin: 0; color: #c6d0db; font-size: 12px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.manage-panel > .eyebrow { margin-top: 1px; }
.manage-panel h2 { margin: 8px 0 17px; }
.manage-form { display: grid; gap: 13px; }
.manage-form label, .login-form label { display: grid; gap: 7px; color: #a7b3c0; font-size: 10px; font-weight: 850; }
.manage-form select, .manage-form textarea, .login-form input { width: 100%; min-height: 41px; padding: 10px 11px; border: 1px solid var(--line); outline: 0; background: #080d13; color: #f4f7fa; font-size: 12px; }
.manage-form select:focus, .manage-form textarea:focus, .login-form input:focus { border-color: rgba(20,184,255,.65); }
.manage-form textarea { min-height: 94px; resize: vertical; }
.manage-form .button { justify-self: start; }
.notes-head { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.notes-head b { min-width: 24px; padding: 3px 6px; border: 1px solid var(--line); color: #cbd4dd; font-size: 10px; text-align: center; }
.notes-list { display: grid; gap: 10px; max-height: 310px; overflow: auto; margin-top: 12px; }
.note-item { padding: 10px; border-left: 2px solid var(--blue); background: rgba(255,255,255,.025); }
.note-item > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.note-item b { color: #e8edf2; font-size: 10px; }.note-item time { color: #718093; font-size: 9px; }
.note-item p { margin: 7px 0 0; color: #bdc8d2; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.no-notes { margin: 14px 0 0; font-size: 11px; }
.notice { margin-bottom: 14px; padding: 10px 12px; border: 1px solid var(--line); font-size: 11px; }
.notice.success { border-color: rgba(79,212,154,.3); color: #8ce8c0; background: rgba(79,212,154,.06); }
.notice.error { border-color: rgba(255,49,80,.32); color: #ff9cac; background: rgba(255,49,80,.06); }
.login-body { display: grid; place-items: center; padding: 22px; }
.login-wrap { width: min(420px,100%); }
.login-brand { width: max-content; margin: 0 0 24px; padding: 0; border: 0; }
.login-panel { position: relative; padding: 27px; border: 1px solid var(--line); background: linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.018)); box-shadow: 0 22px 65px rgba(0,0,0,.38); }
.login-panel:before { content: ""; position: absolute; top: -1px; left: 0; width: 70px; height: 2px; background: linear-gradient(90deg,var(--blue),var(--red)); }
.login-panel h1 { margin-top: 11px; font-size: 30px; }.login-panel > p { margin: 0 0 21px; font-size: 12px; }
.login-form { display: grid; gap: 14px; }.login-form input { min-height: 46px; font-size: 14px; }
.login-form .button { width: 100%; min-height: 47px; margin-top: 4px; }
.login-note { margin-top: 17px; color: #8b98a6; font-size: 10px; font-weight: 750; }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 205px minmax(0,1fr); }
  .main-content { padding: 27px 23px 55px; }
  .topbar { padding: 0 23px; }
  .detail-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .topbar { height: 58px; padding: 0 15px; }
  .mobile-categories { position: sticky; top: 0; z-index: 10; display: flex; gap: 5px; overflow-x: auto; padding: 9px 12px; border-bottom: 1px solid var(--line); background: rgba(7,10,16,.96); scrollbar-width: none; }
  .mobile-categories::-webkit-scrollbar { display: none; }
  .mobile-categories .nav-link { min-height: 34px; gap: 9px; padding: 0 9px; border: 1px solid var(--line); font-size: 10px; white-space: nowrap; }
  .mobile-categories .nav-link.active { border-color: rgba(20,184,255,.45); }
  .mobile-categories .nav-link b { min-width: 20px; padding: 2px 4px; }
  .main-content { padding: 22px 14px 45px; }
  .page-heading { align-items: stretch; flex-direction: column; gap: 15px; margin-bottom: 18px; }
  .page-heading h1 { font-size: 34px; }
  .search-form { width: 100%; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-bottom: 17px; }
  .metric { min-height: 77px; padding: 12px 12px 15px; }
  .metric strong { margin-top: 7px; font-size: 23px; }
  .metric-line { right: 12px; bottom: 15px; }
  .category-tabs { margin: 0 -14px; padding: 0 14px 10px; }
  .filter-tab { min-height: 31px; padding: 0 10px; font-size: 10px; }
  .list-toolbar { align-items: start; flex-direction: column; gap: 8px; padding: 11px 0; }
  .status-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .status-tab { min-height: 29px; }
  .results-count { align-self: end; }
  .table-wrap { display: none; }
  .mobile-leads { display: grid; gap: 8px; }
  .lead-card { position: relative; display: grid; gap: 9px; padding: 13px; border: 1px solid var(--line); background: linear-gradient(120deg,rgba(255,255,255,.04),rgba(255,255,255,.016)); }
  .lead-card:before { content: ""; position: absolute; top: -1px; left: 0; width: 35px; height: 2px; background: linear-gradient(90deg,var(--blue),var(--red)); }
  .card-top { display: flex; justify-content: space-between; align-items: start; gap: 9px; }
  .card-top strong { font-size: 13px; }.card-phone { color: #c3d0dd; font-size: 12px; font-weight: 800; }
  .card-meta { color: #8896a4; font-size: 10px; line-height: 1.45; }
  .detail-heading { align-items: stretch; flex-direction: column; gap: 14px; }
  .detail-heading > .button { align-self: start; }
  .back-link { margin-bottom: 16px; }
  .request-panel, .manage-panel { padding: 14px; }
  .panel-head { flex-direction: column; }
  .received { text-align: left; }
  .data-grid { grid-template-columns: 1fr; }
  .data-item, .data-item:nth-child(2n), .data-item.full { grid-column: 1; padding: 12px 0; border-left: 0; }
  .data-item:nth-child(2) { border-top: 0; }
}
