.page-heading { margin-bottom: 32px; }
.stats-grid, .dossier-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 30px; }
.stat-card { min-height: 108px; padding: 17px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(155deg, rgba(27,36,48,.86), rgba(21,27,35,.9)); }
.stat-card > span, .stat-card > strong, .stat-card > small { display: block; }
.stat-label { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.stat-card > strong { margin-top: 8px; font-size: 28px; letter-spacing: -.035em; }
.stat-card > small { margin-top: 5px; color: var(--text-2); line-height: 1.35; }
.home-section { margin-top: 6px; }
.foundation-notice.accepted { border-color: rgba(52,211,153,.22); background: rgba(52,211,153,.055); }
.foundation-notice.accepted span { color: var(--success); }
.quick-card-button { color: inherit; width: 100%; text-align: left; cursor: pointer; }
.entity-card-button { width: 100%; color: inherit; text-align: left; cursor: pointer; }
.entity-card-icon { width: 42px; min-height: 32px; display: grid; place-items: center; padding: 5px; border: 1px solid rgba(45,212,191,.18); border-radius: 10px; background: rgba(45,212,191,.06); font-size: 11px !important; font-weight: 900; }
.documents-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.document-card { min-height: 164px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(155deg, rgba(27,36,48,.8), rgba(21,27,35,.88)); }
.document-card-button { width: 100%; color: inherit; text-align: left; cursor: pointer; }
.document-card-button:hover { border-color: #3a4b5c; background: var(--surface-elevated); }
.document-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.document-icon, .compact-icon, .search-result-icon { min-width: 34px; height: 30px; padding: 0 7px; display: grid; place-items: center; border-radius: 9px; border: 1px solid rgba(45,212,191,.16); color: var(--accent-hover); background: rgba(45,212,191,.055); font-size: 10px; font-weight: 900; }
.document-card > strong, .document-card > small, .document-meta { display: block; }
.document-card > strong { font-size: 15px; }
.document-card > small { margin-top: 7px; color: var(--text-2); }
.document-meta { margin-top: 13px; color: var(--muted); font-size: 11px; }
.chip { display: inline-flex; min-height: 24px; align-items: center; padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-2); background: rgba(8,11,15,.38); font-size: 10px; font-weight: 800; white-space: nowrap; }
.chip.warning { border-color: rgba(251,191,36,.22); color: var(--warning); background: rgba(251,191,36,.06); }
.chip.neutral { color: var(--muted); }
.detail-columns { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 14px; }
.detail-panel { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(21,27,35,.76); }
.finance-records { margin-top: 18px; }
.record-row { min-height: 64px; display: grid; grid-template-columns: minmax(0,1fr) minmax(130px,auto) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(42,54,67,.58); }
.record-row:first-of-type { border-top: 0; }
.record-main strong, .record-main small { display: block; }
.record-main strong { text-transform: capitalize; }
.record-main small { margin-top: 4px; color: var(--muted); }
.record-value { color: var(--text-2); text-align: right; overflow-wrap: anywhere; }
.reveal-button { min-height: 32px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-elevated); color: var(--accent-hover); cursor: pointer; font-size: 11px; font-weight: 800; }
.compact-list { display: grid; }
.compact-row { min-height: 58px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 11px; align-items: center; border-top: 1px solid rgba(42,54,67,.58); }
.compact-row:first-child { border-top: 0; }
.compact-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-button { width: 100%; border-left: 0; border-right: 0; border-bottom: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.compact-button:hover { background: rgba(34,45,58,.45); }
.compact-empty { min-height: 230px; }
.version-row { min-height: 68px; display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid rgba(42,54,67,.58); }
.version-row:first-of-type { border-top: 0; }
.version-row strong, .version-row small { display: block; }
.version-row small { margin-top: 4px; color: var(--muted); }
.version-row > span { color: var(--text-2); font-size: 12px; }
.hash-fragment { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.timeline-list { margin-top: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(21,27,35,.7); overflow: hidden; }
.timeline-row { width: 100%; min-height: 72px; display: grid; grid-template-columns: 110px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 13px 16px; border: 0; border-top: 1px solid rgba(42,54,67,.58); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.timeline-row:first-child { border-top: 0; }
.timeline-row:hover, .timeline-row:focus-visible { background: var(--surface-elevated); }
.timeline-row time { color: var(--muted); font-size: 11px; }
.timeline-row strong, .timeline-row span { display: block; }
.timeline-row div span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.recent-button { width: 100%; border-left: 0; border-right: 0; border-bottom: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.recent-button:hover { background: rgba(34,45,58,.38); }
.search-results { max-height: min(54vh, 480px); overflow: auto; }
.search-result { width: 100%; min-height: 58px; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; color: inherit; display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; text-align: left; cursor: pointer; }
.search-result:hover, .search-result:focus-visible, .search-result.active { background: var(--surface-elevated); }
.search-result strong, .search-result span { display: block; }
.search-result div span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.search-result-arrow { color: var(--muted); }
.search-empty { color: var(--muted); padding: 14px; }
.lock-screen { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(3,5,8,.92); backdrop-filter: blur(22px); }
.lock-card { width: min(500px, 100%); padding: 32px; border: 1px solid #344557; border-radius: 20px; background: #111820; box-shadow: var(--shadow); text-align: center; }
.lock-card .brand-mark.large { width: 52px; height: 52px; margin: 0 auto 24px; font-size: 19px; }
.lock-card .subtle { margin-left: auto; margin-right: auto; }
.demo-credential { margin: 18px 0 0; padding: 10px 12px; border: 1px solid rgba(96,165,250,.18); border-radius: 10px; background: rgba(96,165,250,.055); color: var(--text-2); font-size: 12px; }
.demo-credential code { color: var(--info); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; user-select: all; }
.unlock-form { display: grid; gap: 9px; margin-top: 20px; text-align: left; }
.unlock-form label { color: var(--text-2); font-size: 11px; font-weight: 800; }
.unlock-form input { width: 100%; min-height: 44px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); padding: 0 12px; }
.unlock-form input:focus-visible { border-color: var(--accent); }
.unlock-mode-switch { margin-top: 14px; }
.primary-button { min-height: 42px; margin-top: 24px; padding: 0 16px; border: 1px solid rgba(45,212,191,.34); border-radius: 10px; background: var(--accent); color: #06211e; cursor: pointer; font-weight: 900; }
.unlock-form .primary-button { margin-top: 3px; }
.primary-button:hover { background: var(--accent-hover); }
.primary-button:disabled { cursor: progress; opacity: .58; }
.unlock-status { min-height: 20px; margin: 13px 0 0; color: var(--muted); font-size: 11px; }
.unlock-status.error { color: var(--danger); }
#replicaRuntime { margin-top: 28px; }
@media (max-width: 940px) { .stats-grid, .dossier-summary { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 720px) { .documents-grid, .detail-columns { grid-template-columns: 1fr; } .stats-grid, .dossier-summary { grid-template-columns: repeat(2, minmax(0,1fr)); } .record-row { grid-template-columns: minmax(0,1fr) auto; } .record-value { grid-column: 1; text-align: left; } .reveal-button { grid-column: 2; grid-row: 1 / span 2; } .version-row { grid-template-columns: 1fr auto; } .hash-fragment { grid-column: 1 / -1; } .timeline-row { grid-template-columns: 84px minmax(0,1fr); } .timeline-row > .chip { grid-column: 2; justify-self: start; } }
@media (max-width: 460px) { .stats-grid, .dossier-summary { grid-template-columns: 1fr 1fr; gap: 9px; } .stat-card { min-height: 96px; padding: 14px; } .stat-card > strong { font-size: 23px; } .lock-card { padding: 26px 20px; } .timeline-row { grid-template-columns: 1fr; gap: 5px; } .timeline-row > .chip { grid-column: 1; } }
