/* Clay tokens from GetDesign; see docs/DESIGN.md. */
:root {
  color-scheme: light;
  --canvas: #fffaf0;
  --surface: #ffffff;
  --surface-2: #faf5e8;
  --surface-3: #f5f0e0;
  --line: #e5e5e5;
  --line-strong: #d6d1c4;
  --ink: #0a0a0a;
  --muted: #3a3a3a;
  --subtle: #6a6a6a;
  --accent: #0a0a0a;
  --accent-hover: #1f1f1f;
  --success: #227348;
  --pink: #ff4d8b;
  --teal: #1a3a3a;
  --lavender: #b8a4ed;
  --peach: #ffb084;
  --ochre: #e8b94a;
  --mint: #a4d4c5;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
.swipe-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}
body[data-view="swipe"] .metrics {
  display: none;
}
.swipe-intro h2 {
  font-size: 25px;
  margin: 8px 0;
}
.swipe-intro p,
.swipe-help {
  color: var(--subtle);
}
.swipe-stage {
  max-width: 780px;
  margin: 0 auto;
  padding: 10px 0 24px;
}
.mail-connection {
  padding: 22px;
  margin-bottom: 18px;
}
.mail-connection .panel-title {
  padding: 0;
  flex-wrap: wrap;
}
.mail-connection p,
.mail-connection details {
  margin-top: 12px;
}
.mail-connection #mail-description {
  margin-bottom: 12px;
}
.mail-connection summary {
  cursor: pointer;
}
#mail-dialog > p {
  margin-bottom: 18px;
}
.swipe-feedback {
  min-height: 28px;
  color: var(--teal);
  text-align: center;
}
.swipe-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 30px;
  box-shadow:
    0 10px 0 -5px var(--surface-3),
    0 18px 32px #1a3a3a0a;
  touch-action: pan-y;
  transition: transform 180ms ease;
  overflow-wrap: anywhere;
}
.swipe-card.dragging {
  transition: none;
  cursor: grabbing;
  user-select: none;
}
.swipe-card-heading,
.swipe-letter-heading,
.swipe-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.swipe-card > h2 {
  font-size: 27px;
  line-height: 1.2;
  margin: 18px 0 8px;
}
.swipe-card .skill-tags {
  margin: 20px 0;
}
.swipe-letter-heading {
  margin: 22px 0 10px;
}
.swipe-letter {
  margin: 0;
  padding: 22px;
  border-radius: 12px;
  background: var(--surface-2);
  font: inherit;
  white-space: pre-wrap;
}
.swipe-delivery {
  display: grid;
  gap: 7px;
  padding: 18px 0;
  font-size: 13px;
}
.swipe-delivery a,
.swipe-blocked a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.swipe-blocked {
  padding: 18px;
  background: #e8b94a18;
  border: 1px solid #e8b94a66;
  border-radius: 12px;
}
.swipe-blocked ul {
  padding-left: 18px;
  font-size: 13px;
  margin: 10px 0;
}
.swipe-blocked li + li {
  margin-top: 5px;
}
.swipe-ready {
  padding: 14px;
  background: #a4d4c533;
  border-radius: 10px;
  color: var(--success);
}
.swipe-actions {
  margin: 24px 0 12px;
}
.swipe-actions > button {
  flex: 1;
  justify-content: center;
  min-height: 48px;
}
.swipe-actions > button:disabled {
  cursor: not-allowed;
}
.swipe-help {
  font-size: 12px;
  text-align: center;
}
.swipe-stamp {
  pointer-events: none;
  position: absolute;
  top: 55px;
  padding: 4px 12px;
  border: 3px solid currentColor;
  border-radius: 8px;
  font-size: 24px;
  font-weight: 700;
  opacity: 0;
  background: var(--surface);
}
.swipe-stamp.skip {
  right: 24px;
  transform: rotate(12deg);
  color: #9f3755;
}
.swipe-stamp.apply {
  left: 24px;
  transform: rotate(-12deg);
  color: var(--success);
}
.drag-apply .swipe-stamp.apply,
.drag-skip .swipe-stamp.skip {
  opacity: 1;
}
@media (max-width: 600px) {
  .swipe-card {
    padding: 20px 16px;
    border-radius: 16px;
  }
  .swipe-card > h2 {
    font-size: 23px;
  }
  .swipe-letter {
    padding: 16px;
  }
  .swipe-intro {
    flex-direction: column;
    gap: 10px;
  }
  .swipe-card-heading {
    align-items: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .swipe-card {
    transition: none;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
input,
select,
textarea {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
  outline: none;
}
input::placeholder,
textarea::placeholder {
  color: var(--subtle);
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
textarea {
  resize: vertical;
}
select {
  cursor: pointer;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 600;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.35px;
  font-weight: 600;
}
h3 {
  font-size: 15px;
  font-weight: 500;
}
small {
  font-size: 12px;
}
label {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
label input,
label textarea,
label select {
  margin-top: 7px;
}
svg.icon {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}
.subtle {
  color: var(--subtle);
  font-size: 12px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.3px;
  color: var(--subtle);
  margin-bottom: 12px;
}
.primary,
.secondary,
.text-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  min-height: 38px;
  padding: 8px 14px;
  font-weight: 500;
  font-size: 13px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.primary {
  background: var(--accent);
  color: white;
}
.primary:hover {
  background: var(--accent-hover);
}
.secondary {
  background: var(--surface-2);
  border-color: var(--line-strong);
}
.secondary:hover {
  background: var(--surface-3);
}
.text-button,
.icon-button {
  background: transparent;
  color: var(--subtle);
}
.text-button:hover,
.icon-button:hover {
  color: var(--ink);
  background: var(--surface-3);
}
.icon-button {
  width: 34px;
  min-height: 34px;
  padding: 7px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 30;
  padding: 10px;
  background: var(--accent);
}
.skip-link:focus {
  top: 16px;
}
.app-shell {
  display: grid;
  grid-template-columns: 234px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--surface);
  padding: 25px 14px 15px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
  margin-bottom: 30px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.brand-sub {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1px;
  color: var(--subtle);
  margin-top: 1px;
}
.workspace-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 3px 27px;
}
.avatar {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  background: var(--surface-3);
  flex-shrink: 0;
}
.workspace-chip strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  max-width: 104px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workspace-chip small {
  color: var(--subtle);
  font-size: 10px;
}
.private-label {
  color: var(--subtle);
  font-size: 8px;
  letter-spacing: 0.5px;
  margin-left: auto;
}
.nav-heading {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--subtle);
  padding: 0 12px;
  margin: 0 0 9px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 28px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  border-radius: 6px;
  padding: 10px 12px;
  min-height: 38px;
}
.nav-item:hover {
  background: var(--surface-3);
  color: var(--ink);
}
.nav-item.active {
  background: var(--mint);
  color: var(--teal);
}
.nav-icon {
  color: var(--subtle);
}
.nav-item.active .nav-icon {
  color: var(--ink);
}
.nav-count {
  margin-left: auto;
  font-size: 10px;
  color: var(--subtle);
  background: var(--surface-3);
  padding: 1px 6px;
  border-radius: 4px;
}
.external {
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
}
.agent-state {
  display: grid;
  grid-template-columns: 6px 1fr;
  align-items: center;
  gap: 3px 9px;
  padding: 14px 12px 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.agent-state strong {
  font-size: 11px;
  font-weight: 500;
}
.agent-state small {
  grid-column: 2;
  color: var(--subtle);
  font-size: 10px;
}
.sidebar-version {
  display: flex;
  justify-content: space-between;
  color: var(--subtle);
  font-size: 9px;
  padding: 14px 12px 0;
}
.topbar {
  height: 66px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  gap: 16px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  color: var(--subtle);
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--muted);
}
.slash {
  color: var(--line-strong);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.updated {
  font-size: 11px;
  color: var(--subtle);
}
.workspace-body {
  padding: 36px 34px 20px;
  max-width: 1580px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.page-heading .eyebrow {
  margin-bottom: 9px;
}
.page-heading p {
  color: var(--subtle);
  font-size: 13px;
  margin-top: 10px;
}
.page-heading .primary {
  min-height: 40px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}
.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  min-height: 130px;
}
.metric-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: var(--subtle);
  font-size: 11px;
}
.metric-label .icon {
  width: 15px;
  height: 15px;
  color: var(--subtle);
}
.metric-value {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -1.3px;
  margin: 10px 0 4px;
  line-height: 1;
}
.metric small {
  font-size: 10px;
  color: var(--subtle);
}
.content-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.panel-title {
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.panel-title h2 {
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.count-pill {
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 0 22px 17px;
  border-bottom: 1px solid var(--line);
}
.tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.tab {
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 500;
  min-height: 32px;
}
.tab:hover {
  color: var(--ink);
}
.tab.active {
  background: var(--surface-3);
  border-color: var(--line-strong);
  color: var(--ink);
}
.tab span {
  margin-left: 5px;
  color: var(--subtle);
  font-size: 10px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 9px;
  width: 260px;
  max-width: 100%;
  color: var(--subtle);
}
.search-box input {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font-size: 11px;
  min-width: 0;
}
.search-box .icon {
  width: 14px;
  height: 14px;
}
.search-box kbd {
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-size: 10px;
  padding: 0 4px;
}
.filter-row {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.filter-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  white-space: nowrap;
  color: var(--subtle);
}
.filter-row select {
  width: auto;
  margin: 0;
  padding: 4px 20px 4px 8px;
  font-size: 11px;
  border-color: var(--line);
  background: var(--surface);
}
.filter-row .text-button {
  font-size: 10px;
  min-height: 26px;
  padding: 3px 0;
  margin-left: auto;
}
.list-heading {
  display: grid;
  grid-template-columns: minmax(200px, 1.6fr) minmax(130px, 1fr) 64px 104px;
  gap: 18px;
  padding: 13px 22px;
  font-size: 9px;
  letter-spacing: 0.6px;
  color: var(--subtle);
  border-bottom: 1px solid var(--line);
}
.job-row {
  display: grid;
  grid-template-columns: minmax(200px, 1.6fr) minmax(130px, 1fr) 64px 104px;
  gap: 18px;
  width: 100%;
  align-items: center;
  padding: 19px 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  min-height: 96px;
  transition: background 0.12s;
}
.job-row:last-child {
  border-bottom: 0;
}
.job-row:hover {
  background: var(--surface-2);
}
.role-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.company-avatar {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface-3);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
}
.role-copy {
  min-width: 0;
}
.role-title {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}
.role-meta {
  display: block;
  font-size: 10px;
  color: var(--subtle);
}
.job-details {
  min-width: 0;
}
.job-location {
  display: block;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}
.job-labels {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--subtle);
  font-size: 10px;
}
.label-divider {
  color: var(--line-strong);
}
.fit {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: 14px;
  font-weight: 500;
}
.fit small {
  font-size: 10px;
  font-weight: 400;
  color: var(--subtle);
}
.fit-meter {
  width: 37px;
  height: 3px;
  border-radius: 3px;
  background: var(--line-strong);
  margin-top: 7px;
  overflow: hidden;
}
.fit-fill {
  height: 100%;
  background: var(--teal);
  max-width: 100%;
}
.fit-strong .fit-fill {
  background: var(--success);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 400;
  white-space: nowrap;
  color: var(--subtle);
  background: var(--surface-2);
}
.badge.approved,
.badge.interview,
.badge.offer {
  color: var(--teal);
  border-color: var(--mint);
  background: var(--mint);
}
.badge.draft {
  color: var(--muted);
}
.panel-footer {
  border-top: 1px solid var(--line);
  padding: 13px 22px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 9px;
  color: var(--subtle);
  background: var(--surface-2);
}
.job-list {
  max-height: 640px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.empty-state {
  padding: 60px 24px;
  text-align: center;
  color: var(--subtle);
  font-size: 13px;
}
.empty-state h3 {
  color: var(--ink);
  margin-bottom: 7px;
}
.workspace-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  color: var(--subtle);
  padding: 23px 0 6px;
}
.workspace-footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-intro {
  margin-bottom: 20px;
}
.section-intro p {
  color: var(--subtle);
  font-size: 12px;
  margin-top: 7px;
}
.pipeline-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
  overflow: auto;
  padding-bottom: 15px;
}
.pipeline-column {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 280px;
}
.column-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  padding: 15px;
  border-bottom: 1px solid var(--line);
}
.pipeline-card {
  display: block;
  width: calc(100% - 20px);
  margin: 10px;
  padding: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-2);
  text-align: left;
}
.pipeline-card:hover {
  border-color: var(--subtle);
}
.pipeline-card strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 8px;
}
.pipeline-card small {
  color: var(--subtle);
  display: block;
  font-size: 10px;
}
.column-empty {
  font-size: 11px;
  color: var(--subtle);
  padding: 24px 15px;
  text-align: center;
}
.insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.source-row,
.funnel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.source-row small {
  display: block;
  font-size: 10px;
  color: var(--subtle);
  margin-top: 2px;
}
.source-good {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
  font-size: 11px;
}
.funnel-bar {
  width: 100px;
  height: 5px;
  background: var(--line-strong);
  border-radius: 5px;
  overflow: hidden;
  margin-left: auto;
}
.funnel-fill {
  height: 100%;
  background: var(--accent);
}
.run-summary {
  margin-top: 20px;
  padding: 22px;
  color: var(--subtle);
  font-size: 12px;
}
.run-summary h2 {
  color: var(--ink);
  margin-bottom: 8px;
}
.notice {
  padding: 11px 15px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 20px;
}
.notice a {
  color: var(--accent-hover);
}
dialog {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 0;
  max-height: 90vh;
}
dialog::backdrop {
  background: rgba(26, 58, 58, 0.4);
}
.job-dialog {
  width: 740px;
  max-width: calc(100vw - 32px);
}
.detail-heading {
  padding: 25px 28px 20px;
  border-bottom: 1px solid var(--line);
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.dialog-heading .icon-button {
  font-size: 24px;
  line-height: 1;
}
.detail-company {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--subtle);
  font-size: 12px;
  margin-bottom: 18px;
}
.detail-company .company-avatar {
  width: 32px;
  height: 32px;
}
.detail-heading h2 {
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -0.6px;
  font-weight: 500;
}
.detail-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.detail-tabs {
  border-bottom: 1px solid var(--line);
  padding: 12px 28px;
  display: flex;
  gap: 8px;
}
.detail-body {
  padding: 24px 28px;
}
.detail-section {
  margin-bottom: 24px;
}
.detail-section:last-child {
  margin-bottom: 0;
}
.detail-section h3 {
  margin-bottom: 12px;
  font-size: 12px;
}
.detail-section p,
.detail-section li {
  color: var(--muted);
  font-size: 12px;
}
.detail-section ul {
  padding-left: 18px;
  margin: 0;
}
.detail-section li {
  margin-bottom: 7px;
}
.skill-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.skill-tags span {
  padding: 4px 8px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 10px;
  color: var(--muted);
}
.description-text {
  white-space: pre-wrap;
  max-height: 260px;
  overflow: auto;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.review-box {
  padding: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-2);
}
.review-box h3 {
  color: var(--ink);
}
.detail-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 17px 28px;
  background: var(--surface-2);
}
.detail-actions .push-right {
  margin-left: auto;
}
.letter-area {
  min-height: 260px;
  font-size: 12px;
  line-height: 1.75;
  margin-top: 12px;
}
.letter-source {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--subtle);
  font-size: 10px;
}
.letter-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.approval-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 20px 0 12px;
  font-size: 12px;
  color: var(--muted);
}
.approval-check input {
  margin-top: 3px;
}
.outreach-letter {
  white-space: pre-wrap;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-2);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.form-dialog {
  width: 460px;
  max-width: calc(100vw - 32px);
  padding: 26px;
}
.form-dialog h2 {
  font-size: 23px;
}
.form-dialog .dialog-heading {
  margin-bottom: 24px;
}
.form-dialog form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.check-row input {
  margin: 0;
}
.form-error {
  color: var(--muted);
  font-size: 12px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 30px rgba(26, 58, 58, 0.12);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 12px;
  max-width: 90vw;
}
.detail-error {
  padding: 12px 28px;
  color: var(--muted);
  font-size: 12px;
}
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.login-card {
  width: 390px;
  max-width: 100%;
}
.login-mark {
  margin-bottom: 34px;
}
.login-card .eyebrow {
  display: block;
}
.login-card h1 {
  font-size: 38px;
  letter-spacing: -1.2px;
  line-height: 1.18;
}
.login-card > p {
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 17px;
}
.login-card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}
.login-card form label {
  font-size: 12px;
}
.login-card form input {
  margin: 0;
  height: 44px;
}
.login-card .primary {
  min-height: 44px;
  justify-content: space-between;
}
.login-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--subtle);
  margin-top: 30px;
}
.login-card #login-error {
  font-size: 12px;
  color: var(--muted);
}
.fit-meter,
.fit-fill,
.funnel-fill {
  display: block;
}
.detail-actions select {
  width: auto;
  max-width: 180px;
  font-size: 11px;
  padding: 9px 12px;
}
@media (min-width: 1700px) {
  .workspace-body {
    padding-top: 46px;
  }
  .metric {
    padding: 24px;
  }
  .job-row {
    padding-top: 23px;
    padding-bottom: 23px;
  }
  .job-list {
    max-height: 760px;
  }
}
@media (max-width: 1190px) {
  .app-shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .workspace-body {
    padding: 28px 24px 16px;
  }
  .topbar {
    padding: 0 24px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 16px 14px;
  }
  .metric-label {
    font-size: 10px;
  }
  .metric small {
    font-size: 9px;
  }
  .workspace-chip {
    padding: 8px;
  }
  .private-label {
    display: none;
  }
  .list-heading,
  .job-row {
    grid-template-columns: minmax(150px, 1.5fr) minmax(115px, 1fr) 47px 87px;
    gap: 12px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .search-box {
    width: 100%;
  }
  .filter-row {
    gap: 12px;
  }
  .job-row {
    padding: 17px;
  }
  .list-heading {
    padding: 13px 17px;
  }
  .company-avatar {
    width: 30px;
    height: 30px;
  }
  .role-cell {
    gap: 9px;
  }
  .panel-footer {
    flex-direction: column;
    gap: 3px;
  }
}
@media (max-width: 850px) {
  .app-shell {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .sidebar {
    padding: 20px 10px;
  }
  .brand {
    padding: 0 10px;
    margin-bottom: 24px;
  }
  .brand > span,
  .workspace-chip,
  .nav-heading,
  .nav-count,
  .sidebar-version,
  .agent-state,
  .external {
    display: none;
  }
  .nav-item {
    font-size: 0;
    justify-content: center;
    padding: 12px;
    gap: 0;
    min-height: 44px;
  }
  .nav-icon {
    font-size: 14px;
  }
  .sidebar nav {
    margin-bottom: 18px;
  }
  .page-heading {
    align-items: flex-start;
  }
  h1 {
    font-size: 27px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metric {
    min-height: 110px;
  }
  .metric-label {
    font-size: 11px;
  }
  .metric small {
    font-size: 10px;
  }
  .filter-row {
    flex-wrap: wrap;
    gap: 10px 18px;
  }
  .updated {
    display: none;
  }
  .workspace-footer {
    flex-direction: column;
    gap: 6px;
  }
  .insights-grid {
    grid-template-columns: 1fr;
  }
  .list-heading,
  .job-row {
    grid-template-columns: minmax(150px, 1fr) 45px 90px;
  }
  .list-heading > span:nth-child(2),
  .job-details {
    display: none;
  }
  .panel-title .subtle {
    font-size: 10px;
  }
  .pipeline-board {
    grid-template-columns: repeat(5, 180px);
  }
}
@media (max-width: 580px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 8px;
  }
  .brand {
    margin: 0;
    padding: 0 4px;
  }
  .brand img {
    width: 27px;
    height: 27px;
  }
  .sidebar nav {
    flex-direction: row;
    margin: 0;
    gap: 2px;
  }
  .sidebar nav[aria-label="Tools"] {
    margin-left: auto;
  }
  .sidebar
    nav[aria-label="Tools"]
    > *:not(#preferences-button):not([data-view="focus"]) {
    display: none;
  }
  .sidebar-bottom {
    display: none;
  }
  .nav-item {
    padding: 10px;
    min-height: 40px;
    min-width: 36px;
  }
  .topbar {
    height: 49px;
    padding: 0 18px;
  }
  .workspace-body {
    padding: 25px 16px 15px;
  }
  .page-heading {
    flex-direction: column;
    gap: 18px;
    margin-bottom: 22px;
  }
  .page-heading .primary {
    width: 100%;
  }
  .page-heading .eyebrow {
    font-size: 10px;
  }
  h1 {
    font-size: 29px;
  }
  .metrics {
    gap: 8px;
    margin-bottom: 22px;
  }
  .metric {
    padding: 15px 12px;
    min-height: 117px;
  }
  .metric-label {
    font-size: 10px;
  }
  .metric-label .icon {
    display: none;
  }
  .metric-value {
    font-size: 29px;
  }
  .metric small {
    font-size: 9px;
  }
  .panel-title {
    padding: 16px 14px;
  }
  .panel-title h2 {
    font-size: 13px;
  }
  .panel-title > .subtle {
    display: none;
  }
  .toolbar {
    padding: 0 14px 14px;
    gap: 12px;
  }
  .tab {
    padding: 7px 8px;
    font-size: 10px;
  }
  .tabs {
    gap: 1px;
  }
  .filter-row {
    padding: 11px 14px;
    gap: 9px 15px;
  }
  .filter-row label {
    font-size: 9px;
  }
  .filter-row select {
    font-size: 10px;
  }
  .filter-row .text-button {
    margin-left: 0;
  }
  .list-heading,
  .job-row {
    grid-template-columns: minmax(110px, 1fr) 34px 66px;
    gap: 9px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .list-heading {
    font-size: 8px;
  }
  .role-cell {
    gap: 8px;
  }
  .company-avatar {
    display: none;
  }
  .role-title {
    font-size: 11px;
  }
  .role-meta {
    font-size: 9px;
  }
  .fit {
    font-size: 12px;
  }
  .fit small {
    font-size: 8px;
  }
  .fit-meter {
    width: 28px;
  }
  .badge {
    font-size: 8px;
    padding: 3px 4px;
  }
  .job-row {
    min-height: 91px;
  }
  .panel-footer {
    padding: 12px 14px;
    font-size: 8px;
  }
  .job-list {
    max-height: none;
  }
  .workspace-footer {
    font-size: 9px;
  }
  .job-dialog {
    max-width: 100vw;
    width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    border: 0;
    margin: 0;
  }
  .detail-heading,
  .detail-body {
    padding: 22px 20px;
  }
  .detail-tabs {
    padding: 12px 20px;
  }
  .detail-actions {
    padding: 15px 20px;
  }
  .detail-heading h2 {
    font-size: 22px;
  }
  .detail-actions .push-right {
    margin-left: 0;
  }
  .detail-actions .primary {
    flex: 1;
  }
  .dialog-heading .icon-button {
    min-width: 40px;
    min-height: 40px;
  }
  .form-dialog {
    padding: 22px;
    max-height: 95dvh;
  }
  .primary,
  .secondary {
    min-height: 44px;
  }
  .login-card h1 {
    font-size: 34px;
  }
  .login-page {
    padding: 28px;
  }
  .login-mark {
    margin-bottom: 28px;
  }
  .funnel-bar {
    width: 60px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Clay's warm surfaces and saturated cards, sized for a working dashboard. */
h1 {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -1.6px;
  line-height: 1.1;
}
h2 {
  font-size: 18px;
}
h3 {
  font-size: 16px;
}
input,
select,
textarea {
  border-radius: 12px;
}
.primary,
.secondary {
  border-radius: 12px;
  min-height: 44px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
}
.primary:disabled {
  background: var(--line);
  color: var(--subtle);
  opacity: 1;
}
.icon-button {
  width: 44px;
  min-height: 44px;
  border-radius: 12px;
}
.text-button {
  color: var(--muted);
}
.skip-link {
  color: white;
  border-radius: 12px;
}
.sidebar {
  background: var(--surface-2);
}
.brand {
  font-weight: 600;
  font-size: 18px;
}
.workspace-chip {
  background: var(--surface-3);
  border: 0;
  border-radius: 16px;
}
.avatar {
  background: var(--lavender);
  border: 0;
  border-radius: 10px;
  color: var(--ink);
}
.nav-item {
  border-radius: 12px;
  font-size: 13px;
  min-height: 44px;
  color: var(--muted);
}
.nav-item.active {
  font-weight: 600;
}
.nav-count {
  background: var(--surface);
  color: var(--teal);
  border-radius: 999px;
}
.topbar {
  background: var(--canvas);
}
.workspace-body {
  padding-top: 40px;
}
.eyebrow {
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--teal);
}
.page-heading {
  margin-bottom: 32px;
}
.page-heading p {
  font-size: 14px;
  line-height: 1.55;
}
.metrics {
  gap: 16px;
  margin-bottom: 32px;
}
.metric {
  border: 0;
  border-radius: 24px;
  padding: 24px;
  min-height: 160px;
  color: var(--ink);
}
.metric:nth-child(1) {
  background: var(--lavender);
}
.metric:nth-child(2) {
  background: var(--peach);
}
.metric:nth-child(3) {
  background: var(--pink);
}
.metric:nth-child(4) {
  background: var(--ochre);
}
.metric-label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
}
.metric-label .icon {
  color: var(--ink);
  width: 18px;
  height: 18px;
}
.metric-value {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -1.5px;
  margin: 14px 0 8px;
}
.metric small {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.4;
  display: block;
}
.content-panel {
  border-radius: 16px;
}
.panel-title {
  padding: 22px 24px;
}
.panel-title h2 {
  font-size: 17px;
}
.count-pill {
  border: 0;
  background: var(--surface-3);
  color: var(--muted);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
}
.tabs {
  flex-wrap: wrap;
  min-width: 0;
}
.tab {
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 12px;
  min-height: 38px;
  color: var(--muted);
}
.tab.active {
  background: var(--surface-3);
  border-color: transparent;
}
.search-box {
  border-radius: 12px;
  padding: 10px 12px;
  width: 280px;
  background: var(--canvas);
}
.search-box input {
  font-size: 12px;
}
.filter-row {
  background: var(--surface-2);
  gap: 16px;
  flex-wrap: wrap;
}
.filter-row label {
  font-size: 11px;
}
.filter-row select {
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 8px;
}
.list-heading {
  font-size: 10px;
}
.role-title {
  font-size: 14px;
}
.role-meta {
  font-size: 11px;
}
.job-location {
  font-size: 12px;
}
.job-labels {
  font-size: 11px;
}
.company-avatar {
  background: var(--surface-3);
  border: 0;
  border-radius: 12px;
  color: var(--teal);
}
.job-row:nth-child(4n + 1) .company-avatar {
  background: var(--mint);
}
.job-row:nth-child(4n + 2) .company-avatar {
  background: var(--lavender);
}
.job-row:nth-child(4n + 3) .company-avatar {
  background: var(--peach);
}
.badge {
  border-radius: 999px;
  font-size: 10px;
  padding: 4px 8px;
  background: var(--surface-3);
  border-color: transparent;
  color: var(--muted);
}
.badge.draft {
  background: var(--lavender);
  color: var(--ink);
}
.panel-footer {
  font-size: 10px;
}
.workspace-footer {
  font-size: 11px;
}
.pipeline-column {
  border-radius: 16px;
  background: var(--surface-2);
  overflow: hidden;
}
.column-title {
  font-size: 13px;
  background: var(--lavender);
  color: var(--ink);
  border: 0;
  padding: 18px 14px;
}
.pipeline-column:nth-child(2) .column-title {
  background: var(--pink);
}
.pipeline-column:nth-child(3) .column-title {
  background: var(--peach);
}
.pipeline-column:nth-child(4) .column-title {
  background: var(--ochre);
}
.pipeline-column:nth-child(5) .column-title {
  background: var(--mint);
}
.pipeline-card {
  border-radius: 12px;
  background: var(--surface);
  border-color: var(--line);
}
.pipeline-card strong {
  font-size: 12px;
}
.pipeline-card small {
  font-size: 11px;
}
.source-row,
.funnel-row {
  font-size: 13px;
}
.source-row small {
  font-size: 11px;
}
dialog {
  border-radius: 24px;
  border-color: var(--line);
  box-shadow: 0 18px 60px rgba(26, 58, 58, 0.12);
}
.detail-heading {
  background: var(--surface-2);
}
.detail-heading h2,
.form-dialog h2 {
  font-weight: 500;
  letter-spacing: -0.8px;
}
.detail-section h3 {
  font-size: 14px;
}
.detail-section p,
.detail-section li,
.description-text,
.letter-area,
.outreach-letter {
  font-size: 13px;
}
.skill-tags span {
  border-radius: 999px;
  background: var(--surface-3);
  font-size: 11px;
  border: 0;
}
.review-box {
  border-radius: 16px;
  background: var(--surface-2);
  border-color: var(--line);
}
.detail-tabs {
  flex-wrap: wrap;
}
.detail-meta .badge {
  white-space: normal;
  overflow-wrap: anywhere;
}
.form-error,
#login-error,
.detail-error {
  color: #b42318;
}
.toast {
  border-radius: 12px;
  background: var(--teal);
  color: white;
  border: 0;
  font-size: 13px;
}
.login-page {
  background: var(--canvas);
}
.login-card {
  width: 470px;
  padding: 40px;
  border-radius: 24px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.login-mark {
  margin-bottom: 28px;
}
.login-card h1 {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -1.6px;
}
.login-card > p {
  font-size: 14px;
  color: var(--muted);
}
.login-card form input {
  height: 48px;
  background: var(--surface);
}
.login-card .primary {
  min-height: 48px;
}
.login-footer {
  font-size: 12px;
}
@media (max-width: 1190px) {
  .metric {
    padding: 20px;
    min-height: 160px;
  }
  .metrics {
    gap: 12px;
  }
  .search-box {
    width: 100%;
  }
  .page-heading {
    gap: 20px;
  }
}
@media (max-width: 850px) {
  h1 {
    font-size: 34px;
  }
  .nav-item {
    font-size: 0;
  }
  .metric {
    min-height: 150px;
  }
  .workspace-body {
    padding-top: 30px;
  }
  .page-heading p {
    font-size: 13px;
  }
}
@media (max-width: 580px) {
  .sidebar {
    gap: 4px;
    padding: 10px 8px;
  }
  .nav-item {
    min-width: 44px;
    min-height: 44px;
    padding: 12px;
  }
  .workspace-body {
    padding: 28px 16px 16px;
  }
  h1 {
    font-size: 34px;
    letter-spacing: -1.3px;
  }
  .page-heading {
    gap: 20px;
    margin-bottom: 24px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .metrics {
    gap: 10px;
    margin-bottom: 24px;
  }
  .metric {
    border-radius: 20px;
    padding: 18px 14px;
    min-height: 152px;
  }
  .metric-label {
    font-size: 12px;
    line-height: 1.4;
  }
  .metric-value {
    font-size: 36px;
  }
  .metric small {
    font-size: 11px;
    line-height: 1.4;
  }
  .panel-title {
    padding: 18px 14px;
  }
  .panel-title h2 {
    font-size: 16px;
  }
  .tabs {
    gap: 2px;
  }
  .tab {
    font-size: 11px;
    padding: 8px 10px;
  }
  .filter-row {
    gap: 10px;
  }
  .filter-row label {
    font-size: 11px;
  }
  .filter-row select {
    font-size: 11px;
  }
  .list-heading,
  .job-row {
    grid-template-columns: minmax(100px, 1fr) 48px 82px;
    gap: 8px;
  }
  .role-title {
    font-size: 13px;
  }
  .role-meta {
    font-size: 10px;
  }
  .fit {
    font-size: 13px;
  }
  .badge {
    font-size: 9px;
    padding: 4px 6px;
  }
  .panel-footer {
    font-size: 10px;
  }
  .workspace-footer {
    font-size: 11px;
  }
  .job-dialog {
    border-radius: 0;
  }
  .detail-tabs {
    padding: 12px 16px;
  }
  .detail-tabs .tab {
    font-size: 12px;
  }
  .detail-heading,
  .detail-body {
    padding: 22px 18px;
  }
  .detail-actions {
    padding: 16px 18px;
  }
  .two-fields {
    gap: 12px;
  }
  .form-dialog {
    padding: 24px 20px;
  }
  .login-page {
    padding: 20px;
  }
  .login-card {
    padding: 30px 24px;
  }
  .login-card h1 {
    font-size: 34px;
  }
}

/* Tracker views share the existing Clay palette and control sizes. */
.sidebar {
  overflow-y: auto;
}
.tracker-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.setup-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--mint);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
}
.setup-card p {
  font-size: 13px;
  margin-top: 8px;
  max-width: 700px;
}
.setup-card h2 {
  font-size: 20px;
}
.readiness-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.readiness-row strong {
  font-size: 20px;
  font-weight: 500;
}
.readiness-note {
  padding: 20px 24px;
}
.row-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.row-badges .badge {
  white-space: normal;
  text-align: left;
  line-height: 1.4;
}
.badge.verified {
  background: var(--mint);
  color: var(--teal);
}
.badge.needs_review {
  background: #fff1c8;
  color: #675013;
}
.badge.rejected {
  background: #ffe4e4;
  color: #9b2424;
}
.load-more {
  padding: 20px;
  text-align: center;
}
.section-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.entity-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  min-width: 0;
}
.entity-card h3 {
  margin: 14px 0 8px;
  font-size: 18px;
}
.entity-card p,
.entity-card li {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.entity-card p + p {
  margin-top: 10px;
}
.entity-card ul {
  padding-left: 18px;
  margin: 16px 0;
}
.card-heading,
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.card-actions {
  margin-top: 20px;
  justify-content: flex-start;
}
.card-actions .text-button {
  padding: 8px 0;
  margin-right: 12px;
}
.card-note {
  white-space: pre-wrap;
  max-height: 160px;
  overflow: auto;
}
.suggestion-panel {
  padding: 24px;
  margin-top: 24px;
}
.suggestion-panel p {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 13px;
}
#company-suggestions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.task-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
}
.task-row > div:first-child {
  min-width: 0;
  flex: 1;
}
.task-row strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.task-row small {
  display: block;
  margin-top: 5px;
  color: var(--subtle);
  font-size: 11px;
}
.task-row p {
  font-size: 12px;
  margin-top: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.task-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 240px;
}
.task-actions button {
  font-size: 12px;
  padding: 8px 10px;
  min-height: 38px;
}
.overdue,
.task-row .overdue {
  color: #a13d20;
}
#resume-outline {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.75;
  padding: 24px;
  margin: 0;
  color: var(--muted);
}
#entity-fields,
#conditions-form,
#note-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#conditions-form {
  margin-bottom: 28px;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkbox-row input {
  margin: 0;
  flex-shrink: 0;
}
.evidence-row,
.history-row {
  border-left: 3px solid var(--mint);
  padding: 12px 16px;
  margin-bottom: 12px;
  background: var(--surface-2);
  border-radius: 0 12px 12px 0;
}
.evidence-row strong {
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.evidence-row p,
.history-row p {
  white-space: pre-wrap;
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.evidence-row a {
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.history-row small {
  color: var(--subtle);
  font-size: 11px;
}
.detail-body form label {
  font-size: 13px;
}
.detail-body form .primary,
.detail-body form .secondary {
  align-self: flex-start;
}
#today-jobs {
  max-height: none;
}
@media (max-width: 1100px) {
  .tracker-grid {
    grid-template-columns: 1fr;
  }
  .task-row {
    flex-wrap: wrap;
  }
  .task-actions {
    max-width: none;
  }
  .list-heading,
  .job-row {
    grid-template-columns: minmax(150px, 1.5fr) minmax(100px, 1fr) 50px 125px;
    gap: 12px;
  }
}
@media (max-width: 850px) {
  .list-heading,
  .job-row {
    grid-template-columns: minmax(130px, 1fr) 50px 125px;
  }
  .setup-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .section-intro {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 580px) {
  .sidebar {
    overflow: visible;
    max-width: 100vw;
  }
  .sidebar nav[aria-label="Main navigation"] {
    overflow-x: auto;
    min-width: 0;
    flex: 1;
    scrollbar-width: thin;
  }
  .sidebar nav[aria-label="Main navigation"] .nav-item {
    flex-shrink: 0;
    width: 44px;
  }
  .sidebar nav[aria-label="Tools"] {
    flex-shrink: 0;
    margin-left: 0;
  }
  .list-heading,
  .job-row {
    grid-template-columns: minmax(100px, 1fr) 38px 90px;
    gap: 8px;
  }
  .tracker-grid {
    gap: 16px;
  }
  .task-row {
    padding: 18px 16px;
    gap: 12px;
  }
  .task-actions {
    justify-content: flex-start;
    gap: 4px;
  }
  .task-actions button {
    min-height: 44px;
  }
  .setup-card {
    padding: 20px;
  }
  .setup-card h2 {
    font-size: 19px;
  }
  .entity-grid {
    grid-template-columns: 1fr;
  }
  .entity-card {
    padding: 20px;
  }
  .panel-title {
    flex-wrap: wrap;
  }
  .readiness-row,
  .readiness-note {
    padding: 16px;
  }
  .detail-actions .primary {
    flex: auto;
  }
}

/* Focus workbench: Clay surfaces and a contained Animmaster wave canvas. */
.focus-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 220px;
  margin-bottom: 24px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #eee5fa;
}
.focus-hero-copy {
  position: relative;
  z-index: 1;
}
.focus-hero h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  margin: 12px 0;
  letter-spacing: -1.5px;
}
.focus-hero p {
  max-width: 430px;
  line-height: 1.6;
}
.focus-hero a {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
#focus-waves {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
#focus-waves canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.focus-campaign-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.focus-campaign {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  background: #fffaf0;
}
.focus-campaign:nth-child(2) {
  background: #f3ebff;
}
.focus-campaign:nth-child(3) {
  background: #fbe9df;
}
.focus-campaign:nth-child(4) {
  background: #e5f3ed;
}
.focus-campaign h3 {
  margin: 12px 0 8px;
  font-size: 20px;
}
.focus-campaign p {
  line-height: 1.55;
}
.focus-campaign .skill-tags {
  margin: 12px 0 18px;
}
.focus-campaign button {
  margin-top: auto;
  align-self: flex-start;
  text-align: left;
}
.focus-campaign .eyebrow {
  font-size: 9px;
  letter-spacing: 1px;
}
.focus-workbench {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.focus-workbench .content-panel {
  min-width: 0;
  margin: 0;
  padding: 26px;
}
.focus-workbench p {
  line-height: 1.65;
}
#focus-form,
#portfolio-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
#focus-form label,
#portfolio-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
}
#focus-queries,
#portfolio-url {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  padding: 12px;
  font: inherit;
}
#focus-queries {
  min-height: 180px;
  line-height: 1.65;
  resize: vertical;
}
#focus-form button,
#portfolio-form button {
  justify-self: start;
}
.focus-project-search {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.focus-checklist {
  margin: 24px 0 0;
  padding-left: 20px;
  line-height: 1.8;
}
.keyword-evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 8px 0;
}
.keyword-evidence {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.keyword-evidence h3 {
  text-transform: none;
  font-size: 20px;
  margin: 0 0 14px;
}
.keyword-evidence p,
.keyword-match p {
  font-size: 12px;
  line-height: 1.7;
}
.keyword-evidence strong,
.keyword-match strong {
  font-size: 11px;
}
.keyword-match {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 14px 0;
}
.keyword-match h4 {
  margin: 0;
  font-size: 16px;
}
.keyword-match .card-heading {
  gap: 12px;
  flex-wrap: wrap;
}
.keyword-match.supported {
  border-left: 4px solid #48796c;
}
.keyword-match.required_gap {
  border-left: 4px solid #bd465c;
  background: #fff2ef;
}
.keyword-match.not_in_profile {
  border-left: 4px solid #b38a3e;
}
@media (prefers-reduced-motion: no-preference) {
  .focus-hero-copy {
    animation: focus-reveal 400ms ease-out both;
  }
  @keyframes focus-reveal {
    from {
      opacity: 0.5;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  .focus-campaign {
    transition:
      transform 180ms ease,
      box-shadow 180ms ease;
  }
  .focus-campaign:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 6px 0 rgba(37, 50, 48, 0.1);
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .focus-campaign:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 0 rgba(37, 50, 48, 0.1);
  }
}
@media (max-width: 1190px) {
  .focus-campaign-grid,
  .keyword-evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 850px) {
  .focus-workbench {
    grid-template-columns: 1fr;
  }
  .focus-hero {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 580px) {
  .focus-campaign-grid,
  .keyword-evidence-grid {
    grid-template-columns: 1fr;
  }
  .focus-hero {
    padding: 24px;
  }
  .focus-workbench .content-panel {
    padding: 20px;
  }
  .focus-workbench .panel-title {
    align-items: flex-start;
    flex-direction: column;
  }
}
#focus-view > .content-panel {
  padding: 26px;
}
.focus-workbench .panel-title,
#focus-view > .content-panel > .panel-title {
  padding: 0;
  margin-bottom: 18px;
}
@media (max-width: 580px) {
  #focus-view > .content-panel {
    padding: 20px;
  }
}
/* Browser companion shares the workspace's existing clay surface. */
.companion-panel {
  margin: 18px 0;
  padding: 26px;
}
.companion-panel .panel-title {
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin-bottom: 14px;
}
.companion-download {
  display: inline-block;
  margin: 12px 0;
  text-decoration: none;
}
.companion-panel details {
  margin: 10px 0;
}
.companion-panel summary {
  cursor: pointer;
}
.companion-panel li {
  margin: 8px 0;
}
#companion-feedback {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
@media (max-width: 580px) {
  .companion-panel {
    padding: 20px;
  }
}
.resource-panel {
  padding: 26px;
  margin-top: 20px;
}
.resource-panel .panel-title {
  padding: 0;
  flex-wrap: wrap;
  gap: 10px;
}
.resource-panel > p {
  max-width: 75ch;
}
.resource-panel h3 {
  margin: 24px 0 14px;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.resource-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  min-width: 0;
}
.resource-card > a {
  display: block;
  color: inherit;
  font-weight: 600;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.resource-card .badge {
  display: inline-block;
}
.resource-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 12px 0 0;
}
.resource-panel details {
  margin-top: 24px;
}
.resource-panel summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 14px;
}
@media (max-width: 1100px) {
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 580px) {
  .resource-grid {
    grid-template-columns: 1fr;
  }
  .resource-panel {
    padding: 20px;
  }
}
