/* GenHQ look for Sales: GenHQ's font, colours, rounded glowing cards and pill buttons, in the Sales app's
   lime-to-green (its GenHQ tile colours). Loaded after styles.css and screen only, so the PDFs Puppeteer
   prints (proposals, board report) keep their own look. */
@media screen {
:root {
  --bg: #16181a; --nav: #1f2224; --surface: #1f2224; --surface-2: #25292b;
  --border: #2f3533; --border-soft: #282d2c;
  --text: #e8eee6; --muted: #a6b3a8; --faint: #75817a;
  --brand: #8fd45a; --brand-dark: #3faa47; --brand-tint: rgba(143, 212, 90, 0.14);
  --danger: #ef6f5e; --sun: #f0b44b;
  --radius: 18px;
  /* The Sales gradient, from GenHQ's Sales tile. */
  --g-from: #b3e577; --g-to: #3faa47; --g-ink: #10230a;
  --g: linear-gradient(135deg, var(--g-from), var(--g-to));
  --card-glow: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--g-to) 9%, transparent), transparent 70%);
  --card-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}
:root[data-theme="day"] {
  --bg: #f6f8f3; --nav: #ffffff; --surface: #ffffff; --surface-2: #f0f4ea;
  --border: #dfe7d4; --border-soft: #e8eee0;
  --text: #0e2410; --muted: #516159; --faint: #82927f;
  --brand: #2a7a38; --brand-dark: #1f5c2a; --brand-tint: rgba(42, 122, 56, 0.1);
  --danger: #cc3b3b; --sun: #b07507;
  --card-shadow: 0 1px 2px rgba(14, 36, 16, 0.08), 0 12px 30px rgba(14, 36, 16, 0.06);
}

body, button, input, select, textarea { font-family: "Poppins", system-ui, -apple-system, sans-serif; }
body { background: var(--bg); }
/* GenHQ's drifting light, in Sales green, behind everything. */
body::before {
  content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 520px at 8% 6%, color-mix(in srgb, var(--g-to) 16%, transparent), transparent 70%),
    radial-gradient(460px 460px at 92% 42%, color-mix(in srgb, var(--g-from) 9%, transparent), transparent 70%),
    radial-gradient(420px 420px at 45% 100%, color-mix(in srgb, #1f9a8a 8%, transparent), transparent 70%);
  animation: genhq-drift 30s ease-in-out infinite alternate;
}
:root[data-theme="day"] body::before { opacity: 0.6; }
@keyframes genhq-drift { to { transform: translate(60px, 40px) scale(1.06); } }
h1 { font-weight: 600; letter-spacing: -0.01em; }
h2, h3 { font-weight: 600; }
.mono, .act-tile .v, .act-target-num b { font-family: "Poppins", system-ui, sans-serif; font-variant-numeric: tabular-nums; }

/* Header: GenHQ's top bar, a Sales badge, and a gradient underline under the open tab. */
.topbar, .tabbar { background: var(--nav); border-color: var(--border); }
.brand-home { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: center; column-gap: 10px; row-gap: 5px; }
.brand-home-link { grid-column: 1 / -1; }
.brand-app-pill { font-size: 11px; font-weight: 600; color: var(--g-ink); background: var(--g); border-radius: 999px; padding: 2px 10px; letter-spacing: 0.02em; align-self: center; }
.tab-btn { font-weight: 500; }
.tab-btn.active { color: var(--text); }
.tab-ink { height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--g-from), var(--g-to)); }
.account-dropdown, .modal-card { border-radius: 20px; }
.account-name { font-weight: 600; }

/* Cards: rounded, a soft green glow at the top, GenHQ's shadow. */
.card, .icard {
  background: var(--card-glow), var(--surface);
  border-color: var(--border); border-radius: 20px; box-shadow: var(--card-shadow);
}
.landing-card, #report-form-card, .act-target { position: relative; overflow: hidden; }
.landing-card::before, #report-form-card::before, .act-target::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--g-from), var(--g-to), var(--g-from)); background-size: 200% 100%;
  animation: genhq-bar 6s linear infinite;
}
@keyframes genhq-bar { to { background-position: -200% 0; } }
.landing-card { padding: 60px 28px 52px; }
.landing-card h2 { font-size: 1.85rem; letter-spacing: -0.02em; }
.landing-logo { filter: drop-shadow(0 0 22px rgba(63, 170, 71, 0.4)); }

/* Buttons: the Sales gradient pill for the main action, quiet pills for the rest. */
.btn-primary, .btn-secondary, .btn-ghost { border-radius: 999px; font-weight: 600; }
.btn-primary { background: var(--g); color: var(--g-ink); border-color: transparent; }
.btn-primary:hover { background: var(--g); color: var(--g-ink); filter: brightness(1.07); }
.btn-primary:disabled { filter: grayscale(0.4) opacity(0.6); }
.btn-secondary:hover { border-color: var(--g-to); color: var(--text); }

/* Fields: rounded, sitting slightly darker than their card. */
.content input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
.content select, .content textarea, .modal-card input, .modal-card textarea, .modal-card select {
  border-radius: 12px; background-color: var(--bg); border-color: var(--border);
}
.content input:focus, .content select:focus, .content textarea:focus, .modal-card input:focus, .modal-card textarea:focus {
  outline: none; border-color: color-mix(in srgb, var(--g-to) 70%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--g-to) 18%, transparent);
}
.sa-search-input, .report-log-search, #crm-search { border-radius: 999px !important; }
.form-section h3, .form-section h3 .fi { color: var(--brand); letter-spacing: 0.08em; }

/* New report wizard: progress in the gradient; the picked choice glows. */
.wizard-progress span { height: 4px; }
.wizard-progress span.done { background: linear-gradient(90deg, var(--g-from), var(--g-to)); }
#wizard-title { font-size: 1.65rem; font-weight: 600; letter-spacing: -0.015em; }
.wizard-choice { background: var(--bg); border-radius: 16px; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.wizard-choice:hover { border-color: color-mix(in srgb, var(--g-to) 60%, var(--border)); transform: translateY(-2px); }
.wizard-choice strong { font-weight: 600; }
.wizard-choice span { color: var(--faint); }
.wizard-choice.selected {
  border: 1.5px solid transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--g) border-box;
  box-shadow: 0 0 34px color-mix(in srgb, var(--g-to) 22%, transparent);
}

/* Quick quote: the price card stays in view while you build the quote. */
.qq-calc-right { position: sticky; top: 16px; align-self: start; }

.qq-lineitems-field-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); }
.qq-add-btn { border-radius: 999px; border-style: dashed; }

/* Reports / quotes: a softer table. */
.report-table th { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.07em; color: var(--faint); border-bottom-color: var(--border); }
.report-table td { border-bottom-color: var(--border-soft); }
.report-table tbody tr { transition: background 0.12s; }
.report-table tbody tr:hover { background: var(--surface-2); }

/* Sales / activity */
.sa-view-switch { background: var(--bg); }
.sa-view-switch button { font-weight: 500; }
.sa-view-switch button.on { background: var(--g); color: var(--g-ink); font-weight: 600; }
#act-when-group button.active { background: var(--g); color: var(--g-ink); border-color: transparent; font-weight: 600; }
.act-week-track i { background: linear-gradient(90deg, var(--g-from), var(--g-to)); }
.act-target { background: var(--card-glow), var(--surface); border-radius: 20px; box-shadow: var(--card-shadow); padding: 18px 20px; }
.act-target-num b { font-weight: 600; }
.act-target-vbar { border-radius: 9px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--border); }
.act-target-vbar i { border-radius: 9px; }
.act-tile { background: var(--surface); border-radius: 14px; }
.act-tile .v { font-weight: 600; }

/* CRM */
.crm-col { border-radius: 18px; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-color: var(--border); }
.crm-card { background: var(--bg); border-radius: 12px; }
.crm-card:hover { border-color: color-mix(in srgb, var(--g-to) 55%, var(--border)); transform: translateY(-1px); }
.crm-card-head b { font-weight: 600; }
.crm-card.slim .crm-card-head b { font-weight: 600; }
.crm-share i { background: linear-gradient(90deg, var(--g-from), var(--g-to)); opacity: 0.75; }
.crm-stat span:first-child { background: var(--g); color: var(--g-ink); }
.crm-view-toggle { background: var(--bg); border-radius: 999px; }
.crm-view-toggle button { border-radius: 999px; font-weight: 500; }
.crm-view-toggle button.on { background: var(--g); color: var(--g-ink); box-shadow: none; font-weight: 600; }
.crm-age.fresh { background: var(--g-to); }
.crm-edit-nav button.on { color: var(--text); background: color-mix(in srgb, var(--g-to) 16%, transparent); }

@media (prefers-reduced-motion: reduce) {
  body::before, .landing-card::before, #report-form-card::before, .act-target::before { animation: none; }
}
}
