:root {
  color-scheme: light;
  font:
    15px/1.6 -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft Yahei",
    sans-serif;
  color: #202737;
  background: #f6f7fb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
body > header {
  border-bottom: 1px solid #dde6e3;
  background: #fff;
}
.bar {
  max-width: 1060px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  padding: 6px 32px;
}
main {
  max-width: 1060px;
  margin: auto;
  padding: 0 32px;
}
.brand {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #152f2b;
  text-decoration: none;
  font-weight: 750;
}
.brand img { display: block; flex: none; }
.brand span { font-size: 23px; line-height: 1; letter-spacing: -.045em; }
.brand b { font-weight: 550; color: #35695e; }
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}
@media (min-width: 601px) {
  .site-nav::before {
    width: 1px;
    height: 22px;
    margin-right: 10px;
    background: #dbe7e3;
    content: "";
  }
}
.site-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 5px 11px;
  border-radius: 8px;
  color: #526663;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { background: #f3f7f6; color: #175443; }
.site-nav a[aria-current="page"] { color: #175443; }
.site-nav a > span:last-child { position: relative; }
.site-nav a[aria-current="page"] > span:last-child::after {
  position: absolute;
  inset: auto 0 -5px;
  height: 2px;
  border-radius: 2px;
  background: #278469;
  content: "";
}
.site-nav a:focus-visible { outline: 2px solid #278469; outline-offset: 2px; }
.site-nav-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: none;
  color: #4a665d;
}
.site-nav a[aria-current="page"] .site-nav-icon {
  color: #278469;
}
.site-nav-icon svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.community-symbols { position: absolute; }
.header-actions {
  --utility-height: 38px;
  --utility-border: #dce7ed;
  --utility-surface: #f7fafc;
  --utility-ink: #385464;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline-start: auto;
}
.language-picker {
  position: relative;
  flex: none;
}
.language-picker svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.language-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: var(--utility-height);
  padding-inline: 10px;
  border: 1px solid var(--utility-border);
  border-radius: 10px;
  background: var(--utility-surface);
  color: var(--utility-ink);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}
.language-trigger:hover,
.language-trigger[aria-expanded="true"] { background: #eaf3fa; color: #174d6a; }
.language-trigger:focus-visible,
.language-menu button:focus-visible { outline: 2px solid #3087b5; outline-offset: 1px; }
.language-trigger .language-globe { color: #26779e; }
.language-trigger .language-chevron { width: 12px; height: 12px; margin-inline-start: 1px; }
.language-trigger[aria-expanded="true"] .language-chevron { transform: rotate(180deg); }
.language-menu {
  position: absolute;
  z-index: 10;
  inset: calc(100% + 7px) 0 auto auto;
  width: 164px;
  padding: 5px;
  border: 1px solid var(--utility-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px #24465d1a, 0 2px 6px #24465d0d;
}
.language-menu button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 5px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--utility-ink);
  font-size: 13px;
  line-height: 1.25;
  text-align: start;
}
.language-menu button:hover { background: #f1f6f9; }
.language-menu button[aria-checked="true"] {
  background: #e8f2f8;
  color: #174d6a;
  font-weight: 650;
}
.language-menu button:not([aria-checked="true"]) svg { visibility: hidden; }
.community-picker { position: relative; }
.community-trigger { display: none; }
.community-links {
  display: flex;
  flex: none;
  align-items: center;
  margin-inline-start: auto;
  min-height: var(--utility-height);
  padding: 2px;
  border: 1px solid var(--utility-border);
  border-radius: 10px;
  background: var(--utility-surface);
}
.community-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 7px;
  color: var(--utility-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}
.community-link + .community-link::before {
  position: absolute;
  inset-block: 8px;
  inset-inline-start: 0;
  width: 1px;
  background: #dbe7ee;
  content: "";
}
.community-link:hover { background: #eaf3fa; color: #174d6a; }
.community-link:focus-visible {
  z-index: 1;
  outline: 2px solid #3087b5;
  outline-offset: 1px;
}
.community-icon {
  display: block;
  width: 15px;
  height: 15px;
  color: #2585b6;
  fill: currentColor;
  flex: none;
}
/* Previously cached pages may still include the side shortcuts. */
.community-floats { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .community-icon { animation: community-plane 4.8s ease-in-out infinite; }
  .community-link + .community-link .community-icon { animation-delay: -2.4s; }
  @keyframes community-plane {
    0%, 55%, 100% { transform: translateY(0); filter: drop-shadow(0 0 0 transparent); }
    26% { transform: translateY(-2px); filter: drop-shadow(0 1px 3px #349bd46b); }
  }
}
main {
  padding-top: 32px;
  padding-bottom: 56px;
}
.hero,
.report-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 90% 110%, #4f5486, transparent 60%),
    linear-gradient(120deg, #181e34, #293657);
  color: white;
}
.hero {
  display: flex;
  align-items: center;
  min-height: 205px;
  padding: 38px 44px;
}
.hero h1,
.report-head h1,
.intro h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.2;
  letter-spacing: -0.045em;
}
.hero p,
.report-head p {
  color: #d7def1;
  margin: 13px 0 0;
}
.art {
  position: absolute;
  inset: 0 0 0 56%;
  z-index: -1;
  background: repeating-radial-gradient(
    ellipse at 100% 140%,
    transparent 0 12px,
    #9ca8df19 13px 14px
  );
}
.plate {
  position: absolute;
  width: 208px;
  height: 129px;
  left: 24%;
  top: 21%;
  border: 1px solid #d9dfffad;
  border-radius: 13px;
  transform: rotate(-13deg) skewX(4deg);
  box-shadow: 4px 15px 25px #090e3040;
}
.plate.back {
  background: #646eaa;
  transform: translate(14px, 14px) rotate(-6deg);
}
.plate.front {
  background: linear-gradient(
    115deg,
    #c9d6ff 0%,
    #e8def8 31%,
    #99a9d8 65%,
    #ccd7f6
  );
  padding: 16px;
  color: #293554;
  overflow: hidden;
}
.plate b,
.plate span {
  display: block;
  position: relative;
  z-index: 1;
  font: italic 19px Georgia;
}
.plate span {
  font-size: 14px;
}
.chip {
  width: 28px;
  height: 20px;
  border-radius: 5px;
  background: repeating-linear-gradient(90deg, #d5b572 0 7px, #f8e6ad 8px);
  margin-bottom: 14px;
}
.engrave {
  position: absolute;
  width: 115px;
  height: 115px;
  right: -18px;
  bottom: -30px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    ellipse,
    #45517a66 0 1px,
    transparent 2px 4px
  );
  transform: skew(-17deg);
}
.grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 20px;
  margin-top: 22px;
}
.panel,
.record,
.profile,
.details {
  background: white;
  border: 1px solid #dfe3ee;
  border-radius: 17px;
  padding: 24px;
  box-shadow: 0 4px 14px #1d2c5110;
}
h2 {
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.drop {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 5px;
  padding: 20px 10px;
  border: 1.5px dashed #aab6d7;
  border-radius: 12px;
  background: linear-gradient(120deg, #fafbfe, #f3f5fd);
  cursor: pointer;
}
.drop:hover,
.drop.over,
.drop:focus-within {
  background: #ecf0ff;
  border-color: #576aca;
}
.drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 44px;
  border-radius: 7px 11px 7px 7px;
  background: white;
  color: #505fc1;
  border: 1px solid #c7cfe5;
  box-shadow: 3px 3px 0 #e1e6fb;
  font-size: 24px;
  margin: 0 0 4px;
}
.drop strong {
  overflow-wrap: anywhere;
  max-width: 100%;
}
small,
.muted {
  color: #667088;
  font-size: 13px;
}
.primary,
.action {
  border: 0;
  border-radius: 9px;
  background: #4657b4;
  color: white;
  padding: 10px 17px;
  font-weight: 650;
}
.primary {
  margin-top: 16px;
  width: 100%;
}
.primary span {
  float: right;
}
.primary:disabled {
  background: #e8ebf3;
  color: #69748a;
  cursor: default;
}
label:not(.drop) {
  display: block;
  margin-top: 11px;
}
input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),
select {
  background: white;
  border: 1px solid #b8bfd0;
  border-radius: 8px;
  padding: 9px 12px;
}
input[type="password"],
input[type="search"] {
  display: block;
  width: 100%;
  margin-top: 5px;
}
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #8597de;
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
p:empty {
  display: none;
}
#status {
  font-size: 14px;
  color: #414e75;
}
.report-head {
  padding: 30px 34px;
  margin-bottom: 18px;
}
.report-head h1 {
  font-size: 32px;
}
.report-head p {
  overflow-wrap: anywhere;
}
.report-head .action {
  background: #fff;
  color: #303d73;
  float: right;
  margin-left: 14px;
}
.report-head small {
  display: block;
  color: #c4ceed;
  margin-bottom: 5px;
}
.record,
.profile,
.details {
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.record h3 {
  font-size: 20px;
  margin: 0 0 15px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.metric {
  background: #f5f6fa;
  border-radius: 10px;
  padding: 12px;
}
.metric small,
.metric b {
  display: block;
}
.good {
  color: #107259;
}
.warn {
  color: #89600b;
}
.bad {
  color: #ae3946;
}
.record details {
  margin-top: 16px;
}
summary {
  cursor: pointer;
  color: #475793;
  font-weight: 600;
}
dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 18px;
}
dt {
  color: #646d80;
}
dd {
  margin: 0;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.intro {
  margin-bottom: 22px;
}
.intro small,
.intro h1 span {
  display: none;
}
#result:focus {
  outline: none;
}
@media (max-width: 690px) {
  .bar { padding-inline: 16px; }
  main {
    padding-left: 16px;
    padding-right: 16px;
  }
  main {
    padding-top: 16px;
  }
  .hero {
    min-height: 155px;
    padding: 22px;
  }
  .hero-copy {
    max-width: 64%;
  }
  .hero-copy p {
    font-size: 13px;
  }
  .art {
    left: 58%;
  }
  .plate {
    left: 5%;
    scale: 0.68;
    transform-origin: top left;
    top: 32%;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 14px;
  }
  .panel,
  .record,
  .details,
  .profile {
    padding: 18px;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .report-head {
    padding: 20px;
  }
  .report-head h1 {
    font-size: 25px;
  }
  .report-head .action {
    padding: 6px 10px;
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before {
    animation: none !important;
  }
}

/* Report view */
#result {
  --ink: #1d1d1f;
  --muted: #515154;
  --line: #e5e5ea;
  --card: #fff;
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC",
    sans-serif;
}
#result .report-document.report-alert {
  border-color: #ebc5c9;
  box-shadow: 0 0 0 2px #f7e6e8, 0 12px 34px #792c3710;
}
#result .expiry-pending { color: var(--muted); font-size: 18px; }
#result .expiry-source { color: #596879; font-size: 11px; margin-top: 3px; }
#result .report-alert .expiry-dial strong { color: #ad2535; }
#result .report-review { border-color: #e9d9bd; box-shadow: 0 0 0 2px #f7efdf, 0 12px 34px #644e2410; }
#result .report-review .identity { background: linear-gradient(110deg, #fbf8f0, #f7efde); }
#result .ipa-notice-badge { font-size: clamp(18px, 3vw, 26px); color: #79521d; }
.ipa-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 18px 28px 24px;
  padding: 16px 18px;
  border: 1px solid #eee4d0;
  border-radius: 12px;
  background: #fcfaf5;
  color: #624817;
}
.ipa-notice-symbol {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f3e9d4;
  font-weight: 700;
}
.ipa-notice h3 { margin: 0; font-size: 15px; }
.ipa-notice p { margin: 4px 0 0; color: #605646; font-size: 13px; line-height: 1.6; }
.report-alert .ipa-notice { border-color: #efd7d9; background: #fff7f7; color: #9a2431; }
.report-alert .ipa-notice-symbol { background: #f7e4e6; }
@media (prefers-reduced-motion: no-preference) {
  .ipa-notice { animation: upload-arrive 240ms ease-out both; }
}
@media (max-width: 600px) {
  #result .report-document:is(.report-alert, .report-review) { border-radius: 14px; }
  .ipa-notice { margin-inline: 14px; padding-inline: 12px; }
}
#result .report-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  column-gap: 8px;
  align-items: center;
  min-height: 64px;
  max-width: 960px;
  margin: 0 auto;
  border-bottom: 1px solid #e5e5ea;
  color: #1d1d1f;
  background: #f5f5f7eb;
  backdrop-filter: blur(18px);
  font-size: 14px;
  font-weight: 650;
}
.back-file,
.next-file,
.copy-value {
  border: 1px solid var(--line, #ccd2e3);
  border-radius: 9px;
  font-size: 13px;
  background: #fff;
  color: #0066cc;
  padding: 7px 13px;
  transition:
    background 0.16s,
    border-color 0.16s;
}
.back-file {
  justify-self: start;
  background: none;
  border-color: transparent;
  padding-left: 3px;
}
.next-file {
  justify-self: end;
  background: #eaf3ff;
  color: #005dbb;
  border-color: transparent;
  font-weight: 700;
}
.back-file:hover,
.copy-value:hover {
  background: #f0f6ff;
}
.next-file:hover {
  background: #dcecff;
}
.identity,
.report-paper {
  max-width: 960px;
  margin-inline: auto;
}
.identity {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 10px 16px;
  align-items: center;
  margin-top: 20px;
  padding: 24px 28px;
  border: 1px solid #e6e6eb;
  border-radius: 21px;
  background: #fff;
}
.identity-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: #0071e3;
  color: white;
  font: italic 29px Georgia;
}
.identity-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.identity-name {
  min-width: 0;
  overflow-wrap: anywhere;
}
.identity-name h1 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}
.identity-name code,
.identity small {
  color: #6e6e73;
  font-size: 12px;
}
.identity-state {
  grid-column: 1/3;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}
.identity-state b {
  font-size: clamp(22px, 3vw, 29px);
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: #216535;
}
.identity-state.uncertain b {
  color: #8b5500;
}
.identity-state.negative b {
  color: #b42332;
}
.expiry-dial {
  grid-column: 3;
  grid-row: 1/3;
  display: grid;
  place-content: center;
  justify-items: center;
  min-width: 122px;
  padding: 8px 0 8px 22px;
  gap: 3px;
}
.expiry-dial strong {
  font-size: 35px;
  line-height: 1.08;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.06em;
}
.expiry-dial strong span {
  margin-left: 3px;
  font-size: 12px;
  letter-spacing: 0;
}
.report-section {
  margin-top: 20px;
  animation: report-enter 0.28s ease both;
}
.report-section:nth-child(2) {
  animation-delay: 50ms;
}
.report-section:nth-child(3) {
  animation-delay: 90ms;
}
@keyframes report-enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.report-section > h2 {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #24314f;
  margin: 0 0 8px;
  font-size: 17px;
}
.report-section > h2 small {
  color: #3f51a1;
  background: #e5eafd;
  padding: 2px 7px;
  border-radius: 7px;
  font:
    11px ui-monospace,
    monospace;
}
.sheet-body {
  display: grid;
  gap: 8px;
}
.certificate-card,
.profile-fields,
.permission-choices,
.permission-value {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.certificate-card {
  overflow: hidden;
}
.certificate-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 17px;
  overflow-wrap: anywhere;
}
.certificate-heading small,
.report-fields dt,
.fingerprint-row small,
.permission-value small {
  color: var(--muted);
  font-size: 12px;
}
.certificate-heading h3 {
  margin: 1px 0 0;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.35;
}
.signer-tag {
  color: #216535;
  font-size: 12px;
}
.report-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 10px 17px;
}
.report-fields .field-row {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 1px 12px;
}
.report-fields .field-row:first-child {
  padding-left: 0;
}
.report-fields dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.profile-fields {
  grid-template-columns: 1fr 1fr;
  gap: 9px 14px;
  padding: 12px 17px;
}
.profile-fields .field-row {
  padding: 0;
  border: 0 !important;
}
.profile-fields .field-row:nth-child(n + 3) {
  grid-column: 1/-1;
  padding-top: 7px;
  border-top: 1px solid var(--line) !important;
}
.fingerprint-row {
  display: grid;
  grid-template-columns: minmax(0, max-content) auto;
  justify-content: start;
  align-items: center;
  gap: 3px 8px;
  padding: 10px 17px;
  background: #f5f5f7;
  border-block: 1px solid var(--line);
}
.fingerprint-row code {
  grid-column: 1;
  grid-row: 2;
  overflow-wrap: anywhere;
  color: #535d6c;
  font-size: 12px;
}
.fingerprint-row button {
  grid-column: 2;
  grid-row: 2;
}
.copy-value {
  padding: 3px 8px;
}
.profile-fields .copy-value {
  margin-left: 8px;
}
.certificate-extra {
  padding: 8px 17px 10px;
}
.certificate-extra summary {
  color: #4657a4;
  font-size: 13px;
}
.certificate-extra .report-fields {
  margin-top: 7px;
  padding-inline: 0;
}
.permission-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
}
.permission-choices button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  overflow-wrap: anywhere;
  border: 1px solid #d7deee;
  background: #f7f8fc;
  color: #2e3b5b;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 13px;
}
.permission-choices button:hover,
.permission-choices button[aria-expanded="true"] {
  background: #e6edff;
  border-color: #8297cf;
}
.permission-choices small {
  color: #4f607c;
  font-size: 11px;
}
.permission-value {
  padding: 8px 13px;
  overflow-wrap: anywhere;
  animation: report-enter 0.18s ease;
}
.permission-value code {
  display: block;
  white-space: pre-wrap;
  font:
    13px/1.6 ui-monospace,
    monospace;
}
@media (max-width: 600px) {
  .identity {
    padding: 15px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 8px;
  }
  .identity-mark {
    width: 38px;
    height: 38px;
  }
  .identity-name h1 {
    font-size: 16px;
  }
  .identity-state b {
    font-size: 22px;
  }
  .expiry-dial {
    min-width: 79px;
    padding: 6px;
  }
  .expiry-dial strong {
    font-size: 24px;
  }
  .expiry-dial small {
    font-size: 9px;
  }
  .report-fields {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .report-fields .field-row {
    padding: 0;
    border-left: 0 !important;
  }
  .report-fields dd {
    font-size: 13px;
  }
  .certificate-heading h3 {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #result * {
    animation: none;
    transition: none;
  }
}

.key-dates {
  grid-template-columns: 1fr 1fr;
}
.report-pill {
  flex: none;
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 650;
}
.report-pill.pass {
  background: #dcf5eb;
  color: #07634c;
}
.report-pill.unknown {
  background: #fff1d6;
  color: #835000;
}
.report-pill.fail {
  background: #fde6ea;
  color: #b42332;
}
.profile-fields .field-row:nth-child(3) {
  grid-column: auto;
  padding: 0;
  border: 0 !important;
}
.profile-fields .field-row:nth-child(4) {
  grid-column: auto;
  padding: 0;
  border: 0 !important;
}
.profile-fields .field-row:nth-child(n + 5) {
  grid-column: 1/-1;
  padding-top: 8px;
}
.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 820px) {
  .permission-grid:has(> :last-child:nth-child(3)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .permission-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }
  .profile-fields .field-row:nth-child(n) {
    grid-column: 1/-1;
  }
  .key-dates {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 601px) {
  .key-dates {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.report-fields .report-pill {
  display: inline-block;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.report-document {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 14px 38px #0000000d;
}
.report-document .identity {
  margin: 4px 28px 0;
  padding: 18px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(110deg, #f7f9fc, #eef3fa);
  box-shadow: none;
}
.report-document .report-section {
  margin: 0 28px;
  padding: 20px 0;
}
.report-document .report-section + .report-section {
  border-top: 1px solid #dedee3;
}
.report-document .report-section > h2 {
  margin-bottom: 12px;
}
.report-document .profile-fields {
  border: 0;
  border-radius: 0;
}
.report-document .certificate-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.report-document .certificate-card + .certificate-card {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.report-document .certificate-heading {
  padding: 0 0 11px;
}
.report-document .report-fields {
  padding-inline: 0;
}
.fingerprint-group {
  display: grid;
  gap: 8px;
}
.report-document .fingerprint-row {
  padding: 0;
  border: 0;
  background: transparent;
}
.report-document .report-fields,
.report-document .report-fields .field-row {
  border: 0 !important;
}
.report-document .report-fields {
  gap: 11px 16px;
}
.report-document .report-fields .field-row {
  padding: 0;
}
.report-document .key-dates {
  padding-block: 2px 14px;
}
@media (max-width: 600px) {
  .report-document .report-section {
    margin-inline: 15px;
    padding: 16px 0;
  }
}

#result .report-bar {
  background: #fff;
  backdrop-filter: none;
  min-height: 54px;
  border-bottom: 0;
  padding-inline: 28px;
}
#result .next-file,
#result .back-file {
  padding: 7px 11px;
  border-radius: 8px;
}
#result .back-file {
  padding-left: 0;
}
.report-bar-title {
  margin: 0;
  color: #515154;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 360px) {
  #result .next-file {
    padding-inline: 8px;
  }
}
@media (max-width: 600px) {
  #result .report-bar {
    padding-inline: 15px;
  }
}

.certificate-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 9px;
  min-width: 0;
}
.certificate-country {
  padding: 2px 8px;
  border-radius: 7px;
  background: #f0f5fc;
  color: #29527a;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
}
@media (min-width: 601px) {
  .key-dates,
  .profile-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .profile-fields .field-row:nth-child(5) {
    grid-column: span 2;
    padding-top: 0;
  }
}

.capability-note {
  margin: 0;
  color: #526478;
  font-size: 13px;
}
.capability-tile {
  --state-ink: #655b4e;
  --state-line: #d7cfc1;
  --state-surface: #faf8f4;
  --state-icon: #786b58;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid var(--state-line);
  border-radius: 11px;
  background: var(--state-surface);
  overflow-wrap: anywhere;
}
.capability-tile[data-supported="true"] {
  --state-ink: #125c46;
  --state-line: #b1dcca;
  --state-surface: #e8f6ef;
  --state-icon: #187859;
}
.capability-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 5px 10px;
}
.capability-title strong {
  color: var(--state-ink);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 650;
}
.capability-status {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--state-ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.capability-status::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 50%;
  background-color: var(--state-icon);
}
.capability-status::after {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: 50%;
  width: 6px;
  border-bottom: 1.5px solid white;
  transform: translateY(-50%);
}
.capability-tile[data-supported="true"] .capability-status::after {
  height: 3px;
  border-inline-start: 1.5px solid white;
  transform: translateY(-70%) rotate(-45deg);
}
.capability-tile > small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #495d60;
}
@media (forced-colors: active) {
  .capability-status::before { background-color: CanvasText; forced-color-adjust: none; }
  .capability-status::after { border-color: Canvas; forced-color-adjust: none; }
}
.capability-details {
  margin-top: 6px;
  border: 1px solid #d4dfee;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
}
.capability-details-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin: 0;
  padding: 8px 15px;
  border-radius: 9px 9px 0 0;
  background: #edf3fc;
  color: #294b76;
  font-size: 13px;
  font-weight: 650;
}
.capability-count {
  padding: 1px 7px;
  border-radius: 20px;
  background: #dae6f8;
  font-size: 11px;
  font-weight: 600;
  color: #405b83;
}
.capability-details .capability-values {
  display: block;
  margin: 0;
  border-top: 1px solid #d4dfee;
  padding: 0 15px;
}
.capability-values .field-row {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  padding: 12px 0;
}
.capability-values .field-row + .field-row {
  border-top: 1px solid #e4ebf2;
}
.capability-values dt,
.capability-values dd {
  min-width: 0;
  overflow-wrap: anywhere;
}
.capability-values dd {
  align-self: center;
  margin: 0;
  color: #294b76;
  font-weight: 550;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.capability-values dt > span {
  color: #25384a;
  font-weight: 600;
}
.capability-list { display: flex; flex-wrap: wrap; gap: 5px; }
.capability-list code, .capability-token {
  display: inline-block;
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 5px;
  background: #edf1fb;
  color: #3e5284;
  font: 12px/1.5 ui-monospace, monospace;
}
.capability-on, .capability-off {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 5px;
}
.capability-on {
  background: #e3f4eb;
  color: #165f47;
}
.capability-off {
  background: #f4f1eb;
  color: #625749;
}

.capability-key {
  display: block;
  margin-top: 2px;
  color: #586c82;
  font:
    11px/1.5 ui-monospace,
    monospace;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .capability-tile { padding: 10px 12px; }
  .capability-tile > small { margin-top: 2px; }
  .capability-details-heading { padding-inline: 12px; }
  .capability-details .capability-values { padding-inline: 12px; }
  .capability-values .field-row {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 10px;
    gap: 4px;
  }
}

.identity-name h1 {
  font-weight: 650;
  letter-spacing: -0.02em;
}
.identity-state b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.identity-state b::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
@media (max-width: 600px) {
  .report-document .identity {
    margin-inline: 15px;
    padding: 13px;
  }
  .expiry-dial {
    padding: 5px 0 5px 9px;
  }
  .identity-state b::before {
    width: 5px;
    height: 5px;
  }
}

.report-section-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 15px;
}
.report-glyph--certificate {
  background: #e9f2ff;
  color: #285ea4;
}
.report-glyph--document {
  background: #f1ebfc;
  color: #7053a2;
}
.report-glyph--grid {
  background: #e7f5ef;
  color: #257258;
}
.report-glyph {
  position: relative;
  display: block;
  width: 1em;
  height: 1em;
}
.report-glyph--certificate .report-glyph::before {
  content: "";
  position: absolute;
  inset: 0.12em 0 0.19em;
  border: 0.09em solid currentColor;
  border-radius: 0.13em;
  background:
    linear-gradient(currentColor, currentColor) 0.16em 0.17em / 0.49em 0.07em
      no-repeat,
    linear-gradient(currentColor, currentColor) 0.16em 0.32em / 0.31em 0.07em
      no-repeat;
}
.report-glyph--certificate .report-glyph::after {
  content: "";
  position: absolute;
  right: -0.04em;
  bottom: 0.03em;
  width: 0.39em;
  height: 0.39em;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0.07em #e9f2ff;
}
.report-glyph--document .report-glyph::before {
  content: "";
  position: absolute;
  inset: 0 0.13em;
  border: 0.09em solid currentColor;
  border-radius: 0.1em 0.23em 0.1em 0.1em;
  background:
    linear-gradient(currentColor, currentColor) center 54% / 65% 0.07em
      no-repeat,
    linear-gradient(currentColor, currentColor) center 76% / 65% 0.07em
      no-repeat;
}
.report-glyph--document .report-glyph::after {
  content: "";
  position: absolute;
  right: 0.21em;
  top: 0.08em;
  width: 0.2em;
  height: 0.21em;
  border-left: 0.07em solid currentColor;
  border-bottom: 0.07em solid currentColor;
  border-radius: 0 0 0 0.04em;
}
.report-glyph--grid .report-glyph {
  width: 0.39em;
  height: 0.39em;
  border-radius: 0.09em;
  background: currentColor;
  transform: translate(-0.25em, -0.25em);
  box-shadow:
    0.5em 0,
    0 0.5em,
    0.5em 0.5em;
}

#result .report-bar-title {
  color: #30333b;
  font-size: 14px;
}
#result .report-bar .back-file,
#result .report-bar .next-file {
  min-height: 34px;
  padding: 5px 10px;
  color: #2360a0;
  background: #f1f5fa;
}
#result .report-bar button:hover {
  background: #e5eef9;
}
.report-document .identity-name h1 {
  font-size: clamp(19px, 3vw, 24px);
}
.report-document .identity-name .identity-state {
  margin-top: 6px;
  gap: 5px 9px;
  align-items: center;
}
.report-document .identity-state b {
  font-size: 14px;
  letter-spacing: 0;
}
.report-document .identity-state small:empty {
  display: none;
}
.report-document .expiry-dial {
  min-width: 0;
  grid-row: auto;
  justify-items: end;
  padding: 0 0 0 8px;
}
.report-document .expiry-dial strong {
  font-size: 28px;
}
@media (max-width: 600px) {
  #result .report-bar .back-file,
  #result .report-bar .next-file {
    padding-inline: 7px;
  }
  .report-document .expiry-dial strong {
    font-size: 22px;
  }
  .report-document .identity-state b {
    font-size: 12px;
  }
}

.report-fields time {
  font-variant-numeric: tabular-nums;
}
.report-fields time small {
  display: inline-block;
  color: #626973;
  font-size: .85em;
  font-weight: 400;
}
.report-fields .report-pill.pass {
  background: #edf7f2;
}
.expiry-track {
  width: 84px;
  height: 4px;
  margin-top: 6px;
  border-radius: 3px;
  background: #d7e0ea;
  overflow: hidden;
}
.expiry-track span {
  display: block;
  min-width: 2px;
  height: 100%;
  background: #577491;
  border-radius: inherit;
}
@media (min-width: 601px) {
  .report-document .identity {
    padding: 24px;
  }
  .report-document .expiry-dial strong {
    font-size: 38px;
  }
}
@media (max-width: 600px) {
  .expiry-track { width: 48px; }
}

.p12-report .identity {
  grid-template-columns: auto minmax(0, 1fr);
  margin: 0;
  padding: 24px 28px;
  background: white;
}
.p12-report .identity-mark {
  background: linear-gradient(145deg, #335980, #193958);
  color: white;
  border-radius: 12px;
}
.p12-report .identity-mark .report-glyph::after {
  box-shadow: 0 0 0 .07em #28496a;
}
.p12-report .certificate-title {
  margin-block: 4px;
}
.p12-report .certificate-card {
  margin: 0 28px 26px;
}
.p12-report .key-dates {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f4f6f8;
}
.p12-report .fingerprint-group {
  gap: 12px;
}
@media (max-width: 600px) {
  .p12-report .identity { padding: 18px 16px; }
  .p12-report .certificate-card { margin: 0 16px 20px; }
  .p12-report .key-dates { padding: 12px; }
}

.p12-report .identity {
  padding-block: 28px;
  background: radial-gradient(ellipse at top right, #eaf0f6, transparent 62%), #fafbfd;
  border-radius: 0;
}
.p12-report .identity::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 0 0 0 60%;
  background: repeating-radial-gradient(ellipse at 110% 155%, transparent 0 12px, #526f9012 13px, transparent 14px 19px);
  mask-image: linear-gradient(90deg, transparent, black);
}
.p12-report .certificate-card { margin-top: 22px; }
.p12-report .key-dates {
  background: transparent;
  padding: 0 0 18px;
  margin-bottom: 0;
}
.report-fields .revoked-date dd { color: #ab3145; }
.report-fields time small { margin-inline-start: .35em; }
.p12-report .fingerprint-group {
  background: #f5f6f8;
  border-radius: 12px;
  padding: 14px 16px;
  gap: 14px;
}
.p12-report .fingerprint-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
}
.p12-report .fingerprint-row code {
  grid-column: 1 / -1;
  line-height: 1.65;
}
.p12-report .fingerprint-row button {
  grid-row: 1;
  color: #325e83;
  background: transparent;
  border-color: transparent;
}

@media (max-width: 600px) {
  .report-document {
    margin: 0 auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .report-document .report-section { margin-inline: 18px; padding-block: 20px; }
  #result .report-document .report-bar { padding: 8px 18px; }
  .report-document:not(.p12-report) .identity {
    margin: 4px 14px 0;
    padding: 16px 14px;
    gap: 8px 10px;
    background: linear-gradient(120deg, #f7f9fc, #eaf1f8);
  }
  .report-document .expiry-dial small { font-size: 11px; }
  .report-document .expiry-dial strong { font-size: 26px; }
  .certificate-heading .certificate-title { gap: 6px; }
  .certificate-heading h3 { flex-basis: 100%; font-size: 18px; }
  .certificate-heading .certificate-country,
  .certificate-heading .report-pill { font-size: 13px; line-height: 1.4; padding: 2px 8px; }
  .report-document :is(.key-dates, .profile-fields) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 10px;
  }
  .report-document :is(.key-dates, .profile-fields) .field-row {
    position: relative;
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    align-content: start;
  }
  .report-document .profile-fields .field-row:nth-child(5) {
    grid-column: 1 / -1;
  }
  .report-document .profile-fields .field-row:has(.copy-value) dt {
    min-height: 28px;
    padding-right: 70px;
    display: flex;
    align-items: center;
  }
  .report-document .profile-fields .copy-value {
    position: absolute;
    top: 0;
    right: 0;
    min-height: 28px;
    padding: 0 6px;
  }
  .report-document .fingerprint-group {
    background: transparent;
    border-radius: 0;
    padding: 0;
    gap: 0;
    border-top: 1px solid var(--section-rule);
  }
  .report-document .fingerprint-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 8px;
    padding: 8px 0;
  }
  .report-document .fingerprint-row + .fingerprint-row {
    border-top: 1px solid var(--row-rule);
  }
  .report-document .fingerprint-row:last-child { padding-bottom: 0; }
  .report-document .fingerprint-row button {
    grid-row: 1;
    color: #246298;
    background: transparent;
    border-color: transparent;
    min-height: 28px;
  }
  .report-document .fingerprint-row code {
    grid-column: 1 / -1;
    line-height: 1.55;
  }
}

.mobile-switcher { display: none; }
@media (max-width: 600px) {
  :root, .report-document { background: #f2f3f7; }
  .bar { min-height: 56px; gap: 8px; padding: 5px 16px; }
  .brand { gap: 6px; }
  .brand img { width: 30px; height: 30px; }
  .brand span { font-size: 19px; }
  .site-nav { gap: 3px; }
  .site-nav a { gap: 4px; min-height: 44px; padding-inline: 7px; font-size: 13px; }
  main { padding: 6px 16px calc(36px + env(safe-area-inset-bottom)); }
  #workspace .hero { display: block; min-height: 0; padding: 16px 4px; background: transparent; color: #17243a; }
  #workspace .hero p { color: #536177; margin: 6px 0; }
  #workspace .art { display: none; }
  :is(#workspace, #plugin-upload) .drop { padding: 26px 10px; background: #f1f5fb; border: 0; }
  #workspace .primary { min-height: 46px; border-radius: 12px; }
  #result .report-document .report-bar { background: #f2f3f7; min-height: 50px; }
  #result .report-bar .back-file, #result .report-bar .next-file { background: transparent; min-height: 44px; }
  .report-document .identity, .report-document:not(.p12-report) .identity {
    margin: 4px 14px 14px; padding: 20px; border-radius: 20px;
    background: linear-gradient(120deg,#e8f0fa,#fdfefe 75%);
    display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 12px;
  }
  .report-document .identity-mark { width: 48px; height: 48px; border-radius: 12px; }
  .report-document .identity-name h1 { font-size: 22px; }
  .report-document .expiry-dial {
    grid-column: 1/-1; grid-template-columns: minmax(0, 1fr); align-items: start;
    justify-items: start; border-top: 1px solid #dbe3ed; padding: 12px 0 0; gap: 0 12px;
  }
  .report-document .expiry-dial small { font-size: 13px; }
  .report-document .expiry-dial strong { font-size: 30px; }
  .report-document .expiry-track { width: 100%; grid-column: 1/-1; height: 3px; }
  .mobile-switcher:not(:empty) {
    display: flex; margin: 0 14px 12px; padding: 3px; background: #e5e7ed; border-radius: 13px;
  }
  .mobile-switcher button {
    flex: 1; min-height: 42px; border: 0; border-radius: 10px; background: transparent;
    color: #556071; font-size: 14px; font-weight: 600;
  }
  .mobile-switcher button[aria-pressed=true] { background: white; color: #1d3657; box-shadow: 0 1px 4px #17253c18; }
  .report-document .report-section, .p12-report .certificate-card {
    margin: 0 14px 14px; padding: 18px 16px; background: white; border-radius: 17px;
  }
  .report-document .report-section + .report-section { border: 0; }
  .report-section.mobile-inactive { display: none; }
  .report-document {
    --section-rule: #dce2e9;
    --row-rule: #edf0f4;
  }
  .report-document .report-section > h2 {
    font-size: 15px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--section-rule);
  }
  .report-document .profile-fields { padding: 0; }
  .report-document .profile-fields .field-row:nth-child(5)::before {
    content: "";
    display: block;
    height: 1px;
    margin-bottom: 6px;
    background: var(--section-rule);
  }
  .report-document .profile-fields .field-row:nth-child(5) .copy-value { top: 10px; }
  .report-document .certificate-heading {
    border-bottom: 1px solid #e6eaf0;
    padding-bottom: 14px;
  }
  .report-document .key-dates { padding-block: 14px 16px; }
  .report-document .certificate-card + .certificate-card {
    margin-top: 18px;
    padding-top: 18px;
  }
  .report-document .fingerprint-row button { min-height: 36px; }
}
@media (max-width: 360px) {
  .site-nav-icon { display: none; }
  .language-trigger .language-chevron { display: none; }
}

.report-document .identity.identity--verified {
  grid-template-areas: "icon name seal expiry";
  grid-template-columns: 52px minmax(0, 1fr) auto auto;
  background: linear-gradient(112deg, #f7faf9, #edf5f1);
}
:is(.identity--verified, .identity--invalid) .identity-mark { grid-area: icon; }
:is(.identity--verified, .identity--invalid) .identity-name { grid-area: name; }
.report-document .identity.identity--invalid {
  grid-template-areas: "icon name seal" "icon verdict seal";
  grid-template-columns: 52px minmax(0, 1fr) auto;
  row-gap: 5px;
  background: linear-gradient(115deg, #fcf9f9, #f9edef);
}
.identity--invalid .identity-name { align-self: end; }
.identity--invalid .identity-state { grid-area: verdict; align-self: start; }
.report-document .identity--invalid .identity-state b {
  color: #a32640;
  font-size: 19px;
}
.identity--invalid .identity-state b::before { display: none; }
.report-document .identity--verified .expiry-dial {
  grid-area: expiry;
  padding-inline-start: 20px;
  border-inline-start: 1px solid #d2e2db;
}
.identity--verified .expiry-track { background: #d8e7df; }
.identity--verified .expiry-track span { background: #528371; }

.signing-seal {
  --seal-ink: #247359;
  --seal-size: 80px;
  position: relative;
  isolation: isolate;
  grid-area: seal;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto 1fr;
  place-items: center;
  width: var(--seal-size);
  aspect-ratio: 1;
  margin-inline: 6px 10px;
  border: 2px solid var(--seal-ink);
  border-radius: 50%;
  background: #f2f8f4;
  color: var(--seal-ink);
  transform: rotate(-8deg);
}
.signing-seal::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 3px;
  border: 1px solid currentColor;
  border-radius: inherit;
  opacity: .55;
}
.signing-seal-caption {
  align-self: end;
  padding-bottom: 3px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
}
.signing-seal-caption:lang(en) { font-size: 10px; }
.signing-seal-band {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(100% + 14px);
  padding-block: 3px;
  color: white;
  font-size: 21px;
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: .06em;
}
.signing-seal-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--seal-ink);
  clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%);
}
.signing-seal::after {
  content: "";
  align-self: start;
  width: 10px;
  height: 5px;
  margin-top: 4px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}
.signing-seal--invalid {
  --seal-ink: #992f43;
  --seal-size: 130px;
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 76px;
  padding: 11px 8px;
  border-radius: 9px;
  background: #fffafa;
  transform: rotate(-3deg);
  text-align: center;
  white-space: nowrap;
}
.signing-seal--invalid::before {
  inset: 3px;
  border-radius: 5px;
  opacity: .36;
}
.signing-seal--invalid .signing-seal-caption {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 5px;
  padding: 0;
  color: #883d4d;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.signing-seal--invalid .signing-seal-caption::before,
.signing-seal--invalid .signing-seal-caption::after {
  content: "";
  width: 7px;
  border-top: 1px solid currentColor;
  opacity: .55;
}
.signing-seal--invalid .signing-seal-caption:lang(en) {
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.signing-seal--invalid .signing-seal-band {
  display: block;
  width: auto;
  padding: 0;
  color: var(--seal-ink);
  font-size: 26px;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: .035em;
}
.signing-seal--invalid .signing-seal-band:lang(en) {
  font-size: 23px;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.signing-seal--invalid::after,
.signing-seal--invalid .signing-seal-band::before {
  content: none;
}
@media (max-width: 600px) {
  .report-document .identity.identity--verified {
    grid-template-areas: "icon name name" "rule rule rule" "expiry expiry seal";
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }
  .identity--verified::before {
    content: "";
    grid-area: rule;
    border-top: 1px solid #d2e2db;
  }
  .report-document .identity--verified .expiry-dial { border: 0; padding: 0; }
  .signing-seal { --seal-size: 66px; margin-inline: 4px; }
  .signing-seal-band { font-size: 17px; }
  .report-document .identity.identity--invalid {
    grid-template-areas: "icon name name" "rule rule rule" "verdict verdict seal";
    grid-template-columns: 48px minmax(0, 1fr) auto;
    row-gap: 12px;
  }
  .identity--invalid::before {
    content: "";
    grid-area: rule;
    border-top: 1px solid #ead6da;
  }
  .identity--invalid .identity-name, .identity--invalid .identity-state { align-self: center; }
  .signing-seal--invalid { --seal-size: 110px; min-height: 66px; gap: 3px; padding: 9px 6px; }
  .signing-seal--invalid .signing-seal-band { font-size: 23px; }
  .signing-seal--invalid .signing-seal-band:lang(en) { font-size: 20px; }
}
@media (forced-colors: active) {
  .signing-seal-band { color: CanvasText; }
}

.report-document [data-group="certificate"] .certificate-title h3 {
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.3;
}
.report-document [data-group="certificate"] .certificate-country {
  padding: 0;
  background: transparent;
  color: #576879;
  font-size: 13px;
  font-weight: 500;
}

.check-heading {
  padding: 8px 0 0;
}
.check-heading h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
  letter-spacing: -.035em;
}
.check-heading p {
  margin: 8px 0 0;
  color: #586978;
  font-size: 14px;
  line-height: 1.55;
}
@media (max-width: 600px) {
  .check-heading { padding: 12px 4px 0; }
}
:is(#workspace, #plugin-upload) .drop {
  container-type: inline-size;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(250px, 32vh, 340px);
  padding: 36px 16px;
  align-content: center;
  gap: 7px;
  background: radial-gradient(ellipse at 50% 42%, #ffffffad, transparent 72%) #e8f1f1;
  border: 1px solid #ccdddd;
  border-radius: 14px;
}
:is(#workspace, #plugin-upload) .drop:is(:hover, :focus-within) { background-color: #e1eeeb; border-color: #9bbfb4; }
:is(#workspace, #plugin-upload) .drop.over { background-color: #d5ebe1; border-color: #60a98d; box-shadow: inset 0 0 0 2px #72b99f; }
:is(#workspace, #plugin-upload) .drop:focus-within { outline: 2px solid #366eba; outline-offset: 2px; }
.drop input { z-index: 2; }

.upload-signal {
  position: relative;
  isolation: isolate;
  width: 152px;
  height: 152px;
  display: grid;
  place-items: center;
  margin-block: 34px 42px;
}

:is(#workspace, #plugin-upload) .drop strong { font-size: clamp(18px, 2vw, 22px); color: #183b4b; }
#workspace #status:empty { display: none; }

.upload-signal {
  border-radius: 50%;
  background: radial-gradient(circle, #eaf8f1 0 41%, transparent 42%);
}
.upload-signal::before, .upload-signal::after, .outer-ripple {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.upload-signal::before, .outer-ripple { inset: 11px; border: 1px solid #8acfb0; opacity: .4; }
.outer-ripple { transform: scale(1.55); opacity: .22; }
.upload-signal::after { inset: 22px; border: 2px dashed #72cfaa; }
.upload-signal svg {
  box-sizing: content-box;
  width: 28px;
  height: 28px;
  padding: 14px;
  border: 1px solid #addcc7;
  border-radius: 16px;
  background: white;
  color: #168362;
}
#fileHint:empty { display: none; }

:is(#workspace, #plugin-upload).pending .upload-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
:is(#workspace, #plugin-upload).pending .drop,
:is(#workspace.pending #status, #plugin-upload.pending .plugin-feedback) {
  grid-area: 1 / 1;
}
:is(#workspace, #plugin-upload).pending .drop {
  padding: 20px 16px 78px;
  cursor: wait;
  background:
    radial-gradient(ellipse at 50% 40%, #164e48, transparent 72%),
    linear-gradient(#76d6bc12 1px, transparent 1px) center / 24px 24px,
    linear-gradient(90deg, #76d6bc12 1px, transparent 1px) center / 24px 24px,
    #10252e;
  border-color: #28645f;
}
:is(#workspace, #plugin-upload).pending .drop input { pointer-events: none; }
:is(#workspace, #plugin-upload).pending .drop strong { color: #e8fbf5; font-size: 16px; }
:is(#workspace, #plugin-upload).pending .drop small { display: none; }
.pending .upload-signal {
  margin-block: 0 8px;
  background: radial-gradient(circle, #50cfa333, transparent 70%);
}
.pending .upload-signal::before {
  inset: 0;
  border-color: #75e6be66;
  opacity: 1;
}
.pending .outer-ripple {
  inset: 1px;
  border: 0;
  background: conic-gradient(transparent 72%, #64e8b843 97%, #a1f9d5 99.8%, transparent 100%);
  transform: none;
  opacity: 1;
}
.pending .upload-signal::after { border-color: #89eac78c; }
.pending .upload-signal svg {
  z-index: 1;
  color: #a1f9d5;
  background: #103830;
  border-color: #79e7bf;
  box-shadow: 0 0 26px #59e8b84d;
}
#workspace.pending #status {
  position: relative;
  align-self: end;
  justify-self: center;
  width: min(290px, calc(100% - 32px));
  margin: 0 0 23px;
  color: #bbf4e1;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  pointer-events: none;
}
#workspace.pending #status::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background:
    linear-gradient(90deg, transparent, #84edc5, transparent) center / 35% 100% no-repeat,
    #8ae6c22b;
}
@media (prefers-reduced-motion: no-preference) {
  .upload-signal::before, .outer-ripple { animation: outer-spread 4.8s linear infinite; }
  .outer-ripple { animation-delay: -2.4s; }
  .upload-signal::after { animation: upload-ring-turn 18s linear infinite; }
  .pending .upload-signal::before { animation: none; }
  .pending .outer-ripple { animation: upload-ring-turn 2.4s linear infinite; }
  .pending .upload-signal::after { animation-duration: 8s; }
  #workspace.pending #status::after { animation: scan-track 1.5s ease-in-out infinite alternate; }
}
@keyframes scan-track {
  from { background-position: left, center; }
  to { background-position: right, center; }
}
@keyframes outer-spread {
  0% { transform: scale(.94); opacity: 0; }
  14% { opacity: .55; }
  100% { transform: scale(1.75); opacity: 0; }
}
@keyframes upload-ring-turn { to { transform: rotate(1turn); } }
.upload-formats-title {
  margin: 18px 0 10px;
  color: #314953;
  font-size: 13px;
  font-weight: 600;
}
.upload-formats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; }
.upload-formats > div { padding-inline: 18px; }
.upload-formats > div:first-child { padding-left: 0; }
.upload-formats > div + div { border-left: 1px solid #dfe8e8; }
.upload-formats dt { display: flex; align-items: center; gap: 9px; color: #314953; font-size: 13px; font-weight: 600; }
.upload-formats dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 0 37px; }
.upload-formats code { font: 12px ui-monospace, monospace; color: #256650; }
@media (max-width: 600px) {
  .upload-formats { grid-template-columns: 1fr; }
  .upload-formats > div { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; }
  .upload-formats > div + div { border: 0; border-top: 1px solid #edf1f1; }
  .upload-formats dd { justify-content: flex-end; margin: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .detection-panel {
    animation: upload-arrive 360ms ease-out backwards;
  }
  :is(#workspace, #plugin-upload) .drop {
    transition: background-color 180ms, border-color 180ms, box-shadow 180ms;
  }
  .upload-signal svg { transition: transform 240ms ease-out; }
  :is(#workspace, #plugin-upload):not(.pending) .drop.over .upload-signal svg {
    transform: translateY(-5px) scale(1.08);
  }

}
@keyframes upload-arrive {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.h5-panel {
  max-width: 720px;
  margin-top: 18px;
}
.h5-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.h5-fields legend {
  margin-bottom: 14px;
  padding: 0;
  color: #183b4b;
  font-size: 17px;
  font-weight: 650;
}
.h5-field-hint {
  display: block;
  margin-top: 6px;
  color: #586978;
  font-size: 12px;
  line-height: 1.5;
}
.h5-wide { grid-column: 1 / -1; }
.h5-fields label:not(.drop) {
  min-width: 0;
  margin: 0;
  color: #314953;
  font-size: 14px;
  font-weight: 600;
}
.h5-fields .h5-platforms {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.h5-platforms legend {
  margin-bottom: 6px;
  color: #314953;
  font-size: 14px;
  font-weight: 600;
}
.h5-platform-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.h5-platform-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #ced9df;
  border-radius: 9px;
  background: #f7fafb;
  cursor: pointer;
}
.h5-platform-options label:has(input:checked) {
  border-color: #82b5a6;
  background: #eaf5f0;
  color: #165e4a;
}
.h5-platform-options input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #20735d;
}
.h5-platform-options label:has(input:disabled) { cursor: default; }
.h5-fields input:not([type="checkbox"]):not([type="radio"]) {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  border: 1px solid #ced9df;
  border-radius: 9px;
  padding: 8px 12px;
  background: #f7fafb;
  color: #202737;
  font-size: 16px;
  font-weight: 400;
}
.h5-fields .h5-field-error { color: #ac2c29; }
.h5-field-error:empty { display: none; }
.h5-fields input[aria-invalid="true"],
.h5-platforms[aria-invalid="true"] .h5-platform-options label { border-color: #ac2c29; }
.h5-launch-themes .h5-platform-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.h5-theme-swatch {
  flex: none;
  width: 15px;
  height: 15px;
  border: 1px solid #667c8466;
  border-radius: 50%;
}
.h5-theme-light { background: #f6f7fb; }
.h5-theme-midnight { background: #101a32; }
.h5-theme-forest { background: #0b242b; }
@media (max-width: 420px) {
  .h5-launch-themes .h5-platform-options label { gap: 5px; padding-inline: 6px; }
  .h5-launch-themes .h5-theme-swatch { display: none; }
}
.h5-fields input::file-selector-button {
  margin-right: 8px;
  padding: 2px 8px;
  border: 1px solid #c7ddd8;
  border-radius: 5px;
  background: #e9f4f1;
  color: #24584b;
  font: inherit;
  font-size: 14px;
}
.h5-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 20px;
}
.h5-actions .primary {
  width: auto;
  margin: 0;
}
.h5-actions a {
  padding: 8px 12px;
  border-radius: 9px;
  background: #e5f4ee;
  color: #165e4a;
  font-weight: 650;
  text-decoration: none;
}
.h5-actions a:hover { background: #d5ebe1; }
.h5-actions a:focus-visible { outline: 2px solid #366eba; }
#h5-status { margin: 12px 0 0; color: #435a66; font-size: 14px; }
@media (max-width: 600px) {
  .h5-panel { margin-top: 14px; padding: 20px; }
  .h5-fields { grid-template-columns: 1fr; }
}

.detection-panel {
  --panel-inset: 24px;
  margin-top: 18px;
  padding: 0;
}
.detection-header {
  padding-inline: var(--panel-inset);
  border-bottom: 1px solid #e4ebe9;
  border-radius: 16px 16px 0 0;
  background: #fbfcfc;
}
.detection-body { padding: var(--panel-inset); }
.check-modes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: max-content;
  max-width: 100%;
}
.check-modes a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 10px clamp(10px, 2.6vw, 18px);
  color: #50646c;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.check-modes a:hover { color: #175c4b; background: #f4f8f6; }
.check-modes a[aria-selected="true"] { color: #165e4a; }
.check-modes a:focus-visible { outline: 2px solid #278469; outline-offset: -4px; border-radius: 7px; }
.check-modes::after {
  content: "";
  position: absolute;
  inset: auto auto -1px 0;
  width: 50%;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: #278469;
  pointer-events: none;
}
.detection-panel[data-mode="pairing"] .check-modes::after { transform: translateX(100%); }
@media (prefers-reduced-motion: no-preference) {
  .check-modes::after { transition: transform 200ms cubic-bezier(.2, .75, .3, 1); }
}
@media (max-width: 600px) {
  .detection-panel { --panel-inset: 16px; margin-top: 14px; }
  .check-modes a { min-height: 46px; }
}
.pair-form { display: grid; }
.pair-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.pair-form legend, .pair-heading { padding: 0; margin: 0; color: #183b4b; font-size: 19px; font-weight: 650; }
#pair-form-title:focus, #pair-status:focus, .pair-report:focus { outline: none; }
.pair-hint { margin: 6px 0 0; color: #586978; font-size: 13px; line-height: 1.55; }
.pair-files {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 18px 0;
}
.pair-files .pair-file {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  min-height: 88px;
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed #a9bdbf;
  border-radius: 12px;
  background: #f5f8fa;
  color: #294953;
}
.pair-file input[type="file"] {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.pair-file:has(input:focus-visible) { outline: 2px solid #278469; outline-offset: 2px; }
.pair-files .pair-file:is(:hover, .is-ready), .pair-files.is-over .pair-file {
  border-color: #79aa9c;
  background: #ecf6f2;
}
.pair-files .pair-file.is-ready { border-style: solid; }
.pair-file > span:last-child { min-width: 0; }
.pair-file > .report-section-icon { width: 40px; height: 40px; border-radius: 10px; font-size: 19px; }
.pair-file strong, .pair-file small { display: block; }
.pair-file strong { font-size: 15px; }
.pair-file small { margin-top: 3px; color: #496471; font-size: 12px; overflow-wrap: anywhere; }
.pair-file-link {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 33px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid #d6e2e2;
  border-radius: 50%;
  background: #fff;
  color: #536a73;
  font-size: 17px;
  font-weight: 650;
  pointer-events: none;
}
.pair-files.is-paired .pair-file-link { border-color: #90bfaf; background: #e5f3ec; color: #19604d; }
.pair-actions {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.pair-actions .pair-password {
  display: grid;
  flex: 1;
  gap: 5px;
  max-width: 360px;
  margin: 0;
  color: #314953;
  font-size: 14px;
  font-weight: 600;
}
.pair-actions .pair-password input { min-width: 0; min-height: 44px; margin: 0; }
.pair-actions .primary {
  width: auto;
  min-height: 44px;
  margin: 0 0 0 auto;
  padding-inline: 18px;
  background: #17664f;
}
.pair-actions .primary:hover:not(:disabled) { background: #125440; }
.pair-actions .primary:disabled { background: #e7ecef; color: #626f7c; }
#pair-status { margin: 12px 0 0; color: #435a66; font-size: 14px; }
#pair-status.pair-error { color: #ac2c29; }

.pair-report, .pair-result {
  --pair-ink: #17604e;
  --pair-border: #c9e2d8;
  --pair-wash: #edf8f3;
}
.pair-report[data-tone="fail"], .pair-result[data-tone="fail"] {
  --pair-ink: #a22b3b;
  --pair-border: #efc5cb;
  --pair-wash: #fff1f2;
}
.pair-report[data-tone="unknown"], .pair-result[data-tone="unknown"] {
  --pair-ink: #795317;
  --pair-border: #ead9b3;
  --pair-wash: #fff8e8;
}
.pair-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 17px 18px;
  border: 1px solid var(--pair-border);
  border-radius: 13px;
  background: var(--pair-wash);
  color: var(--pair-ink);
}
.pair-summary-icon, .pair-row-icon {
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
}
.pair-summary-icon { width: 40px; aspect-ratio: 1; background: var(--pair-ink); color: #fff; font-size: 23px; }
.pair-summary .pair-heading { color: inherit; }
.pair-summary-copy p { margin: 3px 0 0; color: #526477; font-size: 13px; }
.pair-edit {
  min-height: 36px;
  padding-inline: 10px;
  border: 1px solid var(--pair-border);
  border-radius: 7px;
  background: #fff;
  color: var(--pair-ink);
  font-size: 13px;
  font-weight: 650;
}
.pair-edit:hover { border-color: var(--pair-ink); }
.pair-results { display: grid; gap: 8px; margin: 13px 0 0; padding: 0; list-style: none; }
.pair-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e3e9ed;
  border-radius: 9px;
  color: #294953;
  font-size: 14px;
}
.pair-result[data-tone="fail"] { border-color: var(--pair-border); background: #fffbfb; }
.pair-row-icon { width: 23px; aspect-ratio: 1; background: var(--pair-wash); color: var(--pair-ink); }
.pair-result p { margin: 3px 0 0; font-size: 13px; color: #586978; overflow-wrap: anywhere; }
.pair-pill { padding: 3px 8px; border-radius: 5px; background: var(--pair-wash); color: var(--pair-ink); font-size: 12px; font-weight: 650; white-space: nowrap; }

.pair-scan {
  --scan-ink: #78f5ce;
  --scan-rgb: 120 245 206;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: clamp(47px, 13vw, 95px) minmax(7px, 1fr) clamp(57px, 16vw, 102px) minmax(7px, 1fr) clamp(47px, 13vw, 95px);
  grid-area: 1 / 1;
  align-items: center;
  min-height: 235px;
  padding: 26px clamp(12px, 7vw, 106px) 64px;
  overflow: hidden;
  border: 1px solid #276352;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at center, rgb(var(--scan-rgb) / .18), transparent 66%),
    linear-gradient(135deg, #102c33, #0a2528 52%, #132c36);
}
.pair-scan::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgb(var(--scan-rgb) / .1) 1px, transparent 1px) center / 21px 21px,
    linear-gradient(90deg, rgb(var(--scan-rgb) / .1) 1px, transparent 1px) center / 21px 21px;
  mask-image: radial-gradient(ellipse at center, #000 16%, transparent 88%);
}
.pair-scan-node {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 68px;
  border: 1px solid rgb(var(--scan-rgb) / .32);
  border-radius: 11px;
  background: #133735;
  color: #d0ede6;
  font-size: 11px;
  font-weight: 650;
}
.pair-scan-node .report-section-icon { background: transparent; color: var(--scan-ink); font-size: 18px; }
.pair-scan[data-phase="certificate"] .pair-scan-node:first-child,
.pair-scan[data-phase="profile"] .pair-scan-node:last-child {
  border-color: var(--scan-ink);
  box-shadow: 0 0 18px rgb(var(--scan-rgb) / .25);
}
.pair-scan-track {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, rgb(var(--scan-rgb) / .12), rgb(var(--scan-rgb) / .62));
}
.pair-scan-track:nth-child(4) { transform: scaleX(-1); }
.pair-scan-track::after {
  content: "";
  position: absolute;
  inset: -3px 0;
  background: linear-gradient(90deg, transparent 8%, var(--scan-ink) 80%, #f2fff9 88%, transparent 91%);
  background-size: 38% 100%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 5px var(--scan-ink));
  animation: pair-scan-in 1.08s linear infinite;
}
.pair-scan-track:nth-child(4)::after { animation-delay: -.25s; }
.pair-scan-core {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid rgb(var(--scan-rgb) / .4);
  border-radius: 50%;
  background: radial-gradient(circle, #1c4842, #0b282b 68%);
  color: var(--scan-ink);
  box-shadow: 0 0 25px rgb(var(--scan-rgb) / .27);
  font-size: clamp(22px, 6vw, 32px);
  font-weight: 670;
}
.pair-scan-core::before, .pair-scan-core::after { content: ""; position: absolute; border-radius: 50%; }
.pair-scan-core::before {
  inset: 6px;
  border: 1px solid rgb(var(--scan-rgb) / .16);
  border-top-color: var(--scan-ink);
  border-right-color: rgb(var(--scan-rgb) / .72);
  animation: pair-scan-orbit 1.3s linear infinite;
}
.pair-scan-core::after {
  inset: -2px;
  border: 1px solid var(--scan-ink);
  animation: pair-scan-ripple 1.5s cubic-bezier(.18, .6, .44, 1) infinite;
}
.pair-scan[data-tone="fail"] { --scan-ink: #ffad9c; --scan-rgb: 255 173 156; }
.pair-scan[data-tone="unknown"] { --scan-ink: #ffdb8f; --scan-rgb: 255 219 143; }
.pair-scan[data-phase="done"] .pair-scan-core { box-shadow: 0 0 28px rgb(var(--scan-rgb) / .55); border-color: var(--scan-ink); }
.pair-scan[data-phase="done"] .pair-scan-core::before,
.pair-scan[data-phase="done"] .pair-scan-track::after { animation: none; }
.pair-scan[data-phase="done"] .pair-scan-core::after { animation: pair-scan-ripple .3s ease-out both; }
.pair-scan:not([hidden]) + #pair-status {
  z-index: 1;
  grid-area: 1 / 1;
  align-self: end;
  justify-self: center;
  margin: 0 12px 24px;
  color: #c6efe3;
  text-align: center;
}
@keyframes pair-scan-in {
  from { background-position: -50% center; opacity: 0; }
  20%, 80% { opacity: 1; }
  to { background-position: 151% center; opacity: 0; }
}
@keyframes pair-scan-orbit { to { transform: rotate(1turn); } }
@keyframes pair-scan-ripple {
  from { opacity: .8; transform: scale(.92); }
  to { opacity: 0; transform: scale(1.48); }
}
@media (max-width: 600px) {
  .pair-files { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pair-files .pair-file { min-height: 65px; }
  .pair-file-link { display: none; }
  .pair-actions { flex-direction: column; align-items: stretch; }
  .pair-actions .pair-password { max-width: none; }
  .pair-actions .primary { width: 100%; }
  .pair-summary { grid-template-columns: auto minmax(0, 1fr); padding: 14px 12px; gap: 9px; }
  .pair-edit { grid-column: 2; justify-self: start; }
  .pair-scan { padding-inline: 10px; min-height: 205px; }
}
@media (prefers-reduced-motion: reduce) {
  .pair-scan-core::before, .pair-scan-core::after, .pair-scan-track::after { animation: none; }
}

.plugin-panel, .plugin-report { margin-top: 18px; }
.plugin-mobile-prompt,
#plugin-upload.pending .plugin-desktop-prompt { display: none; }
.plugin-scope-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #dbe8e7;
  border-radius: 10px;
  background: #f3f8f7;
  color: #425c62;
  font-size: 13px;
  line-height: 1.6;
}
.plugin-panel .plugin-scope-note { margin-top: 16px; }
.plugin-scope-note strong { color: #204e4a; }
.plugin-scope-note p { margin: 2px 0 0; }
.plugin-scope-icon {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  border: 1px solid #8cbfb1;
  border-radius: 50%;
  background: #e4f2ee;
  color: #256c5b;
  font-size: 12px;
  font-weight: 750;
}
.upload-signal--shield svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.plugin-local-note, .plugin-report-caption, #plugin-status { color: #4d646c; font-size: 13px; }
#plugin-status { margin: 10px 0 0; overflow-wrap: anywhere; }
#plugin-upload.pending .plugin-feedback {
  position: relative;
  align-self: end;
  justify-self: center;
  width: min(320px, calc(100% - 32px));
  margin-bottom: 18px;
  text-align: center;
}
#plugin-upload.pending #plugin-status { margin: 0 0 5px; color: #bbf4e1; }
.plugin-progress { display: flex; align-items: center; gap: 12px; }
.plugin-progress progress { flex: 1; min-width: 40px; height: 5px; accent-color: #75e6be; }
.plugin-progress button {
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid #84edc54d;
  border-radius: 6px;
  background: #143a36;
  color: #d6fff0;
  font-size: 12px;
}
.plugin-progress button:hover { background: #1e5048; }
#plugin-upload.pending .drop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, #84edc522 49%, #84edc575 50%, transparent 51%);
  mask-image: linear-gradient(90deg, transparent, #000 28% 72%, transparent);
  opacity: .6;
  transform: translateY(-22%);
}
@media (prefers-reduced-motion: no-preference) {
  #plugin-upload.pending .drop::after { animation: plugin-sweep 2.6s ease-in-out infinite; }
}
@keyframes plugin-sweep {
  0% { opacity: 0; transform: translateY(-45%); }
  15%, 80% { opacity: .7; }
  100% { opacity: 0; transform: translateY(45%); }
}
.plugin-report { display: grid; gap: 18px; }
.plugin-report:focus { outline: none; }
.plugin-report[data-state="high"] { border-color: #edc7ce; }
.plugin-report[data-state="review"] { border-color: #e8d8b9; }
.plugin-report-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.plugin-report-bar button { min-height: 36px; white-space: nowrap; }
.plugin-app {
  display: grid;
  min-width: 0;
  gap: 16px;
  padding: 20px;
  border: 1px solid #e2e7ef;
  border-radius: 14px;
  background: linear-gradient(110deg, #f7f9fc, #eef3f9);
}
.plugin-app-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.plugin-app-identity .identity-mark { background: #e5f0eb; color: #266e58; }
.plugin-app-name { overflow-wrap: anywhere; }
.plugin-app-name h3 { margin: 0; color: #202839; font-size: clamp(18px, 3vw, 25px); line-height: 1.25; }
.plugin-app-name code { display: block; margin-top: 4px; color: #526175; font-size: 12px; }
.plugin-app-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid #dce4ed;
}
.plugin-app-facts dt { color: #526175; font-size: 12px; }
.plugin-app-facts dd { margin: 4px 0 0; color: #202839; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.plugin-signing {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: #e2e7ef;
  color: #4b586d;
  font-size: 12px;
}
.plugin-signing[data-tone="signed"] { background: #dcefe6; color: #215f4b; }
.plugin-signing[data-tone="attention"] { background: #f6ecd5; color: #755119; }
.plugin-verdict {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid #d8e8e1;
  border-radius: 12px;
  background: #f5faf7;
}
.plugin-verdict h3 { margin: 0 0 5px; color: #20664e; font-size: 17px; }
.plugin-report[data-state="clear"] .plugin-verdict {
  padding: 17px 18px;
  border-color: #dfe6ee;
  background: #f8fafc;
  font-family: "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}
.plugin-report[data-state="clear"] .plugin-verdict h3 {
  margin-bottom: 6px;
  color: #28384a;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}
.plugin-report[data-state="clear"] .plugin-report-caption { margin: 0; color: #46586d; line-height: 1.75; }
.plugin-result-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #e8eff6;
  color: #4d6783;
  font: 600 14px/1 system-ui, sans-serif;
}
.plugin-report[data-state="high"] .plugin-verdict {
  border-color: #edb6bd;
  border-inline-start: 4px solid #bf2840;
  background: linear-gradient(110deg, #fff1f3, #fff9f9);
}
.plugin-report[data-state="high"] .plugin-verdict h3 { color: #a11d33; font-size: clamp(20px, 3vw, 24px); }
.plugin-alert-content { display: flex; align-items: flex-start; gap: 13px; }
.plugin-alert-content > div { flex: 1; min-width: 0; }
.plugin-alert-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ad233b;
  color: #fff;
  font-weight: 750;
}
.plugin-threat-summary { margin: 0 0 8px; color: #7d2335; font-weight: 650; line-height: 1.55; }
.plugin-report[data-state="review"] .plugin-verdict { border-color: #e8d8b9; background: #fcf8ef; }
.plugin-report[data-state="review"] .plugin-verdict h3 { color: #805316; }
.plugin-report-caption, .plugin-note { margin: 5px 0; line-height: 1.5; }
.plugin-note { color: #735223; font-size: 13px; }
.plugin-verdict-scope {
  margin: 7px 0 0;
  color: #5e6d7b;
  font-size: 12px;
  line-height: 1.55;
}
@media (max-width: 600px) {
  #plugin-upload {
    padding: 14px;
    border-radius: 16px;
  }
  #plugin-upload:not(.pending) .drop {
    min-height: 0;
    padding: 24px 12px 19px;
    gap: 8px;
    background: linear-gradient(155deg, #f7fbfa, #eaf5ef);
    border-color: #c9dfd7;
  }
  #plugin-upload:not(.pending) .drop.over {
    background: #daf0e5;
    border-color: #4e967b;
  }
  #plugin-upload .upload-signal {
    width: 74px;
    height: 74px;
    margin: 0 0 4px;
  }
  #plugin-upload:not(.pending) .upload-signal {
    background: #e0f1e8;
    border: 1px solid #cfe5da;
  }
  #plugin-upload:not(.pending) .upload-signal::before,
  #plugin-upload:not(.pending) .upload-signal::after,
  #plugin-upload:not(.pending) .outer-ripple { display: none; }
  #plugin-upload .upload-signal svg {
    width: 25px;
    height: 25px;
    padding: 10px;
    border-radius: 13px;
  }
  #plugin-upload .plugin-desktop-prompt { display: none; }
  #plugin-upload:not(.pending) .plugin-mobile-prompt {
    display: inline-grid;
    place-items: center;
    min-height: 44px;
    padding: 0 23px;
    border-radius: 10px;
    background: #17654f;
    color: white;
    font-size: 16px;
    font-weight: 650;
  }
  #plugin-upload .plugin-scope-note {
    margin-top: 14px;
    padding: 14px 2px 1px;
    border: 0;
    border-top: 1px solid #e1e9e6;
    border-radius: 0;
    background: transparent;
  }
  #plugin-upload.pending .drop { min-height: 220px; }
  #plugin-upload.pending .plugin-progress button { min-height: 44px; }
}
@media (max-width: 520px) {
  .plugin-panel, .plugin-report { margin-top: 14px; }
  .plugin-app { padding: 14px; }
  .plugin-app-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plugin-report-bar .next-file { padding-inline: 7px; }
}

@media (min-width: 1061px) {
  .bar:lang(en) { gap: 14px; }
  .bar:lang(en) .site-nav a { padding-inline: 7px; }
  .bar:lang(en) .site-nav::before { margin-inline-end: 5px; }
  .bar:lang(en) .community-link { padding-inline: 7px; }
}
@media (max-width: 1060px) {
  .bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding-block: 7px 2px; }
  .brand { grid-area: 1 / 1; width: max-content; }
  .header-actions { grid-area: 1 / 2; }
  .site-nav { grid-area: 2 / 1 / auto / -1; justify-self: start; }
  .site-nav::before { display: none; }
}
@media (max-width: 600px) {
  #result .report-bar:lang(en),
  .plugin-report-bar:lang(en) {
    grid-template-columns: max-content minmax(0, 1fr) max-content;
  }
  .report-bar-title:lang(en) { justify-self: center; text-align: center; line-height: 1.3; }
}
@media (max-width: 640px) {
  .bar { row-gap: 3px; padding: 5px 16px 0; }
  .header-actions { gap: 2px; }
  .community-trigger, .language-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 44px;
    padding: 0 6px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--utility-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
  }
  .community-trigger .community-icon { animation: none; }
  .community-trigger:hover, .community-trigger[aria-expanded="true"] { background: #eaf3fa; }
  .community-trigger:focus-visible { outline: 2px solid #3087b5; }
  .community-links {
    display: none;
    position: absolute;
    z-index: 10;
    inset: calc(100% + 4px) 0 auto auto;
    width: max-content;
    min-width: 154px;
    padding: 4px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px #24465d1a, 0 2px 6px #24465d0d;
  }
  .community-trigger[aria-expanded="true"] + .community-links { display: grid; }
  .community-link { justify-content: flex-start; gap: 8px; min-height: 44px; }
  .community-link + .community-link::before { content: none; }
  .language-menu button { min-height: 44px; }
  .site-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-self: stretch;
    gap: 0;
    border-top: 1px solid #edf1ef;
  }
  .site-nav a {
    position: relative;
    min-height: 44px;
    gap: 5px;
    padding-inline: 2px;
    font-size: 13px;
    text-align: center;
    line-height: 1.25;
    white-space: normal;
  }
  .site-nav a[aria-current="page"] > span:last-child::after { content: none; }
  .site-nav a[aria-current="page"]::after {
    position: absolute;
    inset: auto 18% -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #278469;
    content: "";
  }
}
