:root {
  --bg: #f6f7f4;
  --panel: #ffffff;
  --panel-soft: #f0f6f5;
  --ink: #1f2523;
  --muted: #66736f;
  --line: #dfe5e1;
  --brand: #1c7c6d;
  --brand-strong: #0e5f54;
  --green: #2f8f5b;
  --amber: #b7791f;
  --red: #b24747;
  --coral: #cf624b;
  --cyan: #247c96;
  --shadow: 0 12px 30px rgba(31, 37, 35, 0.08);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(28, 124, 109, 0.07), transparent 260px),
    var(--bg);
}

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

button {
  border: 0;
  cursor: pointer;
}

textarea {
  resize: vertical;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, 460px) minmax(0, 1fr);
}

.login-panel {
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 54px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.preview-board {
  width: min(860px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview-top {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfa;
}

.preview-grid {
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 18px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), #54a37a);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.brand-title {
  font-size: 20px;
  font-weight: 700;
}

.login-title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.25;
}

.login-copy {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.7;
}

.form-stack {
  display: grid;
  gap: 14px;
}

.field-label {
  display: grid;
  gap: 8px;
  color: #45504c;
  font-size: 13px;
  font-weight: 600;
}

.input,
.textarea,
.select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 11px 12px;
  outline: none;
}

.textarea {
  min-height: 116px;
  line-height: 1.65;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: rgba(28, 124, 109, 0.55);
  box-shadow: 0 0 0 3px rgba(28, 124, 109, 0.12);
}

.code-row {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 10px;
}

.btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: 0.16s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-strong);
}

.btn-secondary {
  background: #eef4f1;
  color: var(--brand-strong);
}

.btn-secondary:hover {
  background: #dfece7;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  background: #eef2ef;
  color: var(--ink);
}

.btn-danger {
  background: #f8e9e6;
  color: var(--red);
}

.btn-compact {
  min-height: 32px;
  padding: 0 10px;
  white-space: nowrap;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
  background: #fcfdfb;
  border-right: 1px solid var(--line);
  padding: 22px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.nav {
  display: grid;
  gap: 6px;
  margin-top: 22px;
}

.nav-button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 8px;
  background: transparent;
  color: #4b5753;
  text-align: left;
}

.nav-button:hover,
.nav-button.active {
  background: #e8f2ef;
  color: var(--brand-strong);
}

.nav-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #edf2ef;
  color: currentColor;
  font-size: 13px;
}

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

.topbar {
  height: 68px;
  background: rgba(246, 247, 244, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.page-title {
  margin: 0;
  font-size: 20px;
}

.page-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.app-shell.login-modal-open .top-actions {
  visibility: hidden;
}

.avatar-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand-strong);
  font-weight: 700;
  position: relative;
}

.avatar-button.needs-profile::after {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--coral);
  border: 2px solid #fff;
  border-radius: 50%;
  position: absolute;
  right: 3px;
  top: 4px;
}

.content {
  padding: 26px 28px 40px;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(31, 37, 35, 0.02);
}

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

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

.panel-title-note {
  margin-left: 6px;
  color: #88948f;
  font-size: 12px;
  font-weight: 500;
}

.panel-body {
  padding: 16px;
}

.metric {
  min-height: 118px;
  padding: 16px;
  display: grid;
  gap: 8px;
}

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

.metric-value {
  font-size: 28px;
  font-weight: 800;
}

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

.status-pill,
.level-pill,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status-pill {
  background: #edf3f0;
  color: #51605b;
}

.relation-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.relation-active,
.freshness-valid {
  background: #e5f3eb;
  color: var(--green);
}

.relation-backup,
.freshness-warning {
  background: #fff1d8;
  color: var(--amber);
}

.relation-rejected,
.freshness-expired {
  background: #fae7e4;
  color: var(--red);
}

.progress-screening {
  background: #eef2ef;
  color: #51605b;
}

.progress-pending {
  background: #e7f0f7;
  color: var(--cyan);
}

.progress-interviewed {
  background: #e5f3eb;
  color: var(--green);
}

.progress-stopped {
  background: #fae7e4;
  color: var(--red);
}

.relation-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.level-strong {
  background: #e5f3eb;
  color: var(--green);
}

.level-recommend {
  background: #e7f0f7;
  color: var(--cyan);
}

.level-observe {
  background: #fff1d8;
  color: var(--amber);
}

.level-reject {
  background: #fae7e4;
  color: var(--red);
}

.tag {
  background: #eef2ef;
  color: #4d5955;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

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

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

.dashboard-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, auto);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(28, 124, 109, 0.09), rgba(36, 124, 150, 0.04)),
    #fff;
}

.dashboard-command-main {
  min-width: 0;
}

.dashboard-command-main h2 {
  margin: 4px 0 8px;
  font-size: 24px;
  line-height: 1.25;
}

.dashboard-command-main p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.dashboard-eyebrow {
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-command-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.dashboard-command-meta span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(28, 124, 109, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #42504b;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(128px, 1fr));
  gap: 10px;
  align-content: center;
}

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

.dashboard-kpi {
  min-height: 132px;
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(31, 37, 35, 0.02);
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 16px;
  align-items: start;
}

.dashboard-work-queue {
  display: grid;
  gap: 10px;
}

.dashboard-task,
.dashboard-module {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.dashboard-task > div,
.dashboard-module > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.dashboard-task span,
.dashboard-module span {
  line-height: 1.55;
}

.dashboard-pipeline {
  display: grid;
  gap: 13px;
}

.dashboard-pipeline-item {
  display: grid;
  gap: 7px;
}

.dashboard-pipeline-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-pipeline-head span {
  color: var(--brand-strong);
  font-weight: 800;
}

.dashboard-pipeline-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ece8;
}

.dashboard-pipeline-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--cyan));
}

.dashboard-table-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  gap: 16px;
  align-items: start;
}

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

.dashboard-module {
  min-height: 92px;
}

.agent-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.agent-layout.history-collapsed {
  grid-template-columns: 56px minmax(0, 1fr);
}

.agent-history-panel,
.agent-history-rail {
  position: sticky;
  top: 92px;
}

.agent-history-panel {
  max-height: calc(100vh - 116px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.agent-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.agent-history-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.agent-history-list {
  display: grid;
  gap: 8px;
  padding: 12px;
  overflow: auto;
}

.agent-history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 8px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}

.agent-history-item.active,
.agent-history-item:hover {
  border-color: rgba(28, 124, 109, 0.42);
  background: #eef7f3;
}

.agent-history-title {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-history-delete {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #7b8d87;
  cursor: pointer;
}

.agent-history-delete svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.agent-history-delete:hover {
  color: #b42318;
  background: rgba(180, 35, 24, 0.08);
}

.agent-history-rail {
  min-height: calc(100vh - 134px);
  display: flex;
  justify-content: center;
}

.agent-history-toggle {
  width: 42px;
  min-height: 104px;
  padding: 10px 6px;
  writing-mode: vertical-rl;
}

.agent-chat-panel {
  min-height: calc(100vh - 134px);
  display: flex;
  flex-direction: column;
}

.agent-chat-header {
  flex: 0 0 auto;
}

.agent-context-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.agent-context-bar > div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  background: #fbfcfa;
}

.agent-context-bar strong {
  font-size: 15px;
}

.agent-chat-stream {
  min-height: 380px;
  max-height: calc(100vh - 360px);
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(28, 124, 109, 0.035), transparent 220px),
    #fff;
}

.agent-message {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.agent-message.is-user {
  flex-direction: row-reverse;
}

.agent-avatar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e8f2ef;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
}

.agent-message.is-user .agent-avatar {
  background: var(--brand);
  color: #fff;
}

.agent-bubble {
  max-width: min(720px, 78%);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  line-height: 1.7;
  font-size: 14px;
}

.agent-message.is-user .agent-bubble {
  border-color: rgba(28, 124, 109, 0.18);
  background: #eef7f3;
}

.agent-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.agent-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.agent-input-stack {
  display: grid;
  gap: 8px;
}

.agent-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.agent-file-row,
.agent-attachment-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.agent-file-chip,
.agent-attachment-line span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 320px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #cddbd5;
  border-radius: 999px;
  background: #f5faf7;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 700;
}

.agent-file-chip button {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #dfece7;
  color: var(--brand-strong);
  line-height: 1;
}

.agent-attachment-line {
  margin-bottom: 8px;
}

.agent-proposal-card {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(28, 124, 109, 0.26);
  border-radius: 8px;
  background: #f5faf7;
}

.agent-proposal-card.is-applied {
  border-color: rgba(47, 143, 91, 0.3);
  background: #f1f8f3;
}

.agent-proposal-card.is-cancelled {
  opacity: 0.72;
}

.agent-proposal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.agent-proposal-card p {
  margin: 8px 0;
  color: var(--muted);
}

.agent-proposal-card ul {
  margin: 0;
  padding-left: 18px;
}

.agent-proposal-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.agent-thinking {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.agent-thinking span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  animation: thinking-pulse 1s infinite ease-in-out;
}

.agent-thinking span:nth-child(2) {
  animation-delay: 0.15s;
}

.agent-thinking span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes thinking-pulse {
  0%,
  80%,
  100% {
    opacity: 0.28;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.agent-prompt-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 14px 14px;
  background: #fff;
}

.agent-prompt {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid #cddbd5;
  border-radius: 999px;
  background: #f5faf7;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 700;
}

.agent-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.agent-data-card {
  min-height: 112px;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.agent-data-card strong {
  font-size: 24px;
}

.agent-data-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.agent-action-list {
  display: grid;
  gap: 10px;
}

.agent-action {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--ink);
  text-align: left;
}

.agent-action:hover,
.agent-prompt:hover {
  border-color: rgba(28, 124, 109, 0.42);
  background: #edf7f3;
}

.agent-action span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.agent-module-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  color: #52605b;
  background: #f8faf7;
  font-weight: 700;
}

tr.clickable:hover {
  background: #f3f8f6;
}

.score {
  font-size: 20px;
  font-weight: 800;
}

.score-bar {
  width: 120px;
  height: 8px;
  border-radius: 999px;
  background: #e7ece8;
  overflow: hidden;
}

.score-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #6ea85f);
}

.level-with-score {
  display: grid;
  gap: 8px;
  min-width: 120px;
  justify-items: start;
}

.level-with-score .score-bar {
  width: 120px;
}

.resume-rank-table {
  min-width: 920px;
  table-layout: fixed;
}

.resume-rank-table th,
.resume-rank-table td {
  padding: 12px 10px;
}

.resume-col-candidate {
  width: 170px;
}

.resume-col-level {
  width: 88px;
}

.resume-col-status {
  width: 88px;
}

.resume-col-freshness {
  width: 86px;
}

.resume-col-action {
  width: 104px;
}

.resume-person {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.resume-person strong {
  white-space: nowrap;
}

.freshness-delta {
  margin-top: 6px;
  font-weight: 700;
}

.experience-summary-list {
  display: grid;
  gap: 6px;
  line-height: 1.55;
  word-break: break-word;
}

.experience-summary-list p {
  margin: 0;
}

.experience-summary-list p + p {
  padding-top: 6px;
  border-top: 1px dashed #dbe5df;
}

.achievement-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-top: 6px;
  border-top: 1px dashed #dbe5df;
  white-space: nowrap;
}

.achievement-line span {
  flex: 0 0 auto;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
}

.achievement-line strong {
  min-width: 0;
  overflow: hidden;
  color: #3f4a46;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
}

.resume-experience-summary {
  max-height: 122px;
  overflow: hidden;
}

.resume-experience-summary p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.floating-experience-list {
  gap: 8px;
}

.job-editor {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.1fr);
  gap: 16px;
  align-items: start;
}

.job-editor-column {
  display: grid;
  gap: 16px;
}

.job-list-header {
  align-items: flex-start;
}

.job-summary-strip {
  margin-bottom: 4px;
}

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

.row-actions .btn {
  min-height: 32px;
  padding: 0 10px;
}

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

.analysis-field {
  display: grid;
  gap: 6px;
}

.field-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.weights {
  display: grid;
  gap: 0;
}

.weight-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 12px 0 15px;
  border-bottom: 1px solid var(--line);
}

.weight-row:first-child {
  padding-top: 0;
}

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

.weight-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-weight: 700;
  min-width: 0;
}

.weight-hint {
  color: #88948f;
  font-size: 12px;
  font-weight: 500;
}

.weight-value {
  color: var(--brand-strong);
  font-size: 12px;
  text-align: right;
}

.range-control {
  position: relative;
  grid-column: 1 / -1;
  min-height: 38px;
  display: grid;
  align-items: center;
}

.range-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ebe7;
}

.range-fill {
  display: block;
  width: var(--weight-percent);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #6ea85f);
}

.range-ticks {
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.range-ticks span {
  width: 2px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(108, 123, 117, 0.12);
}

.range-labels {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  color: #88948f;
  font-size: 11px;
  pointer-events: none;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
}

.step-range {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 22px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.step-range::-webkit-slider-runnable-track {
  height: 10px;
  background: transparent;
}

.step-range::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -4px;
  appearance: none;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 1px rgba(28, 124, 109, 0.28), 0 2px 6px rgba(31, 37, 35, 0.18);
}

.step-range::-moz-range-track {
  height: 10px;
  border: 0;
  background: transparent;
}

.step-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 1px rgba(28, 124, 109, 0.28), 0 2px 6px rgba(31, 37, 35, 0.18);
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.summary-cell {
  padding: 14px;
  border-right: 1px solid var(--line);
}

.summary-cell:last-child {
  border-right: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.resume-detail-workspace {
  display: grid;
  gap: 16px;
}

.resume-header-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.resume-filter {
  min-width: 230px;
}

.resume-filter .select {
  min-height: 40px;
  padding: 8px 34px 8px 11px;
}

.resume-manage-header {
  align-items: flex-start;
}

.resume-manage-summary {
  margin-bottom: 14px;
}

.resume-manage-filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 12px;
  align-items: end;
}

.resume-manage-search {
  min-width: 0;
  grid-column: span 2;
}

.detail-list {
  display: grid;
  gap: 10px;
}

.detail-item {
  display: grid;
  gap: 5px;
}

.floating-detail-layer {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}

.floating-resume-detail {
  position: fixed;
  width: min(360px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 104px));
  overflow: auto;
  pointer-events: auto;
  cursor: move;
  user-select: none;
  border: 1px solid rgba(24, 93, 82, 0.16);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 22px 54px rgba(31, 37, 35, 0.22);
  padding: 14px;
}

.floating-resume-detail.is-dragging {
  box-shadow: 0 28px 70px rgba(31, 37, 35, 0.3);
  opacity: 0.96;
}

.floating-detail-titlebar {
  display: grid;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.floating-detail-titlebar h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.floating-detail-body {
  display: grid;
  gap: 12px;
  padding-top: 12px;
}

.floating-detail-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.floating-resume-detail button,
.floating-resume-detail a {
  cursor: pointer;
}

.question-list {
  display: grid;
  gap: 10px;
}

.question-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.question-item strong {
  display: block;
  margin-bottom: 6px;
}

.interview-filter-header {
  align-items: flex-start;
}

.interview-filter-actions {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.interview-filter {
  min-width: 220px;
}

.interview-filter .select {
  min-height: 40px;
  padding: 8px 34px 8px 11px;
}

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

.question-module {
  min-width: 0;
}

.question-module-header {
  align-items: flex-start;
}

.question-editor-list {
  display: grid;
  gap: 12px;
}

.question-editor-item {
  display: grid;
  gap: 8px;
}

.question-input {
  min-height: 120px;
}

.question-actions {
  justify-content: space-between;
}

.question-preview-list {
  display: grid;
  gap: 12px;
}

.question-preview-group {
  display: grid;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.question-preview-group:last-of-type {
  border-bottom: 0;
}

.question-customizer {
  position: relative;
  display: grid;
  gap: 16px;
}

.customizer-topbar {
  padding: 16px;
}

.selected-question-panel,
.recommended-question-panel {
  position: relative;
  z-index: 2;
}

.question-category-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}

.question-category-block {
  flex: 0 0 280px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 12px;
  scroll-snap-align: start;
}

.question-preview-list .preview-category-row {
  display: grid;
  gap: 10px;
  max-height: min(520px, calc(100vh - 340px));
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 4px 4px 0;
  scroll-snap-type: none;
}

.question-preview-list .preview-category-block {
  flex: initial;
  width: 100%;
  scroll-snap-align: none;
}

.smart-followup-panel {
  margin: 0 0 16px;
  border-color: rgba(28, 124, 109, 0.24);
  box-shadow: 0 12px 28px rgba(28, 124, 109, 0.08);
  overflow: hidden;
}

.smart-followup-header {
  align-items: flex-start;
  background: #f3faf7;
  border-left: 4px solid var(--brand);
}

.smart-followup-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.smart-followup-select {
  min-width: 250px;
}

.smart-followup-body {
  display: grid;
  gap: 14px;
}

.smart-audio-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 14px;
}

.audio-orb {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #edf4f2;
  border: 1px solid #c9d8d3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 0 0 auto;
}

.audio-orb span {
  width: 4px;
  height: 14px;
  border-radius: 999px;
  background: var(--brand);
  opacity: 0.42;
}

.smart-audio-card.is-listening .audio-orb {
  background: #e5f6ef;
  box-shadow: 0 0 0 6px rgba(28, 124, 109, 0.08);
}

.smart-audio-card.is-listening .audio-orb span {
  animation: audioWave 0.82s ease-in-out infinite;
}

.smart-audio-card.is-listening .audio-orb span:nth-child(2) {
  animation-delay: 0.12s;
}

.smart-audio-card.is-listening .audio-orb span:nth-child(3) {
  animation-delay: 0.24s;
}

.smart-audio-card.is-listening .audio-orb span:nth-child(4) {
  animation-delay: 0.36s;
}

@keyframes audioWave {
  0%,
  100% {
    height: 12px;
    opacity: 0.42;
  }

  50% {
    height: 28px;
    opacity: 1;
  }
}

.smart-live-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
}

.smart-live-column {
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 12px;
  max-height: 360px;
  overflow-y: auto;
}

.smart-column-title {
  font-weight: 700;
  font-size: 14px;
}

.smart-transcript-item,
.smart-question-item {
  border: 1px solid #d9e3de;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  line-height: 1.55;
}

.smart-question-item {
  border-left: 4px solid var(--brand);
}

.recommended-category-block {
  background: #f8fbf9;
}

.question-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.question-category-head strong {
  font-size: 14px;
}

.question-pill-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.question-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 1px solid #cbd8d2;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  transition: 0.16s ease;
}

.question-pill-readonly {
  color: var(--muted);
  background: #f8faf8;
}

.selected-question-pill:hover,
.recommended-question-pill:hover,
.picker-question-pill:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(28, 124, 109, 0.1);
}

.recommended-question-pill {
  cursor: grab;
}

.recommended-question-pill:active {
  cursor: grabbing;
}

.picker-question-pill.is-picked {
  border-color: #2f8f5b;
  background: #e6f6ed;
  color: #17613b;
}

.picker-question-pill.already-selected {
  border-color: #b8c7c0;
  background: #eef3f0;
  color: var(--muted);
  cursor: not-allowed;
}

.selected-question-pill.pending-delete {
  border-color: #b8b8b8;
  background: #e6e8e6;
  color: #767d79;
  text-decoration: line-through;
}

.customizer-delete-mode .customizer-muted-while-delete {
  opacity: 0.38;
  filter: grayscale(1);
}

.customizer-delete-mode .selected-question-pill {
  box-shadow: inset 0 0 0 1px rgba(178, 71, 71, 0.18);
}

.empty-drop-hint {
  min-height: 118px;
  border: 1px dashed #a8bbb3;
  border-radius: 8px;
  background: #f8fbf9;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 18px;
}

.selected-question-dropzone.drag-over {
  outline: 2px solid rgba(28, 124, 109, 0.38);
  outline-offset: 3px;
}

.selected-question-dropzone.drag-over .panel-body {
  background: #eef8f4;
}

.drag-dim-layer {
  display: none;
  position: absolute;
  inset: -16px;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 8px;
  z-index: 1;
  pointer-events: none;
}

.question-customizer.dragging .drag-dim-layer {
  display: block;
}

.question-customizer.dragging .customizer-muted-while-drag {
  opacity: 0.2;
}

.mini-refresh {
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef4f2;
  color: var(--brand-strong);
  border: 1px solid #cddbd5;
  font-size: 12px;
  white-space: nowrap;
}

.question-picker-backdrop {
  z-index: 16;
}

.question-picker-modal {
  width: min(940px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 36px));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.question-picker-scroll {
  overflow: auto;
  padding-right: 4px;
}

.question-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.picker-category-block {
  flex: initial;
  background: #fbfcfa;
}

.upload-zone {
  min-height: 150px;
  border: 1px dashed #a8bbb3;
  border-radius: 8px;
  background: #f8fbf9;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
}

.evaluation-filter-header {
  align-items: flex-start;
}

.evaluation-filter-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.evaluation-filter {
  min-width: 250px;
}

.evaluation-candidate-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 8px;
}

.evaluation-name-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid #cbd8d2;
  background: #f5faf7;
  padding: 6px 12px;
  white-space: nowrap;
}

.evaluation-name-pill span {
  font-weight: 700;
}

.evaluation-name-pill small {
  color: var(--muted);
}

.evaluation-grid-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
}

.comparison-grid.evaluation-grid {
  display: flex;
  gap: 14px;
  min-width: max-content;
}

.comparison-grid.evaluation-grid .comparison-column {
  flex: 0 0 320px;
}

.evaluation-upload-modal {
  width: min(820px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(31, 37, 35, 0.24);
  padding: 20px;
}

.evaluation-upload-zone {
  min-height: 120px;
  margin-bottom: 14px;
}

.evaluation-upload-select {
  display: grid;
  gap: 8px;
}

.evaluation-upload-select .select {
  min-height: 42px;
}

.resume-attach-modal {
  width: min(900px, calc(100vw - 32px));
  max-height: min(780px, calc(100vh - 32px));
  overflow: auto;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(31, 37, 35, 0.24);
  padding: 20px;
}

.resume-attach-summary {
  margin-bottom: 14px;
}

.resume-attach-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(420px, 1.18fr);
  gap: 14px;
  align-items: stretch;
}

.resume-attach-upload {
  min-height: 220px;
}

.resume-attach-upload > div {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.resume-attach-library {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.resume-attach-library-head {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #f8faf7;
}

.resume-attach-list {
  max-height: 360px;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.resume-attach-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  cursor: pointer;
}

.resume-attach-option.is-selected {
  border-color: rgba(28, 124, 109, 0.48);
  background: #eef7f3;
}

.resume-attach-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.resume-attach-candidate {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.resume-attach-score {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.resume-status-modal {
  width: min(760px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(31, 37, 35, 0.24);
  padding: 20px;
}

.resume-status-current {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.resume-status-current > div {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.resume-status-form {
  display: grid;
  gap: 14px;
}

.resume-status-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.segmented-option {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  cursor: pointer;
}

.segmented-option.is-selected {
  border-color: rgba(28, 124, 109, 0.45);
  background: #eef7f3;
}

.segmented-option input {
  accent-color: var(--brand);
}

.validity-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resume-job-relation-list {
  display: grid;
  gap: 8px;
}

.resume-job-relation {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.resume-job-relation span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 14px;
}

.comparison-column {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.comparison-head {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #f8faf7;
}

.comparison-row {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

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

.kbd-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfa;
}

.endpoint-list {
  display: grid;
  gap: 10px;
}

.endpoint {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.method {
  font-weight: 800;
  color: var(--brand-strong);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(31, 37, 35, 0.34);
  backdrop-filter: blur(8px);
}

.login-modal {
  width: min(440px, 100%);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(31, 37, 35, 0.24);
  padding: 20px;
}

.resume-modal {
  width: min(880px, calc(100vw - 32px));
  max-height: min(780px, calc(100vh - 32px));
  overflow: auto;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(31, 37, 35, 0.24);
  padding: 20px;
}

.resume-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.resume-fact-grid {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px 12px;
  margin-top: 12px;
}

.resume-fact-grid span {
  color: var(--muted);
  font-size: 13px;
}

.resume-modal-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 12px;
  margin-bottom: 12px;
}

.resume-modal-section p {
  margin: 8px 0 0;
  line-height: 1.7;
}

.resume-modal-section ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.modal-titlebar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-titlebar .btn {
  min-height: 34px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #1f2523;
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 20;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .dashboard-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-main-grid,
  .dashboard-table-grid,
  .resume-attach-grid {
    grid-template-columns: 1fr;
  }

  .agent-layout,
  .agent-layout.history-collapsed {
    grid-template-columns: 1fr;
  }

  .agent-history-panel,
  .agent-history-rail {
    position: static;
  }

  .agent-history-rail {
    min-height: auto;
    justify-content: flex-start;
  }

  .agent-history-toggle {
    width: auto;
    min-height: 36px;
    writing-mode: horizontal-tb;
  }

  .dashboard-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-4,
  .grid-3,
  .interview-question-grid,
  .question-picker-grid,
  .smart-live-grid,
  .resume-manage-filters,
  .summary-strip,
  .comparison-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .job-editor,
  .split,
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-preview {
    display: none;
  }
}

@media (max-width: 820px) {
  .dashboard-command {
    grid-template-columns: 1fr;
  }

  .dashboard-quick-actions,
  .dashboard-kpi-grid,
  .agent-context-bar,
  .agent-data-grid,
  .resume-status-current,
  .segmented-options,
  .dashboard-module-grid {
    grid-template-columns: 1fr;
  }

  .agent-chat-panel {
    min-height: auto;
  }

  .agent-chat-stream {
    max-height: none;
  }

  .agent-bubble {
    max-width: calc(100% - 42px);
  }

  .agent-composer {
    grid-template-columns: 1fr;
  }

  .agent-composer .btn {
    width: 100%;
  }

  .dashboard-task,
  .dashboard-module {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-task .btn,
  .dashboard-module .btn {
    width: 100%;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    height: auto;
    position: relative;
  }

  .nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topbar {
    height: auto;
    min-height: 70px;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
    flex-direction: column;
  }

  .content {
    padding: 16px;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .interview-question-grid,
  .question-picker-grid,
  .resume-modal-grid,
  .smart-live-grid,
  .resume-manage-filters,
  .summary-strip,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .weight-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .weight-value {
    text-align: left;
  }

  .resume-header-actions,
  .resume-filter {
    width: 100%;
  }

  .resume-manage-search {
    grid-column: auto;
  }

  .resume-header-actions .btn {
    width: 100%;
  }

  .interview-filter-actions,
  .interview-filter,
  .smart-followup-actions,
  .smart-followup-select {
    width: 100%;
  }

  .smart-followup-actions .btn {
    width: 100%;
  }

  .evaluation-filter-actions,
  .evaluation-filter {
    width: 100%;
  }

  .evaluation-filter-actions .btn {
    width: 100%;
  }

  .customizer-topbar,
  .smart-followup-header,
  .selected-question-panel .panel-header,
  .recommended-question-panel .panel-header,
  .question-picker-modal .modal-titlebar {
    align-items: flex-start;
    flex-direction: column;
  }

  .question-category-block {
    flex-basis: 250px;
  }

  .question-picker-modal {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 14px;
  }

  .resume-modal {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 14px;
  }

  .evaluation-upload-modal,
  .resume-attach-modal,
  .resume-status-modal {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 14px;
  }

  .resume-attach-option {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .resume-attach-score {
    grid-column: 2;
    justify-items: start;
  }
}
