:root {
  color-scheme: light;
  --ink: #111827;
  --ink-soft: #334155;
  --muted: #667085;
  --line: #d7dee5;
  --line-strong: #bac6d1;
  --page: #f3f5f6;
  --panel: #ffffff;
  --panel-soft: #f9fafb;
  --sidebar: #0b111e;
  --sidebar-2: #0f1729;
  --accent: #2ec2b3;
  --accent-dark: #1f8f86;
  --accent-soft: #e4f8f6;
  --blue: #269dd9;
  --blue-soft: #e7f5fc;
  --amber: #a86618;
  --amber-soft: #fff3dc;
  --rose: #b42318;
  --rose-soft: #fff0ee;
  --shadow: 0 18px 42px rgba(11, 17, 30, 0.1);
  --shadow-soft: 0 8px 22px rgba(11, 17, 30, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(46, 194, 179, 0.14), transparent 280px),
    linear-gradient(180deg, rgba(38, 157, 217, 0.07), transparent 320px),
    var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  overflow-x: hidden;
}

body.auth-pending,
body.auth-required {
  display: block;
}

body.auth-pending .sidebar,
body.auth-pending main,
body.auth-required .sidebar,
body.auth-required main {
  display: none;
}

body:not(.auth-pending):not(.auth-required) .auth-gate {
  display: none;
}

.auth-gate {
  min-height: 100vh;
  padding: 32px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 8%, rgba(46, 194, 179, 0.2), transparent 220px),
    linear-gradient(135deg, #0b111e, #102033 58%, #f3f5f6 58%);
}

.auth-card {
  width: min(100%, 460px);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.auth-card img {
  width: 170px;
  height: auto;
  margin-bottom: 24px;
}

.auth-card h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.04;
  letter-spacing: 0;
}

.auth-copy {
  margin: 12px 0 22px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.auth-form input {
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 13px;
  color: var(--ink);
  background: #ffffff;
}

.auth-message {
  min-height: 22px;
}

.clerk-sign-in {
  margin-top: 18px;
}

.clerk-user-button {
  min-height: 34px;
  display: flex;
  align-items: center;
}

.auth-error {
  color: var(--rose);
}

button,
input {
  font: inherit;
}

button,
.file-button {
  border: 0;
  border-radius: 8px;
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
  white-space: nowrap;
}

button:hover,
.file-button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: progress;
  opacity: 0.72;
  transform: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
.file-button:focus-within {
  outline: 3px solid rgba(46, 194, 179, 0.32);
  outline-offset: 2px;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(31, 143, 134, 0.24);
}

.primary-button:hover {
  background: linear-gradient(135deg, #52e0d2, #30a69a);
}

.secondary-button,
.file-button {
  border: 1px solid rgba(46, 194, 179, 0.28);
  background: var(--accent-soft);
  color: #0b615d;
}

.file-button input {
  display: none;
}

.sidebar {
  min-width: 0;
  min-height: 100vh;
  padding: 28px 22px;
  background:
    radial-gradient(circle at 18% 8%, rgba(46, 194, 179, 0.22), transparent 190px),
    linear-gradient(180deg, rgba(38, 157, 217, 0.16), transparent 44%),
    var(--sidebar);
  color: #f6fafb;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.brand-block {
  padding: 4px 2px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-logo {
  display: block;
  width: min(180px, 78%);
  height: auto;
  margin-bottom: 18px;
}

.brand-block h1,
main h2 {
  margin: 0;
  letter-spacing: 0;
}

.brand-block h1 {
  max-width: 11ch;
  font-size: 30px;
  line-height: 1.03;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.brand-block p:last-child {
  margin: 14px 0 0;
  max-width: 24ch;
  color: #b6c5cd;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.eyebrow {
  margin: 0 0 8px;
  color: #0b746d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sidebar .eyebrow {
  color: #52e0d2;
}

nav {
  display: grid;
  gap: 7px;
}

nav a {
  color: #dce7ea;
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 8px;
  font-weight: 750;
}

nav a:hover,
nav a:focus {
  background: rgba(82, 224, 210, 0.1);
  color: #ffffff;
  outline: none;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-label {
  color: #9fb1ba;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

main {
  min-width: 0;
  width: min(100%, 1480px);
  padding: 30px;
  display: grid;
  gap: 22px;
  align-content: start;
}

.toolbar {
  padding: 8px 0 0;
}

.toolbar,
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.toolbar h2 {
  font-size: 30px;
  line-height: 1;
}

.refresh-status {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2,
.insights h2 {
  font-size: 24px;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.metric-grid,
.sheet-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sheet-compact {
  padding: 18px;
}

.sheet-compact .section-heading {
  margin-bottom: 10px;
}

.sheet-compact .sheet-summary {
  margin-bottom: 12px;
}

.metric-card,
.sheet-metric-grid article,
.section-shell,
.insights {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.metric-card,
.sheet-metric-grid article {
  min-height: 148px;
  padding: 19px;
  display: grid;
  gap: 10px;
  align-content: space-between;
  position: relative;
  overflow: hidden;
}

.metric-card::before,
.sheet-metric-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: #cbd5df;
}

.metric-card-primary::before,
.sheet-metric-grid article:nth-child(1)::before,
.sheet-metric-grid article:nth-child(3)::before {
  background: linear-gradient(90deg, var(--accent), var(--blue));
}

.metric-card span,
.metric-card small,
.sheet-metric-grid span,
.sheet-metric-grid small,
.helper-text,
.range-label,
.muted {
  color: var(--muted);
}

.metric-card span,
.sheet-metric-grid span {
  font-size: 14px;
  font-weight: 750;
}

.metric-card strong,
.sheet-metric-grid strong {
  color: var(--ink);
  font-size: clamp(34px, 5vw, 48px);
  line-height: 0.95;
  letter-spacing: 0;
}

.sheet-compact .sheet-metric-grid article {
  min-height: 112px;
  padding: 16px;
}

.sheet-compact .sheet-metric-grid strong {
  font-size: clamp(42px, 5vw, 54px);
}

.sheet-compact .spread-card {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(46, 194, 179, 0.12), rgba(38, 157, 217, 0.08)),
    #ffffff;
  border-color: rgba(46, 194, 179, 0.42);
}

.sheet-compact .spread-card strong {
  font-size: clamp(42px, 7vw, 64px);
}

.progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #dfe8ed;
  box-shadow: inset 0 0 0 1px rgba(11, 17, 30, 0.04);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--blue));
}

.metric-card small,
.sheet-metric-grid small {
  font-size: 13px;
  line-height: 1.35;
}

.insights,
.section-shell {
  padding: 22px;
}

.insights {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
  gap: 18px;
}

.insight-list {
  display: grid;
  gap: 10px;
}

.insight {
  border: 1px solid rgba(46, 194, 179, 0.24);
  border-left: 5px solid var(--accent);
  background: var(--accent-soft);
  padding: 13px 14px;
  border-radius: 8px;
  color: var(--ink-soft);
  line-height: 1.35;
}

.insight.warning {
  border-color: rgba(168, 102, 24, 0.24);
  border-left-color: var(--amber);
  background: var(--amber-soft);
}

.insight.danger {
  border-color: rgba(180, 35, 24, 0.22);
  border-left-color: var(--rose);
  background: var(--rose-soft);
}

.section-shell {
  scroll-margin-top: 24px;
}

body.standup-mode .dashboard-section {
  display: none;
}

body.monthly-mode .dashboard-section,
body.monthly-mode .standup-page {
  display: none;
}

.standup-page[hidden],
.monthly-page[hidden] {
  display: none;
}

.standup-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.standup-controls {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.standup-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.standup-controls select {
  min-width: 220px;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 38px 0 12px;
  color: var(--ink);
  background:
    linear-gradient(45deg, transparent 50%, #64748b 50%) right 18px center / 6px 6px no-repeat,
    linear-gradient(135deg, #64748b 50%, transparent 50%) right 12px center / 6px 6px no-repeat,
    #ffffff;
  font: inherit;
  font-weight: 800;
  appearance: none;
}

.standup-summary-grid article {
  border: 1px solid rgba(46, 194, 179, 0.2);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(46, 194, 179, 0.1), rgba(38, 157, 217, 0.06)),
    #ffffff;
}

.standup-summary-grid span,
.standup-job-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.standup-summary-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 38px;
  line-height: 1;
}

.standup-groups {
  display: grid;
  gap: 24px;
}

.standup-group {
  display: grid;
  gap: 10px;
}

.standup-group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.standup-group-heading h3 {
  margin: 0;
  font-size: 18px;
}

.standup-group-heading span {
  color: var(--muted);
  font-weight: 800;
}

.standup-job {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(11, 17, 30, 0.04);
}

.standup-job-header {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.standup-job-main {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) repeat(4, minmax(84px, 0.58fr)) minmax(112px, 0.75fr);
  gap: 12px;
  align-items: stretch;
  padding: 14px;
}

.standup-job-main > span {
  font-weight: 750;
}

.standup-job-info {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: center;
}

.standup-job-topline,
.standup-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.standup-job-info strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
}

.standup-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.standup-meta span + span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  border-radius: 999px;
  background: #bac6d1;
  vertical-align: middle;
}

.standup-status,
.standup-type {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.standup-status {
  color: #0b615d;
  background: var(--accent-soft);
}

.status-open {
  color: #0b615d;
  background: #e4f8f6;
}

.status-recruiting {
  color: #075985;
  background: #e0f2fe;
}

.status-submissions {
  color: #6d4b00;
  background: #fef3c7;
}

.status-ta-screening,
.status-htd-tech-screen {
  color: #5b21b6;
  background: #ede9fe;
}

.status-interviewing {
  color: #166534;
  background: #dcfce7;
}

.status-final-interview {
  color: #075985;
  background: #e0f2fe;
}

.status-pending-offer {
  color: #166534;
  background: #dcfce7;
}

.status-stalling {
  color: var(--rose);
  background: var(--rose-soft);
}

.status-interview-feedback,
.status-final-feedback {
  color: #92400e;
  background: #ffedd5;
}

.standup-type {
  color: #1f5f85;
  background: var(--blue-soft);
}

.standup-metric,
.standup-rates {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 12px;
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 74px;
}

.standup-metric span,
.standup-rates span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.standup-metric strong,
.standup-rates strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.standup-metric-accent {
  border-color: rgba(46, 194, 179, 0.36);
  background: var(--accent-soft);
}

.standup-metric-empty {
  border-color: rgba(180, 35, 24, 0.28);
  background: var(--rose-soft);
}

.standup-metric-empty span,
.standup-metric-empty strong {
  color: var(--rose);
}

.standup-rates {
  grid-template-columns: auto 1fr;
  column-gap: 8px;
}

.standup-rates strong {
  font-size: 15px;
  text-align: right;
}

.standup-detail {
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}

.standup-detail summary {
  cursor: pointer;
  color: #0b746d;
  font-weight: 850;
  padding: 12px 15px;
  background: #ffffff;
}

.standup-submission-table {
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--line);
}

.standup-empty {
  margin: 0;
  padding: 0 15px 14px;
}

.trend {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 8px;
  font-style: normal;
  font-weight: 900;
}

.trend-positive {
  color: #166534;
  background: #dcfce7;
}

.trend-negative {
  color: var(--rose);
  background: var(--rose-soft);
}

.trend-neutral {
  color: #475569;
  background: #eef2f7;
}

.monthly-summary-grid,
.monthly-conversion-grid {
  display: grid;
  gap: 14px;
}

.monthly-summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 20px;
}

.monthly-summary-grid article,
.monthly-conversion-card,
.monthly-panel,
.monthly-trend-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.monthly-summary-grid article {
  min-height: 126px;
  padding: 15px;
  background:
    linear-gradient(135deg, rgba(46, 194, 179, 0.11), rgba(38, 157, 217, 0.06)),
    #ffffff;
}

.monthly-summary-grid span,
.monthly-conversion-card span,
.monthly-trend-label span,
.monthly-bar-line span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.monthly-summary-grid strong {
  display: block;
  margin: 10px 0 5px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 0.95;
}

.monthly-summary-grid small,
.monthly-conversion-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.monthly-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.monthly-panel {
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.monthly-panel-wide {
  grid-column: span 1;
}

.monthly-panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.monthly-panel-heading h3 {
  margin: 0;
  font-size: 20px;
}

.monthly-conversion-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.monthly-conversion-card {
  padding: 15px;
  background: var(--panel-soft);
  display: grid;
  gap: 10px;
}

.monthly-conversion-card > div:first-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
}

.monthly-conversion-card strong {
  color: var(--ink);
  font-size: 32px;
  line-height: 1;
}

.monthly-grid > .monthly-panel:nth-of-type(3),
.monthly-grid > .monthly-panel:nth-of-type(4) {
  grid-column: 1 / -1;
}

.monthly-insights {
  display: grid;
  gap: 10px;
}

.monthly-trend {
  display: grid;
  gap: 10px;
}

.monthly-trend-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  background: var(--panel-soft);
}

.monthly-trend-label {
  display: grid;
  align-content: center;
  gap: 5px;
}

.monthly-trend-label strong {
  font-size: 18px;
}

.monthly-bars {
  display: grid;
  gap: 8px;
}

.monthly-bar-line {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
}

.monthly-bar-line strong {
  text-align: right;
}

.monthly-bar-track {
  height: 12px;
  border-radius: 999px;
  background: #dfe8ed;
  overflow: hidden;
}

.monthly-bar-track i {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
}

.monthly-bar-submissions {
  background: #269dd9;
}

.monthly-bar-client {
  background: #2ec2b3;
}

.monthly-bar-interviews {
  background: #8b5cf6;
}

.monthly-bar-hires {
  background: #22c55e;
}

.monthly-table-wrap table {
  min-width: 1120px;
}

input {
  width: min(100%, 340px);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
}

input:focus {
  border-color: var(--accent);
}

input::placeholder {
  color: #8a96a3;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.compact-table {
  margin-top: 12px;
}

.compact-table table {
  min-width: 520px;
}

.compact-table td {
  font-size: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.jobs-table {
  table-layout: fixed;
  min-width: 920px;
}

.jobs-table th,
.jobs-table td {
  padding-left: 11px;
  padding-right: 11px;
}

.jobs-table th:nth-child(1),
.jobs-table td:nth-child(1) {
  width: 25%;
}

.jobs-table th:nth-child(2),
.jobs-table td:nth-child(2) {
  width: 8%;
}

.jobs-table th:nth-child(3),
.jobs-table td:nth-child(3) {
  width: 12%;
}

.jobs-table th:nth-child(4),
.jobs-table td:nth-child(4) {
  width: 8%;
}

.jobs-table th:nth-child(5),
.jobs-table td:nth-child(5) {
  width: 10%;
}

.jobs-table th:nth-child(6),
.jobs-table td:nth-child(6) {
  width: 14%;
}

.jobs-table th:nth-child(7),
.jobs-table td:nth-child(7) {
  width: 14%;
}

.jobs-table th:nth-child(8),
.jobs-table td:nth-child(8) {
  width: 9%;
}

th,
td {
  padding: 14px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: var(--panel-soft);
}

.contractor-group-row td,
.contractor-group-row:hover td {
  background: #eef8f7;
  color: #0b746d;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

th {
  color: var(--muted);
  background: #f6f8fa;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

td strong {
  color: var(--ink);
}

.appointment-list,
.client-grid {
  display: grid;
  gap: 12px;
}

.appointment {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 190px;
  gap: 16px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.appointment time {
  color: #0b746d;
  font-weight: 900;
}

.interview-details {
  margin-top: 2px;
}

.interview-details summary {
  cursor: pointer;
  color: #0b746d;
  font-weight: 850;
  padding: 8px 0;
}

.appointment-list-expanded {
  margin-top: 8px;
}

.client-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.client-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px;
  background: var(--panel-soft);
}

.client-card strong {
  display: block;
  color: var(--ink);
  font-size: 36px;
  line-height: 1;
  margin: 10px 0 6px;
}

.connect-panel,
.sheet-form {
  display: grid;
  gap: 14px;
}

.connect-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid rgba(46, 194, 179, 0.24);
  border-radius: 8px;
  background: var(--accent-soft);
  padding: 16px;
}

.connect-panel strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.sheet-form {
  grid-template-columns: 2fr 1fr;
  margin: 14px 0;
}

.hidden-config {
  display: none;
}

.sheet-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.sheet-form input {
  width: 100%;
}

.sheet-summary {
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 700;
}

.sheet-metric-grid {
  margin-bottom: 18px;
}

.sheet-details {
  margin-top: 12px;
}

.sheet-details summary {
  cursor: pointer;
  color: #0b746d;
  font-weight: 850;
  padding: 8px 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.helper-text {
  margin: 18px 0 0;
  line-height: 1.5;
}

@media (max-width: 1180px) {
  body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
    position: static;
    gap: 18px;
  }

  .brand-block {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1.2fr) minmax(260px, 2fr);
    gap: 18px;
    align-items: center;
  }

  .brand-logo {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-bottom: 0;
    width: min(150px, 100%);
  }

  .brand-block .eyebrow {
    grid-column: 2;
    align-self: end;
  }

  .brand-block h1 {
    grid-column: 2;
    align-self: start;
    max-width: none;
  }

  .brand-block p:last-child {
    grid-column: 3;
    grid-row: 1 / span 2;
    max-width: 58ch;
    margin: 0;
  }

  nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  nav a {
    text-align: center;
  }

  .sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 960px) {
  main {
    padding: 22px;
  }

  .brand-block {
    grid-template-columns: minmax(140px, 0.6fr) minmax(0, 1fr);
  }

  .brand-block p:last-child {
    grid-column: 1 / -1;
    grid-row: auto;
    margin: 0;
  }

  nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sidebar-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .standup-controls {
    justify-content: flex-start;
  }

  .actions {
    justify-content: flex-start;
  }

  .metric-grid,
  .sheet-metric-grid,
  .insights,
  .sheet-form,
  .client-grid,
  .standup-summary-grid,
  .monthly-summary-grid,
  .monthly-grid,
  .monthly-conversion-grid {
    grid-template-columns: 1fr 1fr;
  }

  .standup-job-main {
    grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(78px, 0.6fr)) minmax(112px, 0.75fr);
    overflow-x: auto;
  }

  .appointment {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .appointment > div:last-child {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  .sidebar,
  main {
    padding: 18px;
  }

  .brand-block,
  nav,
  .metric-grid,
  .sheet-metric-grid,
  .insights,
  .connect-panel,
  .sheet-form,
  .client-grid,
  .standup-summary-grid,
  .monthly-summary-grid,
  .monthly-grid,
  .monthly-conversion-grid,
  .monthly-trend-row,
  .appointment {
    grid-template-columns: 1fr;
  }

  .standup-job-main {
    grid-template-columns: 1fr 1fr;
    overflow-x: visible;
  }

  .standup-controls,
  .standup-controls label,
  .standup-controls select {
    width: 100%;
  }

  .standup-job-info,
  .standup-rates {
    grid-column: 1 / -1;
  }

  .standup-job-header {
    display: none;
  }

  .brand-logo {
    grid-column: auto;
    grid-row: auto;
    width: 146px;
  }

  .brand-block .eyebrow,
  .brand-block h1 {
    grid-column: auto;
  }

  .brand-block p:last-child {
    grid-column: auto;
    grid-row: auto;
  }

  nav a {
    text-align: left;
  }

  .sidebar-footer,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar,
  .section-shell,
  .insights {
    padding: 18px;
  }

  .appointment > div:last-child {
    grid-column: auto;
  }

  input,
  button,
  .file-button {
    width: 100%;
    white-space: normal;
  }

  .sheet-compact .spread-card {
    grid-column: auto;
  }
}

@media print {
  body {
    display: block;
    background: #ffffff;
  }

  .sidebar,
  .actions,
  .sidebar-footer,
  .hidden-config,
  #connect {
    display: none !important;
  }

  main {
    padding: 0;
  }

  .section-shell,
  .metric-card,
  .insights {
    box-shadow: none;
    break-inside: avoid;
  }
}
