:root {
  color-scheme: light;
  --ink: #182334;
  --muted: #6e7b8e;
  --faint: #a4afbe;
  --line: #e5e9ee;
  --line-strong: #d6dce4;
  --paper: #ffffff;
  --canvas: #f4f6f8;
  --navy: #111827;
  --navy-2: #182337;
  --navy-3: #26334a;
  --green: #16815b;
  --green-soft: #e7f6ef;
  --amber: #a66708;
  --amber-soft: #fff5dc;
  --red: #c83c3c;
  --red-soft: #fff0ef;
  --blue: #3c67ca;
  --blue-soft: #ebf1ff;
  --shadow: 0 22px 50px rgba(17, 24, 39, 0.1);
  --shadow-soft: 0 8px 20px rgba(17, 24, 39, 0.06);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--navy);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.review-shell {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--canvas);
}

.review-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  color: #e8edf5;
  background: var(--navy);
}

.review-sidebar::after {
  position: absolute;
  right: -80px;
  bottom: 32px;
  width: 220px;
  height: 220px;
  content: "";
  border: 1px solid rgba(147, 167, 202, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(147, 167, 202, 0.035), 0 0 0 56px rgba(147, 167, 202, 0.025);
  pointer-events: none;
}

.review-sidebar-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 22px 20px;
}

.review-eyebrow,
.topbar-kicker,
.app-kicker,
.screen-kicker,
.inspector-kicker,
.mini-label {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.review-sidebar .review-eyebrow {
  color: #8292ad;
}

.review-title {
  margin: 6px 0 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.review-version {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  color: #9aabc7;
  border: 1px solid #33425b;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-sidebar-copy {
  margin: 0 22px 18px;
  color: #8e9db4;
  font-size: 12px;
  line-height: 1.55;
}

.app-switcher {
  display: grid;
  gap: 6px;
  padding: 0 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-switcher button,
.flow-button,
.state-button,
.mode-button,
.icon-button,
.outline-button,
.primary-button,
.quiet-button,
.link-button {
  border: 0;
  background: none;
}

.app-switcher button {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  color: #a9b5c8;
  border-radius: 10px;
  text-align: left;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.app-switcher button:hover,
.app-switcher button:focus-visible {
  color: #ffffff;
  background: #1e2a3e;
  outline: none;
}

.app-switcher button.is-selected {
  color: #ffffff;
  background: #26334a;
}

.app-switcher button:active,
.flow-button:active,
.state-button:active,
.mode-button:active,
.primary-button:active,
.outline-button:active {
  transform: translateY(1px);
}

.app-mark,
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #ffffff;
  background: var(--accent, var(--blue));
  border-radius: 8px 8px 8px 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
}

.app-switcher strong {
  display: block;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
}

.app-switcher small {
  display: block;
  margin-top: 2px;
  color: #7e8ca4;
  font-size: 10px;
}

.app-switcher button.is-selected small {
  color: #aebbd0;
}

.app-switcher .switcher-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 17%, transparent);
}

.flow-list {
  flex: 1;
  padding: 17px 12px 34px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #33425b transparent;
}

.flow-search {
  padding: 0 10px 10px;
}

.flow-search input {
  width: 100%;
  height: 29px;
  padding: 0 8px;
  color: #dfe7f2;
  background: #1a2537;
  border: 1px solid #33425b;
  border-radius: 6px;
  font-size: 10px;
  outline: none;
}

.flow-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.flow-groups {
  min-width: 0;
}

.flow-list-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 10px 10px;
  color: #6f809c;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flow-list-heading span:last-child {
  color: #52637f;
  font-variant-numeric: tabular-nums;
}

.flow-group {
  margin: 0 0 14px;
}

.flow-group:last-child {
  margin-bottom: 0;
}

.flow-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 5px 10px 6px;
  color: #c8d2e2;
  font-size: 11px;
  font-weight: 700;
}

.flow-number {
  color: var(--accent, var(--blue));
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.flow-heading small {
  margin-left: auto;
  color: #5e6e89;
  font-size: 10px;
  font-weight: 600;
}

.flow-button {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  width: 100%;
  padding: 6px 10px;
  color: #8291a8;
  border-radius: 7px;
  text-align: left;
  transition: background 160ms ease, color 160ms ease;
}

.flow-button:hover,
.flow-button:focus-visible {
  color: #edf2f9;
  background: #1c2739;
  outline: none;
}

.flow-button.is-selected {
  color: #ffffff;
  background: #2a3850;
}

.flow-button.is-unavailable {
  opacity: 0.48;
}

.flow-button .flow-status {
  width: 6px;
  height: 6px;
  border: 1px solid #62718a;
  border-radius: 50%;
}

.flow-button.is-selected .flow-status {
  border-color: var(--accent);
  background: var(--accent);
}

.flow-button span:nth-child(2) {
  overflow: hidden;
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-button small {
  color: #5e6e89;
  font-size: 9px;
}

.review-main {
  min-width: 0;
  min-height: 100vh;
  background: var(--canvas);
}

.review-topbar {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 34px;
  background: rgba(244, 246, 248, 0.92);
  border-bottom: 1px solid var(--line);
}

.topbar-title {
  min-width: 0;
}

.topbar-title h1 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.topbar-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mode-switcher {
  display: flex;
  align-items: center;
  padding: 3px;
  background: #e9edf1;
  border-radius: 8px;
}

.mode-button {
  min-height: 27px;
  padding: 0 9px;
  color: var(--muted);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

.mode-button:hover,
.mode-button:focus-visible {
  color: var(--ink);
  outline: none;
}

.mode-button.is-active {
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.09);
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 29px;
  padding: 0 10px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 7px;
  font-size: 10px;
  font-weight: 750;
}

.topbar-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.review-content {
  max-width: 1640px;
  margin: 0 auto;
  padding: 25px 34px 44px;
}

.coverage-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 23px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.coverage-item {
  min-width: 0;
  padding: 15px 18px 14px;
  border-right: 1px solid var(--line);
}

.coverage-item:last-child {
  border-right: 0;
}

.coverage-item strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.coverage-item span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-meta-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.review-meta-row h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 780;
  letter-spacing: -0.035em;
}

.review-meta-row p {
  max-width: 680px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.screen-route {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: 330px;
  padding: 0 10px;
  overflow: hidden;
  color: var(--muted);
  background: #edf0f3;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.screen-workspace > * {
  min-width: 0;
}

.app-frame {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid #dce2e9;
  border-radius: 15px;
  box-shadow: var(--shadow);
  animation: frame-enter 330ms cubic-bezier(0.22, 0.75, 0.25, 1) both;
}

@keyframes frame-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.app-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 33px;
  padding: 0 13px;
  background: #fafbfc;
  border-bottom: 1px solid var(--line);
}

.browser-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cdd5df;
}

.browser-path {
  flex: 1;
  min-width: 0;
  margin-left: 8px;
  overflow: hidden;
  color: #9aa5b3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-app {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 720px;
  background: #f8fafb;
}

.mock-nav {
  display: flex;
  flex-direction: column;
  padding: 17px 11px;
  background: #ffffff;
  border-right: 1px solid var(--line);
}

.mock-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 2px 9px 20px;
}

.mock-brand .brand-mark {
  width: 27px;
  height: 27px;
  border-radius: 7px 7px 7px 2px;
  font-size: 14px;
}

.mock-brand strong {
  font-size: 13px;
  font-weight: 800;
}

.mock-brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.mock-nav-section {
  margin: 12px 9px 5px;
  color: #9da8b6;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.mock-nav-link {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 31px;
  padding: 0 9px;
  color: #728093;
  border-radius: 6px;
  font-size: 10px;
  text-decoration: none;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.mock-nav-link:hover {
  color: var(--ink);
  background: #f1f4f7;
  transform: translateX(2px);
}

.mock-nav-link.is-current {
  color: var(--ink);
  background: var(--accent-soft);
  font-weight: 750;
}

.nav-glyph {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: currentColor;
  font-size: 11px;
  font-weight: 800;
}

.mock-nav-bottom {
  margin-top: auto;
  padding: 11px 9px 0;
  color: #9aa5b3;
  border-top: 1px solid var(--line);
  font-size: 9px;
  line-height: 1.45;
}

.mock-content {
  min-width: 0;
  padding: 26px 31px 34px;
  background: #f8fafb;
}

.mock-content.public-content {
  grid-column: 1 / -1;
  padding: 0;
}

.screen-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.screen-heading h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.screen-heading p {
  max-width: 620px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.heading-actions,
.inline-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.primary-button,
.outline-button,
.quiet-button,
.link-button {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.primary-button {
  color: #ffffff;
  background: var(--accent);
}

.primary-button:hover {
  filter: brightness(0.94);
}

.outline-button {
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line-strong);
}

.outline-button:hover,
.quiet-button:hover {
  background: #f0f3f6;
  border-color: #bbc5d1;
}

.quiet-button {
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
}

.link-button {
  min-height: 24px;
  padding: 0;
  color: var(--accent);
  background: transparent;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.icon-button:hover {
  color: var(--ink);
  background: #ffffff;
}

.section,
.metric-grid,
.stat-grid,
.split-section,
.form-section,
.list-section,
.status-overview,
.notice-box {
  margin-bottom: 15px;
}

.section,
.form-section,
.list-section,
.status-overview {
  padding: 17px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.section-heading,
.section-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-heading h3,
.section-topline h3,
.section h3,
.form-section h3 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: -0.015em;
}

.section-heading p,
.section-topline p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.muted {
  color: var(--muted);
}

.tiny {
  color: var(--muted);
  font-size: 9px;
}

.stat-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.metric {
  min-width: 0;
  padding: 13px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric .metric-label {
  display: block;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.3;
}

.metric strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.metric .metric-note {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 9px;
}

.split-section {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 15px;
}

.split-section > .section {
  margin-bottom: 0;
}

.status-pill,
.badge,
.scenario-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 21px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 780;
  white-space: nowrap;
}

.status-pill::before,
.badge::before,
.scenario-pill::before {
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: currentColor;
}

.tone-success {
  color: var(--green);
  background: var(--green-soft);
}

.tone-warning {
  color: var(--amber);
  background: var(--amber-soft);
}

.tone-critical {
  color: var(--red);
  background: var(--red-soft);
}

.tone-info {
  color: var(--blue);
  background: var(--blue-soft);
}

.tone-neutral {
  color: #69778a;
  background: #eef1f4;
}

.notice-box {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  color: #5c4b20;
  background: var(--amber-soft);
  border: 1px solid #f0dfb5;
  border-radius: 7px;
  font-size: 10px;
  line-height: 1.5;
}

.notice-box.critical {
  color: #8f2e2e;
  background: var(--red-soft);
  border-color: #f2c8c5;
}

.notice-box.success {
  color: #176746;
  background: var(--green-soft);
  border-color: #c7e8d8;
}

.notice-box.info {
  color: #31579e;
  background: var(--blue-soft);
  border-color: #ccd9fa;
}

.notice-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
}

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

.data-table th {
  padding: 9px 10px;
  color: #8a97a7;
  background: #fbfcfd;
  border-bottom: 1px solid var(--line);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.data-table td {
  padding: 10px;
  color: #526174;
  border-bottom: 1px solid #edf0f3;
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tr:hover td {
  background: #fcfdfe;
}

.data-table strong {
  display: block;
  color: var(--ink);
  font-size: 10px;
  font-weight: 750;
}

.data-table small {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-size: 9px;
}

.filter-row,
.tabs-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 13px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar,
.tabs-row::-webkit-scrollbar {
  display: none;
}

.fake-input,
.fake-select {
  display: flex;
  min-height: 30px;
  align-items: center;
  min-width: 105px;
  padding: 0 9px;
  color: #788698;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-size: 9px;
}

.fake-input.search {
  flex: 1;
  min-width: 150px;
}

.fake-input.search::before {
  margin-right: 6px;
  color: #a1acb9;
  content: "⌕";
  font-size: 14px;
}

.tab-link {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  padding: 0 10px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.tab-link:hover {
  color: var(--ink);
}

.tab-link.is-current {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 25px;
  text-align: center;
}

.empty-illustration {
  position: relative;
  width: 90px;
  height: 72px;
  margin-bottom: 14px;
}

.empty-illustration .paper {
  position: absolute;
  top: 7px;
  left: 22px;
  width: 47px;
  height: 58px;
  background: #ffffff;
  border: 2px solid #bfccd9;
  border-radius: 4px;
  transform: rotate(-5deg);
}

.empty-illustration .paper::before,
.empty-illustration .paper::after {
  position: absolute;
  left: 9px;
  width: 25px;
  height: 3px;
  content: "";
  background: #d6dfe8;
  border-radius: 3px;
}

.empty-illustration .paper::before {
  top: 18px;
}

.empty-illustration .paper::after {
  top: 29px;
  width: 17px;
}

.empty-illustration .circle {
  position: absolute;
  right: 7px;
  bottom: 1px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
}

.empty-state h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.empty-state p {
  max-width: 380px;
  margin: 6px auto 15px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.progress-list,
.check-list,
.activity-list,
.issue-list,
.setting-list,
.timeline-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress-row,
.check-row,
.activity-row,
.issue-row,
.setting-row,
.timeline-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 7px 0;
  border-bottom: 1px solid #edf0f3;
}

.progress-row:last-child,
.check-row:last-child,
.activity-row:last-child,
.issue-row:last-child,
.setting-row:last-child,
.timeline-row:last-child {
  border-bottom: 0;
}

.row-icon,
.step-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--muted);
  background: #f0f3f6;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}

.row-icon.success,
.step-icon.success {
  color: var(--green);
  background: var(--green-soft);
}

.row-icon.warning,
.step-icon.warning {
  color: var(--amber);
  background: var(--amber-soft);
}

.row-icon.critical,
.step-icon.critical {
  color: var(--red);
  background: var(--red-soft);
}

.progress-row strong,
.check-row strong,
.activity-row strong,
.issue-row strong,
.setting-row strong,
.timeline-row strong {
  display: block;
  color: var(--ink);
  font-size: 10px;
  font-weight: 750;
}

.progress-row small,
.check-row small,
.activity-row small,
.issue-row small,
.setting-row small,
.timeline-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

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

.field {
  min-width: 0;
}

.field.is-wide {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 5px;
  color: #4f5e71;
  font-size: 9px;
  font-weight: 750;
}

.field input,
.field textarea,
.field select,
.fake-control {
  display: block;
  width: 100%;
  min-height: 32px;
  padding: 7px 9px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-size: 10px;
  outline: none;
}

.field textarea {
  min-height: 65px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent);
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: #dc6b66;
  background: #fffafa;
}

.field-error {
  display: block;
  margin-top: 4px;
  color: var(--red);
  font-size: 9px;
  line-height: 1.35;
}

.field-help {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 8px;
  line-height: 1.4;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 47px;
  padding: 7px 0;
  border-bottom: 1px solid #edf0f3;
}

.toggle-row:last-child {
  border-bottom: 0;
}

.toggle-track {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 18px;
  background: #d7dde5;
  border-radius: 99px;
}

.toggle-track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  content: "";
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.2);
  transition: transform 160ms ease;
}

.toggle-track.is-on {
  background: var(--accent);
}

.toggle-track.is-on::after {
  transform: translateX(12px);
}

.stepper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 17px;
}

.stepper-item {
  position: relative;
  min-width: 0;
  padding: 9px 5px 7px;
  color: #9aa6b4;
  border-top: 3px solid #e0e5eb;
}

.stepper-item.is-current {
  color: var(--ink);
  border-color: var(--accent);
}

.stepper-item.is-complete {
  color: var(--green);
  border-color: #68b996;
}

.stepper-item strong,
.stepper-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stepper-item strong {
  font-size: 9px;
  font-weight: 780;
}

.stepper-item small {
  margin-top: 3px;
  font-size: 8px;
}

.journey-layout {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
}

.journey-nav {
  display: grid;
  align-content: start;
  gap: 3px;
}

.journey-nav button {
  padding: 8px 8px;
  color: var(--muted);
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  font-size: 9px;
  text-align: left;
}

.journey-nav button:hover,
.journey-nav button.is-current {
  color: var(--ink);
  border-left-color: var(--accent);
  background: #f3f6fa;
}

.journey-nav button.is-complete {
  color: var(--green);
}

.review-inspector {
  position: sticky;
  top: 20px;
  padding: 17px;
  background: #1a2537;
  border-radius: 12px;
  color: #e7edf6;
  box-shadow: var(--shadow-soft);
}

.review-inspector .inspector-kicker {
  color: #8091ad;
}

.review-inspector h3 {
  margin: 5px 0 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.inspector-description {
  margin: 7px 0 16px;
  color: #9babc1;
  font-size: 10px;
  line-height: 1.5;
}

.inspector-divider {
  height: 1px;
  margin: 14px 0;
  background: rgba(255, 255, 255, 0.09);
}

.inspector-label {
  margin: 0 0 7px;
  color: #8292ad;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.state-rail {
  display: grid;
  gap: 4px;
}

.state-button {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 29px;
  padding: 0 7px;
  color: #99a8bd;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 10px;
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.state-button:hover,
.state-button:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.state-button.is-current {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.13);
}

.state-button .state-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #71809a;
}

.state-button[data-tone="success"] .state-dot {
  background: #5cca9a;
}

.state-button[data-tone="warning"] .state-dot {
  background: #f0bd57;
}

.state-button[data-tone="critical"] .state-dot {
  background: #f27d75;
}

.state-button[data-tone="info"] .state-dot {
  background: #86a6ff;
}

.inspector-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.inspector-list li {
  position: relative;
  padding-left: 12px;
  color: #a7b5c8;
  font-size: 10px;
  line-height: 1.4;
}

.inspector-list li::before {
  position: absolute;
  top: 5px;
  left: 0;
  width: 4px;
  height: 4px;
  content: "";
  background: var(--accent);
  border-radius: 50%;
}

.inspector-note {
  margin: 14px 0 0;
  padding: 10px;
  color: #8e9eb4;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  font-size: 9px;
  line-height: 1.45;
}

.inspector-note strong {
  display: block;
  margin-bottom: 3px;
  color: #d3ddeb;
  font-size: 9px;
}

.state-caption {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: -4px 0 15px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.state-caption .scenario-pill {
  flex: 0 0 auto;
}

.public-entry {
  min-height: 686px;
  background: #fbfcfd;
}

.public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--line);
}

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

.public-brand strong {
  font-size: 13px;
  font-weight: 800;
}

.public-brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.public-header nav {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.public-header nav a {
  text-decoration: none;
}

.public-header nav a:hover {
  color: var(--ink);
}

.public-hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
  align-items: center;
  min-height: 490px;
  padding: 44px 11%;
}

.public-hero-copy {
  max-width: 385px;
}

.public-hero h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(29px, 4vw, 47px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.public-hero p {
  max-width: 350px;
  margin: 15px 0 19px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.public-hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 270px;
}

.public-hero-art::before {
  position: absolute;
  width: 240px;
  height: 240px;
  content: "";
  background: var(--accent-soft);
  border-radius: 44% 56% 62% 38%;
  transform: rotate(-10deg);
}

.art-document {
  position: relative;
  width: 166px;
  height: 207px;
  padding: 27px 19px;
  background: #ffffff;
  border: 1px solid #ccd6e1;
  border-radius: 8px;
  box-shadow: 15px 18px 0 rgba(255, 255, 255, 0.74), 0 18px 30px rgba(36, 56, 84, 0.14);
  transform: rotate(5deg);
}

.art-document::before,
.art-document::after {
  display: block;
  width: 100%;
  height: 6px;
  margin-bottom: 14px;
  content: "";
  background: #dce4ed;
  border-radius: 5px;
}

.art-document::after {
  width: 72%;
  margin-bottom: 25px;
}

.art-document span {
  display: block;
  width: 100%;
  height: 4px;
  margin-bottom: 11px;
  background: #e8edf2;
  border-radius: 5px;
}

.art-document span:last-child {
  width: 55%;
  margin-top: 19px;
  background: var(--accent);
}

.public-footer-note {
  padding: 14px 11%;
  color: #8a97a6;
  background: #f4f6f8;
  border-top: 1px solid var(--line);
  font-size: 9px;
  line-height: 1.45;
}

.public-panel {
  max-width: 480px;
  margin: 70px auto;
  padding: 27px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.public-panel h2 {
  margin: 6px 0 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.public-panel > p {
  margin: 7px 0 20px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.public-panel .field-grid {
  grid-template-columns: 1fr;
}

.resource-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 43px 42px 56px;
}

.resource-page h2 {
  margin: 6px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.resource-page .resource-intro {
  margin: 10px 0 25px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.resource-block {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.resource-block h3 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 780;
}

.resource-block p,
.resource-block li {
  color: #637185;
  font-size: 10px;
  line-height: 1.65;
}

.resource-block ul {
  margin: 7px 0 0;
  padding-left: 17px;
}

.error-full {
  display: grid;
  place-items: center;
  min-height: 620px;
  padding: 30px;
  text-align: center;
}

.error-code {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 78px;
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.error-full h2 {
  margin: 17px 0 7px;
  font-size: 19px;
  font-weight: 800;
}

.error-full p {
  max-width: 350px;
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.coverage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

.coverage-table td {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}

.coverage-table tr:last-child td {
  border-bottom: 0;
}

.coverage-table td:first-child {
  width: 48%;
  color: #8797ae;
}

.coverage-table td:last-child {
  color: #d5deea;
  font-weight: 700;
  text-align: right;
}

.pill-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

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

.mini-card {
  padding: 11px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.mini-card strong {
  display: block;
  color: var(--ink);
  font-size: 10px;
  font-weight: 760;
}

.mini-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.code-line {
  display: inline-block;
  padding: 4px 6px;
  color: #6c4e21;
  background: #fff6e2;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
}

.setup-summary {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.setup-summary-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #edf0f3;
}

.setup-summary-row:last-child {
  border-bottom: 0;
}

.setup-summary-row > span:first-child {
  color: var(--muted);
  font-size: 9px;
}

.setup-summary-row strong {
  font-size: 10px;
  font-weight: 750;
}

.state-demo-masked {
  color: #8794a6;
  letter-spacing: 0.14em;
}

.footer-key {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: var(--faint);
  font-size: 9px;
}

.footer-key kbd {
  padding: 2px 5px;
  color: #68778b;
  background: #edf0f3;
  border: 1px solid #dfe4ea;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  font-size: 8px;
}

.no-results {
  padding: 22px;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
}

.noscript-message {
  max-width: 480px;
  margin: 80px auto;
  padding: 30px;
  color: #ffffff;
  background: var(--navy-2);
  border-radius: 12px;
}

@media (max-width: 1240px) {
  .screen-workspace {
    grid-template-columns: minmax(0, 1fr) 255px;
  }

  .mock-content {
    padding-right: 23px;
    padding-left: 23px;
  }

  .public-hero {
    padding-right: 8%;
    padding-left: 8%;
  }
}

@media (max-width: 1080px) {
  .review-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .screen-workspace {
    grid-template-columns: 1fr;
  }

  .review-inspector {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.8fr);
    gap: 0 22px;
  }

  .review-inspector .inspector-divider,
  .review-inspector .inspector-note {
    grid-column: 1 / -1;
  }

  .review-inspector .state-rail {
    grid-column: 1;
  }

  .review-inspector .inspector-label:nth-of-type(2),
  .review-inspector .inspector-list {
    grid-column: 2;
    grid-row: 2 / span 2;
  }
}

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

  .review-sidebar {
    position: static;
    height: auto;
    max-height: none;
  }

  .review-sidebar::after {
    display: none;
  }

  .review-sidebar-top {
    padding: 18px 20px 12px;
  }

  .review-sidebar-copy {
    margin-bottom: 12px;
  }

  .app-switcher {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: 13px;
  }

  .app-switcher button {
    grid-template-columns: 28px 1fr;
  }

  .app-switcher .switcher-dot {
    display: none;
  }

  .flow-list {
    display: block;
    padding: 13px 16px 16px;
    overflow: visible;
  }

  .flow-groups {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #33425b transparent;
  }

  .flow-group {
    flex: 0 0 190px;
    margin-bottom: 14px;
  }

  .review-topbar {
    padding: 15px 20px;
  }

  .review-content {
    padding: 20px;
  }

  .coverage-strip {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    overflow-x: auto;
  }

  .coverage-item {
    min-width: 120px;
  }

  .screen-route {
    max-width: 240px;
  }
}

@media (max-width: 620px) {
  .review-sidebar-top {
    align-items: center;
  }

  .review-title {
    font-size: 21px;
  }

  .review-version {
    display: none;
  }

  .app-switcher button {
    grid-template-columns: 26px 1fr;
    padding: 7px 6px;
  }

  .app-switcher button small {
    display: none;
  }

  .app-switcher strong {
    font-size: 10px;
  }

  .flow-group {
    flex-basis: 180px;
    margin-bottom: 13px;
  }

  .review-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .review-content {
    padding: 17px 12px 30px;
  }

  .coverage-strip {
    margin-right: -1px;
    margin-left: -1px;
  }

  .review-meta-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .review-meta-row h2 {
    font-size: 18px;
  }

  .screen-route {
    max-width: 100%;
  }

  .app-frame {
    border-radius: 10px;
  }

  .mock-app {
    display: block;
    min-height: 0;
  }

  .mock-nav {
    display: block;
    padding: 10px 12px 8px;
    overflow-x: auto;
    white-space: nowrap;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mock-brand {
    display: inline-flex;
    padding: 0 13px 0 0;
    vertical-align: middle;
  }

  .mock-nav-section,
  .mock-nav-bottom {
    display: none;
  }

  .mock-nav-link {
    display: inline-grid;
    grid-template-columns: 15px auto;
    width: auto;
    min-height: 28px;
    margin-right: 3px;
    padding: 0 7px;
    vertical-align: middle;
  }

  .mock-content {
    padding: 19px 13px 25px;
  }

  .screen-heading {
    display: block;
  }

  .screen-heading h2 {
    font-size: 19px;
  }

  .heading-actions {
    margin-top: 12px;
  }

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

  .split-section,
  .journey-layout {
    grid-template-columns: 1fr;
  }

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

  .field.is-wide {
    grid-column: auto;
  }

  .stepper {
    display: flex;
    overflow-x: auto;
  }

  .stepper-item {
    flex: 0 0 94px;
  }

  .review-inspector {
    display: block;
  }

  .review-inspector .inspector-label:nth-of-type(2),
  .review-inspector .inspector-list {
    display: block;
  }

  .public-header {
    padding: 15px 18px;
  }

  .public-header nav {
    display: none;
  }

  .public-hero {
    grid-template-columns: 1fr;
    min-height: 590px;
    padding: 38px 23px 28px;
  }

  .public-hero-art {
    min-height: 230px;
  }

  .public-footer-note {
    padding: 13px 23px;
  }

  .public-panel {
    margin: 35px 14px;
    padding: 20px;
  }

  .resource-page {
    padding: 28px 20px 40px;
  }

  .resource-page h2 {
    font-size: 27px;
  }

  .mini-card-grid {
    grid-template-columns: 1fr;
  }

  .setup-summary-row {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .setup-summary-row .status-pill {
    grid-column: 2;
    justify-self: start;
  }
}

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