/* Base: typography, layout and components. theme-dark.css overrides appearance after this file. */
@font-face {
  font-family: "Onest";
  src: url("assets/fonts/onest-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --brand-black: #0e0e0e;
  --brand-gold: #daa520;
  --brand-gold-dark: #7e5a23;
  --brand-silver-gradient: linear-gradient(180deg, #e9e9e7 0%, #5b5d5c 100%);
  --brand-champagne-gradient: linear-gradient(180deg, #fad68f 0%, #8c6932 100%);
  --brand-gold-gradient: linear-gradient(180deg, #ffb522 0%, #7e5a23 100%);
  --ink: var(--brand-black);
  --graphite: #191919;
  --paper: #fff;
  --canvas: #f3f2ef;
  --line: #dfdcd5;
  --muted: #6b6862;
  --accent: var(--brand-gold);
  --accent-ink: var(--brand-gold-dark);
  --accent-soft: #f8edce;
  --success: #e6f1ea;
  --success-ink: #26704d;
  font-family: "Onest", Arial, sans-serif;
  color: var(--ink);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  font-size: 14px;
  font-weight: 520;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 3px;
}
.app-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  height: 100dvh;
  flex-direction: column;
  padding: 28px 17px 20px;
  overflow: auto;
  background: var(--brand-black);
  color: #fff;
}
.brand {
  display: flex;
  min-height: 31px;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  color: #fff;
  text-decoration: none;
}
.brand-mark {
  display: block;
  width: 56px;
  height: auto;
  flex: 0 0 56px;
}
.brand-name {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}
.workspace,
.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.workspace {
  margin: 42px 8px 12px;
  color: #918d88;
}
.nav {
  display: grid;
  gap: 2px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 10px 12px;
  border-left: 3px solid transparent;
  border-radius: 7px;
  color: #bdb9b3;
  font-weight: 700;
  text-decoration: none;
}
.nav-link span {
  width: 16px;
  color: #8b8781;
  text-align: center;
}
.nav-link:hover,
.nav-link:focus-visible {
  background: #2c2c2c;
  color: #fff;
  outline: 0;
}
.nav-link.active {
  border-left-color: var(--accent);
  background: #292929;
  color: #fff;
}
.nav-link.active span {
  color: var(--accent);
}
.sidebar-bottom {
  margin-top: auto;
  padding: 18px 8px 0;
  border-top: 1px solid #464646;
  color: #c4c0ba;
  font-size: 12px;
  line-height: 1.6;
}
.sidebar-bottom small {
  color: #918d88;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.main-content {
  min-width: 0;
  overflow-x: hidden;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 94px;
  padding: 20px 46px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.topbar h1 {
  margin: 5px 0 0;
  font-size: 25px;
  letter-spacing: -0.7px;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 17px;
}
.date-label {
  color: #625e58;
  font-size: 12px;
  font-weight: 700;
}
.avatar {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.menu-button {
  display: none;
  border: 0;
  background: transparent;
  font-size: 23px;
}
.page {
  display: none;
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: 38px 46px 60px;
}
.page.active {
  display: block;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.metric,
.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(14, 14, 14, 0.05);
}
.metric {
  min-height: 124px;
  padding: 20px;
}
.metric:first-child {
  background: var(--graphite);
  color: #fff;
}
.metric:nth-child(4) {
  background: var(--accent-soft);
}
.metric-label {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.metric:first-child .metric-label,
.metric:first-child .metric-foot {
  color: #cbc7c1;
}
.metric-value {
  margin: 18px 0 5px;
  font-size: 29px;
  font-weight: 750;
  letter-spacing: -1px;
}
.metric-foot {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.95fr);
  gap: 20px;
}
.card:not(.table-card) {
  padding: 23px;
}
.card h2 {
  margin: 6px 0 0;
  font-size: 17px;
}
.card-header,
.section-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.table-card .card-header {
  padding: 22px 23px 0;
}
.activity-card {
  margin-top: 20px;
}
.helper-text {
  margin: 0;
  color: #67625c;
  font-size: 12px;
  line-height: 1.55;
}
.primary-button,
.secondary-button {
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 9px;
  font-weight: 700;
}
.primary-button {
  border: 0;
  background: var(--graphite);
  color: #fff;
}
.primary-button:hover {
  background: #333;
}
.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.secondary-button:hover {
  background: #f6f4f1;
}
.text-button,
.row-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7d3cc;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.text-button {
  min-height: 32px;
  padding: 6px 10px;
}
.row-button {
  min-height: 30px;
  padding: 5px 9px;
  border-color: #e3e0da;
  background: #f8f7f4;
  text-align: left;
  white-space: normal;
}
.text-button:hover,
.row-button:hover {
  border-color: #bfa04a;
  background: #fcf8eb;
  color: var(--ink);
}
.text-button:active,
.row-button:active,
.primary-button:active,
.secondary-button:active {
  transform: translateY(1px);
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
}
table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  padding: 16px 12px 14px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
td {
  padding: 15px 12px;
  border-top: 1px solid #eeeae5;
  vertical-align: middle;
}
th:first-child,
td:first-child {
  padding-left: 23px;
}
th:last-child,
td:last-child {
  padding-right: 23px;
}
tbody tr:hover {
  background: #faf8f5;
}
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eeeeeb;
  color: #4b4a47;
  font-size: 10px;
  font-weight: 750;
}
.badge.new {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.badge.work {
  background: #edf1f4;
  color: #4b6172;
}
.badge.offer {
  background: #eee9f3;
  color: #685180;
}
.badge.won,
.badge.done {
  background: var(--success);
  color: var(--success-ink);
}
.task-list {
  display: grid;
  gap: 0;
  margin: 17px 0;
}
.task-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.task-item:first-child {
  border-top: 0;
}
.task-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.task-item strong,
.task-item span {
  display: block;
}
.task-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.pipeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 270px;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x proximity;
}
.pipeline-column {
  position: relative;
  min-height: 430px;
  padding: 18px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ebe8e3;
  scroll-snap-align: start;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}
.pipeline-column::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  border-radius: 14px 14px 0 0;
  background: var(--stage-color);
  content: "";
}
.pipeline-column.drop-target {
  border-color: var(--stage-color);
  background: var(--accent-soft);
}
.pipeline-title {
  display: flex;
  min-height: 36px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 12px;
  color: #5f5a53;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-transform: uppercase;
}
.pipeline-count {
  display: grid;
  min-width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  font-size: 10px;
}
.deal-tile {
  display: grid;
  gap: 12px;
  width: 100%;
  margin-bottom: 10px;
  padding: 15px;
  border: 1px solid #e2ded7;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 3px 9px rgba(14, 14, 14, 0.04);
  text-align: left;
}
.deal-tile:hover {
  border-color: #c9b26e;
}
.deal-tile.dragging {
  opacity: 0.45;
}
.deal-tile strong {
  font-size: 14px;
}
.deal-tile span {
  color: var(--muted);
  font-size: 12px;
}
.deal-tile footer {
  display: flex;
  justify-content: space-between;
  color: #504c47;
  font-size: 12px;
  font-weight: 700;
}
.deal-tile .checklist-summary {
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 750;
}
.settings-card {
  max-width: 700px;
}
.settings-card ul {
  display: grid;
  gap: 11px;
  padding-left: 19px;
  line-height: 1.45;
}
.settings-card .helper-text {
  margin: 24px 0;
}
dialog {
  width: min(650px, calc(100% - 32px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 20px 70px #0008;
}
dialog::backdrop {
  background: #000a;
}
.deal-modal {
  width: min(760px, calc(100% - 32px));
}
.modal form,
.modal > div {
  padding: 24px;
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.modal h2 {
  margin: 6px 0 0;
  font-size: 22px;
  letter-spacing: -0.5px;
}
.modal h3 {
  margin: 5px 0 0;
  font-size: 16px;
}
.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f1eeea;
  color: var(--ink);
  font-size: 22px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-grid label,
.modal > form > label {
  display: grid;
  gap: 6px;
  color: #3e3a35;
  font-size: 12px;
  font-weight: 700;
}
.full-width {
  grid-column: 1 / -1;
}
input,
select,
textarea {
  width: 100%;
  min-height: 41px;
  padding: 9px 10px;
  border: 1px solid #bdb7b0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.45;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 3px solid var(--accent-soft);
  outline-offset: 0;
}
.form-error {
  min-height: 18px;
  margin: 16px 0 0;
  color: #a13d35;
  font-size: 12px;
  font-weight: 700;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.deal-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf9f7;
}
.deal-card span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.deal-card strong {
  display: block;
  margin-top: 5px;
  font-size: 14px;
}
.deal-checklist-section {
  margin: 0 0 18px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.checklist-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.checklist-header > strong {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 11px;
}
.deal-checklist-section > .helper-text {
  margin: 8px 0 13px;
}
.deal-checklist {
  display: grid;
  gap: 8px;
  max-height: 290px;
  overflow: auto;
}
.checklist-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid #ece7e1;
  border-radius: 9px;
  background: #faf9f7;
  color: #3e3a35;
  font-size: 12px;
  line-height: 1.4;
}
.checklist-item input {
  width: 17px;
  min-height: 17px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}
.checklist-kind {
  padding: 3px 6px;
  border-radius: 999px;
  background: #eeeae5;
  color: #655f58;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}
.checklist-kind.required {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.checklist-empty {
  margin: 0;
  padding: 12px;
  border-radius: 9px;
  background: #faf9f7;
  color: var(--muted);
  font-size: 12px;
}
.status-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #7d312c;
  color: #fff;
  box-shadow: 0 12px 35px #0004;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}
@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    width: 250px;
    transform: translateX(-100%);
    transition: transform 0.18s ease;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 12px 0 35px #0005;
  }
  .menu-button {
    display: block;
  }
  .topbar {
    padding: 17px 22px;
  }
  .page {
    padding: 26px 22px 44px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .topbar h1 {
    font-size: 21px;
  }
  .date-label {
    display: none;
  }
  .page {
    padding: 20px 15px 36px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .metric {
    min-height: 105px;
    padding: 15px;
  }
  .metric-value {
    margin-top: 14px;
    font-size: 24px;
  }
  .section-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .section-toolbar .primary-button {
    width: 100%;
  }
  .pipeline {
    grid-auto-columns: 260px;
  }
  .form-grid,
  .deal-card {
    grid-template-columns: 1fr;
  }
  .modal-actions {
    flex-wrap: wrap;
  }
  .modal-actions button {
    flex: 1;
  }
  .checklist-item {
    grid-template-columns: 20px minmax(0, 1fr);
  }
  .checklist-kind {
    grid-column: 2;
    justify-self: start;
  }
  .status-toast {
    right: 15px;
    bottom: 15px;
    left: 15px;
  }
  .card:not(.table-card) {
    padding: 18px;
  }
}

.nav-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  filter: invert(74%) sepia(3%) saturate(292%) hue-rotate(354deg)
    brightness(99%) contrast(87%);
}
.nav-link:hover .nav-icon,
.nav-link:focus-visible .nav-icon {
  filter: invert(100%);
}
.nav-link.active .nav-icon {
  filter: invert(68%) sepia(91%) saturate(519%) hue-rotate(4deg) brightness(91%)
    contrast(93%);
}
.menu-button img {
  display: block;
  width: 23px;
  height: 23px;
}
.avatar {
  cursor: pointer;
}
.avatar:hover {
  background: #333;
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.mobile-bottom-nav {
  display: none;
}

.profile-overlay {
  position: fixed;
  z-index: 50;
  inset: 0;
  background: rgba(20, 18, 16, 0.48);
}
.profile-panel {
  position: fixed;
  z-index: 51;
  top: 0;
  right: 0;
  display: flex;
  width: min(400px, 100%);
  height: 100dvh;
  flex-direction: column;
  padding: 28px;
  border-left: 1px solid var(--line);
  background: var(--paper);
  box-shadow: -18px 0 50px rgba(34, 29, 24, 0.14);
}
.profile-overlay[hidden],
.profile-panel[hidden] {
  display: none;
}
.profile-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.profile-panel-header h2 {
  margin: 5px 0 0;
  font-size: 26px;
  letter-spacing: -0.7px;
}
.profile-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 0;
}
.profile-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 17px;
  font-weight: 750;
}
.profile-identity strong,
.profile-role {
  display: block;
}
.profile-identity strong {
  font-size: 18px;
}
.profile-role {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.profile-details {
  margin: 0;
  border-top: 1px solid var(--line);
}
.profile-details div {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.profile-details dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.profile-details dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}
.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.profile-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.profile-security-note {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid #ead9a9;
  border-radius: 11px;
  background: #fcf8eb;
}
.profile-security-note strong {
  font-size: 12px;
}
.profile-security-note p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.profile-panel-footer {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
}
.profile-logout {
  width: 100%;
}
.profile-logout:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
.profile-panel-footer small {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}
body.profile-open {
  overflow: hidden;
}
.auth-screen {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--canvas);
}
.auth-screen[hidden] {
  display: none;
}
.auth-card {
  width: min(420px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 20px 60px rgba(14, 14, 14, 0.12);
}
.auth-logo {
  display: block;
  width: 92px;
  margin: 0 0 25px;
}
.auth-card h1 {
  margin: 8px 0 8px;
  font-size: 30px;
  letter-spacing: -0.8px;
}
.auth-card form {
  display: grid;
  gap: 15px;
  margin-top: 25px;
}
.auth-card #credentials-step,
.auth-card .totp-step {
  display: grid;
  gap: 15px;
}
.auth-card #credentials-step[hidden],
.auth-card .totp-step[hidden],
.auth-card .totp-enrollment[hidden] {
  display: none;
}
.auth-card label {
  display: grid;
  gap: 7px;
  color: #3e3a35;
  font-size: 12px;
  font-weight: 700;
}
.auth-card .primary-button {
  width: 100%;
}
.totp-enrollment {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--canvas);
}
.totp-enrollment img {
  width: 180px;
  height: 180px;
  background: #fff;
}
.totp-enrollment label {
  width: 100%;
}
.totp-enrollment input {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
}
.totp-step > .secondary-button {
  justify-self: start;
}
.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.status-dot.connected {
  background: #36a269;
  box-shadow: 0 0 0 3px rgba(54, 162, 105, 0.18);
}

@media (max-width: 760px) {
  .menu-button {
    display: none;
  }
  .page {
    padding-bottom: 112px;
  }
  .mobile-bottom-nav {
    position: fixed;
    z-index: 45;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    min-height: 76px;
    padding: 7px 8px;
    border: 1px solid rgba(39, 36, 32, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 36px rgba(25, 22, 18, 0.18);
    backdrop-filter: blur(18px);
  }
  .mobile-nav-link {
    display: grid;
    min-width: 0;
    min-height: 60px;
    place-items: center;
    align-content: center;
    gap: 3px;
    padding: 3px 1px;
    border-radius: 17px;
    color: #696660;
    font-size: 10px;
    font-weight: 740;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
  }
  .mobile-nav-icon {
    display: grid;
    width: 42px;
    height: 31px;
    place-items: center;
    border-radius: 16px;
  }
  .mobile-nav-icon img {
    width: 21px;
    height: 21px;
    opacity: 0.72;
  }
  .mobile-nav-link.active {
    color: var(--accent-ink);
  }
  .mobile-nav-link.active .mobile-nav-icon {
    background: var(--accent-soft);
  }
  .mobile-nav-link.active .mobile-nav-icon img {
    opacity: 1;
    filter: invert(68%) sepia(91%) saturate(519%) hue-rotate(4deg)
      brightness(91%) contrast(93%);
  }
  .profile-panel {
    width: 100%;
    padding: max(22px, env(safe-area-inset-top))
      max(20px, env(safe-area-inset-right))
      max(22px, env(safe-area-inset-bottom))
      max(20px, env(safe-area-inset-left));
    border-left: 0;
  }
}

.section-toolbar h2 {
  margin: 5px 0 6px;
  font-size: 23px;
  letter-spacing: -0.55px;
}
.section-toolbar .eyebrow {
  margin-top: 2px;
}
.report-grid,
.import-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}
.report-card,
.import-step {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 195px;
}
.report-card strong {
  display: block;
  margin-top: 9px;
  font-size: 40px;
  letter-spacing: -1.5px;
}
.report-card span {
  color: var(--muted);
  font-size: 12px;
}
.report-card .text-button {
  justify-self: start;
  margin-top: auto;
}
.report-note {
  margin-top: 20px;
}
.report-note h3 {
  max-width: 620px;
  margin: 8px 0;
  font-size: 18px;
  line-height: 1.35;
}
.import-step {
  position: relative;
}
.step-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 800;
}
.import-step h3 {
  margin: 3px 0 0;
  font-size: 16px;
}
.import-step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.import-step .badge {
  justify-self: start;
  margin-top: auto;
}
.import-preflight-card {
  margin-bottom: 20px;
}
.preflight-form {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.preflight-form label {
  display: grid;
  gap: 6px;
  color: #3e3a35;
  font-size: 12px;
  font-weight: 700;
}
.preflight-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.preflight-actions .helper-text {
  max-width: 640px;
}
.mobile-sections {
  margin-top: 20px;
}
.section-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.section-link-grid .text-button {
  text-align: center;
}
.empty-cell {
  display: grid;
  gap: 4px;
  padding: 8px 0;
  color: var(--muted);
}
.empty-cell strong {
  color: var(--ink);
  font-size: 13px;
}
.empty-cell span {
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 760px) {
  .report-grid,
  .import-grid,
  .preflight-form {
    grid-template-columns: 1fr;
  }
  .report-card,
  .import-step {
    min-height: 0;
  }
  .preflight-actions {
    grid-column: auto;
    align-items: stretch;
    flex-direction: column;
  }
  .preflight-actions .primary-button {
    width: 100%;
  }
  .section-toolbar h2 {
    font-size: 21px;
  }
}
@media (max-width: 560px) {
  .section-toolbar .secondary-button {
    width: 100%;
  }
}
/* Keep the expanded questionnaire in the dialog's single scroll surface. */
#deal-checklist {
  max-height: none;
  overflow: visible;
  gap: 10px;
  --checklist-row-height: 88px;
}
#deal-checklist .checklist-item,
#deal-checklist .candidate-section {
  margin: 0;
  border-radius: 12px;
  border: 1px solid #ffffff14;
  background: #191816;
}
#deal-checklist .checklist-item,
#deal-checklist .candidate-section > summary {
  min-height: var(--checklist-row-height);
  padding: 16px;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
#deal-checklist .candidate-section > summary {
  min-height: calc(var(--checklist-row-height) - 2px);
  grid-template-columns: 22px minmax(0, 1fr) 18px;
}
#deal-checklist .candidate-section > summary strong {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
#deal-checklist .checklist-item > input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  justify-self: center;
}
#deal-checklist .checklist-item > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
#deal-checklist .checklist-kind {
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
}
#deal-checklist .candidate-section > summary > span:first-child {
  text-align: center;
  color: #d4ad54;
}
#deal-checklist .checklist-item:focus-within {
  border-color: #d4ad5488;
}
#deal-checklist .checklist-item:has(input:checked) {
  background: #d4ad5408;
  border-color: #d4ad5433;
}
@media (max-width: 560px) {
  #deal-checklist {
    --checklist-row-height: 132px;
  }
  #deal-checklist .checklist-item {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 8px 12px;
    align-content: center;
  }
  #deal-checklist .checklist-kind {
    grid-column: 2;
    justify-self: start;
  }
  #deal-checklist .checklist-item > input {
    align-self: start;
    margin-top: 1px;
  }
}
#deal-form {
  padding: 0;
}
.candidate-section {
  min-width: 0;
  margin-bottom: 12px;
  border: 1px solid #6b604847;
  border-radius: 12px;
  background: #191816;
  color: #e7e2d9;
}
.candidate-section summary {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}
.candidate-section summary::-webkit-details-marker {
  display: none;
}
.candidate-section summary:focus-visible {
  outline: 2px solid #d4ad54;
  outline-offset: 3px;
  border-radius: 10px;
}
.candidate-section summary strong {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
}
.candidate-section summary small {
  display: block;
  margin-top: 4px;
  color: #c6aa6d;
  font-size: 11px;
  line-height: 1.4;
}
.candidate-chevron {
  font-size: 20px;
  text-align: center;
}
.candidate-section[open] .candidate-chevron {
  transform: rotate(180deg);
}
.candidate-section[open] summary {
  border-bottom: 1px solid #6b604847;
}
.modal #candidate-form {
  padding: 18px 16px;
}
#candidate-form > .helper-text {
  margin-bottom: 18px;
}
#candidate-form textarea {
  min-height: 88px;
}
#candidate-form .form-grid {
  gap: 12px;
  align-items: start;
}
#candidate-form .form-grid label {
  min-width: 0;
  padding: 14px;
  gap: 10px;
  border: 1px solid #ffffff12;
  border-radius: 12px;
  background: #ffffff04;
  line-height: 1.45;
}
#candidate-form .form-grid label:focus-within {
  border-color: #c6aa6d88;
  background: #c6aa6d08;
}
#candidate-status:not(:empty) {
  padding: 14px;
  margin-top: 18px;
  border: 1px solid #c6aa6d33;
  border-radius: 12px;
  background: #c6aa6d08;
}
#candidate-status > strong {
  display: block;
  color: #e1d4b8;
  font-size: 12px;
}
.candidate-missing {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.candidate-missing > span {
  padding: 5px 9px;
  border: 1px solid #c6aa6d26;
  border-radius: 7px;
  background: #c6aa6d0a;
  color: #cfc6b5;
  font-size: 11px;
}
#candidate-fields > label[hidden] {
  display: none;
}
#candidate-fields .candidate-required {
  font-size: 10px;
  color: #c6aa6d;
}
#candidate-fields .candidate-field-error {
  font-size: 12px;
  color: #ffb0a9;
  line-height: 1.4;
}
#candidate-fields small[hidden] {
  display: none;
}
#candidate-form .form-grid label.candidate-invalid {
  border-color: #e6756d;
  background: #8f302b18;
  scroll-margin-block: 24px;
}
#candidate-form [aria-invalid="true"] {
  border-color: #e6756d;
}
.welcome-content {
  padding: 16px;
}
label:has(> .city-suggestions) {
  position: relative;
}
.city-suggestions {
  position: absolute;
  z-index: 5;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid #d4ad5440;
  border-radius: 10px;
  background: #24221d;
  box-shadow: 0 12px 30px #0005;
  color: #c9c2b4;
  font-size: 12px;
  line-height: 1.5;
}
.city-suggestions[hidden] {
  display: none;
}
.city-applications {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  min-width: 180px;
}
.city-applications .secondary-button {
  padding: 8px 10px;
  font-size: 12px;
  text-align: left;
  white-space: normal;
}
.city-suggestions button {
  padding: 10px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #eee8dc;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.city-suggestions button:hover,
.city-suggestions button:focus-visible {
  background: #d4ad541c;
  outline: 1px solid #d4ad5460;
}
#status-toast {
  position: fixed;
  inset: 24px auto auto 50%;
  translate: -50% 0;
  pointer-events: none;
  margin: 0;
  width: min(400px, calc(100vw - 32px));
  max-width: none;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 32px;
  gap: 14px;
  align-items: center;
  padding: 20px;
  overflow: hidden;
  border: 1px solid #d5bd7d45;
  border-radius: 18px;
  background: linear-gradient(125deg, #39352bef, #1c1c1af5);
  color: #f8f5ed;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 18px 60px #0006,
    inset 0 1px 0 #fff1;
  font-family: inherit;
}
#status-toast[hidden],
#status-toast:not(:popover-open) {
  display: none;
}
#status-toast:popover-open {
  animation: notice-enter 0.24s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
#status-toast .notice-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: #a7d7b416;
  color: #acd8b7;
  border: 1px solid #a7d7b42b;
}
#status-toast svg {
  width: 24px;
  height: 24px;
}
#status-toast strong {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.15px;
  font-weight: 700;
}
#status-toast p {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 450;
  color: #c5c1b8;
  overflow-wrap: anywhere;
}
#status-toast .notice-close {
  pointer-events: auto;
  align-self: start;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #aaa79f;
  font-size: 23px;
  cursor: pointer;
}
#status-toast .notice-close:hover {
  background: #ffffff0e;
  color: #fff;
}
#status-toast .notice-close:focus-visible {
  outline: 2px solid #d5bd7d;
  outline-offset: 2px;
}
#status-toast[data-type="error"] {
  border-color: #d38b7655;
}
#status-toast[data-type="error"] .notice-icon {
  color: #efad98;
  background: #d38b7616;
  border-color: #d38b7633;
}
#status-toast .notice-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #a18a54, #e7cf91);
  transform-origin: left;
}
#status-toast[data-type="success"] .notice-progress {
  animation: notice-progress 5s linear forwards;
}
#status-toast[data-type="error"] .notice-progress {
  display: none;
}
#status-toast:hover .notice-progress,
#status-toast:focus-within .notice-progress {
  animation-play-state: paused;
}
@keyframes notice-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes notice-progress {
  to {
    transform: scaleX(0);
  }
}
@media (max-width: 560px) {
  #status-toast {
    inset: max(80px, env(safe-area-inset-top)) 16px auto 16px;
    translate: none;
    width: auto;
    padding: 16px;
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #status-toast:popover-open,
  #status-toast .notice-progress {
    animation: none;
  }
}
.welcome-content label {
  min-width: 0;
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
.welcome-content .welcome-check {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}
.welcome-check input {
  width: 18px;
  height: 18px;
  flex: none;
}
.welcome-content textarea {
  min-height: 340px;
  line-height: 1.65;
  resize: vertical;
}
.welcome-content [hidden] {
  display: none !important;
}
#welcome-preview {
  padding: 20px;
  border: 1px solid #6b604847;
  border-radius: 12px;
  background: #ffffff06;
}
#welcome-preview-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.75;
  font-size: 14px;
  margin-top: 20px;
}
#welcome-preview-subject,
#welcome-preview-to {
  overflow-wrap: anywhere;
}
.welcome-warning,
#welcome-state {
  font-size: 12px;
  line-height: 1.6;
  color: #d1ba89;
}
.welcome-warning {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #6b604847;
  border-radius: 10px;
}
#welcome-confirm {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #c6aa6d88;
  border-radius: 10px;
}
#candidate-form .modal-actions {
  margin-top: 12px;
}
@media (max-width: 560px) {
  #deal-dialog > .deal-dialog-body {
    padding: 16px;
  }
  #deal-dialog .deal-checklist-section {
    padding: 12px;
  }
  .candidate-section summary {
    padding: 12px;
    gap: 8px;
  }
  .modal #candidate-form {
    padding: 16px 12px;
  }
}
.city-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
}
.city-switcher button {
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  padding: 10px 16px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition:
    background-color 150ms,
    color 150ms;
}
.city-switcher button[aria-pressed="true"] {
  background: #d6ad52;
  color: #211c12;
}
.city-switcher button:hover:not([aria-pressed="true"]) {
  background: rgba(255, 255, 255, 0.08);
}
.city-switcher button:focus-visible {
  outline: 2px solid #d6ad52;
  outline-offset: 3px;
}
.city-switcher span {
  display: inline-block;
  min-width: 2ch;
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
}
.city-note {
  display: block;
  margin-top: 6px;
  max-width: 28ch;
  color: var(--muted, #aaa);
}
.city-other {
  margin-top: 20px;
  padding: 18px;
}
.city-other summary {
  cursor: pointer;
  min-height: 44px;
  align-content: center;
}
@media (max-width: 600px) {
  .city-switcher {
    width: 100%;
  }
  .city-switcher button {
    flex: 1;
    padding: 10px 8px;
    font-size: 13px;
  }
}
.city-choice-message {
  margin: 6px 8px;
  font-size: 12px;
  color: var(--muted, #aaa);
}
.welcome-attachments {
  margin: 24px 0;
  min-width: 0;
}
.company-lookup {
  display: grid;
  gap: 14px;
  margin: 14px 0 24px;
  padding: 20px;
  border: 1px solid #ffffff1c;
  border-radius: 16px;
  background: #ffffff07;
}
.company-lookup .helper-text { margin: 6px 0 0; }
.company-lookup-form { display: grid; gap: 8px; }
.company-lookup-form > div { display: flex; gap: 10px; }
.company-lookup-form input { flex: 1; min-width: 0; }
#welcome-company-state { margin: 0; color: var(--muted, #aaa); }
#welcome-company-state:empty, #welcome-company-results:empty { display: none; }
#welcome-company-results { display: grid; gap: 10px; }
.company-lookup-result {
  padding: 16px;
  border: 1px solid #d4ad5447;
  border-radius: 12px;
  background: #d4ad540b;
}
.company-lookup-result > strong { display: block; margin-bottom: 14px; }
.company-lookup-result dl { display: grid; grid-template-columns: minmax(90px, 150px) minmax(0, 1fr); gap: 8px 14px; margin: 0; overflow-wrap: anywhere; }
.company-lookup-result dt { color: var(--muted, #aaa); }
.company-lookup-result dd { margin: 0; }
.company-lookup-result > button { margin-top: 16px; }
@media (max-width: 480px) { .company-lookup-form > div { flex-wrap: wrap; } .company-lookup-result dl { grid-template-columns: 1fr; gap: 2px; } .company-lookup-result dd { margin-bottom: 8px; } }
.welcome-dropzone {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  padding: 28px 16px;
  text-align: center;
  border: 1px dashed #aa8848;
  border-radius: 16px;
  background: rgba(214, 173, 82, 0.04);
}
.welcome-dropzone.is-dragging {
  border-color: #efd083;
  background: rgba(214, 173, 82, 0.16);
}
.welcome-dropzone span,
.welcome-dropzone small {
  color: var(--muted, #aaa);
}
#welcome-file-list {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.welcome-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}
.welcome-file span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.welcome-file button {
  flex: none;
  min-height: 44px;
}
.city-suggestions .city-confirm-new {
  margin-top: 6px;
  border-top: 1px solid var(--line, #555);
  color: var(--muted, #aaa);
  font-size: 12px;
  white-space: normal;
}
