:root { color-scheme: light; background: #f6f7f9; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body.verify {
  --canvas: #f6f7f9;
  --ink: #17212b;
  --muted: #515d69;
  --line: #d6dbe1;
  --accent: #314fb4;
  --default-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  font: 400 16px/1.55 var(--default-font-family);
  letter-spacing: normal;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
.verify main, .masthead nav { max-width: 66rem; width: calc(100% - 5rem); margin: 0 auto; padding: 0; }
.verify main { padding-block: clamp(2.25rem, 4vw, 3.8rem) 4rem; }
.masthead { background: white; border-bottom: 1px solid var(--line); }
.masthead nav, .brand, .issuer, .person, .actions, .account, .tools, .copy-link, .section-title, .paper-top, .paper footer { display: flex; align-items: center; }
.masthead nav { min-height: 4.15rem; justify-content: space-between; }
.brand { gap: .45rem; }
.brand img, .issuer img { width: 1.9rem; height: 1.9rem; margin: 0 .15rem 0 0; }
.verify .brand { color: var(--ink); text-decoration: none; font-size: 1.22rem; letter-spacing: -.035em; }
.brand b { font-weight: 700; }
.brand span { font-weight: 400; }
.verify .nav-link { color: var(--muted); font-size: .88rem; text-decoration: none; }
.verify a:not(.rt-reset) { color: var(--accent); text-underline-offset: .18em; }
.verify .nav-link:hover, .module-foot a:hover { text-decoration: underline; }
.verify :focus-visible:not(.rt-reset) { outline: 2px solid var(--accent); outline-offset: 3px; }
.verify :is(h1,h2,p,dl,dd) { margin: 0; }
.verify h1 { font: 650 clamp(1.95rem, 3.25vw, 2.75rem)/1.16 var(--default-font-family); letter-spacing: -.037em; }
.verify h2 { font: 620 1.15rem/1.35 var(--default-font-family); letter-spacing: -.018em; }
.page-intro { margin-bottom: 2.2rem; }
.verify .lead { margin-top: .8rem; color: var(--muted); max-width: 43rem; font-size: 1.02rem; line-height: 1.6; }
.document-layout.owner { display: grid; align-items: start; gap: clamp(2rem, 4.5vw, 4.5rem); }
.module, .paper { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 8px; }
.module { padding: clamp(1.3rem, 2.6vw, 2rem); }
.module > p:not(:empty) { margin: .65rem 0 1.5rem; color: var(--muted); }
.verify .rt-Button:not(.product-account-trigger):not(.fc-action) { font-family: var(--default-font-family); font-weight: 550; cursor: pointer; text-decoration: none; max-width: 100%; white-space: normal; text-align: center; }
.verify .primary { color: white; background: var(--accent); }
.verify .primary:hover { background: #274094; }
.verify .secondary { color: var(--ink); background: white; box-shadow: inset 0 0 0 1px #bcc4ce; }
.verify .secondary:hover { background: #f2f4f7; }
.linkedin-symbol { display: inline-grid; place-items: center; width: 1rem; height: 1rem; border-radius: 2px; background: white; color: var(--accent); font: bold .83rem/1 Arial,sans-serif; }
.module-foot { border-top: 1px solid var(--line); margin-top: 1.6rem; padding-top: .95rem; }
.module-foot a { text-decoration: none; font-size: .87rem; }
.arrow { padding-left: .18rem; }
.cert-facts > div { display: grid; grid-template-columns: minmax(5.8rem, .72fr) minmax(0, 1.28fr); align-items: baseline; gap: 1rem; padding: .68rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.cert-facts dt, .caption, .share label, .credential-fields dt { color: var(--muted); }
.verify dd, .person strong { overflow-wrap: anywhere; }
.person { gap: .65rem; }
.module .person { margin: 1.2rem 0; }
.avatar { position: relative; display: grid; place-items: center; flex: none; overflow: hidden; width: 2.45rem; height: 2.45rem; border-radius: 50%; background: #e9edf4; font-size: .8rem; font-weight: 600; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.caption { display: block; font-size: .8rem; }
.person strong { display: block; font-weight: 600; font-size: .95rem; }
.actions, .tools, .account { gap: .65rem; flex-wrap: wrap; }
.archive { margin-top: 2.25rem; }
.section-title { gap: .65rem; margin-bottom: .75rem; }
.section-title > span { color: var(--muted); font-size: .83rem; }
.archive > p, .text-page > p, .paper-heading p, .share p { color: var(--muted); }
.history { list-style: none; padding: 0; margin: 0; border-block: 1px solid var(--line); }
.history li + li { border-top: 1px solid var(--line); }
.history a { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .8rem; padding: .95rem .4rem; text-decoration: none; font-size: .93rem; }
.history a:hover { background: #eef1f5; }
.history strong { color: var(--ink); font-weight: 600; }
.history span:not(.arrow) { color: var(--muted); }
.doc-icon { width: 1.25rem; height: 1.25rem; }
.account { margin-top: 1.5rem; justify-content: space-between; font-size: .82rem; }
.account a { color: var(--muted); }
details { border-top: 1px solid var(--line); margin-top: 1.25rem; padding-top: .8rem; font-size: .88rem; }
summary { cursor: pointer; color: var(--muted); }
summary:hover { color: var(--ink); }
details[open] > summary { margin-bottom: .75rem; }
#log { padding-inline-start: 1.5rem; max-height: 17rem; overflow: auto; }
#log li { margin-block: .3rem; }
#status:empty { display: none; }
.verify #status:not(:empty), .verify .notice { margin: 1rem 0; border-left: 3px solid var(--accent); background: #eef2fb; color: var(--ink); padding: .7rem .85rem; font-size: .92rem; font-weight: 500; }
#result { margin-top: 1.2rem; overflow-wrap: anywhere; }
#result p { margin: .65rem 0; }
#challenge { z-index: 10; }
.document-layout { max-width: 45rem; margin: auto; }
.document-layout.owner { max-width: none; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.paper { padding: clamp(1.35rem, 3.1vw, 2.65rem); }
.paper-top { gap: .75rem; justify-content: space-between; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.issuer { gap: .35rem; font-size: 1.02rem; }
.issuer img { width: 1.6rem; height: 1.6rem; }
.signed { display: inline-flex; align-items: center; gap: .35rem; color: #216342; font-size: .83rem; font-weight: 550; }
.signed::before { content: ''; width: .4rem; height: .4rem; border-radius: 50%; background: #298056; }
.paper-heading { padding-block: 1.65rem 1.3rem; }
.paper h1 { font-size: clamp(1.85rem, 3vw, 2.35rem); }
.paper-heading p { margin-top: .45rem; font-size: .9rem; }
.metric { padding-block: .5rem 1.55rem; }
.metric > span { display: block; color: var(--muted); font-size: .9rem; }
.metric strong { display: block; margin-top: .2rem; font-size: clamp(2.35rem, 4.4vw, 3.7rem); letter-spacing: -.044em; line-height: 1.15; font-weight: 620; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.metric small { font-size: .43em; font-weight: 500; letter-spacing: -.015em; }
.cert-facts { border-top: 1px solid var(--line); }
.paper-sign { margin-block: 1.2rem; }
.paper footer { justify-content: space-between; gap: .4rem 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: .85rem; font-size: .72rem; color: var(--muted); }
.serial { font-family: ui-monospace, monospace; font-size: .67rem; overflow-wrap: anywhere; }
.tools { margin-top: .9rem; gap: .75rem 1rem; }
.tools a { font-size: .82rem; }
.share { padding-top: .4rem; min-width: 0; }
.share h2 { margin-bottom: .95rem; }
.share label { display: block; font-size: .83rem; margin-bottom: .4rem; }
.share p { margin: .85rem 0 1rem; font-size: .9rem; }
.copy-link { gap: .4rem; }
.copy-link input { flex: 1; min-width: 0; height: 2rem; font: inherit; font-size: .85rem; color: var(--ink); border: 1px solid #bfc6cf; border-radius: 4px; background: white; padding: .35rem .6rem; }
.share > .actions { align-items: flex-start; flex-direction: column; }
.credential-fields dt { margin-top: .6rem; font-size: .8rem; }
.text-page { max-width: 43rem; margin: 0 auto; }
.text-page h1 { margin-bottom: 1rem; }
.text-page > h2 { margin: 1.6rem 0 .55rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.text-page > p { margin-bottom: 1.2rem; }
.text-page > form { margin: 1rem 0; }
@media (max-width: 760px) {
  .verify main, .masthead nav { width: calc(100% - 2.5rem); }
  .document-layout.owner { grid-template-columns: 1fr; gap: 2rem; }
  .page-intro { margin-bottom: 1.4rem; }
  .page-intro, .archive, .account { max-width: 44rem; margin-inline: auto; }
  .document-layout.owner { max-width: 45rem; }
  .history a { gap: .5rem; }
}
@media (max-width: 400px) {
  .verify main, .masthead nav { width: calc(100% - 2rem); }
  .paper, .module { padding: 1.05rem; }
  .cert-facts > div { gap: .65rem; }
  .copy-link { flex-wrap: wrap; }
  .history a { font-size: .8rem; }
}
@page { size: A4; margin: 18mm; }
@media print {
  :root, body.verify { background: white; min-height: 0; }
  .masthead, .share, .tools, .account { display: none !important; }
  .verify main, .document-layout, .document-layout.owner { display: block; width: 100%; max-width: none; margin: 0; padding: 0; }
  .paper { padding: 10mm; break-inside: avoid; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

.guide { max-width: 43rem; margin-inline: auto; }
.guide .page-intro { margin-bottom: 1.5rem; }
.requirements { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; list-style: none; padding: 0; margin: .75rem 0; }
.requirements li { display: flex; align-items: center; gap: .48rem; font-weight: 550; }
.requirements li::before { content: ''; display: block; width: .45rem; height: .45rem; border: 1.5px solid var(--accent); border-radius: 50%; }
.preparation strong { font-weight: 600; }
.preparation p { margin: .65rem 0 1rem; color: var(--muted); }
.picker-sequence { display: grid; grid-template-columns: 1fr 1.45fr .85fr; list-style: none; margin: 1rem 0; padding: .9rem 0; border: 1px solid var(--line); border-radius: 6px; }
.picker-sequence li { padding: .1rem 1rem; min-width: 0; }
.picker-sequence li + li { border-left: 1px solid var(--line); }
.picker-sequence svg { display: block; width: 1.25rem; height: 1.25rem; margin-bottom: .55rem; color: var(--accent); }
.picker-sequence small, .picker-sequence strong { display: block; }
.picker-sequence small { color: var(--muted); font-size: .8rem; }
#source-name { font-variant-numeric: tabular-nums; }
#picker-guide p { font-size: .92rem; }
@media (max-width: 36rem) {
  .picker-sequence { grid-template-columns: 1fr; padding: 0 .85rem; }
  .picker-sequence li { display: grid; align-items: center; grid-template-columns: 1.35rem 1fr auto; gap: .5rem; padding: .65rem 0; }
  .picker-sequence li + li { border-left: 0; border-top: 1px solid var(--line); }
  .picker-sequence svg { margin: 0; }
  .picker-sequence strong { font-size: .9rem; }
}
#open-picker:disabled { opacity: .55; cursor: wait; }
#flow-title:focus { outline: none; }
.guide .person { margin: 0 0 1.35rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.sign-in { border-top: 1px solid var(--line); padding-top: 1rem; }
.sign-in p, #privacy { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.guide .actions { margin-top: .95rem; }
.guide .archive { margin-top: 1.6rem; }
.guiding .setup, .guiding .account-area, .guiding .page-intro .lead { display: none; }
.flow-track { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.3rem; }
.flow-track li { flex: 1; font-size: .8rem; color: var(--muted); border-top: 3px solid var(--line); padding-top: .3rem; }
.flow-track .reached { border-color: var(--accent); }
.flow-track [aria-current] { color: var(--accent); font-weight: 650; }
.phase-panel {
  --phase-surface: #f4f6fe;
  display: grid;
  grid-template-columns: clamp(2.8rem, 6vw, 4rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(.8rem, 2vw, 1.25rem);
  margin-bottom: 1.15rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  background: var(--phase-surface);
  border: 1px solid #cdd6f0;
  border-radius: 6px;
  color: var(--accent);
}
.phase-panel svg { display: block; width: 100%; height: auto; }
.phase-panel strong { display: block; font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.23; letter-spacing: -.025em; color: var(--ink); }
.verify .phase-panel p { margin: .4rem 0 0; line-height: 1.45; color: #414953; }
.review-track { opacity: .18; }
#review-notice:not([hidden]) .review-spinner { transform-origin: 32px 32px; animation: review-turn 1.35s linear infinite; }
@keyframes review-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  #review-notice:not([hidden]) .review-spinner { animation: none; }
}
#capture-notice:not([hidden]) ~ .phase-detail h2,
#review-notice:not([hidden]) ~ .phase-detail h2 { font-size: 1rem; letter-spacing: normal; }
#capture-notice:not([hidden]) ~ .phase-detail h2::before {
  content: ''; display: inline-block; width: .48rem; height: .48rem; margin-right: .55rem;
  border-radius: 50%; background: var(--accent); vertical-align: .1em;
}
#review-notice:not([hidden]) ~ .phase-detail h2::before,
#flow[data-outcome="complete"] .phase-detail h2::before {
  content: ''; display: inline-block; width: .65em; height: .34em; margin-right: .55em;
  border: solid #237151; border-width: 0 0 2px 2px; transform: translateY(-.19em) rotate(-45deg);
}
#flow-title { margin-bottom: .4rem; }
.verify .guide #status:not(:empty) { margin: 0; padding: 0; border: 0; background: none; font-weight: 400; font-size: 1rem; color: var(--muted); }
#capture-controls [data-outcome="error"] #flow-title { color: #8b362a; }
#result a, #session-ids { font-size: .86rem; }
#session-ids { overflow-wrap: anywhere; color: var(--muted); }

.phase-clock {
  margin: 1rem 0;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  color: var(--ink);
}
.clock-header { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; font-size: .9rem; }
#clock-value { font-size: 1.25rem; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.2; }
#clock-progress { display: block; appearance: none; width: 100%; height: .25rem; margin: .55rem 0 .35rem; border: 0; }
#clock-progress::-webkit-progress-bar { background: var(--line); border-radius: 1rem; }
#clock-progress::-webkit-progress-value { background: var(--accent); border-radius: 1rem; }
#clock-detail { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }

.extension-options { margin: 1.25rem 0; padding: 1rem; border: 1px solid var(--accent); border-radius: .5rem; background: var(--phase-surface); }
.extension-options h2 { margin-top: 0; }
.extension-options label { display: flex; gap: .65rem; align-items: center; font-weight: 600; }
.extension-options input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); }
.extension-options p { font-size: .9rem; }

.check-progress { margin:1rem 0; padding:1.25rem; border:1px solid var(--line); border-radius:.75rem; background:#fff; }
.check-heading { display:flex; align-items:baseline; justify-content:space-between; gap:1rem; margin-bottom:1.25rem; }
.verify .check-heading h2 { font-size:1.35rem; margin:0; }
.check-elapsed { color:var(--muted); font-size:.85rem; font-variant-numeric:tabular-nums; white-space:nowrap; }
.check-row { display:grid; grid-template-columns:4.5rem 1fr; gap:.75rem; padding:.6rem 0; font-size:1rem; }
.check-label { color:var(--muted); }
.verify .check-progress p { font-size:.9rem; line-height:1.5; }
.check-delayed { padding:.75rem; border-left:3px solid #a06a1a; background:#fffbf2; }
.check-saved { color:var(--muted); }
.check-progress details { border-top:1px solid var(--line); margin-top:1rem; padding-top:.75rem; font-size:.85rem; }
.check-progress summary { cursor:pointer; }
.check-events { padding-left:1.25rem; color:var(--muted); }
@media(max-width:540px){.check-heading{align-items:flex-start;flex-direction:column;gap:.4rem}.check-row{grid-template-columns:3.5rem 1fr}}

.check-row[data-active="true"] [data-source]::before { content:""; display:inline-block; width:.6rem; height:.6rem; margin-right:.5rem; border:2px solid #d3d9ee; border-top-color:var(--accent); border-radius:50%; animation:check-spin 1.2s linear infinite; }
.check-stop { margin-top:.75rem; background:transparent; border:1px solid var(--line); border-radius:.4rem; padding:.45rem .7rem; color:var(--muted); cursor:pointer; }
@keyframes check-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.check-row[data-active="true"] [data-source]::before{animation:none}}

#view-result{display:grid;grid-template-columns:minmax(8rem,auto) minmax(0,1fr);gap:.45rem 1.5rem;margin:1.5rem 0}#view-result dt{color:#526072;font-weight:500}#view-result dd{margin:0;overflow-wrap:anywhere}@media(max-width:480px){#view-result{grid-template-columns:1fr;gap:.15rem}#view-result dd{margin-bottom:.65rem}}

/* One purposeful activity card; secondary time and diagnostics stay subordinate. */
.check-description{margin:.45rem 0 1rem;color:#465468;line-height:1.55}.check-heading{align-items:flex-start;gap:1rem}.check-heading h2{margin:0}.check-elapsed{white-space:nowrap;font-size:.85rem;color:#647184}.check-stages{list-style:none;padding:0;margin:.8rem 0;display:grid;gap:.55rem}.check-stages li{display:flex;gap:.7rem;align-items:baseline}.check-stages li:before{content:'•';width:1rem;flex-shrink:0;color:#344cc4}.check-stages li[data-state=done]:before{content:'✓';color:#287457}.check-stages li[data-state=stopped]:before{content:'–';color:#687380}.check-stages li[data-state=current]{font-weight:600}.check-saved{padding:.85rem 1rem;background:#eef4ff;border-radius:8px;line-height:1.5}.check-delayed,.check-connection{padding:.85rem 1rem;background:#fff7e6;border-left:3px solid #c58a22;border-radius:4px;line-height:1.5}.check-progress details{border-top:1px solid #dce1eb;padding-top:.8rem}.check-events{font-size:.9rem;color:#596677}
