/* Jobtrack workspace, in the look of the tezb home page (Omerverse): system
   sans with tabular figures so numbers line up, lower-case labels, plain
   cards, and one amber accent that marks only what is selected. Nothing is
   fetched from a font CDN. */
:root {
  color-scheme: light;
  --bg: #f5f3ee;
  --surface: #fffefb;
  --surface-2: #f0ede6;
  --ink: #1f1d1a;
  --muted: #67625a;
  --dim: #9b958b;
  --line: #e5e1d8;
  --line-strong: #d2cdc2;
  --accent: #b06f12;
  --accent-ink: #fffaf0;
  --cyan: #3c74a3;
  --green: var(--accent);
  --green-dark: #95600b;
  --lime: var(--accent-ink);
  --pale: var(--surface-2);
  --applied: #3c74a3;
  --assessment: #a8700f;
  --interview: #2d8452;
  --offer: #4b9a3f;
  --rejected: #c23f2e;
  --outreach: #8268b8;
  --incomplete: #9b958b;
  --ghosted: #b5afa4;
  --role-0: var(--accent);
  --role-1: var(--applied);
  --role-2: var(--interview);
  --role-3: var(--outreach);
  --role-4: var(--assessment);
  --role-5: var(--rejected);
  --role-6: var(--offer);
  --role-7: var(--incomplete);
  --sans:
    ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text",
    "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 10px;
  --sidebar: 0px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #131210;
  --surface: #1a1916;
  --surface-2: #22211d;
  --ink: #ebe7df;
  --muted: #a29c91;
  --dim: #6e6960;
  --line: #2a2824;
  --line-strong: #3a3731;
  --accent: #e0a84a;
  --accent-ink: #1a1408;
  --green-dark: #eab862;
  --cyan: #6f9fc6;
  --applied: #6f9fc6;
  --assessment: #dca244;
  --interview: #72c191;
  --offer: #8fcf7a;
  --rejected: #e5705f;
  --outreach: #b399dc;
  --incomplete: #a29c91;
  --ghosted: #6e6960;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
body {
  font: 14px/1.45 var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
p,
h1,
h2,
h3,
h4 {
  margin: 0;
}
p {
  color: var(--muted);
}
h1 {
  font-size: 23px;
  font-weight: 550;
  letter-spacing: -0.7px;
  line-height: 1.25;
}
h2 {
  font-size: 15px;
  font-weight: 550;
}
h3 {
  font-size: 14px;
  font-weight: 550;
}
[hidden] {
  display: none !important;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
tr:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 1px solid var(--accent);
  outline-offset: 1px;
}
button svg,
span[data-icon] svg {
  width: 15px;
  height: 15px;
  display: block;
  flex-shrink: 0;
}
.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: -80px;
  padding: 10px;
  background: var(--accent);
  color: var(--accent-ink);
}
.skip-link:focus {
  top: 10px;
}
/* a plain bar across the top, not a floating card; tabs are text with an
   accent underline, the only place the accent marks navigation */
.app-header {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  height: 3.25rem;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-size: 15px;
  letter-spacing: -0.01em;
  font-weight: 650;
}
.brand-symbol {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
  border-radius: 5px;
}
.brand-dot {
  display: none;
}
.app-header nav {
  display: flex;
  gap: 1.1rem;
  align-self: stretch;
}
.nav-item {
  position: relative;
  display: flex;
  gap: 7px;
  align-items: center;
  white-space: nowrap;
  padding: 0 0.1rem;
  color: var(--muted);
  font-size: 14px;
}
.nav-item [data-icon] {
  display: none;
}
.nav-item:hover {
  color: var(--ink);
}
.nav-item.selected {
  color: var(--ink);
  font-weight: 600;
}
.nav-item.selected::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}
.nav-count {
  font-size: 12px;
  font-weight: 400;
  padding: 0 0.45rem;
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 999px;
}
.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  height: 2rem;
  padding: 0 0.75rem;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.3;
  color: var(--muted);
}
.button:hover {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}
/* the one action that matters on a screen is drawn in ink, not accent */
.button-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  font-weight: 500;
}
.button-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  opacity: 0.9;
}
.button-danger {
  border-color: color-mix(in srgb, var(--rejected) 45%, var(--line));
  color: var(--rejected);
}
.button-danger:hover {
  border-color: var(--rejected);
  background: color-mix(in srgb, var(--rejected) 7%, var(--surface));
  color: var(--rejected);
}
.icon-button {
  padding: 0;
  width: 2rem;
  height: 2rem;
}
.sync-actions {
  position: relative;
  display: flex;
}
.sync-actions > #sync-button {
  border-radius: 6px 0 0 6px;
}
.sync-actions > #sync-menu-toggle {
  border-radius: 0 6px 6px 0;
  border-left-color: color-mix(in srgb, var(--bg) 35%, var(--ink));
}
.sync-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 170px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 8px 24px #0003;
}
.sync-menu > .text-button {
  justify-content: center;
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  padding: 0;
}
.text-button:hover {
  color: var(--ink);
}
.workspace {
  max-width: 1700px;
  margin: 0 auto;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 20px 10px;
  font-size: 12.5px;
  color: var(--dim);
}
.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
}
.breadcrumb strong {
  font-weight: 400;
  color: var(--muted);
}
.breadcrumb span {
  color: var(--line-strong);
}
.status-strip {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 12px;
}
.status-strip .text-button {
  color: var(--muted);
  font-size: 12px;
}
.connection-dot,
.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
  background: var(--offer);
}
.connection-dot.offline {
  background: var(--assessment);
}
main {
  padding: 8px 20px 25px;
  min-width: 0;
}
.work-category-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 0;
  margin-bottom: 1.25rem;
}
.category-switch {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px;
}
.category-button {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 13px;
}
.category-button:hover {
  color: var(--ink);
}
.category-button.selected {
  color: var(--ink);
  background: var(--surface-2);
  font-weight: 500;
}
.category-button.selected svg {
  color: var(--accent);
}
#category-context {
  font-size: 12.5px;
  color: var(--dim);
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 17px;
}
.page-heading p {
  font-size: 13px;
  margin-top: 6px;
  color: var(--muted);
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.eyebrow {
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 7px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.sync-caption {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 12.5px;
  color: var(--dim);
}
.sync-caption svg {
  width: 12px;
  height: 12px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}
.metric {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.metric-label {
  order: 2;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 0.05rem;
}
.metric-label svg {
  display: none;
}
.metric-value {
  order: 1;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 550;
  white-space: nowrap;
}
.metric-value small {
  font-size: 16px;
  margin-left: 2px;
  color: var(--muted);
}
.metric-foot {
  order: 3;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.4;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.lower-grid {
  grid-template-columns: 1fr 1.3fr;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  padding: 0.85rem 1rem;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.panel-heading h2 {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.panel-heading p {
  font-size: 12.5px;
  color: var(--dim);
  margin-top: 4px;
}
.panel-heading > [data-icon] {
  color: var(--dim);
}
.small-tag,
.count-bubble,
.filter-count {
  background: var(--surface-2);
  padding: 0 0.45rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.small-tag {
  font-size: 11px;
}
.chart-total {
  display: flex;
  gap: 9px;
  align-items: baseline;
  font-size: 12px;
  color: var(--dim);
}
.chart-total strong {
  font-size: 22px;
  color: var(--ink);
  font-weight: 500;
}
.weekly-chart {
  height: 125px;
  display: flex;
  align-items: end;
  gap: 7px;
  padding-top: 15px;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 29px,
    var(--line) 30px,
    transparent 31px
  );
}
.chart-column {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  position: relative;
  padding-top: 17px;
}
.chart-bar {
  width: 100%;
  max-width: 65px;
  background: var(--line-strong);
  position: relative;
  min-height: 2px;
  border-radius: 2px 2px 0 0;
}
.chart-bar {
  display: flex;
  align-items: flex-end;
}
.chart-column:last-child .chart-bar {
  background: color-mix(in srgb, var(--accent) 35%, var(--line-strong));
}
.chart-number {
  position: absolute;
  top: -18px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.chart-label {
  font-size: 11px;
  color: var(--dim);
  white-space: nowrap;
  padding-top: 8px;
}
.pipeline {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  margin-bottom: 13px;
}
.pipeline-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
}
.pipeline-name {
  width: 90px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  flex-shrink: 0;
}
.status-dot {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: var(--stage-color, currentColor);
  display: inline-block;
  flex-shrink: 0;
}
.pipeline-track {
  height: 4px;
  background: var(--surface-2);
  border-radius: 1px;
  flex: 1;
  overflow: hidden;
}
.pipeline-fill {
  height: 100%;
  background: var(--stage-color);
  min-width: 0;
}
.pipeline-count {
  width: 25px;
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.overview-grid.role-grid {
  grid-template-columns: 1fr;
}
.role-list {
  display: grid;
  gap: 9px;
  margin-bottom: 13px;
}
.role-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
}
.role-name {
  flex: 0 0 40%;
  max-width: 40%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}
.role-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.role-track {
  height: 5px;
  background: var(--surface-2);
  border-radius: 1px;
  flex: 1;
  overflow: hidden;
}
.role-fill {
  height: 100%;
  background: var(--stage-color);
  min-width: 2px;
}
.role-count {
  width: 28px;
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.panel-footer-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-top: 1px solid var(--line);
  padding: 11px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.panel-footer-link:hover {
  color: var(--ink);
}
.company-avatar {
  background: color-mix(in srgb, var(--avatar-ink) 12%, var(--surface));
  color: color-mix(in srgb, var(--avatar-ink) 70%, var(--ink));
  border: 1px solid color-mix(in srgb, var(--avatar-ink) 25%, var(--line));
  border-radius: 4px;
  width: 30px;
  height: 30px;
  min-width: 30px;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 600;
}
.attention-item,
.recent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border-top: 1px solid var(--line);
  padding: 9px 0;
  text-align: left;
}
.attention-item:hover,
.recent-item:hover {
  background: var(--surface-2);
}
.attention-main {
  flex: 1;
  min-width: 0;
}
.attention-main strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attention-main small {
  display: block;
  font-size: 12px;
  color: var(--dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}
.attention-reason {
  font-size: 11px;
  max-width: 110px;
  color: var(--assessment);
  text-align: right;
}
.recent-text {
  flex: 1;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}
.recent-text strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}
.recent-text small {
  display: block;
  font-size: 12px;
  color: var(--dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}
.recent-time {
  font-size: 12px;
  color: var(--dim);
  white-space: nowrap;
}
.event-icon {
  color: var(--cyan);
  flex-shrink: 0;
}
.event-icon svg {
  width: 13px;
  height: 13px;
}
.panel-empty {
  padding: 22px 5px;
  text-align: center;
  color: var(--dim);
  font-size: 13px;
}
.panel-empty > [data-icon] {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}
.panel-empty strong {
  font-weight: 400;
  color: var(--muted);
}
.panel-empty p {
  font-size: 12.5px;
  margin-top: 5px;
}
.page-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  color: var(--dim);
  padding-top: 4px;
}
.page-footnote svg {
  width: 11px;
  height: 11px;
}
.welcome {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 17px;
  padding: 25px;
}
.welcome-art {
  display: none;
}
.welcome h2 {
  font-size: 19px;
}
.welcome p {
  font-size: 13px;
  margin: 10px 0 16px;
}
.welcome-footnote {
  display: block;
  font-size: 12px;
  color: var(--dim);
  margin-top: 10px;
}
.applications-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}
.search-field {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 0 10px;
  background: var(--surface);
  max-width: 400px;
  flex: 1;
  min-width: 0;
}
.search-field svg {
  color: var(--dim);
  width: 13px;
  height: 13px;
}
.search-field input {
  border: 0;
  outline: none;
  background: none;
  width: 100%;
  padding: 8px 0;
  font-size: 13px;
  min-width: 0;
}
.search-field:focus-within {
  border-color: var(--accent);
}
.search-field kbd {
  font-size: 12px;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 0 4px;
  border-radius: 2px;
}
.search-field input::placeholder {
  color: var(--dim);
}
.toolbar-right,
.history-control {
  display: flex;
  align-items: center;
  gap: 10px;
}
.history-control {
  font-size: 12.5px;
  color: var(--dim);
}
.history-control input {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
  max-width: 145px;
}
.view-switch {
  display: flex;
  gap: 2px;
  border: 1px solid var(--line-strong);
  padding: 3px;
  border-radius: 4px;
  background: var(--surface);
}
.view-switch button {
  padding: 4px 7px;
  border-radius: 2px;
  color: var(--dim);
}
.view-switch button.selected {
  color: var(--accent);
  background: var(--surface-2);
}
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 13px;
}
.filter-tabs {
  display: flex;
  gap: 15px;
  overflow: auto;
  min-width: 0;
}
.filter-tabs button {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  padding: 8px 0 11px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.filter-tabs button.selected {
  color: var(--accent);
  border-color: var(--accent);
}
.filter-tabs .filter-count {
  font-size: 11px;
  color: inherit;
}
.sort-label {
  display: flex;
  gap: 5px;
  align-items: center;
  color: var(--dim);
  padding-bottom: 8px;
}
.sort-label svg {
  width: 12px;
  height: 12px;
}
.sort-label select {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12.5px;
  max-width: 145px;
}
#application-content {
  overflow-x: auto;
}
.application-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.application-table th {
  font-size: 12px;
  font-weight: 400;
  color: var(--dim);
  background: var(--surface-2);
  padding: 10px 13px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.sort-header {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  gap: 4px;
}
.sort-header:hover,
th[aria-sort="ascending"] .sort-header,
th[aria-sort="descending"] .sort-header {
  color: var(--ink);
}
.sort-header:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
th.num .sort-header {
  justify-content: flex-end;
  width: 100%;
}
.application-table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.application-table tr:last-child td {
  border-bottom: 0;
}
.application-table tbody tr {
  cursor: pointer;
}
.application-table tbody tr:hover {
  background: var(--surface-2);
}
.company-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.company-cell strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}
.company-cell small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}
.date-caption {
  display: block;
  color: var(--dim);
  font-size: 11px;
  margin-top: 2px;
}
.num {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.message-count {
  display: flex;
  gap: 5px;
  align-items: center;
}
.message-count svg {
  height: 12px;
  width: 12px;
  color: var(--dim);
}
.followup-date {
  font-size: 12px;
}
.followup-date.due {
  color: var(--assessment);
}
.badge {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  white-space: nowrap;
  font-size: 12px;
  padding: 3px 6px;
  line-height: 1.2;
  border-radius: 3px;
  background: color-mix(in srgb, var(--stage-color) 9%, var(--surface));
  color: color-mix(in srgb, var(--stage-color) 80%, var(--ink));
  border: 1px solid color-mix(in srgb, var(--stage-color) 28%, var(--surface));
}
.list-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--dim);
  font-size: 12px;
  margin-top: 12px;
}
.list-footer [data-icon] {
  display: inline-flex;
}
.large-empty {
  padding: 45px 20px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  text-align: center;
}
.large-empty > [data-icon] {
  display: flex;
  justify-content: center;
  color: var(--dim);
  margin-bottom: 10px;
}
.large-empty h2 {
  font-size: 17px;
  margin-bottom: 7px;
}
.large-empty p {
  font-size: 13px;
  max-width: 430px;
  margin: 0 auto 17px;
}
.board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 230px;
  gap: 10px;
  min-height: 420px;
  overflow: auto;
  padding-bottom: 10px;
}
.board-column {
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.board-column-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--stage-color);
  font-weight: 400;
  margin-bottom: 13px;
}
.board-column-heading .count-bubble {
  margin-left: auto;
}
.board-card {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 4px;
  padding: 11px;
  text-align: left;
  margin-bottom: 8px;
}
.board-card:hover {
  border-color: var(--accent);
}
.board-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.board-card strong {
  font-size: 13px;
  font-weight: 500;
}
.board-card p {
  font-size: 12.5px;
  margin: 9px 0;
  color: var(--muted);
}
.board-card-foot {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--dim);
}
.board-empty {
  font-size: 12px;
  color: var(--dim);
  padding: 9px 0;
}
.activity-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
}
.activity-tabs .selected {
  color: var(--accent);
  border-color: var(--accent);
}
.activity-group {
  margin-bottom: 21px;
}
.activity-date {
  color: var(--dim);
  font-size: 12.5px;
  margin-bottom: 8px;
}
.activity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom: 0;
  padding: 12px;
  width: 100%;
  text-align: left;
}
.activity-row:last-child {
  border-bottom: 1px solid var(--line);
}
.activity-row:hover {
  background: var(--surface-2);
}
.activity-row > div {
  flex: 1;
  min-width: 0;
}
.activity-row h3 {
  font-size: 13px;
  font-weight: 400;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.activity-row p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-top: 4px;
}
.activity-row small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  color: var(--dim);
  margin-top: 6px;
}
.activity-row time {
  font-size: 12px;
  color: var(--dim);
  white-space: nowrap;
}
.run-card {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  padding: 15px;
  margin-bottom: 10px;
}
.run-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}
.run-head strong {
  font-weight: 500;
  color: var(--ink);
}
.run-head > span {
  color: var(--dim);
  font-size: 12px;
}
.run-summary {
  display: flex;
  gap: 24px;
  margin-top: 14px;
  color: var(--dim);
  font-size: 12px;
}
.run-summary strong {
  display: block;
  font-size: 20px;
  color: var(--accent);
  font-weight: 400;
}
.run-query {
  margin-top: 12px;
  color: var(--dim);
  font-size: 12px;
}
.run-query summary {
  cursor: pointer;
}
.run-query code {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.run-error {
  color: var(--rejected);
  margin-top: 9px;
  font-size: 13px;
}
.notice,
.history-banner {
  padding: 11px 13px;
  margin-bottom: 15px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 4px;
  font-size: 13px;
  color: var(--assessment);
}
.history-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}
dialog {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 90px #0007;
}
dialog::backdrop {
  background: #080a0dba;
  backdrop-filter: blur(2px);
}
.modal {
  width: min(570px, calc(100vw - 28px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 22px 24px 20px;
  border-radius: 10px;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}
.modal-header h2 {
  font-size: 19px;
  font-weight: 500;
}
.modal-description {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 21px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
form label {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 17px;
  position: relative;
}
form input:not([type="checkbox"]),
form select,
#merge-target,
form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 9px 10px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 13px;
  color: var(--ink);
  min-height: 36px;
}
form textarea {
  min-height: 95px;
  resize: vertical;
  line-height: 1.7;
}
form input::placeholder,
form textarea::placeholder {
  color: var(--dim);
}
.field-hint {
  display: block;
  font-size: 12px;
  color: var(--dim);
  margin-top: 5px;
  line-height: 1.7;
}
.checkbox-label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  margin: 14px 0;
}
.checkbox-label small {
  color: var(--dim);
  font-size: 12px;
  display: block;
}
.checkbox-label input {
  accent-color: var(--accent);
}
.advanced {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 8px;
}
.advanced summary {
  cursor: pointer;
  font-size: 12.5px;
  color: var(--accent);
  margin-bottom: 14px;
}
.form-section-title {
  font-size: 12.5px;
  color: var(--dim);
  margin: 21px 0 12px;
}
.provider-note {
  font-size: 12.5px;
  color: var(--dim);
  margin-bottom: 18px;
  line-height: 1.6;
}
.label-action {
  position: absolute;
  right: 0;
  top: 0;
}
.label-action button {
  font-size: 12px;
}
.key-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--dim);
  margin-top: 7px;
}
.form-result,
.sync-result {
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  margin-top: 15px;
  font-size: 13px;
  color: var(--offer);
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.form-result.error,
.sync-result.error {
  color: var(--rejected);
  border-color: color-mix(in srgb, var(--rejected) 40%, var(--line));
}
.sync-result.running {
  color: var(--assessment);
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 21px;
}
.modal-footer .text-button {
  margin-right: auto;
}
.progress-line {
  height: 3px;
  background: var(--line);
  margin-top: 10px;
  overflow: hidden;
}
.progress-line:after {
  content: "";
  display: block;
  height: 100%;
  width: 35%;
  background: var(--accent);
  animation: progress 1.6s infinite;
}
.preview-heading {
  font-size: 13px;
  margin: 17px 0 9px;
  color: var(--muted);
}
.preview-list {
  border: 1px solid var(--line);
  border-radius: 4px;
  max-height: 270px;
  overflow: auto;
}
.preview-row {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.preview-row strong {
  font-weight: 500;
  color: var(--ink);
}
.preview-row p {
  font-size: 12px;
  margin-top: 4px;
}
.preview-row:last-child {
  border: 0;
}
.detail-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(590px, 100%);
  height: 100dvh;
  max-height: 100dvh;
  max-width: 100vw;
  border-width: 0 0 0 1px;
  padding: 0;
  overflow: auto;
  border-radius: 0;
}
.detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 21px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.detail-top .eyebrow {
  margin: 0;
}
.detail-top button {
  border-color: var(--line);
}
.detail-head {
  padding: 23px;
}
.detail-company {
  display: flex;
  align-items: center;
  gap: 13px;
}
.detail-company .company-avatar {
  height: 43px;
  width: 43px;
  font-size: 16px;
}
.detail-company h2 {
  font-size: 22px;
  font-weight: 500;
}
.detail-company p {
  font-size: 13px;
  margin-top: 5px;
}
.detail-head-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--dim);
  font-size: 12px;
  margin-top: 18px;
}
.detail-head-meta .text-button {
  margin-left: auto;
}
.detail-section {
  padding: 19px 23px;
  border-top: 1px solid var(--line);
}
.detail-section h3 {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.false-positive-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 23px;
  border-top: 1px solid var(--line);
}
#merge-target {
  width: auto;
  max-width: 60%;
  margin-top: 0;
}
.false-positive-section > span {
  font-size: 12px;
  color: var(--dim);
  max-width: 46ch;
  line-height: 1.6;
}
.mark-group {
  margin-bottom: 20px;
}
.mark-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 9px;
}
.mark-card {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg);
  padding: 13px 14px;
  margin-bottom: 8px;
}
.mark-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.mark-card-head strong {
  font-size: 13px;
  font-weight: 500;
}
.mark-card-head span,
.mark-card-head code {
  font-size: 12px;
  color: var(--dim);
  overflow-wrap: anywhere;
}
.mark-card p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 6px 0 11px;
  line-height: 1.6;
}
.legacy-mark .mark-card-head {
  display: block;
}
.legacy-mark .mark-card-head code {
  display: block;
  margin-top: 4px;
}
.mark-warning {
  font-size: 12.5px;
  color: var(--assessment);
  line-height: 1.7;
  margin-bottom: 12px;
}
.mark-loading,
.mark-error {
  font-size: 13px;
  color: var(--dim);
  padding: 14px 0;
}
.mark-error {
  color: var(--rejected);
}
.detail-edit summary {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--accent);
  cursor: pointer;
  list-style: none;
}
.detail-edit summary:after {
  content: "+";
  color: var(--dim);
}
.detail-edit[open] summary:after {
  content: "−";
}
.detail-edit form {
  margin-top: 21px;
}
.detail-edit form .button {
  width: 100%;
}
.notes-preview {
  font-size: 13px;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 15px;
  line-height: 1.8;
}
.follow-up-summary {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--assessment);
  margin-top: 10px;
}
.follow-up-summary svg {
  width: 12px;
  height: 12px;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline-event {
  position: relative;
  border-left: 1px solid var(--line-strong);
  margin-left: 5px;
  padding: 0 0 24px 23px;
}
.timeline-event:before {
  content: "";
  position: absolute;
  left: -4px;
  top: 6px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--surface);
  border-radius: 50%;
  background: var(--stage-color);
}
.timeline-event:last-child {
  padding-bottom: 0;
  border-color: transparent;
}
.timeline-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 9px;
}
.timeline-head time {
  margin-left: auto;
  color: var(--dim);
  font-size: 12px;
}
.timeline-event h4 {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 5px;
}
.timeline-sender {
  font-size: 12px;
  color: var(--dim);
  word-break: break-word;
}
.timeline-snippet {
  padding: 11px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 12px 0 10px;
}
.classification {
  font-size: 12px;
  color: var(--dim);
  margin-top: 10px;
}
.classification summary {
  cursor: pointer;
}
.classification p {
  margin-top: 5px;
}
.snapshot-detail {
  margin: 0 23px 17px;
  padding: 10px;
  background: var(--surface-2);
  color: var(--assessment);
  border: 1px solid var(--line);
  font-size: 12.5px;
}
.sync-dock {
  position: fixed;
  bottom: 18px;
  right: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  z-index: 20;
  max-width: calc(100vw - 28px);
  box-shadow: 0 7px 30px #0003;
}
.sync-dock-icon {
  color: var(--accent);
}
.sync-dock-icon svg {
  width: 19px;
  height: 19px;
  animation: spin 3s linear infinite;
}
.sync-dock strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
.sync-dock span:not([data-icon]) {
  display: block;
  color: var(--dim);
  font-size: 12px;
  margin-top: 3px;
}
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-2);
  border: 1px solid var(--accent);
  color: var(--ink);
  border-radius: 4px;
  padding: 11px 15px;
  z-index: 50;
  font-size: 13px;
  max-width: 90vw;
  box-shadow: 0 7px 30px #0004;
}
@keyframes progress {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(390%);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1500px) {
  main {
    padding-inline: 28px;
  }
  .overview-grid {
    grid-template-columns: 1fr 1fr;
  }
  .panel {
    padding: 16px 18px;
  }
  .weekly-chart {
    height: 150px;
  }
}
@media (max-width: 1050px) {
  .app-header {
    gap: 15px;
  }
  .nav-item {
    font-size: 12.5px;
    padding: 6px 8px;
  }
  .nav-item svg {
    display: none;
  }
  .status-strip {
    gap: 12px;
  }
  .company-cell small {
    max-width: 280px;
  }
  .attention-reason {
    max-width: 85px;
  }
}
@media (max-width: 760px) {
  .app-header {
    position: static;
    height: auto;
    gap: 0.6rem 1rem;
    flex-wrap: wrap;
    padding: 0.6rem 0.9rem 0;
    padding-top: max(0.6rem, env(safe-area-inset-top));
  }
  .brand {
    font-size: 16px;
  }
  .brand-symbol {
    height: 24px;
    width: 24px;
  }
  .app-header nav {
    order: 3;
    width: 100%;
    align-self: auto;
  }
  .nav-item {
    padding: 0.5rem 0.1rem 0.6rem;
  }
  .nav-item svg {
    display: block;
    width: 12px;
    height: 12px;
  }
  .header-tools {
    gap: 4px;
  }
  .header-tools .button {
    font-size: 12.5px;
    padding: 6px 8px;
  }
  .header-tools .icon-button {
    width: 28px;
    height: 28px;
    padding: 6px;
  }
  .topbar {
    padding: 12px 13px 9px;
  }
  .status-strip > span {
    display: none;
  }
  .breadcrumb {
    font-size: 12px;
    gap: 7px;
  }
  main {
    padding: 6px 12px 22px;
  }
  .work-category-bar {
    margin-bottom: 17px;
    padding-bottom: 11px;
  }
  #category-context {
    display: none;
  }
  .category-switch {
    width: 100%;
  }
  .category-button {
    flex: 1;
    justify-content: center;
    font-size: 12.5px;
  }
  .page-heading {
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
  }
  h1 {
    font-size: 21px;
  }
  .page-heading p {
    font-size: 12.5px;
  }
  .sync-caption {
    font-size: 11px;
    gap: 4px;
    max-width: 95px;
    text-align: right;
  }
  .sync-caption svg {
    display: none;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 15px;
  }
  .metric {
    padding: 0;
  }
  .metric-label {
    font-size: 12px;
  }
  .metric-value {
    font-size: 25px;
  }
  .metric-foot {
    font-size: 11px;
  }
  .overview-grid,
  .lower-grid {
    grid-template-columns: 1fr;
    gap: 11px;
    margin-bottom: 11px;
  }
  .panel {
    padding: 12px;
  }
  .role-name {
    flex-basis: 52%;
    max-width: 52%;
  }
  .weekly-chart {
    height: 135px;
  }
  .attention-reason {
    max-width: 110px;
  }
  .applications-toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .search-field {
    max-width: none;
    flex-basis: 100%;
  }
  .toolbar-right {
    width: 100%;
    justify-content: space-between;
  }
  .filter-bar {
    flex-wrap: wrap;
    gap: 4px;
  }
  .filter-tabs {
    width: 100%;
    gap: 14px;
  }
  .sort-label {
    margin-left: auto;
  }
  .application-table th,
  .application-table td {
    padding: 10px;
  }
  .application-table th:nth-child(n + 3),
  .application-table td:nth-child(n + 3) {
    display: none;
  }
  .company-cell small {
    max-width: 195px;
  }
  .company-avatar {
    width: 25px;
    height: 25px;
    min-width: 25px;
    font-size: 12px;
  }
  .company-cell {
    gap: 8px;
  }
  .list-footer > span:last-child {
    display: none;
  }
  .run-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .run-summary {
    gap: 20px;
    flex-wrap: wrap;
  }
  .activity-row {
    padding: 11px 9px;
    gap: 8px;
  }
  .activity-row small {
    max-width: 255px;
  }
  .activity-row time {
    display: none;
  }
  .modal {
    padding: 19px;
    max-height: calc(100dvh - 28px);
  }
  .modal-header h2 {
    font-size: 18px;
  }
  .form-grid {
    gap: 11px;
  }
  .modal-footer {
    flex-wrap: wrap;
  }
  .detail-section,
  .detail-head {
    padding: 18px;
  }
  .detail-top {
    padding: 12px 18px;
  }
  .detail-company h2 {
    font-size: 20px;
  }
  .timeline-head {
    gap: 6px;
  }
  .timeline-head time {
    font-size: 11px;
  }
  .board {
    grid-auto-columns: 215px;
  }
  .sync-dock {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .sync-dock .text-button {
    margin-left: auto;
  }
  .page-footnote {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Provider connections and collaborative email review. */
.settings-modal {
  max-width: 980px;
  width: min(980px, calc(100vw - 36px));
}
.settings-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin: 22px 0;
}
.settings-tabs > button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 12px 2px;
  font-size: 14px;
  color: var(--muted);
}
.settings-tabs > button[aria-selected="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.settings-tabs span {
  display: inline-flex;
  justify-content: center;
  min-width: 18px;
  margin-left: 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12.5px;
  padding: 1px 4px;
}
.settings-workspace {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 24px;
}
.provider-rail {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.provider-rail > button {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: none;
  text-align: left;
}
.provider-rail > button:hover {
  background: var(--surface-2);
}
.provider-rail > button[aria-pressed="true"] {
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
}
.provider-mark {
  display: flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  height: 32px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--accent);
}
.provider-mark.large {
  flex-basis: 42px;
  height: 42px;
  font-size: 15px;
}
.provider-rail strong {
  font-size: 13px;
  font-weight: 500;
  display: block;
}
.provider-rail small {
  font-size: 12px;
  color: var(--dim);
  display: block;
  margin-top: 4px;
}
.connection-dot {
  width: 5px;
  height: 5px;
  background: var(--dim);
  border-radius: 100%;
  margin-left: auto;
}
.connection-dot.configured {
  background: var(--interview);
}
.settings-section-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.settings-section-head h3,
.team-strategy h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 6px;
}
.settings-section-head p,
.team-strategy p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.connection-editor {
  padding: 8px 0 0;
  min-width: 0;
}
.secret-input {
  display: flex;
  position: relative;
}
.secret-input input {
  padding-right: 44px;
}
.secret-input button {
  background: none;
  border: 0;
  width: 38px;
  position: absolute;
  right: 4px;
  top: 5px;
  bottom: 5px;
  color: var(--muted);
}
.secret-input svg {
  width: 17px;
}
.connection-editor .key-line {
  margin: -6px 0 8px;
}
.connection-editor .field-hint {
  margin: 10px 0 20px;
}
.connection-editor .provider-note,
.model-picker .provider-note {
  font-size: 12.5px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  margin: 15px 0;
}
.connection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.connection-next {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 20px;
}
.connection-next > span {
  color: var(--accent);
}
.connection-next svg {
  width: 22px;
}
.connection-next strong {
  font-size: 13px;
  font-weight: 500;
}
.connection-next p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 6px 0;
}
.connection-next .text-button {
  margin-left: auto;
  white-space: nowrap;
}
.team-strategy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.strategy-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  flex-shrink: 0;
}
.strategy-switch button {
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 12.5px;
  padding: 8px 12px;
  color: var(--muted);
}
.strategy-switch button[aria-pressed="true"] {
  color: var(--accent);
  background: var(--surface);
  border-color: var(--line);
}
.review-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.review-flow > div {
  padding: 14px;
  border-right: 1px solid var(--line);
}
.review-flow > div:last-child {
  border-right: 0;
}
.review-flow span {
  font-size: 12px;
  color: var(--accent);
  margin-right: 8px;
}
.review-flow strong {
  font-size: 12.5px;
  font-weight: 500;
}
.review-flow p {
  font-size: 12px;
  color: var(--dim);
  margin: 8px 0 0;
  line-height: 1.6;
}
.model-workspace {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.model-picker {
  min-width: 0;
}
.model-catalog {
  max-height: 230px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.model-option {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 12px;
  padding: 13px;
  margin: 0 !important;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.model-option[hidden] {
  display: none !important;
}
.model-option:last-child {
  border-bottom: 0;
}
.model-option:has(input:checked) {
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.model-option input {
  flex: 0 0 15px;
  width: 15px !important;
  height: 15px;
  margin: 0 !important;
  accent-color: var(--accent);
}
.model-option strong {
  font-size: 13px;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.model-option small {
  display: block;
  font-size: 12px;
  color: var(--dim);
  margin-top: 6px;
}
.catalog-empty {
  text-align: center;
  font-size: 12.5px;
  color: var(--dim);
  padding: 26px 12px;
  line-height: 1.9;
}
.custom-model {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}
.custom-model label {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}
.custom-model .button {
  margin-top: 15px;
}
.selected-team {
  margin: 22px 0;
}
.selected-team .settings-section-head label {
  margin: 0;
  font-size: 12px;
  flex: 0 0 140px;
}
.team-members {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.team-member {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 6px;
  min-width: 0;
}
.team-member > div {
  flex: 1;
  min-width: 0;
}
.team-member strong {
  font-size: 12.5px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.team-member small {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.team-member .text-button {
  font-size: 11px;
}
.selected-team > .field-hint {
  margin-top: 14px;
}
.recent-decisions {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 12.5px;
}
.recent-decisions > summary {
  cursor: pointer;
  color: var(--muted);
}
.recent-decisions > button {
  margin: 18px 0;
}
.review-report {
  margin: 14px 0;
}
.review-outcome {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.review-outcome.agreed strong {
  color: var(--interview);
}
.review-outcome.unresolved strong {
  color: var(--assessment);
}
.review-outcome strong {
  font-size: 13px;
  font-weight: 500;
}
.review-outcome span {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}
.review-round {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.review-round > summary {
  cursor: pointer;
  font-size: 12.5px;
  color: var(--muted);
}
.review-opinions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 8px;
  margin-top: 12px;
}
.review-opinions article {
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 5px;
  min-width: 0;
}
.review-opinions small {
  color: var(--dim);
  font-size: 12px;
  display: block;
}
.review-opinions strong {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.review-opinions p {
  font-size: 12.5px;
  color: var(--accent);
  margin: 12px 0 6px;
}
.review-opinions span {
  font-size: 12px;
  color: var(--muted);
}
.review-opinions blockquote {
  margin: 12px 0 0;
  border-left: 2px solid var(--line-strong);
  padding-left: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}
.review-error {
  color: var(--rejected) !important;
  line-height: 1.7;
}
.saved-review {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.saved-review > summary {
  font-size: 12.5px;
  cursor: pointer;
}
@media (max-width: 680px) {
  .settings-modal {
    width: calc(100vw - 16px);
    padding: 18px;
  }
  .settings-workspace {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .provider-rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }
  .provider-rail > button {
    padding: 8px;
    min-width: 0;
  }
  .provider-rail small {
    font-size: 11px;
  }
  .team-strategy {
    flex-direction: column;
    align-items: flex-start;
  }
  .review-flow > div {
    padding: 9px;
  }
  .review-flow strong {
    display: block;
    line-height: 1.6;
    margin-top: 6px;
  }
  .review-flow p {
    font-size: 11px;
  }
  .team-members {
    grid-template-columns: 1fr;
  }
  .connection-next {
    flex-wrap: wrap;
  }
  .settings-section-head {
    flex-wrap: wrap;
  }
}
.connection-editor > .settings-section-head {
  justify-content: flex-start;
}
.settings-modal .modal-footer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 0;
}
@media (max-width: 680px) {
  .settings-modal .modal-footer {
    bottom: -18px;
    margin-bottom: -18px;
    flex-wrap: wrap;
  }
}

code,
kbd,
.run-query code {
  font-family: var(--mono);
}

/* -- insights, digest, add, and detail additions ------------------------ */
.digest {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 11px 13px;
  margin-bottom: 15px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  border-radius: 4px;
  font-size: 13px;
}
.digest > div:first-child {
  display: flex;
  flex-direction: column;
}
.digest > div:first-child span {
  color: var(--muted);
}
.digest-items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  flex: 1;
}
.digest .icon-button {
  margin-left: auto;
}
.section-hint {
  font-size: 12px;
  color: var(--dim);
  margin: 8px 0;
}
.lookup-note,
.cooldown-note {
  font-size: 12.5px;
  color: var(--assessment);
}
.lookup-note {
  padding: 9px 11px;
  margin: 6px 0 12px;
  border: 1px solid color-mix(in srgb, var(--assessment) 35%, var(--line));
  border-radius: 4px;
}
.cooldown-note {
  margin-bottom: 10px;
}
.event-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 8px 0;
}
.detail-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink);
}
.detail-chip svg {
  width: 12px;
  height: 12px;
}
.detail-chip.due {
  color: var(--assessment);
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.contact-list li > span {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.contact-list small {
  color: var(--dim);
  font-size: 12px;
}
.contact-list svg {
  width: 15px;
  color: var(--dim);
}
.history-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 0;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.history-row small {
  margin-left: auto;
  color: var(--dim);
}
.draft-text {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface-2);
  font-size: 13px;
  resize: vertical;
}
.draft-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
#draft-follow-up,
#draft-copy {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.highlights {
  margin-bottom: 1.25rem;
}
.highlights ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
}
.highlights li {
  display: flex;
  gap: 9px;
  align-items: baseline;
}
.highlights svg {
  width: 13px;
  height: 13px;
  color: var(--accent);
  flex-shrink: 0;
  transform: translateY(2px);
}
.insight-bars .pipeline-name {
  width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.insight-bars .pipeline-count {
  width: auto;
  min-width: 70px;
}
.insight-table td,
.insight-table th {
  font-size: 12.5px;
}
.speed-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 14px;
}
.speed-lists h3 {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.speed-lists ol {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
}
.speed-lists li {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px solid var(--line);
}
.chart-bar-part {
  width: 100%;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}
.legend-swatch {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--line-strong);
  margin-right: 4px;
}
.legend-swatch.replied {
  background: var(--accent);
}
.board-column.drop-target {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
}
.board-card[draggable="true"] {
  cursor: grab;
}
.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.inline-check input {
  accent-color: var(--accent);
}
@media print {
  .app-header,
  .topbar,
  .work-category-bar,
  .heading-actions,
  .page-footnote,
  .sync-dock,
  .toast,
  .notice,
  .digest {
    display: none !important;
  }
  .page:not(#insights-page) {
    display: none !important;
  }
  .panel {
    break-inside: avoid;
  }
}
.insight-table th.num,
.insight-table td.num {
  text-align: right;
}

/* -- clickable overview and insights ------------------------------------ */
button.metric {
  text-align: left;
  color: inherit;
  border-radius: 6px;
  padding: 4px 6px;
  margin: -4px -6px;
}
button.metric:hover,
button.metric:focus-visible {
  background: var(--surface-2);
}
button.metric:hover .metric-label {
  color: var(--ink);
}
.chart-legend {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
}
.chart-legend .legend-swatch.replied {
  margin-left: 8px;
}
.chart-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.chart-scroll .weekly-chart {
  min-width: calc(var(--weeks, 8) * 48px);
}
button.chart-column {
  cursor: pointer;
  color: inherit;
  border-radius: 4px;
}
button.chart-column:hover .chart-bar,
button.chart-column:focus-visible .chart-bar {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}
button.chart-column:hover .chart-label {
  color: var(--ink);
}
button.pipeline-row {
  width: 100%;
  color: inherit;
  font: inherit;
  font-size: 12.5px;
  text-align: left;
  border-radius: 4px;
  padding: 3px 4px;
  margin: -3px -4px;
  box-sizing: content-box;
}
button.pipeline-row:hover,
button.pipeline-row:focus-visible {
  background: var(--surface-2);
}
button.pipeline-row:hover .pipeline-name {
  color: var(--ink);
}
.insight-table tr[data-list] {
  cursor: pointer;
}
.insight-table tr[data-list]:hover td {
  background: var(--surface-2);
}
.speed-lists li button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
}
.speed-lists li button:hover span {
  color: var(--accent);
}
.section-link {
  margin-top: 10px;
  font-size: 12px;
  text-align: left;
}
.list-modal {
  width: min(640px, calc(100vw - 32px));
}
.list-content {
  max-height: min(60vh, 560px);
  overflow-y: auto;
  padding: 0 4px 6px;
}
.list-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 12px;
  color: var(--muted);
}
.list-stats strong {
  display: block;
  font-size: 18px;
  font-weight: 550;
  color: var(--ink);
}
.list-rows {
  display: grid;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 6px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-align: left;
  border-radius: 4px;
}
.list-row:hover,
.list-row:focus-visible {
  background: var(--surface-2);
}
.list-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  font-size: 13px;
}
.list-main small,
.list-note,
.list-date {
  font-size: 12px;
  color: var(--dim);
}
.list-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-note {
  color: var(--muted);
  white-space: nowrap;
}
.list-date {
  width: 88px;
  text-align: right;
  white-space: nowrap;
}

/* -- goals ----------------------------------------------------------------- */
.goals-panel {
  margin-bottom: 1.25rem;
}
.goals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 6px 24px;
}
.goal-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name count" "track track" "foot foot";
  gap: 5px 10px;
  padding: 8px 10px;
  border-radius: 6px;
  color: inherit;
  text-align: left;
  --stage-color: var(--accent);
}
.goal-row.met {
  --stage-color: var(--offer);
}
.goal-row:hover,
.goal-row:focus-visible {
  background: var(--surface-2);
}
.goal-name {
  grid-area: name;
  font-size: 13px;
}
.goal-row .pipeline-track {
  grid-area: track;
}
.goal-count {
  grid-area: count;
  font-size: 12px;
  color: var(--muted);
}
.goal-count strong {
  font-size: 15px;
  color: var(--ink);
  font-weight: 550;
}
.goal-foot {
  grid-area: foot;
  font-size: 12px;
  color: var(--dim);
}
.goal-row.met .goal-foot {
  color: var(--offer);
}
.goals-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.goals-empty .button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.goals-editor {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}
.goal-edit-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr auto;
  gap: 10px;
  align-items: end;
}
.goal-edit-row .icon-button {
  margin-bottom: 2px;
}

/* -- settings and dialog polish -------------------------------------------- */
dialog .modal-header .icon-button:focus-visible {
  outline-width: 1px;
  outline-offset: 2px;
}
.modal-header {
  align-items: flex-start;
}
.modal-header .eyebrow {
  margin-bottom: 4px;
}
.modal-footer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.settings-modal[open] {
  display: flex;
  flex-direction: column;
  height: min(760px, calc(100dvh - 40px));
  overflow: hidden;
}
.settings-modal form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.settings-modal .settings-tabs {
  margin: 4px 0 0;
}
.settings-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 4px 20px 0;
}
.settings-modal .provider-rail {
  position: sticky;
  top: 0;
  align-self: start;
  max-height: calc(min(760px, 100dvh - 40px) - 230px);
  overflow-y: auto;
}
.general-panel {
  display: grid;
}
.settings-group {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.settings-group:first-child {
  border-top: 0;
  padding-top: 4px;
}
.settings-group-head h3 {
  font-size: 13.5px;
  font-weight: 550;
  margin-bottom: 4px;
}
.settings-group-head p {
  font-size: 12.5px;
  color: var(--dim);
  line-height: 1.5;
}
.settings-group-body {
  display: grid;
  gap: 16px;
  max-width: 520px;
}
.settings-group-body > label {
  margin-bottom: 0;
}
.check-row {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 12px;
  margin: 0 0 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  cursor: pointer;
}
.check-row:hover {
  border-color: var(--line-strong);
}
.check-row input {
  margin: 2px 0 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.check-row strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.check-row small {
  display: block;
  font-size: 12px;
  color: var(--dim);
  line-height: 1.5;
  margin-top: 2px;
}
.input-suffix {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 200px;
}
.input-suffix input {
  flex: 1;
}
.input-suffix > span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}
.settings-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.settings-inline strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
.settings-inline small {
  display: block;
  font-size: 12px;
  color: var(--dim);
  margin-top: 2px;
}
.settings-inline .button {
  white-space: nowrap;
}
#sync-form .check-row {
  margin-bottom: 14px;
}
@media (max-width: 680px) {
  .settings-group {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
