:root {
  font-family: Tahoma, Verdana, Arial, sans-serif;
  color: #171717;
  background: #3a6ea5;
  font-size: 100%;
  --surface: #d4d0c8;
  --paper: #fff;
  --navy: #0a246a;
  --muted: #535353;
}
/* Scale typography and layout with rem; keep classic beveled edges pixel-crisp. */
* { box-sizing: border-box; }
body { font-size: 0.8125rem; margin: 0; min-height: 100vh; padding: 1.5rem; background: #3a6ea5; }
button, input, textarea, select { font: inherit; border-radius: 0; }
button { color: #111; background: var(--surface); border: 2px solid; border-color: #fff #404040 #404040 #fff; box-shadow: inset -1px -1px #808080; cursor: pointer; min-height: 2.25rem; padding: 0.375rem 0.875rem; }
button:active { border-color: #404040 #fff #fff #404040; box-shadow: inset 1px 1px #808080; }
button:focus-visible, summary:focus-visible { outline: 2px dotted var(--navy); outline-offset: -0.3125rem; }
button:disabled { color: #808080; text-shadow: 1px 1px #fff; cursor: default; }
input, select, textarea { color: #171717; background: #fff; border: 2px solid; border-color: #808080 #fff #fff #808080; border-radius: 0; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 1px dotted #171717; outline-offset: 2px; }
#domain:focus-visible { outline: none; }
[hidden] { display: none !important; }
.desktop-label, .desktop-footer { max-width: 60rem; margin-inline: auto; color: #e1eeee; display: flex; align-items: center; gap: 0.625rem; font-size: 0.625rem; }
.desktop-label { margin-bottom: 0.75rem; letter-spacing: 1.5px; }
.mini-icon { font-size: 1.125rem; }
.desktop-note { margin-left: auto; letter-spacing: .5px; opacity: .8; }
.desktop-footer { margin-top: 1rem; justify-content: space-between; opacity: .8; }
.window { max-width: 60rem; margin: 0 auto; padding: 2px; background: var(--surface); border: 2px solid; border-color: #f5f4f1 #343434 #343434 #f5f4f1; box-shadow: 1px 1px #111, 0.4375rem 0.5625rem 0 #194c5033; }
.titlebar { min-height: 1.5rem; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(90deg, var(--navy), #a6caf0); color: #fff; font-size: 0.75rem; font-weight: bold; padding: 2px 0.25rem; }
.window-controls { display: flex; gap: 3px; }
.window-controls i { font: bold 0.8125rem Arial; font-style: normal; display: grid; place-items: center; width: 1.1875rem; height: 1.1875rem; color: #111; background: var(--surface); border: 2px solid; border-color: #fff #404040 #404040 #fff; }
.menubar { display: flex; align-items: center; gap: 0.25rem; padding: 3px 0.5rem; border-bottom: 1px solid #aaa; box-shadow: 0 1px #eee; }
.menubar label { margin-left: auto; font-size: 0.6875rem; }
.menubar select { margin-left: 0.375rem; min-height: 1.875rem; padding: 3px 0.375rem; background: #e9e7e1; font-size: 0.75rem; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 0.5rem 0.625rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--navy); color: #fff; }
.menu-popup { position: absolute; top: 100%; left: 0; z-index: 5; min-width: 11.875rem; max-width: calc(100vw - 2.5rem); background: var(--surface); border: 2px solid; border-color: #fff #404040 #404040 #fff; box-shadow: 3px 3px #0003; padding: 3px; }
.menu-popup button { display: block; text-align: left; width: 100%; border: 0; box-shadow: none; padding: 0.5625rem 0.75rem; white-space: nowrap; }
.menu-popup button:not(:disabled):hover, .menu-popup button:focus-visible { background: var(--navy); color: #fff; }
.intro { display: flex; align-items: center; gap: 1.25rem; padding: 1.25rem 1.5rem 1rem; }
.intro h1 { font-size: 1.3125rem; letter-spacing: -.5px; margin: 0 0 0.375rem; font-weight: normal; }
.intro p { color: var(--muted); margin: 0; line-height: 1.6; font-size: 0.75rem; }
.certificate-icon { position: relative; width: 2.5rem; height: 3rem; background: #fffde8; border: 1px solid #7a7562; box-shadow: 2px 2px #999; transform: rotate(-5deg); flex-shrink: 0; }
.certificate-icon span { font-size: 1.9375rem; color: #858b93; display: block; text-align: center; }
.certificate-icon b { position: absolute; right: -0.5625rem; bottom: -0.4375rem; font-size: 1.6875rem; color: #b99628; text-shadow: 1px 1px #695712; }
#check-form { padding: 0 1.5rem 1.125rem; }
#check-form label { display: block; margin-bottom: 0.4375rem; font-size: 0.75rem; }
.input-row { display: flex; align-items: stretch; gap: 0.5rem; }
.input-prefix { background: #e9e7e1; color: var(--muted); border: 2px solid; border-color: #808080 #fff #fff #808080; display: flex; align-items: center; padding: 0 0.5rem; margin-right: -0.625rem; border-right: 0; }
#domain { min-width: 0; flex: 1; border-left: 0; padding: 0.375rem 0.5rem; font-size: 0.875rem; }
.input-row button { min-width: 5.5rem; min-height: 2rem; padding: 0.25rem 0.75rem; font-weight: bold; }
.hint { font-size: 0.625rem; color: var(--muted); margin-top: 0.4375rem; line-height: 1.5; }
.message { margin: 0 1.5rem 1rem; padding: 0.625rem; border: 1px solid #969084; background: #e6e2d7; line-height: 1.6; }
.message.error { background: #f2dddd; border-color: #a75b5b; color: #852323; }
.tabs { display: flex; margin: 0 1rem; align-items: end; position: relative; top: 1px; gap: 0; }
.tab { position: relative; box-shadow: none; font-size: 0.75rem; font-weight: normal; line-height: 1.2; padding: 0.375rem 0.75rem; border: 1px solid; border-color: #fff #404040 #fff #fff; border-radius: 2px 2px 0 0; min-height: 1.875rem; }
.tab.active { z-index: 1; border-bottom-color: var(--surface); min-height: 2.0625rem; padding: 0.4375rem 0.875rem; margin-inline: -2px; }
.tab.active::after { content: ''; position: absolute; height: 2px; left: 0; right: 0; bottom: -1px; background: var(--surface); }
.tab:active { border-color: #fff #404040 #fff #fff; box-shadow: none; }
.tab.active:active { border-bottom-color: var(--surface); }
.tab:focus-visible { outline: 1px dotted #111; outline-offset: -0.25rem; }
.tab-body { margin: 0 0.75rem; border: 1px solid; border-color: #fff #595750 #595750 #fff; box-shadow: inset -1px -1px #aaa69e, -1px -1px #eeede8; padding: 1.125rem; min-height: 17.5rem; }
.empty { text-align: center; padding: 0.875rem 0; }
.empty-symbol { font-size: 2.3125rem; color: #8a8880; }
.empty h2 { font-size: 0.9375rem; font-weight: normal; margin: 0.625rem 0; }
.empty p { color: var(--muted); line-height: 1.7; max-width: 25.625rem; margin: 0.625rem auto; }
.empty-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin: 1.125rem 0; }
.empty-badges span { border: 1px solid #b3afa6; padding: 0.3125rem 0.625rem; font-size: 0.6875rem; color: var(--muted); }
.empty small { color: var(--muted); font-size: 0.625rem; }
.summary-heading { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.seal { display: grid; place-items: center; flex: 0 0 2.125rem; height: 2.125rem; background: #dfe9df; border: 1px solid #839d83; color: #285333; font-size: 1.375rem; }
.summary-heading.warning .seal { background: #f0e1cd; border-color: #ae8964; color: #82480f; }
.summary-heading h2 { font-size: 0.9375rem; margin: 0 0 0.25rem; line-height: 1.4; }
.summary-heading p { margin: 0; color: var(--muted); font-size: 0.6875rem; overflow-wrap: anywhere; }
.overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
.info-card { background: var(--paper); border: 1px solid #b5b1a7; padding: 0.875rem; box-shadow: inset 0 1px #fff; min-width: 0; }
.info-card h3 { font-size: 0.6875rem; color: var(--muted); font-weight: normal; margin: 0 0 0.5625rem; }
.card-value { font-size: 1rem; font-weight: bold; letter-spacing: -.3px; margin: 0; line-height: 1.4; overflow-wrap: anywhere; }
.card-meta { font-size: 0.6875rem; color: var(--muted); margin: 0.4375rem 0 0; line-height: 1.6; overflow-wrap: anywhere; }
.date-range { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; margin: 0.75rem 0 0; font-size: 0.6875rem; }
.date-range dt { color: var(--muted); margin-bottom: 0.25rem; }
.date-range dd { margin: 0; line-height: 1.5; }
.expiring { color: #8b4a12; }
.validation-inline { display: flex; gap: 0.75rem; align-items: center; }
.validation-badge { background: #595750; color: #fff; padding: 0.4375rem 0.625rem; font-size: 1rem; font-weight: bold; flex-shrink: 0; }
.validation-badge[data-validation="DV"] { background: #0a246a; }
.validation-badge[data-validation="OV"] { background: #00605f; }
.validation-badge[data-validation="EV"] { background: #934600; }
.validation-inline p { margin: 0; font-size: 0.75rem; line-height: 1.6; }
.validation-examples { display: grid; gap: 1.25rem; padding: 0.375rem 0 0.75rem; }
.policy-validation { padding: 0.75rem 0; border-bottom: 1px solid #e0ddd5; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.625rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.check-card { display: flex; align-items: start; gap: 0.5625rem; padding: 0.6875rem; border: 1px solid #aab4a3; background: #e7ebe2; min-width: 0; }
.check-symbol { color: #285333; font-size: 1.0625rem; }
.check-card strong, .check-card span:not(.check-symbol) { display: block; font-size: 0.6875rem; line-height: 1.5; overflow-wrap: anywhere; }
.check-card strong { font-weight: normal; }
.check-card span:not(.check-symbol) { color: #3b543b; margin-top: 3px; }
.check-card.failed { background: #f1e0d9; border-color: #bd9589; }
.check-card.failed span { color: #85352b; }
.summary-heading .revocation-hint { font-size: 0.6875rem; color: var(--muted); }
.certificate-source { display: block; font-size: 0.6875rem; color: var(--muted); margin-top: 0.25rem; }
.chain-source-divider { border-top: 2px dashed #839d83; padding-top: 0.75rem; margin: 1rem 0 0.5rem; font-size: 0.75rem; color: #3b543b; }
.local-certificate button { background: #e7ebe2; }
.notice { font-size: 0.6875rem; line-height: 1.6; color: var(--muted); margin: 0.875rem 0 0; }
.properties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; margin: 0; }
.property { background: var(--paper); border: 1px solid #b5b1a7; padding: 0.75rem; min-width: 0; }
.property dt { color: var(--muted); font-size: 0.6875rem; margin-bottom: 0.4375rem; }
.property dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.tab-short { display: none; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.125rem; }
.panel-heading > div { min-width: 0; }
.panel-heading h2 { font-size: 1.1875rem; font-weight: normal; letter-spacing: -.3px; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
.eyebrow { display: block; font-size: 0.6875rem; line-height: 1.6; color: var(--muted); margin: 0 0 0.3125rem; overflow-wrap: anywhere; }
.panel-description { color: var(--muted); font-size: 0.75rem; line-height: 1.6; margin: 0.375rem 0 0; }
#context-chain { flex-shrink: 0; font-size: 0.75rem; }
.certificate-facts { margin-bottom: 1rem; }
.certificate-facts .properties { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.certificate-facts .property dd { font-size: 0.75rem; }
.detail-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; align-items: start; }
.detail-section[open] { grid-column: 1 / -1; }
.identity-columns { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding-top: 1rem; }
.identity-columns section + section { border-top: 1px solid #aaa69e; padding-top: 1rem; }
.identity-columns section { min-width: 0; }
.identity-columns h3, .domain-names h3 { font-size: 0.75rem; font-weight: normal; color: var(--navy); margin: 0 0 0.625rem; }
.identity-attributes { margin: 0; }
.identity-attributes > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.25rem; padding: 0.5rem 0; }
.identity-attributes dt { font-size: 0.6875rem; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; min-width: 0; }
.identity-attributes dd { margin: 0; font-size: 0.75rem; line-height: 1.6; overflow-wrap: anywhere; }
.domain-names { margin-top: 0.875rem; border-top: 1px solid #e0ddd5; padding-top: 0.75rem; }
.domain-names ul { display: flex; flex-wrap: wrap; gap: 0.375rem; list-style: none; padding: 0; margin: 0; }
.domain-names li, .name-chip { font: 0.75rem/1.5 ui-monospace, 'Courier New', monospace; background: #eae8e1; border: 1px solid #d3cfc5; padding: 0.25rem 0.4375rem; overflow-wrap: anywhere; max-width: 100%; }
.name-chip { display: inline-block; box-sizing: border-box; }
.server-chain { margin-top: 1rem; }
.server-chain code { overflow-wrap: anywhere; }
.root-trust-badge { display: inline-block; margin-top: 0.375rem; padding: 0.1875rem 0.4375rem; border: 1px solid #aaa69e; background: #e4e1da; color: #595750; font-size: 0.6875rem; line-height: 1.5; overflow-wrap: anywhere; }
.root-trust-badge[data-present="true"] { border-color: #aab4a3; background: #e7ebe2; color: #3b543b; }
.detail-section { background: var(--paper); border: 1px solid #b5b1a7; min-width: 0; }
.detail-section > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.875rem 1rem; cursor: pointer; }
.detail-section > summary::-webkit-details-marker { display: none; }
.detail-section > summary strong { display: block; font-size: 0.8125rem; font-weight: normal; color: var(--navy); }
.detail-section > summary small { display: block; margin-top: 0.25rem; font-size: 0.6875rem; color: var(--muted); line-height: 1.5; }
.disclosure-arrow { font: 1.25rem monospace; color: var(--muted); }
.detail-section[open] .disclosure-arrow { transform: rotate(45deg); }
.detail-section[open] > summary { border-bottom: 1px solid #d8d4cb; }
.section-content { padding: 0.25rem 1rem 0.75rem; min-width: 0; }
.data-rows { margin: 0; }
.data-rows > div { display: grid; grid-template-columns: minmax(6.875rem, 30%) minmax(0, 1fr); gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid #e0ddd5; }
.data-rows > div:last-child { border-bottom: 0; }
.data-rows dt { font-size: 0.75rem; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; min-width: 0; }
.data-rows dd { margin: 0; font-size: 0.8125rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; }
.technical { font-family: ui-monospace, 'Courier New', monospace; font-size: 0.75rem !important; }
.key-exchange-properties { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.connection-section .data-rows:has(+ .key-exchange-description) > div:last-child { padding-bottom: 0; }
.key-exchange-description { margin-top: 0.25rem; }
.cipher-description { margin-top: 0.25rem; }
.exchange-status[data-status="warning"] { border-color: #bd9589; background: #f1e0d9; color: #85352b; }
.exchange-status { display: inline-block; padding: 0.1875rem 0.4375rem; border: 1px solid #aaa69e; color: #595750; font-size: 0.75rem; line-height: 1.5; overflow-wrap: anywhere; }
.exchange-status[data-status="yes"] { border-color: #aab4a3; background: #e7ebe2; color: #3b543b; font-weight: bold; }
.panel-actions { display: flex; justify-content: end; margin-top: 0.875rem; }
.raw-label { display: block; margin: 0.75rem 0 0.5rem; font-size: 0.75rem; }
textarea { width: 100%; min-height: 8.125rem; resize: vertical; padding: 0.625rem; font: 0.75rem/1.6 monospace; }
.raw-openssl { margin-top: 0.75rem; }
.raw-openssl summary { padding: 0.625rem 0; cursor: pointer; font-size: 0.75rem; }
.raw-openssl pre { max-height: 23.75rem; overflow: auto; padding: 0.75rem; background: #eae8e1; font-size: 0.6875rem; line-height: 1.6; }
.trust-strip { display: flex; align-items: center; gap: 0.625rem; padding: 0.6875rem 0.875rem; background: #e7ebe2; border: 1px solid #aab4a3; margin-bottom: 1rem; color: #285333; }
.trust-strip > span { font-size: 1.1875rem; }
.trust-strip > div { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; min-width: 0; font-size: 0.75rem; line-height: 1.6; overflow-wrap: anywhere; }
.trust-strip strong { font-weight: normal; }
.trust-strip.untrusted { color: #85352b; background: #f1e0d9; border-color: #bd9589; }
.chain-workspace { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 1.25rem; align-items: start; }
.chain-list { list-style: none; padding: 0; margin: 0; }
.chain-list li { position: relative; padding-bottom: 0.75rem; }
.chain-list li:not(:last-child)::after { content: ''; display: block; height: 0.75rem; width: 1px; background: #8c9198; position: absolute; bottom: 0; left: 1.5625rem; }
.chain-list button { display: flex; align-items: center; gap: 0.75rem; width: 100%; text-align: left; padding: 0.75rem; background: var(--paper); box-shadow: none; border: 1px solid #b5b1a7; min-height: 4.25rem; }
.chain-list button.outside-validated-path:not(.active) { background: #e4e1da; color: #595750; }
.validation-path-note { display: block; margin-top: 0.375rem; font-size: 0.6875rem; line-height: 1.5; color: #595750; overflow-wrap: anywhere; }
.chain-list button.active { border: 1px solid var(--navy); background: #e5ebf5; box-shadow: inset 3px 0 var(--navy); }
.chain-number { display: grid; place-items: center; width: 1.625rem; height: 1.625rem; flex-shrink: 0; font-size: 0.75rem; background: #e5e2d9; border: 1px solid #aaa69b; color: var(--muted); }
.chain-list button.active .chain-number { background: var(--navy); border-color: var(--navy); color: #fff; }
.chain-list button.has-issues { border-color: #b98270; }
.chain-list button.has-issues.active { box-shadow: inset 3px 0 #85352b; }
.chain-list button.has-issues .chain-number { background: #f1e0d9; color: #85352b; border-color: #b98270; }
.certificate-issue-label { display: block; font-size: 0.6875rem; color: #85352b; margin-top: 0.375rem; line-height: 1.5; overflow-wrap: anywhere; }
.certificate-problems { padding: 0.75rem; background: #f3e6df; border: 1px solid #bd9589; margin-bottom: 1rem; }
.certificate-problems h3, .affected-certificates h3 { font-size: 0.8125rem; margin: 0 0 0.5rem; color: #85352b; }
.certificate-problems ul, .affected-certificates ul { list-style: none; margin: 0; padding: 0; }
.certificate-problems li+li { margin-top: 0.75rem; }
.certificate-problems strong { font-size: 0.75rem; }
.certificate-problems p { font-size: 0.75rem; line-height: 1.6; margin: 0.375rem 0 0; overflow-wrap: anywhere; }
.certificate-problems code, .trust-strip code { font-size: 0.6875rem; overflow-wrap: anywhere; }
.certificate-neutral-note { font-size: 0.75rem; color: var(--muted); line-height: 1.6; margin: 0 0 1rem; }
.affected-certificates { margin-top: 1rem; padding: 0.75rem; border: 1px solid #bd9589; background: #f3e6df; }
.affected-certificates li+li { margin-top: 0.5rem; }
.affected-certificates button { width: 100%; text-align: left; padding: 0.625rem; background: var(--paper); border: 1px solid #b98270; box-shadow: none; }
.affected-certificates button strong, .affected-certificates button span { display: block; font-size: 0.75rem; overflow-wrap: anywhere; line-height: 1.5; }
.affected-certificates button span { color: #85352b; margin-top: 0.375rem; }
.affected-certificates > p { font-size: 0.75rem; line-height: 1.6; margin: 0; }
.chain-node { min-width: 0; }
.chain-picker { display: none; }
.chain-node strong { display: block; font-size: 0.75rem; line-height: 1.5; overflow-wrap: anywhere; }
.chain-node small { display: block; font-size: 0.6875rem; color: var(--muted); margin-top: 0.3125rem; }
.chain-preview { background: var(--paper); border: 1px solid #b5b1a7; padding: 1rem; min-width: 0; }
.chain-preview h2 { overflow-wrap: anywhere; }
.preview-role { color: var(--muted); font-size: 0.6875rem; margin: 0.375rem 0 0.625rem; }
.certificate-role-badge,
.affected-certificates button span.certificate-role-badge {
  display: inline-block; background: #595750; color: #fff;
  padding: 0.1875rem 0.4375rem; font-size: 0.6875rem; font-weight: bold;
  line-height: 1.5; margin: 0; max-width: 100%; overflow-wrap: anywhere;
}
.certificate-role-badge[data-role="serverCertificate"] { background: #174a70; }
.certificate-role-badge[data-role="intermediateCertificate"] { background: #634278; }
.certificate-role-badge[data-role="rootCertificate"] { background: #486126; }
#view-certificate { margin-top: 0.75rem; width: 100%; }
.connection-hero { display: grid; grid-template-columns: 1fr 1fr; background: #e5ebf5; border: 1px solid #a4b3c7; padding: 1.25rem; margin-bottom: 1rem; gap: 1.25rem; }
.connection-hero strong { display: block; font-size: 1.5rem; font-weight: normal; color: var(--navy); overflow-wrap: anywhere; }
.connection-hero > div+div { border-left: 1px solid #b7c2d2; padding-left: 1.25rem; }
.connection-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.connection-section { min-width: 0; background: var(--paper); padding: 1rem; border: 1px solid #b5b1a7; }
.connection-section h3 { font-size: 0.8125rem; margin: 0 0 0.5rem; color: var(--navy); font-weight: normal; }
.connection-section .data-rows > div { display: block; }
.connection-section dd { margin-top: 0.3125rem; }
.window-footer { padding: 0.625rem 0.875rem; display: flex; align-items: center; gap: 0.75rem; justify-content: space-between; color: var(--muted); font-size: 0.625rem; }
#status { overflow-wrap: anywhere; min-width: 0; line-height: 1.5; }
.window-footer button { min-width: 5.5rem; min-height: 1.75rem; padding: 3px 0.625rem; flex-shrink: 0; }
.help-dialog { width: min(33.75rem, calc(100% - 1.5rem)); max-height: 90vh; padding: 2px; color: #171717; background: var(--surface); border: 2px solid; border-color: #fff #404040 #404040 #fff; box-shadow: 0.3125rem 0.3125rem #0003; }
.help-dialog::backdrop { background: #0005; }
.help-content { padding: 0.875rem 1.25rem; font-size: 0.75rem; line-height: 1.8; }
.help-content h2 { font-size: 0.875rem; }
.help-content dt { font-weight: bold; }
.help-content dd { margin: 0.25rem 0 0.875rem; }
.limitations { padding-left: 1.125rem; line-height: 1.8; color: var(--muted); font-size: 0.6875rem; }
.dialog-footer { padding: 0 1.25rem 1rem; text-align: right; }
.dialog-footer button { min-width: 6.25rem; }
/* Windows 2000: dialog surfaces, etched groups and sunken data views. */
.desktop-label { letter-spacing: 0; text-shadow: 1px 1px #163554; }
.desktop-note { letter-spacing: 0; opacity: 1; }
.desktop-footer { opacity: 1; }
.window { border-color: #fff #404040 #404040 #fff; box-shadow: inset -1px -1px #808080, 1px 1px #000; }
.menubar select { background: #fff; }
.menu summary { padding-block: 0.25rem; }
.menu-popup { box-shadow: 2px 2px #808080; }
.intro h1 { font-size: 1rem; letter-spacing: 0; font-weight: bold; }
.certificate-icon { transform: none; background: #ffffe1; border-color: #808080; box-shadow: 1px 1px #404040; }
.input-prefix { background: #eeece5; color: #000; }
.input-row { column-gap: 0; }
.input-prefix { margin-right: 0; box-shadow: inset 1px 1px #404040; }
.input-prefix, #domain { font-family: inherit; font-size: 0.875rem; line-height: 1.25; }
.input-prefix { padding-block: 0.375rem; }
#domain { box-shadow: inset 0 1px #404040; }
.input-row button { margin-left: 0.5rem; }
.message { background: #ffffe1; border-color: #808080; }
.empty h2 { font-weight: bold; }
.empty-badges span { background: var(--surface); border-color: #808080 #fff #fff #808080; box-shadow: inset 1px 1px #b5b1a7; }
.info-card, .property, .detail-section, .chain-preview, .connection-section {
  background: var(--surface);
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  box-shadow: inset 1px 1px #fff, inset -1px -1px #808080;
}
.info-card h3, .property dt, .connection-section h3 { color: #171717; }
.card-value { font-size: 0.875rem; letter-spacing: 0; }
.panel-heading h2 { font-size: 1rem; font-weight: bold; letter-spacing: 0; }
.detail-section > summary { padding: 0.625rem 0.75rem; }
.detail-section > summary strong { color: #171717; font-weight: bold; }
.detail-section[open] > summary { border-bottom: 1px solid #808080; box-shadow: 0 1px #fff; }
.disclosure-arrow { font-size: 0.875rem; color: #000; }
.data-rows > div, .policy-validation, .domain-names { border-color: #aaa; }
.domain-names li, .name-chip, .raw-openssl pre {
  background: #fff; border: 2px solid; border-color: #808080 #fff #fff #808080;
  box-shadow: inset 1px 1px #404040;
}
.technical, .name-chip, .domain-names li { font-family: 'Courier New', monospace; }
.trust-strip { background: var(--surface); border-color: #808080 #fff #fff #808080; }
.summary-heading:not(.warning) .seal { background: transparent; border: 0; color: #2d683b; font-size: 2rem; }
.summary-heading.warning .seal {
  flex-basis: 1.75rem;
  height: 1.75rem;
  background: #d00000;
  border: 1px solid #800000;
  border-radius: 50%;
  box-shadow: inset 1px 1px #ff7373, inset -1px -1px #900000;
  color: #fff;
  font: bold 1.5rem/1 Arial, sans-serif;
  padding: 0 0 2px;
  text-shadow: 1px 1px #800000;
}
.info-card.validation-card { background: var(--surface); border: 1px solid #aaa69e; box-shadow: none; }
.chain-preview, .certificate-facts .property {
  border-color: #808080 #fff #fff #808080;
  box-shadow: none;
}
.check-card.failed, .trust-strip.untrusted, .certificate-problems, .affected-certificates, .message.error { background: #f3e6e3; border-color: #b98278; }
.affected-certificates button { background: #eeece5; border-color: #b98278; }
.connection-hero { background: var(--surface); border-color: #808080 #fff #fff #808080; box-shadow: inset 1px 1px #fff, inset -1px -1px #808080; }
.connection-hero strong { font-size: 1.125rem; font-weight: bold; }
.connection-hero > div+div { border-color: #808080; box-shadow: -1px 0 #fff; }
.chain-list { padding: 0.5rem; background: #eeece5; border: 2px solid; border-color: #808080 #fff #fff #808080; box-shadow: inset 1px 1px #404040; }
.chain-list button { background: #eeece5; border-color: transparent; padding: 0.5rem; }
.chain-list button.outside-validated-path:not(.active) { background: #e4e1da; border: 1px dashed #928b7e; color: #53504a; }
.chain-list button.outside-validated-path:not(.active) .validation-path-note { font-weight: bold; color: #53504a; }
.chain-list li:not(:last-child)::after { background: none; border-left: 1px dotted #808080; }
.chain-list button.active, .chain-list button.has-issues.active { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: none; }
.chain-list button.active .chain-node small,
.chain-list button.active .certificate-source,
.chain-list button.active .validation-path-note,
.chain-list button.active .certificate-issue-label { color: #fff; }
.chain-number { background: var(--surface); border-color: #fff #808080 #808080 #fff; color: #000; }
.window-footer { border-top: 1px solid #fff; margin-top: 0.5rem; }
#status { flex: 1; padding: 3px 0.5rem; border: 1px solid; border-color: #808080 #fff #fff #808080; color: #171717; }
.help-dialog { box-shadow: 1px 1px #000; }
.help-dialog::backdrop { background: #0003; }
.tab {
  border-color: #fff #404040 var(--surface) #fff;
  border-radius: 2px 2px 0 0;
  box-shadow: inset -1px 0 #808080;
}
.tab:active { box-shadow: inset -1px 0 #808080; }
.tab-body { border-color: #fff #404040 #404040 #fff; box-shadow: inset -1px -1px #808080; }
.tabs { top: 0; }
.tab.active::after { height: 2px; bottom: -2px; left: 0; right: 1px; z-index: 2; }
/* Original-style property-sheet proportions, with larger mobile touch targets. */
@media (min-width: 641px) {
  .tabs { margin-inline: 0.875rem; }
  .tabs .tab {
    font: 0.75rem/1.2 Tahoma, Verdana, Arial, sans-serif;
    min-height: 1.75rem;
    padding: 0.3125rem 0.625rem;
    border: 1px solid;
    border-color: #fff #404040 var(--surface) #fff;
    border-radius: 2px 2px 0 0;
    box-shadow: inset -1px 0 #808080;
  }
  .tabs .tab.active {
    min-height: 1.9375rem;
    padding: 0.375rem 0.75rem;
    margin-inline: -2px;
    border-bottom-color: var(--surface);
  }
  .tabs .tab:active { box-shadow: inset -1px 0 #808080; }
  .tabs .tab:focus-visible { outline: 1px dotted #000; outline-offset: -4px; }
  .tab-body {
    border-color: #fff #404040 #404040 #fff;
    box-shadow: inset -1px -1px #808080;
  }
}
@media (min-width: 900px) {
  :root { font-size: 115%; }
  .identity-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding-top: 0.75rem; }
  .identity-columns section + section { border-top: 0; border-left: 1px solid #aaa69e; padding-top: 0; padding-left: 1rem; }
  .identity-attributes > div { grid-template-columns: minmax(0, 32%) minmax(0, 1fr); gap: 0.5rem; padding: 0.375rem 0; align-items: baseline; }
}
@media (max-width: 640px) {
  body { padding: 0; background: var(--surface); }
  .desktop-label, .desktop-footer { display: none; }
  .window { border: 0; box-shadow: none; padding: 3px; min-height: 100vh; min-height: 100dvh; }
  .titlebar { min-height: 1.625rem; padding: 3px 0.25rem; }
  .intro { padding: 1.125rem 0.875rem; gap: 1rem; }
  .intro h1 { font-size: 1.125rem; }
  .intro p { font-size: 0.75rem; }
  .has-result .intro { display: none; }
  .has-result #check-form { padding-top: 0.875rem; }
  #check-form { padding: 0 0.75rem 0.875rem; }
  .message { margin: 0 0.75rem 0.75rem; }
  .input-row { gap: 0.375rem; }
  #domain { padding: 0.5625rem 0.5rem; font-size: 1rem; }
  .input-prefix { font-size: 1rem; padding-block: 0.5625rem; }
  .input-row button { min-width: 4.875rem; min-height: 2.75rem; padding: 0.375rem 0.5625rem; }
  .input-prefix { padding-inline: 0.375rem; }
  .hint { font-size: 0.6875rem; }
  .tabs { margin: 0 0.25rem; gap: 0; }
  .tabs .tab { flex: 1; min-width: 0; padding: 0.375rem 3px; font-size: 0.875rem; min-height: 2.25rem; white-space: nowrap; }
  .tabs .tab.active { min-height: 2.375rem; padding: 0.4375rem 3px; margin-inline: 0; }
  .tab-full { display: none; }
  .tab-short { display: inline; }
  .tab-body { margin: 0 3px; padding: 0.875rem 0.625rem; min-height: 15rem; }
  .overview-grid { grid-template-columns: 1fr; gap: 0.625rem; }
  .info-card { padding: 0.875rem; }
  .info-card h3 { font-size: 0.75rem; margin-bottom: 0.4375rem; }
  .card-value { font-size: 1.0625rem; }
  .card-meta { font-size: 0.75rem; }
  .date-range { grid-template-columns: 1fr 1fr; font-size: 0.75rem; }
  .validation-inline { align-items: start; gap: 0.5rem; }
  .validation-badge { font-size: 0.9375rem; padding: 0.4375rem 0.5625rem; }
  .validation-inline p { font-size: 0.8125rem; }
  .check-grid { grid-template-columns: 1fr; gap: 0.375rem; }
  .check-card { padding: 0.6875rem 0.75rem; }
  .check-card div { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 0.5rem; }
  .check-card strong, .check-card span:not(.check-symbol) { font-size: 0.75rem; }
  .check-card span:not(.check-symbol) { margin-top: 0; }
  .notice { font-size: 0.75rem; }
  .panel-heading { align-items: start; gap: 0.625rem; flex-wrap: wrap; margin-bottom: 0.875rem; }
  .panel-heading h2 { font-size: 1.1875rem; }
  .eyebrow { font-size: 0.6875rem; }
  #context-chain { font-size: 0.75rem; min-height: 2.75rem; }
  .certificate-facts .properties { grid-template-columns: 1fr; gap: 0; border: 1px solid #b5b1a7; background: var(--paper); }
  .certificate-facts .property { border: 0; display: grid; grid-template-columns: 5.625rem minmax(0, 1fr); gap: 0.5rem; padding: 0.6875rem 0.75rem; }
  .certificate-facts .property+.property { border-top: 1px solid #e0ddd5; }
  .certificate-facts .property dt { margin: 0; font-size: 0.75rem; line-height: 1.5; }
  .certificate-facts .property dd { font-size: 0.8125rem; }
  .detail-section > summary { min-height: 3.625rem; padding: 0.875rem; }
  .detail-groups { grid-template-columns: 1fr; }
  .identity-columns { grid-template-columns: 1fr; gap: 1rem; }
  .identity-attributes > div { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; padding: 0.375rem 0; }
  .identity-attributes dt, .identity-attributes dd { font-size: 0.75rem; }
  .detail-section > summary small { display: none; }
  .detail-section > summary strong { font-size: 0.875rem; }
  .section-content { padding: 0 0.875rem 0.625rem; }
  .data-rows > div { display: block; padding: 0.75rem 0; }
  .data-rows dd { margin-top: 0.3125rem; font-size: 0.8125rem; }
  .technical { font-size: 0.75rem !important; }
  .panel-actions button { width: 100%; }
  .chain-workspace, .connection-groups { grid-template-columns: 1fr; gap: 0.75rem; }
  .chain-list button { padding: 0.75rem; min-height: 4rem; }
  .chain-node strong { font-size: 0.8125rem; }
  .chain-node small { font-size: 0.75rem; }
  .chain-preview { padding: 0.875rem; }
  .connection-hero { padding: 1rem; gap: 1rem; }
  .connection-hero strong { font-size: 1.3125rem; }
  .connection-hero > div+div { padding-left: 1rem; }
  .connection-section { padding: 0.875rem; }
  .properties { gap: 0.5rem; }
  .property { padding: 0.625rem; font-size: 0.75rem; }
  .window-footer { padding: 0.625rem; }
  .window-footer button { min-height: 2.75rem; padding: 0.375rem 0.625rem; }
  button, .menu summary { min-height: 2.75rem; }
  .menubar { padding: 2px 0.3125rem; }
  .menubar label { font-size: 0.6875rem; }
  .menubar select { min-height: 2.5rem; margin-left: 2px; padding-inline: 0.25rem; }
  .menu summary { padding: 0.6875rem 0.5rem; font-size: 0.75rem; }
}
@media (max-width: 420px) {
  .menubar { gap: 0; }
  .menubar label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .menubar select { margin-left: auto; }
}
/* Mobile results use compact property rows instead of stacked desktop cards. */
@media (max-width: 640px) {
  .window { display: flex; flex-direction: column; }
  .tab-body { flex: 1; }
  .input-row { column-gap: 0; }
  .menubar { padding-block: 0; }
  .has-result #check-form { padding-top: 0.625rem; padding-bottom: 0.625rem; }
  #check-form label { margin-bottom: 0.3125rem; }
  .hint { margin-top: 0.3125rem; line-height: 1.4; }
  .tab-body { padding: 0.75rem 0.5rem; }
  .summary-heading { gap: 0.5rem; margin-bottom: 0.625rem; }
  .summary-heading h2 { font-size: 0.875rem; }
  .overview-grid {
    gap: 0;
    border: 1px solid;
    border-color: #808080 #fff #fff #808080;
  }
  .overview-grid .info-card {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    column-gap: 0.5rem;
    padding: 0.625rem;
    border: 0;
    box-shadow: none;
    background: var(--surface);
  }
  .overview-grid .info-card + .info-card { border-top: 1px solid #aaa69e; }
  .overview-grid .info-card h3 {
    grid-column: 1;
    grid-row: 1 / span 3;
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.5;
  }
  .overview-grid .card-value { grid-column: 2; font-size: 0.875rem; }
  .overview-grid .card-meta { grid-column: 2; margin-top: 0.1875rem; line-height: 1.4; }
  .overview-grid .date-range { grid-column: 2; grid-template-columns: 1fr; gap: 0.375rem; margin-top: 0.5rem; }
  .overview-grid .date-range dt { margin-bottom: 0.125rem; }
  .overview-grid .validation-inline { grid-column: 2; flex-wrap: wrap; gap: 0.375rem; }
  .overview-grid .validation-inline p { font-size: 0.75rem; line-height: 1.4; }
  .validation-badge { font-size: 0.8125rem; padding: 0.25rem 0.4375rem; }
  .check-grid { margin-top: 0.625rem; }
  .check-card { padding: 0.5rem 0.625rem; }
  .notice { margin-top: 0.625rem; line-height: 1.5; }
  .panel-heading { gap: 0.5rem; margin-bottom: 0.625rem; }
  .panel-heading h2 { font-size: 1rem; }
  .panel-description { margin-top: 0.25rem; line-height: 1.4; }
  .trust-strip { padding: 0.5rem 0.625rem; margin-bottom: 0.625rem; gap: 0.5rem; }
  .trust-strip > div { gap: 0.125rem 0.5rem; line-height: 1.4; }
  .chain-workspace, .connection-groups { gap: 0.625rem; }
  .chain-workspace > .chain-list { display: none; }
  .chain-picker { display: block; min-width: 0; }
  .chain-picker label { display: block; font-size: 0.75rem; margin-bottom: 0.3125rem; }
  .chain-picker select { width: 100%; min-height: 2.75rem; padding: 0.375rem; }
  #chain-picker-note:empty { display: none; }
  #chain-picker-note { padding: 0.25rem 0.375rem; }
  .chain-list { padding: 0.375rem; }
  .chain-list li { padding-bottom: 0.5rem; }
  .chain-list li:last-child { padding-bottom: 0; }
  .chain-list li:not(:last-child)::after { height: 0.5rem; left: 1.5rem; }
  .chain-list button { padding: 0.5rem; min-height: 2.75rem; gap: 0.5rem; }
  .chain-node strong { font-size: 0.8125rem; line-height: 1.4; }
  .chain-node small { margin-top: 0.125rem; font-size: 0.6875rem; }
  .chain-node { display: flex; flex-wrap: wrap; align-items: center; gap: 0.1875rem 0.375rem; flex: 1; }
  .chain-node strong { flex: 1 1 auto; }
  .chain-node small { display: contents; }
  .chain-node .certificate-source { display: none; }
  .chain-node .validation-path-note, .chain-node .certificate-issue-label { flex-basis: 100%; margin-top: 0; }
  .chain-source-divider { margin-block: 0.5rem; padding-top: 0.5rem; }
  .chain-preview { padding: 0.625rem; }
  .chain-preview h2 { font-size: 0.9375rem; margin-block: 0.375rem; }
  .preview-role { margin-block: 0.25rem 0.5rem; }
  .certificate-facts { margin-bottom: 0.625rem; }
  .certificate-facts .properties { border-color: #808080 #fff #fff #808080; background: var(--surface); }
  .certificate-facts .property { padding: 0.5rem 0.625rem; box-shadow: none; background: var(--surface); }
  .certificate-facts .property dd { font-size: 0.75rem; }
  .connection-hero { padding: 0.625rem; gap: 0.625rem; margin-bottom: 0.625rem; }
  .connection-hero strong { font-size: 1rem; }
  .connection-hero > div+div { padding-left: 0.625rem; }
  .connection-section { padding: 0.625rem; }
  .connection-section h3 { margin-bottom: 0.25rem; font-weight: bold; color: #171717; }
  .connection-section .data-rows > div {
    display: block;
    padding: 0.5rem 0;
  }
  .connection-section .data-rows dd { margin-top: 0.1875rem; font-size: 0.75rem; line-height: 1.5; }
  .connection-section .data-rows dt { line-height: 1.5; }
  .eyebrow { margin-bottom: 0.125rem; }
  .key-exchange-properties { gap: 0.375rem; margin-top: 0.5rem; }
  .detail-section > summary { padding: 0.625rem; min-height: 2.75rem; }
  .detail-section > summary strong { font-size: 0.8125rem; }
  .section-content { padding: 0 0.625rem 0.5rem; }
  .data-rows > div { padding-block: 0.5rem; }
  .identity-columns { gap: 0.625rem; padding-top: 0.5rem; }
  .identity-attributes > div { padding-block: 0.375rem; }
  .domain-names { margin-top: 0.625rem; padding-top: 0.5rem; }
  .certificate-problems, .affected-certificates { padding: 0.625rem; margin-bottom: 0.625rem; }
  .panel-actions { margin-top: 0.625rem; }
}
