:root {
  --ink: #1d2636;
  --muted: #6d7480;
  --line: rgba(185, 190, 196, 0.48);
  --surface: #dedede;
  --surface-soft: #e7e7e7;
  --surface-light: #eeeeee;
  --glass: #dedede;
  --glass-strong: #dedede;
  --teal: #178f98;
  --blue: #5a95d3;
  --active-a: #31a8c2;
  --active-b: #5d93d4;
  --active-text: #ffffff;
  --coral: #ff7a59;
  --lime: #a9d36f;
  --shadow: 18px 18px 36px rgba(168, 168, 168, 0.62), -18px -18px 36px rgba(255, 255, 255, 0.72);
  --shadow-small: 10px 10px 20px rgba(170, 170, 170, 0.54), -10px -10px 20px rgba(255, 255, 255, 0.68);
  --shadow-tight: 6px 6px 12px rgba(170, 170, 170, 0.50), -6px -6px 12px rgba(255, 255, 255, 0.66);
  --shadow-pressed: inset 7px 7px 14px rgba(170, 170, 170, 0.62), inset -7px -7px 14px rgba(255, 255, 255, 0.74);
  --inner-highlight: inset 1px 1px 2px rgba(255, 255, 255, 0.56);
  --button-rest: 6px 6px 12px #c5c5c5, -6px -6px 12px #ffffff;
  --button-hover: 6px 6px 12px #c5c5c5, -6px -6px 12px #ffffff;
  --button-active: 0 0 0 #c5c5c5, 0 0 0 #ffffff, inset 4px 4px 12px #c5c5c5, inset -4px -4px 12px #ffffff;
  --button-press-transform: none;
  --engrave-text: 0.5px 0.5px 0.5px rgba(255, 255, 255, 0.42), -0.5px -0.5px 0.5px rgba(104, 112, 124, 0.16);
  --engrave-strong: 0.5px 0.5px 0.5px rgba(255, 255, 255, 0.48), -0.5px -0.5px 0.5px rgba(63, 74, 90, 0.20);
  --engrave-soft: 0.5px 0.5px 0.5px rgba(255, 255, 255, 0.36), -0.5px -0.5px 0.5px rgba(112, 120, 132, 0.12);
  --engrave-on-color: 0.5px 0.5px 0.5px rgba(255, 255, 255, 0.16), -0.5px -0.5px 0.5px rgba(26, 66, 98, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Segoe UI", "Noto Sans KR", system-ui, sans-serif;
  background: var(--surface);
  background-attachment: fixed;
  text-shadow: var(--engrave-text);
}

body::before {
  display: none;
}

.access-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--surface);
}

.access-card {
  width: min(420px, 100%);
  border-radius: 34px;
  padding: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.access-card h2 {
  margin: 0;
  font-size: 30px;
}

.access-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.6;
}

.access-card input {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 15px 18px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-pressed);
  outline: none;
  font-weight: 800;
}

.access-card button {
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  color: var(--active-text);
  background: linear-gradient(135deg, var(--active-a), var(--active-b));
  box-shadow: var(--button-rest);
  font-weight: 900;
}

.access-card small {
  min-height: 18px;
  color: var(--coral);
  font-weight: 800;
}

button,
input,
select {
  font: inherit;
  text-shadow: var(--engrave-soft);
}

button {
  cursor: pointer;
  border: 1px solid #e8e8e8;
  background: #e8e8e8;
}

button,
.detail-actions a,
.detail-actions button {
  transition:
    all 0.3s;
}

button:hover,
.detail-actions a:hover,
.detail-actions button:hover {
  filter: saturate(1.06);
}

button:active,
.detail-actions a:active,
.detail-actions button:active {
  transform: var(--button-press-transform);
  box-shadow: var(--button-active);
}

button:focus-visible,
.detail-actions a:focus-visible,
.detail-actions button:focus-visible {
  outline: 3px solid rgba(24, 183, 174, 0.28);
  outline-offset: 3px;
}

.shell {
  width: min(1420px, calc(100% - 44px));
  margin: 0 auto;
  padding: 30px 0 48px;
}

.topbar,
.top-actions,
.section-title,
.toolbar,
.tabs,
.date-row,
.health-strip,
.metric {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
  position: relative;
  isolation: isolate;
  z-index: 5;
}

.topbar > div:first-child {
  position: relative;
  z-index: 4;
  background: transparent;
  border-radius: 0;
  padding-right: 0;
}

.eyebrow {
  position: relative;
  z-index: 5;
  margin: 0 0 5px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  position: relative;
  z-index: 5;
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: 0;
  background: transparent;
  text-shadow: var(--engrave-strong);
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: 0;
  text-shadow: var(--engrave-strong);
}

h3,
strong,
b,
.eyebrow,
.metric span,
.score,
.card h3 {
  text-shadow: var(--engrave-strong);
}

p,
small,
label,
td,
th,
.muted,
.contact-row,
.detail-grid span {
  text-shadow: var(--engrave-soft);
}

button,
.detail-actions a,
.quick-chip,
.card-meta span,
.stage,
.match-chip,
.text-button,
.icon-button,
.preset-list button {
  text-shadow: var(--engrave-text);
}

button.active,
.quick-chip.active,
.metric.active,
.view-btn.active,
.active,
.score.priority {
  text-shadow: var(--engrave-on-color);
}

.glass {
  border: 0;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  isolation: isolate;
}

.hero-panel {
  min-height: 136px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 22px 32px;
  border-radius: 38px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-panel::after,
.card::after,
.filters::after,
.toolbar::after,
.quick-filter-panel::after,
.metric::after {
  display: none;
}

.hero-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.hero-copy,
.hero-copy *,
.quick-filter-panel > *,
.toolbar > *,
.metric > *,
.card > :not(.score),
.card h3,
.card-meta,
.contact-row,
.chip-row,
.detail-panel,
.score > div,
.signal-card > * {
  position: relative;
  z-index: 2;
}

.health-strip {
  justify-content: flex-end;
  max-width: 260px;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

.signal-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 106px;
  border: 0;
  border-radius: 50px;
  padding: 6px 8px;
  background: var(--surface);
  box-shadow: 5px 5px 12px rgba(178, 178, 178, 0.58), -5px -5px 12px rgba(244, 244, 244, 0.45);
  isolation: isolate;
}

.detail-actions a:hover,
.detail-actions button:hover {
  background: var(--surface-soft);
  color: var(--ink);
  box-shadow: var(--button-hover);
}

button:disabled,
button:disabled:hover,
button:disabled:active {
  cursor: wait;
  opacity: 0.62;
  transform: none;
  filter: none;
  box-shadow: var(--button-rest);
}

.signal-card strong,
.signal-card small {
  display: block;
  line-height: 1.2;
}

.signal-card strong {
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
}

.signal-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
}

.loader {
  width: 1.45rem;
  height: 1.45rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: -5px -5px 9px rgba(255, 255, 255, 0.45), 5px 5px 9px rgba(94, 104, 121, 0.137);
}

.loader::before {
  height: 0.58rem;
  width: 0.58rem;
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  background: #ececec;
  border-radius: 50%;
  border: 1px solid #e2e1e1;
  box-shadow: inset -5px -5px 9px rgba(255, 255, 255, 0.45), 5px 5px 9px rgba(94, 104, 121, 0.3);
}

.loader span {
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background: linear-gradient(to bottom, rgb(89, 92, 252), rgb(226, 57, 241));
  animation: rotate 1s infinite linear;
}

.signal-card.warn .loader span {
  background: linear-gradient(to bottom, #f59e0b, #ff7a59);
}

.signal-card.off .loader span {
  background: linear-gradient(to bottom, #94a3b8, #667085);
  animation-play-state: paused;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

.pill,
.stage,
.match-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: var(--surface);
  box-shadow: var(--shadow-tight);
  position: relative;
  z-index: 3;
}

.pill.on {
  color: #087b78;
  background: rgba(15, 159, 154, 0.16);
}

.pill.off {
  color: #9a3412;
  background: rgba(255, 122, 89, 0.16);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 26px;
  margin: 30px 0 30px;
}

.metric {
  position: relative;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  flex-direction: column-reverse;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 24px;
  background: var(--surface);
  border: 0;
  color: var(--ink);
  text-align: left;
  box-shadow: var(--button-rest);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 280ms ease,
    color 220ms ease;
  isolation: isolate;
  will-change: transform, box-shadow;
}

.metric:hover {
  transform: translateY(-2px);
  background: var(--surface-soft);
  box-shadow: var(--button-hover);
}

.metric.active {
  color: var(--active-text);
  background: linear-gradient(145deg, var(--active-a), var(--active-b));
  box-shadow: var(--button-active);
  transform: var(--button-press-transform);
}

.metric b {
  display: block;
  width: 100%;
  font-size: 26px;
  line-height: 1;
}

.metric span {
  display: block;
  width: 100%;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.15;
  font-weight: 700;
}

.metric.active span {
  color: rgba(255, 255, 255, 0.82);
}

.quick-filter-panel {
  position: relative;
  display: grid;
  gap: 20px;
  margin: 0 0 34px;
  padding: 26px 30px;
  border-radius: 36px;
  isolation: isolate;
}

.quick-filter-dynamic {
  display: grid;
  gap: 22px;
}

.quick-filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px;
  row-gap: 20px;
}

.quick-filter-group:not(.region-filter-group) {
  gap: 18px 22px;
}

.quick-filter-group > span {
  min-width: 104px;
  padding-top: 5px;
  color: #344054;
  font-size: 13px;
  font-weight: 900;
}

.quick-filter-lines {
  display: grid;
  flex: 1 1 0;
  min-width: 0;
  gap: 18px;
}

.quick-filter-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.quick-filter-line > b {
  min-width: 34px;
  color: #53657d;
  font-size: 12px;
  font-weight: 900;
}

.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  padding: 0 11px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--button-rest);
  font-size: 12px;
  font-weight: 800;
  transition:
    transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 280ms ease,
    color 220ms ease;
  will-change: transform, box-shadow;
}

.quick-chip:hover {
  transform: translateY(-2px);
  background: var(--surface-soft);
  box-shadow: var(--button-hover);
}

.quick-chip em {
  min-width: 20px;
  border-radius: 999px;
  padding: 1px 6px;
  color: #2f3f56;
  background: var(--surface-soft);
  box-shadow: inset 2px 2px 4px #b9b9b9, inset -2px -2px 4px #f2f2f2;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.quick-chip.active {
  color: var(--active-text);
  border-color: transparent;
  background: linear-gradient(145deg, var(--active-a), var(--active-b));
  box-shadow: var(--button-active);
  transform: var(--button-press-transform);
}

.quick-chip:not(.active) {
  transition-delay: 30ms;
}

.quick-chip.active em {
  color: #0f2747;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 2px 2px 5px rgba(94, 104, 121, 0.20), inset -2px -2px 5px rgba(255, 255, 255, 0.82);
}

.inline-filter-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.35fr) minmax(300px, 1.1fr) minmax(180px, 0.7fr);
  gap: 22px;
  align-items: end;
  padding-top: 22px;
  border-top: 1px solid rgba(180, 180, 180, 0.40);
}

.inline-filter-grid label {
  margin-bottom: 0;
}

.inline-check {
  min-height: 42px;
  margin-top: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 50px;
  background: var(--surface);
  box-shadow: var(--shadow-pressed);
}

.score-guide {
  margin: -2px 0 0;
  color: #53657d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.layout {
  display: block;
}

.filters {
  position: sticky;
  top: 16px;
  align-self: start;
  padding: 18px;
  border-radius: 34px;
  overflow: hidden;
}

.section-title {
  justify-content: space-between;
  margin-bottom: 14px;
  font-weight: 900;
}

label {
  display: block;
  margin-bottom: 14px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  height: 40px;
  margin-top: 7px;
  border: 0;
  border-radius: 50px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-pressed);
  outline: none;
}

input:focus,
select:focus {
  box-shadow: inset 7px 7px 14px #ababab, inset -7px -7px 14px #fdfdfd, 0 0 0 3px rgba(15, 159, 154, 0.14);
}

.date-row {
  gap: 8px;
}

.date-row input {
  min-width: 0;
}

.period-search {
  flex: 0 0 auto;
  height: 40px;
  margin-top: 7px;
  border: 0;
  border-radius: 50px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--button-rest);
  font-weight: 900;
}

.period-search:hover {
  transform: translateY(-2px);
  background: var(--surface-soft);
  box-shadow: var(--button-hover);
}

.period-search:active {
  transform: var(--button-press-transform);
  box-shadow: var(--button-active);
}

.period-search:disabled {
  cursor: wait;
  opacity: 0.62;
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
}

.check input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.primary,
.ghost,
.icon-button,
.text-button,
.tab {
  border: 0;
  border-radius: 50px;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 900;
  transition:
    transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 280ms ease,
    color 220ms ease;
  will-change: transform, box-shadow;
}

.primary {
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--button-rest);
}

.ghost,
.icon-button,
.tab {
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--button-rest);
}

.primary:hover,
.ghost:hover,
.icon-button:hover,
.tab:hover,
.preset-list button:hover {
  background: var(--surface-soft);
  box-shadow: var(--button-hover);
}

.primary:active,
.ghost:active,
.icon-button:active,
.tab:active,
.preset-list button:active {
  box-shadow: var(--button-active);
  transform: var(--button-press-transform);
}

.text-button {
  min-height: 32px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--button-rest);
}

.full {
  width: 100%;
}

.filter-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}

.preset-box {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.7);
}

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

.preset-list button {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 50px;
  text-align: left;
  padding: 0 12px;
  background: var(--surface);
  box-shadow: var(--button-rest);
  font-weight: 800;
}

.content {
  min-width: 0;
}

.toolbar {
  position: relative;
  justify-content: space-between;
  min-height: 68px;
  margin-bottom: 24px;
  padding: 14px 18px;
  border-radius: 34px;
  overflow: hidden;
  isolation: isolate;
}

.tabs {
  gap: 12px;
}

.tab {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.9rem;
}

.tab.active {
  color: var(--active-text);
  background: linear-gradient(145deg, var(--active-a), var(--active-b));
  box-shadow: var(--button-active);
  transform: var(--button-press-transform);
}

.tab:not(.active) {
  transition-delay: 30ms;
}

.mode-label {
  padding-right: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.cards {
  display: grid;
  gap: 24px;
}

.card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: 28px 104px 28px 30px;
  border-radius: 36px;
  border: 0;
  background: var(--glass-strong);
  box-shadow: var(--shadow-small);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: hidden;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
  isolation: isolate;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--button-hover);
}

.card.expanded {
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 18px;
  font-size: 19px;
  line-height: 1.55;
}

.card-meta,
.contact-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.card-meta {
  margin-bottom: 24px;
  color: #24364f;
  font-size: 13px;
  font-weight: 800;
}

.chip-row {
  margin-bottom: 18px;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  border: 0;
  border-radius: 999px;
  padding: 3px 10px 3px 7px;
  background: var(--surface);
  box-shadow: var(--shadow-tight);
  position: relative;
  z-index: 3;
}

.card-meta b {
  border-radius: 999px;
  padding: 2px 6px;
  color: var(--blue);
  background: var(--surface-soft);
  box-shadow: inset 2px 2px 4px rgba(185, 185, 185, 0.72), inset -2px -2px 4px rgba(242, 242, 242, 0.64);
  font-size: 11px;
  font-weight: 900;
}

.stage {
  color: #164c63;
  background: rgba(90, 149, 211, 0.15);
}

.match-chip {
  color: #0f5f5c;
  background: rgba(15, 159, 154, 0.14);
}

.contact-row {
  margin-top: 24px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
}

.contact-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.tel-link {
  display: inline;
  min-height: 0;
  border-radius: 0;
  padding: 0;
  color: #0f5f5c;
  background: transparent;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 900;
  line-height: inherit;
  vertical-align: baseline;
}

.tel-link:hover {
  color: #0b7e79;
}

.detail-panel {
  margin-top: 20px;
  padding: 18px;
  border: 0;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-pressed);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
  justify-content: center;
  gap: 14px;
}

.detail-grid div {
  min-width: 0;
  padding: 13px 14px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-tight);
}

.detail-grid b,
.detail-grid span {
  display: block;
}

.detail-grid b {
  margin-bottom: 4px;
  color: #2d6cdf;
  font-size: 11px;
  font-weight: 900;
}

.detail-grid span {
  color: #22334c;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.detail-actions a,
.detail-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 0;
  border-radius: 50px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  box-shadow: var(--button-rest);
}

.score {
  position: absolute;
  top: 0;
  right: 0;
  width: 104px;
  height: 104px;
  display: block;
  border-left: 0;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  background: linear-gradient(135deg, #9bdcff, #4aa3ff);
  box-shadow: none;
  z-index: 1;
  pointer-events: none;
}

.score.priority {
  background: linear-gradient(135deg, #afe8ff, #43a7ff);
}

.score.review {
  background: linear-gradient(135deg, #ffd9b7, #ff9f6e);
}

.score.hold {
  background: linear-gradient(135deg, #d4d8df, #9aa4b2);
}

.score div {
  position: absolute;
  top: 34%;
  left: 67%;
  width: 54px;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}

.score strong {
  display: block;
  color: #10233f;
  font-size: 17px;
  line-height: 1;
}

.score span {
  display: block;
  margin-top: 3px;
  color: rgba(16, 35, 63, 0.82);
  font-size: 7px;
  font-weight: 900;
  line-height: 1.15;
}

.table-wrap,
.report {
  border-radius: 34px;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  background: var(--surface);
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(23, 32, 51, 0.08);
  text-align: left;
  font-size: 13px;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  background: var(--surface-soft);
  color: #344054;
  font-weight: 900;
}

.report {
  padding: 22px;
  background: var(--surface);
}

.report-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.report-head h2 {
  font-size: 26px;
}

.hidden {
  display: none;
}

dialog {
  border: 0;
  border-radius: 34px;
  padding: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(23, 32, 51, 0.32);
}

.dialog-card {
  width: min(420px, calc(100vw - 32px));
  padding: 22px;
  border: 0;
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

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

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

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

@media (max-width: 680px) {
  .shell {
    width: min(100% - 12px, 1440px);
    padding-top: 8px;
    padding-bottom: 24px;
  }

  .hero-panel,
  .report-head {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .topbar {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
  }

  .topbar > div:first-child {
    min-width: 0;
    z-index: 4;
  }

  h1 {
    font-size: 25px;
    line-height: 1.15;
  }

  .topbar .eyebrow {
    font-size: 11px;
  }

  .hero-panel {
    padding: 20px;
  }

  .health-strip {
    justify-content: flex-end;
    max-width: none;
    margin-top: 20px;
    flex: 0 0 auto;
  }

  .signal-card {
    min-width: 96px;
    gap: 5px;
    padding: 5px 7px;
  }

  .signal-card strong {
    font-size: 9px;
  }

  .signal-card small {
    font-size: 7px;
  }

  .loader {
    width: 1.25rem;
    height: 1.25rem;
  }

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

  .inline-filter-grid {
    grid-template-columns: 1fr;
  }

  .quick-filter-panel {
    padding: 20px 18px;
  }

  .quick-filter-group {
    gap: 14px;
  }

  .quick-filter-group > span {
    min-width: 100%;
    padding-top: 0;
  }

  .quick-filter-lines {
    gap: 18px;
  }

  .quick-filter-line {
    gap: 14px 16px;
  }

  .quick-filter-line > b {
    min-width: 100%;
  }

  .card {
    grid-template-columns: 1fr;
    padding: 18px 58px 18px 18px;
    border-radius: 28px;
  }

  .cards {
    gap: 16px;
  }

  .chip-row {
    gap: 8px;
    margin-bottom: 12px;
  }

  .stage,
  .match-chip {
    padding: 6px 9px;
    font-size: 11px;
  }

  .card h3 {
    margin-bottom: 14px;
    font-size: 17px;
    line-height: 1.45;
  }

  .card-meta {
    gap: 8px;
    margin-bottom: 14px;
    font-size: 12px;
  }

  .card-meta span {
    min-height: 23px;
    padding: 2px 8px 2px 6px;
  }

  .card-meta b {
    font-size: 10px;
    padding: 1px 5px;
  }

  .contact-row {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.65;
  }

  .contact-row span {
    min-height: 20px;
  }

  .detail-panel {
    margin-top: 14px;
    padding: 12px;
    border-radius: 24px;
  }

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

  .detail-grid div {
    min-height: 58px;
    padding: 10px 11px;
    border-radius: 18px;
  }

  .detail-grid b {
    margin-bottom: 3px;
    font-size: 10px;
  }

  .detail-grid span {
    font-size: 12px;
    line-height: 1.35;
  }

  .detail-actions {
    margin-top: 12px;
    gap: 8px;
  }

  .detail-actions a,
  .detail-actions button {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .score {
    width: 86px;
    height: 86px;
    border-top: 0;
    padding-top: 0;
  }

  .score div {
    top: 34%;
    left: 67%;
    width: 46px;
    transform: translate(-50%, -50%);
  }

  .score strong {
    font-size: 15px;
  }

  .score span {
    font-size: 6px;
  }
}
