:root {
  --ink: #14213a;
  --ink-soft: #56637a;
  --navy: #0e1d34;
  --navy-2: #132a49;
  --paper: #f4f7fb;
  --surface: #ffffff;
  --line: #dde4ee;
  --line-strong: #cbd5e3;
  --blue: #3972f6;
  --blue-dark: #2558d7;
  --blue-soft: #eaf0ff;
  --mint: #28b18a;
  --mint-soft: #e3f7f0;
  --coral: #e9695b;
  --coral-soft: #fff0ed;
  --amber: #d89928;
  --amber-soft: #fff5dc;
  --purple: #8267df;
  --purple-soft: #f1edff;
  --shadow-sm: 0 8px 24px rgb(28 47 80 / 7%);
  --shadow-md: 0 18px 50px rgb(28 47 80 / 12%);
  --radius-lg: 22px;
  --radius-md: 15px;
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 9px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 77% 16%, rgb(75 130 255 / 18%), transparent 27%),
    linear-gradient(133deg, #0b182b 0%, #102540 55%, #102c4b 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.21;
  background-image:
    linear-gradient(rgb(255 255 255 / 7%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 7%) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 94%);
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(3px);
  pointer-events: none;
}

.orb-one {
  top: 130px;
  right: -90px;
  width: 340px;
  height: 340px;
  border: 1px solid rgb(120 160 255 / 22%);
  box-shadow:
    0 0 80px rgb(44 105 255 / 15%) inset,
    0 0 100px rgb(44 105 255 / 9%);
}

.orb-two {
  bottom: -250px;
  left: 28%;
  width: 520px;
  height: 520px;
  background: rgb(27 179 146 / 6%);
  border: 1px solid rgb(46 196 164 / 10%);
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 12px;
  color: #dce8ff;
  background: linear-gradient(145deg, rgb(255 255 255 / 13%), rgb(255 255 255 / 5%));
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow: 0 8px 24px rgb(0 0 0 / 16%);
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand strong {
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand small {
  color: #8fa5c3;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.snapshot-chip,
.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding-inline: 14px;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 10px;
  color: #c7d4e7;
  background: rgb(255 255 255 / 4%);
  font-size: 12px;
}

.snapshot-chip code {
  color: #fff;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #49d4ac;
  box-shadow: 0 0 0 4px rgb(73 212 172 / 12%);
}

.ghost-button {
  color: #fff;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.ghost-button:hover {
  border-color: rgb(255 255 255 / 28%);
  background: rgb(255 255 255 / 9%);
  transform: translateY(-1px);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 100px;
  align-items: center;
  min-height: 610px;
  padding: 68px 0 110px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 24px;
  color: #88a2c8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.eyebrow span:first-child {
  color: #6e9bff;
}

.eyebrow span:nth-of-type(2) {
  color: #5fd2b5;
}

.eyebrow i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #4b617f;
}

.hero h1 {
  max-width: 670px;
  margin: 0;
  color: #f5f8ff;
  font-size: clamp(44px, 5.2vw, 70px);
  font-weight: 660;
  line-height: 1.11;
  letter-spacing: -0.055em;
}

.hero h1 strong {
  color: #7ea5ff;
  font-weight: inherit;
}

.hero-lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: #a9bad0;
  font-size: 16px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgb(39 94 218 / 28%);
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.primary-button:hover,
.secondary-button:hover {
  background: #4d80f6;
  transform: translateY(-2px);
}

.text-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #d5e1f2;
  font-size: 13px;
}

.text-button span {
  color: #7187a5;
}

.updated-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 29px 0 0;
  color: #6f87a7;
  font-size: 11px;
}

.updated-icon {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid rgb(73 212 172 / 28%);
  border-radius: 50%;
  color: #65cfb2;
  font-size: 9px;
}

.readiness-card {
  position: relative;
  overflow: hidden;
  padding: 24px 26px 22px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 24px;
  background:
    linear-gradient(150deg, rgb(255 255 255 / 10%), rgb(255 255 255 / 3%)),
    rgb(8 23 42 / 42%);
  box-shadow: 0 30px 80px rgb(0 0 0 / 23%);
  backdrop-filter: blur(15px);
}

.readiness-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(126 165 255 / 65%), transparent);
  content: "";
}

.readiness-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #a9bad0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trend-chip {
  padding: 4px 8px;
  border-radius: 999px;
  color: #76dbbf;
  background: rgb(70 209 171 / 10%);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.progress-wrap {
  display: grid;
  padding: 26px 0 22px;
  place-items: center;
}

.progress-ring {
  --progress: 285.8deg;
  position: relative;
  display: grid;
  width: 185px;
  height: 185px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#5f8df4 0 var(--progress), rgb(255 255 255 / 9%) var(--progress) 360deg);
  box-shadow: 0 0 35px rgb(71 122 238 / 13%);
}

.progress-ring::before {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 50%;
  background: #112640;
  content: "";
}

.progress-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.progress-center strong {
  color: #fff;
  font-size: 37px;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.progress-center span {
  margin-top: 5px;
  color: #8197b6;
  font-size: 10px;
}

.readiness-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgb(255 255 255 / 8%);
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.readiness-numbers > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 15px 5px;
  color: #8fa3bf;
  font-size: 11px;
}

.readiness-numbers > div:first-child {
  padding-right: 15px;
  border-right: 1px solid rgb(255 255 255 / 8%);
}

.readiness-numbers > div:last-child {
  padding-left: 15px;
}

.readiness-numbers strong {
  color: #edf3ff;
  font-size: 16px;
}

.number-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.pass-dot {
  background: var(--mint);
}

.fail-dot {
  background: var(--coral);
}

.readiness-note {
  margin: 16px 0 0;
  color: #667e9c;
  font-size: 10px;
  line-height: 1.6;
}

main {
  position: relative;
}

.metrics-section {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: -48px;
}

.metric-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px 15px;
  align-items: center;
  min-height: 142px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.metric-card small {
  grid-column: 1 / -1;
  padding-top: 11px;
  border-top: 1px solid #edf1f6;
  color: #909caf;
  font-size: 10px;
}

.metric-card > div {
  display: flex;
  flex-direction: column;
}

.metric-card strong {
  color: var(--ink);
  font-size: 29px;
  font-weight: 680;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.metric-card strong em {
  padding-inline: 5px;
  color: #b6c0cf;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
}

.metric-card > div > span {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 11px;
}

.metric-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 11px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 16px;
  font-weight: 700;
}

.metric-primary {
  border-color: #cfdaee;
}

.success-icon {
  color: #168d6c;
  background: var(--mint-soft);
}

.danger-icon {
  color: #c95549;
  background: var(--coral-soft);
}

.split-icon {
  color: #7458ca;
  background: var(--purple-soft);
}

.success-text {
  color: #399178 !important;
}

.danger-text {
  color: #c96b60 !important;
}

.criterion-section {
  padding: 104px 0 92px;
}

.section-kicker {
  display: block;
  margin-bottom: 9px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.criterion-label {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 31px;
}

.criterion-label .section-kicker {
  margin: 0 30px 8px 0;
}

.criterion-label h2,
.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 29px;
  font-weight: 680;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.criterion-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
}

.flow-step {
  display: flex;
  gap: 16px;
  min-height: 118px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 62%);
}

.flow-index {
  color: #a6b5c9;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.flow-step strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 14px;
}

.flow-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.65;
}

.flow-arrow {
  align-self: center;
  color: #acb7c8;
  font-size: 17px;
}

.criterion-footnote {
  margin: 22px 0 0;
  padding-left: 15px;
  border-left: 2px solid #9ab3e9;
  color: #8490a2;
  font-size: 11px;
}

.issues-section {
  padding: 90px 0 100px;
  border-top: 1px solid #dfe6ef;
  border-bottom: 1px solid #dfe6ef;
  background:
    linear-gradient(180deg, rgb(231 237 247 / 44%), transparent 25%),
    #edf2f8;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.section-heading p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.category-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 520px;
}

.category-pill {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgb(255 255 255 / 70%);
  font-size: 10px;
}

.category-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--category-color, var(--blue));
}

.category-pill strong {
  color: var(--ink);
  font-size: 11px;
}

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

.issue-card {
  position: relative;
  display: flex;
  min-height: 235px;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
  border: 1px solid #dbe3ee;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 6px 19px rgb(30 49 78 / 5%);
  cursor: pointer;
  transition:
    transform 170ms ease,
    box-shadow 170ms ease,
    border-color 170ms ease;
}

.issue-card::after {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: var(--category-color, var(--blue));
  opacity: 0.78;
  content: "";
}

.issue-card:hover {
  border-color: #c4d0e0;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.issue-card:focus-visible {
  outline: 3px solid rgb(57 114 246 / 25%);
  outline-offset: 3px;
}

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

.issue-id {
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.issue-category {
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--category-color, var(--blue));
  background: var(--category-bg, var(--blue-soft));
  font-size: 9px;
  font-weight: 700;
}

.issue-card h3 {
  margin: 17px 0 7px;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.matrix-line {
  margin: 0;
  color: var(--category-color, var(--blue));
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 600;
}

.issue-reason {
  display: -webkit-box;
  margin: 14px 0 0;
  overflow: hidden;
  color: #68758a;
  font-size: 11px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.issue-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 17px;
}

.author-mini {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #7b879a;
  font-size: 10px;
}

.avatar {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #d9e1ec;
  border-radius: 50%;
  color: #53647e;
  background: #f1f5fa;
  font-size: 8px;
  font-weight: 800;
}

.view-link {
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
}

.correction-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding: 23px 25px;
  border: 1px solid #bee3d6;
  border-radius: var(--radius-md);
  background: linear-gradient(120deg, #f4fffb, #e9f8f2);
}

.correction-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--mint);
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgb(40 177 138 / 22%);
}

.correction-label {
  color: #328a70;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.correction-banner h3 {
  margin: 2px 0 5px;
  font-size: 15px;
}

.correction-banner p {
  margin: 0;
  color: #5b756d;
  font-size: 11px;
}

.correction-banner .correction-caveat {
  margin-top: 3px;
  color: #82938e;
  font-size: 9px;
}

.secondary-button {
  min-height: 38px;
  color: #23765f;
  background: #d8f2e8;
  box-shadow: none;
  font-size: 10px;
}

.secondary-button:hover {
  color: #fff;
  background: var(--mint);
}

.all-section {
  padding: 105px 0 115px;
}

.all-heading {
  margin-bottom: 26px;
}

.result-count {
  min-width: 100px;
  text-align: right;
}

.result-count strong {
  color: var(--blue);
  font-size: 25px;
  font-weight: 650;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, 155px) auto;
  gap: 9px;
  margin-bottom: 15px;
}

.search-field {
  position: relative;
}

.search-field > span:not(.sr-only) {
  position: absolute;
  top: 50%;
  left: 14px;
  color: #8491a4;
  font-size: 19px;
  transform: translateY(-52%);
}

.filter-bar input,
.filter-bar select,
.clear-button {
  width: 100%;
  height: 43px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  font-size: 11px;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.filter-bar input {
  padding: 0 14px 0 40px;
}

.filter-bar select {
  padding: 0 34px 0 12px;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #86a9f8;
  box-shadow: 0 0 0 3px rgb(57 114 246 / 12%);
}

.clear-button {
  width: auto;
  padding-inline: 14px;
  color: #66758b;
  background: transparent;
}

.clear-button:hover {
  border-color: #aebbd0;
  color: var(--ink);
  background: #fff;
}

.table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

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

th,
td {
  padding: 14px 17px;
  border-bottom: 1px solid #e9eef4;
  text-align: left;
}

th {
  color: #7b889c;
  background: #f8fafc;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: #617087;
  font-size: 11px;
}

tbody tr {
  transition: background 140ms ease;
}

tbody tr:hover {
  background: #f8faff;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.task-cell {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

.task-cell::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-color, var(--mint));
  content: "";
}

.topic-cell {
  max-width: 390px;
  color: #35445c;
  font-weight: 550;
}

.type-chip,
.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 23px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
}

.type-chip.bugfix {
  color: #776125;
  background: var(--amber-soft);
}

.type-chip.feature {
  color: #5f51a5;
  background: var(--purple-soft);
}

.type-chip.refactor {
  color: #2f6699;
  background: #e8f3ff;
}

.status-chip.passed {
  color: #237c62;
  background: var(--mint-soft);
}

.status-chip.failed {
  color: #b65146;
  background: var(--coral-soft);
}

.status-chip.notice {
  color: #8a651c;
  background: var(--amber-soft);
}

.author-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.author-cell:hover {
  color: var(--blue);
}

.table-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #74849a;
  font-size: 10px;
}

button.table-action {
  padding: 0;
  border: 0;
  background: none;
}

.table-action:hover {
  color: var(--blue);
}

.empty-state {
  padding: 70px 20px;
  text-align: center;
}

.empty-state span {
  display: block;
  color: #b0bccb;
  font-size: 31px;
}

.empty-state strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
}

.empty-state p {
  margin: 5px 0 0;
  color: #8e9aab;
  font-size: 11px;
}

footer {
  color: #a7b6ca;
  background: var(--navy);
}

.footer-inner {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner strong {
  color: #e9eff8;
  font-size: 13px;
}

.footer-inner p {
  margin: 5px 0 0;
  color: #657c99;
  font-size: 10px;
}

.footer-links {
  display: flex;
  gap: 25px;
  color: #91a4bd;
  font-size: 10px;
}

.footer-links a:hover {
  color: #fff;
}

.task-dialog {
  width: min(650px, calc(100% - 30px));
  max-height: min(780px, calc(100vh - 40px));
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 20px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 40px 100px rgb(8 22 42 / 30%);
}

.task-dialog::backdrop {
  background: rgb(9 23 41 / 68%);
  backdrop-filter: blur(5px);
}

.dialog-shell {
  position: relative;
  padding: 31px;
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #6f7d91;
  background: #f8fafc;
  font-size: 20px;
}

.dialog-close:hover {
  color: var(--ink);
  background: #eef2f7;
}

.dialog-eyebrow {
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.dialog-title-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.dialog-title-row h2 {
  margin: 0;
  color: var(--ink);
  font-size: 25px;
  letter-spacing: -0.035em;
}

.dialog-topic {
  margin: 8px 42px 0 0;
  color: #5c6a7e;
  font-size: 13px;
}

.dialog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 19px;
}

.dialog-panel {
  margin-top: 23px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8fafc;
}

.dialog-panel.matrix-panel {
  border-color: var(--dialog-color, #d9e1eb);
  background: var(--dialog-bg, #f8fafc);
}

.dialog-panel small,
.dialog-section small {
  display: block;
  margin-bottom: 6px;
  color: #8592a5;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dialog-panel strong {
  color: var(--dialog-color, var(--ink));
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.dialog-section {
  margin-top: 23px;
}

.dialog-section p {
  margin: 0;
  color: #59677a;
  font-size: 12px;
  line-height: 1.75;
}

.action-box {
  padding: 17px 18px;
  border-left: 3px solid var(--blue);
  border-radius: 0 10px 10px 0;
  background: var(--blue-soft);
}

.dialog-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.dialog-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: #526178;
  background: #fff;
  font-size: 10px;
  font-weight: 650;
}

.dialog-links a:first-child {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.dialog-links a:hover {
  transform: translateY(-1px);
}

@media (max-width: 1050px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 55px;
  }

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

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

  .filter-bar {
    grid-template-columns: minmax(240px, 1fr) repeat(2, 145px);
  }

  .filter-bar label:nth-of-type(4) {
    grid-column: 1 / 2;
  }
}

@media (max-width: 800px) {
  .hero {
    min-height: auto;
  }

  .snapshot-chip {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 55px;
    padding-top: 75px;
  }

  .hero-copy {
    text-align: center;
  }

  .eyebrow,
  .hero-buttons,
  .updated-line {
    justify-content: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .readiness-card {
    width: min(100%, 430px);
    margin-inline: auto;
  }

  .metrics-section {
    margin-top: -35px;
  }

  .criterion-flow {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .section-heading,
  .criterion-label {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-summary {
    justify-content: flex-start;
  }

  .correction-banner {
    grid-template-columns: auto 1fr;
  }

  .correction-banner .secondary-button {
    grid-column: 2;
    justify-self: start;
  }

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

  .search-field {
    grid-column: 1 / -1;
  }

  .filter-bar label:nth-of-type(4) {
    grid-column: auto;
  }

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

  table {
    min-width: 850px;
  }
}

@media (max-width: 580px) {
  .shell {
    width: min(calc(100% - 26px), var(--shell));
  }

  .topbar {
    min-height: 74px;
  }

  .ghost-button {
    width: 39px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .ghost-button span {
    font-size: 13px;
  }

  .hero-content {
    padding: 60px 0 93px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero-buttons {
    align-items: stretch;
    flex-direction: column;
    gap: 15px;
  }

  .metrics-section,
  .issue-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 128px;
  }

  .criterion-section,
  .issues-section,
  .all-section {
    padding-top: 75px;
    padding-bottom: 75px;
  }

  .correction-banner {
    grid-template-columns: 1fr;
  }

  .correction-banner .secondary-button {
    grid-column: 1;
  }

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

  .search-field {
    grid-column: auto;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .dialog-shell {
    padding: 25px 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
