﻿:root {
    --ink: #0a2463;
    --muted: #5d6f88;
    --line: rgba(10, 36, 99, .13);
    --paper: #ffffff;
    --soft: #f5f8fc;
    --night: #070912;
    --navy: #0a2463;
    --teal: #00c9b1;
    --gold: #ffd700;
    --cyan: #45e6ff;
    --blue: #1473e6;
    --green: #16a66a;
    --rose: #e43f5f;
    --amber: #ff8a24;
    --violet: #7a62ff;
    --shadow: 0 18px 46px rgba(10, 36, 99, .12);
    --pixel-shadow: 7px 7px 0 rgba(10, 36, 99, .08);
    --page-gutter: clamp(16px, 3vw, 32px);
    --panel-pad: 18px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    background-color: #f5f5f5;
    background-image:
        linear-gradient(rgba(10, 36, 99, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 36, 99, .035) 1px, transparent 1px),
        linear-gradient(180deg, #f5f5f5, #edf6f8 62%, #f8fafc);
    background-size: 38px 38px, 38px 38px, auto;
    color: var(--ink);
    font-family: Inter, Arial, Helvetica, sans-serif;
    letter-spacing: 0;
}

body[data-page="submit"],
body[data-page="admin"],
body[data-page="map-decoder"],
body[data-page="featured"],
body[data-page="map"] {
    background-color: var(--night);
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px),
        linear-gradient(180deg, #070912, #0f1730 56%, #080a12);
    background-size: 42px 42px, 42px 42px, auto;
    color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
    letter-spacing: 0;
}

button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(69, 230, 255, .18);
    background: rgba(7, 9, 18, .88);
    color: #fff;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 28px rgba(7, 9, 18, .22);
}

.site-header.tight {
    position: static;
}

.nav-wrap {
    width: min(1780px, calc(100% - (var(--page-gutter) * 2)));
    min-height: 58px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: inline-block;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 8px;
    background: url("../logo.png") center / contain no-repeat;
    color: transparent;
    font-size: 0;
    line-height: 0;
    text-indent: -9999px;
    filter: drop-shadow(0 0 10px rgba(69, 230, 255, .34));
}

.brand-mark.large {
    width: 74px;
    height: 74px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a,
.text-button,
.icon-button,
.ghost-link,
.primary-link,
.primary-button,
.secondary-button,
.danger-button {
    min-height: 38px;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    font-weight: 900;
    white-space: nowrap;
    transition: transform .18s ease, filter .18s ease, border-color .18s ease, background .18s ease;
}

.nav-links a,
.text-button,
.icon-button {
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.text-button {
    border: 0;
}

.icon-button {
    width: 44px;
    padding: 0;
}

.primary-link,
.primary-button {
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    color: #04111f;
    box-shadow: 0 12px 30px rgba(0, 201, 177, .22), var(--pixel-shadow);
}

.ghost-link,
.secondary-button {
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .10);
    color: #fff;
}

.ghost-link.small {
    min-height: 34px;
    font-size: 13px;
}

.secondary-button {
    color: var(--ink);
    border-color: var(--line);
    background: #fff;
}

.danger-button {
    background: var(--rose);
    color: #fff;
}

.nav-links a:hover,
.text-button:hover,
.icon-button:hover,
.ghost-link:hover,
.secondary-button:hover,
.category-tabs button:hover,
.segmented button:hover,
.toolbar select:hover {
    border-color: rgba(0, 201, 177, .38);
    filter: brightness(.98);
}

.primary-link:hover,
.primary-button:hover,
.copy-button:hover,
.open-button:hover,
.detail-actions a:hover {
    filter: brightness(1.05);
    transform: translate(-1px, -1px);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(0, 201, 177, .28);
    outline-offset: 2px;
}

.primary-button:disabled,
.secondary-button:disabled,
.danger-button:disabled {
    cursor: not-allowed;
    background: rgba(148, 163, 184, .45);
    color: rgba(255, 255, 255, .72);
    box-shadow: none;
}

.hero {
    position: relative;
    min-height: clamp(580px, 82vh, 760px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    align-items: end;
    gap: 28px;
    padding-top: 120px;
    padding-right: max(var(--page-gutter), calc((100vw - 1780px) / 2));
    padding-bottom: 56px;
    padding-left: max(var(--page-gutter), calc((100vw - 1780px) / 2));
    background-size: cover;
    background-position: center;
    color: #fff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: .22;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 110px;
    z-index: 0;
    background: linear-gradient(0deg, #f5f5f5, rgba(245, 245, 245, 0));
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 790px;
}

.eyebrow {
    margin: 0;
    color: #67e8f9;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 8px 0 0;
    font-size: 112px;
    line-height: .88;
    text-transform: uppercase;
    text-shadow: 0 12px 42px rgba(0, 0, 0, .34);
}

.hero-copy {
    max-width: 680px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 20px;
    line-height: 1.55;
    font-weight: 700;
}

.search-bar {
    width: min(740px, 100%);
    min-height: 62px;
    margin-top: 30px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .20), 6px 6px 0 rgba(255, 215, 0, .16);
}

.search-bar input {
    min-width: 0;
    border: 0;
    border-radius: 6px;
    padding: 0 16px;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-weight: 800;
}

.search-bar button {
    border: 0;
    border-radius: 6px;
    padding: 0 22px;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    color: #04111f;
    font-weight: 900;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-map {
    position: relative;
    z-index: 1;
    align-self: end;
    border: 1px solid rgba(69, 230, 255, .25);
    border-radius: 8px;
    padding: 20px;
    background:
        linear-gradient(160deg, rgba(255, 215, 0, .10), rgba(0, 201, 177, .08)),
        rgba(7, 9, 18, .82);
    box-shadow: 18px 18px 0 rgba(0, 0, 0, .30), 0 30px 90px rgba(0, 0, 0, .36);
    backdrop-filter: blur(16px);
}

.hero-map::before {
    content: "";
    position: absolute;
    right: 18px;
    top: 18px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: linear-gradient(135deg, rgba(255, 215, 0, .82), rgba(69, 230, 255, .44));
    transform: rotateX(55deg) rotateZ(45deg);
    box-shadow: 9px 9px 0 rgba(0, 0, 0, .24);
    pointer-events: none;
}

.hero-map h2 {
    margin: 16px 0 4px;
    font-size: 38px;
    line-height: 1;
}

.hero-map p {
    margin: 0;
    color: rgba(255, 255, 255, .68);
    font-weight: 800;
}

.hero-map strong {
    display: inline-flex;
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #07101d;
    color: #6dff8f;
    font-family: Consolas, Menlo, monospace;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.pill {
    display: inline-flex;
    min-height: 28px;
    max-width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 12px;
    background: rgba(0, 201, 177, .16);
    color: #cffff8;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.guide-band,
.catalog,
.submit-page,
.admin-page {
    width: min(1780px, calc(100% - (var(--page-gutter) * 2)));
    margin: 0 auto;
}

.guide-band {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: -28px;
}

.guide-item,
.panel,
.map-card,
.login-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #fcfcfd);
    box-shadow: var(--shadow);
}

.guide-item {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
}

.guide-item::after {
    content: "";
    position: absolute;
    right: -22px;
    bottom: -22px;
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, rgba(0, 201, 177, .22), rgba(255, 215, 0, .22));
    transform: rotateX(55deg) rotateZ(45deg);
    box-shadow: 12px 12px 0 rgba(10, 36, 99, .08);
    pointer-events: none;
}

.guide-item span {
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
    font-weight: 900;
    box-shadow: 5px 5px 0 rgba(10, 36, 99, .12);
}

.guide-item strong {
    display: block;
    font-size: 16px;
}

.guide-item p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.catalog {
    padding: 54px 0 80px;
}

.section-title,
.panel-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.section-title h1,
.section-title h2,
.panel-title-row h2 {
    margin: 4px 0 0;
    font-size: 48px;
    line-height: 1;
}

.panel-title-row h2 {
    font-size: 26px;
}

.section-title span,
.panel-title-row span,
.status-line {
    color: var(--muted);
    font-weight: 900;
}

.toolbar {
    margin-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.category-filter-panel {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    gap: 8px;
    border: 1px solid var(--line);
    border-top: 5px solid var(--navy);
    border-radius: 10px;
    background: rgba(255, 255, 255, .78);
    box-shadow: var(--shadow);
    padding: 12px;
}

.category-filter-panel .category-search {
    width: min(360px, 100%);
    min-height: 40px;
    padding: 10px 12px;
}

.category-tabs {
    max-width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 8px;
    scrollbar-width: thin;
}

.category-tabs::-webkit-scrollbar {
    height: 7px;
}

.category-tabs::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(0, 201, 177, .34);
}

.segmented {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.category-tabs button,
.segmented button,
.toolbar select {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    padding: 0 13px;
    font-weight: 900;
}

.category-tabs button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.category-tabs button[hidden],
.category-empty[hidden] {
    display: none;
}

.category-empty {
    margin: -2px 0 0;
    font-size: 13px;
}

.category-tabs button.active,
.segmented button.active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--navy), var(--teal));
    color: #fff;
}

.toolbar-controls {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .78);
    box-shadow: var(--shadow);
    padding: 12px;
    height: stretch;
}

.maps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.maps-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.maps-grid.cinema {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.map-card {
    position: relative;
    overflow: hidden;
    text-align: left;
    color: var(--ink);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.map-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--navy), var(--teal), var(--gold));
    z-index: 2;
}

.map-card:hover {
    border-color: rgba(0, 201, 177, .34);
    box-shadow: 0 18px 48px rgba(10, 36, 99, .16), var(--pixel-shadow);
    transform: translateY(-2px);
}

.map-card .media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    padding: 0;
    overflow: hidden;
    background: #dbe5ef center / cover no-repeat;
    color: inherit;
    text-align: left;
}

.map-card .media::after {
    content: "";
    position: absolute;
    inset: 40% 0 0;
    background: linear-gradient(0deg, rgba(4, 10, 19, .62), transparent);
}

.map-card .media .pill {
    position: absolute;
    left: 12px;
    top: 12px;
    max-width: calc(100% - 24px);
    z-index: 1;
}

.featured-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 1;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), #fff2a8);
    color: #14213d;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 1000;
    text-transform: uppercase;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, .22);
}

.map-card .card-body {
    padding: 14px;
}

.map-card h3 {
    min-height: 46px;
    margin: 0;
    font-size: 19px;
    line-height: 1.2;
}

.map-card p {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.card-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 12px;
}

.card-meta span,
.tag {
    min-width: 0;
    border-radius: 5px;
    border: 1px solid rgba(10, 36, 99, .08);
    background: #f0f4f8;
    padding: 8px;
    color: var(--navy);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

.card-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    gap: 8px;
    margin-top: 12px;
    padding-bottom: 5px;
}

.gallery-shell,
.map-share-gallery {
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.map-share-gallery {
    min-height: 520px;
}

.modal-gallery,
.image-gallery {
    min-height: 440px;
}

.map-share-gallery .map-share-media,
.gallery-shell .modal-media {
    width: 100%;
    height: 100%;
}

.gallery-shell .modal-media {
    min-height: inherit;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .86);
    color: var(--ink);
    box-shadow: 0 14px 34px rgba(10, 36, 99, .18);
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-50%);
    backdrop-filter: blur(14px);
}

.gallery-prev {
    left: 14px;
}

.gallery-next {
    right: 14px;
}

.gallery-count,
.image-count {
    min-height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 31, 56, .72);
    color: #fff;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(3, 7, 18, .18);
    backdrop-filter: blur(12px);
}

.gallery-count {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 5;
}

.image-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 1;
}

.modal-detail .card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-actions button,
.card-actions a,
.detail-actions a {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
}

.copy-button {
    background: #07101d;
    color: #6dff8f;
    font-family: Consolas, Menlo, monospace;
}

.map-card .copy-button {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
}

.like-button {
    background: #fff0f3;
    color: #b42342;
}

.save-button {
    background: #fff8d9;
    color: #775900;
}

.open-button {
    background: linear-gradient(135deg, rgba(0, 201, 177, .18), rgba(69, 230, 255, .18));
    color: #075e54;
}

.detail-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px 130px;
    gap: 8px;
    margin-top: 16px;
}

.detail-actions .detail-code {
    margin-top: 0;
}

.empty-state {
    border: 1px dashed var(--line);
    border-radius: 8px;
    padding: 22px;
    color: var(--muted);
    text-align: center;
    font-weight: 900;
}

.featured-page {
    width: min(1780px, calc(100% - (var(--page-gutter) * 2)));
    margin: 0 auto;
    padding: 34px 0 82px;
}

.featured-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: 18px;
    align-items: stretch;
    min-height: 430px;
    overflow: hidden;
    border: 1px solid rgba(69, 230, 255, .18);
    border-top: 6px solid #0f8fa0;
    border-radius: 10px;
    background:
        radial-gradient(circle at 18% 20%, rgba(69, 230, 255, .18), transparent 28rem),
        linear-gradient(135deg, rgba(0, 201, 177, .12), rgba(255, 215, 0, .06)),
        rgba(7, 9, 18, .86);
    box-shadow: 12px 12px 0 rgba(0, 0, 0, .24), 0 30px 90px rgba(0, 0, 0, .34);
    padding: 28px;
}

.featured-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: .4;
    pointer-events: none;
}

.featured-hero-copy,
.featured-cube-panel {
    position: relative;
    z-index: 1;
}

.featured-hero h1 {
    max-width: 760px;
    margin: 8px 0 18px;
    color: #fff;
    font-size: 76px;
    line-height: .92;
    text-transform: uppercase;
}

.featured-hero p:not(.eyebrow) {
    max-width: 680px;
    color: rgba(255, 255, 255, .72);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.55;
}

.featured-cube-panel {
    display: grid;
    align-content: end;
    min-height: 320px;
    border: 1px solid rgba(69, 230, 255, .20);
    border-radius: 8px;
    background:
        linear-gradient(160deg, rgba(69, 230, 255, .12), rgba(0, 201, 177, .08)),
        rgba(3, 15, 22, .72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
    padding: 22px;
}

.featured-cube-panel h2 {
    margin: 8px 0 6px;
    color: #fff;
    font-size: 34px;
    line-height: 1;
}

.featured-cube-panel p {
    margin: 0;
    color: rgba(255, 255, 255, .66);
    font-weight: 900;
}

.featured-cube-panel strong {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    margin-top: 16px;
    border-radius: 8px;
    background: #050b14;
    color: #6dff8f;
    padding: 12px 14px;
    font-family: Consolas, Menlo, monospace;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-cube-logo {
    position: absolute;
    inset: 24px 24px auto auto;
    width: 168px;
    height: 150px;
}

.featured-cube-logo span {
    position: absolute;
    width: 54px;
    height: 54px;
    border: 2px solid rgba(204, 251, 241, .26);
    background: linear-gradient(135deg, #0f8fa0, #064e5f);
    transform: rotateX(55deg) rotateZ(45deg);
    box-shadow: 12px 12px 0 rgba(0, 0, 0, .28);
}

.featured-cube-logo span:nth-child(1) {
    left: 16px;
    top: 58px;
}

.featured-cube-logo span:nth-child(2) {
    left: 58px;
    top: 34px;
    background: linear-gradient(135deg, #14b8a6, #075985);
}

.featured-cube-logo span:nth-child(3) {
    left: 98px;
    top: 66px;
}

.featured-cube-logo span:nth-child(4) {
    left: 40px;
    top: 96px;
    background: linear-gradient(135deg, #0e7490, #083344);
}

.featured-cube-logo span:nth-child(5) {
    left: 94px;
    top: 8px;
    background: linear-gradient(135deg, #ffd700, #0f8fa0);
}

.featured-categories,
.featured-section {
    margin-top: 24px;
}

.featured-categories {
    border: 1px solid rgba(69, 230, 255, .16);
    border-radius: 10px;
    background: rgba(255, 255, 255, .07);
    box-shadow: 9px 9px 0 rgba(0, 0, 0, .18);
    padding: 18px;
}

.featured-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.featured-category-tabs button {
    min-height: 40px;
    border: 1px solid rgba(69, 230, 255, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    padding: 0 12px;
    font-weight: 900;
}

.featured-category-tabs button span {
    color: var(--gold);
}

.featured-category-tabs button.active {
    border-color: transparent;
    background: linear-gradient(135deg, #0f8fa0, var(--teal));
    color: #04111f;
}

.featured-section {
    border: 1px solid rgba(69, 230, 255, .14);
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    padding: 18px;
}

.featured-section[hidden],
.featured-map-card[hidden] {
    display: none;
}

.featured-section .section-title h2,
.featured-section .section-title span,
.featured-categories .section-title h2,
.featured-categories .section-title span {
    color: #fff;
}

.featured-grid {
    margin-top: 16px;
}

.featured-empty {
    margin-top: 24px;
    color: rgba(255, 255, 255, .72);
}

.map-share-page {
    width: min(1380px, calc(100% - (var(--page-gutter) * 2)));
    margin: 0 auto;
    padding: 34px 0 82px;
}

.map-share-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
    min-height: 620px;
    overflow: hidden;
    border: 1px solid rgba(69, 230, 255, .18);
    border-top: 6px solid #0f8fa0;
    border-radius: 10px;
    background:
        radial-gradient(circle at 12% 12%, rgba(69, 230, 255, .16), transparent 26rem),
        linear-gradient(135deg, rgba(0, 201, 177, .10), rgba(255, 215, 0, .05)),
        rgba(7, 9, 18, .88);
    box-shadow: 12px 12px 0 rgba(0, 0, 0, .24), 0 30px 90px rgba(0, 0, 0, .34);
}

.map-share-media {
    position: relative;
    min-height: 520px;
    border: 0;
    background: #050b14 center / cover no-repeat;
}

.map-share-media::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(0deg, rgba(5, 11, 20, .72), transparent);
    pointer-events: none;
}

.map-share-media .pill {
    position: absolute;
    left: 16px;
    top: 16px;
    z-index: 1;
    max-width: calc(100% - 32px);
}

.map-share-detail {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 14px;
    padding: 26px;
    color: #fff;
}

.map-share-detail h1 {
    margin: 0;
    font-size: 58px;
    line-height: .96;
    text-transform: uppercase;
}

.map-share-detail p {
    color: rgba(255, 255, 255, .74);
    font-weight: 800;
    line-height: 1.55;
}

.map-share-code-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 8px;
}

.map-share-code-row .detail-code {
    margin-top: 0;
}

.map-share-code-row .open-button {
    min-height: 52px;
    border: 1px solid rgba(204, 251, 241, .34);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    color: #04111f;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, .24), 0 14px 32px rgba(0, 201, 177, .22);
    font-weight: 1000;
    text-transform: uppercase;
}

.map-share-code-row .open-button::after {
    content: ">";
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 6px;
    background: rgba(4, 17, 31, .16);
    color: #04111f;
    font-family: Consolas, Menlo, monospace;
    font-weight: 1000;
}

.map-share-code-row .open-button:hover {
    filter: brightness(1.05);
    transform: translate(-1px, -1px);
}

.map-share-url {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 8px;
    align-items: end;
}

.map-share-url label {
    display: grid;
    gap: 7px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.map-share-url input {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(69, 230, 255, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    padding: 12px 13px;
    outline: 0;
    font-weight: 800;
}

.map-share-actions {
    grid-template-columns: 54px 54px minmax(0, 1fr);
}

.modal-root[hidden] {
    display: none;
}

.modal-root {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 16px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 10, 19, .76);
    backdrop-filter: blur(12px);
}

.map-modal,
.image-card,
.login-card {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
    max-height: min(820px, calc(100vh - 32px));
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 40px 120px rgba(0, 0, 0, .46), 9px 9px 0 rgba(0, 201, 177, .12);
}

.map-modal {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
}

.modal-media {
    min-height: 440px;
    background: #050b14 center / cover no-repeat;
}

.modal-media.contain {
    background-size: contain;
    background-repeat: no-repeat;
}

.modal-detail {
    min-width: 0;
    min-height: 0;
    overflow: auto;
    padding: 22px;
}

.modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    font-weight: 900;
}

.detail-code {
    width: 100%;
    min-height: 52px;
    margin-top: 16px;
    border: 0;
    border-radius: 8px;
    background: #07101d;
    color: #6dff8f;
    font-family: Consolas, Menlo, monospace;
    font-weight: 900;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.social-row {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.social-row a {
    display: flex;
    justify-content: space-between;
    border-radius: 8px;
    border: 1px solid rgba(10, 36, 99, .08);
    background: var(--soft);
    padding: 12px;
    font-weight: 900;
}

.login-card {
    width: min(420px, 100%);
    padding: 24px;
}

.login-card h2 {
    margin: 16px 0;
}

.login-card label,
.form-panel label,
.admin-form label,
.login-form label {
    display: grid;
    gap: 7px;
    color: inherit;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.login-card input,
.form-panel input,
.form-panel textarea,
.form-panel select,
.admin-form input,
.admin-form textarea,
.admin-form select,
.login-form input,
.wide-input {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(14, 23, 38, .14);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    padding: 12px 13px;
    outline: 0;
    font-weight: 800;
}

.login-card input:focus,
.form-panel input:focus,
.form-panel textarea:focus,
.form-panel select:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.login-form input:focus,
.wide-input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(0, 201, 177, .12);
}

.form-panel textarea,
.admin-form textarea {
    min-height: 110px;
    resize: vertical;
}

.submit-page,
.admin-page {
    padding: 28px 0 76px;
}

.submit-intro {
    border: 1px solid rgba(69, 230, 255, .18);
    border-top: 5px solid var(--teal);
    border-radius: 8px;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(255, 215, 0, .09), rgba(0, 201, 177, .06)),
        rgba(255, 255, 255, .07);
    box-shadow: 10px 10px 0 rgba(0, 0, 0, .18);
}

.submit-intro h1,
.admin-login h1,
.admin-shell h1 {
    margin: 4px 0 8px;
    font-size: 64px;
    line-height: 1;
}

.submit-intro p:not(.eyebrow),
.muted {
    color: rgba(255, 255, 255, .66);
    font-weight: 700;
    line-height: 1.55;
}

.submit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 360px;
    gap: 14px;
    margin-top: 14px;
    align-items: start;
}

.panel {
    padding: var(--panel-pad);
}

.submit-page .panel,
.admin-page .panel {
    border-color: rgba(69, 230, 255, .16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .06));
    color: #fff;
    box-shadow: 9px 9px 0 rgba(0, 0, 0, .18);
}

.form-grid {
    display: grid;
    gap: 12px;
}

.form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-panel {
    display: grid;
    gap: 14px;
    min-width: 0;
}

fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

legend {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.tag-search {
    margin-bottom: 10px;
}

.tag-picker {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.tag-choice[hidden],
.tag-empty[hidden] {
    display: none;
}

.tag-empty {
    margin: 10px 0 0;
}

.tag-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.tag-choice span {
    min-height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .76);
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.tag-choice input:checked + span {
    border-color: transparent;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    color: #04111f;
}

.upload-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
}

.thumb-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08) center / cover no-repeat;
}

.thumb button {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 6px;
    background: rgba(7, 16, 29, .80);
    color: #fff;
    font-weight: 900;
}

.submit-summary {
    position: sticky;
    top: 16px;
    display: grid;
    gap: 12px;
}

.check-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .08);
    padding: 10px;
    color: rgba(255, 255, 255, .76);
    font-weight: 800;
}

.check-row.ok {
    border-color: rgba(109, 255, 143, .18);
    background: rgba(109, 255, 143, .08);
    color: #b9f6d2;
}

.admin-login {
    width: min(460px, 100%);
    margin: 7vh auto 0;
}

.login-form {
    display: grid;
    gap: 12px;
}

.admin-shell[hidden],
.admin-login[hidden] {
    display: none;
}

#analytics-metrics[hidden],
#analytics-dashboard[hidden],
#admin-map-editor-grid[hidden],
#moderation[hidden] {
    display: none !important;
}

.admin-shell {
    display: grid;
    gap: 14px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.metric {
    border: 1px solid rgba(69, 230, 255, .16);
    border-radius: 8px;
    padding: 16px;
    background: linear-gradient(160deg, rgba(255, 215, 0, .08), rgba(0, 201, 177, .06)), rgba(255, 255, 255, .08);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, .16);
}

.metric span {
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.metric strong {
    display: block;
    margin-top: 6px;
    font-size: 30px;
    line-height: 1;
    color: var(--gold);
}

.metric em {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, .64);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.analytics-dashboard {
    display: grid;
    gap: 14px;
}

.analytics-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
    gap: 16px;
    align-items: end;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 215, 0, .16), transparent 32%),
        linear-gradient(135deg, rgba(0, 201, 177, .18), rgba(69, 230, 255, .08) 42%, rgba(124, 58, 237, .12)),
        rgba(255, 255, 255, .08);
}

.analytics-hero-copy h2 {
    margin: 4px 0 8px;
    color: #fff;
    font-size: clamp(34px, 5vw, 72px);
    line-height: .95;
}

.analytics-hero-copy p:not(.eyebrow) {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-weight: 850;
}

.analytics-pulse-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.analytics-pulse {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(3, 7, 18, .28);
    padding: 12px;
}

.analytics-pulse span,
.legend-row span,
.analytics-bar span,
.analytics-feed span,
.map-metric-name em {
    color: rgba(255, 255, 255, .58);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.analytics-pulse strong {
    display: block;
    margin: 6px 0 9px;
    color: #fff;
    font-size: 26px;
    line-height: 1;
}

.analytics-pulse i,
.mini-meter {
    display: block;
    width: 100%;
    height: 7px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, .10);
}

.analytics-pulse i b,
.mini-meter i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--teal), var(--cyan), var(--gold));
}

.analytics-chart-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.analytics-chart-panel,
.analytics-timeline-panel,
.analytics-map-panel,
.analytics-feed-panel {
    min-width: 0;
}

.analytics-donut-wrap {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-top: 12px;
}

.analytics-donut {
    position: relative;
    width: 150px;
    aspect-ratio: 1;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 16px 30px rgba(0, 0, 0, .22);
}

.analytics-donut::after {
    content: "";
    position: absolute;
    inset: 23px;
    border-radius: 50%;
    background: #121a27;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.analytics-donut span {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 26px;
    font-weight: 1000;
}

.analytics-legend {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.legend-row {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    min-width: 0;
}

.legend-row i {
    width: 10px;
    height: 10px;
    border-radius: 4px;
}

.legend-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.legend-row strong,
.legend-row em {
    color: #fff;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.legend-row em {
    color: var(--gold);
}

.analytics-wide-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

.analytics-bars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(22px, 1fr));
    gap: 7px;
    align-items: end;
    min-height: 190px;
    margin-top: 14px;
}

.analytics-bar {
    display: grid;
    grid-template-rows: minmax(110px, 1fr) auto auto;
    gap: 6px;
    min-width: 0;
    text-align: center;
}

.analytics-bar i {
    align-self: end;
    min-height: 4px;
    border-radius: 7px 7px 3px 3px;
    background: linear-gradient(180deg, var(--gold), var(--cyan) 50%, var(--teal));
    box-shadow: 0 8px 20px rgba(0, 201, 177, .18);
}

.analytics-bar strong {
    min-height: 14px;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.analytics-map-and-feed {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr);
}

.analytics-map-table-wrap {
    overflow: auto;
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 8px;
}

.admin-list-filters,
.analytics-map-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, .35fr);
    gap: 8px;
    margin-top: 10px;
}

.analytics-map-controls {
    grid-template-columns: minmax(220px, 1fr) minmax(180px, .36fr) minmax(160px, .32fr);
}

.admin-list-filters select,
.analytics-map-controls select {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(14, 23, 38, .14);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    padding: 12px 13px;
    font-weight: 850;
}

.pagination-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
}

.pagination-row.compact {
    justify-content: flex-start;
    margin-top: 10px;
}

.pagination-row a,
.pagination-row button,
.pagination-row span {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    min-height: 38px;
    border: 1px solid rgba(69, 230, 255, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .82);
    padding: 8px 12px;
    font-weight: 900;
    text-decoration: none;
}

.pagination-row a.active,
.pagination-row button.active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    color: #04111f;
}

.pagination-row span.active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    color: #04111f;
}

.pagination-row button:disabled {
    cursor: not-allowed;
    opacity: .42;
}

.pagination-row span.disabled {
    cursor: not-allowed;
    opacity: .42;
}

.pagination-row span {
    min-width: 26px;
    border-color: transparent;
    background: transparent;
    padding: 0;
}

.analytics-map-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.analytics-map-table th,
.analytics-map-table td {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: 10px;
    color: rgba(255, 255, 255, .76);
    font-size: 12px;
    font-weight: 850;
    text-align: left;
    vertical-align: middle;
}

.analytics-map-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #121a27;
    color: rgba(255, 255, 255, .55);
    font-size: 11px;
    text-transform: uppercase;
}

.analytics-map-table td strong {
    color: #fff;
}

.map-metric-name {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: 9px;
    align-items: center;
    min-width: 240px;
}

.map-metric-name i {
    grid-row: span 2;
    width: 46px;
    height: 34px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .10) center / cover no-repeat;
}

.map-metric-name b {
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.map-metric-name em {
    overflow: hidden;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-meter {
    display: inline-block;
    width: 58px;
    margin-right: 8px;
    vertical-align: middle;
}

.analytics-feed {
    display: grid;
    gap: 8px;
    max-height: 520px;
    overflow: auto;
    margin-top: 12px;
    padding-right: 4px;
}

.analytics-feed article {
    display: grid;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-left: 4px solid var(--teal);
    border-radius: 8px;
    background: rgba(255, 255, 255, .07);
    padding: 10px;
}

.analytics-feed strong {
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.analytics-feed em {
    overflow: hidden;
    color: var(--cyan);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-grid {
    display: grid;
    grid-template-columns: 430px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.admin-grid.reviews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.creation-requests-panel {
    grid-column: 1 / -1;
}

.admin-map-list,
.submission-list,
.requests-list {
    display: grid;
    gap: 8px;
    max-height: 620px;
    overflow: auto;
    margin-top: 12px;
    padding-right: 4px;
}

.requests-list {
    max-height: 760px;
}

.admin-row,
.submission-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .07);
    color: #fff;
    padding: 8px;
    text-align: left;
}

.admin-row.active {
    border-color: var(--teal);
    background: rgba(0, 201, 177, .16);
}

.submission-row.duplicate-approved {
    border-color: rgba(255, 138, 36, .82);
    background: linear-gradient(135deg, rgba(255, 138, 36, .16), rgba(255, 255, 255, .08));
    box-shadow: 0 0 0 2px rgba(255, 138, 36, .22), 0 16px 34px rgba(3, 7, 18, .18);
}

.duplicate-badge {
    display: inline-flex;
    margin-left: 6px;
    border-radius: 999px;
    background: #fff4e7;
    color: #dd6b12;
    padding: 2px 7px;
    font-size: 10px;
    font-style: normal;
    font-weight: 1000;
    text-transform: uppercase;
}

.row-image {
    width: 64px;
    height: 48px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .12) center / cover no-repeat;
}

.admin-row strong,
.submission-row strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-row span,
.submission-row span {
    display: block;
    color: rgba(255, 255, 255, .58);
    font-size: 12px;
    font-weight: 800;
}

.request-row {
    display: grid;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .07);
    color: #fff;
    padding: 14px;
}

.request-row-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.request-row-head strong {
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
}

.request-row-head span {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, .58);
    font-size: 12px;
    font-weight: 900;
}

.request-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.request-details span {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 8px;
    background: rgba(3, 7, 18, .18);
    padding: 10px;
}

.request-details b {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, .58);
    font-size: 11px;
    font-weight: 1000;
    text-transform: uppercase;
}

.request-details em {
    display: block;
    color: rgba(255, 255, 255, .86);
    font-size: 13px;
    font-style: normal;
    font-weight: 850;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.request-card {
    display: grid;
    gap: 10px;
    width: 100%;
    border: 1px solid rgba(75, 116, 184, .14);
    border-radius: 18px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 12px 34px rgba(62, 92, 145, .10), inset 0 1px 0 rgba(255, 255, 255, .96);
    color: var(--ink);
    padding: 14px;
    text-align: left;
}

.request-card:hover {
    border-color: rgba(47, 109, 246, .28);
    background: #f7fbff;
    color: var(--ink);
}

.request-card.archived {
    border-color: rgba(221, 107, 18, .24);
    background: #fff8ef;
}

.request-card.archived:hover {
    border-color: rgba(221, 107, 18, .38);
    background: #fff4e7;
}

.request-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}

.request-card-top strong {
    color: #12223f;
    font-size: 17px;
    line-height: 1.2;
}

.request-card-top span,
.request-card-preview {
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
}

.request-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.request-card-meta span {
    width: max-content;
    max-width: 100%;
    border-radius: 999px;
    background: #eef5ff;
    color: #2f6df6;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 1000;
}

.request-card.archived .request-card-meta span {
    background: #fff0dc;
    color: #dd6b12;
}

.moderation-pagination {
    padding-top: 4px;
}

.moderation-pagination span {
    white-space: nowrap;
}

.request-card-preview {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.request-modal {
    position: relative;
    z-index: 1;
    width: min(920px, calc(100vw - 28px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    border: 1px solid rgba(75, 116, 184, .16);
    border-radius: 28px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 36px 110px rgba(58, 87, 139, .24);
    color: var(--ink);
    padding: 24px;
}

.request-modal .panel-title-row {
    margin-right: 48px;
}

.request-modal .panel-title-row h2,
.request-modal .panel-title-row span {
    color: var(--ink);
}

.request-detail-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.request-detail-form label {
    display: grid;
    gap: 7px;
    color: #12223f;
    font-weight: 1000;
}

.request-detail-form input,
.request-detail-form textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(65, 101, 161, .15);
    border-radius: 14px;
    background: #f7fbff;
    color: #334155;
    padding: 11px 13px;
    font-weight: 800;
}

.request-detail-form textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.5;
}

.request-detail-form label:nth-child(5),
.request-detail-form label:nth-child(6),
.request-done-check,
.request-modal-actions {
    grid-column: 1 / -1;
}

.request-done-check {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(65, 101, 161, .14);
    border-radius: 16px;
    background: #eef5ff;
    padding: 10px 12px;
}

.request-modal-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.request-modal-actions .status-line {
    margin: 0;
}

.admin-form {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.admin-gallery-editor {
    display: grid;
    gap: 10px;
    border: 1px solid rgba(69, 230, 255, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .07);
    padding: 12px;
}

.compact-title-row h2 {
    font-size: 22px;
}

.admin-gallery-tools {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.admin-gallery-tools input {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(14, 23, 38, .14);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    padding: 12px 13px;
    outline: 0;
    font-weight: 800;
}

.admin-thumb-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.admin-thumb {
    position: relative;
    min-height: 118px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08) center / cover no-repeat;
}

.admin-thumb.primary {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0, 201, 177, .12);
}

.admin-thumb span {
    position: absolute;
    left: 6px;
    top: 6px;
    border-radius: 999px;
    background: rgba(3, 7, 18, .72);
    color: #fff;
    padding: 4px 7px;
    font-size: 11px;
    font-weight: 900;
}

.admin-thumb button {
    position: absolute;
    min-height: 28px;
    border: 0;
    border-radius: 7px;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    padding: 0 8px;
    font-size: 11px;
    font-weight: 900;
}

.admin-thumb button:disabled {
    opacity: .62;
    cursor: not-allowed;
}

.admin-thumb [data-admin-primary-image] {
    left: 6px;
    bottom: 6px;
}

.admin-thumb [data-admin-remove-image] {
    right: 6px;
    top: 6px;
    width: 28px;
    padding: 0;
}

.form-check {
    min-height: 44px;
    align-content: center;
    grid-template-columns: auto minmax(0, 1fr);
    border: 1px solid rgba(69, 230, 255, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .07);
    padding: 10px 12px;
}

.form-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--teal);
}

.form-check span {
    align-self: center;
}

.admin-featured-badge {
    display: inline-flex;
    margin-left: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), #fff2a8);
    color: #14213d;
    padding: 2px 7px;
    font-size: 10px;
    font-style: normal;
    font-weight: 1000;
    text-transform: uppercase;
}

.admin-image-preview {
    display: grid;
    grid-template-columns: minmax(220px, .72fr) minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    margin-top: 14px;
}

.admin-preview-media {
    min-height: 220px;
    border: 1px solid rgba(69, 230, 255, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08) center / cover no-repeat;
    box-shadow: inset 0 -70px 80px rgba(3, 7, 18, .22);
    cursor: pointer;
}

.admin-preview-media.empty {
    cursor: pointer;
    background:
        linear-gradient(135deg, rgba(0, 201, 177, .16), rgba(69, 230, 255, .08)),
        rgba(255, 255, 255, .08);
}

.admin-preview-info {
    display: grid;
    align-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 8px;
    background: rgba(255, 255, 255, .07);
    padding: 14px;
    min-width: 0;
}

.admin-preview-info strong {
    overflow: hidden;
    color: #fff;
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.05;
    text-overflow: ellipsis;
}

.admin-preview-info span {
    color: rgba(255, 255, 255, .66);
    font-size: 13px;
    font-weight: 900;
}

.admin-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.admin-upload-status {
    color: rgba(255, 255, 255, .66);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.35;
}

.decoder-shell {
    display: grid;
    gap: 14px;
}

.admin-toast,
.decoder-toast {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 120;
    width: min(420px, calc(100% - 28px));
    padding: 13px 16px;
    border: 1px solid rgba(134, 239, 172, .42);
    border-radius: 8px;
    background: rgba(6, 78, 59, .96);
    box-shadow: 0 18px 44px rgba(3, 7, 18, .32);
    color: #f0fdf4;
    font-size: 14px;
    font-weight: 900;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -12px);
    transition: opacity .2s ease, transform .2s ease;
}

.admin-toast.show,
.decoder-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.decoder-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
    gap: 14px;
    align-items: stretch;
}

.decoder-panel {
    display: grid;
    gap: 12px;
    align-content: start;
}

.decoder-input-label {
    display: grid;
    gap: 8px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.decoder-textarea {
    width: 100%;
    min-height: 220px;
    min-width: 0;
    border: 1px solid rgba(69, 230, 255, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    padding: 12px;
    resize: vertical;
}

.decoder-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.decoder-data-table {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 12px;
    font-size: 13px;
}

.data-table th,
.data-table td {
    border: 1px solid rgba(255, 255, 255, .14);
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.data-table th {
    background: rgba(0, 201, 177, .14);
    color: #fff;
}

.data-table td {
    background: rgba(5, 11, 20, .72);
    color: rgba(255, 255, 255, .82);
    word-break: break-word;
}

.decoder-output {
    min-height: 286px;
    max-height: 460px;
    margin: 0;
    overflow: auto;
    border-radius: 8px;
    border: 1px solid rgba(69, 230, 255, .16);
    background: #050b14;
    color: #86efac;
    padding: 14px;
    font-family: Consolas, Menlo, monospace;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
}

.decoder-draft[hidden] {
    display: none;
}

.decoder-draft-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 4px;
}

.submission-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.submission-actions button,
.submission-actions a {
    min-height: 34px;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    font-weight: 900;
}

.submission-actions .duplicate-map-link {
    background: #fff4e7;
    color: #dd6b12;
}

.submission-actions .accept-button {
    background: #16a34a;
    color: #fff;
}

.submission-actions .reject-button {
    background: #dc2626;
    color: #fff;
}

.not-found {
    width: min(620px, calc(100% - 32px));
    margin: 12vh auto;
}

@media (max-width: 1500px) {
    .submit-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .submit-summary {
        grid-column: 1 / -1;
        position: static;
    }

    .form-grid.three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .analytics-chart-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .maps-grid,
    .maps-grid.cinema {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .metrics-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-grid {
        grid-template-columns: 360px minmax(0, 1fr);
    }

    .analytics-hero,
    .analytics-map-and-feed {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    :root {
        --page-gutter: 18px;
        --panel-pad: 16px;
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-top: 94px;
        padding-bottom: 46px;
    }

    .hero h1 {
        font-size: 58px;
        line-height: .94;
        overflow-wrap: anywhere;
    }

    .hero-copy {
        font-size: 18px;
    }

    .hero-map h2 {
        font-size: 32px;
    }

    .featured-hero {
        grid-template-columns: 1fr;
    }

    .featured-hero h1 {
        font-size: 52px;
    }

    .map-share-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .map-share-media {
        min-height: 360px;
    }

    .map-share-detail h1 {
        font-size: 44px;
    }

    .catalog {
        padding: 44px 0 68px;
    }

    .section-title h1,
    .section-title h2 {
        font-size: 38px;
    }

    .guide-band,
    .maps-grid,
    .maps-grid.compact,
    .maps-grid.cinema,
    .request-details,
    .request-detail-form,
    .form-grid.two,
    .form-grid.three,
    .submit-layout,
    .decoder-grid,
    .analytics-wide-grid,
    .admin-image-preview,
    .admin-grid,
    .admin-grid.reviews {
        grid-template-columns: 1fr;
    }

    .request-row-head {
        display: grid;
    }

    .request-card-top,
    .request-modal-actions {
        display: grid;
    }

    .analytics-pulse-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .toolbar,
    .section-title,
    .panel-title-row {
        align-items: stretch;
        flex-direction: column;
    }

    .toolbar-controls,
    .upload-row {
        align-items: stretch;
        flex-direction: column;
        display: grid;
        grid-template-columns: 1fr;
    }

    .category-tabs button,
    .segmented button,
    .toolbar select {
        min-height: 42px;
    }

    .map-modal {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(220px, 34vh) minmax(0, 1fr);
    }

    .modal-media {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    :root {
        --page-gutter: 12px;
        --panel-pad: 14px;
    }

    .nav-wrap {
        width: min(100%, calc(100% - (var(--page-gutter) * 2)));
        min-height: 54px;
        gap: 8px;
    }

    .nav-links {
        gap: 4px;
    }

    .nav-links a,
    .text-button {
        min-height: 34px;
        padding: 0 9px;
        font-size: 12px;
    }

    .brand span:last-child {
        display: none;
    }

    .hero {
        padding-top: 78px;
        padding-right: var(--page-gutter);
        padding-bottom: 36px;
        padding-left: var(--page-gutter);
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-copy {
        font-size: 16px;
        line-height: 1.5;
    }

    .hero-map {
        padding: 16px;
    }

    .hero-map h2 {
        font-size: 28px;
    }

    .featured-page {
        width: min(100%, calc(100% - (var(--page-gutter) * 2)));
        padding-top: 18px;
    }

    .featured-hero,
    .featured-categories,
    .featured-section {
        padding: 14px;
    }

    .featured-hero h1 {
        font-size: 38px;
    }

    .featured-hero p:not(.eyebrow) {
        font-size: 16px;
    }

    .featured-cube-panel {
        min-height: 250px;
    }

    .featured-cube-logo {
        transform: scale(.78);
        transform-origin: top right;
    }

    .map-share-page {
        width: min(100%, calc(100% - (var(--page-gutter) * 2)));
        padding-top: 18px;
    }

    .map-share-media {
        min-height: clamp(220px, 46vh, 340px);
    }

    .map-share-detail {
        padding: 16px;
    }

    .map-share-detail h1 {
        font-size: 34px;
    }

    .map-share-code-row,
    .map-share-url,
    .map-share-actions {
        grid-template-columns: 1fr;
    }

    .modal-root {
        padding: 10px;
    }

    .map-modal,
    .image-card,
    .login-card {
        width: 100%;
        max-height: calc(100vh - 20px);
    }

    .map-modal {
        grid-template-rows: minmax(170px, 32vh) minmax(0, 1fr);
    }

    .image-card {
        overflow-y: auto;
    }

    .image-card .modal-media {
        min-height: clamp(180px, 42vh, 280px);
    }

    .modal-detail {
        padding: 16px;
    }

    .search-bar {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 6px;
    }

    .search-bar input,
    .search-bar button {
        min-height: 44px;
    }

    .guide-band,
    .catalog,
    .submit-page,
    .admin-page {
        width: min(100%, calc(100% - (var(--page-gutter) * 2)));
    }

    .guide-item {
        grid-template-columns: 40px minmax(0, 1fr);
        padding: 12px;
    }

    .guide-item span {
        height: 40px;
    }

    .submit-page,
    .admin-page {
        padding: 16px 0 52px;
    }

    .submit-intro {
        padding: var(--panel-pad);
    }

    .submit-intro h1,
    .admin-login h1,
    .admin-shell h1 {
        font-size: 36px;
    }

    .panel-title-row h2 {
        font-size: 24px;
    }

    .card-actions {
        grid-template-columns: minmax(0, 1fr) 42px 42px;
    }

    .detail-actions {
        grid-template-columns: 1fr;
    }

    .decoder-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-toast,
    .decoder-toast {
        top: 10px;
        width: calc(100% - 20px);
    }

    .decoder-draft-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .decoder-output {
        max-height: 360px;
    }

    .metrics-grid,
    .analytics-chart-grid,
    .tag-picker,
    .thumb-row,
    .admin-thumb-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .analytics-pulse-grid,
    .analytics-donut-wrap,
    .admin-list-filters,
    .analytics-map-controls,
    .admin-gallery-tools {
        grid-template-columns: 1fr;
    }

    .analytics-donut {
        margin: 0 auto;
    }
}

/* V4 crystal cockpit theme */
:root {
    --ink: #12223f;
    --muted: #697891;
    --line: rgba(57, 96, 150, .16);
    --paper: rgba(255, 255, 255, .82);
    --soft: #f3f7ff;
    --night: #f7fbff;
    --navy: #2f6df6;
    --teal: #2ecfd3;
    --gold: #ff9f2f;
    --cyan: #58d9ff;
    --blue: #2f6df6;
    --green: #20b978;
    --rose: #ee4778;
    --amber: #ff8a24;
    --violet: #8358ff;
    --shadow: 0 24px 80px rgba(56, 84, 130, .16);
    --pixel-shadow: 0 14px 34px rgba(47, 109, 246, .18);
    --page-gutter: clamp(16px, 3vw, 34px);
    --panel-pad: 20px;
}

body,
body[data-page="submit"],
body[data-page="admin"],
body[data-page="map-decoder"],
body[data-page="featured"],
body[data-page="map"] {
    background-color: #f7fbff;
    background-image:
        linear-gradient(115deg, rgba(255, 255, 255, .96), rgba(231, 241, 255, .78) 48%, rgba(247, 251, 255, .94)),
        linear-gradient(rgba(47, 109, 246, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 109, 246, .04) 1px, transparent 1px);
    background-size: auto, 42px 42px, 42px 42px;
    color: var(--ink);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(125deg, rgba(255, 255, 255, .28), transparent 42%),
        linear-gradient(180deg, rgba(204, 224, 255, .42), rgba(255, 255, 255, .08) 42%, rgba(217, 236, 255, .34));
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    left: 4vw;
    right: 4vw;
    bottom: -90px;
    z-index: -1;
    height: 180px;
    border: 1px solid rgba(78, 126, 201, .14);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(209, 227, 255, .24));
    box-shadow: 0 -22px 70px rgba(90, 137, 214, .22);
    pointer-events: none;
}

.site-header,
.site-header.tight {
    position: sticky;
    top: 14px;
    z-index: 50;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ink);
}

.nav-wrap {
    width: min(1540px, calc(100% - (var(--page-gutter) * 2)));
    min-height: 78px;
    border: 1px solid rgba(73, 115, 181, .16);
    border-radius: 30px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 20px 80px rgba(61, 91, 142, .16), inset 0 1px 0 rgba(255, 255, 255, .96);
    padding: 10px 18px;
    backdrop-filter: blur(22px);
}

.brand {
    color: #1c355d;
    letter-spacing: 0;
}

.brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    filter: drop-shadow(0 12px 18px rgba(38, 112, 255, .18));
}

.brand-mark.large {
    width: 92px;
    height: 92px;
}

.nav-links a,
.text-button,
.icon-button {
    border: 1px solid rgba(56, 104, 184, .12);
    background: rgba(255, 255, 255, .68);
    color: #416086;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.nav-links a:hover,
.text-button:hover,
.icon-button:hover {
    background: #f5f9ff;
    color: var(--blue);
}

.primary-link,
.primary-button {
    background: linear-gradient(135deg, #427bff, #36d5ff);
    color: #fff;
    box-shadow: 0 14px 34px rgba(47, 109, 246, .25);
}

.ghost-link,
.secondary-button {
    border: 1px solid rgba(47, 109, 246, .22);
    background: rgba(255, 255, 255, .70);
    color: var(--blue);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.danger-button {
    background: linear-gradient(135deg, #ff5f8e, #ef406f);
    color: #fff;
    box-shadow: 0 12px 28px rgba(238, 71, 120, .22);
}

.home-dashboard {
    position: relative;
    width: min(1540px, calc(100% - (var(--page-gutter) * 2)));
    margin: 22px auto 76px;
    border: 1px solid rgba(77, 118, 185, .18);
    border-radius: 42px;
    background: rgba(255, 255, 255, .44);
    box-shadow: 0 32px 120px rgba(74, 104, 158, .18), inset 0 1px 0 rgba(255, 255, 255, .92);
    padding: 26px 26px 30px 116px;
    backdrop-filter: blur(24px);
}

.home-rail {
    position: absolute;
    left: 22px;
    top: 26px;
    bottom: 26px;
    width: 74px;
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 22px;
    border: 1px solid rgba(73, 115, 181, .13);
    border-radius: 28px;
    background: rgba(255, 255, 255, .70);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 18px 50px rgba(59, 88, 138, .12);
    padding: 22px 0;
}

.home-rail span {
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
}

.home-rail span::before,
.home-rail span::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 2px solid #7185a6;
    border-radius: 6px;
}

.home-rail span::after {
    inset: 17px 12px 12px;
    border-width: 2px 0 0;
    border-radius: 0;
}

.home-rail span.active {
    background: linear-gradient(135deg, #4d7dff, #2f6df6);
    box-shadow: 0 14px 24px rgba(47, 109, 246, .28);
}

.home-rail span.active::before,
.home-rail span.active::after {
    border-color: #fff;
}

.hero {
    min-height: 480px;
    grid-template-columns: minmax(0, 1.2fr) minmax(310px, .8fr);
    align-items: center;
    gap: 24px;
    overflow: hidden;
    border: 1px solid rgba(76, 119, 186, .14);
    border-radius: 32px;
    background-image:
        linear-gradient(105deg, rgba(255, 255, 255, .98), rgba(246, 250, 255, .90) 54%, rgba(231, 241, 255, .72)),
        url("../media/banner.png") !important;
    background-position: center;
    background-size: cover;
    color: var(--ink);
    padding: 46px;
    box-shadow: 0 20px 70px rgba(62, 92, 145, .14), inset 0 1px 0 rgba(255, 255, 255, .98);
}

.hero::before {
    background-image:
        linear-gradient(rgba(47, 109, 246, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 109, 246, .04) 1px, transparent 1px);
    opacity: .72;
}

.hero::after {
    display: none;
}

.hero-inner {
    max-width: 720px;
}

.eyebrow {
    color: #2f6df6;
    letter-spacing: .08em;
}

.hero h1 {
    max-width: 720px;
    color: #102242;
    font-size: clamp(56px, 5vw, 96px);
    line-height: .9;
    text-shadow: none;
}

.hero-copy {
    max-width: 650px;
    color: #667894;
    font-size: 19px;
}

.search-bar {
    min-height: 60px;
    border-color: rgba(72, 109, 165, .14);
    border-radius: 22px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 18px 44px rgba(61, 89, 138, .14);
}

.search-bar input {
    color: var(--ink);
}

.search-bar button {
    border-radius: 16px;
    background: linear-gradient(135deg, #427bff, #36d5ff);
    color: #fff;
}

.hero-map {
    min-height: 300px;
    align-self: center;
    border: 1px solid rgba(70, 115, 188, .14);
    border-radius: 26px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 24px 64px rgba(57, 87, 139, .17), inset 0 1px 0 rgba(255, 255, 255, .98);
    color: var(--ink);
    padding: 24px;
}

.hero-map::before {
    display: none;
}

.hero-map-image,
.featured-map-image {
    display: block;
    width: 100%;
    border: 1px solid rgba(75, 116, 184, .16);
    border-radius: 20px;
    background-color: #dfeaff;
    background-position: center;
    background-size: cover;
    box-shadow: inset 0 -80px 90px rgba(20, 36, 68, .10), 0 18px 44px rgba(61, 89, 138, .15);
}

.hero-map-image {
    aspect-ratio: 16 / 10;
    margin-bottom: 16px;
}

.featured-map-image {
    aspect-ratio: 16 / 9;
    margin-bottom: 18px;
    overflow: hidden;
}

.hero-map h2 {
    max-width: 300px;
    color: #132744;
    font-size: clamp(30px, 3vw, 44px);
}

.hero-map p {
    color: var(--muted);
}

.hero-map strong,
.detail-code,
.copy-button {
    background: #eff6ff;
    color: #2563eb;
    box-shadow: inset 0 0 0 1px rgba(47, 109, 246, .13);
}

.pill {
    background: rgba(47, 109, 246, .10);
    color: #2f6df6;
}

.guide-band,
.catalog,
.submit-page,
.admin-page {
    width: 100%;
}

.guide-band {
    margin-top: 18px;
}

.guide-item,
.panel,
.map-card,
.login-card {
    border: 1px solid rgba(75, 116, 184, .14);
    border-radius: 22px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 18px 60px rgba(62, 92, 145, .13), inset 0 1px 0 rgba(255, 255, 255, .96);
    backdrop-filter: blur(18px);
}

.guide-item::after,
.map-card::before {
    display: none;
}

.guide-item span {
    border-radius: 16px;
    background: linear-gradient(135deg, #427bff, #36d5ff);
    color: #fff;
    box-shadow: 0 12px 24px rgba(47, 109, 246, .2);
}

.catalog {
    padding: 34px 0 34px;
}

.section-title h1,
.section-title h2,
.panel-title-row h2,
.submit-intro h1,
.admin-login h1,
.admin-shell h1 {
    color: #12223f;
}

.section-title span,
.panel-title-row span,
.status-line,
.muted {
    color: var(--muted);
}

.toolbar,
.toolbar-controls {
    /* align-items: stretch; */
}

.category-filter-panel,
.toolbar-controls,
.featured-categories,
.featured-section {
    border: 1px solid rgba(75, 116, 184, .14);
    border-top: 0;
    border-radius: 24px;
    background: rgba(255, 255, 255, .70);
    box-shadow: 0 16px 46px rgba(62, 92, 145, .12), inset 0 1px 0 rgba(255, 255, 255, .95);
}

.category-tabs {
    padding-bottom: 6px;
}

.category-tabs button,
.featured-category-tabs button,
.segmented button,
.toolbar select,
.pagination-row a,
.pagination-row button,
.pagination-row span {
    border-color: rgba(65, 101, 161, .13);
    border-radius: 16px;
    background: rgba(255, 255, 255, .76);
    color: #51698d;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
    height: fit-content;

}

.category-tabs button:nth-child(5n+2),
.featured-category-tabs button:nth-child(5n+2) {
    background: #fff4e7;
    color: #dd6b12;
}

.category-tabs button:nth-child(5n+3),
.featured-category-tabs button:nth-child(5n+3) {
    background: #f0eaff;
    color: #7748df;
}

.category-tabs button:nth-child(5n+4),
.featured-category-tabs button:nth-child(5n+4) {
    background: #eafaf4;
    color: #0f9f68;
}

.category-tabs button:nth-child(5n+5),
.featured-category-tabs button:nth-child(5n+5) {
    background: #fff0f6;
    color: #dd4b83;
}

.category-tabs button.active,
.featured-category-tabs button.active,
.segmented button.active,
.pagination-row a.active,
.pagination-row button.active,
.pagination-row span.active {
    border-color: transparent;
    background: linear-gradient(135deg, #427bff, #36d5ff);
    color: #fff;
    box-shadow: 0 12px 28px rgba(47, 109, 246, .2);
}

.maps-grid,
.maps-grid.cinema {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.maps-grid.compact {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

.map-card {
    border-radius: 20px;
}

.map-card:hover {
    border-color: rgba(47, 109, 246, .28);
    box-shadow: 0 26px 70px rgba(62, 92, 145, .18);
    transform: translateY(-4px);
}

.map-card .media {
    aspect-ratio: 1.12 / 1;
    border-radius: 18px 18px 0 0;
}

.map-card .media::after,
.map-share-media::after {
    background: linear-gradient(0deg, rgba(16, 34, 66, .38), transparent 62%);
}

.featured-badge {
    background: #2f6df6;
    color: #fff;
    box-shadow: 0 10px 20px rgba(47, 109, 246, .20);
}

.map-card h3 {
    /* min-height: 0; */
    color: #12223f;
    font-size: 17px;
}

.map-card p {
    color: var(--muted);
}

.card-meta span,
.tag {
    border-color: rgba(64, 100, 158, .10);
    background: #f3f7ff;
    color: #51698d;
}

.card-actions button,
.card-actions a,
.detail-actions a {
    text-wrap:auto;
    border-radius: 14px;
}

.open-button,
.map-share-code-row .open-button {
    background: linear-gradient(135deg, #427bff, #36d5ff);
    color: #fff;
    box-shadow: 0 12px 28px rgba(47, 109, 246, .22);
}

.like-button {
    background: #fff0f6;
    color: #dd4b83;
}

.save-button {
    background: #fff4e7;
    color: #dd6b12;
}

.featured-page,
.map-share-page {
    width: min(1540px, calc(100% - (var(--page-gutter) * 2)));
    padding-top: 28px;
}

.featured-hero,
.map-share-card {
    border: 1px solid rgba(75, 116, 184, .14);
    border-top: 0;
    border-radius: 34px;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, .94), rgba(239, 246, 255, .78)),
        rgba(255, 255, 255, .80);
    box-shadow: 0 28px 100px rgba(62, 92, 145, .16), inset 0 1px 0 rgba(255, 255, 255, .96);
    color: var(--ink);
}

.featured-hero h1,
.featured-hero p:not(.eyebrow),
.featured-section .section-title h2,
.featured-section .section-title span,
.featured-categories .section-title h2,
.featured-categories .section-title span,
.map-share-detail,
.map-share-detail h1,
.map-share-detail p,
.map-share-url label {
    color: var(--ink);
}

.featured-hero p:not(.eyebrow),
.map-share-detail p,
.map-share-url label {
    color: var(--muted);
}

.featured-cube-panel {
    border-color: rgba(75, 116, 184, .14);
    border-radius: 26px;
    background: rgba(255, 255, 255, .72);
    color: var(--ink);
}

.featured-cube-panel h2,
.featured-cube-panel p,
.featured-cube-panel strong {
    color: var(--ink);
}

.featured-cube-panel strong {
    background: #eff6ff;
    color: var(--blue);
}

.featured-cube-panel .eyebrow {
    margin-top: 0;
}

.featured-cube-logo span {
    border-color: rgba(88, 217, 255, .42);
    background: linear-gradient(135deg, #58d9ff, #2f6df6);
    box-shadow: 10px 10px 0 rgba(47, 109, 246, .12);
}

.map-share-card {
    overflow: hidden;
}

.map-share-media {
    background-color: #dfeaff;
}

.submit-page,
.admin-page {
    width: min(1540px, calc(100% - (var(--page-gutter) * 2)));
}

.submit-intro,
.submit-page .panel,
.admin-page .panel,
.metric,
.analytics-hero,
.analytics-pulse,
.analytics-feed article,
.admin-row,
.submission-row,
.admin-preview-info,
.admin-gallery-editor,
.form-check {
    border: 1px solid rgba(75, 116, 184, .14);
    border-radius: 22px;
    background: rgba(255, 255, 255, .76);
    color: var(--ink);
    box-shadow: 0 18px 58px rgba(62, 92, 145, .12), inset 0 1px 0 rgba(255, 255, 255, .94);
}

.submit-intro {
    border-top: 0;
}

.submit-intro p:not(.eyebrow),
.admin-row span,
.submission-row span,
.metric span,
.metric em,
.analytics-hero-copy p:not(.eyebrow),
.analytics-pulse span,
.legend-row span,
.analytics-bar span,
.analytics-feed span,
.map-metric-name em,
.admin-preview-info span,
.admin-upload-status {
    color: var(--muted);
}

.form-panel label,
.admin-form label,
.login-form label,
.login-card label {
    color: #405779;
}

.login-card input,
.form-panel input,
.form-panel textarea,
.form-panel select,
.admin-form input,
.admin-form textarea,
.admin-form select,
.login-form input,
.wide-input,
.admin-gallery-tools input,
.admin-list-filters select,
.analytics-map-controls select,
.decoder-textarea,
.map-share-url input {
    border-color: rgba(75, 116, 184, .16);
    border-radius: 16px;
    background: rgba(255, 255, 255, .86);
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

.tag-choice span,
.check-row,
.admin-thumb {
    border-color: rgba(75, 116, 184, .12);
    background: rgba(255, 255, 255, .72);
    color: #566d90;
}

.tag-choice input:checked + span,
.check-row.ok {
    border-color: rgba(47, 109, 246, .20);
    background: #eaf2ff;
    color: #2f6df6;
}

.metric strong,
.analytics-hero-copy h2,
.analytics-pulse strong,
.legend-row strong,
.analytics-bar strong,
.analytics-map-table td strong,
.map-metric-name b,
.analytics-feed strong,
.admin-preview-info strong {
    color: #12223f;
}

.analytics-pulse i,
.mini-meter {
    background: rgba(47, 109, 246, .10);
}

.analytics-donut {
    box-shadow: inset 0 0 0 1px rgba(47, 109, 246, .10), 0 16px 34px rgba(62, 92, 145, .14);
}

.analytics-donut::after {
    background: rgba(255, 255, 255, .92);
    box-shadow: inset 0 0 0 1px rgba(75, 116, 184, .12);
}

.analytics-donut span {
    color: var(--ink);
}

.analytics-map-table-wrap {
    border-color: rgba(75, 116, 184, .14);
    background: rgba(255, 255, 255, .50);
}

.analytics-map-table th,
.analytics-map-table td {
    border-bottom-color: rgba(75, 116, 184, .12);
    color: #566d90;
}

.analytics-map-table th {
    background: #eef5ff;
    color: #677a99;
}

.analytics-feed em {
    color: var(--blue);
}

.admin-row.active {
    border-color: rgba(47, 109, 246, .32);
    background: #eaf2ff;
}

.nav-links a.active {
    border-color: rgba(47, 109, 246, .36);
    background: #eef5ff;
    color: var(--blue);
}

body[data-page="admin"] .nav-wrap,
body[data-page="map-decoder"] .nav-wrap {
    justify-content: flex-start;
    overflow: hidden;
}

body[data-page="admin"] .brand,
body[data-page="map-decoder"] .brand {
    flex: 0 0 auto;
}

body[data-page="admin"] .nav-links,
body[data-page="map-decoder"] .nav-links {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-left: auto;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 201, 177, .34) transparent;
}

body[data-page="admin"] .nav-links::-webkit-scrollbar,
body[data-page="map-decoder"] .nav-links::-webkit-scrollbar {
    height: 7px;
}

body[data-page="admin"] .nav-links::-webkit-scrollbar-thumb,
body[data-page="map-decoder"] .nav-links::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(0, 201, 177, .34);
}

body[data-page="admin"] .nav-links a,
body[data-page="admin"] .nav-links .text-button,
body[data-page="map-decoder"] .nav-links a,
body[data-page="map-decoder"] .nav-links .text-button {
    flex: 0 0 auto;
}

.creator-page {
    width: min(1540px, calc(100% - (var(--page-gutter) * 2)));
    margin: 22px auto 76px;
    display: grid;
    gap: 24px;
}

.creator-hero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border: 1px solid rgba(73, 115, 181, .16);
    border-radius: 34px;
    background-position: center;
    background-size: cover;
    box-shadow: 0 32px 100px rgba(58, 87, 139, .22);
    padding: 54px;
}

.creator-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: .45;
    pointer-events: none;
}

.creator-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 860px;
}

.creator-hero h1 {
    margin: 8px 0 16px;
    color: #fff;
    font-size: 72px;
    line-height: .95;
}

.creator-hero p:not(.eyebrow) {
    max-width: 700px;
    color: rgba(255, 255, 255, .78);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.55;
}

.creator-profile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: 22px;
    align-items: center;
    border: 1px solid rgba(75, 116, 184, .14);
    border-radius: 28px;
    background: rgba(255, 255, 255, .74);
    box-shadow: 0 20px 70px rgba(62, 92, 145, .13), inset 0 1px 0 rgba(255, 255, 255, .96);
    backdrop-filter: blur(18px);
    padding: 24px;
}

.creator-profile h2 {
    margin: 4px 0 10px;
    color: #12223f;
    font-size: 34px;
    line-height: 1.05;
}

.creator-profile p:not(.eyebrow),
.tier-card p,
.creator-step p,
.faq-item p {
    color: #5d6f88;
    font-weight: 800;
    line-height: 1.55;
}

.creator-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.creator-badges span {
    border: 1px solid rgba(65, 101, 161, .13);
    border-radius: 999px;
    background: #eef5ff;
    color: #2f6df6;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 1000;
    white-space: nowrap;
}

.creator-request-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    border: 1px solid rgba(75, 116, 184, .14);
    border-radius: 28px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 18px 60px rgba(62, 92, 145, .13), inset 0 1px 0 rgba(255, 255, 255, .96);
    backdrop-filter: blur(18px);
    padding: 22px;
}

.creator-request-form label {
    display: grid;
    gap: 8px;
    min-width: 0;
    color: #12223f;
    font-weight: 1000;
}

.creator-request-form label span {
    color: var(--muted);
    font-size: 13px;
}

.creator-request-form input,
.creator-request-form select,
.creator-request-form textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(65, 101, 161, .16);
    border-radius: 16px;
    background: rgba(255, 255, 255, .86);
    color: #12223f;
    padding: 12px 14px;
    font-weight: 800;
    outline: 0;
}

.creator-request-form textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.5;
}

.creator-request-form input:focus,
.creator-request-form select:focus,
.creator-request-form textarea:focus {
    border-color: rgba(47, 109, 246, .38);
    box-shadow: 0 0 0 4px rgba(47, 109, 246, .10);
}

.creator-request-form .full-span,
.creator-form-actions {
    grid-column: 1 / -1;
}

.creator-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.creator-form-actions .status-line {
    margin: 0;
}

.creator-section {
    display: grid;
    gap: 18px;
}

.service-tiers,
.related-grid {
    display: grid;
    gap: 16px;
}

.service-tiers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tier-card,
.creator-step,
.faq-item,
.related-card {
    border: 1px solid rgba(75, 116, 184, .14);
    border-radius: 24px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 18px 60px rgba(62, 92, 145, .13), inset 0 1px 0 rgba(255, 255, 255, .96);
    backdrop-filter: blur(18px);
}

.tier-card {
    min-height: 260px;
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 22px;
}

.tier-card h3,
.creator-step h3 {
    margin: 0;
    color: #12223f;
    font-size: 24px;
    line-height: 1.1;
}

.tier-price {
    color: #2f6df6;
    font-size: 42px;
    font-weight: 1000;
    line-height: 1;
}

.tier-price span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 900;
}

.tier-card .primary-link {
    width: max-content;
    max-width: 100%;
    margin-top: auto;
}

.process-steps,
.faq-list {
    display: grid;
    gap: 12px;
}

.creator-step {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
}

.step-number {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #427bff, #36d5ff);
    color: #fff;
    box-shadow: 0 12px 24px rgba(47, 109, 246, .2);
    font-size: 22px;
    font-weight: 1000;
}

.creator-step ul {
    margin: 12px 0 0;
    padding-left: 20px;
    color: #51698d;
    font-weight: 800;
    line-height: 1.6;
}

.faq-item {
    padding: 0;
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    padding: 18px 20px;
    color: #12223f;
    font-weight: 1000;
}

.faq-item p {
    margin: 0;
    border-top: 1px solid rgba(75, 116, 184, .12);
    padding: 0 20px 18px;
}

.related-card {
    min-height: 145px;
    display: grid;
    align-content: end;
    gap: 8px;
    padding: 20px;
    background:
        linear-gradient(135deg, rgba(66, 123, 255, .14), rgba(54, 213, 255, .10)),
        rgba(255, 255, 255, .78);
}

.related-card strong {
    color: #12223f;
    font-size: 22px;
    line-height: 1.1;
}

.related-card span {
    width: max-content;
    border-radius: 999px;
    background: #eafaf4;
    color: #0f9f68;
    padding: 8px 11px;
    font-weight: 1000;
}

.related-card .primary-link {
    width: max-content;
    max-width: 100%;
    margin-top: 8px;
}

.admin-preview-media {
    border-color: rgba(75, 116, 184, .14);
    border-radius: 22px;
    background-color: #edf5ff;
    box-shadow: inset 0 -70px 90px rgba(47, 109, 246, .08);
}

.data-table th {
    background: #eaf2ff;
    color: var(--ink);
}

.data-table td {
    background: rgba(255, 255, 255, .80);
    color: #566d90;
}

.decoder-output {
    border-color: rgba(75, 116, 184, .16);
    background: #0f1f38;
    color: #9fffd1;
}

.modal-backdrop {
    background: rgba(224, 234, 248, .72);
}

.map-modal,
.image-card,
.login-card {
    border: 1px solid rgba(75, 116, 184, .16);
    border-radius: 28px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 36px 110px rgba(58, 87, 139, .24);
}

.modal-close {
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
}

.social-row a {
    border-color: rgba(75, 116, 184, .12);
    background: #f5f9ff;
    color: var(--blue);
}

@media (max-width: 1200px) {
    .home-dashboard {
        padding-left: 26px;
    }

    .home-rail {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .creator-hero h1 {
        font-size: 56px;
    }

    .creator-profile,
    .service-tiers,
    .creator-request-form,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .creator-badges {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    :root {
        --page-gutter: 12px;
        --panel-pad: 14px;
    }

    body::after {
        display: none;
    }

    .site-header,
    .site-header.tight {
        top: 8px;
    }

    .nav-wrap {
        min-height: 62px;
        border-radius: 22px;
        padding: 8px 10px;
    }

    .brand-mark {
        width: 48px;
        height: 48px;
    }

    .home-dashboard {
        width: min(100%, calc(100% - (var(--page-gutter) * 2)));
        margin-top: 14px;
        border-radius: 28px;
        padding: 12px;
    }

    .creator-page {
        width: min(100%, calc(100% - (var(--page-gutter) * 2)));
        margin-top: 14px;
        gap: 16px;
    }

    .hero {
        min-height: 0;
        border-radius: 24px;
        padding: 22px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-copy {
        font-size: 16px;
    }

    .creator-hero {
        min-height: 360px;
        border-radius: 24px;
        padding: 22px;
    }

    .creator-hero h1 {
        font-size: 40px;
    }

    .creator-hero p:not(.eyebrow) {
        font-size: 16px;
    }

    .creator-profile,
    .creator-request-form,
    .tier-card,
    .creator-step,
    .related-card {
        border-radius: 22px;
        padding: 16px;
    }

    .creator-profile h2 {
        font-size: 28px;
    }

    .creator-step {
        grid-template-columns: 1fr;
    }

    .step-number {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .guide-band {
        grid-template-columns: 1fr;
    }

    .toolbar,
    .toolbar-controls,
    .section-title,
    .panel-title-row {
        /* align-items: stretch; */
    }

    .maps-grid,
    .maps-grid.compact,
    .maps-grid.cinema {
        grid-template-columns: 1fr;
    }

    .map-card .media {
        aspect-ratio: 16 / 10;
    }

    .admin-gallery-tools {
        grid-template-columns: 1fr;
    }

    .admin-thumb-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .submit-page,
    .admin-page,
    .featured-page,
    .map-share-page {
        width: min(100%, calc(100% - (var(--page-gutter) * 2)));
    }

    .featured-hero,
    .map-share-card {
        border-radius: 26px;
    }

    .map-share-gallery {
        min-height: clamp(220px, 46vh, 340px);
    }

    .modal-gallery,
    .image-gallery {
        min-height: clamp(180px, 42vh, 320px);
    }

    .gallery-nav {
        width: 38px;
        height: 38px;
        font-size: 26px;
    }
}

