:root {
  --bg: #0d121b;
  --bg-alt: #121926;
  --surface: #161e2c;
  --text: #e6ecf5;
  --muted: #9aa6ba;
  --border: #263244;
  --accent: #5cb8f2;
  --accent-strong: #8fd0f7;
  --accent-soft: #15283b;
  --code-bg: #0a0f17;
  --code-text: #d7e3f4;
  --warn-bg: #3a2f0d;
  --warn-text: #f3dc8a;
  --radius: 14px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: ui-monospace, "Cascadia Code", Consolas, "SFMono-Regular", Menlo, monospace; font-size: 0.9em; }
:not(pre) > code { background: var(--accent-soft); padding: 0.1em 0.35em; border-radius: 5px; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.brand .tag { font-size: 0.72rem; font-weight: 600; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 1px 8px; }
.nav { margin-left: auto; display: flex; gap: 22px; font-size: 0.95rem; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a { white-space: nowrap; }
@media (max-width: 1360px) { .brand .tag { display: none; } }
@media (max-width: 980px) { .nav { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #06121d; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .eyebrow { color: var(--accent); font-weight: 600; font-size: 0.95rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); letter-spacing: -0.02em; max-width: 16ch; }
.hero .lede { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 46ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero .small { color: var(--muted); font-size: 0.88rem; margin-top: 10px; }

/* Code block with copy */
.cmd {
  position: relative; background: var(--code-bg); color: var(--code-text);
  border-radius: 12px; border: 1px solid var(--border);
  max-width: 640px;
}
.cmd pre { margin: 0; padding: 14px 92px 14px 16px; overflow-x: auto; white-space: pre; }
.cmd .copy {
  position: absolute; top: 8px; right: 8px;
  background: #223047; color: #d7e3f4; border: 1px solid #33445f; border-radius: 8px;
  font: 600 0.8rem/1 system-ui, sans-serif; padding: 7px 10px; cursor: pointer;
}
.cmd .copy:hover { background: #2c3d59; }
.cmd .label { display: block; font: 600 0.75rem/1 system-ui, sans-serif; color: #8ea0bb; padding: 12px 92px 0 16px; }
.cmd .label + pre { padding-top: 8px; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-intro { color: var(--muted); max-width: 62ch; margin-bottom: 32px; }

/* Demo */
.demo-video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer; }
.demo-video img, .demo-video video, .demo-video iframe { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.demo-video .play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(0,0,0,.65); }
.demo-video .play::after { content: ""; position: absolute; left: 34px; top: 26px; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent #fff; }
.demo-video:hover .play, .demo-video:focus-visible .play { background: rgba(0,0,0,.85); }
.demo-video .loop-tag { position: absolute; left: 16px; bottom: 16px; padding: 6px 12px; border-radius: 8px; background: rgba(0,0,0,.7); color: #fff; font-weight: 600; font-size: clamp(.8rem, 2vw, 1rem); }
.demo-note { margin-top: 10px; color: var(--muted); font-size: .9rem; }

/* Features */
.feature-major {
  display: grid; gap: 28px; grid-template-columns: 1fr;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; margin-bottom: 20px;
}
@media (min-width: 860px) { .feature-major { grid-template-columns: 1.15fr 1fr; padding: 36px; } }
.feature-major h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.num { display: inline-block; font-weight: 700; color: var(--accent); font-size: 0.85rem; margin-bottom: 8px; letter-spacing: 0.04em; }
.feature-major ul, .card ul { padding-left: 1.15em; margin: 0; }
.feature-major li, .card li { margin-bottom: 0.35em; }
.highlight { font-weight: 600; color: var(--text); }
.evidence {
  background: var(--accent-soft); border-radius: 12px; padding: 20px; align-self: start;
}
.evidence .kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.stat .big { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.stat .big.good { color: var(--accent); }
.stat .cap { font-size: 0.82rem; color: var(--muted); }
.evidence p { font-size: 0.9rem; color: var(--muted); margin: 0; }
.evidence p + p { margin-top: 8px; }

.cards { display: grid; gap: 20px; grid-template-columns: 1fr; margin-bottom: 20px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card p, .card li { color: var(--muted); font-size: 0.96rem; }
@media (min-width: 720px) { .cards.two { grid-template-columns: 2fr 1fr; } }

/* A selling point's clip: a 3-second muted loop while in view; a click plays the full clip with sound. */
.clip { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #000; margin-bottom: 16px; }
button.clip, a.clip { cursor: pointer; }
.evidence .clip { margin: 16px 0 0; }
.clip video, .clip img { display: block; width: 100%; height: 100%; object-fit: cover; }
.clip-tag { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 6px; background: rgba(0,0,0,.72); color: #fff; font-weight: 600; font-size: .82rem; }
/* Viewer: the whole frame always shows (contain, never crop), whatever the screen's shape. */
.viewer { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0,0,0,.92); }
.viewer::backdrop { background: rgba(0,0,0,.6); }
.viewer-body { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 48px 16px 16px; box-sizing: border-box; }
.viewer-body video, .viewer-body img { width: 100%; height: 100%; object-fit: contain; }
.viewer-close { position: absolute; right: 16px; top: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 28px; line-height: 40px; cursor: pointer; }
.viewer-close:hover, .viewer-close:focus-visible { background: var(--accent); color: #06121d; }
button.clip .clip-tag::before { content: "\25B6\00A0"; }
button.clip:hover .clip-tag, button.clip:focus-visible .clip-tag, a.clip:hover .clip-tag { background: var(--accent); color: #06121d; }

.minor { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .minor { grid-template-columns: 1fr 1fr; } }
.minor .item { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; }
.minor .item h3 { font-size: 1.02rem; margin-bottom: 0.3em; }
.minor .item p { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* Install */
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 36px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.step .n { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.hosts { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .hosts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
details.host { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 18px; }
details.host[open] { padding-bottom: 18px; }
details.host summary { cursor: pointer; padding: 15px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.host summary::-webkit-details-marker { display: none; }
details.host summary::after { content: "+"; color: var(--muted); font-weight: 400; }
details.host[open] summary::after { content: "\2212"; }
details.host p { color: var(--muted); font-size: 0.92rem; margin: 0 0 10px; }
details.host .cmd { max-width: none; margin-bottom: 10px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 1.04rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq .a { color: var(--muted); padding-bottom: 14px; }

/* About */
.about { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .about { grid-template-columns: 1.4fr 1fr; } }
.about .facts { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; font-size: 0.95rem; }
.about .facts dt { font-weight: 600; }
.about .facts dd { margin: 0 0 12px; color: var(--muted); }
.tbc { background: var(--warn-bg); color: var(--warn-text); border-radius: 5px; padding: 0 5px; font-weight: 600; font-size: 0.9em; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 44px; font-size: 0.9rem; color: var(--muted); }
.site-footer .row { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; margin-bottom: 14px; }
.site-footer .row a { color: var(--muted); }
.site-footer .row a:hover { color: var(--text); }
.site-footer .brand { font-size: 1rem; }

/* Legal pages */
.legal { padding: 48px 0 64px; }
.legal article { max-width: 760px; }
.legal h1 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.08rem; margin-top: 1.4em; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: 0.4em; }
.legal .draft { background: var(--warn-bg); color: var(--warn-text); border-radius: 10px; padding: 12px 16px; font-weight: 600; }
.legal a { overflow-wrap: anywhere; }
.site-footer .lang { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
.site-footer .lang a { color: var(--muted); }
.site-footer .lang a:hover { color: var(--text); }
.site-footer .lang strong { color: var(--text); font-weight: 600; }
.site-footer .mt-note { margin-bottom: 14px; }
.site-footer .mt-note a { color: var(--muted); text-decoration: underline; }
:lang(ja) h1, :lang(zh) h1, :lang(ko) h1 { text-wrap: balance; word-break: auto-phrase; }

/* Language menu in the header */
.lang-menu { position: relative; font-size: 0.92rem; }
.lang-menu summary { display: flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; color: var(--muted); padding: 6px 4px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--text); }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; margin: 0; padding: 6px; list-style: none; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.lang-menu li a, .lang-menu li strong { display: block; padding: 7px 12px; border-radius: 6px; color: var(--text); }
.lang-menu li strong { font-weight: 600; }
.lang-menu li a:hover { background: color-mix(in srgb, var(--text) 8%, transparent); text-decoration: none; }
.site-header .btn, .brand .tag { white-space: nowrap; }
@media (max-width: 1180px) { .lang-menu summary span { display: none; } }
@media (max-width: 980px) { .lang-menu { margin-left: auto; } }
/* 导航在这几种语言下 1120px 以下放不下 */
@media (max-width: 1120px) { :is(:lang(ja), :lang(es), :lang(pt), :lang(fr), :lang(ru), :lang(de)) .nav { display: none; } :is(:lang(ja), :lang(es), :lang(pt), :lang(fr), :lang(ru), :lang(de)) .lang-menu { margin-left: auto; } }
/* 同样这几种语言，宽屏下页眉也只够放语言图标，不放语言名 */
:is(:lang(ja), :lang(es), :lang(pt), :lang(fr), :lang(ru), :lang(de)) .lang-menu summary span { display: none; }
:is(:lang(ja), :lang(es), :lang(pt), :lang(fr), :lang(ru), :lang(de)) .nav { gap: 18px; }
@media (max-width: 520px) { .site-header .wrap { gap: 10px; } .site-header .btn { font-size: 0.82rem; padding-left: 12px; padding-right: 12px; } }
@media (max-width: 440px) { .site-header .btn { display: none; } .lang-menu { margin-left: auto; } }
/* The preview tag is too long beside the nav in these languages; the hero line repeats it. */
:is(:lang(ru), :lang(es), :lang(pt), :lang(ja), :lang(de), :lang(fr)) .brand .tag { display: none; }

/* Blog (generated by blogtool/build.mjs). Reading width about 720px. */
.post { padding: 40px 0 72px; }
.post-article, .post-index { max-width: 720px; margin: 0 auto; }
.post-back { margin: 0 0 20px; font-size: 0.92rem; }
.post-head { margin-bottom: 32px; }
.post-head h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: -0.015em; margin-bottom: 0.4em; }
.post-meta { color: var(--muted); font-size: 0.92rem; margin: 0; }
.post-meta a { color: var(--muted); text-decoration: underline; }
.post-meta a:hover { color: var(--text); }
.post-mt { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; background: var(--accent-soft); color: var(--muted); font-size: 0.88rem; }
.post-body { font-size: 1.0625rem; line-height: 1.75; overflow-wrap: break-word; }
.post-body > :last-child { margin-bottom: 0; }
.post-body h2, .post-body h3, .post-body h4 { scroll-margin-top: 76px; line-height: 1.3; }
.post-body h2 { font-size: clamp(1.4rem, 3.4vw, 1.75rem); margin: 2.2em 0 0.6em; }
.post-body h3 { font-size: 1.25rem; margin: 1.8em 0 0.5em; }
.post-body h4 { font-size: 1.06rem; margin: 1.5em 0 0.4em; }
.post-body p, .post-body ul, .post-body ol { margin: 0 0 1.2em; }
.post-body ul, .post-body ol { padding-left: 1.5em; }
.post-body li { margin-bottom: 0.4em; }
.post-body li > ul, .post-body li > ol { margin: 0.4em 0 0; }
.post-body a { text-decoration: underline; text-underline-offset: 2px; }
.post-body hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }
.post-anchor { margin-left: 0.4em; color: var(--muted); font-weight: 400; text-decoration: none !important; opacity: 0; }
.post-body :is(h2, h3, h4):hover .post-anchor { opacity: 1; }
.post-body blockquote { margin: 0 0 1.2em; padding: 0.6em 1.1em; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; color: var(--muted); }
.post-body blockquote > :last-child { margin-bottom: 0; }
.post-body pre { margin: 0 0 1.4em; padding: 14px 16px; background: var(--code-bg); color: var(--code-text); border: 1px solid var(--border); border-radius: 10px; overflow-x: auto; line-height: 1.5; font-size: 0.88rem; }
.post-body pre code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; }
.post-table { margin: 0 0 1.4em; overflow-x: auto; }
.post-table table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 0.96rem; line-height: 1.5; }
.post-table th, .post-table td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.post-table th { background: var(--surface); font-weight: 600; white-space: nowrap; }
.post-body img, .post-body video { border-radius: 10px; }
.post-body p > img { display: block; margin: 0 auto; }
.post-body figure { margin: 1.8em 0; }
.post-body figure > img, .post-body figure > video { display: block; width: 100%; height: auto; }
.post-body figcaption { margin-top: 8px; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.post-source { display: block; margin-top: 2px; font-size: 0.82rem; opacity: 0.85; }
/* Click to enlarge: reuses the home page viewer; shows the whole image instead of the 16:9 crop. */
.post-body .clip.post-zoom { aspect-ratio: auto; margin-bottom: 0; }
.post-body .clip.post-zoom img { height: auto; object-fit: contain; }
.post-body .clip, .post-body .demo-video { margin: 1.8em 0 0; }
.post-body figure > .clip, .post-body figure > .demo-video { margin: 0; }
.post-cols { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); margin: 1.8em 0; }
@media (min-width: 640px) { .post-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-cols > * { min-width: 0; }
.post-cols :is(figure, p, ul, ol):last-child { margin-bottom: 0; }
.post-cols figure { margin: 0; }
.post-chart { padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.post-chart svg { display: block; width: 100%; height: auto; }
.post-end { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); color: var(--muted); }
.post-end p { margin: 0 0 16px; }
/* Blog home */
.post-index h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); letter-spacing: -0.015em; }
.post-intro { color: var(--muted); margin-bottom: 32px; }
.post-empty { color: var(--muted); }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.post-card { position: relative; padding: 22px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.post-card:hover, .post-card:focus-within { border-color: var(--accent); }
.post-card h2 { font-size: 1.3rem; margin: 6px 0 8px; }
.post-card h2 a { color: var(--text); }
.post-card h2 a:hover { text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; }
.post-summary { color: var(--muted); margin: 0 0 10px; }
.post-more { color: var(--accent); font-weight: 600; font-size: 0.92rem; }
.post-flag { display: inline-block; margin-left: 8px; padding: 0 8px; border: 1px solid var(--border); border-radius: 999px; font-size: 0.78rem; }
/* BrowserDo page: comparison and tool tables */
.more-link { margin-top: 24px; }
.table-wrap { overflow-x: auto; margin-bottom: 20px; }
.compare, .tools { border-collapse: collapse; width: 100%; font-size: 0.97rem; line-height: 1.5; }
.compare { min-width: 620px; }
.compare th, .compare td, .tools td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.compare th { background: var(--surface); font-weight: 600; }
.compare td:nth-child(2) { color: var(--muted); }
.compare td.good { color: var(--text); font-weight: 600; }
.compare td.good::before { content: "\2713\00a0"; color: var(--accent); }
.tools td:first-child { width: 42%; }
.tools code { font-size: 0.86em; white-space: nowrap; }
@media (max-width: 700px) { .tools, .tools tbody, .tools tr, .tools td { display: block; width: auto !important; } .tools td:first-child { border-bottom: 0; padding-bottom: 2px; } .tools code { white-space: normal; overflow-wrap: anywhere; } }

/* BrowserDo page hero: product name large, tagline and intro smaller */
.hero-compact { padding: 56px 0 48px; }
.hero-compact h1 { max-width: none; }
.hero-compact h1 .sub { display: block; margin-top: 10px; font-size: clamp(1.3rem, 2.8vw, 1.9rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; color: var(--accent-strong); }
.hero-compact .lede { font-size: 1.05rem; max-width: 68ch; margin-bottom: 24px; }

.dirs { display: grid; gap: 16px; }
@media (min-width: 720px) { .dirs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .dirs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dir-card { display: grid; gap: 8px; align-content: start; justify-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; color: var(--text); }
.dir-card:hover { border-color: var(--accent); text-decoration: none; }
.dir-card img { width: 36px; height: 36px; padding: 4px; border-radius: 8px; background: #fff; object-fit: contain; }
.dir-card img.badge { width: auto; height: 28px; padding: 0; border-radius: 0; background: none; }
.dir-card span { color: var(--muted); font-size: 0.95rem; }
