:root {
  color-scheme: light;
  --ink: var(--pr-navy, #16294d);
  --muted: var(--pr-text, #5a6577);
  --line: var(--pr-hairline, #e7eaee);
  --panel: var(--pr-paper, #ffffff);
  --page: #f5f7fa;
  --accent: var(--pr-blue, #2f8fdb);
  --accent-strong: var(--pr-navy, #16294d);
  --warn: var(--pr-warn-ink, #94794e);
  --warn-bg: var(--pr-warn-bg, #f6efe0);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(47, 143, 219, 0.09), rgba(245, 247, 250, 0) 310px),
    var(--page);
  font-family: var(--pr-font-sans, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif);
}

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

.top-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(22, 41, 77, 0.08);
  backdrop-filter: blur(12px);
}

.top-nav a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 10px;
  color: var(--accent-strong);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-home {
  margin-right: 8px;
  padding: 6px 10px 6px 6px !important;
  gap: 9px;
}

.brand-mark {
  width: 30px;
  height: 34px;
  object-fit: contain;
}

.brand-word {
  display: inline-flex;
  color: var(--pr-navy, #16294d);
  font-size: 1.05rem;
  font-weight: 800;
}

.brand-word span:last-child {
  color: var(--pr-blue, #2f8fdb);
}

.top-nav a:hover {
  border-color: var(--accent);
}

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

.heading {
  display: grid;
  gap: 6px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.04;
  color: var(--pr-ground, #0b1a30);
}

h2 {
  font-size: 1rem;
}

.tagline {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: minmax(520px, 1.2fr) minmax(360px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(22, 41, 77, 0.07);
}

.field {
  display: grid;
  gap: 7px;
  font-size: 0.92rem;
  font-weight: 650;
}

.field-note {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.35;
}

input[type="url"],
input[type="text"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

input:focus,
button:focus,
.dropzone:focus-within {
  outline: 3px solid #9ed8d0;
  outline-offset: 2px;
}

.dropzone {
  display: grid;
  gap: 10px;
  min-height: 112px;
  padding: 18px;
  place-items: center;
  color: var(--accent-strong);
  background: #eaf5f2;
  border: 1px dashed var(--accent);
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.dropzone input {
  width: min(100%, 420px);
}

.check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  color: #3d2a00;
  background: var(--warn-bg);
  border: 1px solid #f0cc75;
  border-radius: 6px;
  font-size: 0.92rem;
  line-height: 1.35;
  min-width: 0;
}

.check span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.check.quiet {
  color: var(--ink);
  background: #eef2f5;
  border-color: var(--line);
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

button {
  min-height: 44px;
  padding: 10px 16px;
  color: #ffffff;
  background: var(--pr-gradient, var(--accent));
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover:not(:disabled) {
  background: var(--pr-blue-press, #2179c4);
}

button:disabled {
  color: #e6eaee;
  background: #9ba7b3;
  cursor: not-allowed;
}

.mono,
.payload {
  font-family: var(--pr-font-mono, Consolas, "Cascadia Mono", monospace);
}

output,
.payload {
  min-height: 44px;
  display: block;
  width: 100%;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  padding: 12px;
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.payload {
  min-height: 120px;
  max-height: 220px;
  margin: 0;
  overflow: auto;
}

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

.dashboard {
  gap: 14px;
}

.bulk {
  gap: 14px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.support-card {
  align-content: start;
}

.support-card p {
  margin: 0;
  color: #344054;
  line-height: 1.45;
}

details {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #e7ebef;
}

.technical-details {
  gap: 12px;
  padding: 12px;
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.technical-details[open] {
  display: grid;
}

.technical-details summary {
  color: var(--muted);
}

.result-summary {
  align-content: start;
}

.result-summary .payload {
  min-height: 170px;
  color: #344054;
  background: #ffffff;
}

details:last-child {
  border-bottom: 0;
}

summary {
  color: var(--accent-strong);
  font-weight: 700;
  cursor: pointer;
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-head button {
  min-height: 38px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 0.92rem;
}

th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid #e7ebef;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 700;
}

td {
  overflow-wrap: anywhere;
}

td:first-child {
  font-family: var(--pr-font-mono, Consolas, "Cascadia Mono", monospace);
}

.bulk-table {
  table-layout: fixed;
  min-width: 1080px;
}

.bulk-table th:nth-child(1),
.bulk-table td:nth-child(1) {
  width: 150px;
}

.bulk-table th:nth-child(2),
.bulk-table td:nth-child(2) {
  width: 250px;
}

.bulk-table th:nth-child(3),
.bulk-table td:nth-child(3) {
  width: 210px;
}

.bulk-table th:nth-child(4),
.bulk-table td:nth-child(4) {
  width: 92px;
  text-align: center;
}

.bulk-table th:nth-child(5),
.bulk-table td:nth-child(5) {
  width: 190px;
}

.bulk-table th:nth-child(6),
.bulk-table td:nth-child(6) {
  width: 125px;
}

.bulk-table th:nth-child(7),
.bulk-table td:nth-child(7) {
  width: 110px;
}

.bulk-table input[type="text"] {
  min-height: 36px;
  padding: 7px 9px;
  font-size: 0.88rem;
}

.bulk-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.cell-hash {
  font-family: var(--pr-font-mono, Consolas, "Cascadia Mono", monospace);
  font-size: 0.82rem;
}

.cell-status {
  min-width: 150px;
}

.bulk-certificates {
  display: none;
}

.bulk-certificate {
  display: grid;
  gap: 12px;
  min-height: 250mm;
  padding: 18mm;
  color: #141821;
  background: #ffffff;
  border: 1px solid var(--line);
}

.bulk-certificate h2 {
  font-size: 1.75rem;
}

.bulk-certificate dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.bulk-certificate div {
  display: grid;
  grid-template-columns: 44mm minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid #e7ebef;
}

.bulk-certificate dt {
  color: var(--muted);
  font-weight: 700;
}

.bulk-certificate dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-family: var(--pr-font-mono, Consolas, "Cascadia Mono", monospace);
}

.bulk-certificate p {
  margin: 0;
  color: #344054;
  line-height: 1.4;
}

a {
  color: var(--accent-strong);
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 20px, 680px);
    padding: 20px 0;
  }

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

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

  h1 {
    font-size: 2rem;
  }
}

/* Product streamlining pass */
.product-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 44px;
  align-items: center;
  margin: 12px 0 34px;
  padding: 58px;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(120% 120% at 78% 24%, #15315e 0%, #0b1a30 58%, #07101d 100%);
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(7, 16, 29, 0.20);
}

.product-hero::after {
  position: absolute;
  inset: auto -80px -120px auto;
  width: 360px;
  height: 360px;
  content: "";
  background: radial-gradient(circle, rgba(39, 199, 216, 0.20), transparent 68%);
  filter: blur(16px);
}

.product-hero .eyebrow {
  color: #7fd6e8;
}

.product-hero .rule {
  display: inline-block;
  width: 24px;
  height: 2px;
  margin-right: 10px;
  vertical-align: 4px;
  background: #27c7d8;
}

.product-hero h1 {
  max-width: 760px;
  margin: 20px 0 0;
  color: #fff;
  font-size: clamp(2.7rem, 5.2vw, 4.85rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.product-hero p:not(.eyebrow) {
  max-width: 560px;
  margin: 26px 0 0;
  color: #b8c6d8;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
}

.hero-button.primary {
  color: #fff;
  background: #2f8fdb;
}

.hero-button.secondary {
  color: #dbe6f2;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-proof {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.hero-proof img {
  width: 122px;
  justify-self: end;
  margin-bottom: 12px;
  opacity: 0.9;
}

.proof-card {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.proof-card span {
  color: #8fa0b6;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.proof-card strong,
.proof-card code {
  color: #fff;
  font-family: var(--pr-font-mono, Consolas, monospace);
  font-size: 0.95rem;
}

.top-nav a.is-current {
  color: var(--pr-navy, #16294d);
  background: #eef7ff;
  border-color: #cfe0f0;
}

.section-heading {
  display: none;
}

.product-surface {
  display: none;
}

.product-surface.is-active {
  display: grid;
}

.product-hidden {
  display: none !important;
}

.mini-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 4px 0 10px;
}

.mini-steps div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 13px 12px;
  background: #fbfcfd;
  border: 1px solid #e7eaee;
  border-radius: 12px;
}

.mini-steps span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #fff;
  background: var(--pr-blue, #2f8fdb);
  border-radius: 50%;
  font-family: var(--pr-font-mono, Consolas, monospace);
  font-size: 0.78rem;
  font-weight: 800;
}

.mini-steps strong {
  color: var(--pr-navy, #16294d);
  font-size: 0.86rem;
}

.mini-steps small {
  color: #8a93a3;
  font-size: 0.74rem;
  font-weight: 700;
}

.result-summary .payload {
  border: 0;
  background: linear-gradient(180deg, #fbfdff, #f5f8fb);
  font-family: var(--pr-font-sans, "Plus Jakarta Sans", sans-serif);
  font-weight: 700;
}

.cell-hash,
td:first-child,
.bulk-certificate dd {
  font-family: var(--pr-font-mono, Consolas, monospace);
}

th {
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tbody tr:hover td {
  background: #fbfdff;
}

@media (max-width: 920px) {
  .product-hero {
    grid-template-columns: 1fr;
    padding: 38px 28px;
  }

  .hero-proof {
    display: none;
  }

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

@media (max-width: 560px) {
  .product-hero h1 {
    font-size: 2.4rem;
  }

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

@media print {
  @page {
    size: A4;
    margin: 10mm;
  }

  body.printing-bulk {
    background: #ffffff;
  }

  body.printing-bulk .top-nav,
  body.printing-bulk .shell > .workbench > :not(.bulk),
  body.printing-bulk .bulk > :not(.bulk-certificates) {
    display: none;
  }

  body.printing-bulk .shell {
    width: 100%;
    padding: 0;
    margin: 0;
  }

  body.printing-bulk .bulk {
    display: block;
    padding: 0;
    border: 0;
  }

  body.printing-bulk .bulk-certificates {
    display: block;
  }

  body.printing-bulk .bulk-certificate {
    min-height: 0;
    padding: 0;
    border: 0;
    page-break-after: always;
    break-after: page;
  }

  body.printing-bulk .bulk-certificate:last-child {
    page-break-after: auto;
    break-after: auto;
  }
}

/* Design handoff integration: visual layer only, existing IDs and behavior stay intact. */
:root {
  --pr-board: #eef2f6;
  --pr-shadow: 0 22px 60px rgba(22, 41, 77, 0.08);
  --pr-shadow-soft: 0 12px 30px rgba(22, 41, 77, 0.06);
}

body {
  background:
    radial-gradient(900px 420px at 74% -120px, rgba(39, 199, 216, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(47, 143, 219, 0.10), rgba(245, 247, 250, 0) 330px),
    #f5f7fa;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  padding: 28px 0 76px;
}

.top-nav {
  border-radius: 14px;
  padding: 12px;
  gap: 10px;
}

.top-nav a {
  border-radius: 9px;
  padding: 9px 13px;
  min-height: 40px;
  color: #5a6577;
  font-size: 0.86rem;
}

.top-nav a:hover {
  color: var(--pr-navy, #16294d);
  background: #f7fbff;
}

.brand-home {
  background: transparent !important;
  border-color: transparent !important;
}

.brand-mark {
  width: 28px;
  height: 32px;
}

.brand-word {
  font-size: 1.16rem;
  letter-spacing: -0.03em;
}

.heading {
  gap: 10px;
  margin: 16px 0 8px;
}

.eyebrow {
  color: var(--pr-blue, #2f8fdb);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.35rem, 4.8vw, 4.2rem);
  letter-spacing: -0.04em;
}

h2 {
  color: var(--pr-navy, #16294d);
  font-size: 1.12rem;
  letter-spacing: -0.015em;
}

.tagline {
  color: #6b7589;
}

.grid {
  grid-template-columns: minmax(520px, 1.1fr) minmax(340px, 0.78fr);
  gap: 22px;
}

.panel {
  border-radius: 16px;
  padding: 24px;
  border-color: #e4e9ef;
  box-shadow: var(--pr-shadow-soft);
}

.result-summary {
  position: sticky;
  top: 86px;
}

.dropzone {
  min-height: 134px;
  border-width: 2px;
  border-color: #cdd6e0;
  border-radius: 14px;
  color: var(--pr-navy, #16294d);
  background: linear-gradient(180deg, #fbfdff, #f4fbfb);
  transition: border-color 0.14s ease, background 0.14s ease, transform 0.14s ease;
}

.dropzone:hover,
.dropzone:focus-within {
  border-color: var(--pr-blue, #2f8fdb);
  background: #f5f9fd;
  transform: translateY(-1px);
}

.field {
  gap: 8px;
  font-weight: 700;
}

input[type="url"],
input[type="text"] {
  border-radius: 9px;
  border-color: #d8dde4;
  padding: 12px 14px;
}

input[type="url"]:focus,
input[type="text"]:focus {
  border-color: var(--pr-blue, #2f8fdb);
}

.check {
  border-radius: 11px;
  padding: 15px 16px;
}

.check.quiet {
  background: #fbfcfd;
}

button {
  min-height: 44px;
  border-radius: 9px;
  padding: 11px 18px;
  box-shadow: 0 10px 20px rgba(47, 143, 219, 0.14);
}

button:disabled {
  box-shadow: none;
}

.technical-details {
  border-radius: 12px;
  padding: 14px;
}

output,
.payload {
  border-radius: 10px;
}

.payload {
  background: #fbfcfd;
}

.dashboard-head {
  align-items: flex-start;
}

.support-grid {
  gap: 22px;
}

.support-card h2 {
  font-size: 1.18rem;
}

.support-card p,
.support-card details p {
  color: #5a6577;
  line-height: 1.62;
}

.table-wrap {
  border: 1px solid #e7eaee;
  border-radius: 12px;
  background: #fff;
}

table {
  min-width: 760px;
}

th {
  color: #7d8798;
  font-size: 0.8rem;
}

td {
  color: #24334d;
}

.bulk-table input[type="text"] {
  border-radius: 8px;
}

.bulk-certificate {
  border-radius: 14px;
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 22px, 700px);
  }

  .top-nav {
    position: static;
  }

  .result-summary {
    position: static;
  }
}
