:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: #0d1a2b;
  --panel-soft: #10233a;
  --line: #23374f;
  --text: #f3f7fb;
  --muted: #9eb0c3;
  --blue: #70b8ff;
  --green: #67db9a;
  --amber: #ffd27a;
  --red: #ff8d8d;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% -10%, rgba(79, 143, 255, .17), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px max(16px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(7, 17, 31, .9);
  backdrop-filter: blur(14px);
}
.brand { font-weight: 900; text-decoration: none; letter-spacing: -.03em; }
.topbar nav { display: flex; gap: 14px; overflow-x: auto; }
.topbar nav a { color: var(--muted); text-decoration: none; font-size: .9rem; white-space: nowrap; }
.topbar nav a:hover { color: var(--text); }

.shell { width: min(calc(100% - 28px), var(--max)); margin: 0 auto; }
.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 68px 0 30px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.1; letter-spacing: -.035em; }
h1 { max-width: 820px; margin: 0; font-size: clamp(2.6rem, 7vw, 5.7rem); }
h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2.2rem); }
h3 { margin: 0; font-size: 1.05rem; }
.lede { max-width: 660px; margin: 18px 0 0; color: var(--muted); font-size: 1.1rem; }
.hero-actions, .find-actions, .dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
  color: var(--text);
  text-decoration: none;
  font-weight: 780;
  cursor: pointer;
}
.button:hover { border-color: #41668e; }
.button.primary { background: #1968b5; border-color: #2e82d3; }
.button.compact { min-height: 38px; padding: 7px 12px; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.metrics article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(13, 26, 43, .88);
}
.metrics strong { display: block; font-size: 1.9rem; line-height: 1; }
.metrics span { display: block; margin-top: 7px; color: var(--muted); font-size: .86rem; }

.today-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; }
.panel {
  margin-bottom: 14px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(13,26,43,.96), rgba(9,21,36,.96));
}
.focus-panel { min-height: 320px; }
.find-panel {
  background: linear-gradient(145deg, rgba(21,67,99,.78), rgba(12,31,51,.96));
}
.find-panel > p:not(.eyebrow) { color: var(--muted); }
.find-actions { margin-top: 22px; }
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.status-pill, .chip {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 750;
}
.status-pill.live { border-color: rgba(103,219,154,.4); color: var(--green); }

.stack { display: grid; gap: 10px; }
.action-card, .client-card, .gig-row {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.025);
}
.action-card { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 16px; }
.action-card p, .client-card p, .gig-row p { margin: 5px 0 0; color: var(--muted); font-size: .9rem; }
.action-card .due { color: var(--amber); font-weight: 800; }
.card-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.mini-button {
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-soft);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}
.mini-button.good { border-color: rgba(103,219,154,.35); color: var(--green); }

.search-label input {
  width: min(240px, 42vw);
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #071522;
  color: var(--text);
}
.client-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.client-card { padding: 16px; }
.client-head { display: flex; justify-content: space-between; gap: 8px; }
.client-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.client-next { margin-top: 13px; padding-top: 11px; border-top: 1px solid rgba(255,255,255,.07); }
.client-card .card-actions { margin-top: 13px; }
.chip.hot { color: var(--amber); }
.chip.active { color: var(--green); }

.gig-list { display: grid; gap: 8px; }
.gig-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
}
.gig-date strong { display: block; }
.gig-date span { color: var(--muted); font-size: .8rem; }
.money-panel { border-color: rgba(255,210,122,.25); }

.empty {
  padding: 28px 16px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.dialog {
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100vh - 30px);
  padding: 0;
  border: 1px solid #36516d;
  border-radius: 20px;
  background: #0b1928;
  color: var(--text);
}
.dialog::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); }
.dialog form { padding: 22px; }
.dialog-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 1.45rem;
  cursor: pointer;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-grid label { display: grid; gap: 6px; }
.form-grid label span { color: var(--muted); font-size: .84rem; font-weight: 700; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #06131f;
  color: var(--text);
}
.form-grid textarea { resize: vertical; }
.dialog-actions { justify-content: flex-end; margin-top: 20px; }

.footer { display: flex; justify-content: space-between; gap: 18px; padding: 24px 0 44px; color: var(--muted); font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 860px) {
  .hero { align-items: flex-start; flex-direction: column; padding-top: 46px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .today-grid { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .topbar nav { width: 100%; padding-bottom: 2px; }
  .hero-actions { width: 100%; }
  .hero-actions .button { flex: 1; }
  .client-grid, .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .section-heading { align-items: flex-start; }
  .action-card { grid-template-columns: 1fr; }
  .gig-row { grid-template-columns: 78px minmax(0, 1fr); }
  .gig-row .card-actions { grid-column: 1 / -1; }
  .search-label input { width: 130px; }
}

.opportunity-metrics { margin-top: -4px; }
.opportunity-row .opportunity-requirements {
  color: var(--amber);
  font-size: .82rem;
}
