/* Hallmark · pre-emit critique: P4 H5 E4 S5 R5 V4
 * daohang: CMS navigation, system sans, light surfaces and green controls.
 * Layout and palette are fixed by the supplied UI; production content comes from the CMS.
 */
:root {
  color-scheme: light;
  --dh-background: #f7f8fa;
  --dh-surface: #fff;
  --dh-surface-soft: #f4f6f8;
  --dh-surface-hover: #f2f4f6;
  --dh-panel-bottom: #fdfefd;
  --dh-tab-background: #eff1f4;
  --dh-border: #eceef1;
  --dh-border-strong: #dee1e5;
  --dh-ink: #1f2225;
  --dh-ink-secondary: #52575d;
  --dh-ink-muted: #8c9198;
  --dh-accent: #18a058;
  --dh-accent-hover: #36ad6a;
  --dh-accent-strong: #0c7a43;
  --dh-accent-soft: #e8f5ee;
  --dh-accent-halo: rgb(24 160 88 / 14%);
  --dh-accent-shadow: rgb(24 160 88 / 55%);
  --dh-danger: #d03050;
  --dh-warning: #f0a020;
  --dh-warning-soft: #fdf3e3;
  --dh-scroll-thumb: #c9cdd6;
  --dh-connector: #e7eaee;
  --dh-mark-background: rgb(16 20 24 / 5.5%);
  --dh-mark-border: rgb(16 20 24 / 9%);
  --dh-preview-tint: rgb(24 160 88 / 6%);
  --dh-preview-overlay: rgb(9 14 28 / 86%);
  --dh-overlay-text: rgb(255 255 255 / 72%);
  --dh-overlay-line: rgb(255 255 255 / 22%);
  --dh-shadow-small: 0 1px 2px rgb(31 34 37 / 5%);
  --dh-shadow-medium: 0 10px 26px -14px rgb(31 34 37 / 16%);
  --dh-shadow-large: 0 24px 56px -24px rgb(31 34 37 / 22%);
  --dh-shadow-panel: 0 1px 2px rgb(31 34 37 / 4%), 0 10px 28px -22px rgb(31 34 37 / 18%), inset 0 1px 0 var(--dh-surface);
  --dh-sidebar-width: 216px;
  --dh-radius-small: 8px;
  --dh-radius: 10px;
  --dh-radius-large: 14px;
  --dh-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --dh-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 24px; }
body { margin: 0; overflow-x: clip; background: var(--dh-background); color: var(--dh-ink); font: 14px/1.6 var(--dh-font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { min-width: 0; font-style: normal; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button { border: 0; padding: 0; background: transparent; cursor: pointer; }
button, .dh-button, .dh-chip, .dh-more { white-space: nowrap; }
button:disabled { cursor: wait; opacity: .5; }
img { display: block; max-width: 100%; }
svg { display: block; }
[hidden] { display: none !important; }
::selection { color: var(--dh-accent-strong); background: var(--dh-accent-soft); }
:focus-visible { outline: 2px solid var(--dh-accent-strong); outline-offset: 3px; border-radius: 6px; }
.dh-icon { width: 18px; height: 18px; flex: none; fill: currentColor; }
.dh-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dh-muted { color: var(--dh-ink-muted); }
.dh-skip-link { position: fixed; top: 8px; left: 8px; z-index: 200; padding: 8px 14px; border-radius: var(--dh-radius-small); color: var(--dh-surface); background: var(--dh-accent-strong); transform: translateY(-150%); }
.dh-skip-link:focus { transform: none; }
* { scrollbar-width: thin; scrollbar-color: var(--dh-scroll-thumb) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 99px; background: var(--dh-scroll-thumb); background-clip: content-box; }
*::-webkit-scrollbar-track { background: transparent; }

.dh-app { display: flex; min-height: 100dvh; }
.dh-main { display: flex; flex: 1; flex-direction: column; min-width: 0; margin-left: var(--dh-sidebar-width); }
.dh-view { flex: 1; min-width: 0; outline: none; animation: dh-enter .26s ease both; }
.dh-container { width: 100%; max-width: 1300px; margin: 0 auto; padding: 22px 24px 56px; }
@keyframes dh-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.dh-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; flex-direction: column; width: var(--dh-sidebar-width); background: var(--dh-surface); border-right: 1px solid var(--dh-border); }
.dh-brand { display: flex; flex: none; align-items: center; gap: 10px; padding: 18px 18px 14px; min-height: 64px; }
.dh-brand > span:last-child { min-width: 0; overflow: hidden; color: var(--dh-ink); font-size: 17px; font-weight: 800; letter-spacing: .01em; white-space: nowrap; text-overflow: ellipsis; }
.dh-brand-mark, .dh-brand-logo { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 9px; }
.dh-brand-mark { color: var(--dh-surface); background: var(--dh-accent); }
.dh-brand-mark .dh-icon { width: 16px; height: 16px; }
.dh-brand-logo { object-fit: contain; }
.dh-sidebar-navigation { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 10px 10px; }
.dh-navigation-empty { padding: 12px 9px; color: var(--dh-ink-muted); font-size: 12px; }
.dh-nav-item { position: relative; display: flex; align-items: center; gap: 10px; height: 38px; margin-bottom: 2px; padding: 0 9px; border-radius: 9px; color: var(--dh-ink-secondary); font-size: 13px; font-weight: 500; list-style: none; cursor: pointer; transition: background .15s, color .15s; white-space: nowrap; }
.dh-nav-item::-webkit-details-marker { display: none; }
.dh-nav-item > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dh-nav-item > .dh-icon { width: 15px; height: 15px; color: var(--dh-ink-muted); }
.dh-nav-summary-link { display: flex; flex: 1; align-self: stretch; align-items: center; gap: 10px; min-width: 0; }
.dh-nav-summary-link > span { overflow: hidden; text-overflow: ellipsis; }
.dh-nav-summary-link > .dh-icon { width: 15px; height: 15px; color: var(--dh-ink-muted); }
.dh-nav-item .dh-nav-chevron { width: 14px; height: 14px; margin-left: auto; transition: transform .18s; }
.dh-nav-group[open] > summary .dh-nav-chevron { transform: rotate(180deg); }
.dh-nav-item.is-active { color: var(--dh-accent); background: var(--dh-accent-soft); font-weight: 650; }
.dh-nav-item.is-active > .dh-icon, .dh-nav-item.is-active .dh-nav-summary-link > .dh-icon { color: var(--dh-accent); }
.dh-nav-item[aria-current]::before, .dh-nav-summary-link[aria-current]::before { position: absolute; top: 8px; bottom: 8px; left: -10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--dh-accent); content: ""; }
.dh-nav-item small { margin-left: auto; padding-inline: 5px; border-radius: 4px; background: var(--dh-accent-soft); color: var(--dh-accent-strong); font-size: 10px; }
.dh-nav-children { position: relative; margin: -2px 0 2px; }
.dh-nav-children::before { position: absolute; top: 1px; bottom: 5px; left: 16px; width: 1px; background: var(--dh-connector); content: ""; }
.dh-nav-children > .dh-nav-item, .dh-nav-item--child { height: 30px; padding-left: 34px; color: var(--dh-ink-muted); font-size: 12.5px; }
.dh-nav-children > .dh-nav-item > .dh-icon { display: none; }
.dh-nav-children .dh-nav-children { margin-left: 12px; }
.dh-nav-children .dh-nav-item.is-active { color: var(--dh-accent); }

.dh-hero-inner { max-width: 860px; margin-inline: auto; padding: 30px 24px 8px; text-align: center; }
.dh-hero-brand { display: flex; align-items: baseline; justify-content: center; font-size: 26px; font-weight: 800; letter-spacing: .05em; line-height: 1.25; color: var(--dh-accent); }
.dh-hero-brand b { font-weight: 800; }
.dh-hero-brand > span { color: var(--dh-ink-muted); font-weight: 700; letter-spacing: .06em; overflow-wrap: anywhere; }
.dh-hero-brand i { flex: none; width: 20px; height: 2px; margin: 0 11px; background: var(--dh-scroll-thumb); align-self: center; }
.dh-scopes { display: flex; align-items: center; justify-content: center; gap: 30px; margin-top: 22px; }
.dh-scopes button { position: relative; padding: 6px 2px; color: var(--dh-ink-muted); font-size: 13.5px; transition: color .16s; }
.dh-scopes button.is-active { color: var(--dh-accent); font-weight: 700; }
.dh-scopes button.is-active::after { position: absolute; right: 20%; bottom: -1px; left: 20%; height: 2px; border-radius: 2px; background: var(--dh-accent); content: ""; }
.dh-search { position: relative; max-width: 620px; margin: 16px auto 0; }
.dh-search input { display: block; width: 100%; min-width: 0; height: 52px; padding: 0 60px 0 20px; border: 1px solid var(--dh-border); border-radius: 12px; background: var(--dh-surface); color: var(--dh-ink); font-size: 14px; box-shadow: var(--dh-shadow-medium); transition: border-color .18s, box-shadow .18s; }
.dh-search input::placeholder { color: var(--dh-ink-muted); }
.dh-search input:focus { outline: none; border-color: var(--dh-accent); box-shadow: 0 0 0 3px var(--dh-accent-halo), var(--dh-shadow-medium); }
.dh-search input::-webkit-search-cancel-button { cursor: pointer; }
.dh-search-submit { position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: var(--dh-accent); color: var(--dh-surface); transition: background .15s; }
.dh-search--page { max-width: 560px; margin: 16px 0 4px; }
.dh-suggestions { position: absolute; top: calc(100% + 8px); right: 0; left: 0; z-index: 60; max-height: min(440px, 60dvh); overflow-y: auto; padding: 6px; border: 1px solid var(--dh-border); border-radius: 12px; background: var(--dh-surface); box-shadow: var(--dh-shadow-large); text-align: left; }
.dh-suggestion-label { padding: 6px 10px 4px; color: var(--dh-ink-muted); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; }
.dh-suggestion { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 7px 10px; border-radius: 8px; font-size: 13px; cursor: pointer; }
.dh-suggestion.is-active { background: var(--dh-surface-soft); }
.dh-suggestion-title { min-width: 0; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.dh-suggestion-domain { min-width: 0; margin-left: auto; overflow: hidden; color: var(--dh-ink-muted); font: 11px var(--dh-mono); text-overflow: ellipsis; white-space: nowrap; }
.dh-suggestion .dh-icon { color: var(--dh-ink-muted); }
.dh-suggestion-all { border-top: 1px solid var(--dh-border); margin-top: 4px; padding-top: 8px; }

.dh-section { margin-top: 22px; padding: 20px 22px 22px; border: 1px solid var(--dh-surface); border-radius: var(--dh-radius-large); background: linear-gradient(180deg, var(--dh-surface), var(--dh-panel-bottom)); box-shadow: var(--dh-shadow-panel); }
.dh-home-sections > .dh-section:first-child { margin-top: 26px; }
.dh-category-anchor { display: block; }
.dh-section-heading { display: flex; align-items: center; gap: 10px; min-height: 26px; margin-bottom: 14px; }
.dh-section-icon { display: grid; flex: none; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--dh-accent-soft); color: var(--dh-accent); }
.dh-section-icon .dh-icon { width: 14px; height: 14px; }
.dh-section-heading h2 { font-size: 17px; font-weight: 750; letter-spacing: -.01em; }
.dh-more { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; color: var(--dh-ink-muted); font-size: 12.5px; transition: color .15s; }
.dh-pills { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; margin-bottom: 14px; padding: 3px; border-radius: 99px; background: var(--dh-tab-background); overflow-x: auto; scrollbar-width: none; }
.dh-pills::-webkit-scrollbar { display: none; }
.dh-pill { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 5px; height: 27px; padding: 0 14px; border-radius: 99px; color: var(--dh-ink-secondary); font-size: 12.5px; font-weight: 600; transition: background .16s, color .16s, box-shadow .16s; }
.dh-pill.is-active { color: var(--dh-surface); background: var(--dh-accent); box-shadow: 0 2px 6px -3px var(--dh-accent-shadow); }
.dh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(212px, 100%), 1fr)); gap: 12px; }
.dh-grid > * { min-width: 0; }
.dh-card { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 13px; border: 1px solid var(--dh-border); border-radius: var(--dh-radius); background: var(--dh-surface); transition: border-color .16s, box-shadow .16s; }
.dh-card-body { flex: 1; min-width: 0; }
.dh-card-heading { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 13px; font-weight: 700; white-space: nowrap; }
.dh-card-link { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dh-card-link::after { position: absolute; z-index: 1; inset: 0; border-radius: var(--dh-radius); content: ""; }
.dh-card-link:focus-visible { outline: none; }
.dh-card:has(.dh-card-link:focus-visible) { outline: 2px solid var(--dh-accent-strong); outline-offset: 3px; }
.dh-card-external { width: 11px; height: 11px; color: var(--dh-ink-muted); }
.dh-new { display: inline-grid; flex: none; place-items: center; height: 15px; padding: 0 5px; border-radius: 4px; color: var(--dh-surface); background: var(--dh-danger); font-size: 9.5px; font-weight: 800; line-height: 1; }
.dh-card-description { margin-top: 2px; overflow: hidden; color: var(--dh-ink-muted); font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }
.dh-mark { position: relative; display: grid; flex: none; place-items: center; width: 38px; height: 38px; overflow: hidden; border: 1px solid var(--dh-mark-border); border-radius: 50%; background: var(--dh-mark-background); color: var(--dh-ink); font-size: 15px; font-weight: 800; }
.dh-mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--dh-surface); }
.dh-mark--small { width: 24px; height: 24px; font-size: 10.5px; }
.dh-mark--large { width: 64px; height: 64px; font-size: 26px; }
.dh-card-save { position: absolute; z-index: 2; top: -4px; right: -4px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: var(--dh-scroll-thumb); opacity: 0; transition: color .15s, opacity .15s; }
.dh-card-save::before { position: absolute; z-index: -1; inset: 11px; border-radius: 6px; content: ""; }
.dh-card-save > .dh-icon { width: 13px; height: 13px; }
.dh-card-save:focus-visible, .dh-card:focus-within .dh-card-save, .dh-card-save.is-saved { opacity: 1; }
.dh-star-filled { display: none; }
.is-saved .dh-star-outline { display: none; }
.is-saved .dh-star-filled { display: block; }
.dh-card-save.is-saved { color: var(--dh-warning); }

.dh-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 15px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 650; transition: background .16s, border-color .16s, color .16s, transform .12s; }
.dh-button:active { transform: translateY(1px); }
.dh-button > .dh-icon { width: 15px; height: 15px; }
.dh-button--primary { color: var(--dh-surface); background: var(--dh-accent); }
.dh-button--outline { border-color: var(--dh-border); color: var(--dh-ink-secondary); background: var(--dh-surface); }
.dh-button--large { min-height: 42px; padding: 0 20px; border-radius: var(--dh-radius); font-size: 14px; }
.dh-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border: 1px solid var(--dh-border); border-radius: 99px; background: var(--dh-surface-soft); color: var(--dh-ink-muted); font-size: 11px; font-weight: 600; }
.dh-chip--accent { border-color: transparent; color: var(--dh-accent-strong); background: var(--dh-accent-soft); }
.dh-panel { min-width: 0; padding: 20px; border: 1px solid var(--dh-border); border-radius: var(--dh-radius-large); background: var(--dh-surface); }
.dh-panel-title { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 15px; font-weight: 750; }
.dh-panel-title > .dh-icon { color: var(--dh-ink-muted); }
.dh-empty { display: flex; flex-direction: column; align-items: center; padding: 56px 20px; text-align: center; }
.dh-empty-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 12px; border-radius: 14px; background: var(--dh-accent-soft); color: var(--dh-accent); }
.dh-empty-icon > .dh-icon { width: 23px; height: 23px; }
.dh-empty h3 { font-size: 15px; font-weight: 650; }
.dh-empty p { max-width: 40em; margin-top: 6px; color: var(--dh-ink-muted); font-size: 12.5px; }
.dh-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.dh-empty--compact { min-height: 104px; padding: 18px 12px; }
.dh-empty--compact .dh-empty-icon { display: none; }
.dh-empty--compact h3 { color: var(--dh-ink-secondary); font-size: 13px; font-weight: 500; }
.dh-empty--compact p { font-size: 11.5px; }

.dh-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; color: var(--dh-ink-muted); font-size: 12px; }
.dh-breadcrumb-part { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.dh-breadcrumb-part > .dh-icon { width: 11px; height: 11px; opacity: .6; }
.dh-breadcrumb-part > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dh-breadcrumbs a { flex: none; white-space: nowrap; }
.dh-page-heading { margin-bottom: 18px; }
.dh-page-title-row { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 14px; }
.dh-page-title-row > div { flex: 1; min-width: 0; }
.dh-page-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.dh-page-description { max-width: 52em; margin-top: 6px; color: var(--dh-ink-secondary); font-size: 12.5px; line-height: 1.7; }
.dh-category-icon { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--dh-accent-soft); color: var(--dh-accent); }
.dh-category-icon > .dh-icon { width: 22px; height: 22px; }
.dh-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; padding: 10px 12px; border: 1px solid var(--dh-border); border-radius: var(--dh-radius); background: var(--dh-surface); }
.dh-toolbar-label { padding-right: 2px; color: var(--dh-ink-muted); font-size: 11.5px; font-weight: 700; }
.dh-segment { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--dh-border); border-radius: 9px; background: var(--dh-surface-soft); }
.dh-segment button { padding: 4px 11px; border-radius: 7px; color: var(--dh-ink-secondary); font-size: 12px; font-weight: 600; transition: background .15s, color .15s; }
.dh-segment button.is-active { background: var(--dh-surface); color: var(--dh-ink); box-shadow: var(--dh-shadow-small); }
.dh-result-count { margin-left: auto; color: var(--dh-ink-muted); font-size: 12px; white-space: nowrap; }
.dh-result-count b { color: var(--dh-ink); }
.dh-subcategories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.dh-subcategories:empty { display: none; }
.dh-list-end { margin-top: 24px; text-align: center; }
.dh-list-end p { color: var(--dh-ink-muted); font-size: 12px; }
.dh-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 22px; color: var(--dh-ink-muted); font-size: 12px; }
.dh-category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.dh-category-card { display: block; min-width: 0; padding: 18px; border: 1px solid var(--dh-border); border-radius: var(--dh-radius-large); background: var(--dh-surface); transition: border-color .16s; }
.dh-category-card-icon { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 10px; border-radius: 9px; background: var(--dh-accent-soft); color: var(--dh-accent-strong); }
.dh-category-card h2 { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; }
.dh-category-card p { margin-top: 5px; color: var(--dh-ink-secondary); font-size: 12px; line-height: 1.7; }
.dh-category-samples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.dh-category-samples > span { overflow: hidden; color: var(--dh-ink-secondary); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.dh-search-filters { gap: 8px; }
.dh-search-filters .dh-pill { height: 29px; }
.dh-skeleton { min-height: 67px; border: 1px solid var(--dh-border); border-radius: var(--dh-radius); background: var(--dh-surface); padding: 14px; }
.dh-skeleton::after { display: block; height: 12px; margin: 12px 0 0 48px; border-radius: 6px; background: var(--dh-border); animation: dh-pulse 1.2s ease-in-out infinite alternate; content: ""; }
@keyframes dh-pulse { to { opacity: .3; } }
.dh-data-status { margin-top: 12px; color: var(--dh-ink-secondary); font-size: 12px; text-align: center; }
.dh-data-status button { margin-left: 8px; color: var(--dh-accent-strong); text-decoration: underline; text-underline-offset: 3px; }

.dh-detail { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dh-detail-top { display: grid; grid-template-columns: 320px minmax(0, 1fr); align-items: start; gap: 14px; }
.dh-preview { position: relative; display: flex; width: 320px; height: 320px; padding: 0; overflow: hidden; }
.dh-preview-image { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.dh-preview-placeholder { display: flex; flex: 1; flex-direction: column; min-width: 0; background: var(--dh-surface-soft); }
.dh-preview-label { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-bottom: 1px solid var(--dh-border); background: var(--dh-surface); color: var(--dh-ink-muted); font: 11px var(--dh-mono); }
.dh-preview-label > .dh-icon { width: 14px; height: 14px; }
.dh-preview-label > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dh-preview-layout { display: flex; flex: 1; gap: 12px; padding: 16px; background: linear-gradient(135deg, var(--dh-preview-tint), var(--dh-surface-soft)); }
.dh-preview-rail { display: flex; flex: none; flex-direction: column; gap: 8px; width: 52px; padding: 12px 10px; border: 1px solid var(--dh-border); border-radius: 8px; background: var(--dh-surface); }
.dh-preview-rail i { display: block; height: 7px; border-radius: 4px; background: var(--dh-surface-soft); }
.dh-preview-rail i:first-child { height: 9px; background: var(--dh-accent-soft); }
.dh-preview-content { display: flex; flex: 1; flex-direction: column; gap: 9px; padding: 13px; border: 1px solid var(--dh-border); border-radius: 8px; background: var(--dh-surface); }
.dh-preview-content > i { height: 7px; border-radius: 4px; background: var(--dh-surface-soft); }
.dh-preview-content > i:first-child { width: 45%; }
.dh-preview-content > i:nth-child(2) { width: 90%; }
.dh-preview-content > i:nth-child(3) { width: 70%; }
.dh-preview-content > div { display: grid; flex: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 4px; }
.dh-preview-content > div > i { border: 1px solid var(--dh-border); border-radius: 7px; }
.dh-preview-stats { position: absolute; z-index: 2; inset: 0; display: flex; align-items: flex-end; gap: 0; padding: 12px; background: linear-gradient(180deg, transparent 38%, var(--dh-preview-overlay)); color: var(--dh-surface); opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.dh-preview-stats > div { display: flex; flex: 1; flex-direction: column; gap: 1px; min-width: 0; }
.dh-preview-stats > div + div { padding-left: 12px; border-left: 1px solid var(--dh-overlay-line); }
.dh-preview-stats span { display: flex; align-items: center; gap: 4px; color: var(--dh-overlay-text); font-size: 10.5px; }
.dh-preview-stats .dh-icon { width: 11px; height: 11px; }
.dh-preview-stats b { font-size: 15px; font-weight: 750; line-height: 1.2; font-variant-numeric: tabular-nums; }
.dh-preview:focus-visible .dh-preview-stats, .dh-preview:focus-within .dh-preview-stats { opacity: 1; }
.dh-site-summary { display: flex; flex-direction: column; justify-content: center; min-height: 320px; padding: 22px; }
.dh-site-top { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 14px; }
.dh-site-identity { flex: 1 1 150px; min-width: 0; }
.dh-site-identity h1 { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: 21px; font-weight: 800; }
.dh-site-domain { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; margin-top: 3px; color: var(--dh-ink-muted); font: 12px/1.6 var(--dh-mono); overflow-wrap: anywhere; }
.dh-site-domain > .dh-icon { width: 11px; height: 11px; }
.dh-site-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.dh-recommendation { padding: 1px 6px; border-radius: 4px; color: var(--dh-accent-strong); background: var(--dh-accent-soft); font-size: 10px; font-weight: 700; white-space: nowrap; }
.dh-site-description { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--dh-border); color: var(--dh-ink-secondary); font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.dh-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.dh-qr { position: relative; display: inline-block; }
.dh-qr-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 196px; padding: 14px 14px 12px; border: 1px solid var(--dh-border); border-radius: var(--dh-radius-large); background: var(--dh-surface); box-shadow: var(--dh-shadow-large); text-align: center; transform: translateX(var(--dh-qr-offset, 0px)); }
.dh-qr-panel::before { position: absolute; top: -5px; right: calc(26px + var(--dh-qr-offset, 0px)); width: 9px; height: 9px; border-top: 1px solid var(--dh-border); border-left: 1px solid var(--dh-border); background: var(--dh-surface); transform: rotate(45deg); content: ""; }
.dh-qr-panel img { width: 160px; height: 160px; border: 1px solid var(--dh-border); border-radius: 10px; }
.dh-qr-panel b { font-size: 12.5px; font-weight: 650; }
.dh-qr-panel > span { color: var(--dh-ink-muted); font-size: 11px; overflow-wrap: anywhere; }
.dh-qr-status { padding: 30px 0; color: var(--dh-ink-muted); font-size: 11.5px; }
.dh-prose { overflow-wrap: anywhere; }
.dh-prose p, .dh-prose li { color: var(--dh-ink-secondary); font-size: 13px; line-height: 1.9; }
.dh-prose p { margin-bottom: 10px; }
.dh-prose > :last-child { margin-bottom: 0; }
.dh-prose h1, .dh-prose h2, .dh-prose h3 { margin-block: 20px 10px; font-size: 17px; line-height: 1.5; }
.dh-prose h1:first-child, .dh-prose h2:first-child, .dh-prose h3:first-child { margin-top: 0; }
.dh-prose a { color: var(--dh-accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.dh-prose img, .dh-prose video { max-width: 100%; height: auto; border-radius: var(--dh-radius-small); }
.dh-prose iframe { max-width: 100%; }
.dh-prose pre { max-width: 100%; overflow-x: auto; padding: 16px; border: 1px solid var(--dh-border); border-radius: var(--dh-radius-small); background: var(--dh-surface-soft); font: 12px/1.8 var(--dh-mono); }
.dh-prose code { font-family: var(--dh-mono); }
.dh-prose blockquote { margin: 16px 0; padding: 6px 16px; border-left: 3px solid var(--dh-accent); background: var(--dh-accent-soft); }
.dh-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 13px; }
.dh-prose th, .dh-prose td { padding: 8px 12px; border: 1px solid var(--dh-border); text-align: left; }
.dh-prose hr { height: 1px; border: 0; margin-block: 16px; background: var(--dh-border); }
.dh-prose ul, .dh-prose ol { padding-left: 22px; }
.dh-metadata { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; margin: 0; font-size: 12.5px; }
.dh-metadata > div { display: flex; align-items: start; gap: 10px; min-width: 0; }
.dh-metadata dt { flex: none; color: var(--dh-ink-muted); }
.dh-metadata dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.dh-resource-links { display: flex; flex-wrap: wrap; gap: 10px; }
.dh-article-heading > p { margin-top: 10px; color: var(--dh-ink-secondary); font-size: 13px; }
.dh-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 14px; color: var(--dh-ink-muted); font-size: 12px; }
.dh-article-meta .dh-button { margin-left: auto; }
.dh-article-cover { max-height: 480px; margin-top: 18px; object-fit: contain; border-radius: var(--dh-radius); }
.dh-rankings { padding: 0; overflow: hidden; }
.dh-ranking { display: grid; grid-template-columns: 30px 38px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--dh-border); }
.dh-ranking:first-child { border-top: 0; }
.dh-rank-number { color: var(--dh-ink-muted); font-size: 13px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.dh-rank-number--1 { color: var(--dh-danger); }
.dh-rank-number--2 { color: var(--dh-warning); }
.dh-ranking b { display: block; font-size: 13px; }
.dh-ranking p { overflow: hidden; color: var(--dh-ink-muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.dh-rank-views { display: flex; align-items: center; gap: 4px; color: var(--dh-ink-secondary); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.dh-rank-views > .dh-icon { width: 13px; height: 13px; color: var(--dh-warning); }

.dh-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px; margin-top: auto; padding: 20px 24px; color: var(--dh-ink-muted); font-size: 12px; text-align: center; overflow-wrap: anywhere; }
.dh-footer a { white-space: nowrap; }
.dh-police { display: inline-flex; align-items: center; gap: 5px; }
.dh-police > .dh-icon { width: 14px; height: 14px; color: var(--dh-warning); }
.dh-tabbar { display: none; }
.dh-toasts { position: fixed; z-index: 120; bottom: 26px; left: 50%; display: flex; flex-direction: column; align-items: center; gap: 8px; width: max-content; max-width: calc(100% - 24px); transform: translateX(-50%); pointer-events: none; }
.dh-toast { display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 9px 15px; border: 1px solid var(--dh-border); border-radius: 99px; color: var(--dh-ink); background: var(--dh-surface); font-size: 12.5px; font-weight: 600; box-shadow: var(--dh-shadow-medium); animation: dh-enter .2s ease both; }
.dh-toast > .dh-icon { width: 14px; height: 14px; color: var(--dh-accent); }
.dh-toast--error > .dh-icon { color: var(--dh-danger); }

@media (hover: hover) {
  .dh-nav-item:hover { color: var(--dh-ink); background: var(--dh-surface-hover); }
  .dh-nav-item.is-active:hover { color: var(--dh-accent); background: var(--dh-accent-soft); }
  .dh-scopes button:hover { color: var(--dh-ink); }
  .dh-search-submit:hover { background: var(--dh-accent-strong); }
  .dh-more:hover, .dh-site-domain:hover, .dh-footer a:hover, .dh-breadcrumbs a:hover { color: var(--dh-accent); }
  .dh-pill:not(.is-active):hover, .dh-segment button:not(.is-active):hover { color: var(--dh-ink); }
  .dh-card:hover { border-color: var(--dh-accent); box-shadow: 0 0 0 1px var(--dh-accent); }
  .dh-card:hover .dh-card-save { opacity: 1; }
  .dh-card-save:hover { color: var(--dh-warning); }
  .dh-card-save:hover::before { background: var(--dh-warning-soft); }
  .dh-button--primary:hover { background: var(--dh-accent-hover); }
  .dh-button--outline:hover { border-color: var(--dh-border-strong); color: var(--dh-ink); background: var(--dh-surface-soft); }
  .dh-category-card:hover { border-color: var(--dh-accent); }
  .dh-suggestion:hover, .dh-ranking:hover { background: var(--dh-surface-soft); }
  .dh-preview:hover .dh-preview-stats { opacity: 1; }
  .dh-preview:hover .dh-preview-image { transform: scale(1.03); }
}
@media (max-width: 1080px) {
  :root { --dh-sidebar-width: 0px; }
  .dh-sidebar { display: none; }
  .dh-main { margin-left: 0; }
  .dh-container { padding: 16px 16px 84px; }
  .dh-tabbar { position: fixed; z-index: 50; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--dh-border); background: var(--dh-surface); }
  .dh-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 0; color: var(--dh-ink-muted); font-size: 10.5px; font-weight: 600; white-space: nowrap; }
  .dh-tabbar .dh-icon { width: 20px; height: 20px; }
  .dh-tabbar .is-active { color: var(--dh-accent); }
  .dh-footer { padding: 18px 16px calc(82px + env(safe-area-inset-bottom)); }
  .dh-toasts { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 860px) {
  .dh-detail-top { grid-template-columns: minmax(0, 1fr); }
  .dh-site-actions { width: 100%; }
  .dh-site-summary { min-height: 0; }
}
@media (max-width: 680px) {
  .dh-container { padding: 14px 13px 88px; }
  .dh-hero-inner { padding: 22px 16px 6px; }
  .dh-hero-brand { flex-wrap: wrap; font-size: 19px; }
  .dh-hero-brand i { width: 14px; margin-inline: 7px; }
  .dh-hero-brand > span { max-width: 100%; font-size: inherit; }
  .dh-scopes { gap: 20px; margin-top: 22px; }
  .dh-search input { height: 48px; font-size: 13.5px; }
  .dh-search-submit { top: 6px; right: 6px; width: 36px; height: 36px; }
  .dh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .dh-card { gap: 8px; padding: 10px; }
  .dh-card-heading { font-size: 12px; }
  .dh-card-description { font-size: 10.8px; }
  .dh-card-save { opacity: 1; }
  .dh-section { margin-top: 22px; padding: 16px 14px; }
  .dh-section-heading h2 { font-size: 15.5px; }
  .dh-pill { height: 25px; padding: 0 11px; font-size: 11.5px; }
  .dh-page-title { font-size: 19px; }
  .dh-panel { padding: 16px; }
  .dh-detail-top { display: block; }
  .dh-preview { width: auto; height: auto; aspect-ratio: 1; margin: 0 -9px 14px; padding: 0; }
  .dh-site-identity h1 { font-size: 18px; }
  .dh-mark--large { width: 52px; height: 52px; font-size: 21px; }
  .dh-recommendation { display: none; }
  .dh-qr-panel { right: auto; left: 50%; transform: translateX(calc(-50% + var(--dh-qr-offset, 0px))); }
  .dh-qr-panel::before { right: calc(50% - 5px + var(--dh-qr-offset, 0px)); }
  .dh-rankings { padding: 0; }
  .dh-ranking { grid-template-columns: 22px 30px minmax(0, 1fr) auto; gap: 8px; padding: 11px 12px; }
  .dh-ranking > .dh-mark { width: 30px; height: 30px; font-size: 12px; }
  .dh-ranking > .dh-icon { display: none; }
  .dh-article-meta { gap: 8px; }
}
@media (max-width: 360px) {
  .dh-scopes { gap: 18px; }
  .dh-site-actions { gap: 7px; }
  .dh-site-actions .dh-button--large { padding-inline: 12px; font-size: 12px; }
  .dh-result-count { width: 100%; margin-left: 0; }
  .dh-hero-brand { font-size: 17px; }
  .dh-card-external { display: none; }
}
@media (pointer: coarse) {
  .dh-card-save { opacity: 1; }
  .dh-preview-stats { opacity: 1; }
  .dh-suggestion { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Site feedback uses the same surfaces, type and controls as the directory. */
.dh-feedback-entry:hover { color: var(--dh-accent); }
.dh-feedback { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid var(--dh-border); border-radius: var(--dh-radius-large); color: var(--dh-ink); background: var(--dh-surface); box-shadow: var(--dh-shadow-large); overflow: auto; }
.dh-feedback::backdrop { background: rgb(16 20 24 / 42%); }
.dh-feedback-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.dh-feedback-heading h2 { font-size: 20px; font-weight: 600; }
.dh-feedback-heading button { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--dh-radius-small); background: var(--dh-surface-soft); }
.dh-feedback > p { margin: 8px 0 20px; color: var(--dh-ink-secondary); font-size: 13px; }
.dh-feedback fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.dh-feedback label { display: block; margin: 14px 0 6px; font-size: 13px; font-weight: 500; }
.dh-feedback label span { color: var(--dh-danger); }
.dh-feedback input, .dh-feedback select, .dh-feedback textarea { display: block; width: 100%; min-width: 0; border: 1px solid var(--dh-border-strong); border-radius: var(--dh-radius-small); background: var(--dh-surface); padding: 10px 12px; }
.dh-feedback textarea { resize: vertical; min-height: 120px; }
.dh-feedback input:focus, .dh-feedback select:focus, .dh-feedback textarea:focus { outline: 2px solid var(--dh-accent-halo); border-color: var(--dh-accent); }
.dh-feedback-verification { display: flex; align-items: center; gap: 12px; }
.dh-feedback-verification button { flex: 0 0 120px; height: 40px; color: var(--dh-ink-secondary); border-radius: var(--dh-radius-small); background: var(--dh-surface-soft); font-size: 12px; overflow: hidden; }
.dh-feedback-verification img { display: block; }
.dh-feedback [hidden] { display: none !important; }
.dh-feedback-error { margin-top: 12px; color: var(--dh-danger); font-size: 13px; overflow-wrap: anywhere; }
.dh-feedback-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.dh-feedback-success { padding: 32px 0 16px; text-align: center; }
.dh-feedback-success > .dh-icon { width: 36px; height: 36px; color: var(--dh-accent); }
.dh-feedback-success h3 { margin: 12px 0 6px; font-size: 20px; }
.dh-feedback-success p { color: var(--dh-ink-secondary); margin-bottom: 24px; }
.dh-feedback button:disabled { opacity: .6; }
@media (max-width: 560px) { .dh-feedback { padding: 20px; } .dh-feedback-actions .dh-button { flex: 1; } }
