.language-toggle{font-size:12px;font-weight:800;color:var(--primary)}.metric-grid,.docs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:15px 0}.metric-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.metric-number{font-size:clamp(20px,3vw,32px);font-weight:760;display:block;color:var(--primary);letter-spacing:-.04em}.metric-grid+.panel,#github-dashboard>.panel,#download-statistics>.panel{margin-top:14px}.release-details{border-top:1px solid var(--line);padding:12px 0;margin-top:8px}.release-details summary{cursor:pointer;font-weight:650}.release-details p{margin-top:8px}.release-line{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line);padding:10px 0;font-size:13px;overflow-wrap:anywhere}.language-line{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:center;margin-top:10px}.language-line progress{width:100%;accent-color:var(--primary)}.contribution-grid{display:flex;gap:3px;overflow:auto;padding:12px 0}.contribution-week{display:grid;grid-template-rows:repeat(7,10px);gap:3px;align-self:end}.contribution-week span{width:10px;height:10px;border-radius:2px;background:var(--soft);border:1px solid var(--line)}.contribution-week .heat-1{background:#4c347f}.contribution-week .heat-2{background:#7650bf}.contribution-week .heat-3{background:#a57af3}.contribution-week .heat-4{background:#d1acff}.device-panel{margin:16px 0}.device-panel h2{font-size:19px}.resource-actions{margin:12px 0}.field-label{display:block;margin-top:15px;font-size:13px;font-weight:650}.hash-panel input,.hash-panel select{display:block;width:100%;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:9px;padding:10px;margin-top:5px}.hash-panel progress{width:100%;margin-top:16px;accent-color:var(--primary)}.hash-panel output{display:block;background:var(--soft);border-radius:9px;padding:12px;overflow-wrap:anywhere;font:13px monospace;margin:10px 0}.hash-status{margin-top:12px}.gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gallery-grid>.panel{grid-column:1/-1}.gallery-thumb{border:1px solid var(--line);background:var(--surface);border-radius:12px;overflow:hidden;padding:0}.gallery-thumb img,.gallery-grid video{width:100%;height:auto}.gallery-dialog{width:min(1000px,94vw);max-height:90vh;margin:4vh auto auto}.gallery-dialog img{max-height:72vh;object-fit:contain;margin:12px auto}.docs-grid .panel>.btn{margin-top:12px;margin-right:6px}.release-file-count{margin-top:4px;color:var(--primary)}@media(max-width:700px){.metric-grid,.docs-grid,.gallery-grid{grid-template-columns:1fr 1fr}.docs-grid,.gallery-grid{grid-template-columns:1fr}.language-line{grid-template-columns:1fr}.top-actions{gap:5px}.language-toggle{width:32px;height:32px}} 
/* Star texture only on global background; opaque content surfaces. */
.sidebar,.topbar,.site-footer,.quick-card,.project-card,.panel,.download-row,.timeline article,.faq details,.library-row,.toolbar,.banner,.page-intro{background-color:var(--surface);backdrop-filter:none}.quick-card,.project-card,.panel,.download-row,.timeline article,.faq details,.library-row,.toolbar,.banner{background:var(--surface)}.page-intro{background:radial-gradient(ellipse at 100% 0%,var(--glow),transparent 66%),var(--surface)}.site-footer,.sidebar,.topbar{background:var(--surface)}
html[data-theme=dark][data-motion=reduce] body::before{background:radial-gradient(ellipse at 80% 15%,#6f3aff29,transparent 42%),radial-gradient(ellipse at 18% 82%,#527aff21,transparent 38%)}

/* Accessible controls: preserve the compact visual style while enlarging hit areas. */
.icon-btn, .top-profile { min-width: 44px; min-height: 44px; }
.featured-grid .save-btn { min-width: 44px; min-height: 44px; }
.featured-grid .card-actions .btn, .card-actions .text-link, .section-head > .text-link { min-height: 44px; }
.footer-grid a:not(.brand) { display: flex; align-items: center; min-height: 28px; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 28px; }
@media (max-width: 850px) {
  .topbar .global-search { min-width: 44px; min-height: 44px; }
  .top-actions, .top-left { gap: 6px; }
  .footer-grid a:not(.brand), .footer-bottom a { min-height: 44px; }
  .sidebar nav a, .side-link { min-height: 44px; }
  .project-info h3 a { display: inline-flex; align-items: center; min-height: 24px; }
  .btn, .toolbar button, .toolbar select, .toolbar input { min-height: 44px; }
  .featured-grid .card-actions { gap: 8px; }
  .sidebar { overflow-y: auto; }
}

/* Comfortable hit areas on every viewport, including mouse and touch laptops. */
.topbar .global-search, .hero .actions .btn, .contact-banner .btn { min-height: 44px; }
.project-info h3 a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-grid .brand, .footer-grid a:not(.brand), .footer-bottom a { min-height: 44px; }
.footer-grid .brand { display: inline-flex; align-items: center; }
.card-actions .text-link { min-width: 44px; }
@media (max-width: 360px) { .topbar .top-actions { gap: 6px; } }
