:root {
  color-scheme: light;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  --ink-950: #08111f;
  --ink-900: #0c1728;
  --ink-850: #101d31;
  --ink-800: #16243a;
  --ink-700: #2b3b52;

  --blue-700: #1957d2;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dce9ff;
  --blue-50: #eef5ff;

  --slate-700: #415269;
  --slate-600: #5c6d82;
  --slate-500: #76869a;
  --slate-300: #cbd5e1;
  --slate-200: #dde5ee;
  --slate-100: #edf2f7;
  --slate-50: #f6f8fb;

  --white: #ffffff;
  --success: #177653;
  --success-soft: #e6f6ef;
  --danger: #a12626;
  --danger-soft: #fff0f0;

  --shadow-sm: 0 1px 2px rgba(8, 17, 31, .06);
  --shadow-md: 0 14px 38px rgba(8, 17, 31, .08);
  --shadow-lg: 0 26px 80px rgba(8, 17, 31, .16);

  color: var(--ink-900);
  background: var(--slate-50);
  line-height: 1.55;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--slate-50);
  color: var(--ink-900);
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: var(--blue-600);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
strong {
  letter-spacing: -.015em;
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.7rem);
  line-height: 1.04;
}

h2 {
  line-height: 1.15;
}

small {
  color: var(--slate-600);
}

.eyebrow {
  margin-bottom: .75rem;
  color: var(--blue-600);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .115em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #9fc1ff;
}

.muted {
  color: var(--slate-600);
}

.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 11px;
  object-fit: contain;
}

/* --------------------------------------------------------- */
/* Public shell                                             */
/* --------------------------------------------------------- */

.public-body {
  background:
    radial-gradient(
      circle at 70% -10%,
      rgba(61, 116, 238, .14),
      transparent 35%
    ),
    #f8fafc;
}

.public-header {
  position: relative;
  z-index: 10;
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.public-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: var(--ink-950);
  font-size: 1.12rem;
  font-weight: 850;
  text-decoration: none;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.public-nav > a:not(.button) {
  color: var(--slate-700);
  font-weight: 700;
  text-decoration: none;
}

.download-heading {
  max-width: 780px;
  padding-top: 4rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 2rem 0 1.25rem;
}

.release-card {
  margin-bottom: 1.25rem;
}

.release-facts {
  display: grid;
  gap: .75rem;
}

.release-facts div {
  display: grid;
  grid-template-columns: minmax(145px, .35fr) minmax(0, 1fr);
  gap: 1rem;
}

.release-facts dt {
  color: var(--slate-600);
  font-weight: 750;
}

.release-facts dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.module-list {
  columns: 2;
}

.public-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.public-notice {
  margin-top: 1rem;
}

.hero {
  display: grid;
  min-height: 690px;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
  padding: 5rem 0 7rem;
}

.hero-copy h1 {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.hero-lede {
  max-width: 670px;
  margin-bottom: 2rem;
  color: var(--slate-600);
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
}

.text-link {
  color: var(--slate-700);
  font-weight: 750;
  text-decoration: none;
}

.trust-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.trust-row span {
  padding: .5rem .75rem;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  color: var(--slate-600);
  font-size: .82rem;
  font-weight: 700;
}

.hero-product-card {
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, .9);
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
}

.preview-toolbar {
  display: flex;
  height: 56px;
  align-items: center;
  gap: .4rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--slate-200);
  background: #fbfcfe;
}

.preview-toolbar > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--slate-300);
}

.preview-toolbar strong {
  margin-left: .5rem;
  color: var(--slate-600);
  font-size: .8rem;
}

.preview-body {
  padding: 1.5rem;
}

.preview-score {
  padding: 1.5rem;
  border: 1px solid var(--blue-100);
  border-radius: 16px;
  background: var(--blue-50);
}

.preview-score small,
.preview-score span {
  display: block;
}

.preview-score strong {
  display: block;
  margin: .15rem 0;
  color: var(--blue-700);
  font-size: 2rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
  margin: 1rem 0;
}

.preview-grid div {
  padding: 1rem;
  border: 1px solid var(--slate-200);
  border-radius: 13px;
}

.preview-grid small,
.preview-grid strong {
  display: block;
}

.preview-report {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem;
  border: 1px solid var(--slate-200);
  border-radius: 13px;
}

.preview-report > span:nth-child(2) {
  display: grid;
  flex: 1;
}

.preview-report-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  background: var(--ink-900);
  color: white;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.feature-strip article {
  padding: 2.5rem;
}

.feature-strip article + article {
  border-left: 1px solid var(--slate-200);
}

.feature-number {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--blue-600);
  font-weight: 850;
}

/* --------------------------------------------------------- */
/* App shell                                                */
/* --------------------------------------------------------- */

.app-frame {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 248px minmax(0, 1fr);
}

.app-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 1.25rem 1rem;
  background:
    linear-gradient(
      180deg,
      var(--ink-950),
      #0e1930
    );
  color: white;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .35rem .5rem 1.6rem;
  color: white;
  text-decoration: none;
}

.sidebar-brand > span:last-child {
  display: grid;
}

.sidebar-brand strong {
  font-size: 1rem;
}

.sidebar-brand small {
  margin-top: .1rem;
  color: #8191aa;
  font-size: .68rem;
}

.sidebar-nav {
  display: grid;
  gap: .2rem;
}

.nav-label {
  margin: .6rem .65rem .45rem;
  color: #667894;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.nav-label-spaced {
  margin-top: 1.25rem;
}

.sidebar-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: .75rem;
  padding: .65rem .75rem;
  border-radius: 9px;
  color: #c9d4e5;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
}

.sidebar-nav a:hover {
  background: rgba(255,255,255,.07);
  color: white;
}

.nav-icon {
  display: grid;
  width: 22px;
  place-items: center;
  color: #8fb4ff;
  font-size: 1rem;
}

.sidebar-footer {
  display: grid;
  gap: .9rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
}

.user-chip {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .7rem;
}

.user-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #243b63;
  color: #d7e6ff;
  font-weight: 850;
}

.user-chip > span:last-child {
  display: grid;
  min-width: 0;
}

.user-chip strong,
.user-chip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip strong {
  font-size: .79rem;
}

.user-chip small {
  color: #7f91aa;
  font-size: .68rem;
}

.sidebar-logout {
  width: 100%;
  padding: .55rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: transparent;
  color: #aebcd0;
  cursor: pointer;
}

.sidebar-logout:hover {
  background: rgba(255,255,255,.06);
  color: white;
}

.app-content {
  min-width: 0;
}

.app-topbar {
  display: flex;
  min-height: 72px;
  align-items: center;
  padding: 0 clamp(1.5rem, 4vw, 3.75rem);
  border-bottom: 1px solid var(--slate-200);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
}

.topbar-kicker {
  margin: 0;
  color: var(--slate-500);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.topbar-title {
  margin: .08rem 0 0;
  font-size: .84rem;
  font-weight: 750;
}

.page-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 3.5rem 0 5rem;
}

.page-heading {
  margin-bottom: 2rem;
}

.page-heading h1 {
  max-width: 820px;
  margin-bottom: .8rem;
  font-size: clamp(2rem, 3.5vw, 3.15rem);
}

.page-heading p:not(.eyebrow) {
  max-width: 760px;
  color: var(--slate-600);
}

.heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

/* --------------------------------------------------------- */
/* Components                                               */
/* --------------------------------------------------------- */

.card {
  padding: 1.65rem;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  border-color: #c5d3e3;
}

.card-kicker {
  margin-bottom: .6rem;
  color: var(--blue-600);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.narrow-card {
  max-width: 620px;
  margin: 0 auto;
}

.form-card {
  max-width: 800px;
}

.workspace-grid,
.inventory-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(275px, 1fr));
  gap: 1rem;
}

.workspace-card {
  display: flex;
  flex-direction: column;
}

.workspace-card h2 {
  margin-bottom: .3rem;
}

.workspace-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.workspace-monogram {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 13px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 1.15rem;
  font-weight: 900;
}

.workspace-meta {
  display: grid;
  gap: .1rem;
  margin-top: auto;
  padding-top: 1.25rem;
}

.workspace-meta span {
  color: var(--slate-500);
  font-size: .72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 25px;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: .69rem;
  font-weight: 850;
}

.empty-state {
  display: grid;
  max-width: 680px;
  justify-items: start;
  padding: 3rem;
}

.empty-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 1.25rem;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 1.5rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  margin-top: 1.1rem;
  padding: .7rem 1.05rem;
  border: 1px solid var(--blue-600);
  border-radius: 9px;
  background: var(--blue-600);
  color: white;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(37, 99, 235, .16);
}

.button:hover {
  background: var(--blue-700);
  border-color: var(--blue-700);
}

.button-large {
  min-height: 52px;
  padding: .9rem 1.3rem;
}

.button-compact {
  min-height: 38px;
  margin: 0;
  padding: .55rem .85rem;
}

.button-full {
  width: 100%;
}

.button-outline {
  border-color: var(--slate-300);
  background: white;
  color: var(--ink-900);
  box-shadow: none;
}

.button-outline:hover {
  border-color: var(--slate-500);
  background: var(--slate-50);
  color: var(--ink-950);
}

.button-secondary,
.secondary {
  background: var(--slate-100);
  border-color: var(--slate-200);
  color: var(--ink-900);
  box-shadow: none;
}

.danger {
  border-color: var(--danger);
  background: var(--danger);
}

label {
  display: block;
  margin-bottom: .42rem;
  color: var(--ink-800);
  font-size: .82rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 47px;
  padding: .7rem .8rem;
  border: 1px solid var(--slate-300);
  border-radius: 9px;
  outline: none;
  background: white;
  color: var(--ink-900);
  transition:
    border-color .15s ease,
    box-shadow .15s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .13);
}

input[type="checkbox"],
input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  min-height: 0;
  padding: 0;
  accent-color: var(--blue-600);
}

input[type="file"]::file-selector-button {
  margin-right: .75rem;
  padding: .45rem .7rem;
  border: 1px solid var(--slate-300);
  border-radius: 6px;
  background: var(--blue-50);
  color: var(--ink-800);
  font: inherit;
  cursor: pointer;
}

.field {
  margin-bottom: 1.15rem;
}

.field ul,
.errorlist {
  margin: .45rem 0 0;
  padding-left: 1.15rem;
}

.errorlist {
  color: var(--danger);
  font-size: .8rem;
}

.help {
  margin-top: .35rem;
  color: var(--slate-600);
  font-size: .82rem;
}

.password-help {
  margin-top: .55rem;
  color: var(--slate-600);
  font-size: .76rem;
}

.password-help ul {
  margin: .4rem 0 0;
  padding-left: 1.1rem;
}

.notice {
  margin-bottom: 1.25rem;
  padding: .9rem 1rem;
  border: 1px solid #bfe4d4;
  border-radius: 10px;
  background: var(--success-soft);
  color: #145d45;
  font-weight: 700;
}

.error-panel {
  margin-bottom: 1rem;
  padding: .8rem 1rem;
  border: 1px solid #efc2c2;
  border-radius: 9px;
  background: var(--danger-soft);
  color: var(--danger);
}

.form-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}

/* --------------------------------------------------------- */
/* Authentication                                           */
/* --------------------------------------------------------- */

.auth-layout {
  display: grid;
  min-height: calc(100vh - 78px);
  grid-template-columns: minmax(0, 1fr) minmax(430px, .7fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
  padding: 3.5rem 0 6rem;
}

.auth-story {
  max-width: 680px;
  padding: 3rem;
  border-radius: 22px;
  background:
    radial-gradient(
      circle at 15% 0,
      rgba(77, 130, 245, .35),
      transparent 38%
    ),
    linear-gradient(
      145deg,
      var(--ink-950),
      #111f38
    );
  color: white;
  box-shadow: var(--shadow-lg);
}

.auth-story h1 {
  margin-bottom: 1.4rem;
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.auth-story > p:not(.eyebrow) {
  color: #b3c0d4;
  font-size: 1.02rem;
}

.auth-proof {
  display: grid;
  gap: .9rem;
  margin-top: 2rem;
}

.auth-proof > div {
  display: grid;
  gap: .15rem;
  padding-top: .9rem;
  border-top: 1px solid rgba(255,255,255,.1);
}

.auth-proof span {
  color: #91a3bc;
  font-size: .8rem;
}

.auth-card {
  width: 100%;
  max-width: 500px;
  justify-self: end;
  padding: clamp(1.8rem, 4vw, 2.6rem);
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow-md);
}

.auth-card-wide {
  max-width: 570px;
}

.auth-card-heading {
  margin-bottom: 1.6rem;
}

.auth-card-heading h2 {
  margin-bottom: .45rem;
  font-size: 2rem;
}

.auth-card-heading p:last-child {
  color: var(--slate-600);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 1.5rem 0 .15rem;
  color: var(--slate-500);
  font-size: .75rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--slate-200);
}

.auth-footer-text,
.security-note {
  margin: 1.2rem 0 0;
  text-align: center;
}

.auth-footer-text {
  color: var(--slate-600);
  font-size: .85rem;
}

.security-note {
  color: var(--slate-500);
  font-size: .72rem;
}

.journey-list {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.journey-list li {
  display: flex;
  align-items: center;
  gap: .85rem;
}

.journey-list li > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(102, 153, 255, .18);
  color: #aac7ff;
  font-weight: 850;
}

.journey-list li > div {
  display: grid;
}

.journey-list small {
  color: #8fa1ba;
}

/* --------------------------------------------------------- */
/* Guided setup                                             */
/* --------------------------------------------------------- */

.setup-shell {
  max-width: 920px;
  margin: 0 auto;
}

.setup-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  margin-bottom: 1.6rem;
}

.setup-header h1 {
  margin-bottom: .8rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.setup-header > div:first-child > p:last-child {
  max-width: 680px;
  color: var(--slate-600);
}

.setup-progress {
  display: flex;
  gap: .5rem;
}

.setup-progress div {
  display: grid;
  justify-items: center;
  gap: .3rem;
  min-width: 78px;
}

.setup-progress span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--slate-300);
  border-radius: 50%;
  background: white;
  color: var(--slate-500);
  font-size: .75rem;
  font-weight: 850;
}

.setup-progress .complete span {
  border-color: var(--blue-600);
  background: var(--blue-600);
  color: white;
}

.setup-progress small {
  font-size: .65rem;
}

.setup-card {
  padding: clamp(1.6rem, 4vw, 2.6rem);
}

.setup-card > h2 {
  margin-bottom: .55rem;
  font-size: 1.8rem;
}

.setup-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.split-actions {
  justify-content: space-between;
  gap: 1rem;
}

.choice-grid {
  display: grid;
  gap: .8rem;
  margin-top: 1.5rem;
}

.choice-card {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  cursor: pointer;
}

.choice-card:hover {
  border-color: var(--blue-500);
  background: var(--blue-50);
}

.choice-card input {
  width: auto;
  min-height: auto;
  margin-top: .2rem;
}

.choice-card > span {
  display: grid;
}

.choice-card small {
  margin-top: .15rem;
  font-weight: 500;
}

.review-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 1.5rem;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  background: var(--slate-200);
}

.review-panel div {
  display: grid;
  gap: .25rem;
  padding: 1.1rem;
  background: white;
}

.review-panel span {
  color: var(--slate-500);
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.security-callout {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--blue-100);
  border-radius: 12px;
  background: var(--blue-50);
}

.security-callout p {
  margin: .25rem 0 0;
  color: var(--slate-600);
  font-size: .84rem;
}

/* --------------------------------------------------------- */
/* Existing application content                             */
/* --------------------------------------------------------- */

.filter-bar {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  align-items: end;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-bar label,
.filter-bar .button {
  margin-top: 0;
}

.button-row {
  display: flex;
  gap: .75rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.detail-grid div {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--slate-200);
}

.detail-grid .wide {
  grid-column: 1 / -1;
}

.detail-grid dt {
  color: var(--slate-600);
  font-weight: 750;
}

.detail-grid dd {
  margin: .35rem 0 0;
}

.risk-summary,
.finding {
  margin-top: 1.5rem;
}

.risk-summary details {
  margin-top: 1rem;
}

.finding {
  padding-top: 1rem;
  border-top: 1px solid var(--slate-200);
}

.hash-value,
pre {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.sentence-rule {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  background: white;
}

.import-row {
  margin-bottom: 1.25rem;
}

.row-error {
  border-color: var(--danger);
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 1rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.summary-grid div {
  display: grid;
  gap: .3rem;
  padding: 1rem;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  background: white;
}

.summary-grid strong {
  font-size: 1.8rem;
}

.report {
  display: grid;
  gap: 1.5rem;
}

.report-cover {
  padding-block: 3rem;
}

.report-cover h1 {
  max-width: 720px;
  margin-bottom: .5rem;
}

.report-organization {
  font-size: 1.35rem;
  font-weight: 750;
}

.report-meta {
  display: flex;
  gap: 2rem;
}

.report-meta div {
  display: grid;
}

.report-meta dt {
  color: var(--slate-600);
  font-weight: 750;
}

.report-meta dd {
  margin: .25rem 0 0;
}

.report-section {
  border-top: 3px solid var(--ink-900);
}

.report-section h2 {
  margin-top: 0;
}

.report-item {
  padding-block: 1rem;
  border-top: 1px solid var(--slate-200);
}

.report-item:first-of-type {
  border-top: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  background: white;
}

th,
td {
  padding: .78rem;
  border-bottom: 1px solid var(--slate-200);
  text-align: left;
}

th {
  color: var(--slate-700);
  font-size: .74rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.metric {
  color: var(--ink-950);
  font-size: 2rem;
  font-weight: 850;
}

.metric span {
  display: block;
  color: var(--slate-600);
  font-size: 1rem;
  font-weight: 500;
}

/* --------------------------------------------------------- */
/* Responsive                                               */
/* --------------------------------------------------------- */

@media (max-width: 960px) {
  .hero,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-product-card {
    transform: none;
  }

  .auth-card {
    max-width: none;
    justify-self: stretch;
  }

  .app-frame {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .setup-header {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .public-header,
  .public-main {
    width: min(100% - 28px, 1180px);
  }

  .public-nav > a:not(.button) {
    display: none;
  }

  .hero {
    padding-top: 3rem;
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .feature-strip article + article {
    border-top: 1px solid var(--slate-200);
    border-left: 0;
  }

  .app-frame {
    display: block;
  }

  .app-sidebar {
    position: static;
    width: 100%;
    height: auto;
  }

  .sidebar-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-label {
    grid-column: 1 / -1;
  }

  .sidebar-footer {
    display: none;
  }

  .app-topbar {
    display: none;
  }

  .page-shell {
    width: min(100% - 28px, 1180px);
    padding-top: 2rem;
  }

  .heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .heading-row .button {
    margin-top: 0;
  }

  .form-grid-two,
  .review-panel,
  .filter-bar,
  .detail-grid,
  .compact-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid .wide {
    grid-column: auto;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .report-meta {
    display: grid;
    gap: .75rem;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .release-facts div {
    grid-template-columns: 1fr;
    gap: .15rem;
  }

  .module-list {
    columns: 1;
  }
}

@media (max-width: 520px) {
  .auth-story {
    padding: 2rem 1.4rem;
  }

  .auth-card {
    padding: 1.5rem;
  }

  .setup-progress {
    width: 100%;
    justify-content: space-between;
  }

  .setup-progress div {
    min-width: 0;
  }

  .split-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .split-actions .button {
    width: 100%;
  }
}
