:root {
  color-scheme: dark;
  --bg: #070604;
  --panel: rgba(16, 15, 12, 0.9);
  --panel-strong: rgba(31, 27, 18, 0.96);
  --gold: #f6c768;
  --gold-2: #b6842b;
  --green: #31d28b;
  --red: #ff5e66;
  --orange: #ffb454;
  --blue: #66b7ff;
  --text: #f7efe0;
  --muted: #a89f91;
  --line: rgba(243, 199, 106, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(246, 199, 104, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 199, 104, 0.03) 1px, transparent 1px),
    radial-gradient(
      circle at 80% 0%,
      rgba(246, 199, 104, 0.18),
      transparent 26rem
    ),
    radial-gradient(
      circle at 8% 90%,
      rgba(49, 210, 139, 0.1),
      transparent 22rem
    ),
    linear-gradient(135deg, #050403, #12100b 48%, #050403);
  background-size:
    28px 28px,
    28px 28px,
    auto,
    auto,
    auto;
}

.shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 32px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 18px 0 22px;
}

.brand-block {
  min-width: 0;
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 8px;
  white-space: nowrap;
}

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

h1 {
  font-size: clamp(38px, 7vw, 72px);
  margin-bottom: 6px;
  color: var(--gold);
  line-height: 1;
}

.subtitle {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
  text-wrap: balance;
}

.workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.input-panel {
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  gap: 16px;
  align-items: end;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
  grid-column: 1 / -1;
}

.panel-title span {
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.panel-title b {
  color: var(--gold);
  font-size: 12px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(246, 199, 104, 0.08);
  white-space: nowrap;
}

label {
  color: var(--muted);
  display: grid;
  gap: 8px;
  font-size: 14px;
}

label > :first-child,
.toggle span {
  white-space: nowrap;
}

input {
  width: 100%;
  border: 1px solid rgba(243, 199, 106, 0.24);
  background: #0b0a07;
  color: var(--text);
  border-radius: 6px;
  padding: 13px 14px;
  font-size: 16px;
  outline: none;
}

input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(246, 199, 104, 0.1);
}

.toggle {
  grid-template-columns: 18px 1fr;
  column-gap: 10px;
  align-items: center;
  line-height: 1.5;
  padding-bottom: 11px;
}

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

button,
.download {
  border: 0;
  border-radius: 6px;
  padding: 14px 18px;
  color: #1c1303;
  background: linear-gradient(135deg, var(--gold), #d59b35);
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.status {
  min-height: 22px;
  color: var(--blue);
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.6;
  padding: 9px 10px;
  border: 1px solid rgba(102, 183, 255, 0.18);
  border-radius: 6px;
  background: rgba(102, 183, 255, 0.06);
  text-wrap: balance;
}

.status.success {
  color: var(--green);
  border-color: rgba(49, 210, 139, 0.2);
  background: rgba(49, 210, 139, 0.06);
}

.status.error {
  color: var(--red);
  border-color: rgba(255, 94, 102, 0.22);
  background: rgba(255, 94, 102, 0.07);
}

.status.loading {
  color: var(--gold);
  border-color: rgba(246, 199, 104, 0.22);
  background: rgba(246, 199, 104, 0.07);
}

.result-panel {
  padding: 0;
  overflow: hidden;
}

.loading-panel {
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px 18px;
  border: 1px solid var(--line);
  background: rgba(16, 15, 12, 0.86);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.loading-panel[hidden] {
  display: none;
}

.loading-panel h2 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.25;
}

.loading-panel p {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0;
  font-size: 13px;
}

.loading-line {
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--gold),
    var(--green)
  );
  transform-origin: left center;
  animation: loadingCountdown 20s linear forwards;
}

.loading-panel.countdown-done .loading-line {
  transform: scaleX(1);
  animation: none;
}

.loading-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.loading-steps span {
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(246, 199, 104, 0.07);
  font-size: 12px;
  white-space: nowrap;
}

@keyframes loadingCountdown {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.result-head {
  border-bottom: 1px solid var(--line);
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(246, 199, 104, 0.12), transparent 46%),
    rgba(255, 255, 255, 0.02);
}

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

.decision-copy h2 {
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.15;
  margin-bottom: 0;
}

.result-actions {
  display: flex;
  gap: 12px;
  align-items: stretch;
  justify-content: flex-end;
}

.score-card {
  margin: 0;
  padding: 16px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  text-align: center;
  min-width: 220px;
}

.score-card strong {
  color: var(--gold);
  font-size: 38px;
  line-height: 1;
}

.score-help {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 16px 22px 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  text-wrap: balance;
}

.grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  padding: 18px 22px 8px;
}

.section-block {
  min-width: 0;
}

h3 {
  font-size: 16px;
  margin-bottom: 12px;
  white-space: nowrap;
}

.source-list {
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.source-list li {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  white-space: nowrap;
}

.source-list strong {
  color: var(--blue);
  white-space: nowrap;
}

.llm {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.llm h4 {
  color: var(--gold);
  font-size: 15px;
  margin: 14px 0 8px;
}

.llm h4:first-child {
  margin-top: 0;
}

.llm p {
  margin: 0 0 10px;
}

.llm ul {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
}

.llm li {
  list-style: none;
  position: relative;
  padding-left: 16px;
}

.llm li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(246, 199, 104, 0.34);
}

.llm strong {
  color: var(--text);
}

.chart-section {
  padding: 10px 22px 4px;
  width: 100%;
}

.chart-section-head {
  display: flex;
  justify-content: flex-start;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.chart-section-head h3 {
  margin-bottom: 0;
}

.chart-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  width: 100%;
}

.chart-tab {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 9px 13px;
  min-height: 0;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  white-space: nowrap;
  flex: 0 0 auto;
}

.chart-tab.active {
  color: #1c1303;
  background: linear-gradient(135deg, var(--gold), #d59b35);
  border-color: transparent;
}

.chart-tab-content {
  display: grid;
  gap: 14px;
  width: 100%;
}

.chart-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  min-width: 0;
  width: 100%;
}

.chart-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.chart-title > div {
  min-width: 0;
}

.chart-title span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-title small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-title b {
  color: var(--gold);
  font-size: 12px;
  white-space: nowrap;
  text-align: right;
}

.sheet-chart {
  width: 100%;
  height: 380px;
}

.table-scroll-shell {
  width: 100%;
  min-width: 0;
}

.table-scroll-top {
  width: 100%;
  height: 14px;
  margin-bottom: 6px;
  overflow-x: auto;
  overflow-y: hidden;
}

.table-scroll-top > div {
  height: 1px;
}

.sheet-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.raw-sheet-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.12);
}

.sheet-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}

.sheet-table th,
.sheet-table td {
  padding: 6px 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}

.sheet-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  color: var(--gold);
  background: #17140e;
  width: 220px;
  min-width: 190px;
  max-width: 260px;
  text-align: center;
  white-space: nowrap;
}

.sheet-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
  color: var(--text);
  background: #11100d;
  width: 220px;
  min-width: 190px;
  max-width: 260px;
  white-space: normal;
}

.sheet-table th {
  color: var(--gold);
  font-weight: 800;
  background: rgba(246, 199, 104, 0.08);
  text-align: center;
  white-space: nowrap;
}

.sheet-table td {
  color: var(--muted);
}

.sheet-table tbody tr:hover td {
  background: rgba(246, 199, 104, 0.06);
}

.raw-sheet {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
  table-layout: fixed;
}

.raw-sheet th,
.raw-sheet td {
  min-width: 72px;
  max-width: 150px;
  padding: 5px 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.25;
  color: var(--muted);
  text-align: center;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  vertical-align: middle;
}

.raw-sheet .raw-frozen-col-1 {
  position: sticky;
  left: 0;
  z-index: 7;
  width: 140px;
  min-width: 140px;
  max-width: 220px;
  color: var(--muted);
  text-align: center;
  background: #11100d;
  background-clip: border-box;
  isolation: isolate;
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.08);
  white-space: normal;
}

.raw-sheet .raw-frozen-col-2 {
  position: sticky;
  left: 140px;
  z-index: 7;
  width: 104px;
  min-width: 104px;
  max-width: 150px;
  color: var(--muted);
  font-weight: 800;
  background: #11100d;
  background-clip: border-box;
  isolation: isolate;
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.08);
}

.raw-sheet .raw-frozen-col-3 {
  position: sticky;
  left: 244px;
  z-index: 7;
  width: 104px;
  min-width: 104px;
  max-width: 150px;
  color: var(--muted);
  font-weight: 800;
  background: #11100d;
  background-clip: border-box;
  isolation: isolate;
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.08);
}

.raw-sheet .raw-frozen-span-2 {
  width: 244px;
  min-width: 244px;
  max-width: 370px;
}

.raw-sheet .raw-frozen-span-3 {
  width: 348px;
  min-width: 348px;
  max-width: 520px;
}

.raw-sheet th {
  position: sticky;
  top: 0;
  z-index: 5;
  color: var(--muted);
  font-weight: 800;
  background: #17140e;
  white-space: nowrap;
}

.raw-sheet th.raw-frozen-col-1 {
  z-index: 9;
}

.raw-sheet th.raw-frozen-col-1,
.raw-sheet th.raw-frozen-col-2,
.raw-sheet th.raw-frozen-col-3 {
  z-index: 9;
}

.raw-sheet tr:hover .raw-frozen-col-1,
.raw-sheet tr:hover .raw-frozen-col-2,
.raw-sheet tr:hover .raw-frozen-col-3 {
  background: #18130b;
}

.raw-sheet tr:hover td {
  background: rgba(246, 199, 104, 0.055);
}

.raw-sheet tr:hover td.raw-frozen-col-1,
.raw-sheet tr:hover td.raw-frozen-col-2,
.raw-sheet tr:hover td.raw-frozen-col-3 {
  background: #18130b;
}

.raw-sheet td[rowspan],
.raw-sheet th[rowspan] {
  vertical-align: middle;
  text-align: center;
}

.raw-sheet .raw-frozen-col-1[rowspan],
.raw-sheet .raw-frozen-col-2[rowspan],
.raw-sheet .raw-frozen-col-3[rowspan],
.raw-sheet .raw-frozen-col-1[colspan],
.raw-sheet .raw-frozen-col-2[colspan],
.raw-sheet .raw-frozen-col-3[colspan] {
  z-index: 7;
  background: #11100d;
  background-clip: border-box;
}

.raw-sheet td[colspan],
.raw-sheet th[colspan] {
  text-align: center;
}

.raw-sheet .raw-category {
  text-align: center;
  vertical-align: middle;
  letter-spacing: 0;
}

.raw-empty {
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.checks {
  display: grid;
  gap: 10px;
  padding: 0 22px 22px;
}

.check {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
  width: 100%;
  transition:
    border-color 0.16s ease,
    background 0.16s ease;
}

.check:hover {
  border-color: rgba(246, 199, 104, 0.28);
  background: rgba(246, 199, 104, 0.055);
}

.check > div {
  min-width: 0;
}

.check strong {
  display: block;
  white-space: nowrap;
}

.check span {
  color: var(--muted);
  display: block;
  margin-top: 4px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.check small {
  display: none;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.check.open small {
  display: grid;
}

.check em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
}

.check dl {
  display: grid;
  gap: 6px;
  margin: 2px 0 0;
}

.check dl div {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.check dt,
.check dd {
  margin: 0;
  line-height: 1.45;
}

.check dt {
  color: var(--gold);
}

.check dd {
  color: var(--text);
  word-break: break-word;
}

.check b {
  white-space: nowrap;
}

.check.ok b {
  color: var(--green);
}
.check.warn b {
  color: var(--orange);
}
.check.bad b {
  color: var(--red);
}

.result-panel > h3 {
  padding: 8px 22px 0;
}

@media (max-width: 860px) {
  .shell {
    width: min(100% - 24px, 640px);
    padding-top: 14px;
  }

  .hero {
    align-items: flex-start;
    padding: 10px 0 16px;
  }

  h1 {
    font-size: 42px;
  }

  .subtitle {
    font-size: 14px;
  }

  .workspace,
  .grid,
  .input-panel {
    grid-template-columns: 1fr;
  }

  .input-panel {
    position: static;
    padding: 18px;
  }

  .toggle {
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 12px;
    padding-bottom: 0;
  }

  .toggle span {
    white-space: normal;
  }

  .result-head {
    padding: 18px;
  }

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

  .score-card {
    padding: 14px;
  }

  .score-help {
    margin: 14px 18px 0;
  }

  .grid {
    padding: 16px 18px 6px;
  }

  .chart-section {
    padding: 10px 18px 4px;
  }

  .chart-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .chart-tabs {
    margin: 0 -18px;
    padding: 0 18px 4px;
  }

  .checks {
    padding: 0 18px 18px;
  }

  .mobile-ratio-card {
    padding: 0;
    border: 0;
    background: transparent;
    display: grid;
    gap: 14px;
    color: var(--muted);
  }

  .mobile-ratio-card strong,
  .mobile-ratio-card h4,
  .mobile-ratio-card p,
  .mobile-ratio-card b,
  .mobile-ratio-card td {
    color: var(--muted);
  }

  .ratio-mobile-primary {
    display: grid;
    gap: 12px;
  }

  .ratio-mobile-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(246, 199, 104, 0.18);
    border-radius: 8px;
    background: #11100d;
  }

  .ratio-mobile-summary div {
    min-width: 0;
  }

  .ratio-mobile-summary span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    margin-bottom: 4px;
  }

  .ratio-mobile-summary b {
    display: block;
    font-size: 18px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .ratio-mobile-primary h3 {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.35;
  }

  .ratio-mobile-secondary {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(10, 9, 7, 0.72);
  }

  .ratio-mobile-secondary-head {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: #11100d;
  }

  .ratio-mobile-secondary-head strong {
    display: block;
    font-size: 16px;
    line-height: 1.35;
  }

  .ratio-mobile-secondary-head span {
    display: block;
    margin-top: 5px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .ratio-mobile-items {
    display: grid;
  }

  .ratio-mobile-item {
    padding: 13px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

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

  .ratio-mobile-item h4 {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .ratio-mobile-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .ratio-mobile-meta div {
    min-width: 0;
    padding: 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.035);
  }

  .ratio-mobile-meta span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.3;
    margin-bottom: 4px;
  }

  .ratio-mobile-meta b {
    display: block;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 760;
    overflow-wrap: anywhere;
  }

  .ratio-mobile-years {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.035);
  }

  .ratio-mobile-years th,
  .ratio-mobile-years td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    line-height: 1.35;
  }

  .ratio-mobile-years tr:last-child th,
  .ratio-mobile-years tr:last-child td {
    border-bottom: 0;
  }

  .ratio-mobile-years th {
    width: 82px;
    color: var(--muted);
    font-weight: 700;
    text-align: left;
  }

  .ratio-mobile-years td {
    font-weight: 800;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .ratio-mobile-item p {
    margin: 10px 0;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }

  .sheet-table {
    min-width: 660px;
  }

  .sheet-table th:first-child,
  .sheet-table td:first-child {
    width: 180px;
    min-width: 170px;
    max-width: 220px;
  }

  .raw-sheet .raw-frozen-col-1 {
    width: 120px;
    min-width: 120px;
    max-width: 180px;
  }

  .raw-sheet .raw-frozen-col-2 {
    left: 120px;
  }

  .raw-sheet .raw-frozen-span-2 {
    width: 224px;
    min-width: 224px;
    max-width: 330px;
  }

  .result-panel > h3 {
    padding: 8px 18px 0;
  }
}

@media (max-width: 460px) {
  .shell {
    width: min(100% - 18px, 420px);
  }

  .hero {
    display: block;
  }

  .panel {
    border-radius: 7px;
  }

  .loading-panel {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .score-card {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .decision-copy h2 {
    font-size: 28px;
  }

  .source-list {
    display: grid;
  }

  .source-list li {
    justify-content: space-between;
    border-radius: 7px;
  }

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

  .check dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .sheet-chart {
    height: 340px;
  }

  .sheet-table {
    min-width: 620px;
  }

  .sheet-table th:first-child,
  .sheet-table td:first-child {
    width: 160px;
    min-width: 150px;
    max-width: 200px;
  }

  .raw-sheet {
    font-size: 12px;
  }

  .raw-sheet th,
  .raw-sheet td {
    min-width: 66px;
    max-width: 130px;
    padding: 5px 6px;
  }

  .raw-sheet .raw-frozen-col-1 {
    width: 110px;
    min-width: 110px;
    max-width: 160px;
  }

  .raw-sheet .raw-frozen-col-2 {
    left: 110px;
  }

  .raw-sheet .raw-frozen-span-2 {
    width: 214px;
    min-width: 214px;
    max-width: 310px;
  }

  .chart-title span {
    font-size: 16px;
  }

  .ratio-mobile-meta {
    grid-template-columns: 1fr;
  }

  .ratio-mobile-summary {
    grid-template-columns: 1fr;
  }

  .check b {
    justify-self: start;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
  }
}
