:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --surface: #fff;
  --surface-2: #eceef2;
  --ink: #20242b;
  --muted: #626a76;
  --line: #e2e5eb;
  --accent: #2463eb;
  --accent-soft: #eaf0ff;
  --danger: #b83b3b;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body[data-theme='dark'] {
  color-scheme: dark;
  --bg: #14171c;
  --surface: #20242c;
  --surface-2: #292f39;
  --ink: #f1f3f7;
  --muted: #a8b0be;
  --line: #353c48;
  --accent: #86adff;
  --accent-soft: #263956;
  --danger: #ff9999;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
  color: inherit;
  background: none;
  touch-action: manipulation;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
  caret-color: var(--accent);
}
textarea {
  resize: vertical;
  min-height: 90px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
::placeholder {
  color: var(--muted);
  opacity: 1;
}
::selection {
  background: var(--accent-soft);
  color: var(--ink);
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.035em;
}
h2 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
small {
  font-size: 12px;
  color: var(--muted);
}
svg {
  width: 19px;
  height: 19px;
  display: block;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  left: 10px;
  top: -60px;
  z-index: 1000;
  padding: 12px;
  background: var(--surface);
}
.skip:focus {
  top: 10px;
}
.app-shell {
  display: flex;
  min-height: 100dvh;
}
.sidebar {
  width: 224px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 32px 18px 16px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.04em;
  padding: 0 6px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: white;
  flex: none;
}
.brand-mark svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
  stroke: none;
}
.workspace-label {
  font-size: 12px;
  color: var(--muted);
  margin: 48px 12px 12px;
}
.nav-item {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 10px 12px;
  border-radius: 9px;
  margin: 3px 0;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.nav-count {
  margin-left: auto;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 32px;
}
.account {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 20px;
  font-size: 12px;
}
.account > div {
  min-width: 0;
}
.account strong {
  display: block;
  max-width: 98px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account small {
  font-size: 11px;
}
.account form {
  margin-left: auto;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-weight: 600;
}
.account .icon-button {
  width: 30px;
  min-height: 36px;
}
main#main {
  margin-left: 224px;
  width: calc(100% - 224px);
  padding: 42px 36px 16px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.date-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.page-header p {
  color: var(--muted);
  margin-top: 10px;
}
.primary,
.soft,
.outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 9px;
  min-height: 42px;
  font-weight: 550;
  white-space: nowrap;
}
.primary {
  background: var(--accent);
  color: #fff;
}
.soft {
  background: var(--surface);
  border: 1px solid var(--line);
}
.outline {
  border: 1px solid var(--line);
}
body[data-theme='dark'] .primary {
  color: #101a2e;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-height: 36px;
  border-radius: 8px;
  color: var(--muted);
  flex: none;
}
.text-button {
  color: var(--accent);
  padding: 8px 0;
  text-align: left;
}
.danger {
  color: var(--danger) !important;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 180px;
  max-width: 440px;
  width: 100%;
  position: relative;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 12px;
}
.search input {
  border: 0;
  background: none;
  padding: 11px 0;
  box-shadow: none;
  min-width: 0;
}
.search kbd {
  font: 12px var(--font);
  border: 1px solid var(--line);
  padding: 0 5px;
  border-radius: 4px;
}
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-row {
  display: flex;
  gap: 16px;
  align-items: end;
  padding: 18px 0;
  flex-wrap: wrap;
}
.filter-row label {
  font-size: 12px;
  display: grid;
  gap: 5px;
}
.filter-row select {
  width: 180px;
}
.check {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  padding: 10px 0;
}
.check input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}
.board-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
  padding: 20px 0;
}
.board-meta #sort-label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.board-meta svg {
  width: 14px;
  height: 14px;
}
#content {
  flex: 1;
  min-width: 0;
}
.kanban {
  display: grid;
  grid-auto-columns: minmax(245px, 1fr);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 24px;
  min-height: 470px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.column {
  min-width: 0;
}
.column-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 3px 14px;
}
.status-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--status-color, #64748b);
}
.column-heading h2 {
  font-size: 14px;
  letter-spacing: 0;
}
.column-heading .count {
  font-size: 12px;
  color: var(--muted);
  background: var(--surface-2);
  padding: 0 6px;
  border-radius: 5px;
}
.column-heading > button {
  margin-left: auto;
  width: 26px;
  min-height: 26px;
}
.column-list {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 2px;
}
.job-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  cursor: pointer;
  transition:
    transform 150ms ease-out,
    border-color 150ms ease-out;
  min-width: 0;
  overflow-wrap: anywhere;
}
.job-card:active {
  transform: scale(0.995);
}
.job-card.dragging {
  opacity: 0.45;
}
.column-list.drag-over {
  background: var(--accent-soft);
  border-radius: 12px;
}
.card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}
.company-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  flex: none;
  font-weight: 650;
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
}
.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.company-name {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.card-favorite {
  margin-left: auto;
}
.card-favorite svg {
  width: 17px;
  height: 17px;
}
.is-favorite {
  color: #b48422;
}
.is-favorite svg {
  fill: currentColor;
  stroke: currentColor;
}
.job-card .card-favorite,
.job-card .card-more {
  width: 24px;
  min-height: 28px;
}
.card-title {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 7px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.015em;
}
.card-location {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 12px 0;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--ink);
}
.tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tag-color);
}
.tag svg {
  width: 12px;
  height: 12px;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  margin-top: 14px;
}
.salary {
  font-size: 12px;
  color: var(--ink);
  font-weight: 550;
}
.age-track {
  height: 3px;
  border-radius: 3px;
  background: var(--surface-2);
  margin-top: 13px;
  overflow: hidden;
}
.age-bar {
  height: 100%;
  background: var(--age-color, #7c9bc0);
  width: var(--progress, 0%);
  border-radius: 3px;
}
.interview-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}
.interview-indicator svg {
  width: 13px;
  height: 13px;
}
.priority-mark {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.priority-mark.high {
  color: var(--danger);
}
.column-empty {
  display: grid;
  place-content: center;
  text-align: center;
  min-height: 138px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  padding: 16px;
  gap: 8px;
  font-size: 12px;
}
.column-empty button {
  color: var(--accent);
}
.column-add {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 100%;
  color: var(--muted);
  padding: 12px;
  font-size: 12px;
}
.column-add svg {
  width: 14px;
  height: 14px;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  color: var(--muted);
  font-size: 11px;
}
.page-footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
.connection-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #569477;
}
.status-tabs,
.mobile-add {
  display: none;
}
.empty-state,
.loading-state {
  padding: 70px 20px;
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
  color: var(--muted);
}
.empty-state h2 {
  color: var(--ink);
  margin-bottom: 10px;
}
.empty-state p {
  margin-bottom: 22px;
}
.empty-state > svg {
  margin: 0 auto 16px;
  width: 32px;
  height: 32px;
}
.list-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.archive-note {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 0;
}
.agenda {
  max-width: 850px;
}
.agenda-row {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 22px 6px;
  border-top: 1px solid var(--line);
}
.agenda-date {
  color: var(--accent);
  font-size: 24px;
  font-weight: 650;
  line-height: 1.15;
  min-width: 55px;
}
.agenda-date small {
  display: block;
  font-size: 12px;
  margin-top: 4px;
}
.agenda-info {
  flex: 1;
}
.agenda-info p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
dialog {
  color: var(--ink);
  background: var(--surface);
  border: 0;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 18px 70px #0003;
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #12192360;
}
dialog[open] {
  animation: appear 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.capture-dialog {
  width: min(560px, calc(100vw - 32px));
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.capture-dialog p {
  color: var(--muted);
  margin-bottom: 22px;
}
.capture-dialog textarea {
  font-size: 16px;
  background: var(--bg);
  border-color: transparent;
  padding: 16px;
  min-height: 132px;
}
.drop-zone {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 16px;
  margin-top: 16px;
  cursor: pointer;
  font-size: 13px;
}
.drop-zone small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
}
.drop-zone input {
  display: none;
}
.drop-zone.drag-over {
  background: var(--accent-soft);
}
.dialog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}
.dialog-footer > span {
  font-size: 11px;
  color: var(--muted);
}
.file-list {
  font-size: 12px;
  padding-left: 20px;
  color: var(--muted);
}
.error {
  color: var(--danger) !important;
  font-size: 13px;
  white-space: pre-wrap;
}
.error:empty {
  display: none;
}
.detail-dialog {
  inset: 0 0 0 auto;
  margin: 0;
  height: 100dvh;
  max-height: 100dvh;
  width: 620px;
  max-width: 100vw;
  border-radius: 0;
  padding: 0;
}
.detail-dialog[open] {
  animation: slide 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.detail-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
#detail-content {
  padding: 24px 30px 48px;
}
.detail-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.detail-identity .company-logo {
  width: 44px;
  height: 44px;
  font-size: 17px;
}
.detail-identity small {
  display: block;
}
.detail-title {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.detail-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 18px 0 24px;
}
.detail-actions select {
  width: auto;
  max-width: 220px;
  min-height: 42px;
}
.detail-section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.detail-section > h3,
.section-heading {
  margin-bottom: 16px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full {
  grid-column: 1/-1;
}
label.field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
label.field input,
label.field textarea,
label.field select {
  color: var(--ink);
  font-size: 14px;
}
.detail-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.tag-choice {
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 12px;
}
.tag-choice.selected {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.hint {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0;
}
.extraction-note {
  font-size: 12px;
  background: var(--bg);
  padding: 12px;
  border-radius: 9px;
  margin-top: 16px;
}
.extraction-note button {
  margin-top: 5px;
  display: block;
}
.interview-row,
.attachment-row,
.reminder-row,
.contact-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: start;
}
.interview-row > div,
.reminder-row > div,
.contact-row > div {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.interview-row small,
.contact-row small {
  display: block;
  margin-top: 3px;
}
.attachment-row {
  align-items: center;
  font-size: 13px;
}
.attachment-row a {
  overflow-wrap: anywhere;
}
.attachment-row small {
  margin-left: auto;
  white-space: nowrap;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline li {
  position: relative;
  padding: 0 0 24px 22px;
  border-left: 1px solid var(--line);
  margin-left: 4px;
  font-size: 13px;
}
.timeline li:before {
  content: '';
  position: absolute;
  left: -4px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}
.timeline li:last-child {
  border-color: transparent;
  padding-bottom: 0;
}
.timeline p {
  margin: 6px 0;
  white-space: pre-wrap;
}
.timeline small {
  display: block;
  font-size: 11px;
}
.utility-dialog {
  width: min(620px, calc(100vw - 32px));
}
.utility-dialog form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
.utility-dialog .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.sort-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.sort-row select:first-child {
  flex: 1;
  min-width: 0;
}
.sort-row select:nth-child(2) {
  width: 120px;
}
.sort-row .icon-button {
  width: 28px;
}
.sort-description {
  font-size: 13px;
  color: var(--muted);
  margin: 16px 0;
}
.settings-page {
  max-width: 900px;
  padding-bottom: 32px;
}
.settings-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.settings-tabs button {
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--muted);
}
.settings-tabs button.active {
  background: var(--surface);
  color: var(--ink);
}
.settings-section {
  margin-bottom: 36px;
}
.settings-section > h2 {
  margin-bottom: 8px;
}
.settings-section > p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 22px;
}
.config-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.config-row .config-name {
  flex: 1;
}
.config-row small {
  display: block;
  margin-top: 3px;
}
.config-row .soft {
  min-height: 36px;
  font-size: 12px;
}
.token-value {
  display: block;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  padding: 16px;
  border-radius: 9px;
  background: var(--bg);
  font-size: 13px;
  user-select: all;
}
.instructions {
  padding-left: 22px;
  line-height: 1.8;
  font-size: 13px;
}
.instructions li {
  margin-bottom: 10px;
}
.instructions code {
  overflow-wrap: anywhere;
  font-size: 12px;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--surface);
  padding: 12px 20px;
  border-radius: 10px;
  z-index: 100;
  max-width: 90vw;
  font-size: 13px;
  box-shadow: 0 6px 24px #0002;
  display: none;
}
#toast.visible {
  display: block;
}
.login-page {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 24px;
}
.login-box {
  max-width: 380px;
  width: 100%;
}
.login-box .brand-mark {
  width: 44px;
  height: 44px;
  margin-bottom: 32px;
}
.login-box h1 {
  font-size: 30px;
  margin-bottom: 16px;
}
.login-box > p {
  color: var(--muted);
  margin-bottom: 32px;
}
.login-box form {
  display: grid;
  gap: 18px;
}
.login-box label {
  display: grid;
  gap: 7px;
  font-size: 13px;
}
.login-box button {
  margin-top: 8px;
}
.login-box > small {
  display: block;
  text-align: center;
  margin-top: 32px;
}
.login-box input {
  font-size: 16px;
}
@media (hover: hover) {
  button:hover {
    filter: brightness(0.97);
  }
  .nav-item:hover,
  .icon-button:hover {
    background: var(--surface-2);
  }
  .job-card:hover {
    border-color: #aab8cb;
  }
  .column-add:hover {
    color: var(--accent);
  }
  .primary:hover {
    filter: brightness(0.94);
  }
}
@keyframes slide {
  from {
    transform: translateX(30px);
    opacity: 0.7;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes appear {
  from {
    transform: translateY(8px);
    opacity: 0.7;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@media (min-width: 1600px) {
  .kanban {
    gap: 24px;
  }
  .job-card {
    padding: 20px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 192px;
    padding-inline: 12px;
  }
  .brand {
    font-size: 16px;
  }
  main#main {
    margin-left: 192px;
    width: calc(100% - 192px);
    padding: 32px 24px 16px;
  }
  .page-header {
    align-items: flex-start;
  }
  .page-header .primary {
    font-size: 12px;
  }
  .kanban {
    grid-auto-columns: 255px;
  }
  .page-header p {
    max-width: 340px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: relative;
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px 18px 0;
    gap: 12px;
  }
  .brand {
    font-size: 16px;
    padding: 0;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
  }
  .workspace-label,
  .sidebar-bottom,
  .nav-count {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    scrollbar-width: none;
  }
  .nav-item {
    width: auto;
    flex: 1;
    min-height: 44px;
    justify-content: center;
    padding: 10px 8px;
    font-size: 12px;
    gap: 6px;
    margin: 0 0 8px;
  }
  .nav-item svg {
    width: 16px;
    height: 16px;
  }
  .app-shell {
    display: block;
  }
  .sidebar nav:after {
    content: none;
  }
  main#main {
    margin: 0;
    width: 100%;
    padding: 24px 18px 100px;
    min-height: calc(100dvh - 115px);
  }
  .page-header {
    margin-bottom: 24px;
    gap: 8px;
  }
  .date-label {
    font-size: 11px;
    margin-bottom: 8px;
  }
  h1 {
    font-size: 28px;
  }
  .page-header p {
    font-size: 13px;
    max-width: 290px;
  }
  main#main .page-header > .primary {
    display: none;
  }
  .toolbar {
    gap: 8px;
    align-items: stretch;
  }
  .search {
    min-width: 0;
  }
  .search input {
    font-size: 16px;
    padding: 10px 0;
  }
  .search kbd {
    display: none;
  }
  .toolbar-actions {
    gap: 4px;
  }
  .toolbar-actions .soft {
    font-size: 0;
    padding: 8px 10px;
    min-height: 44px;
  }
  .toolbar-actions svg {
    width: 18px;
    height: 18px;
  }
  .toolbar-actions #refresh {
    display: none;
  }
  .board-meta {
    padding: 16px 0;
    font-size: 11px;
  }
  .board-meta #sort-label {
    max-width: 160px;
    text-align: right;
    display: block;
  }
  .status-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    margin: 0 -18px 20px;
    padding: 0 18px 2px;
    scrollbar-width: none;
  }
  .status-tabs button {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    white-space: nowrap;
    min-height: 44px;
    border-radius: 8px;
    font-size: 12px;
    color: var(--muted);
  }
  .status-tabs button.active {
    background: var(--surface);
    color: var(--ink);
    font-weight: 600;
  }
  .kanban {
    display: block;
    overflow: visible;
    min-height: 200px;
  }
  .column {
    display: none;
  }
  .column.mobile-active {
    display: block;
  }
  .column-heading {
    display: none;
  }
  .column-list {
    min-height: 100px;
    gap: 12px;
    padding: 0;
  }
  .job-card {
    padding: 18px;
  }
  .card-top {
    margin-bottom: 10px;
  }
  .card-title {
    font-size: 16px;
  }
  .card-bottom {
    font-size: 12px;
  }
  .card-location {
    margin-bottom: 8px;
  }
  .card-tags {
    margin: 10px 0;
  }
  .column-empty {
    min-height: 220px;
  }
  .mobile-add {
    display: grid;
    place-items: center;
    position: fixed;
    right: 22px;
    bottom: calc(22px + env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: var(--accent);
    color: white;
    box-shadow: 0 6px 22px #1b4e9730;
    z-index: 5;
  }
  .mobile-add svg {
    width: 26px;
    height: 26px;
  }
  .page-footer {
    margin-top: 20px;
  }
  .page-footer > span:last-child {
    display: none;
  }
  .detail-dialog {
    width: 100vw;
    height: 100dvh;
    max-width: 100vw;
  }
  .detail-header {
    padding: 10px 16px;
  }
  #detail-content {
    padding: 22px 20px 48px;
  }
  .detail-title {
    font-size: 24px;
  }
  label.field input,
  label.field select,
  label.field textarea {
    font-size: 16px;
  }
  .icon-button {
    min-width: 40px;
    min-height: 44px;
  }
  .job-card .card-favorite,
  .job-card .card-more {
    min-width: 36px;
    min-height: 36px;
  }
  .form-grid {
    gap: 14px;
  }
  .detail-actions {
    gap: 6px;
  }
  .detail-actions select {
    max-width: 180px;
  }
  .capture-dialog,
  .utility-dialog {
    padding: 22px;
    max-height: 90dvh;
    border-radius: 16px;
  }
  .dialog-heading h2 {
    font-size: 19px;
  }
  .dialog-footer > span {
    display: none;
  }
  .dialog-footer {
    justify-content: flex-end;
  }
  .drop-zone small {
    font-size: 11px;
  }
  .sort-row {
    gap: 4px;
    flex-wrap: wrap;
  }
  .sort-row select {
    font-size: 16px;
  }
  .sort-row select:first-child {
    width: calc(100% - 140px);
  }
  .sort-row select:nth-child(2) {
    width: 112px;
  }
  .filter-row {
    gap: 10px;
  }
  .filter-row select {
    width: 155px;
    font-size: 16px;
  }
  .list-view {
    grid-template-columns: 1fr;
  }
  .settings-tabs {
    gap: 4px;
  }
  .settings-tabs button {
    padding: 9px;
    font-size: 12px;
    min-height: 44px;
  }
  .config-row {
    flex-wrap: wrap;
  }
  .config-row .config-name {
    min-width: 130px;
  }
  .config-row .soft {
    min-height: 44px;
  }
  .agenda-row {
    gap: 12px;
  }
  .agenda-date {
    font-size: 22px;
  }
  .agenda-info h3 {
    font-size: 14px;
  }
  #toast {
    bottom: 100px;
  }
  .settings-mobile {
    display: flex !important;
  }
}
.settings-mobile {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Keep the LinkedIn submit action separate from its input. */
.token-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
@media (max-width: 760px) {
  .token-row {
    flex-wrap: wrap;
  }
  .token-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
#linkedin-form {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
#linkedin-form > .primary {
  justify-self: end;
  max-width: 100%;
  white-space: normal;
}
@media (max-width: 760px) {
  #linkedin-form > .primary {
    justify-self: stretch;
    min-height: 44px;
  }
}
/* Accessible file picker and touch targets. */
.drop-zone {
  position: relative;
}
.drop-zone input {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.drop-zone:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .job-card .card-favorite,
  .job-card .card-more {
    min-width: 44px;
    min-height: 44px;
  }
}
#archive-drop-targets {
  position: fixed;
  top: 18px;
  left: 260px;
  right: 36px;
  z-index: 40;
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 6px 24px #0002;
}
#archive-drop-targets [data-archive-drop] {
  flex: 1;
  min-height: 64px;
  padding: 12px;
  border: 2px dashed var(--muted);
  border-radius: 8px;
  font-weight: 600;
  background: var(--surface-2);
}
#archive-drop-targets [data-archive-drop='rejected'] {
  color: var(--danger);
  border-color: var(--danger);
}
#archive-drop-targets .drag-over {
  background: var(--accent-soft);
  border-style: solid;
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.job-card.selected-card {
  border-color: var(--accent);
}
@media (max-width: 760px) {
  #archive-drop-targets {
    left: 12px;
    right: 12px;
    top: 12px;
    gap: 8px;
    padding: 8px;
  }
  #archive-drop-targets [data-archive-drop] {
    min-height: 60px;
    padding: 8px;
  }
  #cancel-selection {
    font-size: 12px;
  }
}

/* Incomplete offers: quiet background marker, keeping text and controls opaque. */
.job-card:has(> .incomplete-watermark) {
  position: relative;
  isolation: isolate;
}
.job-card > .incomplete-watermark {
  position: absolute;
  z-index: -1;
  inset: 10px 12px 10px auto;
  width: 55%;
  max-width: 160px;
  background: url('incomplete-cone.png') center / contain no-repeat;
  opacity: 0.16;
  pointer-events: none;
  user-select: none;
}

.deadline-calendar {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  margin-bottom: 32px;
}
.deadline-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.deadline-calendar-header p,
.calendar-summary,
.calendar-empty {
  color: var(--muted);
  margin-top: 8px;
}
.calendar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.calendar-controls h3 {
  min-width: 145px;
  text-align: center;
  text-transform: capitalize;
}
.calendar-controls .outline {
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
}
[data-calendar-move='-1'] svg {
  transform: rotate(180deg);
}
.calendar-summary {
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.deadline-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.calendar-weekday {
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  background: var(--surface-2);
  border-right: 1px solid var(--line);
}
.deadline-day {
  min-height: 110px;
  min-width: 0;
  padding: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.deadline-day.outside {
  background: var(--bg);
}
.deadline-day time {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.calendar-day-number {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  min-height: 26px;
}
.is-today .calendar-day-number {
  background: var(--accent);
  color: var(--surface);
  border-radius: 50%;
  font-weight: 700;
}
.calendar-today-label {
  font-size: 11px;
  color: var(--accent);
}
.calendar-mobile-date {
  display: none;
}
.deadline-entry {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px;
  margin-top: 6px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--ink);
  overflow-wrap: anywhere;
  min-height: 44px;
}
.deadline-entry strong {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  margin: 4px 0;
}
.deadline-company {
  display: block;
  font-size: 11px;
}
.deadline-countdown {
  display: block;
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.deadline-entry.urgent {
  background: #ffe0ce;
  color: #942a0c;
}
.deadline-entry.expired {
  background: #f3e7d5;
  color: #68430f;
}
.deadline-entry.sent {
  background: var(--surface-2);
  color: var(--muted);
}
[data-theme='dark'] .deadline-entry.urgent {
  background: #512d20;
  color: #ffceb3;
}
[data-theme='dark'] .deadline-entry.expired {
  background: #403321;
  color: #f4d49c;
}
@media (hover: hover) {
  .deadline-entry:hover {
    outline: 1px solid var(--accent);
  }
  .calendar-controls button:hover {
    background: var(--accent-soft);
  }
}
@media (max-width: 1100px) {
  .deadline-day {
    padding: 5px;
  }
  .deadline-entry {
    padding: 6px;
  }
  .calendar-today-label {
    width: 100%;
  }
}
@media (max-width: 700px) {
  .deadline-calendar {
    margin-top: 32px;
  }
  .deadline-calendar-header {
    gap: 16px;
  }
  .calendar-controls {
    width: 100%;
  }
  .calendar-controls h3 {
    flex: 1;
    min-width: 100px;
  }
  .deadline-grid {
    display: block;
    border: 0;
  }
  .calendar-weekday,
  .deadline-day.outside,
  .deadline-day:not(.has-deadlines) {
    display: none;
  }
  .deadline-day {
    border: 0;
    border-top: 1px solid var(--line);
    background: none;
    min-height: 0;
    padding: 16px 0;
  }
  .deadline-day time {
    font-size: 14px;
    color: var(--ink);
  }
  .calendar-mobile-date {
    display: inline;
  }
  .calendar-today-label {
    width: auto;
  }
  .deadline-entry {
    padding: 12px;
  }
  .deadline-entry strong {
    font-size: 14px;
  }
  .deadline-company {
    font-size: 12px;
  }
}
/* Upcoming application deadlines: vivid surface, quiet stamp, explicit text. */
.job-card.is-urgent {
  position: relative;
  isolation: isolate;
  background: #fff1e9;
  border-color: #e6ad91;
  box-shadow: inset 3px 0 0 #d97849;
}
.job-card > .urgent-stamp {
  position: absolute;
  z-index: -1;
  right: 12px;
  top: 45%;
  transform: rotate(-12deg);
  padding: 3px 8px;
  border: 3px solid currentColor;
  border-radius: 5px;
  color: #bb3214;
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
  opacity: 0.18;
  pointer-events: none;
  user-select: none;
}
.deadline-warning {
  position: relative;
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #ffe0ce;
  color: #942a0c;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.deadline-warning.expired {
  background: #f3e7d5;
  color: #68430f;
}
[data-theme='dark'] .job-card.is-urgent {
  background: #352720;
  border-color: #805640;
  box-shadow: inset 3px 0 0 #d9956e;
}
[data-theme='dark'] .urgent-stamp {
  color: #ffad85;
}
[data-theme='dark'] .deadline-warning {
  background: #512d20;
  color: #ffceb3;
}
[data-theme='dark'] .deadline-warning.expired {
  background: #403321;
  color: #f4d49c;
}

/* Importance outranks the numbered priorities; deadline warnings remain explicit. */
.job-card[data-priority='2']:not(.is-urgent) {
  background: #fff6e5;
  border-color: #e6cc96;
}
.job-card[data-priority='1']:not(.is-urgent) {
  background: #f4f8fd;
  border-color: #dce6f2;
}
.job-card[data-priority].is-important:not(.is-urgent),
.job-card[data-priority]:has(> .important-stamp):not(.is-urgent) {
  background: #ffeded;
  border-color: #dfa0a0;
}
.job-card > .important-stamp {
  display: table;
  margin: 2px 0 14px;
  padding: 3px 9px;
  border: 2px solid #a32d35;
  border-radius: 4px;
  color: #a32d35;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
  transform: rotate(-3deg);
  pointer-events: none;
}
body[data-theme='dark'] .job-card[data-priority='2']:not(.is-urgent) {
  background: #302a20;
  border-color: #776440;
}
body[data-theme='dark'] .job-card[data-priority='1']:not(.is-urgent) {
  background: #222b36;
  border-color: #3d4e64;
}
body[data-theme='dark'] .job-card[data-priority].is-important:not(.is-urgent),
body[data-theme='dark'] .job-card[data-priority]:has(> .important-stamp):not(.is-urgent) {
  background: #392326;
  border-color: #a15c65;
}
body[data-theme='dark'] .important-stamp {
  color: #ffb5bc;
  border-color: #e99ca5;
}

/* Full-column card targets and documents dropped onto an open record. */
.kanban .column {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  border-radius: 12px;
  padding: 8px;
  outline: 2px solid transparent;
  outline-offset: -2px;
}
.kanban .column-list {
  min-height: 240px;
  padding-bottom: 32px;
}
.kanban .column.drag-over {
  background: var(--accent-soft);
  outline-color: var(--accent);
}
#archive-drop-targets [data-archive-drop] {
  min-height: 64px;
  min-width: 180px;
  padding: 16px 24px;
}
.detail-dialog.document-drag-over {
  outline: 3px dashed var(--accent);
  outline-offset: -8px;
}
.detail-dialog.document-drag-over:after {
  content: 'Déposez les documents pour les ajouter';
  position: sticky;
  display: block;
  bottom: 16px;
  margin: 16px;
  padding: 20px;
  background: var(--accent);
  color: white;
  border-radius: 10px;
  text-align: center;
  pointer-events: none;
  z-index: 4;
}
.document-upload-status {
  position: sticky;
  bottom: 0;
  margin: 0;
  padding: 16px 24px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--accent);
  z-index: 4;
}
@media (max-width: 760px) {
  .kanban .column {
    display: none;
    padding: 0;
  }
  .kanban .column.mobile-active {
    display: flex;
  }
  #archive-drop-targets [data-archive-drop] {
    min-width: 0;
    flex: 1;
    padding: 16px 12px;
  }
}

/* Persistent expiry review: the next card stays underneath until acknowledgement. */
.expiry-panel {
  margin: 0 0 28px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.expiry-panel h2 {
  font-size: 20px;
  margin: 0 0 8px;
}
.expiry-panel > p {
  max-width: 65ch;
  line-height: 1.5;
}
.expiry-panel > a {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  text-decoration: underline;
  min-height: 44px;
}
.expiry-stack {
  position: relative;
  max-width: 520px;
  margin: 20px 12px 12px 0;
}
.expiry-underlay {
  position: absolute;
  inset: 10px -8px -8px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}
.expiry-card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  overflow-wrap: anywhere;
}
.expiry-card strong {
  font-size: 20px;
  line-height: 1.35;
}
.expiry-card img {
  object-fit: contain;
}
.expiry-card:hover {
  border-color: var(--accent);
}
.expiry-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.expiry-card:disabled {
  cursor: wait;
}
.expiry-company {
  font-weight: 600;
}
.expiry-confirm {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 6px;
}
.expiry-confirm svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 760px) {
  .expiry-panel {
    padding: 16px;
  }
  .expiry-card {
    padding: 18px;
  }
  .expiry-card strong {
    font-size: 18px;
  }
}
.archive-groups {
  display: grid;
  gap: 32px;
}
.archive-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}
.archive-heading h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.archive-heading h2::first-letter {
  text-transform: uppercase;
}
.job-card.is-archived {
  background: var(--surface);
  border-color: var(--line);
  filter: grayscale(1);
}
.job-card.is-archived .company-logo {
  background: var(--surface-2);
  color: var(--muted);
}
.job-card.is-archived .tag-dot {
  background: var(--muted);
}
.job-card.is-archived .priority-mark,
.job-card.is-archived .interview-indicator,
.job-card.is-archived .card-favorite {
  color: var(--muted);
}
.job-card.is-archived .card-favorite.is-favorite {
  color: var(--ink);
}

.linkedin-icon {
  color: #0a66c2;
  flex-shrink: 0;
}
.tag-choice:has(.linkedin-icon) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-tags .tag:has(.linkedin-icon) {
  white-space: normal;
  max-width: 100%;
}
.tag:has(.linkedin-icon) .tag-dot {
  display: none;
}
/* Interviews: extends the application's existing form and agenda system. */
.interview-editor {
  width: min(820px, calc(100vw - 32px));
}
.interview-context {
  color: var(--muted);
  margin: 4px 0 20px;
  overflow-wrap: anywhere;
}
.interview-context strong {
  font-weight: 500;
  color: var(--ink);
}
.interview-form-section {
  min-width: 0;
  padding: 0 0 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.interview-form-section h3 {
  margin-bottom: 16px;
}
.interview-form-section > .hint {
  margin: -6px 0 16px;
}
.interview-form-section .field {
  min-width: 0;
}
.interview-form-section .field small {
  font-weight: 400;
  line-height: 1.5;
}
.interview-form-section input,
.interview-form-section select,
.interview-form-section textarea {
  min-width: 0;
}
.interview-more > summary,
.interview-new-contact > summary {
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
  min-height: 42px;
}
.interview-more[open] > summary {
  margin-bottom: 12px;
}
.interview-more .hint {
  margin: 8px 0 16px;
}
.interview-new-contact {
  margin-top: 16px;
}
.interview-new-contact .form-grid {
  margin: 12px 0 16px;
}
.interview-contact-search {
  margin-bottom: 12px;
}
.interview-contact-options {
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.interview-contact-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  overflow-wrap: anywhere;
}
.interview-contact-choice input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 3px 0;
  accent-color: var(--accent);
}
.interview-contact-choice strong {
  font-weight: 550;
}
.interview-contact-choice small {
  display: block;
  margin-top: 2px;
}
.interview-contact-choice:has(input:checked) {
  background: var(--accent-soft);
}
.interview-document-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto;
  gap: 12px;
  align-items: end;
  margin: 12px 0;
}
.interview-document-link .icon-button {
  margin-bottom: 3px;
}
.interview-attachments {
  border: 0;
  padding: 0;
  margin: 16px 0 24px;
  min-width: 0;
}
.interview-attachments legend {
  font-weight: 550;
  margin-bottom: 4px;
}
.interview-attachments .check {
  overflow-wrap: anywhere;
}
.interview-attachments input {
  flex-shrink: 0;
}
.interview-history {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.interview-history li {
  display: grid;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  overflow-wrap: anywhere;
}
.interview-history strong {
  font-weight: 550;
}
.interview-save {
  position: sticky;
  bottom: -28px;
  background: var(--surface);
  padding: 16px 0 max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  z-index: 1;
}
.interview-summary {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.interview-summary:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.interview-summary-top {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
}
.interview-summary-top > strong {
  font-size: 15px;
  font-weight: 600;
  flex: 1;
  min-width: 160px;
}
.interview-status {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--ink);
  white-space: nowrap;
  line-height: 1.5;
}
.interview-status.status-confirmed {
  background: var(--accent-soft);
  color: var(--accent);
}
.interview-status.status-cancelled {
  color: var(--muted);
}
.interview-schedule {
  font-size: 13px;
  margin: 6px 0;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.interview-location {
  font-size: 13px;
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.interview-location a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.interview-location svg {
  width: 14px;
  height: 14px;
}
.interview-people {
  padding: 0;
  list-style: none;
  margin: 12px 0;
  display: grid;
  gap: 8px;
}
.interview-people strong {
  font-size: 13px;
  font-weight: 550;
}
.interview-people small {
  display: block;
}
.interview-followup {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  margin: 12px 0;
  color: var(--ink);
}
.interview-followup svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.interview-row-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.interview-row-actions .text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  font-size: 13px;
}
.interview-row-actions svg {
  width: 15px;
  height: 15px;
}
.interview-derived {
  margin: 10px 0;
}
.interview-agenda-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.interview-agenda {
  max-width: 1100px;
}
.interview-agenda-group {
  margin-bottom: 40px;
}
.interview-agenda-group > h2 {
  font-size: 18px;
  margin-bottom: 16px;
}
.interview-agenda-group > h2 small {
  margin-left: 8px;
  font-weight: 400;
}
.interview-agenda-group > .hint {
  margin: -8px 0 16px;
}
.interview-agenda-row {
  align-items: flex-start;
  padding: 22px 0;
}
.interview-agenda-row .agenda-info {
  min-width: 0;
  overflow-wrap: anywhere;
}
.interview-agenda-row .agenda-date {
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.interview-agenda-row .interview-agenda-company {
  color: var(--ink);
  margin-top: 8px;
}
.interview-agenda-row > .outline {
  margin-left: 12px;
}
.interview-agenda-row .interview-row-actions {
  margin-top: 4px;
}
@media (hover: hover) {
  .interview-contact-choice:hover {
    background: var(--surface-2);
  }
  .interview-contact-choice:has(input:checked):hover {
    background: var(--accent-soft);
  }
}
@media (max-width: 640px) {
  .interview-editor {
    width: calc(100vw - 16px);
    padding: 20px;
    max-height: calc(100dvh - 16px);
  }
  .interview-editor .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .interview-editor input,
  .interview-editor select,
  .interview-editor textarea {
    font-size: 16px;
  }
  .interview-editor .form-actions {
    gap: 10px;
  }
  .interview-editor .form-actions .primary {
    flex: 1;
    white-space: normal;
  }
  .interview-save {
    bottom: -20px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }
  .interview-contact-options {
    max-height: 220px;
  }
  .interview-document-link {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .interview-document-link > .field:first-child {
    grid-column: 1/-1;
  }
  .interview-document-link .icon-button {
    min-height: 44px;
    width: 44px;
  }
  .interview-agenda-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
  }
  .interview-agenda-toolbar .primary {
    align-self: flex-start;
  }
  .interview-agenda-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }
  .interview-agenda-row .agenda-date {
    min-width: 0;
  }
  .interview-agenda-row > .outline {
    grid-column: 2;
    justify-self: start;
    margin-left: 0;
    min-height: 44px;
  }
  .interview-summary-top > strong {
    min-width: 130px;
  }
  .interview-row-actions {
    gap: 8px 16px;
  }
  .interview-row-actions .text-button {
    min-height: 44px;
  }
}

#capture-form .dialog-footer {
  flex-wrap: wrap;
  gap: 12px;
}
#capture-form .dialog-footer > span {
  flex: 1 1 140px;
}
#capture-form .dialog-footer > button {
  min-height: 44px;
}

.fit-track {
  display: flex;
  height: 9px;
  border-radius: 5px;
  overflow: hidden;
  background: #a7aeb8;
  width: 100%;
  margin-top: 12px;
}
.fit-positive {
  background: #29834d;
}
.fit-unknown {
  background: #a7aeb8;
}
.fit-negative {
  background: #c34a48;
}
.fit-score small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}
.fit-track span {
  height: 100%;
  flex-shrink: 0;
}
#fit-offer blockquote {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-left: 3px solid var(--line);
  padding-left: 12px;
}

/* Active filters remain visible when the filter controls are collapsed. */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.active-filters[hidden] {
  display: none;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  text-align: left;
}
.filter-chip span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.filter-chip svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--muted);
}
.filter-chip:hover {
  border-color: var(--accent);
}
.filter-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .filter-chip {
    min-height: 44px;
  }
}

.staging-notice { padding: 10px 20px; background: #fff1c2; color: #503c00; font-weight: 600; text-align: center; }
