:root {
  font: var(--text-md) / 22px var(--font-sans);
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}
.print-preview {
  width: 100%;
  height: 720px;
  border: 1px solid var(--border);
  background: white;
  border-radius: var(--radius-tag);
}
.saved-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 20px 0;
  font-size: var(--text-xs);
}
.saved-searches > span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.small-icon {
  min-width: 28px;
  min-height: 28px;
}
.recent-searches {
  margin: 12px 0;
  font-size: var(--text-sm);
}
.assistance-panel {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  margin: 22px 0;
}
.assistance-panel > p {
  font-size: var(--text-sm);
}
.assistance-panel fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px;
  margin: 20px 0;
}
.assistance-field {
  margin: 0 0 22px;
}
.assistance-field .suggestion {
  font-size: var(--text-sm);
  background: var(--surface);
  padding: 10px;
  border-radius: var(--radius-tag);
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  transition: background 0.15s;
}
a {
  color: var(--brand-deep);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 4px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 2px;
}
button svg,
a svg {
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.5px;
  font-weight: 650;
}
h2 {
  font-size: var(--text-xl);
  line-height: 1.35;
}
h3 {
  font-size: var(--text-md);
  font-weight: 600;
}
p {
  margin: 8px 0;
  color: var(--muted);
}
small {
  display: block;
  font-size: var(--text-xs);
  color: var(--muted);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
select,
textarea {
  border: 1px solid var(--control-border);
  background: var(--surface);
  width: 100%;
}
textarea {
  resize: vertical;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--text-xs);
  line-height: 18px;
  font-weight: 500;
}
form > label,
form > .form-grid {
  margin: 16px 0;
}
select {
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  display: inline-grid;
  place-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin: 0;
  border: 2px solid var(--control);
  border-radius: 6px;
  background: var(--surface);
  transition:
    background-color 0.2s,
    border-color 0.2s;
}
input[type="checkbox"]::after {
  content: "";
  width: 5px;
  height: 10px;
  margin-top: -2px;
  border: solid var(--brand-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s;
}
input[type="checkbox"]:checked {
  background: var(--action);
  border-color: var(--action);
}
input[type="checkbox"]:checked::after {
  transform: rotate(45deg) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  input[type="checkbox"],
  input[type="checkbox"]::after {
    transition: none;
  }
}
pre {
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
ul {
  padding-left: 20px;
}
li {
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.app-shell {
  display: flex;
  min-height: 100dvh;
}
.sidebar {
  width: 220px;
  padding: 18px 12px;
  background: var(--sidebar);
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  z-index: 5;
  border-right: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  font-size: var(--text-xl);
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--brand-ink);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-card);
  font-size: var(--text-2xl);
  font-weight: 700;
}
.eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 1.1px;
  font-weight: 600;
  color: var(--muted);
  margin: 24px 0 16px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-item {
  display: flex;
  gap: 9px;
  align-items: center;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 7px 10px;
  border-radius: var(--radius-control);
  color: var(--muted);
  width: 100%;
  min-height: 34px;
  font-size: var(--text-sm);
  line-height: 20px;
}
.nav-item:hover {
  background: var(--surface-sunken);
}
.nav-item.selected {
  background: var(--accent-subtle);
  color: var(--brand-deep);
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 0;
  padding-top: 12px;
}
.owner-name {
  margin-top: 20px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}
.muted {
  color: var(--muted) !important;
}
main {
  margin-left: 220px;
  width: calc(100% - 220px);
  padding: 36px clamp(20px, 3vw, 48px) 24px;
  min-width: 0;
  outline: none;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.page-header .eyebrow {
  margin: 0 0 10px;
}
.page-header p:last-child {
  font-size: var(--text-sm);
  margin: 12px 0 0;
}
.primary,
.secondary,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border);
  font-size: var(--text-sm);
  line-height: 20px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}
.primary {
  background: var(--action);
  color: var(--brand-ink);
  border-color: var(--action);
  border-bottom-width: 2px;
  border-bottom-color: var(--brand-hover);
}
.primary:hover:not(:disabled) {
  background: var(--brand-hover);
}
.secondary {
  background: var(--surface);
}
.secondary:hover:not(:disabled) {
  border-color: var(--action);
  background: var(--brand-tint);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  text-decoration: none;
}
.text-link:hover {
  text-decoration: underline;
}
.icon-button {
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  line-height: 20px;
  border-radius: var(--radius-control);
}
.icon-button:hover {
  background: var(--sidebar);
}
.workspace-toolbar,
.job-search {
  display: flex;
  gap: 12px;
  align-items: center;
}
.search-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--control-border);
  padding: 0 16px;
  flex: 1;
  color: var(--muted);
}
.search-field
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
  border: 0;
  background: transparent;
  outline: none;
  min-width: 0;
  min-height: 0;
  padding: 0;
  font-size: var(--text-md);
  border-radius: 0;
}
.search-field:focus-within {
  outline: 2px solid var(--action);
  outline-offset: 2px;
}
.summary-strip {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin: 24px 0 18px;
  font-size: var(--text-sm);
  color: var(--muted);
}
.summary-strip strong {
  font-size: var(--text-xl);
  color: var(--text);
  margin-right: 4px;
}
.view-toggle {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.view-toggle button,
.tabs button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  background: transparent;
  border: 1px solid transparent;
}
.view-toggle button[aria-pressed="true"],
.tabs button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--brand-deep);
  font-weight: 600;
}
.filters {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}
.filters > label {
  min-width: 140px;
  max-width: 240px;
}
.filters details {
  position: relative;
}
.filters summary {
  line-height: 20px;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  cursor: pointer;
}
.more-filters {
  position: absolute;
  z-index: 8;
  top: 52px;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  width: 280px;
  box-shadow: var(--shadow-pop);
}
.more-filters > * {
  margin-bottom: 12px;
}
.board-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-bottom: 24px;
}
.board-tools > label {
  min-width: 130px;
  max-width: 170px;
}
.stage-board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 14px;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
  align-items: stretch;
  min-height: 480px;
}
.stage-lane {
  min-width: 0;
  border-radius: var(--radius-card);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.stage-lane > h2 {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-md);
  padding: 2px 2px 5px;
}
.stage-lane > h2 span {
  font-weight: 400;
  color: var(--muted);
}
.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  min-width: 0;
}
.card-top {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}
.card-top > svg {
  color: var(--brand-deep);
  margin-top: 3px;
  flex-shrink: 0;
}
.card-title {
  color: var(--text);
  font-size: var(--text-md);
  line-height: 1.4;
  overflow-wrap: anywhere;
  font-weight: 600;
}
.job-card p {
  font-size: var(--text-md);
}
.job-card .metadata {
  font-size: var(--text-sm);
}
.metadata {
  font-size: var(--text-sm);
  color: var(--muted);
}
.card-evidence {
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--muted);
}
.card-evidence small {
  margin-top: 5px;
}
.next-action {
  font-size: var(--text-sm);
  min-height: 30px;
}
.lane-empty {
  text-align: center;
  font-size: var(--text-sm);
  padding: 30px 10px;
  color: var(--muted);
}
.footnote {
  font-size: var(--text-xs);
  color: var(--muted);
  margin: 15px 0;
}
.job-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  overflow: hidden;
}
.list-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 130px 100px 24px;
  align-items: center;
  text-align: left;
  gap: 24px;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  width: 100%;
  background: var(--surface);
}
.list-row:hover {
  background: var(--canvas);
}
.list-row:last-child {
  border-bottom: 0;
}
.list-row strong {
  font-size: var(--text-md);
}
.list-row small {
  margin-top: 5px;
}
.status-pill {
  background: var(--canvas);
  color: var(--muted);
  white-space: nowrap;
}
.empty {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sheet);
  padding: 64px 24px;
  text-align: center;
  max-width: 100%;
  margin: 24px 0;
}
.empty p {
  max-width: 540px;
  margin: 14px auto 24px;
  line-height: 1.8;
}
.empty-mark {
  color: var(--brand-deep);
  display: grid;
  place-items: center;
  background: var(--canvas);
  height: 56px;
  width: 56px;
  border-radius: var(--radius-sheet);
  margin: 0 auto 20px;
}
.empty h2 {
  font-weight: 600;
  letter-spacing: -0.4px;
}
.banner {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  margin: 16px 0;
  font-size: var(--text-md);
}
.banner.error {
  color: var(--error);
  background: var(--danger-tint);
}
.banner.success {
  color: var(--success);
  justify-content: start;
}
.banner.error button {
  flex-shrink: 0;
}
.skeleton {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}
.skeleton div {
  height: 200px;
  border-radius: var(--radius-card);
  background: var(--sidebar);
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 18px;
  margin: 24px 0;
}
.results-count {
  font-size: var(--text-md);
  font-weight: 600;
  margin-top: 26px;
}
.job-search {
  margin-bottom: 20px;
}
.job-description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: var(--text-md);
  line-height: 1.8;
  max-height: 420px;
  overflow: auto;
}
.section-title {
  font-size: var(--text-xl);
  font-weight: 550;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  background: var(--surface);
  padding: 12px;
  z-index: 99;
}
.skip-link:focus {
  top: 16px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
footer {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 48px;
}
dialog {
  border: 1px solid var(--border);
  border-radius: var(--radius-sheet);
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  color: var(--text);
  overflow: auto;
  background: var(--surface);
  box-shadow: var(--shadow-pop);
}
dialog.wide-dialog {
  width: min(1100px, calc(100vw - 32px));
}
dialog::backdrop {
  background: var(--scrim);
  backdrop-filter: blur(3px);
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.dialog-top h2 {
  font-size: var(--text-xl);
}
.detail-heading h2 {
  font-size: var(--text-2xl);
  letter-spacing: -0.5px;
}
.detail-heading .eyebrow {
  margin-top: 0;
}
.detail-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  margin: 28px 0;
}
.detail-columns h3 {
  margin: 18px 0 10px;
}
.evidence-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 4px 20px 20px;
  align-self: start;
}
.evidence-panel li small {
  margin: 6px 0;
}
.evidence-panel p {
  font-size: var(--text-sm);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
.actions > label {
  min-width: 155px;
}
.stage-confirm {
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius-card);
  margin: 18px 0;
}
.stage-confirm > * {
  margin: 12px 0;
}
.history {
  margin: 24px 0;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  font-size: var(--text-sm);
}
summary {
  cursor: pointer;
  font-weight: 550;
}
.check {
  display: flex;
  flex-direction: row;
  align-items: start;
  gap: 10px;
  font-weight: 400;
  line-height: 1.6;
  margin: 18px 0;
}
.check input {
  margin-top: 2px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.apply-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.apply-options section {
  background: var(--surface);
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.apply-options p {
  font-size: var(--text-sm);
  min-height: 72px;
}
.apply-options .primary {
  font-size: var(--text-sm);
  white-space: normal;
}
.profile-facts {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px;
  max-height: 280px;
  overflow: auto;
  font:
    12px/1.65 ui-monospace,
    monospace;
}
.job-context {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--surface);
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin: 22px 0;
}
.job-context > div {
  flex: 1;
  min-width: 180px;
}
.job-context small {
  margin-top: 6px;
}
.studio-toolbar {
  display: flex;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tabs {
  display: flex;
  gap: 4px;
  background: var(--sidebar);
  padding: 4px;
  border-radius: var(--radius-control);
  margin-right: auto;
}
.studio-toolbar > label {
  max-width: 240px;
}
.studio {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.05fr);
  gap: 20px;
}
.editor-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px;
}
.editor-panel h2 {
  font-size: var(--text-xl);
  margin-bottom: 18px;
}
.editor-panel textarea {
  min-height: 420px;
  line-height: 1.8;
  font-size: var(--text-md);
  overflow-wrap: anywhere;
}
.review-warning {
  font-size: var(--text-sm);
  margin: 16px 0;
}
.preview-panel {
  padding: 20px;
  background: var(--sidebar);
  border-radius: var(--radius-card);
  overflow: hidden;
  min-width: 0;
}
.preview-heading {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  gap: 12px;
  margin-bottom: 20px;
}
.preview-heading span {
  color: var(--muted);
}
.paper {
  aspect-ratio: 210/297;
  background: white;
  min-height: 600px;
  padding: 36px;
  color: var(--ink);
  border: 1px solid var(--border);
  overflow: auto;
  max-height: 900px;
}
.paper pre {
  font:
    13px/1.8 system-ui,
    sans-serif;
  margin: 0;
}
.paper.compact pre {
  font-size: var(--text-xs);
  line-height: 1.55;
}
.document-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: end;
  margin: 24px 0;
}
.studio + .document-actions {
  padding-top: 10px;
}
@media (min-width: 1600px) {
  main {
    padding-right: 52px;
  }
  .stage-lane {
    flex-basis: 280px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 190px;
    padding-left: 12px;
    padding-right: 12px;
  }
  main {
    margin-left: 190px;
    width: calc(100% - 190px);
    padding: 28px 24px;
  }
  .page-header {
    align-items: start;
  }
  .page-header h1 {
    max-width: 500px;
  }
  .studio {
    grid-template-columns: 1fr;
  }
  .preview-panel {
    max-width: 720px;
  }
  .apply-options {
    grid-template-columns: 1fr;
  }
  .apply-options p {
    min-height: 0;
  }
  .list-row {
    grid-template-columns: 1fr 100px 20px;
    gap: 12px;
  }
  .list-row > .metadata {
    display: none;
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: sticky;
    top: 0;
    inset: 0;
    padding: 14px 18px;
    background: var(--canvas);
    border-bottom: 1px solid var(--border);
    border-right: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .sidebar > .eyebrow,
  .sidebar nav,
  .owner-name,
  .sidebar-bottom > .muted,
  .sidebar-bottom > a {
    display: none;
  }
  .sidebar-bottom {
    padding: 0;
    margin: 0;
    border: 0;
  }
  .sidebar-bottom .nav-item {
    font-size: 0;
    gap: 0;
    width: 44px;
    padding: 10px;
    justify-content: center;
  }
  .brand {
    font-size: var(--text-lg);
  }
  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: var(--text-xl);
  }
  .sidebar nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: row;
    gap: 0;
    justify-content: space-evenly;
    align-items: stretch;
    background: var(--sidebar);
    border-top: 1px solid var(--border);
    z-index: 9;
  }
  .sidebar nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 130px;
    gap: 3px;
  }
  .sidebar nav .nav-item.selected {
    background: transparent;
  }
  main {
    margin: 0;
    width: 100%;
    padding: 26px 18px 104px;
  }
  .page-header {
    display: block;
    margin-bottom: 24px;
  }
  .page-header h1 {
    font-size: var(--text-2xl);
    letter-spacing: -0.8px;
  }
  .page-header p:last-child {
    font-size: var(--text-md);
  }
  .page-header .eyebrow {
    font-size: var(--text-xs);
    letter-spacing: 1px;
  }
  .workspace-toolbar {
    flex-wrap: wrap;
  }
  .workspace-toolbar .search-field {
    flex-basis: 100%;
  }
  .summary-strip {
    gap: 10px 16px;
    font-size: var(--text-xs);
  }
  .summary-strip > span:first-child {
    flex-basis: 100%;
  }
  .board-tools {
    gap: 10px;
  }
  .board-tools > label {
    min-width: 130px;
    flex: 1;
  }
  .filters {
    gap: 10px;
  }
  .filters > label {
    min-width: 130px;
    flex: 1;
    max-width: none;
  }
  .filters details {
    align-self: end;
  }
  .more-filters {
    right: auto;
    left: 0;
    inset: calc(100% + var(--space-2)) 0 auto 0;
  }
  .board-tools > .filters {
    width: 100%;
  }
  .stage-board {
    display: flex;
    flex-direction: column;
    overflow: visible;
    gap: 22px;
  }
  .stage-lane {
    flex: auto;
    background: transparent;
    padding: 0;
  }
  .stage-lane > h2 {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    padding: 0 4px;
  }
  .stage-lane > h2 span {
    letter-spacing: 0;
  }
  .stage-lane:has(.lane-empty) {
    display: none;
  }
  .job-card {
    padding: 18px 20px;
  }
  .job-search {
    flex-wrap: wrap;
  }
  .job-search > .search-field {
    flex-basis: 100%;
  }
  .job-search > .primary {
    flex: 1;
  }
  .job-search > .secondary {
    flex: 1;
  }
  .filters:has(+ .results-grid) {
    margin-top: 20px;
  }
  .results-grid {
    grid-template-columns: 1fr;
  }
  .detail-columns {
    grid-template-columns: 1fr;
  }
  .detail-heading h2 {
    font-size: var(--text-xl);
  }
  .list-row {
    padding: 18px 16px;
    grid-template-columns: 1fr 82px;
    gap: 10px;
  }
  .list-row > svg {
    display: none;
  }
  .list-row .status-pill {
    font-size: var(--text-xs);
  }
  .list-row strong {
    font-size: var(--text-md);
  }
  .list-row small {
    font-size: var(--text-xs);
  }
  .banner {
    align-items: start;
    flex-wrap: wrap;
    font-size: var(--text-sm);
  }
  .empty {
    padding: 40px 20px;
  }
  .empty h2 {
    font-size: var(--text-xl);
  }
  .skeleton {
    grid-template-columns: 1fr;
  }
  .skeleton div {
    height: 120px;
  }
  dialog,
  dialog.wide-dialog {
    padding: 20px;
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 24px);
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .studio-toolbar {
    gap: 12px;
  }
  .studio-toolbar .tabs {
    width: 100%;
  }
  .studio-toolbar > label {
    flex: 1;
    min-width: 140px;
  }
  .studio-toolbar > .status-pill {
    margin-top: 4px;
  }
  .studio {
    display: flex;
    flex-direction: column-reverse;
  }
  .paper {
    min-height: 400px;
    padding: 24px;
  }
  .editor-panel {
    padding: 18px;
  }
  .preview-panel {
    padding: 16px;
  }
  .editor-panel textarea {
    min-height: 360px;
  }
  .document-actions {
    justify-content: start;
  }
  .document-actions > button {
    flex: 1;
  }
  .job-context {
    padding: 16px;
  }
  .job-context > div {
    flex-basis: 100%;
  }
  .apply-options section {
    padding: 18px;
  }
  .history {
    font-size: var(--text-xs);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* The approved workspace uses the light Figma palette regardless of OS theme. */

/* Document-first posting review and evidence panels. */
.page-header {
  flex-wrap: wrap;
}
.page-header > div:first-child {
  flex: 1 1 400px;
}
.requirement-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
}
.requirement-row input {
  flex: 1;
  min-width: 0;
}
.requirement-row select {
  max-width: 150px;
}
.refinement-panel,
.claim-evidence {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.claim-evidence blockquote {
  margin: 8px 0;
  padding: 8px 12px;
  border-left: 3px solid var(--accent);
  white-space: pre-wrap;
}
.proposal {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.proposal pre,
.profile-facts {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .requirement-row {
    flex-wrap: wrap;
  }
  .requirement-row input {
    flex-basis: 100%;
  }
  .page-header > div:first-child {
    flex-basis: 100%;
  }
}
.refinement-panel textarea {
  min-height: 96px;
}
.refinement-panel .proposal textarea {
  min-height: 280px;
}
.package-tabs {
  margin: 20px 0;
  flex-wrap: wrap;
}
.package-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sheet);
}
.package-panel textarea {
  min-height: 280px;
}
.requirement-review {
  border-bottom: 1px solid var(--border);
}
.studio-chat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sheet);
  padding: 20px;
  margin: 24px 0;
}
.studio-chat textarea {
  min-height: 90px;
}
.chat-messages {
  max-height: 440px;
  overflow: auto;
}
.chat-message {
  border-bottom: 1px solid var(--border);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
}
.studio-chat .proposal textarea {
  min-height: 240px;
}
@media (min-width: 1400px) {
  main.package-active {
    padding-right: 374px;
  }
  .package-active .studio-chat {
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 24px;
    top: 24px;
    bottom: 24px;
    width: 322px;
    margin: 0;
    overflow: auto;
  }
  .package-active .chat-messages {
    flex: 1;
    min-height: 80px;
    max-height: none;
  }
  .package-active .chat-composer-wrap {
    flex-shrink: 0;
  }
  .package-active .studio {
    grid-template-columns: minmax(250px, 1fr) minmax(260px, 1.2fr);
  }
}

/* Preview-first package: supporting controls stay compact and optional. */
.package-active {
  padding-top: 22px;
  padding-left: 28px;
}
.package-active .page-header .eyebrow {
  display: none;
}
.package-active .page-header > div:first-child {
  flex: 1 1 260px;
  min-width: 0;
}
.package-active .page-header > .primary {
  border-color: var(--control);
}
.package-active .package-tabs {
  background: transparent;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  padding: 0;
  margin: 0 0 8px;
  width: 100%;
}
.package-active .package-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
}
.package-active .package-tabs button[aria-pressed="true"] {
  box-shadow: none;
}
.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
}
.preview-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.compact-control,
.package-options > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 18px;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}
.compact-control:hover,
.package-options > summary:hover {
  background: var(--sidebar);
  color: var(--text);
}
.package-options > summary::-webkit-details-marker {
  display: none;
}
.package-options {
  position: relative;
}
.package-options-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 8;
  display: grid;
  gap: 10px;
  width: 270px;
  max-width: calc(100vw - 40px);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-pop);
}
.package-options-popover label {
  font-size: var(--text-xs);
}
.package-options-popover select {
  min-height: 36px;
  height: 36px;
  font-size: var(--text-sm);
  padding: 5px 8px;
  max-width: 100%;
}
.package-options-popover button {
  min-height: 32px;
  padding: 5px 9px;
  font-size: var(--text-xs);
  justify-content: flex-start;
}
.package-options-popover .footnote {
  margin: 6px 0 0;
  font-size: var(--text-xs);
}
.package-options-popover hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
.writing-options {
  display: grid;
  gap: 10px;
}
.package-active .studio {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.package-active .studio > [hidden] {
  display: none !important;
}
.package-active .preview-panel {
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.package-active .preview-panel > .footnote {
  font-size: var(--text-xs);
  margin: 4px 0 8px;
  line-height: 16px;
}
.package-active .editor-panel {
  padding: 16px;
}
.package-active .editor-panel h2 {
  font-size: var(--text-md);
  margin-bottom: 10px;
}
.package-notice {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  line-height: 18px;
  margin: 4px 0 8px;
  color: var(--success);
}
.sidebar-new-application {
  display: flex;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: var(--radius-card);
  text-align: left;
}
.sidebar-new-application small {
  font-size: var(--text-xs);
  margin-top: 2px;
  color: var(--brand-ink);
  opacity: 0.86;
}
@media (max-width: 760px) {
  .sidebar-new-application {
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
  }
  .sidebar-new-application > span {
    display: none;
  }
  .package-active {
    padding: 18px 16px 94px;
  }
  .package-active .page-header h1 {
    font-size: var(--text-2xl);
    line-height: 28px;
  }
  .package-active .page-header > div:first-child {
    flex-basis: 100%;
  }
  .package-active .package-tabs {
    overflow: auto;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .package-active .package-tabs button {
    font-size: var(--text-xs);
    white-space: nowrap;
  }
  .preview-tools {
    gap: 2px;
  }
  .preview-tools .package-options-popover {
    position: fixed;
    top: auto;
    left: var(--space-4);
    right: var(--space-4);
    width: auto;
    max-width: none;
  }
}

.package-active .studio.focus-preview {
  grid-template-columns: minmax(0, 1fr);
}
.studio.focus-preview .preview-panel {
  order: -1;
}
.studio.focus-preview .editor-panel textarea {
  min-height: 280px;
}
.studio.focus-preview .print-preview {
  height: min(72vh, 920px);
  min-height: 440px;
}
#package-assistant {
  scroll-margin-top: 90px;
}

/* Compact ChatGPT-style composer; the workspace remains in its light palette. */
.chat-composer-wrap {
  position: relative;
  margin-top: 18px;
}
.chat-composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--control);
  border-radius: var(--radius-composer);
  background: var(--surface);
  box-shadow: none;
}
.studio-chat .chat-composer textarea {
  flex: 1;
  width: 0;
  min-width: 0;
  min-height: 24px;
  max-height: 180px;
  border: 0;
  border-radius: 0;
  padding: 5px 0;
  margin: 0;
  background: transparent;
  box-shadow: none;
  resize: none;
  outline: none;
  font-family: inherit;
  font-size: var(--text-md);
  line-height: 22px;
  color: var(--ink);
}
.chat-composer .composer-icon,
.chat-composer .composer-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
}
.chat-composer .composer-icon {
  background: transparent;
  color: var(--ink);
}
.chat-composer .composer-icon:hover:not(:disabled) {
  background: var(--ground);
}
.chat-composer .composer-send {
  background: var(--action);
  color: var(--brand-ink);
}
.chat-composer .composer-send:disabled {
  background: var(--surface-sunken);
  color: var(--disabled);
  opacity: 1;
}
.chat-composer.is-listening .composer-icon[aria-pressed="true"] {
  color: var(--danger);
  background: var(--danger-tint);
}
.composer-menu {
  position: absolute;
  z-index: 5;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sheet);
  background: var(--surface);
  box-shadow: var(--shadow-pop);
}
.composer-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 0;
  border-radius: var(--radius-card);
  background: transparent;
  text-align: left;
  font-size: var(--text-sm);
}
.composer-menu button:hover,
.composer-menu button:focus-visible {
  background: var(--ground);
}
.composer-status {
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--muted);
  margin-top: 8px;
}

/* Consistent compact field geometry across workspace forms. */
.form-grid {
  align-items: start;
  gap: 14px;
}
.form-grid > label,
.filters > label {
  min-width: 0;
}
.form-grid > label > input,
.form-grid > label > select,
.filters > label > input,
.filters > label > select {
  height: 40px;
}
.package-panel {
  padding: 16px;
}
.package-panel h2 {
  font-size: var(--text-xl);
  margin-bottom: 12px;
}
.package-panel p {
  font-size: var(--text-sm);
  line-height: 20px;
}
.package-section-heading {
  margin-bottom: 12px;
}
.package-section-heading h2 {
  margin: 0;
}
.job-description-panel textarea {
  font-size: var(--text-sm);
  line-height: 20px;
  min-height: 300px;
  resize: vertical;
}
.package-active .studio-chat {
  padding: 16px;
}
.studio-chat .footnote {
  font-size: var(--text-xs);
  line-height: 17px;
  margin: 8px 0;
}
.chat-suggestions .text-link {
  font-size: var(--text-xs);
  line-height: 16px;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  font-weight: 500;
  color: var(--muted);
}
.studio-chat .editor-actions .secondary {
  min-height: 30px;
  padding: 5px 9px;
  font-size: var(--text-xs);
}

input[type="file"] {
  font-size: var(--text-sm);
  line-height: 20px;
  min-height: 36px;
  max-width: 100%;
  padding: 5px;
  border: 1px solid var(--control-border);
  border-radius: var(--radius-control);
  background: var(--surface);
}
input[type="file"]::file-selector-button {
  border: 0;
  border-radius: var(--radius-tag);
  padding: 4px 8px;
  background: var(--sidebar);
  font-size: var(--text-xs);
  margin-right: 8px;
}

/* Dense navigation with one bottom account control. */
.sidebar > .eyebrow {
  display: none;
}
.sidebar .brand {
  margin-bottom: 14px;
  font-size: var(--text-md);
  gap: 9px;
}
.sidebar .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-control);
  font-size: var(--text-xl);
}
.sidebar-new-application {
  min-height: 36px;
  padding: 7px 10px;
  margin: 4px 0 4px;
  background: transparent;
  color: var(--text);
  gap: 9px;
}
.sidebar-new-application:hover {
  background: var(--accent-subtle);
}
.sidebar-new-application strong {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 20px;
}
.sidebar-new-application small {
  display: none;
}
.account-menu {
  position: relative;
  width: fit-content;
}
.account-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--avatar);
  color: var(--brand-ink);
  font-size: var(--text-xs);
  line-height: 16px;
  font-weight: 500;
  text-decoration: none;
}
.account-avatar:hover {
  background: var(--avatar-hover);
}
.account-popover {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  z-index: 15;
  width: 220px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-pop);
}
.account-popover > strong {
  display: block;
  padding: 8px;
  font-size: var(--text-xs);
  line-height: 18px;
  color: var(--muted);
}
.account-popover button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 34px;
  padding: 7px 8px;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  text-align: left;
  font-size: var(--text-sm);
}
.account-popover button:hover,
.account-popover button:focus-visible {
  background: var(--canvas);
}
@media (max-width: 760px) {
  .sidebar .brand {
    margin: 0;
  }
  .sidebar-new-application {
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 8px;
  }
  .sidebar .sidebar-bottom {
    position: fixed;
    bottom: calc(10px + env(safe-area-inset-bottom));
    right: 12px;
    z-index: 12;
  }
  .account-popover {
    left: auto;
    right: 0;
  }
  .sidebar nav {
    height: calc(58px + env(safe-area-inset-bottom));
    padding: 4px 54px calc(4px + env(safe-area-inset-bottom)) 6px;
  }
  .sidebar nav .nav-item {
    min-height: 44px;
    padding: 4px 8px;
    font-size: var(--text-xs);
  }
  /* Six items (Where you fit, #48, shown only to listed accounts) do not fit a phone bar with their labels, so the
     bar shows icons only; every button keeps its accessible name and a 44px target. Founder to review. */
  .sidebar nav:has(> :nth-child(6)) > .nav-item {
    flex: 1 1 0;
    min-width: 44px;
    padding: 4px 2px;
  }
  .sidebar nav:has(> :nth-child(6)) > .nav-item > .nav-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Collapsible navigation: labels remain accessible in the icon rail. */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 12px;
}
.sidebar .sidebar-header .brand {
  margin: 0;
}
.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-tag);
  background: transparent;
  color: var(--muted);
}
.sidebar-toggle:hover {
  background: var(--accent-subtle);
  color: var(--text);
}
.sidebar nav .nav-item,
.sidebar-new-application {
  position: relative;
}
.sidebar-tooltip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: block;
  padding: 6px 9px;
  border-radius: var(--radius-tag);
  background: var(--ink);
  color: var(--brand-ink);
  font-size: var(--text-xs);
  line-height: 18px;
  font-weight: 400;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: var(--shadow-card);
}
@media (min-width: 761px) {
  .apps-filterbar .filters > label,
  .apps-filterbar .board-tools > label {
    flex: 0 1 140px;
    min-width: 140px;
    max-width: none;
  }
  .apps-filterbar .filters > label:nth-of-type(2) {
    flex-basis: 155px;
    min-width: 155px;
  }
  .sidebar-collapsed .sidebar {
    width: 64px;
  }
  .sidebar-collapsed main {
    margin-left: 64px;
    width: calc(100% - 64px);
  }
  .sidebar-collapsed .sidebar .brand,
  .sidebar-collapsed .nav-label,
  .sidebar-collapsed .sidebar-new-application > span:not(.sidebar-tooltip) {
    display: none;
  }
  .sidebar-collapsed .sidebar-header {
    justify-content: center;
  }
  .sidebar-collapsed .sidebar nav .nav-item,
  .sidebar-collapsed .sidebar-new-application {
    justify-content: center;
    padding: 7px 0;
  }
  .sidebar-collapsed .sidebar-bottom {
    display: flex;
    justify-content: center;
  }
}
@media (max-width: 760px) {
  .sidebar-toggle {
    display: none;
  }
  .sidebar-header {
    margin: 0;
  }
  .sidebar-tooltip {
    display: none;
  }
}

/* Applications redesign (owner PDF "Applications redesign", pages 1-2).
   Scoped to the Applications page; evidence wording follows the product rules. */
.apps-page .primary:hover:not(:disabled) {
  background: var(--brand-hover);
}
.apps-page .crumb {
  font-size: var(--text-xs);
  margin: 0 0 2px;
  color: var(--muted);
}
.apps-page .page-header {
  margin-bottom: 20px;
}
.apps-page .page-header h1 {
  font-size: var(--text-3xl);
  line-height: 34px;
  letter-spacing: -0.5px;
}
.apps-page .page-header p:last-child {
  margin: 6px 0 0;
}
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}
.stat-tile span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--muted);
}
.stat-tile strong {
  font-size: var(--text-3xl);
  line-height: 32px;
  font-weight: 650;
}
.stat-tile i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}
.stat-tile.prepared i {
  background: var(--warning-dot);
}
.stat-tile.applied i {
  background: var(--action);
}
.stat-tile.tracked {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}
.stat-tile.tracked span {
  color: var(--brand-ink);
}
.apps-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 16px;
}
.apps-filterbar .search-field {
  border-radius: var(--radius-control);
  gap: 8px;
  min-height: 40px;
  flex: 1 1 190px;
}
.apps-filterbar .board-tools {
  display: contents;
}
.apps-filterbar .filters {
  display: contents;
}
.apps-filterbar .view-toggle {
  margin-left: auto;
}
.job-list .list-head,
.job-list .list-row {
  grid-template-columns:
    minmax(220px, 2fr) minmax(110px, 1fr) 110px minmax(130px, 1fr)
    90px 150px;
}
.list-head {
  display: grid;
  gap: 16px;
  padding: 12px 20px;
  font-size: var(--text-xs);
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.job-list .list-row {
  position: relative;
  cursor: pointer;
  gap: 16px;
  padding: 12px 20px;
  font-size: var(--text-sm);
}
.job-list .list-row small {
  display: block;
  margin-top: 2px;
}
.role-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-control);
  display: grid;
  place-items: center;
  background: var(--action);
  color: var(--brand-ink);
  font-weight: 650;
}
.status-pill.stage-saved {
  background: var(--none-tint);
  color: var(--none);
}
.status-pill.stage-prepared {
  background: var(--warning-tint);
  color: var(--review);
}
.status-pill.stage-applied {
  background: var(--brand-tint);
  color: var(--brand-deep);
}
.evidence-cell {
  display: grid;
  gap: 4px;
}
.meter {
  display: block;
  height: 4px;
  border-radius: var(--radius-tag);
  background: var(--line);
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  background: var(--action);
  box-shadow: 0 2px 10px var(--action);
}
.row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  font-weight: 550;
}
.list-foot {
  padding: 10px 20px;
  font-size: var(--text-xs);
  color: var(--muted);
}
.empty .steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px auto 0;
  max-width: 720px;
  text-align: left;
}
.empty .steps > span {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.empty .steps small {
  color: var(--muted);
}
@media (max-width: 900px) {
  .stat-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .job-list .list-head {
    display: none;
  }
  .job-list .list-row {
    grid-template-columns: 1fr auto;
  }
  .job-list .list-row > :nth-child(2),
  .job-list .list-row > :nth-child(4),
  .job-list .list-row > :nth-child(5) {
    display: none;
  }
  .empty .steps {
    grid-template-columns: 1fr;
  }
}
.empty .steps strong {
  margin: 0;
}

/* Location and salary controls: country dropdown + city search, amount + period + currency. */
.place-picker,
.salary-field {
  display: block;
  width: 100%;
}
.place-row,
.salary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.place-row > select {
  flex: 0 1 12rem;
  min-width: 9rem;
  width: auto;
}
.place-city {
  position: relative;
  flex: 1 1 14rem;
  min-width: 12rem;
}
.place-city > input {
  margin-top: 0;
  padding-left: 32px;
}
.place-pin {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
  pointer-events: none;
}
.place-options {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 4px;
  list-style: none;
  max-height: 16rem;
  overflow: auto;
  border: 1px solid var(--control-border, rgba(255, 255, 255, 0.35));
  border-radius: var(--radius-card);
  background: var(--place-list-bg, var(--surface, var(--surface)));
  color: var(--place-list-fg, inherit);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.place-options li {
  padding: 8px 10px;
  border-radius: var(--radius-control);
  cursor: pointer;
  font-size: var(--text-sm);
}
.place-options li:hover,
.place-options li.active {
  background: color-mix(in srgb, currentColor 14%, transparent);
}
.salary-row > input {
  flex: 1 1 8rem;
  min-width: 7rem;
  margin-top: 0;
  width: auto;
}
.salary-row > select {
  flex: 0 0 auto;
  width: auto;
  margin-top: 0;
}

/* Screenshot theme (owner direction 7 Nov 2026): white cards with a soft shadow, pale
   dividers, 8px controls, grey tags, tinted secondary actions and a blue primary. */
.stat-tile,
.job-list,
.package-panel,
.account-popover,
.composer-menu {
  border-color: var(--border);
  box-shadow: var(--shadow-card);
}
.nav-item.selected {
  font-weight: 600;
}
.secondary:hover:not(:disabled) {
  background: var(--accent-subtle);
  color: var(--brand-deep);
}

/* Selectable label choices (work authorization). */
.choice-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.choice {
  border: 1px solid var(--control-border, var(--control));
  background: var(--surface, var(--surface));
  color: inherit;
  border-radius: var(--radius-pill);
  padding: 6px 13px;
  font-size: var(--text-sm);
  line-height: 1.3;
  cursor: pointer;
}
.choice.selected {
  background: var(--accent-subtle, var(--brand-tint));
  border-color: var(--action, var(--brand));
  color: var(--action, var(--brand-deep));
}
.choice:focus-visible {
  outline: 2px solid var(--action, var(--brand));
  outline-offset: 2px;
}

/* Controls to match the owner's screenshot (7 Nov 2026): one 40px height, 8px corners, a slim
   chevron instead of the native select arrow, grey placeholders and a blue focus ring. */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
select,
textarea {
  min-height: 40px;
  padding: 9px 12px;
  font-size: var(--text-md);
  line-height: 20px;
  border-radius: var(--radius-control);
  color: var(--text);
}
input::placeholder,
textarea::placeholder {
  color: var(--placeholder);
  opacity: 1;
}
select {
  padding-right: 36px;
  cursor: pointer;
}
input:not([type="checkbox"]):not([type="radio"]):focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 1px;
  border-color: var(--action);
}
.search-field {
  min-height: 40px;
  border-radius: var(--radius-control);
}
.search-field input:focus-visible {
  outline: none;
}
.apps-filterbar .search-field {
  padding: 0 12px;
}
.apps-filterbar .search-field input:not([type="checkbox"]) {
  padding: 0;
  font-size: var(--text-md);
}
.filters > label,
.apps-filterbar > label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text);
}
.filters summary {
  min-height: 40px;
  height: 40px;
  padding: 0 14px;
  font-size: var(--text-md);
  font-weight: 500;
  border-color: var(--control-border);
}
.secondary,
.button-link,
.primary {
  min-height: 40px;
  font-size: var(--text-md);
}
.view-toggle {
  background: var(--surface-sunken);
  padding: 4px;
  border-radius: var(--radius-card);
}
.view-toggle button,
.tabs button {
  min-height: 34px;
  font-size: var(--text-md);
  border-radius: var(--radius-control);
}
.view-toggle button[aria-pressed="true"],
.tabs button[aria-pressed="true"] {
  border-color: transparent;
  box-shadow: var(--shadow-card);
}

/* Dialogs, link buttons, pills and phone filters (design system, slice 1). */
dialog {
  padding: var(--space-6) 28px;
}
dialog > p {
  margin: 0 0 var(--space-4);
  color: var(--muted);
}
dialog label {
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-2) 0 var(--space-4);
}
.dialog-top .icon-button {
  width: var(--control-h-sm);
  height: var(--control-h-sm);
  min-width: var(--control-h-sm);
  min-height: var(--control-h-sm);
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius-control);
  color: var(--muted);
}
.dialog-top .icon-button:hover {
  background: var(--surface-sunken);
  color: var(--ink);
}
.text-link {
  min-height: var(--control-h);
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--brand-deep);
  font-weight: 600;
}
.text-link:hover:not(:disabled) {
  background: var(--brand-tint);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  justify-self: start;
  padding: 2px var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-tag);
}
.skip-link:focus {
  border: 1px solid var(--control);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-pop);
  color: var(--brand-deep);
  font-weight: 600;
}
@media (max-width: 760px) {
  .apps-filterbar .search-field {
    flex: 1 1 100%;
  }
  .apps-filterbar .filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    width: 100%;
  }
  .apps-filterbar .filters > label {
    max-width: none;
  }
  .apps-filterbar .filters details {
    grid-column: 1 / -1;
  }
  .apps-filterbar .filters summary {
    justify-content: center;
  }
}

dialog label textarea,
dialog label input,
dialog label select {
  font-weight: 400;
}
.banner > svg {
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .banner:not(.error) {
    flex-wrap: nowrap;
  }
}

dialog .form-grid {
  margin: 0 0 var(--space-4);
}
dialog .form-grid > label {
  margin-bottom: 0;
}

/* Board: tinted lanes, white cards with a soft shadow, and left-aligned card text. */
.stage-lane {
  flex: 1 0 260px;
  background: var(--surface-sunken);
}
.job-card {
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
}
.job-card p {
  margin: var(--space-1) 0;
}
.card-title,
.next-action {
  padding: 0;
  min-height: 0;
  text-align: left;
  color: var(--brand-deep);
}
.card-evidence {
  margin: var(--space-3) 0 var(--space-3);
  padding-top: var(--space-3);
}

/* Phones: the filter panel opens under its button at full width, so it never runs off screen
   and never covers the button that closes it. */
@media (max-width: 760px) {
  .more-filters {
    position: absolute;
    width: auto;
  }
}

@media (max-width: 600px) {
  .page-header {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
  }
  .page-header > div:first-child {
    flex: 1 1 100%;
  }
  .page-header > button {
    flex: 1 1 0;
    margin: 0;
  }
}

/* Package studio and assistant (design system, slice 2). */
.package-active .page-header {
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.package-active .page-header h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 34px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.package-active .page-header p:last-child {
  font-size: var(--text-md);
  line-height: 22px;
  margin-top: var(--space-1);
  color: var(--muted);
}
.package-active .page-header > .primary {
  min-height: var(--control-h);
  padding: 0 var(--space-4);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-md);
}
.package-active .page-header > .primary:hover:not(:disabled) {
  background: var(--surface-sunken);
}
.package-active .package-tabs {
  gap: var(--space-6);
  margin-bottom: var(--space-4);
}
.package-active .package-tabs button {
  min-height: 44px;
  padding: 0 2px;
  color: var(--muted);
  font-size: var(--text-md);
  font-weight: 500;
}
.package-active .package-tabs button:hover {
  color: var(--ink);
}
.package-active .package-tabs button[aria-pressed="true"] {
  color: var(--brand-deep);
  border-bottom-color: var(--brand);
  font-weight: 600;
}
.preview-toolbar {
  margin-bottom: var(--space-3);
}
.preview-toolbar > strong {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--ink);
}
.compact-control,
.package-options > summary {
  min-height: var(--control-h-sm);
  padding: 0 var(--space-3);
  gap: var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  font-weight: 500;
}
.compact-control:hover,
.package-options > summary:hover,
.package-options[open] > summary {
  background: var(--surface-sunken);
  color: var(--ink);
}
.package-options-popover button {
  text-align: left;
}
.package-active .document-actions {
  gap: var(--space-3);
  margin-top: var(--space-4);
  justify-content: flex-end;
}
.package-active .document-actions button {
  min-height: var(--control-h);
  padding: 0 var(--space-4);
  font-size: var(--text-md);
}
.review-warning {
  color: var(--review);
  background: var(--review-tint);
  border-radius: var(--radius-card);
  padding: var(--space-3) var(--space-4);
}
.review-warning p,
.review-warning small {
  color: var(--review);
}
.package-panel {
  box-shadow: var(--shadow-card);
}
.package-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
details:not(.package-options) > summary {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--control-h);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
details:not(.package-options) > summary::-webkit-details-marker {
  display: none;
}
details:not(.package-options) > summary::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6475' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E")
    center / 16px no-repeat;
  transition: transform var(--motion-fast);
}
details[open]:not(.package-options) > summary::before {
  transform: rotate(90deg);
}
.evidence-pill {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--space-2);
  max-width: 100%;
  padding: 3px var(--space-3);
  border-radius: var(--radius-card);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 16px;
  justify-self: start;
}
.ev-confirmed {
  color: var(--confirmed);
  background: var(--confirmed-tint);
}
.ev-review {
  color: var(--review);
  background: var(--review-tint);
}
.ev-none {
  color: var(--none);
  background: var(--none-tint);
}
.ev-unclear,
.ev-legacy {
  color: var(--unclear);
  background: var(--unclear-tint);
}
.requirement-review {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4) 0;
}
/* The assistant panel. */
.studio-chat {
  box-shadow: var(--shadow-card);
}
.studio-chat h2 {
  font-size: var(--text-xl);
  font-weight: 600;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
}
.chat-message {
  border: 0;
  border-radius: var(--radius-card);
  background: var(--surface-soft);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-2) 0;
  font-size: var(--text-md);
}
.chat-message.user {
  background: var(--brand-tint);
  color: var(--ink);
}
.chat-suggestions {
  gap: var(--space-2);
  margin: var(--space-4) 0 var(--space-3);
}
.chat-suggestions .text-link,
.studio-chat .chat-suggestions button {
  min-height: var(--control-h-sm);
  padding: 0 var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
}
.chat-suggestions .text-link:hover:not(:disabled) {
  background: var(--brand-tint);
  border-color: var(--brand);
  color: var(--brand-deep);
}
.chat-composer:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}
.studio-chat .editor-actions {
  margin-top: var(--space-3);
}
.studio-chat > p {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--muted);
}
.confirm-dialog {
  width: min(440px, calc(100vw - 32px));
}
.confirm-dialog h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}
.confirm-dialog .dialog-actions {
  justify-content: flex-end;
  margin-bottom: 0;
}
button.danger {
  min-height: var(--control-h);
  padding: 0 var(--space-4);
  border: 1px solid var(--danger);
  border-radius: var(--radius-control);
  background: var(--danger);
  color: var(--brand-ink);
  font-size: var(--text-md);
  font-weight: 600;
}
button.danger:hover:not(:disabled) {
  background: var(--ink);
  border-color: var(--ink);
}
.evidence-pill {
  width: fit-content;
}
.package-active .page-header > details.package-options > summary {
  min-height: var(--control-h);
}
.package-options-popover select,
.package-options-popover input {
  min-height: var(--control-h);
}
@media (max-width: 760px) {
  .package-active {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
  .package-active .package-tabs {
    flex-wrap: nowrap;
    gap: var(--space-4);
  }
  .package-active .package-tabs button {
    flex-shrink: 0;
  }
  .preview-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
  }
  .preview-tools {
    justify-content: space-between;
  }
  .package-active .page-header .package-options-popover {
    left: auto;
    right: 0;
    width: min(300px, calc(100vw - 32px));
  }
}

.place-city
  > input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
  padding-left: 34px;
}
.chip,
.choice,
.radio {
  font-weight: 500;
}
.choice.selected {
  font-weight: 600;
}

/* Profile and settings dialog. */
fieldset.field {
  min-width: 0;
  margin: 0 0 var(--space-4);
  padding: 0;
  border: 0;
}
fieldset.field > legend {
  padding: 0;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}
dialog h3 {
  margin: var(--space-6) 0 var(--space-3);
  font-size: var(--text-lg);
  font-weight: 600;
}
dialog h3:first-of-type {
  margin-top: 0;
}
dialog details {
  margin: var(--space-3) 0;
}
dialog form > label,
dialog form > fieldset {
  margin-bottom: var(--space-4);
}
.filters details > summary::before {
  display: none;
}
.filters details > summary {
  justify-content: center;
}
.match-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sheet);
  padding: 20px;
  margin: 16px 0 24px;
}
.match-summary h4 {
  margin: 16px 0 6px;
}
.match-summary ul {
  margin: 0;
  padding-left: 20px;
}
.match-summary li {
  margin-bottom: 8px;
}
.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 0;
}
.keyword-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-tag);
  padding: 2px 8px;
  font-size: var(--text-sm);
}
.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  flex-shrink: 0;
}
.error-reference {
  color: var(--muted);
  font-size: var(--text-sm);
}

/* Package preparation page: fixed information, moving check marks. */
.preparing {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sheet);
  padding: 40px 24px;
  margin: 24px auto;
  max-width: 640px;
}
.preparing h2 {
  font-weight: 600;
  letter-spacing: -0.4px;
  margin: 0 0 6px;
}
.preparing-job {
  color: var(--muted);
  margin: 0 0 24px;
}
.preparing-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.preparing-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.preparing-item small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}
.preparing-item.current {
  border-color: var(--brand);
  background: var(--brand-tint);
}
.preparing-item.done .preparing-icon {
  color: var(--success);
}
.preparing-item.current .preparing-icon {
  color: var(--brand-deep);
}
.preparing-item.pending {
  color: var(--muted);
}
.preparing-state {
  font-size: var(--text-xs);
  color: var(--muted);
  white-space: nowrap;
}
.preparing-note {
  color: var(--muted);
  font-size: var(--text-sm);
  margin: 20px 0 0;
}
.spin {
  animation: preparing-spin 1.1s linear infinite;
}
@keyframes preparing-spin {
  to {
    transform: rotate(360deg);
  }
}
.fit-report {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  margin: 12px 0;
}
.fit-report h3 {
  margin: 0 0 6px;
}
.fit-poor {
  border-color: var(--danger);
}
.fit-partial {
  border-color: var(--warning);
}
.fit-good {
  border-color: var(--success);
}
.fit-why {
  margin: 8px 0;
  padding-left: 20px;
}
.fit-report details {
  margin: 8px 0;
}
.fit-report h4 {
  margin: 10px 0 4px;
  font-size: var(--text-sm);
}
.fit-note {
  color: var(--muted);
  font-size: var(--text-sm);
}
.fit-gate {
  max-width: 720px;
  margin: 24px auto;
}
.fit-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Base rules ProseMirror normally injects itself; page CSP does not allow injected styles. */
.ProseMirror {
  position: relative;
  word-wrap: break-word;
  white-space: pre-wrap;
  white-space: break-spaces;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0;
}
.ProseMirror-hideselection *::selection {
  background: transparent;
}
.ProseMirror-hideselection {
  caret-color: transparent;
}

/* Document screen: always editable, saves itself (owner direction 8 Nov 2026). */
.save-state {
  margin-right: auto;
  margin-left: var(--space-3);
  font-size: var(--text-xs);
  color: var(--muted);
}
#confirm-message {
  white-space: pre-line;
}

/* Invite-only access (signed-out landing) */
.demo-access {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin-top: 8px;
}
.demo-form {
  display: grid;
  gap: 12px;
  width: min(100%, 360px);
  text-align: left;
}
.demo-form label {
  display: grid;
  gap: 4px;
}
.demo-actions {
  display: flex;
  gap: 8px;
}
.demo-dialog {
  margin: auto;
  width: max-content;
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100dvh;
  overflow: visible;
}
.demo-dialog::backdrop {
  background: color-mix(in srgb, var(--ink) 28%, transparent);
  backdrop-filter: blur(6px);
}
.demo-card {
  display: grid;
  gap: 8px;
  width: min(calc(100vw - 32px), 520px);
  padding: 22px 22px 20px;
  color: var(--ink);
  text-align: left;
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  border: 1px solid color-mix(in srgb, var(--surface) 70%, transparent);
  border-radius: 20px;
  box-shadow: var(--shadow-pop);
  backdrop-filter: blur(22px) saturate(1.5);
}
.demo-dialog .demo-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.demo-card p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}
.demo-card .demo-form {
  width: 100%;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  align-items: end;
}
.demo-card .demo-form .demo-note {
  grid-column: 1 / -1;
  max-width: none;
}
@media (max-width: 480px) {
  .demo-card .demo-form {
    grid-template-columns: 1fr;
  }
}
.demo-card .demo-form label {
  margin: 0;
  gap: 3px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-soft);
}
.demo-card .demo-form input {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border-radius: 10px;
}
.demo-card .demo-actions {
  margin: 0;
}
.demo-card .demo-actions button {
  flex: 1;
  border-radius: 10px;
}
.demo-note {
  margin: 0;
  max-width: 360px;
  text-align: center;
}

/* Signed-out promo: the shell steps aside so the promo owns the page */
.app-shell.signed-out .sidebar,
.app-shell.signed-out .page-header,
.app-shell.signed-out .skip-link {
  display: none;
}
.app-shell.signed-out main {
  margin-left: 0;
  width: 100%;
  padding: 0;
}
.promo {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      ellipse at 12% 8%,
      color-mix(in srgb, var(--brand) 30%, transparent),
      transparent 55%
    ),
    radial-gradient(
      ellipse at 90% 12%,
      color-mix(in srgb, var(--brand) 40%, var(--danger) 60%) 0%,
      transparent 45%
    ),
    radial-gradient(
      ellipse at 85% 92%,
      color-mix(in srgb, var(--warning-dot) 30%, transparent),
      transparent 55%
    ),
    var(--ground);
}
/* Colour and glow: drifting orbs and a slow light sweep sit behind everything else */
.promo-aura {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: orb-drift 22s ease-in-out infinite alternate;
}
.orb-blue {
  top: -14vmax;
  left: -10vmax;
  background: var(--brand);
}
.orb-violet {
  top: -6vmax;
  right: -14vmax;
  background: color-mix(
    in srgb,
    color-mix(in srgb, var(--brand) 50%, var(--danger) 50%) 75%,
    var(--surface) 25%
  );
  animation-duration: 27s;
  animation-delay: -6s;
}
.orb-gold {
  bottom: -16vmax;
  right: -6vmax;
  background: var(--warning-dot);
  opacity: 0.45;
  animation-duration: 25s;
  animation-delay: -11s;
}
.orb-cyan {
  bottom: -14vmax;
  left: 8vmax;
  background: color-mix(in srgb, var(--brand) 78%, var(--confirmed) 22%);
  opacity: 0.45;
  animation-duration: 30s;
  animation-delay: -3s;
}
.sweep {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150vmax;
  height: 150vmax;
  margin: -75vmax 0 0 -75vmax;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    color-mix(in srgb, var(--brand) 22%, transparent) 40deg,
    transparent 90deg,
    color-mix(in srgb, var(--warning-dot) 18%, transparent) 200deg,
    transparent 260deg,
    color-mix(in srgb, var(--danger) 14%, transparent) 320deg,
    transparent 360deg
  );
  animation: sweep-turn 60s linear infinite;
}
@keyframes orb-drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(6vmax, 4vmax) scale(1.12);
  }
  100% {
    transform: translate(-4vmax, 8vmax) scale(0.95);
  }
}
@keyframes sweep-turn {
  to {
    transform: rotate(360deg);
  }
}
.boot-splash {
  min-height: 100dvh;
  background: var(--ground);
}
.promo-glitter {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}
.promo-title {
  position: absolute;
  inset: 0;
  z-index: 4;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12em;
  font-family: var(--font-display);
  font-size: clamp(56px, 13vw, 190px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  pointer-events: none;
  text-shadow: 0 6px 40px color-mix(in srgb, var(--brand) 35%, transparent);
}
.pt-words {
  display: flex;
  gap: 0.28em;
  animation: pt-flash 0.9s ease-out 1.5s both;
}
.pt-word {
  display: inline-block;
}
.pt-pop {
  animation: pt-from-left 1s cubic-bezier(0.2, 0.9, 0.25, 1) both;
}
.pt-job {
  animation: pt-from-right 1s cubic-bezier(0.2, 0.9, 0.25, 1) 0.1s both;
}
.pt-your {
  color: var(--brand);
  text-shadow: 0 0 34px color-mix(in srgb, var(--surface) 85%, transparent);
  animation: pt-drop 1.05s cubic-bezier(0.3, 0.8, 0.3, 1) 0.6s both;
}
.pt-line {
  display: block;
  width: min(72vw, 980px);
  height: 0.06em;
  min-height: 4px;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    90deg,
    var(--brand),
    var(--warning-dot),
    var(--brand)
  );
  box-shadow: 0 0 22px color-mix(in srgb, var(--warning-dot) 65%, transparent);
  transform-origin: center;
  animation: pt-draw 0.7s ease-out 1.4s both;
}
@keyframes pt-from-left {
  0% {
    transform: translateX(-75vw) rotate(-10deg);
    opacity: 0;
  }
  70% {
    transform: translateX(1.5%) rotate(1.5deg);
    opacity: 1;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
@keyframes pt-from-right {
  0% {
    transform: translateX(75vw) rotate(10deg);
    opacity: 0;
  }
  70% {
    transform: translateX(-1.5%) rotate(-1.5deg);
    opacity: 1;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
@keyframes pt-drop {
  0% {
    transform: translateY(-80vh) scale(0.6);
    opacity: 0;
  }
  55% {
    transform: translateY(9%) scale(1.06);
    opacity: 1;
  }
  75% {
    transform: translateY(-4%) scale(0.99);
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
@keyframes pt-draw {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
}
@keyframes pt-flash {
  0% {
    text-shadow: 0 0 0 transparent;
  }
  35% {
    text-shadow: 0 0 38px
      color-mix(in srgb, var(--warning-dot) 80%, transparent);
  }
  100% {
    text-shadow: 0 0 0 transparent;
  }
}
@keyframes pt-zoom {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  70% {
    opacity: 0.9;
  }
  100% {
    transform: scale(11);
    opacity: 0;
  }
}
.promo[data-stage="zoom"] .promo-title {
  animation: pt-zoom 1.25s cubic-bezier(0.55, 0, 0.9, 0.4) both;
}
.promo[data-stage="reel"] .promo-title,
.promo[data-stage="final"] .promo-title {
  opacity: 0;
  visibility: hidden;
}
.promo-stage {
  width: 100%;
  max-width: 1400px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(24px, 5vw, 72px);
}
.promo-frame {
  margin: 0;
  position: relative;
  z-index: 2;
  aspect-ratio: 16 / 10;
  container-type: inline-size;
  border-radius: var(--radius-sheet);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow:
    var(--shadow-sheet),
    0 0 0 1px color-mix(in srgb, var(--brand) 25%, transparent),
    0 24px 90px color-mix(in srgb, var(--brand) 45%, transparent),
    0 0 140px color-mix(in srgb, var(--warning-dot) 25%, transparent);
  overflow: hidden;
  opacity: 0;
  transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--s, 1));
  transition:
    transform 1s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.9s ease;
}
.promo[data-stage="zoom"] .promo-frame,
.promo[data-stage="reel"] .promo-frame,
.promo[data-stage="final"] .promo-frame {
  opacity: 1;
}
.promo-side {
  position: relative;
  z-index: 1;
  padding: clamp(20px, 2.4vw, 36px);
  border-radius: var(--radius-sheet);
  border: 1px solid color-mix(in srgb, var(--surface) 70%, transparent);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 60px color-mix(in srgb, var(--brand) 18%, transparent);
  opacity: 0;
  transform: translateX(48px);
  pointer-events: none;
  transition:
    opacity 0.8s ease 0.5s,
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s;
}
.promo[data-stage="final"] .promo-side {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.promo-side h2 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.promo-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.promo-features li {
  display: flex;
  gap: 12px;
  align-items: start;
  opacity: 0;
  transform: translateX(24px);
  transition:
    opacity 0.6s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.promo[data-stage="final"] .promo-features li {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.8s + var(--i, 0) * 0.1s);
}
.pf-icon {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-control);
  background: var(--brand-tint);
  color: var(--brand-deep);
}
.promo-features strong {
  display: block;
  font-size: var(--text-md);
}
.promo-features small {
  display: block;
  margin-top: 2px;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--muted);
}
.promo-lead {
  margin: -8px 0 20px;
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--muted);
}
/* Job seekers and recruiters side by side; one column on narrow screens. */
.promo-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
}
.promo-cols h3 {
  margin: 0 0 12px;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.promo-cols .promo-features {
  gap: 14px;
}
.promo-trust {
  list-style: none;
  margin: 22px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  font-size: var(--text-sm);
  color: var(--muted);
}
.promo-trust li {
  display: flex;
  gap: 8px;
  align-items: start;
}
.promo-trust svg {
  flex: none;
  margin-top: 2px;
  color: var(--confirmed);
}
.promo-trust strong {
  color: var(--ink);
}
.promo-cta {
  margin: 0 0 24px;
}
.promo-cta .demo-access {
  justify-items: start;
}
.promo-cta .demo-note {
  text-align: left;
}
.promo-skip,
.promo-replay {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--control-h-sm);
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--control-border);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: var(--text-sm);
  cursor: pointer;
}
/* The journey "video": a scripted replica of the real screens, fictional person and company */
.reel {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  font-size: 2.1cqw;
  color: var(--ink);
  background: var(--surface);
}
.promo[data-stage="final"] .reel {
  animation: reel-float 6s ease-in-out infinite;
}
.reel-bar {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.9em 1.2em;
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--border);
}
.reel-bar i {
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  background: var(--line-strong);
}
.reel-bar span {
  margin-left: 1em;
  color: var(--muted);
  font-size: 0.85em;
}
.reel-body {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1.2em;
  padding: 1.4em 1.8em;
  min-height: 0;
}
.reel-steps {
  display: flex;
  gap: 0.6em;
  flex-wrap: wrap;
}
.reel-steps span {
  padding: 0.35em 0.9em;
  border-radius: var(--radius-pill);
  background: var(--surface-sunken);
  color: var(--muted);
  font-size: 0.85em;
  transition:
    background 0.4s ease,
    color 0.4s ease;
}
.reel-steps .on {
  background: var(--brand);
  color: var(--brand-ink);
}
.reel-steps .done {
  background: var(--confirmed-tint);
  color: var(--confirmed);
}
.reel-scene {
  display: flex;
  flex-direction: column;
  gap: 0.9em;
  min-height: 0;
  font-size: 0.95em;
}
.reel-scene > * {
  animation: reel-in 0.55s ease-out both;
}
.reel-scene > :nth-child(2) {
  animation-delay: 0.5s;
}
.reel-scene > :nth-child(3) {
  animation-delay: 1s;
}
.reel-scene > :nth-child(4) {
  animation-delay: 1.5s;
}
.reel-drop {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.1em;
  border: 0.12em dashed var(--brand);
  border-radius: var(--radius-card);
  background: var(--brand-tint);
  color: var(--brand-deep);
}
.reel-facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5em;
}
.reel-facts li {
  padding: 0.6em 0.9em;
  border-radius: var(--radius-control);
  border: 1px solid var(--border);
  background: var(--surface);
}
.reel-chips {
  display: flex;
  gap: 0.5em;
}
.reel-chips span {
  padding: 0.3em 0.9em;
  border-radius: var(--radius-pill);
  background: var(--brand-tint);
  color: var(--brand-deep);
  font-weight: 600;
}
.reel-button {
  align-self: flex-start;
  padding: 0.6em 1.2em;
  border-radius: var(--radius-control);
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 600;
}
.reel-paste {
  min-height: 7em;
  padding: 1em 1.2em;
  border: 1px solid var(--control-border);
  border-radius: var(--radius-card);
  background: var(--surface);
  line-height: 1.5;
}
.reel-caret {
  display: inline-block;
  width: 0.12em;
  height: 1em;
  margin-left: 0.1em;
  vertical-align: text-bottom;
  background: var(--brand);
  animation: reel-blink 0.9s steps(1) infinite;
}
.reel-reqs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}
.reel-reqs li {
  padding: 0.35em 0.9em;
  border-radius: var(--radius-pill);
  background: var(--review-tint);
  color: var(--review);
  animation: reel-in 0.5s ease-out 2.2s both;
}
.s-match {
  flex-direction: row;
  align-items: center;
  gap: 1.6em;
}
.reel-ring {
  flex: none;
  width: 9em;
  height: 9em;
}
.ring-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 9;
}
.ring-fill {
  fill: none;
  stroke: var(--brand);
  stroke-width: 9;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  animation: ring-in 1.6s ease-out 0.2s both;
}
.ring-text {
  fill: var(--ink);
  font-size: 22px;
  font-weight: 700;
}
.reel-match {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.7em;
}
.reel-match ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45em;
}
.reel-match li {
  padding: 0.5em 0.8em;
  border-radius: var(--radius-control);
  border-left: 0.25em solid var(--confirmed);
  background: var(--confirmed-tint);
  animation: reel-in 0.5s ease-out both;
}
.reel-match li:nth-child(2) {
  animation-delay: 0.9s;
}
.reel-match li:nth-child(3) {
  animation-delay: 1.4s;
  border-left-color: var(--review);
  background: var(--review-tint);
}
.reel-match small {
  display: block;
  color: var(--muted);
}
.s-docs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
}
.reel-doc {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0.5em;
  padding: 0.9em;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.reel-doc b {
  font-size: 0.9em;
}
.reel-doc span {
  height: 0.45em;
  border-radius: var(--radius-pill);
  background: var(--line);
  animation: reel-line 0.9s ease-out both;
}
.reel-doc span:nth-of-type(2) {
  width: 82%;
  animation-delay: 0.15s;
}
.reel-doc span:nth-of-type(3) {
  width: 90%;
  animation-delay: 0.3s;
}
.reel-doc span:nth-of-type(4) {
  width: 64%;
  animation-delay: 0.45s;
}
.s-docs .reel-button {
  grid-column: 1 / -1;
  justify-self: start;
}
.reel-envoy {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.9em 1.1em;
  border-radius: var(--radius-card);
  background: var(--brand-tint);
  color: var(--brand-deep);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
}
.reel-envoy small {
  display: block;
  color: var(--muted);
}
.reel-private {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--muted);
}
.s-ask {
  gap: 0.4em;
  font-size: 0.82em;
}
.reel-q,
.reel-a {
  max-width: 80%;
  padding: 0.45em 0.8em;
  border-radius: var(--radius-card);
}
.reel-q {
  align-self: flex-end;
  background: var(--surface-sunken, var(--brand-tint));
  border: 1px solid var(--border);
}
.reel-a {
  align-self: flex-start;
  background: var(--confirmed-tint);
  border-left: 0.25em solid var(--confirmed);
}
.reel-a small {
  display: block;
  color: var(--muted);
}
.reel-a.back {
  background: var(--review-tint);
  border-left-color: var(--review);
}
@keyframes reel-in {
  0% {
    opacity: 0;
    transform: translateY(0.8em);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes reel-line {
  0% {
    transform: scaleX(0);
    transform-origin: left;
  }
  100% {
    transform: scaleX(1);
    transform-origin: left;
  }
}
@keyframes reel-blink {
  50% {
    opacity: 0;
  }
}
@keyframes ring-in {
  0% {
    stroke-dashoffset: 240;
  }
}
@keyframes reel-float {
  50% {
    transform: translateY(-0.5%);
  }
}
@media (max-width: 860px) {
  .promo {
    place-items: start center;
  }
  .promo-stage {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px 16px 72px;
  }
  .promo-side h2 {
    font-size: var(--text-2xl);
  }
}
@media (max-width: 1280px) {
  .promo-cols,
  .promo-trust {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .promo * {
    animation: none !important;
    transition: none !important;
  }
}

/* Board drag and drop, document downloads, location editor and the dashboard feed */
.job-card[draggable="true"] {
  cursor: grab;
}
.job-card.dragging {
  opacity: 0.45;
}
.stage-lane.drop-target {
  background: var(--brand-tint);
  outline: 2px dashed var(--action);
  outline-offset: -2px;
}
.doc-downloads {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.doc-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.doc-label {
  margin-right: 4px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--muted);
}
@media (pointer: coarse) {
  button.doc-icon,
  button.sidebar-toggle {
    min-width: 44px;
    min-height: 44px;
  }
}
.doc-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
}
.doc-icon:hover:not(:disabled) {
  background: var(--surface-sunken);
}
.doc-pdf {
  color: var(--danger);
}
.doc-docx {
  color: var(--brand-deep);
}
.row-end {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.list-row .doc-downloads {
  position: relative;
  z-index: 1;
}
.row-open {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
}
.row-open::after {
  content: "";
  position: absolute;
  inset: 0;
}
.edit-location {
  margin-top: 8px;
  font-size: var(--text-sm);
}
.location-editor {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px 12px;
  margin-top: 10px;
}
.location-editor label {
  margin: 0;
}

.dashboard {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.dash-head h2 {
  margin: 0;
  font-size: var(--text-xl);
}
.dash-head p {
  margin: 4px 0 0;
  color: var(--muted);
}
.feed {
  display: grid;
  gap: 16px;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    var(--ink) 4%,
    var(--ink) 96%,
    transparent
  );
}
.feed-lane {
  overflow: hidden;
}
.feed-track {
  display: flex;
  width: max-content;
  animation: feed-scroll 60s linear infinite;
}
.feed-lane[data-slow="true"] .feed-track {
  animation-duration: 85s;
}
.feed:hover .feed-track,
.feed:focus-within .feed-track {
  animation-play-state: paused;
}
.feed-track ul {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0 8px 0 0;
  list-style: none;
}
.feed-card {
  flex: none;
  position: relative;
  width: 280px;
  margin: 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.feed-card h3 {
  margin: 0;
  font-size: var(--text-md);
}
.feed-card p {
  margin: 4px 0 0;
}
.feed-card h3 a {
  color: inherit;
  text-decoration: none;
}
.feed-card h3 a:hover,
.feed-card h3 a:focus-visible {
  text-decoration: underline;
}
.feed-card .feed-from {
  margin-top: 8px;
  font-size: var(--text-xs);
}
.feed-card .job-why {
  margin-top: 6px;
  font-size: var(--text-xs);
}
.feed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.feed-actions button {
  padding: 6px 9px;
  font-size: var(--text-sm);
  white-space: nowrap;
}
.feed-still {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 600px) {
  .feed-still .feed-card {
    width: 100%;
  }
}
@keyframes feed-scroll {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .feed {
    overflow-x: auto;
    mask-image: none;
  }
  .feed-track {
    animation: none;
  }
  /* Without motion there is no loop: no duplicate copy, and every card can be scrolled to. */
  .feed-lane {
    overflow: visible;
  }
  .feed-track ul[aria-hidden="true"] {
    display: none;
  }
}
.dash-tile {
  text-align: left;
  cursor: pointer;
}

/* Profile page: the owner's master résumé as a full page */
.profile-page {
  display: grid;
  gap: var(--space-4);
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--space-4) 0 var(--space-8);
}
.profile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.profile-top-actions {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.profile-back,
.profile-share {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  min-height: var(--control-h-sm);
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: var(--text-md);
  cursor: pointer;
}
.profile-back:hover,
.profile-share:hover:not(:disabled) {
  background: var(--brand-tint);
  color: var(--brand);
}
.profile-share:disabled {
  color: var(--muted);
  cursor: default;
}
.profile-status {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-control);
  background: var(--brand-tint);
  color: var(--brand);
  font-size: var(--text-sm);
}
.profile-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}
.profile-main {
  display: grid;
  gap: var(--space-4);
  min-width: 0;
}
.profile-card {
  padding: var(--space-6);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.profile-card h2 {
  margin: 0 0 var(--space-4);
  color: var(--ink);
  font-size: var(--text-xl);
  font-weight: 600;
}
.profile-side {
  display: grid;
  justify-items: center;
  text-align: center;
}
.profile-avatar {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: var(--brand-ink);
  font-size: var(--text-3xl);
  font-weight: 600;
}
.profile-name {
  margin: var(--space-3) 0 0;
  color: var(--brand);
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: 600;
}
.profile-headline {
  margin: var(--space-1) 0 var(--space-3);
  color: var(--ink-soft);
  font-size: var(--text-md);
}
.profile-summary {
  margin: 0 0 var(--space-4);
  color: var(--ink-soft);
  font-size: var(--text-md);
  line-height: 1.55;
}
.profile-card h2.profile-h {
  justify-self: start;
  margin: var(--space-4) 0 var(--space-2);
}
.profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  list-style: none;
}
.profile-chips li {
  margin: 0;
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  color: var(--brand);
  font-size: var(--text-sm);
}
.profile-side textarea {
  box-sizing: border-box;
  width: 100%;
  resize: vertical;
}
.profile-add-note,
.profile-primary {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  justify-content: center;
  min-height: var(--control-h);
  padding: 0 var(--space-4);
  border: 0;
  border-radius: var(--radius-control);
  background: var(--brand);
  color: var(--brand-ink);
  font: inherit;
  font-size: var(--text-md);
  font-weight: 600;
  cursor: pointer;
}
.profile-add-note {
  width: 100%;
  margin-top: var(--space-2);
}
.profile-add-note:hover:not(:disabled),
.profile-primary:hover:not(:disabled) {
  background: var(--brand-hover);
}
.profile-add-note:disabled,
.profile-primary:disabled {
  background: var(--surface-sunken);
  color: var(--muted);
  cursor: default;
}
.profile-footnote {
  margin: var(--space-2) 0 0;
  color: var(--muted);
  font-size: var(--text-xs);
}
.profile-notes {
  display: grid;
  gap: var(--space-2);
  width: 100%;
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.profile-notes li {
  position: relative;
  margin: 0;
  padding: var(--space-3) var(--space-8) var(--space-3) var(--space-3);
  border-radius: var(--radius-control);
  background: var(--surface-soft);
  font-size: var(--text-sm);
}
.profile-notes p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.profile-notes span {
  color: var(--muted);
  font-size: var(--text-xs);
}
.profile-notes button {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.profile-notes button:hover {
  background: var(--danger-tint);
  color: var(--danger);
}
.profile-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4) var(--space-6);
  margin: 0 0 var(--space-4);
}
.profile-field dt {
  color: var(--muted);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.profile-field dd {
  margin: var(--space-1) 0 0;
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.profile-empty {
  color: var(--muted);
  font-weight: 400;
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.profile-secondary {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  min-height: var(--control-h);
  padding: 0 var(--space-4);
  border: 1px solid var(--brand);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--brand);
  font-size: var(--text-md);
  font-weight: 600;
  text-decoration: none;
}
.profile-secondary:hover {
  background: var(--brand-tint);
}
.profile-secondary[aria-disabled="true"] {
  border-color: var(--line-strong);
  color: var(--muted);
}
.profile-roles {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.profile-roles li {
  display: grid;
  margin: 0;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.profile-roles li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.profile-roles h3 {
  margin: 0;
  color: var(--brand);
  font-size: var(--text-lg);
  font-weight: 600;
}
.profile-roles p {
  margin: var(--space-1) 0 0;
  color: var(--ink-soft);
  font-size: var(--text-md);
}
.profile-roles .profile-meta,
.profile-list .profile-meta {
  color: var(--muted);
  font-size: var(--text-sm);
}
.profile-logo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  font-size: var(--text-lg);
  font-weight: 600;
}
.logo-0 {
  background: var(--brand-tint);
  color: var(--brand);
}
.logo-1 {
  background: var(--confirmed-tint);
  color: var(--confirmed);
}
.logo-2 {
  background: var(--review-tint);
  color: var(--review);
}
.logo-3 {
  background: var(--unclear-tint);
  color: var(--unclear);
}
.profile-fold {
  padding: 0;
}
.profile-card.profile-fold > summary {
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  text-align: left;
}
.profile-card.profile-fold > summary::before {
  content: none;
}
.profile-fold > summary::-webkit-details-marker {
  display: none;
}
.profile-card.profile-fold > summary h2 {
  margin: 0;
  text-align: left;
}
.profile-card.profile-fold[open] > summary svg {
  transform: rotate(180deg);
}
.profile-count {
  color: var(--muted);
  font-size: var(--text-md);
  font-weight: 400;
}
.profile-fold-body {
  padding: 0 var(--space-6) var(--space-6);
}
.profile-list {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.profile-list li {
  display: grid;
  margin: 0;
  gap: var(--space-1);
  color: var(--ink-soft);
  font-size: var(--text-md);
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .profile-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .profile-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .profile-card {
    padding: var(--space-4);
  }
  .profile-fold > summary,
  .profile-fold-body {
    padding-right: var(--space-4);
    padding-left: var(--space-4);
  }
}

button.profile-secondary {
  font: inherit;
  font-size: var(--text-md);
  font-weight: 600;
  cursor: pointer;
}
button.profile-secondary:disabled {
  border-color: var(--line-strong);
  color: var(--muted);
  cursor: default;
}
.profile-danger {
  border-color: var(--danger);
  color: var(--danger);
}
.profile-danger:hover:not(:disabled) {
  background: var(--danger-tint);
}
.profile-delete {
  display: grid;
  gap: var(--space-2);
  justify-items: start;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}
.profile-delete h3 {
  margin: 0;
  font-size: var(--text-md);
  color: var(--danger);
}
.profile-delete p {
  margin: 0;
}
.profile-delete label {
  display: grid;
  gap: var(--space-1);
  font-weight: 600;
}
.profile-delete input {
  width: min(100%, 240px);
  min-height: 36px;
  padding: 0 var(--space-3);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font: inherit;
}
.profile-preview-banner {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--brand);
  border-radius: var(--radius-control);
  background: var(--brand-tint);
  color: var(--brand);
  font-size: var(--text-md);
}
.profile-preview-banner button {
  min-height: var(--control-h-sm);
  padding: 0 var(--space-3);
  border: 1px solid var(--brand);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--brand);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.profile-prompt {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.prompt-thread {
  display: grid;
  gap: var(--space-2);
  max-height: 320px;
  overflow-y: auto;
}
.prompt-msg {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-control);
  font-size: var(--text-md);
  max-width: 80ch;
}
.prompt-user {
  justify-self: end;
  background: var(--brand-tint);
  color: var(--ink);
}
.prompt-assistant {
  justify-self: start;
  background: var(--surface-soft);
  color: var(--ink);
}
.prompt-proposal {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
}
.prompt-changes {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.prompt-changes li {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: baseline;
  margin: 0;
  font-size: var(--text-md);
}
.prompt-before {
  color: var(--muted);
  text-decoration: line-through;
}
.prompt-after {
  color: var(--brand);
  font-weight: 600;
}
.prompt-skipped {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-md);
}
.prompt-actions,
.prompt-examples {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.prompt-chip {
  min-height: var(--control-h-sm);
  padding: 0 var(--space-3);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font: inherit;
  font-size: var(--text-md);
  cursor: pointer;
}
.prompt-chip:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand);
}
.prompt-bar {
  display: flex;
  gap: var(--space-2);
  align-items: flex-end;
  padding: var(--space-2);
  border: 1px solid var(--control);
  border-radius: 24px;
  background: var(--surface);
}
.prompt-bar:focus-within {
  border-color: var(--brand);
}
.prompt-bar textarea {
  flex: 1;
  min-height: 36px;
  max-height: 140px;
  padding: 8px 4px;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.prompt-icon,
.prompt-send {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.prompt-icon {
  background: var(--brand-tint);
  color: var(--brand);
}
.prompt-send {
  background: var(--brand);
  color: var(--brand-ink);
}
.prompt-send:disabled {
  background: var(--line-strong);
  cursor: default;
}
.prompt-plus {
  position: relative;
}
.prompt-menu {
  position: absolute;
  bottom: 44px;
  left: 0;
  z-index: 5;
  display: grid;
  min-width: 300px;
  padding: var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.prompt-menu button {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  min-height: var(--control-h-sm);
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--text-md);
  text-align: left;
  cursor: pointer;
}
.prompt-menu button:hover {
  background: var(--brand-tint);
}
@media (pointer: coarse) {
  .prompt-icon,
  .prompt-send {
    width: 44px;
    height: 44px;
  }
}

/* Envoys (a candidate shares an application with a recruiter) */
.share-bell {
  position: relative;
}
.share-count {
  background: var(--danger);
  color: var(--brand-ink);
  border-radius: 999px;
  font-size: var(--text-xs);
  padding: 0 6px;
  margin-left: 6px;
}
.share-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 100vw);
  z-index: 60;
  overflow: auto;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-sheet);
  padding: 16px;
}
.share-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.share-head h2 {
  margin: 0;
  font-size: var(--text-xl);
}
.share-panel section {
  margin-top: 16px;
}
.share-panel h3 {
  font-size: var(--text-lg);
  margin: 0 0 6px;
}
.share-muted {
  color: var(--muted);
  font-size: var(--text-sm);
}
.share-new {
  font-weight: 600;
}
.share-error {
  color: var(--danger);
  background: var(--danger-tint);
  border-radius: 8px;
  padding: 8px 10px;
}
.share-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.share-list li {
  border-top: 1px solid var(--line);
  padding: 8px 0;
}
.share-closed {
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.share-closed summary {
  cursor: pointer;
  color: var(--muted, inherit);
}
.share-closed .share-list li {
  opacity: 0.8;
}
.share-created input,
.share-answer textarea {
  width: 100%;
}
.share-check {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
}
.share-check.personal,
.share-check.other {
  color: var(--warning);
}
.share-msg {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  margin: 6px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.share-msg.recruiter {
  background: var(--brand-tint);
}
.share-msg.candidate {
  background: var(--success-tint);
}
.share-msg.system,
.share-msg.agent {
  background: var(--surface-soft);
}
.share-msg small {
  display: block;
  color: var(--muted);
  font-size: var(--text-xs);
}

/* First-run onboarding (founder, 13 Nov 2026): four steps, one card at a time. */
.onboarding {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) var(--space-12);
}
.ob-steps {
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  font-size: var(--text-sm);
  color: var(--muted);
}
.ob-steps li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.ob-steps .ob-step-num {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
}
.ob-steps li.on {
  color: var(--ink);
  font-weight: 600;
}
.ob-steps li.on .ob-step-num {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--surface);
}
.ob-steps li.done .ob-step-num {
  background: var(--brand-tint);
  border-color: var(--brand-tint);
  color: var(--brand-deep);
}
.ob-card {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-8);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.ob-card h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1.15;
}
.ob-card h1:focus {
  outline: none;
}
.ob-lead {
  margin: calc(var(--space-2) * -1) 0 0;
  color: var(--muted);
  font-size: var(--text-md);
}
.ob-note {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
}
.ob-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.ob-field {
  display: grid;
  gap: var(--space-1);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: var(--text-sm);
}
.ob-field > span,
.ob-field > legend {
  font-weight: 600;
  color: var(--ink);
  padding: 0;
  margin-bottom: var(--space-1);
}
.ob-field input,
.ob-field textarea,
.ob-row input {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: var(--text-md);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--control-border);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
}
.ob-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
}
.ob-choice {
  display: grid;
  justify-items: start;
  gap: var(--space-1);
  padding: var(--space-4);
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.ob-choice svg {
  color: var(--brand);
}
.ob-choice small {
  color: var(--muted);
}
.ob-choice.on {
  border-color: var(--brand);
  background: var(--brand-tint);
  box-shadow: 0 0 0 1px var(--brand);
}
.ob-panel {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
}
.ob-panel .ob-field {
  justify-self: stretch;
}
.ob-draft {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface-sunken);
}
.ob-draft-name {
  margin: 0;
  font-weight: 700;
  font-size: var(--text-lg);
}
.ob-draft h2 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.ob-draft ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
.ob-draft li {
  display: grid;
  gap: 2px;
  padding-left: var(--space-3);
  border-left: 3px solid var(--confirmed);
}
.ob-draft li small {
  color: var(--muted);
  font-size: var(--text-xs);
}
.ob-check {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  font-size: var(--text-md);
}
.ob-check input[type="checkbox"] {
  flex: none;
  appearance: auto;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 0;
  margin: 2px 0 0;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--brand);
}
.ob-update {
  justify-self: start;
  width: auto;
}
.ob-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.ob-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: var(--text-sm);
}
button.ob-chip {
  cursor: pointer;
}
.ob-chip.on,
span.ob-chip {
  background: var(--brand-tint);
  border-color: var(--brand-tint);
  color: var(--brand-deep);
}
.ob-chip button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0 2px;
}
.ob-row {
  display: flex;
  gap: var(--space-2);
}
.ob-busy {
  margin: 0;
  color: var(--brand-deep);
}
.ob-error {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-control);
  background: var(--danger-tint);
  color: var(--danger);
}
.ob-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}
.ob-actions button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
@media (max-width: 640px) {
  .ob-card {
    padding: var(--space-6) var(--space-4);
  }
  .ob-grid,
  .ob-choices {
    grid-template-columns: minmax(0, 1fr);
  }
  .ob-card h1 {
    font-size: var(--text-2xl);
  }
  .onboarding {
    padding-bottom: 120px;
  }
  /* Numbers only on a phone; the current step keeps its name. */
  .ob-steps {
    gap: var(--space-2);
  }
  /* The other steps' names stay readable to screen readers (as .sr-only), not shrunk to zero. */
  .ob-steps li:not(.on) .ob-step-name {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}

/* Envoy agent activity (14 Nov 2026): one fold per occasion, one line per step. */
.envoy-activity code,
.share-list code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.85em;
}
.envoy-run {
  margin: var(--space-2) 0;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.envoy-run summary {
  cursor: pointer;
  font-weight: 600;
}
.envoy-run ol {
  margin: var(--space-2) 0 0;
  padding-left: var(--space-6);
}
.envoy-run li {
  margin-bottom: var(--space-2);
  overflow-wrap: anywhere;
}
.envoy-run li p {
  margin: 2px 0;
}

/* Résumé Builder interview (founder, 14 Nov 2026) */
.rb-fold > summary {
  cursor: pointer;
  font-weight: 600;
  padding: var(--space-4) var(--space-6);
}
.rb-note,
.rb-progress {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
}
.rb-chips,
.rb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}
.rb-chip {
  font: inherit;
  font-size: var(--text-sm);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand);
  cursor: pointer;
}
.rb-chip:hover:not(:disabled) {
  background: var(--brand-tint);
}
.rb-error {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--danger);
}

/* The assistant panel on every screen after sign-in (founder, 15 Nov 2026) */
.assistant-panel {
  position: fixed;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: 340px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.app-shell:has(.assistant-panel) main {
  padding-right: 372px;
}
.assistant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.assistant-head h2 {
  margin: 0;
  font-size: var(--text-md);
}
.assistant-close,
.assistant-toggle {
  display: none;
}
.assistant-messages {
  flex: 1;
  min-height: 80px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: var(--space-2);
}
.assistant-msg {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-control);
  font-size: var(--text-sm);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.assistant-msg.assistant {
  background: var(--brand-tint);
  justify-self: start;
  max-width: 92%;
}
.assistant-msg.user {
  background: var(--surface-sunken);
  justify-self: end;
  max-width: 92%;
}
.assistant-msg.busy {
  color: var(--muted);
}
.assistant-proposals {
  display: grid;
  gap: var(--space-2);
}
.assistant-proposal {
  padding: var(--space-3);
  border: 1px solid var(--brand);
  border-radius: var(--radius-control);
}
.assistant-proposal p {
  margin: 0 0 var(--space-2);
  font-size: var(--text-sm);
}
/* The start of the job description an application would start from (the person's own text). */
.assistant-quote {
  margin: 0 0 var(--space-2);
  padding-left: var(--space-2);
  border-left: 2px solid var(--line);
  font-size: var(--text-sm);
  color: var(--muted);
  white-space: pre-line;
  overflow-wrap: anywhere;
  max-height: 8em;
  overflow: hidden;
}
.assistant-actions,
.assistant-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.assistant-note {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
}
.assistant-panel:has(.profile-prompt) {
  overflow-y: auto;
}
.assistant-panel .profile-prompt,
.assistant-panel .rb-fold {
  margin: 0;
  box-shadow: none;
  border: 0;
  padding: 0;
  overflow: visible;
  flex-shrink: 0;
}
.assistant-panel .rb-fold > summary {
  padding-left: 0;
  padding-right: 0;
}
.assistant-panel .chat-composer-wrap {
  flex-shrink: 0;
}
/* The résumé template in the centre of onboarding step 2 */
.resume-template {
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.resume-template section.is-empty h2 {
  color: var(--muted);
}
.resume-placeholder {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
}
.resume-contact {
  margin: 0 0 var(--space-3);
  font-size: var(--text-sm);
  color: var(--muted);
}
@media (max-width: 1099px) {
  .app-shell:has(.assistant-panel) main {
    padding-right: 0;
  }
  .assistant-toggle {
    display: inline-flex;
    position: fixed;
    right: 16px;
    bottom: 88px;
    z-index: 7;
    gap: var(--space-1);
    align-items: center;
    padding: var(--space-2) var(--space-4);
    border: 0;
    border-radius: 999px;
    background: var(--brand);
    color: var(--surface);
    font: inherit;
    font-weight: 600;
    box-shadow: var(--shadow-pop);
    cursor: pointer;
  }
  .assistant-toggle[aria-expanded="true"] {
    display: none;
  }
  .assistant-panel {
    display: none;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: min(78dvh, 640px);
    border-radius: var(--radius-card) var(--radius-card) 0 0;
  }
  .assistant-panel.open {
    display: flex;
  }
  .assistant-close {
    display: inline-flex;
    background: none;
    border: 0;
    padding: var(--space-1);
    color: var(--muted);
    cursor: pointer;
  }
}
/* With the assistant panel beside it, the profile has less width: stack the columns sooner. */
@media (min-width: 1100px) and (max-width: 1500px) {
  .app-shell:has(.assistant-panel) .profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.footnote.field-error {
  color: var(--danger);
}

/* Pro Profile maker page (/web/proprofile, 17 Nov 2026). */
.pp-page {
  min-height: 100vh;
  background: var(--ground);
}
.pp-header {
  padding: 16px 24px;
}
.pp-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.pp-back:hover,
.pp-back:focus-visible {
  color: var(--brand);
  text-decoration: underline;
}
.pp-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 16px 48px;
}
.pp-main h1 {
  font-size: 28px;
  margin: 0 0 8px;
}
.pp-lead,
.pp-off {
  color: var(--muted);
  margin: 0 0 20px;
}
.resume-library h3 {
  font-size: 15px;
  margin: 16px 0 8px;
}
.resume-library h3:first-child {
  margin-top: 0;
}
.resume-library .profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.resume-proposal {
  border: 1px solid var(--brand);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  background: var(--surface-soft);
}
.pp-link {
  padding: 12px 16px;
}
/* Sort and Board/List on their own row at the right (founder, 17 Nov 2026). */
.apps-viewbar {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.apps-viewbar > label {
  min-width: 140px;
}
.apps-viewbar > label > select {
  height: 40px;
}
.apps-viewbar .view-toggle {
  margin-left: 0;
}
/* ORA Builder on Pro Profile maker (17 Nov 2026). */
.ora-step {
  padding: 20px;
  margin-bottom: 16px;
}
.ora-step h2 {
  font-size: 18px;
  margin: 0 0 8px;
}
.ora-upload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin-bottom: 12px;
}
.ora-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0;
}
.ora-items {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: grid;
  gap: 10px;
}
.ora-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: var(--surface);
}
.ora-item.approved,
.ora-item.edited {
  border-color: var(--brand);
  background: var(--surface-soft);
}
.ora-item-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.ora-state {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  color: var(--brand);
}
.ora-value {
  margin: 6px 0;
}
.ora-source {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
}
.ora-edit {
  display: grid;
  gap: 8px;
}
/* A did:key is one long word: let it wrap on a phone instead of widening the page. */
.ora-signed code,
.ora-value {
  overflow-wrap: anywhere;
}
.ora-dropped {
  margin: 8px 0 12px;
  font-size: 13px;
}
.ora-interview {
  margin-top: 16px;
}
/* Progress while the AI works (17 Nov 2026). */
.waiting {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.waiting-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  animation: waiting-pulse 1.1s ease-in-out infinite;
}
.waiting-time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.waiting-note {
  flex-basis: 100%;
  color: var(--muted);
}
@keyframes waiting-pulse {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .waiting-dot {
    animation: none;
  }
}

/* Onboarding owns the page (17 Nov 2026, issue #40): no sidebar, bottom tabs or page header; its own slim bar carries
   Sign out and Delete my account (issue #39). */
.app-shell.onboarding-active .sidebar,
.app-shell.onboarding-active .page-header {
  display: none;
}
.app-shell.onboarding-active main {
  margin-left: 0;
  width: 100%;
}
.ob-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.ob-brand {
  font-weight: 700;
  color: var(--brand);
}
.ob-account {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  font-size: var(--text-sm);
}
.ob-account > button,
.ob-delete > summary {
  white-space: nowrap;
}
details.ob-delete:not(.package-options) > summary::before,
details[open].ob-delete:not(.package-options) > summary::before {
  content: none;
}
.ob-delete summary {
  list-style: none;
  cursor: pointer;
  color: var(--danger);
}
.ob-delete summary::-webkit-details-marker {
  display: none;
}
.ob-delete[open] .profile-delete {
  position: absolute;
  right: var(--space-4);
  z-index: 20;
  max-width: min(420px, calc(100vw - 32px));
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-pop);
}

/* Beta feedback flags on draft lines and requirement matches (17 Nov 2026, #50). */
.flag-button {
  display: inline-grid;
  place-items: center;
  width: var(--control-h-sm);
  height: var(--control-h-sm);
  margin-left: var(--space-2);
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--muted);
  vertical-align: middle;
  cursor: pointer;
}
.flag-button:hover,
.flag-button:focus-visible {
  border-color: var(--border);
  color: var(--ink);
}
.flag-button.on {
  border-color: var(--danger);
  color: var(--danger);
}
/* Beats the editor menu's compact flex popover (.doc-menu > .package-options-popover). */
.flag-lines.doc-menu > .package-options-popover {
  display: grid;
  gap: 10px;
  width: min(460px, calc(100vw - 40px));
  padding: 14px;
}
.flag-lines ul {
  display: grid;
  gap: 2px;
  max-height: 50vh;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}
.flag-lines li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
}
.flag-status {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-sm);
}
/* On a phone the line list opens as a sheet along the bottom, not a box anchored inside the narrow editor. */
@media (max-width: 760px) {
  .flag-lines.doc-menu > .package-options-popover {
    position: fixed;
    top: auto;
    right: var(--space-4);
    bottom: var(--space-4);
    left: var(--space-4);
    z-index: 30;
    width: auto;
    max-height: 70vh;
    overflow-y: auto;
  }
}
/* "Where you fit" (#48): occupations by band and saved applications by lens. Hidden unless the founder lists the account. */
.fit-page {
  display: grid;
  gap: var(--space-8);
  max-width: 1040px;
  min-width: 0;
}
.fit-intro {
  margin: 0;
  color: var(--ink-soft);
}
.fit-section {
  display: grid;
  gap: var(--space-4);
  min-width: 0;
}
.fit-section h2 {
  margin: 0;
  font-size: var(--text-xl);
}
.fit-muted {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
}
.fit-bands {
  display: grid;
  gap: var(--space-6);
}
.fit-occupations {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  align-items: start;
}
.fit-occupations > li:has(> details[open]) {
  grid-column: 1 / -1;
}
.fit-band h3,
.fit-job h3 {
  margin: 0 0 var(--space-3);
  font-size: var(--text-lg);
}
.fit-count {
  color: var(--muted);
  font-weight: 400;
}
.fit-reqs,
.fit-gaps,
.fit-depth,
.fit-logistics,
.fit-choices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}
.fit-card,
.fit-job,
.fit-packet,
.fit-all {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  min-width: 0;
}
.fit-card,
.fit-packet,
.fit-all {
  padding: var(--space-3) var(--space-4);
}
.fit-job {
  padding: var(--space-4);
  display: grid;
  gap: var(--space-4);
}
.fit-card > summary,
.fit-packet > summary,
.fit-all > summary {
  cursor: pointer;
  display: grid;
  gap: var(--space-1);
  min-height: var(--control-h-sm);
  align-content: center;
}
.fit-card-title {
  font-weight: 600;
}
.fit-card-counts {
  color: var(--muted);
  font-size: var(--text-sm);
}
.fit-card h4,
.fit-lens h4 {
  margin: var(--space-4) 0 var(--space-2);
  font-size: var(--text-md);
}
.fit-lenses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}
.fit-lens {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  padding: var(--space-3);
  min-width: 0;
}
.fit-lens h4 {
  margin-top: 0;
}
.fit-lens p {
  margin: 0;
}
.fit-private {
  color: var(--brand-deep);
  font-size: var(--text-xs);
  font-weight: 600;
}
.fit-req {
  display: grid;
  gap: var(--space-2);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
  min-width: 0;
}
.fit-req-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: baseline;
}
.fit-req-text {
  overflow-wrap: anywhere;
}
.fit-quote,
.fit-suggestion {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  border-left: 3px solid var(--confirmed);
  background: var(--surface-soft);
  border-radius: var(--radius-tag);
  overflow-wrap: anywhere;
}
.fit-suggestion {
  border-left-color: var(--review);
}
.fit-quote p,
.fit-suggestion p {
  margin: 0;
}
.fit-quote footer,
.fit-why,
.fit-missing {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
}
.fit-gaps li {
  display: grid;
  gap: var(--space-1);
}
.fit-gaps p {
  margin: 0;
  overflow-wrap: anywhere;
}
.fit-gap-kind {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
}
.fit-depth li {
  display: grid;
  overflow-wrap: anywhere;
}
.fit-depth small,
.fit-choices small {
  display: block;
  color: var(--muted);
  font-size: var(--text-xs);
}
.fit-logistics li {
  overflow-wrap: anywhere;
}
.fit-packet fieldset {
  border: 0;
  padding: 0;
  margin: var(--space-3) 0 0;
  display: grid;
  gap: var(--space-3);
}
.fit-packet legend {
  font-weight: 600;
  padding: 0;
}
.fit-choices label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2);
  align-items: start;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.fit-choices input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--brand);
}
.fit-status {
  margin: 0;
  color: var(--success);
  font-size: var(--text-sm);
}
.fit-status:empty {
  display: none;
}
.fit-attribution {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-xs);
  overflow-wrap: anywhere;
}
.fit-attribution a {
  color: var(--brand-deep);
}
@media (max-width: 760px) {
  .fit-occupations {
    grid-template-columns: minmax(0, 1fr);
  }
  .fit-job {
    padding: var(--space-3);
  }
}
/* Job board search on the Jobs page (issue #57). */
.job-boards {
  margin-top: var(--space-6, 24px);
  border-top: 1px solid var(--border);
  padding-top: var(--space-4, 16px);
}
.job-boards h2 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-lg, 18px);
  font-weight: 600;
  margin: 0 0 var(--space-3);
}
.job-boards-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}
.job-boards-form > * {
  box-sizing: border-box;
  max-width: 100%;
}
.job-boards-form > input {
  flex: 2 1 200px;
  min-width: 0;
  width: 0;
}
.job-boards-form > input + input {
  flex: 1 1 140px;
}
.job-boards-form > select {
  flex: 1 1 150px;
  min-width: 0;
}
.job-boards-form .checkbox-row {
  display: flex;
  flex-direction: row;
  flex: 0 0 auto;
  gap: var(--space-2);
  align-items: center;
  font-size: var(--text-sm);
  white-space: nowrap;
}
.job-boards-results {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-3);
}
.job-boards-results .job-card {
  padding: var(--space-3);
  display: grid;
  gap: var(--space-1);
}
.job-boards-results .card-title {
  text-decoration: none;
}
.job-boards-results .card-title:hover,
.job-boards-results .card-title:focus-visible {
  text-decoration: underline;
}
/* Results 25 at a time (29 Nov 2026); the count above covers every job. */
.job-boards-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
  font-size: var(--text-sm);
}
@media (max-width: 760px) {
  .job-boards-form > input:first-child,
  .job-boards-form > button {
    flex-basis: 100%;
  }
}
/* Cortex job pipeline (#58): how a job reached the person, never a fit score. */
.job-why summary {
  font-size: var(--text-sm);
  color: var(--brand-deep);
  cursor: pointer;
}
.job-why p {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: var(--space-1) 0 0;
}
/* Fit check and interview brief (value-based model spend, 19 Nov 2026). */
.stage-value {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: var(--space-3) var(--space-4, 16px);
  margin-bottom: var(--space-4, 16px);
  display: grid;
  gap: var(--space-3);
}
.stage-value h3 {
  margin: 0 0 var(--space-1);
  font-size: var(--text-md);
  font-weight: 600;
}
.stage-value p {
  margin: 0;
  font-size: var(--text-md);
}
.stage-brief ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: var(--space-3);
}
.stage-brief ul {
  margin: var(--space-1) 0;
  padding-left: 18px;
  font-size: var(--text-sm);
}
.brief-gap {
  color: var(--muted);
}
