/* Reference-directed presentation. Loaded after precision.css; no engine rules. */
:root {
  --ref-ink:#081f2a;
  --ref-muted:#566b7b;
  --ref-green:#008c52;
  --ref-green-dark:#006b43;
  --ref-mint:#2de5ad;
  --ref-paper:#fff;
  --ref-page:#fbfdfc;
  --ref-soft:#f3f6f8;
  --ref-line:#e1e8ec;
  --ref-hero:#effbf5;
  --ref-dark:#042226;
  --ref-shadow:0 14px 38px rgb(8 61 48 / 9%);
  --ref-content:1396px;
  --surface:var(--ref-paper);
  --ground:var(--ref-page);
  --text:var(--ref-ink);
  --muted:var(--ref-muted);
  --action:var(--ref-green-dark);
  --focus:#007b50;
  --rule:var(--ref-line);
  --control:#80999e;
  --stage:var(--ref-soft);
  --stage-text:var(--ref-ink);
  --stage-muted:var(--ref-muted);
  --stage-value:#00734b;
  --stage-button:#e9f4ef;
  --stage-button-text:#075f44;
  --radius-control:10px;
  --radius-workspace:16px;
  --max:var(--ref-content);
}
html[data-theme=dark] {
  --ref-ink:#eef9f7;
  --ref-muted:#b2c9ce;
  --ref-green:#20cf93;
  --ref-green-dark:#8be9bf;
  --ref-mint:#3cf0ba;
  --ref-paper:#102e33;
  --ref-page:#082126;
  --ref-soft:#193b40;
  --ref-line:#34565c;
  --ref-hero:#072b2a;
  --ref-shadow:0 16px 40px rgb(0 0 0 / 16%);
  --focus:#8be9bf;
  --control:#88aab1;
  --stage-value:#7be8b9;
  --stage-button:#244c42;
  --stage-button-text:#c0ffe0;
}
body { background:var(--ref-page);color:var(--ref-ink);font-size:16px;line-height:1.65; }
h1,h2,h3,h4,h5,h6 { color:var(--ref-ink);font-weight:750;letter-spacing:-.025em; }
h1 { line-height:1.12; } h2 { font-size:30px; } h3 { font-size:21px; }
.wrap,.zh-main,.fac-directory,.fac-service-workspace,.tool-shortcuts {
  max-width:var(--ref-content);width:calc(100% - 96px);margin-inline:auto;
}
.site-header { background:var(--ref-paper);border-bottom:1px solid var(--ref-line);position:relative;z-index:60; }
.header-inner { min-height:76px;gap:24px; }
.brand,.zh-brand { font-size:32px;line-height:1.2;gap:10px;letter-spacing:-1.2px;color:var(--ref-ink); }
.brand-symbol svg { width:40px;height:44px; }
.brand-pro { display:inline;font-size:14px;margin-left:7px;letter-spacing:-.2px;color:var(--ref-green); }
.desktop-nav { gap:8px;align-items:center; }
.desktop-nav a { padding:9px 20px;min-height:44px;border-radius:12px;font-size:15px;font-weight:600;white-space:nowrap; }
.desktop-nav a:hover,.desktop-nav a[aria-current=page],.desktop-nav a.is-active { background:#e6f7ef;color:#006c43; }
html[data-theme=dark] .desktop-nav a:hover,html[data-theme=dark] .desktop-nav a[aria-current=page] { background:#1c493d;color:#b0f8d9; }
.header-actions { gap:16px; }
.fac-language-switch summary,.zh-languages summary {
  border:1px solid var(--ref-line);border-radius:24px;padding:8px 14px;gap:10px;
  font-size:14px;line-height:1.4;font-weight:600;min-height:42px;background:var(--ref-paper);
}
.fac-language-switch summary svg,.zh-languages summary svg { width:19px;height:19px; }
.fac-language-switch summary::after,.zh-languages summary::after { content:'⌄';font-size:18px;line-height:1;margin-left:4px; }
.fac-language-switch nav,.zh-languages nav {
  margin-top:8px;min-width:224px;max-width:calc(100vw - 32px);padding:8px;
  border-radius:12px;border:1px solid var(--ref-line);background:var(--ref-paper);box-shadow:var(--ref-shadow);
}
.fac-language-switch nav a,.zh-languages nav a { border-radius:7px;font-size:15px;min-height:44px; }
.fac-language-switch nav a:hover,.fac-language-switch nav a[aria-current=page],.zh-languages nav a:hover { background:var(--ref-soft); }
.icon-button { border-radius:50%;width:44px;height:44px; }
.theme-toggle,.precision-theme { background:var(--ref-dark);color:#fff; }
.theme-toggle:hover,.precision-theme:hover { background:#0d473c;color:#fff; }
.mobile-nav { background:var(--ref-paper);padding:12px 18px;border:1px solid var(--ref-line);border-radius:12px; }
.mobile-nav a { min-height:48px;font-size:16px;border-radius:7px;padding:8px; }
.mobile-nav a:hover { background:var(--ref-soft); }

/* The actual card is the right-hand hero object; its input and result stack. */
.reference-hero { position:relative;isolation:isolate;background:linear-gradient(112deg,#f5fcf8 0%,#ebfaf2 47%,#ddf6eb 100%);padding:34px 0 48px; }
.reference-hero::after { content:'';position:absolute;z-index:-1;inset:auto 0 0;height:34px;background:var(--ref-page);clip-path:polygon(0 50%,14% 88%,28% 100%,46% 56%,64% 91%,82% 46%,100% 0,100% 100%,0 100%); }
html[data-theme=dark] .reference-hero { background:radial-gradient(ellipse at 62% 78%,#075c47 0%,#07352f 38%,#032126 78%); }
.reference-grid { display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,.69fr) minmax(0,1.5fr);gap:24px;align-items:center;position:relative; }
.reference-grid>.hero { display:block;width:auto;max-width:none;margin:0;padding:4px 0 18px;min-width:0; }
.reference-grid>.hero h1 { margin:0 0 18px;max-width:10ch;font-size:clamp(48px,5.8vw,88px);line-height:1.01;letter-spacing:-.045em;font-weight:750; }
.reference-grid>.hero h1 span { color:#009d65; }
html[data-theme=dark] .reference-grid>.hero h1 span { color:var(--ref-mint); }
.reference-grid>.hero .hero-description { max-width:37ch;font-size:19px;line-height:1.55;margin:0 0 20px;color:var(--ref-ink); }
.reference-grid>.hero .breadcrumbs { font-size:13px;line-height:1.5;margin-bottom:16px; }
.reference-grid>.hero .hero-badges { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;margin-top:22px; }
.reference-grid>.hero .hero-badges span { font-size:14px;line-height:1.4;font-weight:600;color:var(--ref-ink);align-items:flex-start;gap:9px; }
.reference-grid>.hero .hero-badges svg { width:20px;height:20px;color:var(--ref-green-dark); }
.reference-grid>.hero .precision-intro-note { display:inline-flex;align-items:center;gap:8px;margin:0 0 20px;border:1px solid #09a56b;border-radius:22px;padding:7px 12px;font-size:13px;line-height:1.4;text-transform:none;font-weight:650;color:#00784f; }
html[data-theme=dark] .reference-grid>.hero .precision-intro-note { color:#63f0bf;border-color:#27c995; }
.reference-art { align-self:stretch;display:flex;align-items:center;justify-content:center;min-width:0;pointer-events:none; }
.reference-art img { display:block;width:150%;max-width:none;height:auto;max-height:580px;object-fit:contain;filter:drop-shadow(0 24px 18px rgb(4 45 38 / 18%)); }
.reference-panel { min-width:0;position:relative;z-index:2; }
.reference-panel>.workspace { width:100%;max-width:none;margin:0;padding:0; }
.reference-panel .tool-shortcuts { width:100%;max-width:none;margin:0 0 12px;gap:16px; }
.reference-panel .tool-shortcuts a { font-size:13px; }
.reference-panel .tool-card { border:1px solid var(--ref-line);background:var(--ref-paper);border-radius:17px;padding:24px;box-shadow:var(--ref-shadow);overflow:visible; }
.reference-panel .workspace-bar { padding:0 0 12px;font-size:12px;line-height:1.5; }
.reference-panel .tool-columns { display:block; }
.reference-panel .tool-input-pane { padding:0; }
.reference-panel .tool-result-pane { min-height:0;padding:18px 20px;background:var(--ref-soft);border:0;border-radius:12px;margin-top:16px;color:var(--ref-ink); }
.reference-panel .precision-entry { display:flex;flex-direction:column;align-items:stretch;gap:12px; }
.reference-panel .precision-entry>.field { margin:0; }
.reference-panel .precision-entry>[data-action=run] { width:100%;min-height:52px;font-size:16px; }
.reference-panel .field { font-size:15px;line-height:1.5;gap:10px;margin-bottom:12px; }
.field input:not([type=checkbox]):not([type=file]),.field textarea,.field select { min-height:52px;padding:13px 15px;border-radius:10px;background:var(--ref-paper);color:var(--ref-ink);font-size:16px; }
.reference-panel .field input:not([type=checkbox]):not([type=file]),.reference-panel .field textarea { border-color:#00a466; }
.field input::placeholder,.field textarea::placeholder { color:var(--ref-muted);opacity:1; }
.button { border-radius:10px;min-height:48px;font-size:15px;font-weight:650; }
.button-primary,.precision-entry>[data-action=run] { background:linear-gradient(104deg,#00834b,#007645);color:#fff;box-shadow:0 5px 12px rgb(0 137 79 / 12%); }
.button-primary:hover,.precision-entry>[data-action=run]:hover { background:linear-gradient(104deg,#007645,#006c3f);color:#fff;filter:none; }
html[data-theme=dark] .button-primary,html[data-theme=dark] .precision-entry>[data-action=run] { color:#fff; }
.secret-controls { gap:8px;margin:8px 0; }
.secret-controls button { min-height:42px;padding:8px 11px;border-radius:8px;background:var(--ref-soft);font-size:13px;font-weight:550;color:var(--ref-ink); }
.field-hint { font-size:13px;line-height:1.55;margin:8px 0;color:var(--ref-muted); }
.reference-tool-tabs { display:flex;align-items:stretch;gap:4px;padding:5px;margin:0 0 18px;background:var(--ref-soft);border-radius:11px; }
.reference-tool-tabs button { display:flex;flex:1 1 0;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:48px;padding:9px 10px;color:var(--ref-ink);border-radius:8px;font-size:14px;line-height:1.35;font-weight:650; }
.reference-tool-tabs button svg { width:19px;height:19px;flex-shrink:0; }
.reference-tool-tabs button:hover { background:color-mix(in srgb,var(--ref-green) 9%,var(--ref-soft)); }
.reference-tool-tabs button[aria-selected=true],.reference-tool-tabs button[data-active=true],.reference-tool-tabs button[aria-expanded=true] { background:linear-gradient(105deg,#00834b,#007645);color:#fff;box-shadow:0 3px 9px rgb(0 137 79 / 12%); }
.reference-tool-tabs:not(:has([aria-selected=true],[data-active=true],[aria-expanded=true])) button:first-child { background:linear-gradient(105deg,#00834b,#007645);color:#fff; }
.precision-options { gap:4px 20px;align-items:flex-start;margin-top:4px; }
.advanced>summary,.fac-qr-import>summary { font-size:13px;min-height:42px; }
.precision-options>.tool-actions { margin-left:auto;gap:4px; }
.precision-options>.tool-actions button { padding:7px 10px;font-size:13px;min-height:42px; }
.advanced .tool-grid { padding-top:10px;gap:8px 14px; }
.empty-result { min-height:100px;display:flex;flex-direction:column-reverse;align-items:flex-start;justify-content:center;gap:14px; }
.empty-result p { margin:0;max-width:none;font-size:15px;font-weight:650;line-height:1.5;color:var(--ref-ink); }
.code-placeholder { display:flex;gap:9px;flex-wrap:nowrap;width:100%; }
.code-placeholder span { flex:1 1 0;max-width:52px;min-width:0;height:54px;background:var(--ref-paper);border:1px solid var(--ref-line);border-radius:9px;position:relative; }
.code-placeholder span::after { content:'';position:absolute;left:35%;right:35%;top:50%;height:3px;border-radius:2px;background:#a7b3bd; }
.precision-readout { display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:16px;align-items:center;min-height:0; }
.precision-value { min-width:0; }
.result-label { font-size:14px;line-height:1.5;font-weight:650;color:var(--ref-ink); }
.code-digits { font:650 clamp(36px,3.7vw,54px)/1.2 var(--font-value);letter-spacing:.055em;font-variant-numeric:tabular-nums;color:var(--stage-value);margin:10px 0 0;white-space:nowrap; }
.precision-timing { min-width:0; }
.precision-timing [data-countdown] { font-size:13px;line-height:1.5;color:var(--ref-ink);font-weight:650;margin:0 0 8px; }
.code-progress { width:100%;max-width:none;height:5px;margin:0 0 8px;background:#d6e2df;accent-color:var(--ref-green);border-radius:4px; }
.code-progress::-webkit-progress-bar { background:#d6e2df; }
.code-progress::-webkit-progress-value { background:var(--ref-green); }
.fac-expiry-warning { font-size:12px;color:var(--ref-muted);line-height:1.5; }
.fac-expiry-warning[data-urgent=true] { color:#8e4500; }
html[data-theme=dark] .fac-expiry-warning[data-urgent=true] { color:#ffd18b; }
.precision-readout>.tool-actions { grid-column:1/-1;display:flex;flex-flow:row wrap;gap:8px; }
.tool-result-pane .button { width:auto;flex:1 1 auto;min-height:45px;background:var(--stage-button);color:var(--stage-button-text);font-size:14px; }
.tool-result-pane [data-copied=true] { background:#c8f6df;color:#07583b; }
.tool-result-pane pre { color:var(--ref-ink);font-size:13px;line-height:1.6;overflow-wrap:anywhere; }
.tool-result-pane .field,.fac-verify>summary { color:var(--ref-ink); }
.fac-verify { font-size:13px;color:var(--ref-muted);margin-top:10px; }
.fac-verify>summary { font-size:13px;min-height:42px; }
.tool-card[data-fac-tool=qr-generator] .precision-readout,.tool-card[data-fac-tool=qr-reader] .precision-readout,.tool-card[data-fac-tool=uri-validator] .precision-readout { grid-template-columns:minmax(0,1fr); }
.fac-return { padding:12px 2px 0;gap:14px;flex-wrap:wrap; }
.fac-return strong { font-size:13px; }
.fac-return>div:first-child>span,.fac-return p,.fac-return-buttons>* { font-size:12px;line-height:1.5; }
.fac-return-buttons { gap:4px 12px; }
.fac-return-buttons>* { min-height:40px;padding:6px 0; }
.workspace-footnote,.fac-workspace-note { font-size:13px;line-height:1.65;color:var(--ref-muted); }
.reference-panel .workspace-footnote { padding-inline:4px; }

/* The reference vocabulary continues beyond the first screen. Content remains. */
.steps-section,.tools-section,.reading-section,.related-section { padding-block:32px; }
.steps-section>.section-heading { text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;margin-bottom:20px; }
.steps-section .section-heading h2 { font-size:32px;margin:0; }
.section-heading p { color:var(--ref-muted);font-size:16px;margin:6px 0 0; }
.steps-section .section-heading .text-link { min-height:36px;font-size:14px; }
.steps-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px; }
.steps-grid>div { min-width:0;position:relative;display:grid;grid-template-columns:62px minmax(0,1fr);gap:6px 18px;padding:24px 22px 24px 62px;background:var(--ref-paper);border:1px solid var(--ref-line);border-radius:16px; }
.step-number { position:absolute;left:18px;top:20px;display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:linear-gradient(135deg,#00834b,#007645);color:#fff;font-size:15px;font-weight:750;margin:0; }
.step-icon { grid-column:1;grid-row:1/span 2;display:grid;place-items:center;align-self:center;width:62px;height:62px;border-radius:50%;margin:0;background:#e9f8f2;color:#00784d; }
.step-icon svg { width:32px;height:32px; }
.steps-grid h3 { grid-column:2;font-size:18px;line-height:1.35;margin:0;align-self:end; }
.steps-grid p { grid-column:2;font-size:14px;line-height:1.6;margin:0;color:var(--ref-muted); }
.resource-grid,.fac-directory-grid,.fac-service-grid,.zh-cards { gap:20px; }
.resource-card,.fac-directory-card,.fac-service-card,.zh-cards a { min-width:0;background:var(--ref-paper);border:1px solid var(--ref-line);border-radius:15px;padding:24px;text-decoration:none;transition:background-color .16s,border-color .16s; }
.resource-card:hover,.fac-directory-card:hover,.fac-service-card:hover,.zh-cards a:hover { border-color:#7cbda4;background:color-mix(in srgb,var(--ref-paper) 94%,var(--ref-green) 6%); }
.resource-card h3 { font-size:21px; }
.resource-card p,.fac-directory-description,.fac-service-card>span:nth-child(2),.zh-cards span { font-size:15px;line-height:1.65;color:var(--ref-muted); }
.card-top { font-size:13px;gap:9px;margin-bottom:12px; }
.card-icon { width:38px;height:38px;border-radius:10px;background:#e9f8f2;align-items:center;justify-content:center;color:#00784d; }
.card-icon svg { width:22px;height:22px; }
.card-bottom,.fac-directory-action,.fac-service-open { font-size:14px;font-weight:650;min-height:36px; }
.section-heading { margin-bottom:20px; }
.section-heading h2 { margin:0; }
.text-link { font-size:14px;min-height:44px; }
.reading-section { display:grid;grid-template-columns:260px minmax(0,1fr);gap:28px;align-items:start; }
.reading-label { padding:24px;background:var(--ref-soft);border-radius:15px; }
.reading-label h2 { font-size:27px;max-width:none; }
.reading-label p { font-size:15px;line-height:1.7; }
.tool-explainer,.article-layout>.prose,.service-reading>.prose,.zh-article { padding:30px;background:var(--ref-paper);border:1px solid var(--ref-line);border-radius:16px;min-width:0;font-size:17px;line-height:1.85; }
.tool-explainer h2,.prose h2,.zh-article h2 { font-size:26px;line-height:1.3;margin-top:30px; }
.tool-explainer h2:first-child,.prose h2:first-child,.zh-article h2:first-child { margin-top:0; }
.prose h3 { font-size:21px; }
.article-header { padding:30px 0 26px; }
.article-header h1 { max-width:30ch;font-size:clamp(30px,3.4vw,46px); }
.article-intro { font-size:18px;line-height:1.7;max-width:78ch; }
.article-meta { font-size:13px;margin-top:14px; }
.article-layout { grid-template-columns:minmax(0,1fr) 280px;gap:28px; }
.article-layout>.prose { max-width:80ch; }
.article-aside { padding:24px;border:1px solid var(--ref-line);border-radius:16px; }
.article-aside h2 { font-size:26px; }
.article-aside h3 { font-size:20px; }
.article-aside .button { color:#fff;background:linear-gradient(105deg,#00834b,#007645); }
.fac-directory-section { padding-block:26px; }
.fac-directory-nav,.fac-directory-tabs { padding:10px 18px;border:1px solid var(--ref-line);border-radius:12px;background:var(--ref-paper);gap:10px 24px; }
.fac-directory-card { grid-template-columns:28px minmax(0,1fr);gap:8px 14px; }
.fac-directory-title,.fac-service-title { font-size:20px;line-height:1.4; }
.fac-directory-icon { color:var(--ref-green-dark); }
.fac-service-workspace>header { border:1px solid var(--ref-line);border-bottom:0;border-radius:16px 16px 0 0;padding:26px; }
.fac-service-workspace>header h2 { font-size:27px; }
.fac-service-workspace .tool-card { border:1px solid var(--ref-line);border-radius:0 0 16px 16px;overflow:hidden; }
.fac-service-workspace .tool-result-pane { background:var(--ref-soft);color:var(--ref-ink); }
.fac-service-workspace .tool-columns { display:block; }
.fac-service-workspace .tool-input-pane { padding:24px; }
.fac-guide-nav { border:1px solid var(--ref-line);border-radius:12px;padding:22px; }
.fac-guide-nav>div { gap:8px 20px; }
.service-reading>.prose,.zh-article { max-width:86ch; }
.zh-intro { padding:28px 0 22px; }
.zh-intro h1 { max-width:32ch;font-size:clamp(30px,3.4vw,46px); }
.zh-intro>p { max-width:78ch; }
.zh-article { margin-block:24px; }
.zh-cards strong { font-size:20px;line-height:1.45; }
.zh-note,.zh-private { font-size:14px;line-height:1.7; }

.site-footer,.zh-footer { background:var(--ref-dark);color:#e5f5f2;margin-top:36px;padding:28px 0 20px;border-top:0; }
.site-footer .brand,.site-footer h2,.site-footer a,.zh-footer a { color:#f0faf8; }
.site-footer .brand-pro { color:#71e7b7; }
.site-footer .brand-symbol { color:#d7fff0; }
.site-footer .brand { font-size:26px; }
.site-footer .brand-symbol svg { width:29px;height:33px; }
.footer-grid { grid-template-columns:minmax(220px,1.7fr) repeat(3,minmax(0,1fr));gap:36px; }
.footer-brand p,.footer-brand small,.footer-brand .footer-note,.footer-bottom { color:#b9cfce; }
.footer-brand p { font-size:14px;line-height:1.7;max-width:30ch;margin:12px 0; }
.footer-brand .footer-note { font-size:13px; }
.footer-grid h2 { font-size:16px;line-height:1.4;margin-bottom:10px; }
.footer-grid a:not(.brand) { font-size:14px;line-height:1.5;min-height:38px; }
.footer-grid li { margin-bottom:1px; }
.footer-bottom { border-top:1px solid #29474b;padding-top:18px;margin-top:22px;gap:18px;font-size:13px;line-height:1.6;align-items:center; }
.footer-bottom>span:nth-child(2) { max-width:62ch; }
.footer-bottom a { color:#d6e9e5; }
.site-footer a:hover,.zh-footer a:hover { color:#6df1ba; }
.site-footer .fac-language-switch summary { background:#092c31;color:#effaf7;border-color:#38545a; }
.site-footer .fac-language-switch nav { bottom:100%;top:auto;margin-bottom:8px;background:#0b3034; }
.site-footer .fac-language-switch nav a:hover { background:#1b4645;color:#fff; }
.zh-footer { max-width:none;width:100%;padding-inline:max(48px,calc((100vw - var(--ref-content))/2));margin-bottom:0;gap:16px; }
.zh-footer p { color:#b9cfce; }
.zh-footer nav { gap:12px 24px; }
:focus-visible { outline:3px solid var(--focus);outline-offset:4px; }
.site-footer :focus-visible,.reference-hero :focus-visible { outline-color:#00a569; }

@media (max-width:1239px) {
  .wrap,.zh-main,.fac-directory,.fac-service-workspace,.tool-shortcuts { width:calc(100% - 64px); }
  .brand { font-size:27px; }.brand-symbol svg { width:33px;height:38px; }
  .desktop-nav a { padding-inline:12px; }
  .reference-grid { grid-template-columns:minmax(0,1fr) minmax(0,.5fr) minmax(0,1.55fr);gap:20px; }
  .reference-grid>.hero h1 { font-size:clamp(46px,5.7vw,70px); }
  .reference-grid>.hero .hero-description { font-size:17px; }
  .reference-art img { width:180%; }
  .reference-panel .tool-card { padding:20px; }
  .steps-grid { gap:16px; }
  .steps-grid>div { grid-template-columns:48px minmax(0,1fr);padding:24px 16px 20px 48px;gap:8px 12px; }
  .step-number { left:12px;top:14px;width:26px;height:26px;font-size:14px; }
  .step-icon { width:48px;height:48px; }.step-icon svg { width:27px;height:27px; }
  .steps-grid h3 { font-size:17px; }.steps-grid p { font-size:14px; }
}
@media (max-width:1023px) {
  .header-inner { min-height:72px;gap:14px; }
  .desktop-nav { display:none; }.mobile-toggle { display:grid; }
  .header-actions { gap:10px; }
  .reference-grid { grid-template-columns:minmax(0,.9fr) minmax(0,1.25fr);gap:28px; }
  .reference-art { display:none; }
  .reference-grid>.hero h1 { font-size:clamp(42px,6.3vw,64px);max-width:12ch; }
  .reference-grid>.hero .hero-description { font-size:17px; }
  .reference-panel .tool-card { padding:20px; }
  .reference-tool-tabs { gap:2px;padding:4px; }.reference-tool-tabs button { font-size:13px;padding-inline:6px;gap:6px; }
  .reference-tool-tabs button svg { width:17px;height:17px; }
  .precision-readout { grid-template-columns:minmax(0,1fr);gap:12px; }
  .precision-timing { display:grid;grid-template-columns:1fr auto;gap:4px 10px;align-items:center; }
  .precision-timing [data-countdown] { margin:0; }.code-progress { grid-column:1/-1;margin:0; }
  .fac-expiry-warning { grid-column:1/-1; }
  .code-digits { font-size:44px; }
  .steps-grid { grid-template-columns:1fr;gap:14px; }
  .steps-grid>div { grid-template-columns:62px minmax(0,1fr);padding:22px 24px 22px 66px;gap:6px 20px; }
  .step-number { left:22px;top:21px; }.step-icon { width:62px;height:62px; }
  .steps-grid h3 { font-size:19px; }.steps-grid p { font-size:15px; }
  .reading-section { grid-template-columns:1fr;gap:20px; }
  .article-layout { grid-template-columns:minmax(0,1fr);gap:22px; }
  .article-layout>.prose { max-width:none; }
  .footer-grid { grid-template-columns:repeat(3,minmax(0,1fr));gap:24px; }.footer-brand { grid-column:1/-1; }
  .zh-footer { padding-inline:32px; }
}
@media (max-width:767px) {
  .wrap,.zh-main,.fac-directory,.fac-service-workspace,.tool-shortcuts { width:calc(100% - 32px); }
  .header-inner { min-height:66px;gap:6px; }
  .brand { font-size:23px;gap:6px;letter-spacing:-.8px; }.brand-symbol { margin-right:0; }.brand-symbol svg { width:29px;height:33px; }
  .brand-pro { display:inline;font-size:10px;margin-left:4px; }
  .header-actions { gap:6px; }.header-actions .icon-button { width:38px;min-width:38px;height:40px; }
  .fac-language-switch summary,.zh-languages summary { min-height:40px;font-size:12px;padding:7px 10px;gap:5px;max-width:128px; }
  .fac-language-switch summary svg,.zh-languages summary svg { width:16px;height:16px; }
  .fac-language-switch summary::after,.zh-languages summary::after { margin-left:1px;font-size:16px; }
  .reference-hero { padding:24px 0 32px;background:radial-gradient(ellipse at 100% 60%,#075b45 0%,#06352f 42%,#032126 82%); }
  .reference-hero::after { height:20px; }
  .reference-grid { grid-template-columns:1fr;gap:22px; }
  .reference-grid>.hero { padding:0; }
  .reference-grid>.hero h1 { font-size:42px;line-height:1.04;max-width:15ch;margin-bottom:14px;color:#f5fffc; }
  .reference-grid>.hero h1 span { color:#37e9b3; }
  .reference-grid>.hero .hero-description { font-size:16px;line-height:1.6;max-width:40ch;color:#e2f3ed;margin-bottom:12px; }
  .reference-grid>.hero .breadcrumbs { color:#c3dcd3;font-size:12px; }.reference-grid>.hero .breadcrumbs a { color:#c3dcd3; }
  .reference-grid>.hero .precision-intro-note { border-color:#12c48d;color:#45e9b5;background:#073e31;font-size:12px;padding:6px 10px;margin-bottom:15px; }
  .reference-grid>.hero .hero-badges { display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:14px; }
  .reference-grid>.hero .hero-badges span { color:#e3f3ed;font-size:12px;font-weight:550;gap:6px; }
  .reference-grid>.hero .hero-badges svg { color:#4fe3ae;width:16px;height:16px; }
  .reference-panel .tool-card { padding:16px;border-radius:15px; }
  .reference-panel .workspace-bar { font-size:12px;padding-bottom:10px;gap:10px; }
  .reference-tool-tabs { margin-bottom:16px; }.reference-tool-tabs button { min-height:44px;font-size:12px;gap:5px;padding:7px 4px;overflow-wrap:normal; }
  .reference-tool-tabs button svg { width:17px;height:17px; }
  .reference-panel .field { font-size:14px;gap:8px; }
  .field input:not([type=checkbox]):not([type=file]),.field textarea,.field select { min-height:52px;padding:12px;font-size:16px; }
  .reference-panel .precision-entry { gap:12px; }.reference-panel .precision-entry>[data-action=run] { min-height:50px;font-size:15px; }
  .secret-controls { margin-block:7px; }.secret-controls button { font-size:13px;min-height:42px;padding:7px 10px; }
  .field-hint { font-size:13px;margin:7px 0; }
  .precision-options { gap:2px 16px; }.precision-options>.tool-actions { margin-left:0;width:100%;justify-content:space-between; }
  .precision-options>.tool-actions button,.advanced>summary,.fac-qr-import>summary { font-size:13px;min-height:42px; }
  .reference-panel .tool-result-pane { padding:16px;margin-top:14px;border-radius:11px; }
  .empty-result { min-height:90px;gap:12px; }.empty-result p { font-size:14px; }.code-placeholder { gap:6px; }.code-placeholder span { height:44px;border-radius:8px; }
  .code-digits { font-size:46px;letter-spacing:.04em; }.result-label { font-size:13px; }
  .precision-timing [data-countdown] { font-size:13px; }.fac-expiry-warning { font-size:12px; }
  .tool-result-pane .button { min-height:46px;font-size:14px; }
  .reference-panel .workspace-footnote { color:#d5eae2;font-size:12px;line-height:1.65;margin-top:12px;padding-inline:2px; }
  .reference-panel .workspace-footnote a { color:#baf5d8; }
  .reference-panel .fac-return { color:#d5eae2;padding:12px 2px 0;gap:10px; }
  .reference-panel .fac-return>div:first-child>span,.reference-panel .fac-return p { color:#c3dcd3; }
  .reference-panel .fac-return-buttons>* { color:#d5eae2;font-size:12px; }
  .reference-panel .fac-return strong { color:#f0fcf7; }
  .reference-panel .tool-shortcuts { color:#d5eae2; }.reference-panel .tool-shortcuts a[aria-current] { color:#84efc1; }
  .steps-section,.tools-section,.reading-section,.related-section { padding-block:24px; }
  .steps-section .section-heading h2 { font-size:26px; }.section-heading h2 { font-size:25px; }.section-heading { gap:8px; }
  .steps-grid>div { grid-template-columns:50px minmax(0,1fr);padding:20px 16px 20px 50px;gap:5px 14px;border-radius:14px; }
  .step-number { left:13px;top:17px;width:25px;height:25px;font-size:13px; }.step-icon { width:50px;height:50px; }.step-icon svg { width:28px;height:28px; }
  .steps-grid h3 { font-size:17px; }.steps-grid p { font-size:14px; }
  .resource-grid,.fac-directory-grid,.fac-service-grid,.zh-cards { grid-template-columns:1fr;gap:14px; }
  .resource-card,.fac-directory-card,.fac-service-card,.zh-cards a { padding:20px;border-radius:13px; }
  .resource-card h3,.fac-directory-title,.fac-service-title,.zh-cards strong { font-size:20px; }
  .resource-card p,.fac-directory-description,.fac-service-card>span:nth-child(2),.zh-cards span { font-size:15px; }
  .reading-label,.article-aside { padding:22px;border-radius:14px; }
  .reading-label h2 { font-size:25px; }
  .tool-explainer,.article-layout>.prose,.service-reading>.prose,.zh-article { padding:22px 20px;font-size:16px;line-height:1.8;border-radius:14px; }
  .tool-explainer h2,.prose h2,.zh-article h2 { font-size:24px; }
  .article-header,.zh-intro { padding-block:24px 20px; }.article-header h1,.zh-intro h1 { font-size:30px;max-width:none; }.article-intro { font-size:16px; }
  .fac-service-workspace>header { padding:22px 20px; }.fac-service-workspace>header h2 { font-size:24px; }.fac-service-workspace .tool-input-pane { padding:20px; }
  .fac-guide-nav { padding:18px; }.fac-guide-nav>div { grid-template-columns:1fr; }
  .fac-directory-nav,.fac-directory-tabs { gap:4px 18px;padding:8px 14px; }
  .site-footer,.zh-footer { margin-top:24px;padding-block:26px 18px; }
  .footer-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:24px; }.footer-brand { grid-column:1/-1; }.footer-grid>div:last-child { grid-column:1/-1; }
  .footer-brand p { max-width:35ch; }.footer-grid h2 { font-size:16px; }.footer-grid a:not(.brand) { min-height:42px;font-size:14px; }
  .footer-bottom { flex-direction:column;align-items:flex-start;gap:10px;margin-top:20px;padding-top:18px;font-size:13px; }
  .zh-footer { padding-inline:16px; }.zh-footer nav { gap:8px 20px; }.zh-footer nav a { min-height:42px;display:inline-flex;align-items:center; }
}
@media (max-width:389px) {
  .brand { font-size:21px;gap:4px; }.brand-symbol svg { width:26px;height:30px; }.brand-pro { font-size:9px;margin-left:3px; }
  .header-actions { gap:4px; }.header-actions .icon-button { width:35px;min-width:35px; }
  .fac-language-switch summary,.zh-languages summary { max-width:117px;padding-inline:8px;font-size:11px;gap:4px; }
  .fac-language-switch summary svg,.zh-languages summary svg { width:15px;height:15px; }
  .reference-grid>.hero h1 { font-size:39px; }
  .reference-tool-tabs button { font-size:11.5px;gap:4px; }.reference-tool-tabs button svg { width:16px;height:16px; }
  .code-digits { font-size:43px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important;transition:none!important;animation:none!important; } }
/* Native controls retained behind the reference disclosure buttons. */
.fac-language-switch:has(.fac-language-chevron) summary::after{content:none}
.reference-enhanced .advanced>summary,.reference-enhanced .fac-qr-import>summary{display:none}
.reference-tool-tabs button.is-current{background:linear-gradient(105deg,#00834b,#007645);color:#fff}
.reference-demo{display:flex;justify-content:flex-end;margin:0 0 8px}.reference-demo .button{min-height:36px;padding:6px 12px;background:var(--ref-soft);font-size:13px;border-radius:18px}
.reference-bottom-actions{display:flex;gap:12px;padding:14px 0 0}.reference-bottom-actions .button{flex:1;background:var(--ref-soft);font-size:14px;min-height:44px}.reference-bottom-actions [data-action=copy]:disabled{cursor:default;opacity:.55}
.reference-panel .reference-bottom-actions{padding-top:12px}
.reference-chinese-tool{max-width:none;width:100%}.reference-chinese-tool>.zh-private,.reference-chinese-tool>.zh-related{max-width:var(--ref-content);width:calc(100% - 96px);margin-inline:auto}.reference-chinese-tool>.zh-article{max-width:86ch;width:calc(100% - 48px)}
.reference-chinese-tool .hero h1{max-width:12ch}.reference-secondary-tool .reference-grid{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
.reference-secondary-tool .hero h1{font-size:clamp(32px,4vw,56px);max-width:20ch}
.precision-timing:has(progress:not([hidden])) [data-countdown]{width:94px;min-height:94px;padding:20px 10px;display:flex;align-items:center;justify-content:center;text-align:center;border-radius:50%;background:linear-gradient(var(--ref-soft),var(--ref-soft)) padding-box,conic-gradient(#008c52 calc(var(--reference-time,1)*1turn),#d6e2df 0) border-box;border:6px solid transparent;line-height:1.35}
@media(max-width:767px){.reference-chinese-tool>.zh-private,.reference-chinese-tool>.zh-related{width:calc(100% - 32px)}.reference-secondary-tool .reference-grid{grid-template-columns:1fr}.reference-secondary-tool .hero h1{font-size:32px;max-width:none}.reference-chinese-tool .hero h1{max-width:none}.reference-bottom-actions{gap:8px}.precision-timing:has(progress:not([hidden])) [data-countdown]{width:82px;min-height:82px;font-size:12px;padding:14px 8px}}
.reference-panel .workspace-bar{display:none}.reference-panel .tool-input-pane{position:relative}.reference-demo{position:absolute;right:0;top:77px;margin:0;z-index:2}.reference-field-label{display:block;padding-right:110px;min-height:32px}.reference-panel .secret-controls:empty,.reference-panel .precision-options>.tool-actions:empty{display:none}.reference-enhanced .precision-options:has(>.tool-actions:empty){margin-top:0}.reference-panel .precision-options{min-height:0}.reference-bottom-actions{display:grid;grid-template-columns:1fr 1fr auto auto}.reference-bottom-actions .button{padding-inline:12px}.reference-after-tool>.tool-shortcuts{width:auto;justify-content:flex-end;margin:8px 0 0}.reference-panel .tool-card{padding:24px}.reference-panel .tool-result-pane{margin-top:12px}.reference-panel .field-hint{margin-bottom:4px}.reference-panel .reference-demo .button{min-height:32px;padding:4px 10px;font-size:12px}.reference-after-tool{padding-top:4px}
@media(max-width:767px){.reference-panel .tool-card{padding:16px}.reference-demo{top:70px}.reference-field-label{padding-right:94px;font-size:13px;min-height:32px}.reference-bottom-actions{grid-template-columns:1fr 1fr}.reference-bottom-actions .button{font-size:13px}.reference-after-tool>.tool-shortcuts{justify-content:flex-start}}
.reference-grid>.hero{align-self:start;padding-top:32px}.reference-grid>.hero .precision-intro-note{margin:0 0 22px;width:fit-content}.reference-art{align-self:start;height:520px}.reference-art img{max-height:560px}.reference-grid>.hero .hero-badges{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:24px}.reference-grid>.hero .hero-badges span{display:flex;flex-direction:column;align-items:flex-start;font-size:13px;gap:10px;line-height:1.45}.reference-grid>.hero .hero-badges svg{width:48px;height:48px;padding:12px;border:1px solid #bfe8d7;border-radius:13px;background:#e6f8f0;color:#008151}.reference-panel .precision-jump{display:none}.reference-panel .tool-status{font-size:12px;line-height:1.5}.reference-panel .tool-status:not(:empty){margin-top:4px;padding:4px 0}
@media(max-width:999px){.reference-grid>.hero .hero-badges{grid-template-columns:repeat(2,minmax(0,1fr))}.reference-art{display:none}}
@media(max-width:767px){.reference-grid>.hero{padding-top:0}.reference-grid>.hero .precision-intro-note{margin-bottom:16px}.reference-grid>.hero .hero-badges{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:18px}.reference-grid>.hero .hero-badges span{font-size:11px;color:#ecfff5;gap:8px}.reference-grid>.hero .hero-badges svg{background:#094b3d;color:#21e4a4;border-color:#16775b;width:46px;height:46px}.reference-panel .precision-jump:not([hidden]){display:inline-flex}.reference-grid>.hero h1{max-width:12ch}}

@media(max-width:767px){.reference-grid>.hero .hero-badges{display:grid}.header-actions .icon-button{width:44px;min-width:44px;height:44px}.brand{font-size:21px}.fac-language-switch summary{max-width:108px}.language-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:70px}}
/* Reserve the admin toolbar's own height; visitors have no added margin. */
html:has(body.admin-bar){margin-top:var(--wp-admin--admin-bar--height,32px)!important}
@media(max-width:782px){html:has(body.admin-bar){margin-top:var(--wp-admin--admin-bar--height,46px)!important}}

/* Inner-page reference system. Original wording, headings and links stay in DOM. */
:root{--section-green:#006b43;--section-mint:#eaf9f3;--section-line:#dce9e5;--section-shadow:0 12px 30px rgb(7 91 62 / 6%)}
.site-header{color:#081f2a;background:#fff}
.site-header .brand,.site-header .desktop-nav a,.site-header .fac-language-switch summary{color:#081f2a}
.site-header .brand-pro{color:#006b43}
.site-header .desktop-nav a[aria-current=page],.site-header .desktop-nav a:hover{color:#006b43}
.site-header .fac-language-switch summary{background:#fff}
.site-header .theme-toggle{color:#fff;background:#042226}
.site-footer .brand-pro{color:#71e7b7}
html[data-theme=dark]{--section-green:#a3efd0;--section-mint:#173f37;--section-line:#31574e;--section-shadow:0 12px 30px rgb(0 0 0 / 12%)}
html[data-theme=dark] .site-header{color:#eef9f7;background:#102e33}
html[data-theme=dark] .site-header .brand,html[data-theme=dark] .site-header .desktop-nav a,html[data-theme=dark] .site-header .fac-language-switch summary{color:#eef9f7}
html[data-theme=dark] .site-header .brand-pro{color:#8be9bf}
html[data-theme=dark] .site-header .desktop-nav a[aria-current=page],html[data-theme=dark] .site-header .desktop-nav a:hover{color:#b0f8d9;background:#1c493d}
html[data-theme=dark] .site-header .fac-language-switch summary{background:#102e33}

/* Save/share is a designed section, not a small line below the workspace. */
.reference-after-tool{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:44px;row-gap:20px;padding-block:52px 42px;margin-block:14px 10px}
.reference-after-tool::before{content:"";position:absolute;z-index:-2;inset:0 -32px;background:radial-gradient(ellipse at 84% 26%,#d8f5e8 0,transparent 48%),linear-gradient(145deg,#f5fcf8,#fff 57%,#e7f8f1);border-radius:28% 12% 18% 8% / 12% 8% 12% 8%;pointer-events:none}
.reference-after-tool::after{content:"";position:absolute;z-index:-1;right:2%;top:8px;width:280px;height:230px;opacity:.2;pointer-events:none;background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 280 230'%3E%3Cpath d='M176 8l73 29v56c0 48-73 91-73 91s-73-43-73-91V37z' fill='%2390d7bb'/%3E%3Crect x='145' y='76' width='63' height='54' rx='17' fill='white'/%3E%3Cpath d='M155 77V65a21 21 0 0142 0v12' fill='none' stroke='white' stroke-width='10'/%3E%3Ccircle cx='176' cy='99' r='6' fill='%235aa98b'/%3E%3Cpath d='M176 104v12' stroke='%235aa98b' stroke-width='5'/%3E%3Crect x='6' y='93' width='95' height='58' rx='10' fill='white' stroke='%2390d7bb' stroke-width='3' transform='rotate(-12 6 93)'/%3E%3Cpath d='M24 119h58m-58 14h40' stroke='%2390d7bb' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}
.reference-after-tool>.fac-return{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:28px 44px;align-items:center;padding:0;margin:0;color:var(--ref-ink)}
.reference-after-tool .fac-return>div:first-child{max-width:none}
.reference-after-tool .fac-return strong{display:block;font-size:clamp(32px,3.65vw,56px);line-height:1.13;letter-spacing:-.035em;font-weight:760;color:var(--ref-ink);max-width:20ch;margin:0 0 17px}
.reference-after-tool .fac-return>div:first-child>span{display:block;font-size:18px;line-height:1.65;color:var(--ref-muted);max-width:58ch;margin:0}
.reference-after-tool .fac-return-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;background:var(--ref-paper);border:1px solid var(--section-line);box-shadow:var(--section-shadow);border-radius:18px;padding:16px 12px;align-items:stretch}
.reference-after-tool .fac-return-buttons>*{display:flex;justify-content:center;align-items:center;gap:9px;min-width:0;min-height:54px;padding:6px 9px;margin:0;text-decoration:none;font-size:14px;line-height:1.4;font-weight:600;color:var(--ref-ink);border-radius:10px}
.reference-after-tool .fac-return-buttons>*+*{border-inline-start:1px solid var(--section-line)}
.reference-after-tool .fac-return-buttons>*:hover{background:var(--section-mint);color:var(--section-green)}
.reference-after-tool .fac-return-buttons svg{width:40px;height:40px;padding:10px;border-radius:11px;background:#e2f8ec;color:#007346;flex-shrink:0}
.reference-after-tool .fac-return-buttons [data-return=copy] svg,.reference-after-tool .fac-share-facebook svg{background:#e8efff;color:#245ca4}
.reference-after-tool .fac-return [data-return-status]{grid-column:1/-1;font-size:14px;color:var(--section-green);margin:0;max-width:80ch}
.reference-after-tool .fac-return [data-return-status]:empty{display:none}
.reference-after-tool>.workspace-footnote{grid-column:1;grid-row:2;align-self:start;justify-self:start;display:flex;gap:9px;align-items:center;flex-wrap:wrap;font-size:15px;line-height:1.6;padding:13px 16px;margin:0;background:var(--section-mint);border-radius:12px;color:var(--section-green)}
.reference-after-tool>.workspace-footnote svg{width:21px;height:21px;flex-shrink:0}
.reference-after-tool>.workspace-footnote a{color:inherit;font-weight:600;min-height:30px;display:inline-flex;align-items:center;gap:6px}
.reference-after-tool>.tool-shortcuts{grid-column:2;grid-row:2;align-self:center;justify-content:flex-end;width:100%;margin:0;padding:0;gap:12px 22px}
.reference-after-tool>.tool-shortcuts a{font-size:14px;min-height:44px;font-weight:600;color:var(--section-green)}

/* Real three-step sequence, with a single heading and distinct illustrated cards. */
.steps-section{position:relative;isolation:isolate;padding-block:50px 46px}
.steps-section::before{content:"";position:absolute;z-index:-1;inset:0 -32px;pointer-events:none;background:radial-gradient(ellipse at 0% 30%,#e5f8f0 0,transparent 32%),radial-gradient(ellipse at 100% 0%,#effbf5 0,transparent 38%)}
.steps-section>.section-heading{gap:15px;margin-bottom:42px}
.steps-section .section-heading h2{font-size:clamp(28px,3vw,42px);line-height:1.2;max-width:32ch;letter-spacing:-.03em}
.steps-section .section-heading .text-link{display:inline-flex;min-height:44px;padding:9px 20px;border:1px solid #c9eadc;border-radius:24px;background:#effaf5;color:#006b43;font-size:15px;font-weight:650}
.steps-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:48px}
.steps-grid>div{display:grid;position:relative;grid-template-columns:78px minmax(0,1fr);gap:9px 22px;padding:32px 26px;min-height:166px;border:1px solid var(--section-line);border-radius:18px;background:var(--ref-paper);box-shadow:var(--section-shadow)}
.steps-grid>div:not(:last-child)::after{content:"";position:absolute;right:-45px;top:calc(50% - 20px);width:40px;height:40px;z-index:2;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='18' fill='%23effbf6' stroke='%23bbe5d3' stroke-dasharray='2 2'/%3E%3Cpath d='M12 20h16m-6-6 6 6-6 6' fill='none' stroke='%23006b43' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;pointer-events:none}
.step-number{width:38px;height:38px;left:24px;top:-17px;font-size:15px;font-weight:700;background:#007246;box-shadow:0 3px 7px rgb(0 100 60 / 10%)}
.step-icon{width:78px;height:78px;grid-row:1/span 2;grid-column:1;background:#e9f8f1;margin:0;color:#006b43;align-self:center}
.step-icon svg{width:38px;height:38px}
.steps-grid h3{font-size:21px;line-height:1.35;grid-column:2;grid-row:1;margin:0;align-self:end}
.steps-grid p{font-size:16px;line-height:1.65;grid-column:2;grid-row:2;margin:0;color:var(--ref-muted)}

/* Tool navigation: icon, task and action occupy stable columns. */
.tools-section{padding-block:38px 44px}
.tools-section .section-heading{padding-bottom:20px;border-top:1px solid var(--section-line);padding-top:32px;margin-bottom:0}
.tools-section .section-heading h2,.reference-help>.section-heading h2{font-size:clamp(28px,2.9vw,40px);line-height:1.2;max-width:34ch}
.tools-section .resource-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.tools-section .resource-card,.hub-section .resource-card{position:relative;isolation:isolate;display:grid;grid-template-columns:68px minmax(0,1fr) auto;grid-template-rows:auto auto auto;gap:7px 20px;align-items:start;padding:26px 28px;min-height:160px;overflow:hidden;border-radius:17px;box-shadow:0 7px 20px rgb(7 91 62 / 4%)}
.tools-section .resource-card::before,.hub-section .resource-card::before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(155deg,transparent 50%,rgb(215 245 232 / 24%) 50%,transparent 83%);pointer-events:none}
.tools-section .card-top,.hub-section .card-top{display:contents}
.tools-section .card-icon,.hub-section .card-icon{grid-column:1;grid-row:1/span 3;width:68px;height:68px;align-self:center;border-radius:16px;color:#006b43;background:#e7f9f1}
.tools-section .card-icon svg,.hub-section .card-icon svg{width:34px;height:34px}
.tools-section .card-tag,.hub-section .card-tag{grid-column:2;grid-row:1;font-size:12px;line-height:1.4;color:var(--ref-muted);align-self:end}
.tools-section .resource-card h3,.hub-section .resource-card h3{grid-column:2;grid-row:2;font-size:21px;line-height:1.35;margin:0}
.tools-section .resource-card p,.hub-section .resource-card p{grid-column:2;grid-row:3;font-size:16px;line-height:1.6;margin:0;max-width:43ch}
.tools-section .card-bottom,.hub-section .card-bottom{grid-column:3;grid-row:1/span 3;align-self:center;justify-self:end;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #8bcdb1;color:#006b43;border-radius:24px;padding:9px 18px;min-height:46px;min-width:98px;font-size:15px;background:var(--ref-paper)}
.tools-section .resource-card:hover .card-bottom,.hub-section .resource-card:hover .card-bottom{color:#fff;background:#007246;border-color:#007246}
.hub-section .resource-card:not(:has(.card-tag)) h3{grid-row:1}
.hub-section .resource-card:not(:has(.card-tag)) p{grid-row:2/span 2}
.fac-directory-grid,.fac-service-grid,.zh-cards{gap:18px}
.fac-directory-card,.fac-service-card,.zh-cards a{border-color:var(--section-line);box-shadow:0 7px 20px rgb(7 91 62 / 4%)}
.fac-directory-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:12px;background:#e7f9f1;color:#006b43}
.fac-directory-card{grid-template-columns:46px minmax(0,1fr);gap:10px 18px}
.fac-directory-title{font-size:21px;line-height:1.35}
.fac-directory-description{font-size:15px;line-height:1.7}
.fac-directory-action,.fac-service-open{min-height:44px;color:var(--section-green)}

/* The full explanation stays visible, with a featured first answer and a calm grid. */
.reading-section{grid-template-columns:260px minmax(0,1fr);gap:24px;position:relative;isolation:isolate;padding-block:34px 42px}
.reading-section::before{content:"";position:absolute;z-index:-1;inset:-10px -32px;pointer-events:none;background:radial-gradient(ellipse at 1% 30%,#e8faf2 0,transparent 34%),radial-gradient(ellipse at 95% 78%,#effbf6 0,transparent 35%)}
.reading-label{align-self:start;border:1px solid var(--section-line);padding:26px 28px;background:linear-gradient(155deg,var(--ref-paper) 67%,var(--section-mint));border-radius:16px}
.reading-label::before{content:"";display:block;width:64px;height:64px;border-radius:50%;margin-bottom:20px;background:#e8f9f2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 12 18 17v13c0 13 14 22 14 22s14-9 14-22V17z' fill='%23b5e8d4' stroke='%23006b43' stroke-width='1.5'/%3E%3C/svg%3E") center/56px no-repeat}
.reading-label h2{font-size:25px;line-height:1.35;margin:0 0 14px}
.reading-label p{font-size:15px;line-height:1.7;color:var(--ref-muted);margin-bottom:16px}
.reading-label .text-link{font-size:15px;color:var(--section-green);text-decoration:underline;text-underline-offset:6px}
.tool-explainer{max-width:none;padding:30px;border-color:var(--section-line);box-shadow:0 8px 24px rgb(7 91 62 / 3%)}
.knowledge-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px;min-width:0}
.knowledge-block{min-width:0;padding:23px 0 8px;border-top:1px solid var(--section-line);font-size:15px;line-height:1.75;color:var(--ref-muted)}
.knowledge-block h2,.tool-explainer .knowledge-block h2{font-size:22px;line-height:1.35;margin:0 0 12px;color:var(--ref-ink)}
.knowledge-block h3{font-size:19px;line-height:1.4;margin:22px 0 10px}
.knowledge-block p{margin:0 0 14px;max-width:none}
.knowledge-block p:last-child{margin-bottom:0}
.knowledge-featured{grid-column:1/-1;padding:0 0 22px;border:0;font-size:16px;line-height:1.75}
.knowledge-featured h2,.tool-explainer .knowledge-featured h2{font-size:28px;line-height:1.3;margin:0 0 14px}
.knowledge-featured>ul,.knowledge-featured>ol{background:var(--section-mint);padding:16px 22px 16px 42px;border-radius:12px;margin:18px 0 0;font-size:15px;line-height:1.7}
.knowledge-featured li{margin:6px 0;padding-inline-start:3px}
.tool-page:has(.reference-home) .knowledge-featured>ul{counter-reset:setup-instructions;list-style:none;padding:14px 18px}
.tool-page:has(.reference-home) .knowledge-featured>ul>li{counter-increment:setup-instructions;position:relative;padding:5px 0 5px 44px;min-height:34px;margin:4px 0}
.tool-page:has(.reference-home) .knowledge-featured>ul>li::before{content:counter(setup-instructions);position:absolute;left:0;top:3px;width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#d9f6eb;border:1px solid #c4ecde;color:#006b43;font-weight:650;font-size:14px}
.knowledge-block .technical-sources{font-size:14px;margin-top:16px}
.knowledge-block .technical-sources summary{min-height:44px}
.article-layout>.prose,.service-reading>.prose,.zh-article{border-color:var(--section-line);box-shadow:0 8px 24px rgb(7 91 62 / 3%)}
.article-layout>.prose:has(.knowledge-grid),.service-reading>.prose:has(.knowledge-grid),.zh-article:has(.knowledge-grid){max-width:1100px}
.article-aside,.fac-guide-nav{border-color:var(--section-line);background:var(--ref-paper)}
.article-aside .text-link,.fac-guide-nav a{color:var(--section-green)}

/* Help cards use real links and separate, lazy-loaded decorative art. */
.reference-help{position:relative;isolation:isolate;padding-block:40px 44px}
.reference-help::before{content:"";position:absolute;z-index:-1;inset:0 -32px;background:radial-gradient(ellipse at 5% 20%,#eefbf5 0,transparent 34%),radial-gradient(ellipse at 93% 80%,#e8f9f2 0,transparent 44%);pointer-events:none}
.reference-help>.section-heading{align-items:center;gap:24px;margin-bottom:28px}
.reference-help>.section-heading .text-link{border:1px solid #c3e8d9;border-radius:13px;padding:10px 20px;min-height:46px;background:#effaf5;color:#006b43}
.reference-help .related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.reference-help .reference-help-card{display:grid;grid-template-columns:56px minmax(0,1fr) 205px;grid-template-rows:auto auto auto;gap:17px 20px;padding:30px;min-height:292px;border-radius:20px;border-color:var(--section-line);box-shadow:var(--section-shadow);overflow:hidden;align-items:start}
.reference-help-card>.card-top{grid-column:1;grid-row:1;display:block;margin:0}
.reference-help-card .card-icon{width:56px;height:56px;border-radius:14px;background:#e7f9f1;color:#006b43}
.reference-help-card .card-icon svg{width:31px;height:31px}
.reference-help-card>h3{grid-column:2;grid-row:1;font-size:26px;line-height:1.3;margin:0;align-self:center;letter-spacing:-.025em}
.reference-help-card>p{grid-column:1/span 2;grid-row:2;font-size:17px;line-height:1.65;margin:0;color:var(--ref-muted)}
.reference-help-card>.card-bottom{grid-column:1/span 2;grid-row:3;display:inline-flex;align-items:center;justify-content:center;justify-self:start;align-self:end;min-height:46px;gap:10px;padding:10px 18px;border-radius:9px;font-size:15px;font-weight:600;background:#007246;color:#fff}
.reference-help-card:hover>.card-bottom{background:#005f3a;color:#fff}
.reference-help-art{position:relative;grid-column:3;grid-row:1/span 3;align-self:center;width:100%;height:225px;overflow:hidden;pointer-events:none}
.reference-help-art>img{display:block;width:100%;height:100%;max-width:100%;object-fit:contain;object-position:center}
.reference-help .reference-help-card:nth-child(3){grid-column:1/-1;grid-template-columns:56px minmax(0,1fr) 320px;min-height:245px}
.reference-help .reference-help-card:nth-child(3)>.reference-help-art{height:220px}

html[data-theme=dark] .reference-after-tool::before,html[data-theme=dark] .steps-section::before,html[data-theme=dark] .reading-section::before,html[data-theme=dark] .reference-help::before{background:radial-gradient(ellipse at 85% 40%,#153f35 0,transparent 55%)}
html[data-theme=dark] .reference-after-tool::after{opacity:.08}
html[data-theme=dark] .reference-after-tool .fac-return-buttons svg,html[data-theme=dark] .step-icon,html[data-theme=dark] .card-icon,html[data-theme=dark] .fac-directory-icon{background:#204d3e;color:#a3efd0}
html[data-theme=dark] .reference-after-tool .fac-return-buttons [data-return=copy] svg,html[data-theme=dark] .reference-after-tool .fac-share-facebook svg{background:#243f5b;color:#bfdaff}
html[data-theme=dark] .steps-section .section-heading .text-link,html[data-theme=dark] .reference-help>.section-heading .text-link{background:#163f34;border-color:#376b57;color:#b4f5d7}
html[data-theme=dark] .tools-section .card-bottom,html[data-theme=dark] .hub-section .card-bottom{color:#b4f5d7;border-color:#578d74;background:#163f34}
html[data-theme=dark] .tools-section .resource-card::before,html[data-theme=dark] .hub-section .resource-card::before{opacity:.14}
html[data-theme=dark] .reading-label{background:linear-gradient(155deg,var(--ref-paper) 67%,#153f35)}
html[data-theme=dark] .tool-page:has(.reference-home) .knowledge-featured>ul>li::before{background:#235a46;border-color:#3a755e;color:#b7f8d9}

@media(max-width:1239px){
 .reference-after-tool{column-gap:24px}.reference-after-tool>.fac-return{column-gap:28px;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr)}
 .reference-after-tool .fac-return strong{font-size:42px}.reference-after-tool .fac-return>div:first-child>span{font-size:17px}
 .reference-after-tool .fac-return-buttons{padding:12px 8px}.reference-after-tool .fac-return-buttons>*{flex-direction:column;gap:7px;font-size:13px;padding:5px}
 .reference-after-tool .fac-return-buttons svg{width:38px;height:38px;padding:9px}
 .steps-grid{gap:28px}.steps-grid>div{grid-template-columns:64px minmax(0,1fr);gap:9px 18px;padding:30px 22px}.step-icon{width:64px;height:64px}.step-icon svg{width:32px;height:32px}.steps-grid h3{font-size:19px}.steps-grid p{font-size:15px}.steps-grid>div:not(:last-child)::after{right:-29px;width:30px;height:30px;top:calc(50% - 15px)}
 .tools-section .resource-card,.hub-section .resource-card{grid-template-columns:58px minmax(0,1fr);gap:8px 18px;padding:24px}.tools-section .card-icon,.hub-section .card-icon{width:58px;height:58px;grid-row:1/span 3}.tools-section .card-bottom,.hub-section .card-bottom{grid-column:2;grid-row:4;justify-self:start;padding:6px 16px;min-height:42px;margin-top:3px}
 .reading-section{grid-template-columns:230px minmax(0,1fr);gap:20px}.reading-label{padding:24px}.tool-explainer{padding:26px}.knowledge-grid{column-gap:26px}.knowledge-featured h2,.tool-explainer .knowledge-featured h2{font-size:26px}.knowledge-block h2,.tool-explainer .knowledge-block h2{font-size:21px}
 .reference-help .reference-help-card{grid-template-columns:52px minmax(0,1fr) 155px;padding:26px;gap:15px 18px}.reference-help-card>h3{font-size:24px}.reference-help-card>p{font-size:16px}.reference-help-art{height:190px}.reference-help .reference-help-card:nth-child(3){grid-template-columns:52px minmax(0,1fr) 260px}
}
@media(max-width:1023px){
 .reference-after-tool{display:block;padding-block:40px 34px}.reference-after-tool>.fac-return{grid-template-columns:1fr;gap:22px}.reference-after-tool .fac-return strong{font-size:40px;max-width:24ch}.reference-after-tool .fac-return>div:first-child>span{max-width:72ch}.reference-after-tool .fac-return-buttons{grid-template-columns:repeat(4,minmax(0,1fr));padding:14px}.reference-after-tool .fac-return-buttons>*{flex-direction:row;font-size:14px;gap:9px}.reference-after-tool>.workspace-footnote{margin-top:20px;width:fit-content}.reference-after-tool>.tool-shortcuts{justify-content:flex-start;margin-top:15px}
 .steps-grid{grid-template-columns:1fr;gap:26px}.steps-grid>div{grid-template-columns:78px minmax(0,1fr);padding:28px 30px;gap:7px 24px;min-height:142px}.step-icon{width:78px;height:78px}.steps-grid h3{font-size:21px}.steps-grid p{font-size:16px}.steps-grid>div:not(:last-child)::after{display:none}
 .reading-section{grid-template-columns:1fr;gap:20px}.reading-label{display:grid;grid-template-columns:64px minmax(0,1fr);gap:8px 20px;padding:24px}.reading-label::before{grid-column:1;grid-row:1/span 3;margin:0}.reading-label h2,.reading-label p,.reading-label .text-link{grid-column:2;margin:0}.reading-label h2{font-size:25px}.reading-label .text-link{justify-self:start}
 .reference-help .related-grid{grid-template-columns:1fr;gap:20px}.reference-help .reference-help-card,.reference-help .reference-help-card:nth-child(3){grid-column:auto;grid-template-columns:56px minmax(0,1fr) 230px;min-height:260px}.reference-help-card>h3{font-size:26px}.reference-help-card>p{font-size:17px}.reference-help-art,.reference-help .reference-help-card:nth-child(3)>.reference-help-art{height:220px}
}
@media(max-width:767px){
 .reference-after-tool{padding-block:32px 28px;margin-top:12px}.reference-after-tool::before,.steps-section::before,.reading-section::before,.reference-help::before{inset-inline:-16px}.reference-after-tool::after{width:190px;height:170px;right:-4px;top:4px;opacity:.12}
 .reference-after-tool .fac-return strong{font-size:32px;line-height:1.2;margin-bottom:13px;max-width:none}.reference-after-tool .fac-return>div:first-child>span{font-size:16px;line-height:1.7}.reference-after-tool .fac-return-buttons{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border-radius:15px;padding:12px}.reference-after-tool .fac-return-buttons>*{font-size:14px;min-height:54px;justify-content:flex-start;padding:7px;gap:9px}.reference-after-tool .fac-return-buttons>*+*{border:0}.reference-after-tool .fac-return-buttons svg{width:38px;height:38px;padding:9px}.reference-after-tool>.workspace-footnote{font-size:14px;line-height:1.6;padding:12px 14px;margin-top:17px}.reference-after-tool>.tool-shortcuts{gap:8px 18px;margin-top:12px}.reference-after-tool>.tool-shortcuts a{font-size:14px}
 .steps-section{padding-block:34px 30px}.steps-section>.section-heading{gap:14px;margin-bottom:32px}.steps-section .section-heading h2{font-size:28px;max-width:24ch}.steps-section .section-heading .text-link{font-size:14px;min-height:44px;padding:8px 16px}.steps-grid{gap:24px}.steps-grid>div{grid-template-columns:62px minmax(0,1fr);gap:7px 17px;padding:26px 20px;min-height:138px;border-radius:15px}.step-number{left:20px;top:-13px;width:32px;height:32px;font-size:14px}.step-icon{width:62px;height:62px}.step-icon svg{width:31px;height:31px}.steps-grid h3{font-size:19px}.steps-grid p{font-size:15px;line-height:1.65}
 .tools-section{padding-block:26px 30px}.tools-section .section-heading{padding-top:26px;padding-bottom:18px;gap:8px}.tools-section .section-heading h2,.reference-help>.section-heading h2{font-size:28px;line-height:1.25}.tools-section .resource-grid{grid-template-columns:1fr;gap:16px}.tools-section .resource-card,.hub-section .resource-card{grid-template-columns:52px minmax(0,1fr);gap:7px 16px;padding:22px 20px;min-height:0;border-radius:15px}.tools-section .card-icon,.hub-section .card-icon{width:52px;height:52px;border-radius:13px;grid-row:1/span 2;align-self:start}.tools-section .card-icon svg,.hub-section .card-icon svg{width:28px;height:28px}.tools-section .card-tag,.hub-section .card-tag{font-size:12px}.tools-section .resource-card h3,.hub-section .resource-card h3{font-size:20px}.tools-section .resource-card p,.hub-section .resource-card p{grid-column:1/-1;grid-row:3;font-size:15px;line-height:1.7;margin-top:3px}.tools-section .card-bottom,.hub-section .card-bottom{grid-column:1/-1;grid-row:4;justify-self:start;min-height:44px;margin-top:6px;font-size:14px;padding:8px 17px}
 .reading-section{padding-block:26px 30px;gap:17px}.reading-label{padding:22px 20px;grid-template-columns:52px minmax(0,1fr);gap:9px 16px;border-radius:15px}.reading-label::before{width:52px;height:52px;background-size:48px}.reading-label h2{font-size:23px;line-height:1.4}.reading-label p{font-size:15px;line-height:1.7}.reading-label .text-link{font-size:14px;min-height:44px}.tool-explainer{padding:24px 20px;border-radius:15px}.knowledge-grid{grid-template-columns:1fr;gap:0}.knowledge-block{grid-column:1;padding-block:22px 8px;font-size:16px;line-height:1.75}.knowledge-featured{padding-top:0}.knowledge-block h2,.tool-explainer .knowledge-block h2{font-size:23px;line-height:1.35;margin-bottom:12px}.knowledge-featured h2,.tool-explainer .knowledge-featured h2{font-size:25px}.knowledge-featured>ul,.knowledge-featured>ol{font-size:15px;padding:14px 18px 14px 36px;margin-top:16px}.tool-page:has(.reference-home) .knowledge-featured>ul{padding:12px}.tool-page:has(.reference-home) .knowledge-featured>ul>li{padding-left:39px;margin-block:6px;line-height:1.7}.tool-page:has(.reference-home) .knowledge-featured>ul>li::before{width:28px;height:28px;font-size:13px}
 .reference-help{padding-block:30px 34px}.reference-help>.section-heading{align-items:flex-start;gap:15px;margin-bottom:22px}.reference-help>.section-heading .text-link{padding:8px 16px;font-size:14px;min-height:44px}.reference-help .reference-help-card,.reference-help .reference-help-card:nth-child(3){grid-template-columns:50px minmax(0,1fr);grid-template-rows:auto auto auto;gap:14px 16px;padding:24px 20px;border-radius:17px;min-height:0}.reference-help-card .card-icon{width:50px;height:50px;border-radius:13px}.reference-help-card .card-icon svg{width:28px;height:28px}.reference-help-card>h3{grid-column:2;font-size:23px;line-height:1.35}.reference-help-card>p{grid-column:1/-1;grid-row:2;font-size:16px;line-height:1.7}.reference-help-card>.card-bottom{grid-column:1/-1;grid-row:3;align-self:center;max-width:calc(100% - 130px);font-size:14px;min-height:44px;padding:9px 15px}.reference-help-art,.reference-help .reference-help-card:nth-child(3)>.reference-help-art{grid-column:2;grid-row:3;justify-self:end;width:125px;height:112px;align-self:center;margin-top:-3px}
 .fac-directory-card{padding:22px 20px}.fac-directory-title{font-size:20px}.fac-directory-description{font-size:15px}
}
@media(max-width:389px){.reference-after-tool .fac-return-buttons>*{font-size:13px;gap:7px;padding-inline:5px}.reference-after-tool .fac-return-buttons svg{width:34px;height:34px;padding:8px}.steps-grid>div{grid-template-columns:54px minmax(0,1fr);gap:7px 14px;padding-inline:18px}.step-icon{width:54px;height:54px}.step-icon svg{width:28px;height:28px}.steps-grid h3{font-size:18px}.reference-help-card>h3{font-size:22px}.reference-help-card>.card-bottom{max-width:calc(100% - 115px);padding-inline:12px}.reference-help-art,.reference-help .reference-help-card:nth-child(3)>.reference-help-art{width:112px;height:104px}}
@media(prefers-reduced-motion:reduce){.resource-card,.fac-directory-card,.fac-service-card,.zh-cards a{transition:none}}
/* Chinese native copy uses the same mobile hero contrast as the other locales. */
@media(max-width:767px){.reference-chinese-tool .zh-intro>p,.reference-chinese-tool .zh-note{color:#d4ece5}.reference-chinese-tool .zh-intro .zh-eyebrow{color:#adf2d0}.reference-chinese-tool .zh-intro h1{font-size:34px;line-height:1.25;word-break:normal}}

@media(max-width:767px){.reference-chinese-tool .zh-intro h1{width:100%;max-width:none}}

/* V7: contained page composition and existing directory/result markup. No engine changes. */
:root{--ref-content:1200px;--max:1200px;--v7-gutter:32px}
.wrap,.zh-main,.fac-directory,.fac-service-workspace,.tool-shortcuts,.zh-header,.zh-footer{width:calc(100% - var(--v7-gutter)*2);max-width:var(--ref-content);margin-inline:auto}
.reference-panel>.workspace,.reference-panel .tool-shortcuts{width:100%;max-width:none}
.reference-after-tool .tool-shortcuts{width:100%;max-width:none}
.reference-grid{grid-template-columns:minmax(0,1fr) minmax(150px,.58fr) minmax(420px,1.5fr);gap:22px}
.reference-grid>.hero h1{font-size:clamp(44px,4.8vw,70px);overflow-wrap:normal}
.reference-grid>.hero .hero-description{font-size:17px;line-height:1.6}
.reference-grid>.hero .hero-badges{gap:10px}
.reference-grid>.hero .hero-badges span{font-size:12px}
.reference-art{height:480px;position:relative;z-index:0}
.reference-art img{width:135%;max-height:520px}
.reference-panel{min-width:0;z-index:2}
.reference-panel .tool-card{padding:22px}
.reference-panel .tool-result-pane{padding:18px}
.reference-secondary-tool .reference-grid{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}
.article-layout{grid-template-columns:minmax(0,76ch) minmax(220px,1fr);gap:40px;align-items:start}
.article-layout>.prose,.service-reading>.prose{max-width:76ch;min-width:0}
.prose p,.prose li{overflow-wrap:break-word}
.article-header h1{max-width:24ch}
.article-intro{max-width:68ch}
.knowledge-grid .knowledge-block p{max-width:72ch}

/* Keep the actual timer next to the code. The existing progress stays in the
   accessibility tree while its value also paints the reference countdown ring. */
.tool-card[data-fac-tool=totp] .precision-readout,.tool-card[data-fac-tool=hotp] .precision-readout,.precision-output{display:grid;grid-template-columns:minmax(0,1fr) 84px;align-items:center;gap:12px 14px}
.precision-value{min-width:0}
.precision-value .code-digits{font-size:clamp(32px,3.3vw,48px);line-height:1.15;letter-spacing:.025em;white-space:nowrap;font-variant-numeric:tabular-nums}
.precision-timing{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;gap:5px}
.precision-timing:has(progress:not([hidden])) [data-countdown]{display:flex;align-items:center;justify-content:center;width:80px;min-height:80px;height:80px;margin:0;padding:9px 6px;border-width:5px;font-size:12px;line-height:1.25;overflow-wrap:normal}
.precision-timing:has(progress:not([hidden])) .code-progress{position:absolute;width:1px;height:1px;max-width:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.precision-timing .fac-expiry-warning{font-size:11px;line-height:1.4;text-align:center;margin:0;max-width:100%}
.precision-timing [data-countdown][hidden],.precision-timing [data-expiry-warning][hidden]{display:none}
.precision-readout>.tool-actions,.precision-output>.tool-actions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}
.precision-readout>.tool-actions .button{min-height:46px;flex:1 1 120px}
.tool-card[data-fac-tool=hotp] .precision-timing:empty{display:none}
.tool-card[data-fac-tool=qr-generator] .precision-readout,.tool-card[data-fac-tool=qr-reader] .precision-readout,.tool-card[data-fac-tool=uri-validator] .precision-readout{grid-template-columns:minmax(0,1fr)}

/* Directory hero retains its native title, introduction and links. */
.fac-directory-hero{position:relative;isolation:isolate;background:linear-gradient(110deg,#f5fcf8,#e2f8ed);border-bottom:1px solid #d8ede3;overflow:hidden}
.fac-directory-hero::after{content:'';position:absolute;inset:45% -5% -70%;z-index:-1;border-radius:50%;background:rgb(255 255 255 / 43%);transform:rotate(-6deg)}
.fac-directory-hero-inner{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr);gap:40px;align-items:center;padding-block:45px 40px}
.fac-directory-hero-copy,.fac-directory-hero .article-header{padding:0;min-width:0;margin:0}
.fac-directory-hero-copy>.article-header{width:100%;max-width:none}
.fac-directory-hero h1{font-size:clamp(36px,4vw,54px);line-height:1.13;max-width:22ch;margin:0 0 16px}
.fac-directory-hero .article-intro,.fac-directory-hero-copy>p{font-size:18px;line-height:1.65;max-width:63ch;margin:0 0 16px;color:var(--ref-muted)}
.fac-directory-hero .breadcrumbs{margin-bottom:15px;font-size:13px}
.v7-directory-art{display:flex;justify-content:center;align-items:center;min-width:0;height:235px;pointer-events:none}
.v7-directory-art img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 10px 14px rgb(0 75 45 / 8%))}
.fac-directory{padding-block:20px 48px}
.fac-directory-nav,.fac-directory-tabs{width:fit-content;max-width:100%;padding:7px 10px;margin-bottom:10px;border-radius:12px;gap:6px}
.fac-directory-nav a,.fac-directory-tabs a{min-height:44px;padding:8px 15px;border-radius:8px;font-size:14px;font-weight:650;color:var(--ref-ink)}
.fac-directory-nav a:hover,.fac-directory-tabs a:hover{color:var(--section-green);background:var(--section-mint)}
.fac-directory-section{padding-block:25px 30px}
.fac-directory-section>header{display:block;padding:0;margin:0 0 19px;border:0}
.fac-directory-section>header h2,.fac-directory h2{font-size:28px;line-height:1.3;margin:0 0 7px}
.fac-directory-section>header p{margin:0;max-width:70ch;font-size:15px;line-height:1.65;color:var(--ref-muted)}
.fac-directory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;list-style:none;padding:0;margin:0}
.fac-directory-grid>li{display:flex;min-width:0;margin:0}
.fac-directory-card{position:relative;display:grid;grid-template-columns:60px minmax(0,1fr);align-items:start;align-content:start;gap:13px 18px;width:100%;padding:26px;border:1px solid var(--section-line);border-radius:16px;min-height:190px;background:var(--ref-paper);text-decoration:none;box-shadow:0 8px 24px rgb(7 91 62 / 4%)}
.fac-directory-icon{width:60px;height:60px;display:grid;place-items:center;flex:none;border-radius:15px;border:0;background:var(--section-mint);color:var(--section-green)}
.fac-directory-icon svg{width:29px;height:29px}
.fac-directory-copy{display:block;min-width:0;padding:0}
.fac-directory-title{display:block;font-size:21px;line-height:1.35;font-weight:750;color:var(--ref-ink)}
.fac-directory-description{display:block;margin-top:9px;font-size:15px;line-height:1.65;color:var(--ref-muted)}
.fac-directory-action{position:static;grid-column:2;display:flex;align-items:center;justify-content:flex-start;gap:10px;min-height:44px;margin:0;font-size:14px;font-weight:650;color:var(--section-green)}
.fac-directory-action>span{font-size:19px}
.fac-directory #codes .fac-directory-card{background:linear-gradient(115deg,var(--ref-paper) 45%,var(--section-mint));min-height:190px}
.v7-tool-preview{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 18px;background:var(--ref-soft);border:1px solid var(--section-line);border-radius:10px;color:var(--section-green);pointer-events:none}
.v7-tool-preview svg{width:46px;height:46px;flex:none}
.v7-tool-preview strong,.v7-tool-preview .v7-preview-code{font-size:29px;line-height:1.3;letter-spacing:.09em;font-weight:700;font-variant-numeric:tabular-nums}
.v7-tool-preview small{font-size:12px;color:var(--ref-muted)}
.related-section:not(.reference-help) .reference-help-art{display:none}
.related-section:not(.reference-help) .related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.related-section:not(.reference-help) .resource-card{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:24px;min-width:0}
.related-section:not(.reference-help) .resource-card .card-top{display:flex;align-items:center;gap:12px}
.related-section:not(.reference-help) .resource-card h3{font-size:22px;margin:0}
.related-section:not(.reference-help) .resource-card p{font-size:15px;margin:0}
.related-section:not(.reference-help) .resource-card .card-bottom{margin-top:auto;min-height:44px}
.zh-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.zh-cards>a{min-width:0;display:flex;flex-direction:column;gap:10px;padding:24px;border:1px solid var(--section-line);border-radius:16px;background:var(--ref-paper)}
.zh-cards strong{font-size:21px;line-height:1.4}
.zh-cards span{font-size:15px;line-height:1.75}
.fac-directory #setup .fac-directory-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.fac-directory #setup .fac-directory-card{grid-template-columns:48px minmax(0,1fr);gap:12px 14px;padding:23px 21px;min-height:215px}
.fac-directory #setup .fac-directory-icon{width:48px;height:48px;border-radius:12px}
.fac-directory #setup .fac-directory-icon svg{width:25px;height:25px}
.fac-directory #setup .fac-directory-title{font-size:19px}
.fac-directory #setup .fac-directory-description{font-size:14px}
.fac-directory #services .fac-directory-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.fac-directory #services .fac-directory-card{display:flex;flex-direction:column;align-items:center;gap:13px;padding:24px 18px 17px;text-align:center;min-height:220px}
.fac-directory #services .fac-directory-icon{width:58px;height:58px;border-radius:15px}
.fac-directory #services .fac-directory-title{font-size:17px;line-height:1.4}
.fac-directory #services .fac-directory-description{font-size:13px;line-height:1.6;margin-top:6px}
.fac-directory #services .fac-directory-action{margin-top:auto;min-height:44px;font-size:13px;justify-content:center}
.fac-service-search{display:grid;grid-template-columns:auto minmax(160px,360px) 1fr;align-items:center;gap:12px 18px;margin:20px 0}
.fac-service-search label{font-size:14px;font-weight:650}
.fac-service-search input{width:100%;min-height:46px;padding:10px 14px;border:1px solid var(--control);border-radius:9px;color:var(--ref-ink);background:var(--ref-paper);font-size:16px}
.fac-service-search [data-service-count]{font-size:13px;color:var(--ref-muted);margin:0}
.fac-directory-grid>li[hidden]{display:none}
html[data-theme=dark] .fac-directory-hero{background:linear-gradient(115deg,#0b302d,#124938);border-color:#31574e}
html[data-theme=dark] .fac-directory-hero::after{background:rgb(23 67 55 / 35%)}
html[data-theme=dark] .fac-directory-card{box-shadow:none}

@media(min-width:1440px){:root{--ref-content:1240px;--max:1240px}.reference-grid{grid-template-columns:minmax(0,1fr) minmax(155px,.58fr) minmax(435px,1.5fr)}.precision-value .code-digits{font-size:48px}}
@media(max-width:1099px){.reference-grid{grid-template-columns:minmax(0,.9fr) minmax(390px,1.15fr);gap:28px}.reference-art{display:none}.reference-grid>.hero h1{font-size:clamp(44px,5vw,58px)}.reference-grid>.hero .hero-badges{grid-template-columns:repeat(2,minmax(0,1fr))}.fac-directory #setup .fac-directory-card{grid-template-columns:1fr;padding:22px}.fac-directory #setup .fac-directory-action{grid-column:1}.fac-directory #services .fac-directory-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.article-layout{grid-template-columns:minmax(0,1fr) 220px;gap:26px}}
@media(max-width:899px){:root{--v7-gutter:24px}.reference-grid,.reference-secondary-tool .reference-grid{grid-template-columns:minmax(0,.8fr) minmax(350px,1.2fr);gap:22px}.reference-grid>.hero h1{font-size:43px}.reference-grid>.hero .hero-description{font-size:16px}.reference-panel .tool-card{padding:18px}.reference-panel .tool-result-pane{padding:16px}.reference-grid>.hero .hero-badges svg{width:42px;height:42px;padding:10px}.fac-directory-hero-inner{grid-template-columns:minmax(0,1.3fr) minmax(200px,.7fr);gap:24px}.v7-directory-art{height:200px}.fac-directory-hero h1{font-size:40px}.fac-directory-hero .article-intro{font-size:16px}.fac-directory #setup .fac-directory-grid{grid-template-columns:1fr}.fac-directory #setup .fac-directory-card{grid-template-columns:54px minmax(0,1fr);min-height:0}.fac-directory #setup .fac-directory-action{grid-column:2}.fac-directory #setup .fac-directory-title{font-size:20px}.fac-directory #setup .fac-directory-description{font-size:15px}.article-layout{grid-template-columns:1fr}.article-layout>.prose,.service-reading>.prose{max-width:76ch}}
@media(max-width:767px){:root{--v7-gutter:16px}.reference-grid,.reference-secondary-tool .reference-grid{grid-template-columns:1fr;gap:22px}.reference-grid>.hero h1{font-size:40px}.reference-grid>.hero .hero-badges{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.reference-grid>.hero .hero-badges span{font-size:11px}.reference-panel .tool-card{padding:19px 17px}.reference-panel .tool-result-pane{padding:17px 14px}.tool-card[data-fac-tool=totp] .precision-readout,.tool-card[data-fac-tool=hotp] .precision-readout,.precision-output{grid-template-columns:minmax(0,1fr) 72px;gap:14px 10px}.precision-value .code-digits{font-size:clamp(29px,8.5vw,40px);letter-spacing:0;line-height:1.2}.precision-value .result-label{font-size:12px;line-height:1.4}.precision-timing:has(progress:not([hidden])) [data-countdown]{width:70px;height:70px;min-height:70px;border-width:5px;padding:8px 4px;font-size:11px}.precision-timing .fac-expiry-warning{font-size:10px}.precision-readout>.tool-actions .button{font-size:13px;min-height:46px;flex:1 1 100px}.fac-directory-hero-inner{grid-template-columns:minmax(0,1fr) 115px;gap:14px;padding-block:28px}.fac-directory-hero h1{font-size:32px;line-height:1.15;margin-bottom:12px}.fac-directory-hero .article-intro,.fac-directory-hero-copy>p{font-size:15px;line-height:1.65}.v7-directory-art{height:150px;align-self:start}.fac-directory-hero .breadcrumbs{font-size:12px}.fac-directory{padding-top:17px}.fac-directory-nav,.fac-directory-tabs{width:100%;gap:3px;padding:5px;justify-content:space-around}.fac-directory-nav a,.fac-directory-tabs a{font-size:12px;padding:8px 9px}.fac-directory-section{padding-block:20px 24px}.fac-directory-section>header h2,.fac-directory h2{font-size:25px}.fac-directory-section>header p{font-size:14px}.fac-directory-grid{grid-template-columns:1fr;gap:14px}.fac-directory-card,.fac-directory #codes .fac-directory-card{grid-template-columns:52px minmax(0,1fr);min-height:0;padding:22px 19px;gap:11px 15px}.fac-directory-icon{width:52px;height:52px;border-radius:13px}.fac-directory-title{font-size:20px}.fac-directory-description{font-size:14px}.fac-directory #setup .fac-directory-card{padding:22px 19px;grid-template-columns:48px minmax(0,1fr)}.fac-directory #services .fac-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.fac-directory #services .fac-directory-card{min-height:225px;padding:21px 13px 13px;gap:11px}.fac-directory #services .fac-directory-title{font-size:16px}.fac-directory #services .fac-directory-description{font-size:12px}.fac-service-search{grid-template-columns:1fr;gap:7px;margin:17px 0}.fac-service-search input{min-height:48px}.article-header h1{max-width:none}.reference-after-tool{max-width:100%}}
@media(max-width:389px){.reference-panel .tool-card{padding-inline:15px}.reference-panel .tool-result-pane{padding-inline:12px}.precision-value .code-digits{font-size:30px}.fac-directory-hero-inner{grid-template-columns:minmax(0,1fr) 92px;gap:10px}.fac-directory-hero h1{font-size:30px}.v7-directory-art{height:125px}.fac-directory-nav a,.fac-directory-tabs a{padding-inline:7px}.fac-directory #services .fac-directory-card{padding-inline:10px}}
@media(max-width:899px){.related-section:not(.reference-help) .related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.related-section:not(.reference-help) .related-grid,.zh-cards{grid-template-columns:1fr;gap:14px}.related-section:not(.reference-help) .resource-card,.zh-cards>a{padding:22px 20px}.v7-tool-preview{padding:13px 15px}.v7-tool-preview strong,.v7-tool-preview .v7-preview-code{font-size:26px}}
/* Reference card details. */
.v7-sample-code{font-size:26px;font-weight:750;letter-spacing:.025em;white-space:nowrap;font-variant-numeric:tabular-nums}.v7-sample-clock{display:grid;place-items:center;border:4px solid #008858;border-left-color:#d8eee6;border-radius:50%;width:48px;height:48px;font-size:14px;font-weight:700;flex:none}.v7-sample-counter{font-size:19px;font-weight:650;letter-spacing:.05em;white-space:nowrap}.v7-sample-lines{display:grid;gap:9px;width:100%}.v7-sample-lines i{display:block;border-radius:8px;height:6px;background:linear-gradient(90deg,#54c598 8px,#e0e8ed 8px)}
.fac-directory-action{width:fit-content;padding:10px 16px;border-radius:8px;background:#006b43;color:#fff}.fac-service-search{grid-template-columns:1fr}.fac-service-search [data-service-count]:empty{display:none}
@media(min-width:1100px){.fac-directory #codes .fac-directory-card{grid-template-columns:54px minmax(0,1fr) 170px;gap:12px 16px;align-items:center}.fac-directory #codes .fac-directory-copy{grid-column:2;grid-row:1}.fac-directory #codes .fac-directory-action{grid-column:2;grid-row:2}.fac-directory #codes .v7-tool-preview{grid-column:3;grid-row:1/span 2;padding:12px;gap:7px;flex-wrap:wrap;justify-content:center}.fac-directory #codes li:nth-child(2) .v7-tool-preview{flex-direction:column;gap:18px}.fac-directory #services .fac-directory-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.fac-directory #services .fac-directory-card{align-items:flex-start;text-align:left}.fac-directory #services .fac-directory-action{background:transparent;color:var(--section-green);padding:0}}
.fac-directory #services .fac-directory-icon{background:#eef6f4}.fac-directory #services .fac-icon-facebook{background:#1877f2;color:#fff}.fac-directory #services .fac-icon-google{background:#fff;color:#4285f4;border:1px solid var(--section-line)}.fac-directory #services .fac-icon-instagram{background:linear-gradient(35deg,#fdc253,#e53178,#8134af);color:white}.fac-directory #services .fac-icon-fortnite{background:#129ee9;color:white}.fac-directory #services .fac-icon-discord{background:#5865f2;color:white}.fac-directory #services .fac-icon-github,.fac-directory #services .fac-icon-x,.fac-directory #services .fac-icon-epic{background:#111c22;color:white}.fac-directory #services .fac-icon-bu{background:#b51c31;color:#fff}.fac-directory #services .fac-icon-ibm{background:#edf4ff;color:#1261b4}
.v7-time-number{display:grid;place-items:center;width:80px;height:80px;flex:none;border-radius:50%;background:radial-gradient(circle,var(--ref-soft) 61%,transparent 63%),conic-gradient(#008858 calc(var(--reference-time,1)*1turn),#dce8e3 0);font-size:20px;font-weight:750;color:var(--ref-ink);font-variant-numeric:tabular-nums}.v7-timer-enhanced [data-countdown]{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;margin:-1px!important;padding:0!important;border:0!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}.v7-time-number[hidden]{display:none}
@media(max-width:767px){.v7-time-number{width:70px;height:70px;font-size:18px}.v7-tool-preview{gap:14px}.fac-directory #services .fac-directory-action{background:transparent;color:var(--section-green);padding:0}}
.v7-zh-directory-content .knowledge-grid{gap:18px;grid-template-columns:repeat(2,minmax(0,1fr))}.v7-zh-directory-content .knowledge-block{grid-column:auto;padding:24px;border:1px solid var(--section-line);border-radius:16px;background:var(--ref-paper);display:flex;flex-direction:column;gap:12px}.v7-zh-directory-content .knowledge-block h2{font-size:23px;margin:0}.v7-zh-directory-content .knowledge-block p{font-size:16px;margin:0}.v7-zh-directory-content .knowledge-block .button{margin-top:auto;width:fit-content}.v7-zh-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:12px;background:var(--section-mint);color:var(--section-green)}@media(max-width:767px){.v7-zh-directory-content .knowledge-grid{grid-template-columns:1fr}.v7-zh-directory-content .knowledge-block{padding:22px}}
.zh-main:has(.fac-directory-hero){width:100%;max-width:none}.zh-article:has(.v7-zh-directory-content){width:calc(100% - var(--v7-gutter)*2);max-width:var(--ref-content);padding:0;border:0;background:transparent;box-shadow:none;margin:28px auto}.zh-main:has(.fac-directory-hero) .zh-related{width:calc(100% - var(--v7-gutter)*2);max-width:var(--ref-content);margin-inline:auto}
@media(max-width:767px){.fac-directory-hero-inner{grid-template-columns:1fr;gap:4px}.v7-directory-art{height:125px;max-width:220px;justify-self:center}.fac-directory-hero h1{max-width:none;font-size:34px}.fac-directory-hero .article-intro{max-width:none}.fac-directory-hero .zh-intro{padding:0}.fac-directory-hero .zh-intro h1{max-width:none;width:100%}.fac-directory-hero .zh-intro>p{font-size:16px}}

/* Readability maintenance: retain labels, engine and countdown semantics. */
@media(max-width:767px){.reference-tool-tabs button{font-size:13px;min-height:48px}.precision-timing .fac-expiry-warning{font-size:12px;line-height:1.5}.fac-directory #services .fac-directory-description{font-size:14px;line-height:1.6}.hero-badges span{font-size:12px}}
