.htd-doc-view { --navy:#14254a; --muted:#526580; --border:#dce7f6; --blue:#234dac; min-height:0; min-width:0; flex:1; overflow:auto; background:#f4f7fc; color:var(--navy); font:16px/1.55 system-ui,sans-serif; }
.htd-doc-view * { box-sizing:border-box; }
.htd-doc-view a { color:var(--blue); text-underline-offset:3px; }
.htd-doc-view :focus-visible,.htd-workbook-toolbar :focus-visible { outline:3px solid #3b82f6; outline-offset:2px; }
.htd-doc-nav { position:sticky; top:0; z-index:2; background:#fff; box-shadow:0 1px 0 var(--border); }
.htd-doc-brand { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px clamp(15px,4vw,60px) 9px; }
.htd-doc-brand a { text-decoration:none; font-weight:700; }
.htd-doc-brand .htd-doc-name { color:var(--navy); font-size:21px; font-weight:800; letter-spacing:-.03em; }
.htd-doc-home { font-size:14px; }
.htd-doc-nav nav { display:flex; align-items:center; gap:4px clamp(10px,1.6vw,24px); padding:0 clamp(15px,4vw,60px); overflow:auto; }
.htd-doc-nav nav a { flex:none; padding:10px 0 8px; border-bottom:3px solid transparent; font-size:14px; font-weight:650; text-decoration:none; white-space:nowrap; }
.htd-doc-nav nav a[aria-current=page] { border-bottom-color:#315ee1; color:#153aab; }
.htd-doc-nav nav a:hover,.htd-doc-brand a:hover { text-decoration:underline; }
.htd-doc-main { box-sizing:border-box; width:100%; margin:0; padding:clamp(14px,3vw,36px) clamp(12px,2vw,32px) 60px; }
.htd-doc-intro { position:relative; isolation:isolate; overflow:hidden; display:grid; gap:4px; padding:clamp(21px,4vw,53px); margin-bottom:22px; color:white; background:linear-gradient(112deg,#14254a 0%,#224eaa 67%,#155f89); border-radius:20px; }
.htd-doc-intro::after { content:""; position:absolute; z-index:-1; inset:0; background:radial-gradient(ellipse at 95% 5%,#5dcbd050 0%,transparent 46%); pointer-events:none; }
.htd-doc-intro h1 { font-size:clamp(29px,4.5vw,56px); letter-spacing:-.04em; line-height:1.15; margin:3px 0 0; overflow-wrap:anywhere; }
.htd-doc-intro p { margin:4px 0 0; color:#e0ebfc; max-width:66ch; }
.htd-doc-intro .htd-doc-back { color:#dbebff; font-size:14px; width:fit-content; }
.htd-doc-directory,.htd-doc-file-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); gap:14px; }
.htd-doc-directory { grid-template-columns:repeat(auto-fit,minmax(min(100%,275px),1fr)); }
.htd-doc-card { min-width:0; padding:18px; border:1px solid var(--border); border-radius:14px; background:#fff; box-shadow:0 2px 10px #172b5008; }
.htd-doc-card h2 { margin:5px 0; font-size:19px; line-height:1.26; }
.htd-doc-card p { margin:6px 0 10px; color:var(--muted); }
.htd-doc-group { color:#456180; font-size:13px; font-weight:650; }
.htd-doc-file { padding:0; overflow:hidden; }
.htd-doc-preview { display:flex; align-items:center; justify-content:center; background:#eaf1fb; height:184px; padding:10px; }
.htd-doc-preview img { display:block; max-height:100%; max-width:100%; object-fit:contain; box-shadow:0 2px 8px #18294a30; }
.htd-doc-file-content { padding:16px 18px 18px; }
.htd-doc-file-content small { color:var(--muted); }
.htd-doc-action,.htd-inline-converter button,.htd-workbook-actions button { display:inline-block; width:fit-content; padding:8px 13px; color:#1944a5; background:#edf4ff; border:1px solid #c7d8f4; border-radius:8px; text-decoration:none; cursor:pointer; font:650 14px/1.4 system-ui,sans-serif; }
.htd-doc-action:hover,.htd-inline-converter button:hover { background:#e3edff; }
.htd-doc-action:disabled,.htd-inline-converter button:disabled,.htd-workbook-actions button:disabled { opacity:.52; cursor:default; }
.htd-doc-search,.htd-inline-converter textarea { box-sizing:border-box; width:min(100%,580px); padding:9px 12px; border:1px solid #bfcfe8; border-radius:9px; background:#fff; color:var(--navy); }
.htd-doc-count { margin:7px 0 12px; color:var(--muted); font-size:14px; }
.htd-doc-text { max-width:78ch; margin:0 0 18px; }
.htd-doc-text p { margin:0 0 8px; }
.htd-doc-directory+.htd-doc-text,.htd-doc-status+.htd-doc-text { margin-top:17px; }
.htd-doc-steps { display:grid; gap:14px; max-width:930px; }
.htd-doc-steps ol { padding-left:25px; margin:9px 0 12px; }
.htd-doc-steps li+li { margin-top:4px; }
.htd-resource-faq { max-width:900px; margin:25px 0 10px; }
.htd-resource-faq h2 { margin-bottom:9px; }
.htd-resource-faq details { padding:10px 12px; border:1px solid var(--border); border-radius:9px; background:#fff; margin-bottom:7px; }
.htd-resource-faq summary { cursor:pointer; font-weight:650; }
.htd-resource-faq p { color:#435872; margin:8px 3px 2px; }
.htd-local-table { overflow:auto; margin:10px 0 18px; }
.htd-local-table table { border-collapse:collapse; font-size:14px; background:#fff; }
.htd-local-table th,.htd-local-table td { text-align:left; padding:9px 11px; vertical-align:top; border:1px solid var(--border); }
.htd-local-table thead th { background:#eaf2ff; }
.htd-doc-converter { max-width:670px; }
.htd-inline-converter label { display:block; margin-bottom:5px; font-weight:650; }
.htd-inline-converter textarea { display:block; width:100%; resize:vertical; margin-bottom:7px; }
.htd-inline-converter [role=status]:empty,.htd-doc-status:empty,.htd-workbook-toolbar [role=status]:empty { display:none; }
.htd-doc-related { margin:16px 0 0; }
.htd-workbook-toolbar { box-sizing:border-box; margin:9px 14px; padding:8px 11px; border:1px solid #dae7f7; border-radius:10px; background:#fff; color:#14254a; font:14px/1.5 system-ui,sans-serif; }
.htd-workbook-actions { display:flex; gap:8px; flex-wrap:wrap; }
.htd-workbook-toolbar [role=status] { margin-top:6px; white-space:pre-line; overflow-wrap:anywhere; }
.htd-dashboard a.htd-nav,.htd-dashboard a.htd-button { text-decoration:none; }
@media(max-width:560px) {
  .htd-doc-brand { flex-wrap:wrap; }
  .htd-doc-nav nav { gap:15px; }
  .htd-doc-intro { border-radius:14px; }
}

.htd-dashboard a.htd-tool { text-decoration:none; }
