:root {
  --ink: #172033;
  --muted: #737b8f;
  --paper: #f4efe6;
  --paper-2: #e6d8c5;
  --line: rgba(23, 32, 51, 0.12);
  --green: #304e7b;
  --green-dark: #141b2d;
  --lime: #f2b84b;
  --amber: #d9822b;
  --red: #c75f4b;
  --white: #fffaf0;
  --blue: #304e7b;
  --navy: #111827;
  --sand: #d8c3a5;
  --shadow: 0 24px 70px rgba(45, 35, 25, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

::selection {
  color: #201405;
  background: rgba(242, 184, 75, 0.42);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  border: 3px solid rgba(244, 239, 230, 0.9);
  border-radius: 999px;
  background: rgba(48, 78, 123, 0.45);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(216, 195, 165, 0.55), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(48, 78, 123, 0.14), transparent 24rem),
    radial-gradient(circle at 76% 88%, rgba(217, 130, 43, 0.14), transparent 22rem),
    linear-gradient(135deg, #f6f0e7, #fbf7ef 52%, #e8dac7);
}

button,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px;
  color: #f8f2df;
  background:
    linear-gradient(165deg, rgba(19, 27, 45, 0.98), rgba(38, 45, 62, 0.96)),
    radial-gradient(circle at top left, rgba(242, 184, 75, 0.18), transparent 16rem);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 42px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 18px;
  color: #22170b;
  font-weight: 900;
  background: linear-gradient(145deg, #f6c86f, #d9822b);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

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

.brand small {
  margin-top: 4px;
  color: rgba(248, 242, 223, 0.62);
}

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

.nav a {
  padding: 14px 16px;
  border-radius: 18px;
  color: rgba(248, 242, 223, 0.72);
  text-decoration: none;
  transition: 180ms ease;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  background: rgba(255, 250, 240, 0.12);
}

.side-card {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.08);
}

.side-card span,
.side-card p {
  color: rgba(248, 242, 223, 0.68);
}

.side-card strong {
  display: block;
  margin: 10px 0 4px;
  font-size: 42px;
}

.main {
  padding: 32px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  min-height: 360px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 38px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(255, 250, 240, 0.7)),
    radial-gradient(circle at right top, rgba(48, 78, 123, 0.12), transparent 28rem),
    repeating-linear-gradient(90deg, rgba(23, 32, 51, 0.04) 0 1px, transparent 1px 48px);
  box-shadow: var(--shadow);
  animation: rise 520ms ease both;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

h2 {
  margin-bottom: 0;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.hero-copy p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions,
.filters,
.metric-row,
.tags,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary,
.ghost,
.small,
.chip {
  border-radius: 999px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary {
  padding: 14px 22px;
  color: #22170b;
  background: linear-gradient(145deg, #f6c86f, #d9822b);
  box-shadow: 0 14px 28px rgba(217, 130, 43, 0.22);
}

.primary:hover,
.ghost:hover,
.small:hover,
.chip:hover {
  transform: translateY(-2px);
}

.primary:hover {
  box-shadow: 0 18px 34px rgba(217, 130, 43, 0.28);
}

.ghost:hover,
.chip:hover {
  border-color: rgba(48, 78, 123, 0.26);
  box-shadow: 0 12px 22px rgba(45, 35, 25, 0.08);
}

.ghost {
  padding: 14px 22px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.64);
}

.small {
  padding: 11px 16px;
  color: #fff;
  background: var(--navy);
}

.hero-panel {
  position: relative;
  display: grid;
  align-content: end;
  overflow: hidden;
  min-height: 270px;
  padding: 24px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 12%, rgba(242, 184, 75, 0.22), transparent 16rem),
    linear-gradient(150deg, #111827, #2f3545);
}

.radar {
  position: absolute;
  inset: 20px;
  display: grid;
  place-items: center;
}

.radar span {
  position: absolute;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(242, 184, 75, 0.42);
  border-radius: 999px;
  animation: pulse 2400ms ease-out infinite;
}

.radar span:nth-child(2) {
  animation-delay: 600ms;
}

.radar span:nth-child(3) {
  animation-delay: 1200ms;
}

.metric-row {
  position: relative;
  z-index: 1;
}

.metric-row div {
  flex: 1;
  min-width: 120px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.13);
}

.metric-row small,
.metric-row strong {
  display: block;
  color: #fff;
}

.metric-row small {
  margin-bottom: 6px;
  opacity: 0.72;
}

.metric-row strong {
  font-size: 36px;
}

.api-status {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.stats,
.coverage-grid,
.workspace,
.detail-grid,
.data-grid {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

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

.stats article,
.module-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 0 16px 48px rgba(45, 35, 25, 0.08);
}

.stats article {
  padding: 24px;
}

.stats span,
.stats small {
  display: block;
  color: var(--muted);
}

.stats strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 36px;
  letter-spacing: -0.05em;
}

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

.module-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.module-card::after {
  position: absolute;
  right: -36px;
  bottom: -46px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  content: "";
  background: rgba(216, 195, 165, 0.36);
}

.module-card.core {
  color: #fff;
  background:
    radial-gradient(circle at right bottom, rgba(242, 184, 75, 0.22), transparent 12rem),
    linear-gradient(145deg, #111827, #304e7b);
}

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

.module-card span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.module-card.core span,
.module-card.core p {
  color: rgba(255, 255, 255, 0.72);
}

.module-card strong {
  margin: 14px 0 10px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.module-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.workspace {
  grid-template-columns: 380px minmax(0, 1fr);
  align-items: start;
}

.detail-grid {
  grid-template-columns: minmax(0, 1fr) 420px;
}

.data-grid {
  grid-template-columns: minmax(0, 1fr) 420px;
}

.panel {
  padding: 24px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

select,
textarea,
input {
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.78);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

select:focus,
textarea:focus,
input:focus {
  border-color: rgba(48, 78, 123, 0.4);
  background: #fffaf0;
  box-shadow: 0 0 0 4px rgba(48, 78, 123, 0.1);
}

select {
  padding: 11px 14px;
}

input {
  width: 100%;
  padding: 12px 14px;
}

.order-import-panel {
  margin-top: 22px;
}

.order-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 18px;
  margin-bottom: 18px;
}

.natural-order-input,
.order-process-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.58);
}

.natural-order-input label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.natural-order-input textarea {
  min-height: 190px;
  margin-bottom: 8px;
  line-height: 1.8;
}

.bulk-import-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.bulk-import-panel textarea {
  min-height: 150px;
  margin: 10px 0 8px;
  line-height: 1.8;
}

.panel-head.compact {
  margin-bottom: 14px;
}

.panel-head.compact h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.order-process-steps {
  display: grid;
  gap: 10px;
}

.process-dot {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px 12px;
  padding: 13px;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.36);
}

.process-dot span {
  display: grid;
  grid-row: span 2;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  background: rgba(16, 32, 28, 0.08);
}

.process-dot strong {
  display: block;
}

.process-dot p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.process-dot.active {
  border-color: rgba(217, 130, 43, 0.36);
  background: rgba(242, 184, 75, 0.12);
  box-shadow: 0 14px 28px rgba(217, 130, 43, 0.12);
}

.process-dot.active span {
  color: #22170b;
  background: linear-gradient(145deg, #f6c86f, #d9822b);
}

.process-dot.done span {
  color: #fff;
  background: var(--blue);
}

.process-dot.fail {
  border-color: rgba(199, 95, 75, 0.34);
  background: rgba(199, 95, 75, 0.09);
}

.process-dot.fail span {
  color: #fff;
  background: var(--red);
}

.json-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 18px;
}

.json-split .json-preview {
  min-height: 260px;
  max-height: 420px;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.section-divider::before,
.section-divider::after {
  flex: 1;
  height: 1px;
  content: "";
  background: var(--line);
}

.compact-json {
  min-height: 92px;
}

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

.order-form label {
  display: grid;
  gap: 7px;
}

.order-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.order-form .wide {
  grid-column: 1 / -1;
}

.order-form textarea {
  min-height: 92px;
}

.chip {
  padding: 9px 13px;
  color: var(--muted);
  background: rgba(255, 250, 240, 0.72);
}

.chip.active {
  color: #fff;
  background: var(--blue);
}

.order-list,
.candidate-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.order-card,
.candidate-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.68);
}

.order-card {
  padding: 18px;
  cursor: pointer;
  transition: 180ms ease;
}

.order-card:hover,
.order-card.active {
  border-color: rgba(48, 78, 123, 0.36);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(45, 35, 25, 0.1);
}

.order-card.active {
  background: #fffaf0;
}

.order-card header,
.candidate-card header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.order-flags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.order-card h3,
.candidate-card h3 {
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.status {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #2b1a08;
  font-size: 12px;
  font-weight: 800;
  background: rgba(242, 184, 75, 0.3);
  white-space: nowrap;
}

.truth-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #22170b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: linear-gradient(145deg, #f6c86f, #d9822b);
  box-shadow: inset 0 0 0 1px rgba(34, 23, 11, 0.12);
  white-space: nowrap;
}

.truth-badge.small {
  min-height: 22px;
  padding: 3px 8px;
}

.candidate-card h3 .truth-badge,
.selected-order h3 .truth-badge,
.visual-candidate .truth-badge {
  margin-left: 6px;
  vertical-align: middle;
}

.selected-order {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 18px;
  border-radius: 24px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(48, 78, 123, 0.9)),
    radial-gradient(circle at top right, rgba(242, 184, 75, 0.28), transparent 16rem);
}

.selected-order p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.screen-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.screen-tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(16, 32, 28, 0.08);
}

.screen-tabs button {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
}

.screen-tabs button.active {
  color: #fff;
  background: var(--blue);
}

.screen-summary {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: right;
}

.candidate-card {
  padding: 20px;
}

.score {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 22px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(145deg, #304e7b, #111827);
}

.score.rejected {
  background: var(--red);
}

.candidate-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 18px;
  margin-top: 14px;
}

.reason {
  color: var(--muted);
  line-height: 1.7;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #26364f;
  font-size: 12px;
  font-weight: 800;
  background: rgba(216, 195, 165, 0.42);
}

.tag.truth-tag {
  color: #22170b;
  background: rgba(242, 184, 75, 0.46);
}

.risk {
  color: var(--red);
  font-size: 13px;
  line-height: 1.7;
}

.reject-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--red);
  font-size: 13px;
  line-height: 1.6;
  list-style: none;
}

.card-actions button {
  padding: 9px 12px;
  border-radius: 14px;
  color: var(--ink);
  background: rgba(16, 32, 28, 0.08);
  transition: 160ms ease;
}

.card-actions button:hover {
  color: #fff;
  background: var(--blue);
}

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

.field {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.58);
}

.field span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.field strong {
  line-height: 1.5;
}

.timeline {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
}

.timeline div {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
}

.timeline span {
  width: 14px;
  height: 14px;
  margin-top: 5px;
  border: 3px solid var(--lime);
  border-radius: 999px;
  background: var(--blue);
}

.timeline p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

textarea {
  width: 100%;
  min-height: 112px;
  margin-bottom: 14px;
  padding: 14px;
  resize: vertical;
}

.import-panel textarea {
  min-height: 180px;
  line-height: 1.8;
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(16, 32, 28, 0.08);
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--amber);
}

.json-preview {
  overflow: auto;
  min-height: 160px;
  max-height: 360px;
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid rgba(16, 32, 28, 0.12);
  border-radius: 20px;
  color: #f7dfad;
  font-size: 12px;
  line-height: 1.6;
  background: #151b2a;
}

.full {
  width: 100%;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

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

th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

td {
  color: var(--ink);
  font-size: 14px;
}

.reserved-list {
  display: grid;
  gap: 14px;
}

.reserved-list div {
  padding: 18px;
  border: 1px dashed rgba(48, 78, 123, 0.28);
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.56);
}

.reserved-list p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 24, 39, 0.62);
  backdrop-filter: blur(12px);
}

.modal-backdrop.open {
  display: flex;
}

.resume-modal {
  position: relative;
  overflow: auto;
  width: min(1080px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 250, 240, 0.98), rgba(244, 239, 230, 0.94)),
    radial-gradient(circle at top right, rgba(48, 78, 123, 0.14), transparent 24rem);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  animation: modalIn 180ms ease both;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  background: rgba(16, 32, 28, 0.08);
}

.modal-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at right top, rgba(242, 184, 75, 0.25), transparent 14rem),
    linear-gradient(145deg, #111827, #304e7b);
}

.modal-hero h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 44px);
}

.modal-hero p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.modal-score {
  display: grid;
  flex: 0 0 auto;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 28px;
  color: #22170b;
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(145deg, #f6c86f, #d9822b);
}

.modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  margin-top: 18px;
}

.modal-section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
}

.raw-section {
  margin-top: 18px;
}

.modal-section h3 {
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}

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

.modal-field {
  padding: 13px;
  border-radius: 16px;
  background: rgba(48, 78, 123, 0.07);
}

.modal-field span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.modal-field strong {
  line-height: 1.55;
}

.modal-analysis {
  display: grid;
  gap: 14px;
}

.analysis-block {
  padding: 14px;
  border-radius: 18px;
  background: rgba(48, 78, 123, 0.07);
}

.analysis-block strong {
  display: block;
  margin-bottom: 8px;
}

.analysis-block ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.analysis-block p {
  margin-bottom: 0;
}

.raw-resume {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.85;
  white-space: pre-wrap;
}

.match-visual-panel {
  margin-top: 22px;
}

.match-visual-body {
  display: grid;
  gap: 18px;
}

.visual-order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at right top, rgba(242, 184, 75, 0.26), transparent 17rem),
    linear-gradient(145deg, #111827, #304e7b);
}

.visual-order-card h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 40px);
  letter-spacing: -0.05em;
}

.visual-order-card p {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.7;
}

.visual-order-score {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 132px;
  border-radius: 26px;
  color: #22170b;
  background: linear-gradient(145deg, #f6c86f, #d9822b);
}

.visual-order-score strong {
  font-size: 44px;
  letter-spacing: -0.08em;
}

.visual-order-score span {
  font-size: 13px;
  font-weight: 800;
}

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

.visual-step {
  position: relative;
  overflow: hidden;
  min-height: 172px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.92), rgba(255, 250, 240, 0.56)),
    radial-gradient(circle at right bottom, rgba(216, 195, 165, 0.34), transparent 9rem);
}

.visual-step::after {
  position: absolute;
  right: -34px;
  bottom: -48px;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  content: "";
  background: rgba(48, 78, 123, 0.08);
}

.visual-step span,
.visual-step strong,
.visual-step b,
.visual-step p {
  position: relative;
  z-index: 1;
  display: block;
}

.visual-step span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.visual-step strong {
  margin-top: 13px;
  font-size: 18px;
}

.visual-step b {
  margin: 8px 0;
  color: var(--blue);
  font-size: 28px;
  letter-spacing: -0.06em;
}

.visual-step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
}

.visual-grid.lower {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.visual-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 250, 240, 0.62);
}

.visual-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.visual-card-head strong {
  font-size: 18px;
}

.visual-card-head span {
  color: var(--muted);
  font-size: 13px;
}

.funnel-row,
.reason-bar {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 13px;
}

.funnel-row div,
.reason-bar div,
.mini-score {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(48, 78, 123, 0.11);
}

.funnel-row i,
.reason-bar i,
.mini-score i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #304e7b, #f2b84b);
}

.funnel-row.danger i,
.reason-bar i {
  background: linear-gradient(90deg, #c75f4b, #d9822b);
}

.funnel-row b,
.reason-bar b {
  color: var(--ink);
  text-align: right;
}

.reason-bars {
  display: grid;
  gap: 8px;
}

.visual-candidate {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 104px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(23, 32, 51, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.42);
}

.visual-candidate.truth-row {
  border-color: rgba(217, 130, 43, 0.48);
  background: rgba(242, 184, 75, 0.13);
}

.visual-candidate + .visual-candidate {
  margin-top: 12px;
}

.rank {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  background: var(--navy);
}

.visual-candidate strong,
.visual-candidate p {
  display: block;
}

.visual-candidate p {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.visual-candidate-actions {
  display: grid;
  gap: 7px;
  justify-items: end;
}

.visual-candidate-actions b {
  color: var(--blue);
  font-size: 24px;
  letter-spacing: -0.06em;
}

.visual-candidate-actions button {
  width: 72px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(16, 32, 28, 0.08);
}

.visual-candidate-actions button:hover {
  color: #fff;
  background: var(--blue);
}

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

.check-matrix div {
  min-height: 116px;
  padding: 13px;
  border-radius: 18px;
  background: rgba(48, 78, 123, 0.08);
}

.check-matrix div.fail {
  background: rgba(199, 95, 75, 0.11);
}

.check-matrix span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  background: var(--blue);
}

.check-matrix .fail span {
  background: var(--red);
}

.check-matrix strong {
  display: block;
  margin-bottom: 6px;
}

.check-matrix p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  from {
    opacity: 0.9;
    transform: scale(0.3);
  }
  to {
    opacity: 0;
    transform: scale(3.6);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

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

  .side-card {
    position: static;
    margin-top: 22px;
  }

  .coverage-grid,
  .workspace,
  .detail-grid,
  .data-grid,
  .hero,
  .order-workbench,
  .json-split,
  .visual-flow,
  .visual-grid,
  .visual-grid.lower {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .main,
  .sidebar,
  .hero {
    padding: 20px;
  }

  .stats,
  .coverage-grid,
  .profile-card,
  .candidate-body,
  .order-form,
  .visual-order-card,
  .check-matrix {
    grid-template-columns: 1fr;
  }

  .panel-head,
  .selected-order,
  .screen-toolbar,
  .order-card header,
  .candidate-card header,
  .visual-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .funnel-row,
  .reason-bar,
  .visual-candidate {
    grid-template-columns: 1fr;
  }

  .visual-candidate-actions {
    justify-items: start;
  }

  .screen-summary {
    text-align: left;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .resume-modal {
    padding: 16px;
    border-radius: 24px;
  }

  .modal-hero,
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .modal-hero {
    flex-direction: column;
  }

  .modal-fields {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
  }
}
