/* Component styles. Responsive geometry lives in job-compass-layout.css. */
* {
  box-sizing: border-box;
}

html,body {
  margin: 0;
}

body {
  background: var(--canvas);
  color: var(--text);
  font-family: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Microsoft YaHei",sans-serif;
}

button,input,select,textarea {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline: 2px solid var(--muted);
  outline-offset: 2px;
}

body.locked .app,body.locked .modal,body.locked .drawer,body.locked .notice {
  display: none;
}

body:not(.locked) .login-screen {
  display: none;
}

html.auth-restoring .login-screen,html.auth-restoring body .app,html.auth-restoring body .modal,html.auth-restoring body .drawer,html.auth-restoring body .notice {
  display: none!important;
}

.auth-restore-screen {
  align-items: center;
  display: none;
  justify-content: center;
  padding: 24px;
}

html.auth-restoring .auth-restore-screen {
  display: flex;
}

.auth-restore-brand {
  align-items: center;
  color: var(--accent-strong);
  display: flex;
  font-size: 14px;
  gap: 12px;
}

.auth-restore-spinner {
  animation: auth-restore-spin .7s linear infinite;
  border: 2px solid var(--line);
  border-radius: 50%;
  height: 18px;
  width: 18px;
} @keyframes auth-restore-spin {

to {
  transform: rotate(360deg);
} }

.login-screen {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 24px;
}

.login-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 68px rgba(24,54,74,.13);
  display: grid;
  gap: 20px;
  padding: 32px;
  width: min(416px,100%);
}

.login-brand,.brand {
  align-items: center;
  display: flex;
  gap: 12px;
}

.logo {
  align-items: center;
  border-radius: 9px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 800;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.login-brand h1 {
  font-size: 24px;
  line-height: 1.1;
  margin: 0;
}

.login-brand p,.login-error {
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 0;
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-form label,.field {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 7px;
}

.login-form input,.field input,.field select,.field textarea,.search-input,.filter-select {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--text);
  min-height: 38px;
  padding: 0 11px;
  width: 100%;
}

.field textarea {
  min-height: 92px;
  padding: 10px 11px;
  resize: vertical;
}

.login-error {
  color: var(--danger);
  min-height: 18px;
}

.app {
  display: flex;
}

.sidebar {
  background: var(--surface-subtle);
  border-right: 1px solid var(--line);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 0;
  top: 0;
}

.brand {
  padding: 0 8px 24px;
}

.brand strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}

.nav {
  display: grid;
  gap: 5px;
}

.nav-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 7px;
  display: flex;
  font-size: 14px;
  gap: 10px;
  height: 40px;
  padding: 0 10px;
  text-align: left;
  width: 100%;
}

.nav-button:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.nav-button.active {
  font-weight: 700;
}

.nav-icon {
  font-size: 16px;
  line-height: 1;
  text-align: center;
  width: 18px;
}

.sidebar-foot {
  border-top: 1px solid var(--line);
}

.profile-menu {
  position: relative;
  width: 100%;
}

.user-card {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 7px;
  display: flex;
  gap: 9px;
  justify-content: flex-start;
  min-width: 0;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.user-card:hover {
  background: var(--surface-subtle);
}

.user-avatar {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.user-copy {
  flex: 1;
  min-width: 0;
}

.user-copy strong {
  display: block;
  font-size: 12px;
  line-height: 1.2;
}

.user-copy span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chevron {
  color: var(--muted);
  font-size: 11px;
  margin-left: 2px;
}

.user-menu {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  bottom: calc(100% + 8px);
  box-shadow: 0 12px 28px rgba(24,54,74,.12);
  display: none;
  left: 0;
  overflow: hidden;
  padding: 4px;
  position: absolute;
  right: 0;
  z-index: 20;
}

.user-menu.open {
  display: grid;
}

.user-menu button {
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 12px;
  padding: 8px 9px;
  text-align: left;
}

.user-menu button:hover {
  background: var(--surface-subtle);
  color: var(--accent);
}

.main-area {
  display: flex;
  flex-direction: column;
}

.topbar {
  align-items: center;
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
}

.sheet-switcher {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 7px;
  display: inline-flex;
  padding: 8px 9px;
  text-align: left;
}

.sheet-switcher:hover {
  background: var(--surface-subtle);
}

.sheet-switcher strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
  white-space: nowrap;
}

.chevron {
  display: grid;
  height: 18px;
  margin-left: auto;
  place-items: center;
  width: 18px;
}

.chevron::before {
  border-bottom: 1.5px solid var(--muted);
  border-right: 1.5px solid var(--muted);
  content: "";
  height: 6px;
  transform: rotate(45deg) translate(-1px,-1px);
  width: 6px;
}

.topbar-spacer {
  flex: 1;
}

.top-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.btn {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  display: inline-flex;
  font-size: 13px;
  gap: 7px;
  justify-content: center;
  padding: 0 12px;
  white-space: nowrap;
}

.btn:hover {
  background: var(--surface-subtle);
  border-color: var(--line);
}

.btn.primary {
  color: #fff;
}

.btn.danger {
  border-color: #efcecc;
  color: var(--danger);
}

.icon-btn {
  padding: 0;
  width: 36px;
}

.page {
  flex: 1;
  overflow: auto;
}

.page-inner {
  margin: 0 auto;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
}

.page-heading h1 {
  margin: 0;
}

.page-heading p {
  color: var(--muted);
  font-size: 13px;
  margin: 7px 0 0;
}

.metric-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.metric-card,.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric-card {
  min-height: 138px;
  padding: 18px;
}

.metric-label {
  color: var(--muted);
  font-size: 13px;
}

.metric-value {
  font-size: 36px;
  font-weight: 750;
  line-height: 1;
  margin: 18px 0 10px;
}

.metric-note {
  color: var(--muted);
  font-size: 12px;
}

.metric-card.progress .metric-value {
  color: var(--accent);
}

.metric-card.action .metric-value {
  color: #bd7815;
}

.metric-card.schedule .metric-value {
  color: #6a59ac;
}

.overview-grid {
  display: grid;
}

.overview-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 236px;
}

.overview-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.overview-head h2 {
  font-size: 14px;
  margin: 0;
}

.overview-head span {
  font-size: 11px;
}

.funnel-layout,.donut-layout {
  align-items: center;
  display: flex;
  min-height: 165px;
}

.funnel-chart {
  align-items: center;
  display: flex;
  flex: 0 0 152px;
  flex-direction: column;
  gap: 4px;
}

.funnel-step {
  align-items: center;
  clip-path: polygon(9% 0,91% 0,100% 100%,0 100%);
  color: #31545f;
  display: flex;
  font-size: 11px;
  font-weight: 800;
  height: 25px;
  justify-content: center;
}

.overview-legend {
  display: grid;
  flex: 1;
  gap: 8px;
  min-width: 0;
}

.legend-item {
  align-items: center;
  display: grid;
  gap: 7px;
  grid-template-columns: 8px minmax(0,1fr) 18px;
  min-width: 0;
}

.legend-dot {
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.legend-label {
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legend-count {
  color: var(--text);
  font-size: 11px;
  font-weight: 750;
  text-align: right;
}

.donut {
  align-items: center;
  border-radius: 50%;
  display: flex;
  flex: 0 0 132px;
  height: 132px;
  justify-content: center;
  position: relative;
  width: 132px;
}

.donut::after {
  background: #fff;
  border-radius: 50%;
  content: "";
  height: 83px;
  position: absolute;
  width: 83px;
}

.donut-copy {
  align-items: center;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.donut-copy strong {
  font-size: 23px;
  line-height: 1;
}

.donut-copy span {
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}

.week-summary {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.week-stat {
  align-items: center;
  border-bottom: 1px solid var(--accent-soft);
  display: grid;
  gap: 11px;
  grid-template-columns: 28px 34px 1fr;
  min-height: 43px;
}

.week-stat:last-child {
  border-bottom: 0;
}

.week-icon {
  align-items: center;
  border-radius: 6px;
  display: flex;
  font-size: 12px;
  height: 27px;
  justify-content: center;
  width: 27px;
}

.week-number {
  font-size: 19px;
  font-weight: 780;
}

.week-label {
  color: var(--muted);
  font-size: 12px;
}

.overview-empty {
  color: var(--line-strong);
  font-size: 12px;
  padding: 34px 0;
  text-align: center;
}

.dashboard-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.dashboard-side {
  align-content: start;
  display: grid;
  gap: 16px;
}

.panel {
  min-width: 0;
}

.panel-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 54px;
}

.panel-head h2 {
  font-size: 15px;
  margin: 0;
}

.panel-head span,.panel-head button {
  color: var(--muted);
  font-size: 12px;
}

.text-button {
  background: transparent;
  border: 0;
  color: var(--accent)!important;
  padding: 0;
}

.pipeline {
  display: grid;
  align-items: start;
  overflow-x: hidden;
}

.pipeline-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.pipeline-title {
  align-items: center;
  border-radius: 5px;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  justify-content: space-between;
  padding: 7px 8px;
}

.pipeline-title small {
  font-size: 11px;
  font-weight: 700;
}

.pipeline-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--card-color,var(--accent));
  border-radius: 5px;
  cursor: pointer;
  padding: 8px 8px 8px 9px;
  text-align: left;
  justify-self: stretch;
  margin: 0;
}

.pipeline-card strong {
  display: block;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pipeline-card span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-column {
  color: var(--line-strong);
  font-size: 12px;
  padding: 8px;
}

.dashboard-lower {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.list {
  display: grid;
  padding: 4px 16px 12px;
}

.list-item {
  align-items: center;
  border-bottom: 1px solid var(--accent-soft);
  display: grid;
  gap: 10px;
  grid-template-columns: 26px minmax(0,1fr) auto;
  min-height: 59px;
}

.list-item:last-child {
  border-bottom: 0;
}

.list-icon {
  align-items: center;
  border-radius: 5px;
  display: inline-flex;
  font-size: 13px;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.list-copy {
  min-width: 0;
}

.list-copy strong {
  display: block;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-copy span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-time {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
  white-space: nowrap;
}

.upcoming-entry {
  align-items: center;
  border-bottom: 1px solid var(--accent-soft);
  display: grid;
  min-height: 59px;
}

.upcoming-entry:last-child {
  border-bottom: 0;
}

.upcoming-open {
  align-items: center;
  background: transparent;
  border: 0;
  display: grid;
  grid-template-columns: 26px minmax(0,1fr) auto;
  min-height: 58px;
  padding: 0;
  text-align: left;
  width: 100%;
}

.upcoming-open:hover .list-copy strong {
  color: var(--accent);
}

.upcoming-entry.overdue .list-icon {
  background: #fff4df;
  color: #a66b18;
}

.upcoming-time {
  align-items: end;
  display: grid;
  gap: 3px;
  justify-items: end;
}

.upcoming-countdown {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  line-height: 20px;
  padding: 0 8px;
}

.upcoming-countdown.overdue {
  background: #fff0dc;
  color: #a56613;
}

.upcoming-date {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.upcoming-confirm {
  background: #fff;
  border: 1px solid #e5cda5;
  border-radius: 6px;
  color: #9a6317;
  font-size: 10px;
  font-weight: 750;
  height: 28px;
  padding: 0 8px;
  white-space: nowrap;
}

.upcoming-confirm:hover {
  background: #fff8ec;
  border-color: #c99246;
}

.empty-list {
  color: var(--line-strong);
  font-size: 13px;
  padding: 28px 4px;
  text-align: center;
}

.action-wrap {
  padding: 12px 16px 14px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.action-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.action-filter {
  background: var(--surface-subtle);
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 23px;
  padding: 0 9px;
}

.action-filter:hover {
  border-color: var(--line);
  color: var(--accent);
}

.action-list {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-gutter: auto;
}

.action-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--accent-soft);
  display: grid;
  grid-template-columns: 28px minmax(0,1fr) auto;
  padding: 7px 0;
  text-align: left;
  width: 100%;
}

.action-item:hover .action-copy strong {
  color: var(--accent);
}

.action-icon {
  align-items: center;
  border-radius: 5px;
  display: flex;
  font-size: 13px;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.action-copy {
  min-width: 0;
}

.action-copy strong {
  display: block;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .15s ease;
  white-space: nowrap;
}

.action-copy span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-command {
  border-radius: 999px;
  font-weight: 800;
  line-height: 23px;
  white-space: nowrap;
}

.action-command-test {
  background: #f0e7ff;
  color: #743aa9;
}

.action-command-interview {
  background: #ffe9dc;
  color: #a64f1d;
}

.action-more {
  background: transparent;
  border: 0;
  color: var(--accent);
  font-size: 11px;
  margin-top: 8px;
  padding: 5px 0 0;
  text-align: left;
}

.preparation-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.prep-list {
  display: grid;
  gap: 8px;
  padding: 12px 16px 14px;
}

.prep-item {
  align-items: center;
  background: var(--surface-subtle);
  border: 1px solid var(--accent-soft);
  border-radius: 6px;
  display: grid;
  gap: 9px;
  grid-template-columns: 28px minmax(0,1fr) auto;
  min-height: 61px;
  padding: 8px;
  text-align: left;
  width: 100%;
}

.prep-item:hover {
  background: var(--surface-subtle);
  border-color: var(--line);
}

.prep-mark {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 5px;
  color: var(--accent);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  width: 28px;
  flex: 0 0 auto;
}

.prep-copy {
  min-width: 0;
}

.prep-copy strong {
  display: block;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prep-copy span {
  color: var(--muted);
  display: block;
  font-size: 10px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prep-countdown {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.prep-empty {
  color: var(--line-strong);
  font-size: 12px;
  min-height: 120px;
  padding: 30px 16px;
  text-align: center;
}

.resume-toolbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.resume-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.resume-card {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 14px;
  grid-template-columns: 36px minmax(0,1fr) auto;
  padding: 13px;
}

.resume-card:hover {
  border-color: var(--line);
  background: var(--surface-subtle);
}

.resume-file {
  align-items: center;
  border-radius: 6px;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.resume-copy {
  min-width: 0;
}

.resume-copy strong {
  display: block;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resume-copy span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resume-actions {
  display: flex;
  gap: 6px;
}

.resume-actions .btn {
  height: 30px;
  padding: 0 9px;
}

.extract-ready {
  color: var(--accent-strong)!important;
}

.extract-failed {
  color: #aa5a25!important;
}

.prep-context {
  background: var(--surface-subtle);
  border: 1px solid var(--accent-soft);
  border-radius: 7px;
  margin-bottom: 16px;
  padding: 13px;
}

.prep-context strong {
  display: block;
  font-size: 14px;
}

.prep-context span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 5px;
}

.prep-checklist {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.prep-checklist li {
  color: var(--accent-strong);
  font-size: 13px;
  line-height: 1.55;
  list-style: none;
  padding-left: 18px;
  position: relative;
}

.prep-checklist li::before {
  color: var(--accent);
  content: "✓";
  left: 0;
  position: absolute;
}

.ai-output {
  background: var(--surface-subtle);
  border: 1px solid var(--accent-soft);
  border-radius: 7px;
  color: var(--accent-strong);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 14px;
  padding: 13px;
  white-space: pre-wrap;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.site-inline {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0,1fr) auto;
}

.site-inline .btn {
  height: 38px;
}

.resume-preview-frame {
  border: 1px solid var(--line);
  height: min(72vh,760px);
  width: 100%;
}

.resume-preview-text {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-family: ui-monospace,Consolas,monospace;
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
  max-height: 68vh;
  overflow: auto;
  padding: 14px;
  white-space: pre-wrap;
}

.chat-shell {
  display: grid;
  gap: 12px;
}

.chat-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.chat-messages {
  display: grid;
  gap: 10px;
  max-height: 440px;
  overflow: auto;
  padding-right: 3px;
}

.chat-message {
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.7;
  padding: 10px 12px;
  white-space: pre-wrap;
}

.chat-message.assistant {
  background: var(--surface-subtle);
  border: 1px solid var(--accent-soft);
  color: var(--accent-strong);
}

.chat-message.user {
  background: #eef2ff;
  color: #394d78;
  justify-self: end;
  max-width: 88%;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chat-suggestion {
  background: #fff;
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 11px;
  line-height: 28px;
  padding: 0 10px;
}

.chat-composer {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0,1fr) auto;
}

.chat-composer textarea {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font: inherit;
  min-height: 58px;
  padding: 9px 10px;
  resize: vertical;
  width: 100%;
}

.chat-composer .btn {
  height: 38px;
}

.prep-workspace {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  overflow: hidden;
}

.prep-rail {
  background: var(--surface-subtle);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 22px 14px;
  overscroll-behavior: contain;
}

.prep-rail-head {
  border-bottom: 1px solid var(--line);
  margin: 0 2px 16px;
  padding: 0 4px 16px;
}

.prep-rail-head h1 {
  font-size: 22px;
  margin: 0;
}

.prep-rail-head p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 7px 0 0;
}

.prep-rail-section {
  margin-bottom: 17px;
}

.prep-rail-label {
  font-size: 12px;
  font-weight: 750;
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font: inherit;
  justify-content: space-between;
  min-height: 28px;
  padding: 0 5px 7px;
  text-align: left;
  width: 100%;
}

.prep-rail-label span:last-child {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  min-width: 20px;
  padding: 2px 6px;
  text-align: center;
}

.prep-session-list {
  display: grid;
  gap: 5px;
}

.prep-session {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  display: grid;
  gap: 8px;
  min-height: 58px;
  padding: 7px;
  text-align: left;
  width: 100%;
  grid-template-columns: 29px minmax(0,1fr);
}

.prep-session:hover {
  background: var(--surface-subtle);
}

.prep-mark.test {
  background: #f0eaff;
  color: #7043a7;
}

.prep-mark.interview {
  background: #fff0e7;
  color: #ae5a2c;
}

.prep-session-copy {
  min-width: 0;
}

.prep-session-copy strong {
  display: block;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prep-session-copy span {
  color: var(--muted);
  display: block;
  font-size: 10px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prep-session-tail {
  color: var(--accent);
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
  display: none!important;
}

.prep-session.active .prep-session-tail {
  display: block;
}

.prep-rail-empty {
  color: var(--line-strong);
  font-size: 11px;
  line-height: 1.45;
  padding: 7px 5px;
}

.prep-conversation {
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.prep-context-bar {
  border-bottom: 1px solid var(--line);
}

.prep-context-top {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.prep-context-identity {
  min-width: 0;
}

.prep-context-title {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.prep-context-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prep-context-identity > span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 5px;
}

.prep-context-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.prep-context-chip {
  background: var(--surface-subtle);
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  line-height: 24px;
  max-width: 210px;
  overflow: hidden;
  padding: 0 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prep-context-controls {
  display: flex;
  flex-wrap: wrap;
  margin-top: 13px;
}

.prep-resume-select {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 12px;
  height: 32px;
  max-width: 230px;
  min-width: 150px;
  padding: 0 8px;
}

.prep-context-btn {
  background: transparent;
  border-color: transparent;
  font-size: 12px;
  padding: 0 8px;
}

.prep-context-detail {
  border-top: 1px solid var(--accent-soft);
  color: var(--muted);
  font-size: 12px;
  margin-top: 14px;
  padding-top: 11px;
}

.prep-context-detail summary {
  color: var(--accent-strong);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.prep-context-detail summary::-webkit-details-marker {
  display: none;
}

.prep-context-detail summary::after {
  color: var(--muted);
  content: "⌄";
  font-size: 13px;
  margin-left: 7px;
}

.prep-context-detail[open] summary::after {
  display: inline-block;
  transform: rotate(180deg);
}

.prep-context-copy {
  line-height: 1.7;
  margin-top: 10px;
  max-width: 900px;
  white-space: pre-wrap;
}

.prep-chat {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  max-width: none;
}

.prep-chat-messages {
  display: grid;
  gap: 20px;
  overflow: auto;
  overscroll-behavior: contain;
  align-content: start;
  flex: 1;
  min-width: 0;
  padding-left: 0;
  padding-right: 10px;
  scroll-behavior: auto;
}

.prep-message {
  font-size: 14px;
  line-height: 1.75;
  align-self: start;
}

.prep-message.assistant {
  padding-right: 0;
}

.prep-message.user {
  border: 1px solid var(--accent-soft);
  justify-self: end;
  max-width: min(84%,680px);
  padding: 10px 13px;
}

.prep-message-role {
  display: block;
  font-size: 11px;
  font-weight: 750;
  margin-bottom: 5px;
}

.prep-message-content {
  white-space: pre-wrap;
  max-width: 930px;
}

.prep-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.prep-starter {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 11px;
}

.prep-starter:hover {
  background: var(--surface-subtle);
  border-color: var(--line-strong);
}

.prep-composer {
  align-items: flex-end;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(24,54,74,.06);
  display: grid;
  gap: 8px;
  padding: 8px;
}

.prep-composer textarea {
  border: 0;
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
  outline: 0;
  padding: 7px 6px;
  width: 100%;
}

.prep-send {
  align-items: center;
  align-self: end;
  border: 0;
  border-radius: 7px;
  color: #fff;
  display: inline-flex;
  font-size: 19px;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

.prep-send:disabled {
  background: var(--line-strong);
  cursor: wait;
}

.prep-conversation-empty {
  align-content: center;
  color: var(--muted);
  display: grid;
  justify-items: center;
  margin: auto;
  max-width: 360px;
  padding: 42px;
  text-align: center;
}

.prep-empty-icon {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 50%;
  color: var(--accent);
  display: flex;
  font-size: 22px;
  height: 50px;
  justify-content: center;
  margin-bottom: 13px;
  width: 50px;
}

.prep-conversation-empty strong {
  color: var(--text);
  font-size: 16px;
}

.prep-conversation-empty p {
  font-size: 12px;
  line-height: 1.65;
  margin: 8px 0 0;
}

.page.prep-page-host .prep-page {
  height: 100%;
}

.page.prep-page-host .prep-workspace {
  height: 100%;
  min-height: 0;
}

.prep-rail-label:hover {
  color: var(--accent);
}

.prep-rail-label-copy {
  align-items: center;
  display: flex;
  gap: 7px;
}

.prep-rail-count {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 10px;
  justify-content: center;
  line-height: 20px;
  min-width: 20px;
  padding: 0 6px;
}

.prep-rail-chevron {
  align-items: center;
  background: transparent!important;
  border-radius: 0!important;
  color: var(--muted);
  display: inline-flex;
  height: 20px;
  justify-content: center;
  min-width: 20px!important;
  padding: 0!important;
  transition: transform .16s ease;
  width: 20px;
  font-size: 0!important;
}

.prep-rail-section.collapsed .prep-rail-chevron {
  transform: none;
}

.prep-rail-section.collapsed {
  margin-bottom: 8px;
}

.prep-context-expanded {
  background: var(--surface-subtle);
  border: 1px solid var(--accent-soft);
  border-radius: 7px;
  display: grid;
  gap: 14px;
  margin-top: 13px;
  padding: 13px;
}

.prep-context-expanded-section > strong {
  color: var(--text);
  display: block;
  font-size: 12px;
}

.prep-context-expanded .prep-context-copy {
  margin-top: 7px;
}

.prep-context-toggle {
  align-items: center;
  display: inline-flex;
  background: var(--surface-subtle);
  border-color: var(--accent-soft);
  border-radius: 6px;
  color: var(--accent-strong);
  gap: 7px;
  padding: 0 10px;
}

.prep-rail-chevron::after,.prep-toggle-chevron::after {
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: "";
  display: block;
  height: 6px;
  transform: rotate(45deg) translate(-1px,-1px);
  width: 6px;
}

.prep-rail-section.collapsed .prep-rail-chevron::after {
  transform: rotate(-45deg) translate(-1px,1px);
}

.prep-rail-section-body[hidden] {
  display: none;
}

.prep-context-btn:hover {
  background: var(--surface-subtle);
  border-color: var(--line);
  color: var(--accent);
}

.prep-context-toggle.open {
  background: var(--accent-soft);
  border-color: var(--line);
  color: var(--accent-strong);
}

.prep-toggle-label {
  line-height: 1;
}

.prep-toggle-chevron {
  align-items: center;
  display: inline-flex;
  height: 16px;
  justify-content: center;
  width: 12px;
}

.prep-context-toggle.open .prep-toggle-chevron::after {
  transform: rotate(225deg) translate(-1px,-1px);
}

.prep-inline-checklist {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
}

.prep-inline-checklist li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  list-style: none;
  padding-left: 17px;
  position: relative;
}

.prep-inline-checklist li::before {
  color: var(--accent);
  content: "✓";
  left: 0;
  position: absolute;
}

.assistant-tabs {
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  margin: 4px 0 18px;
}

.assistant-tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 42px;
  padding: 0 3px;
}

.assistant-tab:hover {
  color: var(--accent);
}

.assistant-tab.active {
  border-bottom-color: var(--accent);
}

.assistant-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.assistant-panel-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 78px;
  padding: 14px 18px;
}

.assistant-panel-title {
  min-width: 0;
}

.assistant-panel-title strong {
  display: block;
  font-size: 15px;
}

.assistant-panel-title span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 1.55;
  margin-top: 4px;
}

.assistant-result-list {
  display: grid;
  padding: 0 18px;
}

.assistant-result {
  align-items: center;
  border-bottom: 1px solid var(--accent-soft);
  display: grid;
  min-height: 72px;
}

.assistant-result:last-child {
  border-bottom: 0;
}

.assistant-result-copy {
  min-width: 0;
}

.assistant-result-title {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.assistant-result-title strong,.assistant-result-copy > strong {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assistant-result-copy > span,.assistant-result-copy > strong + span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 4px;
}

.assistant-result-pill,.assistant-running {
  border-radius: 999px;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  line-height: 21px;
  padding: 0 8px;
  white-space: nowrap;
}

.assistant-running {
  background: var(--accent-soft);
  color: var(--muted);
}

.assistant-result-pill.opened {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.assistant-result-pill.potential {
  background: #e9edff;
  color: #4c4ca0;
}

.assistant-result-pill.ended {
  background: var(--accent-soft);
  color: var(--muted);
}

.assistant-result-pill.unknown {
  background: #fff3d8;
  color: #986400;
}

.assistant-result-actions {
  align-items: center;
  display: flex;
  gap: 7px;
}

.assistant-result-actions .btn {
  height: 30px;
  padding: 0 9px;
}

.assistant-link {
  color: var(--accent-strong);
  text-decoration: none;
}

.assistant-link:hover {
  background: var(--surface-subtle);
  border-color: var(--line);
}

.assistant-quiet-btn {
  background: #fff;
  color: var(--accent-strong);
}

.assistant-error {
  color: #ad5342!important;
}

.assistant-empty {
  color: var(--muted);
  font-size: 13px;
  min-height: 164px;
  padding: 58px 20px;
  text-align: center;
}

.assistant-search-form {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  padding: 18px;
}

.assistant-search-form input,.assistant-search-form select {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  height: 38px;
  min-width: 0;
  padding: 0 10px;
  width: 100%;
}

.assistant-search-form input:focus,.assistant-search-form select:focus {
  outline: 0;
}

.assistant-search-form .btn {
  height: 38px;
  white-space: nowrap;
}

.assistant-helper {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  margin: 0;
  padding: 11px 18px;
}

.assistant-summary {
  border-bottom: 1px solid var(--accent-soft);
  font-size: 12px;
  line-height: 1.65;
  padding: 10px 18px;
}

.job-results .assistant-result {
  min-height: 82px;
}

.assistant-result-reason {
  color: var(--muted)!important;
  display: block;
  font-size: 11px!important;
  line-height: 1.45!important;
  margin-top: 4px!important;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  justify-content: center;
  line-height: 22px;
}

.status-watching {
  background: #e7efff;
  color: #315ca6;
}

.status-waiting {
  background: #fff3d8;
  color: #986400;
}

.status-open {
  background: #ddf5e8;
  color: #176b4e;
}

.status-applied {
  background: #e9edff;
  color: #4c4ca0;
}

.status-test {
  background: #f0e7ff;
  color: #743aa9;
}

.status-test-done {
  background: #ece8ff;
  color: #5442a4;
}

.status-interview {
  background: #ffe9dc;
  color: #a64f1d;
}

.status-offer {
  background: #dff4d9;
  color: #2c7a27;
}

.status-rejected {
  background: #ffe6e3;
  color: #a43e38;
}

.status-closed,.status-archived {
  background: #ecefed;
  color: #667069;
}

.company-toolbar {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.search-wrap {
  position: relative;
}

.search-symbol {
  color: var(--muted);
  left: 12px;
  position: absolute;
  top: 9px;
}

.search-input {
  height: 38px;
  padding-left: 34px;
}

.filter-select {
  height: 38px;
}

.company-list {
  overflow: hidden;
}

.company-head,.company-row {
  align-items: center;
  display: grid;
  padding: 0 18px;
}

.company-head {
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  height: 42px;
}

.company-head-status {
  text-align: center;
}

.company-row {
  background: #fff;
  border-bottom: 1px solid var(--accent-soft);
  cursor: pointer;
  min-height: 67px;
}

.company-row:hover {
  background: var(--surface-subtle);
}

.company-row:last-child {
  border-bottom: 0;
}

.company-name {
  min-width: 0;
}

.company-title {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.company-title strong {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-cell-muted {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-menu {
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  font-size: 18px;
  padding: 0;
}

.row-menu:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.priority {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  line-height: 21px;
  padding: 0 8px;
}

.priority-t0 {
  background: #ffe7e3;
  color: #b4443d;
}

.priority-t1 {
  background: #fff2d7;
  color: #a26a09;
}

.priority-t2 {
  background: #e7f1fc;
  color: #3578b5;
}

.priority-t3 {
  background: #f2f3f2;
  color: #8a938d;
}

.empty-state {
  align-items: center;
  color: var(--muted);
  display: grid;
  justify-items: center;
  min-height: 330px;
  padding: 40px;
  text-align: center;
}

.empty-mark {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 50%;
  color: var(--accent);
  display: flex;
  font-size: 25px;
  height: 58px;
  justify-content: center;
  margin-bottom: 14px;
  width: 58px;
}

.empty-state strong {
  color: var(--text);
  font-size: 16px;
}

.empty-state p {
  font-size: 13px;
  margin: 8px 0 16px;
}

.modal {
  align-items: center;
  background: rgba(24,54,74,.29);
  display: none;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 40;
}

.modal.open {
  display: flex;
}

.modal-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 65px rgba(24,54,74,.2);
  width: min(720px,100%);
}

.modal-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 18px;
}

.modal-head h2 {
  font-size: 17px;
  margin: 0;
}

.modal-body {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.modal-foot {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 13px 18px;
}

.settings-block h3 {
  font-size: 14px;
  margin: 0 0 13px;
}

.setting-grid {
  display: grid;
  gap: 12px;
}

.setting-grid.one {
  grid-template-columns: 1fr;
}

.helper {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}

.sheet-list {
  display: grid;
  gap: 8px;
}

.sheet-item {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  gap: 10px;
  min-height: 52px;
  padding: 8px 10px;
}

.sheet-item.active {
  border-color: var(--line-strong);
  background: var(--surface-subtle);
}

.sheet-item-info {
  min-width: 0;
}

.sheet-item-info strong {
  display: block;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-item-info span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-top: 3px;
}

.sheet-item .btn {
  height: 30px;
}

.drawer {
  background: rgba(24,54,74,.18);
  display: none;
  inset: 0;
  position: fixed;
  z-index: 45;
}

.drawer.open {
  display: block;
}

.drawer-panel {
  background: #fff;
  box-shadow: -18px 0 50px rgba(24,54,74,.14);
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-left: auto;
  max-width: 560px;
  width: min(560px,100%);
}

.drawer-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  min-height: 66px;
  padding: 0 18px;
}

.drawer-head-copy {
  flex: 1;
  min-width: 0;
}

.drawer-head h2 {
  font-size: 17px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-head p {
  color: var(--muted);
  font-size: 12px;
  margin: 3px 0 0;
}

.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 18px;
}

.drawer-section {
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  padding-bottom: 18px;
}

.drawer-section:last-child {
  border-bottom: 0;
}

.drawer-section h3 {
  font-size: 14px;
  margin: 0 0 13px;
}

.drawer-grid {
  display: grid;
  gap: 12px;
}

.drawer-grid .full {
  grid-column: 1 / -1;
}

.drawer-foot {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 13px 18px;
}

.drawer-foot-right {
  display: flex;
  gap: 8px;
}

.notice {
  bottom: 13px;
  color: #fff;
  display: none;
  font-size: 12px;
  left: 50%;
  pointer-events: none;
  position: fixed;
  transform: translateX(-50%);
  z-index: 70;
}

.notice.show {
  display: block;
}

.notice span {
  background: rgba(24,54,74,.9);
  border-radius: 4px;
  display: inline-block;
  padding: 6px 10px;
}

.prep-chat-body {
  display: flex;
  position: relative;
}

.prep-message.assistant .prep-message-content {
  white-space: normal;
}

.prep-message-actions {
  display: flex;
  gap: 3px;
  margin-top: 7px;
  opacity: 0;
  transition: opacity .14s ease;
}

.prep-message.user .prep-message-actions {
  justify-content: flex-end;
}

.prep-message:hover .prep-message-actions,.prep-message:focus-within .prep-message-actions {
  opacity: 1;
}

.prep-message-action {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  display: inline-flex;
  font-size: 15px;
  height: 26px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 26px;
}

.prep-message-action:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.prep-message-action.danger:hover {
  background: #fff0ed;
  color: #b44c43;
}

.prep-markdown-heading {
  letter-spacing: 0;
  line-height: 1.4;
  margin: 24px 0 11px;
}

.prep-markdown-heading.level-1 {
  font-size: 19px;
}

.prep-markdown-heading.level-2 {
  font-size: 16px;
}

.prep-markdown-heading.level-3 {
  font-size: 14px;
}

.prep-markdown-paragraph {
  margin: 0 0 14px;
}

.prep-markdown-list {
  margin: 0 0 16px;
  padding-left: 23px;
}

.prep-markdown-list li {
  margin: 8px 0;
  padding-left: 3px;
}

.prep-markdown-list strong,.prep-markdown-paragraph strong {
  font-weight: 800;
}

.prep-markdown-paragraph code,.prep-markdown-list code {
  background: var(--surface-subtle);
  border: 1px solid var(--accent-soft);
  border-radius: 4px;
  color: var(--accent-strong);
  font-family: ui-monospace,Consolas,monospace;
  font-size: .9em;
  padding: 1px 4px;
}

.prep-markdown-rule {
  border: 0;
  border-top: 1px solid var(--accent-soft);
  margin: 20px 0;
}

.prep-info-modal-card {
  width: min(760px,100%);
}

.prep-info-modal-body {
  display: block;
  overflow: auto;
}

.prep-info-subtitle {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 15px;
}

.prep-info-copy {
  font-size: 14px;
  line-height: 1.8;
}

.prep-info-copy .prep-markdown-heading:first-child {
  margin-top: 0;
}

.prep-modal-checklist {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.prep-modal-checklist li {
  font-size: 14px;
  line-height: 1.7;
  padding-left: 22px;
  position: relative;
}

.prep-modal-checklist li::before {
  color: var(--accent);
  content: "✓";
  font-weight: 800;
  left: 0;
  position: absolute;
}

.prep-starters,.prep-composer {
  max-width: 1000px;
}

.prep-message-nav {
  bottom: 0;
  min-height: 0;
  overflow: visible;
  position: absolute;
  right: 17px;
  top: 0;
  width: 22px;
  z-index: 3;
}

.prep-nav-rail {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  left: 0;
  max-height: min(430px,68%);
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.prep-nav-rail-marker {
  background: var(--line);
  border: 0;
  border-radius: 999px;
  flex: 0 0 auto;
  height: 2px;
  padding: 0;
  width: 10px;
}

.prep-nav-rail-marker:hover {
  background: var(--muted);
  height: 3px;
  width: 15px;
}

.prep-nav-rail-marker.active {
  background: var(--accent);
  height: 3px;
  width: 16px;
}

.prep-nav-outline {
  background: rgba(255,255,255,.97);
  border: 1px solid var(--accent-soft);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(24,54,74,.1);
  display: none;
  gap: 1px;
  max-height: min(430px,68%);
  overflow: auto;
  padding: 8px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 260px;
  z-index: 4;
}

.prep-message-nav:hover .prep-nav-outline,.prep-message-nav:focus-within .prep-nav-outline {
  display: grid;
}

.prep-message-nav:hover .prep-nav-rail,.prep-message-nav:focus-within .prep-nav-rail {
  visibility: hidden;
}

.prep-nav-marker {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--line-strong);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0,1fr) 15px;
  min-height: 32px;
  padding: 0 5px 0 8px;
  text-align: left;
  transition: background .14s ease,color .14s ease;
  width: 100%;
}

.prep-nav-marker:hover {
  background: var(--surface-subtle);
  color: var(--accent-strong);
}

.prep-nav-marker.active {
  background: var(--surface-subtle);
  color: var(--text);
}

.prep-nav-preview {
  font-size: 11px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prep-nav-tick {
  background: var(--line);
  border-radius: 999px;
  height: 2px;
  justify-self: end;
  width: 10px;
}

.prep-nav-marker.active .prep-nav-tick {
  background: var(--accent);
  height: 3px;
  width: 15px;
}

.prep-new-reply {
  align-items: center;
  background: var(--accent-strong);
  border: 0;
  border-radius: 999px;
  bottom: 14px;
  box-shadow: 0 5px 14px rgba(24,54,74,.18);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 28px;
  padding: 0 12px;
  position: absolute;
  z-index: 2;
}

.prep-new-reply:hover {
  background: var(--text);
}

.pipeline-list {
  display: grid;
  gap: 6px;
  grid-auto-rows: max-content;
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: auto;
}

.action-deferred {
  border-top: 1px solid var(--accent-soft);
  margin-top: 7px;
  padding-top: 7px;
}

.action-deferred-toggle {
  align-items: center;
  background: var(--surface-subtle);
  border: 1px solid var(--accent-soft);
  border-radius: 6px;
  color: var(--muted);
  display: grid;
  font-size: 11px;
  font-weight: 700;
  gap: 7px;
  grid-template-columns: minmax(0,1fr) auto 14px;
  min-height: 34px;
  padding: 0 9px;
  text-align: left;
  width: 100%;
}

.action-deferred-toggle:hover {
  background: var(--accent-soft);
  border-color: var(--line);
  color: var(--accent-strong);
}

.action-deferred-copy {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-deferred-count {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  line-height: 20px;
  padding: 0 7px;
  white-space: nowrap;
}

.action-deferred-chevron {
  height: 14px;
  position: relative;
  width: 14px;
}

.action-deferred-chevron::after {
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: "";
  height: 5px;
  left: 3px;
  position: absolute;
  top: 3px;
  transform: rotate(45deg);
  width: 5px;
}

.action-deferred.open .action-deferred-chevron::after {
  top: 5px;
  transform: rotate(225deg);
}

.action-deferred-list {
  display: grid;
  margin-top: 5px;
}

.action-deferred-list .action-item {
  opacity: .76;
}

.dashboard-scroll-list {
  align-content: start;
  grid-auto-rows: max-content;
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-gutter: auto;
}

.pipeline-list,.action-list,.dashboard-scroll-list {
  -ms-overflow-style: none;
}

.pipeline-list::-webkit-scrollbar,.action-list::-webkit-scrollbar,.dashboard-scroll-list::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}
.recruitment-site { margin: 5px 0; font-size: 13px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.recruitment-site a { color: var(--accent); text-decoration: none; }
.recruitment-site a:hover { text-decoration: underline; }
.manual-review-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.manual-review-toolbar input[type=search] { flex: 1 1 180px; width: 180px; min-width: 0; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; }
.manual-review-filters { display: flex; flex-wrap: wrap; gap: 4px; }
.manual-review-filter { border: 0; background: transparent; color: var(--muted); padding: 8px 10px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.manual-review-filter.active { color: var(--accent-strong); border-bottom-color: var(--accent); font-weight: 600; }
.manual-review-t3 { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.manual-review-t3 input { width: 16px; height: 16px; margin: 0; }
.manual-review-state { font-size: 12px; color: var(--muted); }
.manual-review-row.is-current { background: var(--accent-soft); }
.manual-review-row .assistant-result-title { flex-wrap: wrap; }
.manual-review-row .priority { flex-shrink: 0; }
.manual-review-note { margin: 6px 0 0; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.manual-review-modal { width: min(580px, 100%); }
.manual-review-modal .modal-head h2 { font-size: 18px; overflow-wrap: anywhere; }
.manual-review-modal .modal-foot { flex-wrap: wrap; gap: 8px; }
.manual-review-modal textarea { resize: vertical; min-height: 90px; max-height: 240px; }
#manualReviewStatusHint { color: var(--muted); font-size: 13px; margin: 12px 0; }
