:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #66716d;
  --line: #dfe6e2;
  --line-strong: #cbd7d1;
  --paper: #ffffff;
  --canvas: #f3f6f4;
  --green: #173b31;
  --green-2: #245c4a;
  --green-soft: #e7f1ec;
  --mint: #bfe2d1;
  --orange: #b66724;
  --orange-soft: #fff0df;
  --red: #a33f3f;
  --red-soft: #fdeaea;
  --blue: #315f8a;
  --blue-soft: #eaf2fa;
  --shadow: 0 16px 44px rgba(23, 59, 49, 0.09);
  --radius: 18px;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
}

body {
  min-width: 320px;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.hidden {
  display: none !important;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--green-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.brand-lockup strong,
.brand-lockup small {
  display: block;
}

.brand-lockup strong {
  font-size: 18px;
}

.brand-lockup small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px 14px 14px 4px;
  background: var(--green);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 700;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(360px, 1.15fr) minmax(400px, 0.85fr);
}

.auth-story {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 7vw, 96px);
  background:
    radial-gradient(circle at 82% 18%, rgba(191, 226, 209, 0.35), transparent 30%),
    linear-gradient(145deg, #102f27 0%, #1c4c3f 100%);
  color: #fff;
}

.auth-story::after {
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 480px;
  height: 480px;
  border: 70px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  content: "";
}

.auth-story .brand-lockup small {
  color: rgba(255, 255, 255, 0.65);
}

.auth-story .brand-mark {
  background: #fff;
  color: var(--green);
}

.auth-story h1 {
  max-width: 650px;
  margin: clamp(90px, 16vh, 170px) 0 24px;
  font-size: clamp(42px, 5.6vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.auth-story > p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  line-height: 1.8;
}

.auth-points {
  display: flex;
  position: absolute;
  bottom: 56px;
  left: clamp(42px, 7vw, 96px);
  z-index: 1;
  flex-wrap: wrap;
  gap: 12px;
}

.auth-points span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.auth-card {
  display: grid;
  padding: clamp(30px, 7vw, 96px);
  place-items: center;
  background: var(--paper);
}

.auth-form {
  width: min(100%, 420px);
}

.auth-form h2 {
  margin: 0 0 14px;
  font-size: 31px;
  letter-spacing: -0.03em;
}

.form-help {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

label {
  display: grid;
  gap: 8px;
  color: #303936;
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input,
select {
  min-height: 44px;
  padding: 0 13px;
}

textarea {
  min-height: 88px;
  padding: 12px 13px;
  resize: vertical;
  line-height: 1.6;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 0 3px rgba(36, 92, 74, 0.12);
}

.auth-form label + label {
  margin-top: 16px;
}

.auth-form .button {
  margin-top: 24px;
}

.auth-error {
  width: min(100%, 420px);
  margin-top: -18vh;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 13px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--green);
  color: #fff;
}

.button.primary:hover:not(:disabled) {
  background: #0e2e25;
}

.button.ghost {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.button.danger {
  border-color: #e3b9b9;
  background: #fff;
  color: var(--red);
}

.button.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.button.wide {
  width: 100%;
}

.icon-button,
.text-button {
  border: 0;
  background: transparent;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: var(--muted);
  font-size: 20px;
}

.icon-button:hover {
  background: rgba(23, 59, 49, 0.07);
  color: var(--ink);
}

.text-button {
  padding: 3px;
  color: var(--green-2);
  font-size: 13px;
  font-weight: 800;
}

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

.sidebar {
  display: flex;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-direction: column;
  padding: 25px 18px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--green);
  color: #fff;
}

.sidebar .brand-lockup {
  padding: 0 7px 22px;
}

.sidebar .brand-mark {
  background: #fff;
  color: var(--green);
}

.sidebar .brand-lockup small {
  color: rgba(255, 255, 255, 0.54);
}

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

.nav-item {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  padding: 0 13px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.nav-item span {
  width: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  text-align: center;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.sidebar-policy {
  margin: auto 5px 18px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-policy strong {
  font-size: 12px;
}

.sidebar-policy p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  line-height: 1.55;
}

.user-card {
  display: grid;
  grid-template-columns: 38px 1fr 34px;
  align-items: center;
  gap: 10px;
  padding: 10px 5px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--mint);
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
}

.user-card strong,
.user-card small {
  display: block;
}

.user-card strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-card small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

.sidebar .icon-button {
  color: rgba(255, 255, 255, 0.55);
}

.main-content {
  min-width: 0;
  padding: 31px clamp(24px, 4vw, 56px) 64px;
}

.topbar {
  display: flex;
  min-height: 72px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

.topbar h1 {
  margin: 0;
  font-size: 29px;
  letter-spacing: -0.035em;
}

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

.notice {
  margin: -8px 0 20px;
  padding: 13px 15px;
  border: 1px solid #eed3a9;
  border-radius: 11px;
  background: #fff8eb;
  color: #7f541e;
  font-size: 13px;
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: view-in 180ms ease-out;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric-card {
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 4px 18px rgba(23, 59, 49, 0.025);
}

.metric-card.accent {
  border-color: transparent;
  background: var(--green);
  color: #fff;
}

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

.metric-card.accent .metric-label {
  color: rgba(255, 255, 255, 0.62);
}

.metric-value {
  display: block;
  margin-top: 17px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 37px;
  line-height: 1;
}

.metric-note {
  display: block;
  margin-top: 11px;
  color: var(--muted);
  font-size: 11px;
}

.metric-card.accent .metric-note {
  color: rgba(255, 255, 255, 0.5);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}

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

.panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 4px 18px rgba(23, 59, 49, 0.025);
}

.panel-heading,
.section-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.panel-heading {
  margin-bottom: 16px;
}

.panel-heading h2,
.section-intro h2,
.panel > h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.section-intro {
  margin-bottom: 20px;
}

.section-intro p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.status-chip {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-2);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.status-chip.warning {
  background: var(--orange-soft);
  color: var(--orange);
}

.status-chip.danger {
  background: var(--red-soft);
  color: var(--red);
}

.status-chip.neutral {
  background: #eff2f0;
  color: #66716d;
}

.status-chip.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.task-list,
.team-summary,
.event-list {
  display: grid;
}

.task-row,
.team-summary-row,
.event-row {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid #edf1ef;
}

.task-row:first-child,
.team-summary-row:first-child,
.event-row:first-child {
  border-top: 0;
}

.task-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.task-main strong,
.task-main span {
  display: block;
}

.task-main strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-main span,
.task-time {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.team-summary-row {
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

.team-summary-row .avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 12px;
}

.team-summary-row strong,
.team-summary-row small {
  display: block;
}

.team-summary-row strong {
  font-size: 13px;
}

.team-summary-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.event-row {
  grid-template-columns: 9px minmax(0, 1fr) auto;
}

.event-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-2);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.event-dot.operator {
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
}

.event-dot.external {
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
}

.event-copy strong,
.event-copy span {
  display: block;
}

.event-copy strong {
  font-size: 13px;
  font-weight: 700;
}

.event-copy span,
.event-time {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.compact-list .event-row:nth-child(n+7) {
  display: none;
}

.toolbar-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.toolbar-card strong,
.toolbar-card span {
  display: block;
}

.toolbar-card strong {
  font-size: 14px;
}

.toolbar-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.toolbar-actions {
  display: flex;
  gap: 9px;
}

.toolbar-actions select {
  width: 132px;
}

.toolbar-actions input {
  width: 230px;
}

.candidate-table-wrap,
.table-panel {
  overflow: auto;
  padding: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  padding: 14px 17px;
  border-bottom: 1px solid #edf1ef;
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  background: #f8faf9;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.data-table tbody tr {
  transition: background 120ms ease;
}

.data-table tbody tr.clickable:hover {
  background: #f7faf8;
  cursor: pointer;
}

.data-table td strong,
.data-table td small {
  display: block;
}

.data-table td small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.score-pill {
  display: inline-grid;
  min-width: 40px;
  height: 29px;
  place-items: center;
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green-2);
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 700;
}

.score-pill.low {
  background: var(--orange-soft);
  color: var(--orange);
}

.danger-text {
  color: var(--red);
}

.job-card.archived {
  border-top: 4px solid #c9cfcc;
  opacity: 0.78;
}

.empty {
  padding: 45px 24px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

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

.job-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.job-card.locked {
  border-top: 4px solid var(--green-2);
}

.job-card.draft {
  border-top: 4px solid #d5ab77;
}

.job-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.job-card h3 {
  margin: 13px 0 5px;
  font-size: 20px;
}

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

.job-summary {
  min-height: 42px;
  margin: 14px 0;
  color: #525d59;
  font-size: 12px;
  line-height: 1.7;
}

.job-list {
  margin: 0;
  padding-left: 18px;
  color: #39433f;
  font-size: 12px;
  line-height: 1.8;
}

.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 17px;
}

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

.settings-grid .panel {
  min-height: 250px;
}

.settings-value,
.token-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  padding: 12px;
  border-radius: 10px;
  background: #f4f7f5;
  font-size: 12px;
}

.settings-value code,
.token-box code {
  overflow: hidden;
  color: var(--green);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-box {
  grid-template-columns: minmax(0, 1fr) auto;
  background: #fff8eb;
}

.stack-form {
  display: grid;
  gap: 15px;
  margin-top: 18px;
}

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

.modal-backdrop {
  display: grid;
  position: fixed;
  z-index: 50;
  inset: 0;
  overflow: auto;
  padding: 28px;
  place-items: center;
  background: rgba(10, 27, 22, 0.58);
  backdrop-filter: blur(4px);
}

.modal {
  width: min(100%, 650px);
  max-height: calc(100vh - 56px);
  overflow: auto;
  padding: 25px;
  border: 0;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.wide-modal {
  width: min(100%, 930px);
}

.small-modal {
  width: min(100%, 500px);
}

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

.modal-header h2 {
  margin: 0;
  font-size: 23px;
}

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

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

.check-label {
  display: flex;
  min-height: 44px;
  align-items: center;
  align-self: end;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
}

.check-label input {
  width: 17px;
  min-height: auto;
  height: 17px;
  margin: 0;
}

.decision-warning {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--orange-soft);
  color: #7f541e;
  font-size: 12px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 23px;
}

.candidate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 18px;
}

.candidate-section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.candidate-section + .candidate-section {
  margin-top: 14px;
}

.candidate-section h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

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

.fact {
  padding: 11px;
  border-radius: 10px;
  background: #f5f8f6;
}

.fact span,
.fact strong {
  display: block;
}

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

.fact strong {
  margin-top: 4px;
  font-size: 13px;
}

.analysis-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
}

.analysis-score {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 18px;
  background: var(--green);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 25px;
}

.analysis-head strong,
.analysis-head small {
  display: block;
}

.analysis-head small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

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

.analysis-list {
  margin: 7px 0 0;
  padding-left: 18px;
  color: #47514d;
  font-size: 12px;
  line-height: 1.8;
}

.analysis-list.risks {
  color: #74572d;
}

.summary-copy {
  color: #47514d;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.greeting-box {
  padding: 14px;
  border-radius: 11px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  line-height: 1.75;
}

.greeting-actions {
  margin-top: 10px;
  text-align: right;
}

.screen-form,
.assign-form {
  display: grid;
  gap: 13px;
}

.assign-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 95px auto;
  gap: 8px;
}

.source-link {
  display: inline-block;
  overflow: hidden;
  max-width: 100%;
  color: var(--green-2);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 28px;
  bottom: 28px;
  max-width: min(390px, calc(100vw - 40px));
  padding: 13px 17px;
  border-radius: 11px;
  background: #102f27;
  box-shadow: var(--shadow);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.toast.error {
  background: #812f2f;
}

@media (max-width: 1180px) {
  .metrics-grid {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

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

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-story {
    min-height: 320px;
    padding: 32px;
  }

  .auth-story h1 {
    margin: 56px 0 16px;
    font-size: 42px;
  }

  .auth-points {
    display: none;
  }

  .auth-card {
    min-height: 520px;
    padding: 45px 28px;
  }

  .app-shell {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .sidebar {
    padding: 20px 12px;
  }

  .sidebar .brand-lockup > div,
  .nav-item:not(.active) > :not(span),
  .nav-item {
    font-size: 0;
  }

  .sidebar .brand-lockup {
    justify-content: center;
    padding: 0 0 20px;
  }

  .nav-item {
    justify-content: center;
    padding: 0;
  }

  .nav-item span {
    width: auto;
    font-size: 20px;
  }

  .sidebar-policy,
  .user-card > div:nth-child(2),
  .user-card .icon-button {
    display: none;
  }

  .user-card {
    display: flex;
    justify-content: center;
    margin-top: auto;
    padding: 12px 0 0;
  }

  .dashboard-grid,
  .candidate-layout,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .full-span {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    display: flex;
    position: fixed;
    z-index: 30;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: 67px;
    flex-direction: row;
    align-items: center;
    padding: 8px 10px;
    border: 0;
  }

  .sidebar > .brand-lockup,
  .sidebar-policy,
  .user-card {
    display: none;
  }

  .sidebar-nav {
    display: flex;
    width: 100%;
    justify-content: space-around;
    gap: 2px;
    margin: 0;
  }

  .nav-item {
    width: 46px;
    min-height: 46px;
  }

  .nav-item.owner-only[data-view="team"] {
    display: none !important;
  }

  .main-content {
    padding: 22px 14px 95px;
  }

  .topbar {
    display: grid;
    gap: 14px;
  }

  .top-actions {
    width: 100%;
  }

  .top-actions .button {
    flex: 1;
  }

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

  .metric-card {
    min-height: 115px;
    padding: 16px;
  }

  .metric-value {
    margin-top: 13px;
    font-size: 31px;
  }

  .toolbar-card,
  .section-intro {
    display: grid;
  }

  .toolbar-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .toolbar-actions select,
  .toolbar-actions input {
    width: 100%;
  }

  .job-grid {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .candidate-facts,
  .analysis-columns {
    grid-template-columns: 1fr;
  }

  .form-grid .full {
    grid-column: auto;
  }

  .modal-backdrop {
    padding: 0;
    place-items: end center;
  }

  .modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
  }

  .assign-row {
    grid-template-columns: 1fr;
  }
}
