/* Shared visual refresh layer. */
.donation-note { grid-template-columns: minmax(0, 1fr); }
.donation-card { text-align: left; }
.donation-card .donation-buttons { justify-content: flex-start; }
.stat-card { display: grid; align-content: space-between; }
.zip-browser > .zip-tree { margin-top: 0; }
.primary-action { min-height: 46px; padding: 10px 14px; border: 1px solid rgba(50, 226, 194, 0.34); border-radius: 11px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #06141b; cursor: pointer; font-weight: 950; }
.text-view { display: grid; gap: 12px; }
.text-reader { min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: rgba(4, 17, 25, 0.6); overflow: hidden; }
.text-reader pre { margin: 0; padding: clamp(14px, 2vw, 24px); overflow: auto; color: #edf8fb; background: rgba(1, 11, 17, 0.55); font: 0.94rem/1.65 "SFMono-Regular", Consolas, "Liberation Mono", monospace; white-space: pre; -webkit-overflow-scrolling: touch; }
.text-reader-head { display: flex; gap: 8px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.text-reader-head strong { color: #fff; overflow-wrap: anywhere; }
.checksum-card { min-width: 0; display: grid; gap: 9px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(4, 17, 25, 0.54); }
.checksum-card h2 { color: #fff; font-size: 0.96rem; line-height: 1.4; overflow-wrap: anywhere; }
.checksum-code { padding: 9px; border: 1px solid rgba(188, 239, 246, 0.12); border-radius: 10px; background: rgba(98, 197, 255, 0.08); color: #cbf5ff; overflow-wrap: anywhere; }
.checksum-meta { color: var(--muted); font-size: 0.82rem; }
.gate-page { display: grid; min-height: 100vh; place-items: center; }
.gate-shell { width: min(520px, 100%); }
.gate-card { padding: clamp(18px, 4vw, 34px); border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(150deg, rgba(50, 226, 194, 0.1), transparent 34%), var(--panel); box-shadow: var(--shadow); }
.gate-card h1 { color: #fff; font-size: clamp(1.5rem, 4vw, 2.3rem); }
.gate-copy { margin: 9px 0 16px; color: var(--muted); }
.gate-form { display: grid; gap: 7px; }
.gate-form label { color: var(--muted-2); font-size: 0.74rem; font-weight: 900; text-transform: uppercase; }
.gate-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.gate-mark { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 13px; border: 1px solid var(--line-strong); border-radius: 13px; background: rgba(50, 226, 194, 0.11); }
.gate-mark span { width: 18px; height: 22px; border: 2px solid var(--accent); border-radius: 9px; box-shadow: inset 0 7px 0 rgba(98, 197, 255, 0.18); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; padding: clamp(13px, 2vw, 20px); border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(135deg, rgba(50, 226, 194, 0.08), rgba(98, 197, 255, 0.04)), rgba(5, 18, 26, 0.56); }
.section-head h1, .section-head h2 { color: #fff; font-size: clamp(1.28rem, 2.5vw, 2rem); line-height: 1.18; }
.section-head p { color: var(--muted); }
.metric-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 9px; }
.metric-tile { min-height: 92px; display: grid; align-content: center; gap: 3px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(4, 17, 25, 0.5); }
.metric-tile span { color: var(--muted-2); font-size: 0.72rem; font-weight: 900; text-transform: uppercase; }
.metric-tile strong { color: #fff; font-size: clamp(1.25rem, 2vw, 1.8rem); line-height: 1.1; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.inline-alert { margin-top: 10px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(98, 197, 255, 0.1); }
.inline-alert.is-danger { border-color: rgba(255, 141, 152, 0.34); background: rgba(255, 141, 152, 0.13); color: #ffd8dd; }
.reader-meta { color: var(--muted); font-size: 0.82rem; font-weight: 850; white-space: nowrap; }
.empty-state { padding: 24px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); background: rgba(4, 17, 25, 0.34); text-align: center; }
.portal-panel, .portal-header, .footer-redesign { backdrop-filter: blur(10px); }
.item, .stat-card { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.055); }
.item::after { display: none; }
.item:hover, .stat-card:hover { transform: translateY(-2px); }
.folder-stats span { min-height: 28px; padding: 5px 8px; border: 1px solid rgba(188, 239, 246, 0.1); border-radius: 9px; background: rgba(4, 17, 25, 0.28); color: var(--muted); font-size: 0.76rem; font-weight: 800; }
.folder-stats .folder-stat-primary { display: inline-flex; align-items: baseline; gap: 5px; border-color: rgba(50, 226, 194, 0.26); background: rgba(50, 226, 194, 0.12); color: #f0fffb; font-size: 1rem; }
.folder-stat-primary small { color: var(--muted); font-size: 0.68rem; text-transform: uppercase; }
.gate-form input { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(4, 17, 25, 0.7); color: var(--ink); }
@media (max-width: 760px) { .section-head { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .page-actions { justify-content: stretch; } }
@media (max-width: 760px) { .page-actions .nav-btn { width: 100%; } }
@media (max-width: 680px) { .text-reader pre { overflow-wrap: anywhere; tab-size: 2; white-space: pre-wrap; word-break: break-word; font-size: 0.84rem; line-height: 1.58; } }
@media (max-width: 680px) { .text-reader-head { align-items: flex-start; flex-direction: column; } }
@media (max-width: 680px) { .reader-meta { white-space: normal; } }
@media (max-width: 680px) { .text-view .section-head p { line-height: 1.5; } }
