:root {
    --bg: #eef3fb;
    --bg-soft: #e1eaf7;
    --panel: rgba(255, 255, 255, 0.92);
    --panel-strong: #f6f9ff;
    --ink: #1f2d45;
    --muted: #5f6b7a;
    --brand: #304c82;
    --brand-dark: #243b66;
    --accent: #f78c36;
    --accent-dark: #e2711a;
    --brand-soft: rgba(48, 76, 130, 0.12);
    --line: rgba(48, 76, 130, 0.18);
    --shadow: 0 16px 34px rgba(26, 43, 77, 0.12);
    --border: rgba(48, 76, 130, 0.18);
    --surface: #ffffff;
    --surface-raised: #f4f7fc;
    --text: #1d2635;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

body.theme-dark {
    --bg: #081320;
    --bg-soft: #0d1e31;
    --panel: rgba(10, 28, 46, 0.78);
    --panel-strong: #0f2a43;
    --ink: #e6eef8;
    --muted: #9db3c9;
    --brand: #56f7cf;
    --brand-dark: #bcffe9;
    --accent: #ff9f43;
    --accent-dark: #ff7f2a;
    --brand-soft: rgba(86, 247, 207, 0.12);
    --line: rgba(132, 173, 207, 0.24);
    --shadow: 0 20px 50px rgba(1, 12, 22, 0.45);
    --border: rgba(118, 135, 177, 0.34);
    --surface: rgba(10, 28, 46, 0.94);
    --surface-raised: rgba(21, 37, 58, 0.94);
    --text: #e6eef8;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 10% 6%, rgba(106, 145, 209, 0.16), transparent 30%),
        radial-gradient(circle at 85% 14%, rgba(48, 76, 130, 0.16), transparent 32%),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 50%, #e9f0fa 100%);
    color: var(--ink);
    font-family: "Manrope", "Segoe UI", sans-serif;
    letter-spacing: 0.01em;
}

body.theme-light {
    font-family: "Raleway", "Manrope", "Segoe UI", sans-serif;
}

body.theme-dark {
    background:
        radial-gradient(circle at 8% 8%, rgba(255, 159, 67, 0.18), transparent 26%),
        radial-gradient(circle at 88% 12%, rgba(86, 247, 207, 0.2), transparent 30%),
        radial-gradient(circle at 40% 100%, rgba(143, 232, 255, 0.08), transparent 34%),
        linear-gradient(180deg, #06101c 0%, var(--bg) 42%, #050d17 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-layout-shell {
    width: min(1400px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
    background: linear-gradient(135deg, rgba(48, 76, 130, 0.96), rgba(41, 67, 117, 0.94));
    border-bottom: 1px solid var(--line);
}

.site-banner {
    margin-top: 0.85rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 248, 255, 0.92));
    box-shadow: var(--shadow);
}

body.theme-dark .site-banner {
    background: linear-gradient(180deg, rgba(15, 32, 50, 0.96), rgba(9, 24, 39, 0.94));
}

.announcement-banner p {
    margin: 0;
    color: var(--ink);
    font-weight: 700;
    text-align: center;
}

.top-ad-shell {
    margin-top: 0.9rem;
}

.page-layout-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.page-layout-shell.has-left-rail {
    grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
}

.page-layout-shell.has-right-rail {
    grid-template-columns: minmax(0, 1fr) minmax(0, 180px);
}

.page-layout-shell.has-left-rail.has-right-rail {
    grid-template-columns: minmax(0, 180px) minmax(0, 1fr) minmax(0, 180px);
}

.page-rail {
    position: sticky;
    top: 5.45rem;
}

.page-shell {
    min-width: 0;
    padding-top: 2.4rem;
}

.ad-slot {
    width: 100%;
    display: flex;
    justify-content: center;
}

.ad-slot-placeholder,
.ad-slot ins {
    width: min(100%, var(--ad-width));
    min-height: var(--ad-height);
    border-radius: 18px;
}

.ad-slot-placeholder {
    display: grid;
    place-items: center;
    gap: 0.2rem;
    padding: 0.9rem;
    border: 1px dashed rgba(48, 76, 130, 0.34);
    background: repeating-linear-gradient(135deg, rgba(48, 76, 130, 0.08), rgba(48, 76, 130, 0.08) 18px, rgba(255, 255, 255, 0.75) 18px, rgba(255, 255, 255, 0.75) 36px);
    text-align: center;
}

body.theme-dark .ad-slot-placeholder {
    background: repeating-linear-gradient(135deg, rgba(86, 247, 207, 0.08), rgba(86, 247, 207, 0.08) 18px, rgba(255, 255, 255, 0.02) 18px, rgba(255, 255, 255, 0.02) 36px);
}

.ad-slot-label,
.ad-slot-size,
.ad-slot-copy {
    margin: 0;
}

.ad-slot-label {
    color: var(--brand-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ad-slot-size {
    color: var(--ink);
    font-weight: 800;
}

.ad-slot-copy {
    color: var(--muted);
    font-size: 0.78rem;
}

body.theme-dark .site-header {
    background: linear-gradient(135deg, rgba(9, 17, 30, 0.96), rgba(12, 23, 39, 0.94));
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.48rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.58rem;
}

.brand-mark {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-wordmark {
    display: inline-block;
    color: #f4f8ff;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    font-family: "Raleway", "Manrope", sans-serif;
    line-height: 1;
}

body.theme-dark .brand-wordmark {
    color: #d9fff1;
    font-family: "Tomorrow", "Space Grotesk", "Manrope", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 0.98rem;
}

.brand-preview-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top, rgba(106, 145, 209, 0.16), transparent 38%),
        linear-gradient(180deg, #f7faff 0%, #eef4fd 100%);
}

.brand-preview-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.brand-preview-card {
    display: grid;
    justify-items: center;
    gap: 1.5rem;
    padding: clamp(2.5rem, 4vw, 4rem);
    width: min(100%, 960px);
    border: 1px solid rgba(48, 76, 130, 0.12);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 24px 70px rgba(48, 76, 130, 0.12);
}

.brand-preview-stack {
    display: grid;
    justify-items: center;
    gap: 1.15rem;
}

.brand-preview-mark {
    width: min(52vw, 360px);
    min-width: 180px;
    height: auto;
    filter: drop-shadow(0 18px 36px rgba(41, 58, 94, 0.16));
}

.brand-preview-wordmark {
    margin: 0;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    font-family: "Raleway", "Manrope", sans-serif;
    font-weight: 800;
    color: var(--brand-dark);
}

.brand-preview-divider {
    width: min(100%, 720px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(48, 76, 130, 0.18), transparent);
}

.brand-preview-inline {
    display: inline-flex;
    align-items: center;
    gap: 1.1rem;
}

.brand-preview-inline-mark {
    display: block;
    width: clamp(56px, 8vw, 92px);
    height: clamp(56px, 8vw, 92px);
    object-fit: contain;
    flex-shrink: 0;
}

.brand-preview-inline-wordmark {
    display: inline-block;
    color: var(--brand-dark);
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    font-family: "Raleway", "Manrope", sans-serif;
    line-height: 1;
}

.brand-preview-toggle {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10;
}

body.theme-dark.brand-preview-page {
    background:
        radial-gradient(circle at top, rgba(86, 247, 207, 0.14), transparent 34%),
        linear-gradient(180deg, #07131d 0%, #0b1e2e 100%);
}

body.theme-dark .brand-preview-card {
    border-color: rgba(150, 220, 255, 0.12);
    background: rgba(7, 19, 29, 0.78);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

body.theme-dark .brand-preview-wordmark,
body.theme-dark .brand-preview-inline-wordmark {
    color: #d9fff1;
    font-family: "Tomorrow", "Space Grotesk", "Manrope", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

body.theme-dark .brand-preview-divider {
    background: linear-gradient(90deg, transparent, rgba(150, 220, 255, 0.18), transparent);
}

.nav-links {
    display: flex;
    gap: 0.72rem;
    font-size: 0.95rem;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
    min-width: 0;
}

.nav-links a,
.nav-dropdown > summary {
    color: #ecf6ff;
    opacity: 0.9;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: "Raleway", "Manrope", sans-serif;
}

body.theme-dark .nav-links a,
body.theme-dark .nav-dropdown > summary {
    font-family: "Tomorrow", "Manrope", sans-serif;
}

.nav-links a:hover,
.nav-dropdown > summary:hover,
.nav-dropdown[open] > summary {
    opacity: 1;
    color: var(--brand-dark);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown > summary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    list-style: none;
}

.nav-dropdown > summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown > summary::after {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0.9;
}

.nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    width: min(340px, calc(100vw - 2rem));
    padding: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    background: rgba(250, 253, 255, 0.98);
    box-shadow: 0 18px 40px rgba(14, 30, 52, 0.22);
    display: grid;
    gap: 0.75rem;
    transform: translateX(var(--dropdown-shift, 0px));
}

.nav-dropdown-panel,
.nav-dropdown-panel *,
.nav-dropdown-section,
.nav-dropdown-link,
.nav-dropdown-copy,
.nav-dropdown-link strong,
.nav-dropdown-link span {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

body.theme-dark .nav-dropdown-panel {
    border-color: rgba(122, 165, 206, 0.26);
    background: rgba(8, 20, 34, 0.98);
}

.nav-dropdown-panel-wide {
    width: min(900px, calc(100vw - 2rem));
}

.nav-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.85rem;
}

.nav-dropdown-section {
    display: grid;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(244, 248, 255, 0.8);
}

body.theme-dark .nav-dropdown-section {
    background: rgba(255, 255, 255, 0.03);
}

.nav-dropdown-eyebrow,
.nav-dropdown-copy {
    margin: 0;
}

.nav-dropdown-eyebrow {
    color: var(--brand-dark);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-dropdown-copy {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.nav-dropdown-links {
    display: grid;
    gap: 0.42rem;
}

.nav-dropdown-link {
    display: grid;
    gap: 0.16rem;
    padding: 0.62rem 0.7rem;
    border-radius: 12px;
    border: 1px solid rgba(122, 165, 206, 0.18);
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
}

body.theme-dark .nav-dropdown-link {
    background: rgba(255, 255, 255, 0.03);
}

.nav-dropdown-link strong,
.nav-dropdown-link span {
    margin: 0;
}

.nav-dropdown-link strong {
    color: var(--ink);
    font-size: 0.88rem;
}

.nav-dropdown-link span {
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
    font-family: "Manrope", sans-serif;
    font-weight: 600;
}

.nav-dropdown-footer {
    padding-top: 0.2rem;
    border-top: 1px solid var(--line);
}

.site-header .button.secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #18304d;
    border-color: rgba(255, 255, 255, 0.58);
}

body.theme-dark .site-header .button.secondary {
    background: rgba(12, 26, 43, 0.94);
    color: #e6f7ff;
    border-color: rgba(122, 165, 206, 0.34);
}

.site-header .button.secondary:hover {
    background: #ffffff;
}

body.theme-dark .site-header .button.secondary:hover {
    background: rgba(22, 43, 68, 0.98);
}

.auth-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.42rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
}

.auth-status-pill.active {
    background: rgba(110, 208, 150, 0.18);
    color: #d5ffdf;
}

.auth-status-pill.inactive {
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.88);
}

.user-menu-panel .auth-status-pill.inactive {
    background: rgba(48, 76, 130, 0.08);
    color: var(--muted);
}

body.theme-dark .user-menu-panel .auth-status-pill.inactive {
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.88);
}

.user-menu-panel .auth-status-pill.active {
    color: #2c7347;
}

body.theme-dark .user-menu-panel .auth-status-pill.active {
    color: #d5ffdf;
}

.auth-button {
    padding: 0.36rem 0.62rem;
    font-size: 0.72rem;
    white-space: nowrap;
}

.user-menu {
    position: relative;
    flex: 0 0 auto;
}

.user-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.32rem 0.58rem;
    min-width: 0;
    max-width: 220px;
}

.user-menu-toggle.is-signed-out {
    max-width: none;
    padding-inline: 0.78rem;
}

.user-menu-toggle::after {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0.8;
    flex: 0 0 auto;
}

.user-menu-toggle.is-signed-out::after {
    display: none;
}

.user-menu-title,
.user-menu-state {
    display: inline-block;
    line-height: 1;
}

.user-menu-label {
    display: inline-block;
    line-height: 1;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.user-menu-title {
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
}

.user-menu-state {
    font-size: 0.7rem;
    font-weight: 700;
    opacity: 0.94;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-panel {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    width: min(320px, calc(100vw - 2rem));
    max-height: min(70vh, 560px);
    overflow: auto;
    padding: 0.82rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    z-index: 12;
    display: grid;
    gap: 0.8rem;
}

body.theme-dark .user-menu-panel {
    background: rgba(8, 24, 39, 0.98);
}

.user-menu-section {
    display: grid;
    gap: 0.45rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--line);
}

.user-menu-section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.user-menu-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.user-menu-eyebrow,
.user-menu-copy,
.user-menu-value {
    margin: 0;
}

.user-menu-eyebrow {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.user-menu-copy {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.user-menu-value {
    color: var(--ink);
    font-size: 0.98rem;
    font-weight: 800;
}

.user-menu-actions {
    margin-top: 0.1rem;
}

.user-menu-links {
    gap: 0.55rem;
}

.user-menu-links .text-link {
    font-size: 0.9rem;
}

.hero,
.page-header,
.detail-hero {
    margin-bottom: 2rem;
}

.detail-copy {
    max-width: 60ch;
    color: var(--muted);
    line-height: 1.7;
}

.warning-copy {
    color: var(--accent-dark);
}

.eyebrow,
.card-label {
    margin: 0 0 0.75rem;
    color: #8fdcff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0 0 1rem;
    line-height: 1.04;
    color: var(--brand-dark);
    font-family: "Space Grotesk", "Raleway", "Manrope", sans-serif;
    letter-spacing: -0.02em;
}

body.theme-dark h1,
body.theme-dark h2 {
    color: #f4fbff;
    font-family: "Tomorrow", "Space Grotesk", "Manrope", sans-serif;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    max-width: 13ch;
}

h2 {
    font-size: 1.5rem;
}

.lede {
    max-width: 60ch;
    color: var(--muted);
    font-size: 1.07rem;
    line-height: 1.75;
}

.cta-row {
    margin-top: 1.5rem;
}

.button {
    display: inline-block;
    padding: 0.82rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button.primary {
    background: linear-gradient(120deg, var(--accent), #ffbf66);
    color: #172234;
    box-shadow: 0 12px 26px rgba(255, 159, 67, 0.3);
}

.button.primary:hover {
    background: linear-gradient(120deg, var(--accent-dark), #ffac50);
    transform: translateY(-1px);
}

.button.secondary {
    background: var(--brand-soft);
    color: var(--brand-dark);
    border-color: var(--line);
}

.button.secondary:hover {
    background: rgba(48, 76, 130, 0.18);
    transform: translateY(-1px);
}

body.theme-dark .button.secondary:hover {
    background: rgba(86, 247, 207, 0.22);
}

.theme-toggle-button {
    padding: 0.34rem 0.62rem;
    font-size: 0.7rem;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
}

.theme-toggle-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

body.theme-light .theme-toggle-button {
    color: #f6fbff;
}

body.theme-dark .theme-toggle-button {
    background: rgba(86, 247, 207, 0.14);
    border-color: rgba(86, 247, 207, 0.38);
    color: #cbffe9;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.card-grid.single {
    grid-template-columns: minmax(280px, 620px);
}

.card,
.featured-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.metric {
    margin: 1rem 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.meta-row {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.meta-pill {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 0.78rem;
    font-weight: 700;
}

.meta-pill.accent {
    background: rgba(255, 159, 67, 0.2);
    color: #8f4d00;
}

body.theme-dark .meta-pill.accent {
    color: #ffd5a6;
}

.muted {
    color: var(--muted);
}

.refresh-indicator {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 0.78rem;
    font-weight: 700;
    animation: refresh-pulse 1.6s ease-in-out infinite;
    vertical-align: middle;
}

.refresh-indicator.muted {
    background: rgba(95, 107, 122, 0.12);
    color: var(--muted);
    animation: none;
}

@keyframes refresh-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.45; }
}

.text-link {
    color: var(--brand);
    font-weight: 700;
}

.muted-link {
    color: var(--muted);
}

.action-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.action-stack {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.featured-card {
    background:
        radial-gradient(circle at top right, rgba(106, 145, 209, 0.2), transparent 42%),
        linear-gradient(180deg, rgba(244, 248, 255, 0.92), rgba(234, 241, 252, 0.9));
}

body.theme-dark .featured-card {
    background:
        radial-gradient(circle at top right, rgba(86, 247, 207, 0.18), transparent 42%),
        linear-gradient(180deg, rgba(13, 36, 58, 0.9), rgba(8, 24, 40, 0.9));
}

.home-hero h1,
.directory-hero h1,
.legal-hero h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.7rem);
}

.home-hero h1 {
    max-width: none;
}

.home-hero {
    max-width: 42rem;
    margin-bottom: 1.1rem;
}

.home-hero .lede {
    max-width: 52ch;
    font-size: 0.98rem;
    line-height: 1.62;
}

.home-hero .cta-row {
    margin-top: 0.6rem;
}

.directory-hero h1,
.legal-hero h1 {
    max-width: 16ch;
}

.featured-carousel {
    display: grid;
    gap: 0.65rem;
}

.featured-carousel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.featured-carousel-nav,
.featured-carousel-dots,
.directory-featured-row {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.featured-carousel-viewport {
    position: relative;
}

.featured-slide {
    display: grid;
    grid-template-columns: minmax(180px, 0.78fr) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: stretch;
}

.featured-slide-media {
    min-height: 190px;
}

.featured-slide-image,
.featured-slide-placeholder {
    width: 100%;
    height: 100%;
    min-height: 190px;
    border-radius: 18px;
    border: 1px solid var(--line);
}

.featured-slide-image {
    display: block;
    object-fit: cover;
}

.featured-slide-placeholder {
    display: grid;
    place-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(48, 76, 130, 0.94), rgba(36, 59, 102, 0.94));
    color: #ffffff;
    text-align: center;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.featured-slide-copy {
    display: grid;
    gap: 0.45rem;
    align-content: center;
}

.featured-slide-copy > * {
    margin: 0;
}

.featured-slide-copy h3 {
    margin: 0;
    color: var(--brand-dark);
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    line-height: 1.08;
    font-family: "Space Grotesk", "Raleway", "Manrope", sans-serif;
}

body.theme-dark .featured-slide-copy h3 {
    color: #f4fbff;
    font-family: "Tomorrow", "Space Grotesk", "Manrope", sans-serif;
}

.featured-drop-date {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.featured-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: rgba(48, 76, 130, 0.22);
    cursor: pointer;
}

.featured-dot.is-active {
    background: var(--accent);
}

.directory-featured-chip {
    display: grid;
    gap: 0.18rem;
    min-width: 180px;
    padding: 0.78rem 0.92rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
}

body.theme-dark .directory-featured-chip {
    background: rgba(255, 255, 255, 0.04);
}

.directory-featured-chip strong {
    color: var(--ink);
}

.directory-featured-chip span {
    color: var(--muted);
    font-size: 0.82rem;
}

.site-footer {
    margin-top: 3rem;
    padding: 2rem 0 2.4rem;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(240, 245, 253, 0.86), rgba(227, 236, 248, 0.92));
}

body.theme-dark .site-footer {
    background: linear-gradient(180deg, rgba(6, 18, 30, 0.92), rgba(8, 19, 32, 0.98));
}

.footer-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.95fr);
    gap: 1.4rem;
    align-items: start;
}

.footer-intro {
    display: grid;
    gap: 0.55rem;
}

.footer-intro > * {
    margin: 0;
}

.footer-intro h2 {
    max-width: 14ch;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.footer-column {
    display: grid;
    gap: 0.42rem;
}

.footer-heading {
    margin: 0 0 0.2rem;
    color: var(--brand-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-column a {
    color: var(--muted);
    font-weight: 700;
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    padding: 0.45rem 0.72rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
}

body.theme-dark .footer-social-link {
    background: rgba(255, 255, 255, 0.04);
}

.social-link-icon {
    display: inline-grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    color: #ffffff;
}

.footer-social-link.is-patreon .social-link-icon {
    background: #f96854;
}

.footer-social-link.is-x .social-link-icon {
    background: #111111;
}

.footer-social-link.is-discord .social-link-icon {
    background: #5865f2;
}

.button i {
    margin-right: 0.42rem;
}

.legal-stack {
    gap: 1rem;
}

.timeline-hero h1 {
    max-width: 11ch;
}

.maintenance-page-shell {
    min-height: 100vh;
}

.maintenance-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.maintenance-card {
    width: min(720px, 100%);
    display: grid;
    gap: 0.8rem;
    justify-items: center;
    padding: 2.2rem;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.94));
    box-shadow: var(--shadow);
    text-align: center;
}

body.theme-dark .maintenance-card {
    background: linear-gradient(180deg, rgba(15, 31, 49, 0.98), rgba(8, 21, 35, 0.96));
}

.maintenance-mark {
    width: 82px;
    height: 82px;
    object-fit: contain;
}

.site-config-form {
    display: grid;
    gap: 0.8rem;
}

.site-config-label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-config-form textarea {
    width: 100%;
    min-height: 480px;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(247, 250, 255, 0.94);
    color: var(--ink);
    font: 500 0.9rem/1.55 "Consolas", "SFMono-Regular", monospace;
    resize: vertical;
}

body.theme-dark .site-config-form textarea {
    background: rgba(9, 24, 39, 0.94);
    color: #f4fbff;
}

.timeline-controls-card,
.timeline-calendar-card,
.timeline-year-card,
.timeline-jump-card {
    display: grid;
    gap: 1rem;
}

.timeline-controls-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.timeline-controls-actions {
    justify-content: flex-end;
}

.timeline-select-field {
    display: grid;
    gap: 0.4rem;
    min-width: 240px;
}

.timeline-select-field span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.timeline-select-field select {
    min-height: 44px;
    padding: 0.72rem 0.88rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    font: inherit;
}

body.theme-dark .timeline-select-field select {
    background: rgba(8, 24, 39, 0.94);
    color: #f4fbff;
}

.timeline-calendar-surface {
    display: grid;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(237, 243, 252, 0.94));
}

body.theme-dark .timeline-calendar-surface {
    background: linear-gradient(180deg, rgba(10, 25, 40, 0.98), rgba(7, 18, 30, 0.96));
}

.timeline-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: linear-gradient(135deg, rgba(34, 86, 163, 0.96), rgba(64, 122, 209, 0.88));
    color: #ffffff;
}

.timeline-calendar-header img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    padding: 0.35rem;
}

.timeline-calendar-header h3,
.timeline-calendar-header p {
    margin: 0;
}

.timeline-calendar-eyebrow {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.86;
}

.timeline-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.timeline-calendar-dayname {
    padding: 0.7rem 0.45rem;
    border: 1px solid var(--line);
    background: rgba(236, 242, 250, 0.92);
    color: var(--brand-dark);
    text-align: center;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.theme-dark .timeline-calendar-dayname {
    background: rgba(255, 255, 255, 0.04);
}

.timeline-calendar-day {
    min-height: 150px;
    padding: 0.45rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.76);
}

body.theme-dark .timeline-calendar-day {
    background: rgba(255, 255, 255, 0.02);
}

.timeline-calendar-day.is-empty {
    background: rgba(233, 239, 248, 0.5);
}

body.theme-dark .timeline-calendar-day.is-empty {
    background: rgba(255, 255, 255, 0.01);
}

.timeline-calendar-date {
    margin-bottom: 0.35rem;
    color: var(--ink);
    font-size: 0.84rem;
    font-weight: 800;
}

.timeline-calendar-events {
    display: grid;
    gap: 0.28rem;
}

.timeline-calendar-event {
    display: block;
    padding: 0.32rem 0.38rem;
    border-radius: 9px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    background: #3d6fb9;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-calendar-event.is-sale-begins {
    background: #2b8a58;
}

.timeline-calendar-event.is-sale-ends {
    background: #5a6472;
}

.timeline-calendar-event.is-sold-out {
    background: #d6a519;
    color: #1d1a10;
}

.timeline-list-grid {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.timeline-jump-card {
    position: sticky;
    top: 5.4rem;
}

.timeline-jump-links {
    display: grid;
    gap: 0.45rem;
    max-height: 70vh;
    overflow: auto;
}

.timeline-jump-links a {
    color: var(--muted);
    font-weight: 700;
}

.timeline-year-stack,
.timeline-month-stack,
.timeline-events-list,
.timeline-day-events {
    display: grid;
    gap: 0.9rem;
}

.timeline-year-label {
    margin: 0;
    color: var(--brand-dark);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.timeline-month-block {
    display: grid;
    gap: 0.85rem;
}

.timeline-month-block h2 {
    margin: 0;
}

.timeline-day-row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
}

.timeline-day-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(48, 76, 130, 0.08);
    color: var(--brand-dark);
    font-size: 0.82rem;
    font-weight: 800;
}

.timeline-event-item {
    padding: 0.88rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

body.theme-dark .timeline-event-item {
    background: rgba(255, 255, 255, 0.03);
}

.timeline-event-item p,
.timeline-event-item a {
    margin: 0;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.55;
}

.breadcrumb-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.tools-feedback {
    margin-bottom: 1rem;
}

.tools-feedback.success {
    border-color: rgba(84, 198, 139, 0.5);
    background: rgba(84, 198, 139, 0.14);
}

.tools-feedback.error {
    border-color: rgba(255, 127, 42, 0.5);
    background: rgba(255, 127, 42, 0.14);
}

.internal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
}

.internal-head {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-start;
}

.badge-stack {
    justify-content: flex-end;
}

.internal-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.internal-info-list {
    margin: 0;
}

.checkbox-row {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    color: var(--muted);
    font-weight: 600;
}

.checkbox-row input {
    accent-color: var(--accent);
}

.internal-refresh-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.page-header {
    display: grid;
    gap: 0.7rem;
}

.page-header > * {
    margin: 0;
}

.page-header .lede {
    margin: 0;
    max-width: 68ch;
}

.page-header .detail-copy {
    margin: 0;
}

.page-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-title {
    margin: 0;
    max-width: none;
}

.internal-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
}

.internal-summary-card,
.info-card,
.hero-card {
    padding: 1.1rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.92));
    box-shadow: var(--shadow);
}

body.theme-dark .internal-summary-card,
body.theme-dark .info-card,
body.theme-dark .hero-card {
    background: linear-gradient(180deg, rgba(14, 32, 50, 0.96), rgba(9, 24, 39, 0.94));
}

.internal-summary-card {
    display: grid;
    gap: 0.35rem;
}

.internal-summary-label,
.internal-summary-detail {
    margin: 0;
    color: var(--muted);
}

.internal-summary-label {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.internal-summary-value {
    margin: 0;
    color: var(--brand-dark);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}

.internal-summary-detail {
    font-size: 0.84rem;
    line-height: 1.5;
}

.internal-ops-card {
    display: grid;
    gap: 1rem;
}

.internal-ops-card .section-head {
    margin-bottom: 0;
}

.internal-ops-actions {
    justify-content: flex-end;
}

.table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(248, 251, 255, 0.84);
}

body.theme-dark .table-wrap {
    background: rgba(9, 24, 39, 0.9);
}

.table-grid {
    width: 100%;
    min-width: 780px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.92rem;
}

.table-grid th,
.table-grid td {
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.table-grid thead th {
    background: var(--panel-strong);
    color: var(--brand-dark);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

body.theme-dark .table-grid thead th {
    background: rgba(16, 38, 60, 0.98);
}

.table-grid tbody tr:hover {
    background: rgba(48, 76, 130, 0.06);
}

body.theme-dark .table-grid tbody tr:hover {
    background: rgba(86, 247, 207, 0.08);
}

.table-grid tbody tr:last-child td {
    border-bottom: 0;
}

.table-grid td {
    color: var(--ink);
    line-height: 1.55;
}

.table-grid td code {
    display: inline-block;
    padding: 0.12rem 0.38rem;
    border-radius: 999px;
    background: rgba(48, 76, 130, 0.08);
    color: var(--muted);
    font-size: 0.76rem;
}

.table-grid td .button {
    white-space: nowrap;
}

.compact-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.85fr);
    gap: 1rem;
    align-items: start;
}

.section-stack {
    display: grid;
    gap: 1rem;
}

.redeem-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.info-card {
    display: grid;
    gap: 0.85rem;
}

.info-card h2 {
    margin: 0;
}

.body-copy {
    margin: 0;
    color: var(--ink);
    line-height: 1.6;
}

.support-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
}

.support-link-card {
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.62);
    color: inherit;
}

.support-link-card span {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

body.theme-dark .support-link-card {
    background: rgba(255, 255, 255, 0.04);
}

.stat-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.stat-card {
    display: grid;
    gap: 0.28rem;
    padding: 0.95rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.62);
}

body.theme-dark .stat-card {
    background: rgba(255, 255, 255, 0.04);
}

.stat-card strong {
    color: var(--brand-dark);
    font-size: 1.42rem;
    line-height: 1;
}

@media (max-width: 920px) {
    .nav-links {
        gap: 0.55rem;
    }

    .nav-links a {
        font-size: 0.68rem;
    }

    .auth-name {
        max-width: 92px;
    }
}

.breadcrumb-row a {
    color: var(--brand);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.user-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.9fr);
    gap: 1.25rem;
    align-items: stretch;
}

.detail-hero-compact {
    grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.65fr);
    gap: 1rem;
    align-items: start;
}

.detail-hero-compact .card {
    padding: 1.25rem;
}

.detail-hero-compact h1 {
    max-width: none;
    font-size: clamp(1.95rem, 3.4vw, 3rem);
}

.detail-hero-compact .hero-preview,
.detail-hero-compact .media-placeholder {
    min-height: 180px;
    max-height: 220px;
}

.detail-hero-compact .metric {
    margin: 0.7rem 0;
    font-size: 0.98rem;
}

.hero-panel {
    min-height: 100%;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.compact-row {
    margin-bottom: 0;
}

.badge {
    display: inline-block;
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    background: rgba(48, 76, 130, 0.12);
    color: var(--brand-dark);
    font-size: 0.82rem;
    font-weight: 700;
}

body.theme-dark .badge {
    background: rgba(79, 195, 247, 0.12);
    color: #d6f4ff;
}

.badge.accent {
    background: rgba(255, 159, 67, 0.18);
    color: #8f4d00;
}

body.theme-dark .badge.accent {
    color: #ffd3a0;
}

.kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.kpi-card {
    padding: 1.1rem 1.2rem;
}

.kpi-card strong {
    display: block;
    margin-top: 0.35rem;
    color: var(--brand-dark);
    font-size: 1.15rem;
}

.content-stack {
    display: grid;
    gap: 1.25rem;
}

.mockup-switcher-card {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.mockup-switcher-links {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.mockup-switcher-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--brand-dark);
    font-weight: 700;
}

.mockup-switcher-link.is-active {
    background: var(--brand-dark);
    color: #f6fbff;
}

.mockup-switcher-link.subtle {
    color: var(--muted);
}

body.theme-dark .mockup-switcher-link {
    background: rgba(255, 255, 255, 0.04);
    color: #d7efff;
}

body.theme-dark .mockup-switcher-link.is-active {
    background: rgba(86, 247, 207, 0.18);
    color: #eafff8;
}

.mockup-compact-layout,
.mockup-hybrid-hero {
    display: grid;
    grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.mockup-column-stack {
    display: grid;
    gap: 1rem;
}

.mockup-media-card {
    padding: 1rem;
}

.mockup-media-card .hero-preview {
    min-height: 240px;
    max-height: none;
}

.mockup-panel {
    display: grid;
    gap: 0.9rem;
}

.mockup-panel-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.mockup-stats-grid {
    gap: 0.75rem;
}

.compact-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.mockup-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.mockup-owner-list {
    display: grid;
    gap: 0.75rem;
}

.mockup-owner-card {
    display: grid;
    gap: 0.3rem;
    padding: 0.9rem 1rem;
}

.mockup-owner-card strong {
    color: var(--brand-dark);
    font-size: 1.2rem;
}

.mockup-dense-shell {
    display: grid;
    gap: 1rem;
}

.mockup-dense-head {
    display: grid;
    gap: 0.9rem;
}

.mockup-data-chip-row {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.mockup-data-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    background: rgba(48, 76, 130, 0.12);
    color: var(--brand-dark);
    font-size: 0.82rem;
    font-weight: 700;
}

.mockup-dense-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.85fr);
    gap: 1rem;
}

.mockup-dense-section {
    display: grid;
    gap: 0.9rem;
}

.mockup-dense-section h3 {
    margin: 0;
    color: var(--brand-dark);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

body.theme-dark .mockup-owner-card strong,
body.theme-dark .mockup-dense-section h3,
body.theme-dark .mockup-data-chip {
    color: #eafff8;
}

body.theme-dark .mockup-data-chip {
    background: rgba(86, 247, 207, 0.12);
}

.user-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.highlight-card {
    background:
        radial-gradient(circle at top left, rgba(106, 145, 209, 0.15), transparent 38%),
        linear-gradient(180deg, rgba(247, 250, 255, 0.95), rgba(238, 244, 253, 0.92));
}

body.theme-dark .highlight-card {
    background:
        radial-gradient(circle at top left, rgba(255, 159, 67, 0.14), transparent 38%),
        linear-gradient(180deg, rgba(16, 39, 63, 0.93), rgba(11, 29, 46, 0.9));
}

.section-head {
    margin-bottom: 1rem;
}

.section-head .eyebrow {
    margin-bottom: 0.5rem;
}

.short {
    max-width: none;
}

.info-list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.rarity-focus {
    padding: 1.5rem;
}

.rarity-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.rarity-item {
    padding: 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(248, 251, 255, 0.94);
}

body.theme-dark .rarity-item {
    background: rgba(8, 33, 53, 0.9);
}

.rarity-item h3 {
    margin: 0 0 0.75rem;
    color: var(--brand-dark);
    line-height: 1.25;
}

.dev-toggle-row {
    justify-content: space-between;
}

.dev-toggle-row h1 {
    margin-bottom: 0;
}

.json-panel {
    margin-top: 1.25rem;
}

.code-block {
    margin: 0;
    padding: 1rem;
    overflow-x: auto;
    border-radius: var(--radius-md);
    background: #1f2a44;
    color: #eef3fb;
    font-size: 0.88rem;
    line-height: 1.6;
}

.top-grid {
    margin-bottom: 1.25rem;
}

.definition-list {
    display: grid;
    gap: 0.9rem;
    margin: 0;
}

.definition-list div {
    display: grid;
    gap: 0.2rem;
}

.definition-list dt {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.definition-list dd {
    margin: 0;
    line-height: 1.5;
}

.definition-list.compact {
    gap: 0.7rem;
}

.hero-preview,
.media-placeholder {
    width: 100%;
    min-height: 240px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
}

.hero-preview {
    object-fit: cover;
}

.redeem-preview-image {
    max-width: 320px;
    min-height: 0;
    max-height: 320px;
    margin: 0 auto;
    display: block;
}

.media-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(48, 76, 130, 0.94), rgba(36, 59, 102, 0.94));
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.video-mode {
    background: linear-gradient(135deg, rgba(48, 76, 130, 0.94), rgba(249, 104, 84, 0.92));
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem;
}

.stat-box {
    padding: 0.95rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(48, 76, 130, 0.08);
}

body.theme-dark .stat-box {
    background: rgba(79, 195, 247, 0.09);
}

.stat-box strong {
    display: block;
    margin-top: 0.25rem;
    font-size: 1.15rem;
    color: var(--brand-dark);
}

.stat-label {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rarity-scroll {
    overflow-x: auto;
}

.rarity-table-v2 {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
}

.rarity-table-v2 th,
.rarity-table-v2 td {
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.rarity-table-v2 th {
    color: var(--brand-dark);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.table-primary-cell {
    display: grid;
    gap: 0.2rem;
}

.table-primary-cell strong {
    color: var(--ink);
}

.table-primary-cell span {
    color: var(--muted);
    font-size: 0.8rem;
}

.bullet-list {
    margin: 0;
    padding-left: 1.2rem;
    line-height: 1.7;
}

.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.asset-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.asset-preview {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(232, 238, 248, 0.45);
}

.asset-meta-list {
    gap: 0.7rem;
}

.asset-action-row {
    margin-top: auto;
}

.value-break {
    overflow-wrap: anywhere;
}

.edition-legend {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.muted-badge {
    background: rgba(95, 107, 122, 0.14);
    color: var(--muted);
}

.group-browser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}

.group-browser-card {
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(248, 251, 255, 0.95);
}

body.theme-dark .group-browser-card {
    background: rgba(10, 30, 48, 0.9);
}

.group-browser-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.group-browser-head h3 {
    margin: 0;
    color: var(--brand-dark);
}

.compact-stats {
    margin-bottom: 0.9rem;
}

.edition-panel {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.edition-controls {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.compact-actions {
    gap: 0.6rem;
}

.small-button {
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
}

.edition-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 0.55rem;
}

.edition-slot {
    display: grid;
    gap: 0.2rem;
    padding: 0.65rem 0.5rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    text-align: center;
    min-height: 76px;
    align-content: center;
}

.edition-slot strong {
    color: var(--brand-dark);
    font-size: 0.95rem;
}

.edition-slot span {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.edition-slot.is-active {
    background: rgba(58, 176, 119, 0.2);
    border-color: rgba(84, 198, 139, 0.5);
}

.edition-slot.is-burned {
    background: rgba(255, 127, 42, 0.2);
    border-color: rgba(255, 168, 94, 0.5);
}

.edition-slot.is-missing {
    background: rgba(95, 107, 122, 0.08);
    border-style: dashed;
}

.edition-slot:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(48, 76, 130, 0.08);
}

.control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.control-grid label {
    display: grid;
    gap: 0.45rem;
}

.control-grid select {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
}

body.theme-dark .control-grid select {
    background: rgba(11, 32, 52, 0.95);
}

.control-actions {
    align-self: end;
}

.pagination-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.top-pagination {
    margin-top: 1rem;
}

.pagination-footer {
    margin-top: 1.25rem;
}

.owner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.owner-card {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(248, 251, 255, 0.95);
}

.top-owners-compact {
    padding-top: 1.15rem;
}

.owners-compact-table {
    min-width: 640px;
}

.edition-viewer-table {
    min-width: 900px;
}

.collection-edition-grid {
    grid-template-columns: 1fr;
}

body.theme-dark .owner-card {
    background: rgba(9, 31, 50, 0.9);
}

.reveal-up {
    opacity: 0;
    transform: translateY(20px);
    animation: reveal-up 520ms ease forwards;
}

.reveal-up.delay-1 { animation-delay: 90ms; }
.reveal-up.delay-2 { animation-delay: 180ms; }
.reveal-up.delay-3 { animation-delay: 270ms; }

@keyframes reveal-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.owner-card h3 {
    margin: 0 0 0.75rem;
    color: var(--brand-dark);
}

.wallet-nav-panel {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.wallet-nav-address,
.wallet-nav-connect,
.wallet-nav-disconnect {
    white-space: nowrap;
    font-size: 0.72rem;
    padding: 0.36rem 0.62rem;
}

.wallet-nav-error {
    display: block;
    margin: 0;
    color: #c5532d;
    font-size: 0.8rem;
}

.wallet-page {
    display: grid;
    gap: 1rem;
}

.wallet-address-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0;
    color: var(--muted);
}

.wallet-address-code {
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.wallet-assets-section {
    display: grid;
    gap: 1rem;
}

.wallet-summary-strip {
    display: grid;
    gap: 0.9rem;
}

.wallet-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.8rem;
}

.wallet-summary-card,
.wallet-assets-toolbar,
.wallet-asset-card,
.wallet-connect-prompt {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow);
}

body.theme-dark .wallet-summary-card,
body.theme-dark .wallet-assets-toolbar,
body.theme-dark .wallet-asset-card,
body.theme-dark .wallet-connect-prompt {
    background: rgba(10, 28, 46, 0.92);
}

.wallet-summary-card {
    padding: 0.95rem 1rem;
}

.wallet-summary-label,
.wallet-summary-detail,
.wallet-rarity-heading,
.wallet-summary-muted,
.wallet-asset-collection,
.wallet-asset-description,
.wallet-asset-count,
.wallet-loading-msg,
.wallet-empty-msg,
.wallet-error-msg,
.wallet-error-message,
.wallet-no-wallet-hint {
    margin: 0;
    color: var(--muted);
}

.wallet-summary-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Collection thumbnail grid ─────────────────────────────── */
.collection-thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.collection-thumb-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--panel);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.collection-thumb-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.collection-thumb-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--accent);
}

.collection-thumb-media {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(48, 76, 130, 0.18), rgba(36, 59, 102, 0.22));
}

.collection-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.collection-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: rgba(48, 76, 130, 0.55);
    background: linear-gradient(135deg, rgba(48, 76, 130, 0.1), rgba(86, 247, 207, 0.08));
}

body.theme-dark .collection-thumb-placeholder {
    color: rgba(86, 247, 207, 0.45);
    background: linear-gradient(135deg, rgba(48, 76, 130, 0.28), rgba(86, 247, 207, 0.06));
}

.collection-thumb-body {
    padding: 0.65rem 0.75rem 0.75rem;
    display: grid;
    gap: 0.15rem;
}

.collection-thumb-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.collection-thumb-brand {
    font-size: 0.74rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 560px) {
    .collection-thumb-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.75rem;
    }
}

.wallet-summary-value {
    margin: 0.3rem 0 0.15rem;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-dark);
}

.wallet-summary-detail {
    font-size: 0.82rem;
}

.wallet-rarity-summary {
    display: grid;
    gap: 0.55rem;
}

.wallet-rarity-heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.wallet-rarity-chip-row,
.wallet-asset-meta-row,
.wallet-asset-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.wallet-rarity-chip,
.wallet-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 0.75rem;
    font-weight: 700;
}

.wallet-meta-pill-accent {
    background: rgba(247, 140, 54, 0.14);
    color: var(--accent-dark);
}

.wallet-assets-toolbar {
    display: grid;
    gap: 0.8rem;
    padding: 0.95rem 1rem;
}

.wallet-filter-row {
    display: grid;
    gap: 0.65rem;
}

.wallet-filter-row-primary {
    grid-template-columns: minmax(280px, 2.2fr) minmax(160px, 1fr) minmax(180px, 1.2fr);
}

.wallet-filter-row-secondary {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    align-items: center;
}

.wallet-search-input,
.wallet-select-input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    padding: 0.82rem 0.9rem;
    font: inherit;
}

body.theme-dark .wallet-search-input,
body.theme-dark .wallet-select-input {
    background: rgba(11, 32, 52, 0.95);
    color: var(--ink);
}

.wallet-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 46px;
    padding: 0 0.2rem;
    color: var(--ink);
    font-weight: 700;
}

.wallet-asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 0.85rem;
}

.wallet-asset-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0.9rem;
    padding: 0.8rem;
    align-items: start;
}

.wallet-asset-img-wrap {
    width: 96px;
    height: 96px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(48, 76, 130, 0.08);
    display: grid;
    place-items: center;
}

.wallet-asset-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wallet-asset-img-placeholder {
    padding: 0.6rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.35;
}

.wallet-asset-info {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.wallet-asset-topline {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.75rem;
}

.wallet-asset-name {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--ink);
}

.wallet-asset-mint {
    white-space: nowrap;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: rgba(48, 76, 130, 0.08);
    color: var(--muted);
    font-size: 0.73rem;
}

.wallet-asset-collection {
    font-size: 0.82rem;
}

.wallet-asset-collection-empty {
    opacity: 0.7;
}

.wallet-dc3-block {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.wallet-dc3-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: rgba(48, 76, 130, 0.12);
    color: var(--brand-dark);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wallet-dc3-badge.is-muted {
    color: var(--muted);
    background: rgba(95, 107, 122, 0.12);
}

.wallet-dc3-link,
.wallet-inline-link {
    color: var(--brand-dark);
    font-size: 0.82rem;
    font-weight: 700;
}

.wallet-asset-description {
    font-size: 0.82rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wallet-pagination,
.wallet-disconnect-row {
    display: flex;
    justify-content: center;
}

.wallet-connect-prompt {
    padding: 1.2rem;
    display: grid;
    gap: 0.75rem;
}

.wallet-connect-lead {
    margin: 0;
    color: var(--ink);
    font-weight: 600;
}

.wallet-error-message,
.wallet-error-msg {
    color: #c5532d;
}

@media (max-width: 720px) {
    .nav-shell {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.55rem;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
    }

    .brand-wordmark {
        font-size: 0.98rem;
    }

    .brand-preview-card {
        border-radius: 24px;
    }

    .brand-preview-wordmark {
        width: min(70vw, 300px);
    }

    .brand-preview-inline {
        gap: 0.75rem;
    }

    .brand-preview-inline-wordmark {
        font-size: clamp(1.5rem, 9vw, 2.6rem);
    }

    .brand-preview-copy h1 {
        font-size: clamp(2.4rem, 14vw, 4rem);
    }

    .header-actions,
    .nav-links,
    .wallet-nav-panel,
    .user-menu {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .user-menu-panel {
        right: 0;
        left: 0;
        width: min(100%, 320px);
    }

    .user-menu-toggle {
        width: 100%;
        max-width: none;
        justify-content: center;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown > summary {
        width: 100%;
        justify-content: space-between;
    }

    .nav-dropdown-panel,
    .nav-dropdown-panel-wide {
        position: static;
        width: 100%;
        min-width: 0;
        margin-top: 0.45rem;
    }

    .nav-dropdown-grid,
    .timeline-list-grid {
        grid-template-columns: 1fr;
    }

    .page-layout-shell {
        grid-template-columns: 1fr;
    }

    .page-rail {
        display: none;
    }

    .page-shell {
        padding-top: 2rem;
    }

    .featured-slide,
    .footer-shell,
    .footer-columns {
        grid-template-columns: 1fr;
    }

    .timeline-controls-row,
    .timeline-calendar-header,
    .timeline-day-row {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .timeline-select-field {
        min-width: 0;
    }

    .timeline-jump-card {
        position: static;
    }

    .timeline-calendar-day {
        min-height: 100px;
    }

    .timeline-calendar-event {
        font-size: 0.62rem;
    }

    .user-hero,
    .kpi-strip {
        grid-template-columns: 1fr;
    }

    .pagination-row {
        align-items: flex-start;
    }

    .compact-hero,
    .stat-card-grid {
        grid-template-columns: 1fr;
    }

    .redeem-overview-grid {
        grid-template-columns: 1fr;
    }

    .mockup-compact-layout,
    .mockup-hybrid-hero,
    .mockup-dense-grid {
        grid-template-columns: 1fr;
    }

    .wallet-filter-row-primary,
    .wallet-filter-row-secondary,
    .wallet-asset-grid {
        grid-template-columns: 1fr;
    }

    .wallet-asset-card {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .wallet-asset-img-wrap {
        width: 80px;
        height: 80px;
    }
}

/* Terminal mode: denser, data-first layout for overview/internal surfaces. */
body.page-mode-terminal .page-shell {
    padding-top: 2.2rem;
}

body.page-mode-terminal h1 {
    font-size: clamp(1.9rem, 3.8vw, 2.8rem);
    max-width: none;
}

body.page-mode-terminal h2 {
    font-size: 1.22rem;
}

body.page-mode-terminal .lede,
body.page-mode-terminal .detail-copy {
    font-size: 0.96rem;
    line-height: 1.65;
}

body.page-mode-terminal .card,
body.page-mode-terminal .featured-card {
    border-radius: 14px;
    padding: 1.1rem;
    box-shadow: 0 12px 28px rgba(1, 11, 21, 0.36);
}

body.page-mode-terminal .content-stack {
    gap: 0.95rem;
}

body.page-mode-terminal .internal-grid {
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

body.page-mode-terminal .internal-summary-grid {
    gap: 0.75rem;
}

body.page-mode-terminal .internal-summary-card,
body.page-mode-terminal .info-card,
body.page-mode-terminal .hero-card {
    padding: 0.95rem;
    border-radius: 12px;
}

body.page-mode-terminal .internal-summary-value {
    font-size: 1.35rem;
}

body.page-mode-terminal .meta-pill,
body.page-mode-terminal .refresh-indicator {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.page-mode-terminal .button {
    padding: 0.58rem 0.9rem;
    font-size: 0.82rem;
}

body.page-mode-terminal .definition-list dt {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
}

body.page-mode-terminal .definition-list dd {
    font-size: 0.9rem;
}

body.page-mode-terminal .overview-controls {
    gap: 0.75rem;
    padding: 0.72rem 0.95rem;
}

body.page-mode-terminal .overview-search {
    min-width: 200px;
    padding: 0.34rem 0.62rem;
    border-radius: 8px;
    font-size: 0.84rem;
}

body.page-mode-terminal .overview-count {
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.page-mode-terminal .overview-table {
    font-size: 0.82rem;
}

body.page-mode-terminal .overview-table thead th {
    padding: 0.48rem 0.62rem;
    font-size: 0.69rem;
    letter-spacing: 0.1em;
}

body.page-mode-terminal .overview-table tbody td {
    padding: 0.5rem 0.62rem;
}

body.page-mode-terminal .rarity-pill {
    padding: 0.12rem 0.42rem;
    border-radius: 8px;
    font-size: 0.72rem;
}

body.page-mode-terminal .rarity-count {
    font-size: 0.7rem;
}

body.page-mode-terminal .section-head {
    margin-bottom: 0.7rem;
}

body.page-mode-terminal .table-wrap {
    border-radius: 12px;
}

body.page-mode-terminal .table-grid {
    min-width: 720px;
    font-size: 0.82rem;
}

body.page-mode-terminal .table-grid th,
body.page-mode-terminal .table-grid td {
    padding: 0.56rem 0.62rem;
}

body.page-mode-terminal .table-grid thead th {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
}

body.page-mode-terminal .eyebrow,
body.page-mode-terminal .card-label {
    font-size: 0.72rem;
    margin-bottom: 0.42rem;
}
