:root {
    --bg: #f5f7fb;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-strong: #ffffff;
    --surface-tint: #edf2ff;
    --ink: #14213d;
    --ink-soft: #44506a;
    --ink-muted: #7b879b;
    --line: rgba(20, 33, 61, 0.1);
    --line-strong: rgba(20, 33, 61, 0.18);
    --accent: #234ee2;
    --accent-deep: #1637a3;
    --accent-soft: rgba(35, 78, 226, 0.1);
    --success: #21a667;
    --warning: #e7a51c;
    --danger: #df5d5d;
    --radius-lg: 30px;
    --radius-md: 22px;
    --radius-sm: 16px;
    --shadow-lg: 0 32px 80px rgba(25, 41, 77, 0.12);
    --shadow-md: 0 18px 42px rgba(25, 41, 77, 0.08);
    --shadow-sm: 0 10px 18px rgba(25, 41, 77, 0.06);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(104, 146, 255, 0.22), transparent 28%),
        radial-gradient(circle at bottom right, rgba(146, 224, 210, 0.24), transparent 24%),
        linear-gradient(180deg, #fbfcff 0%, #f3f6fb 100%);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: min(560px, 100%);
    padding: 28px;
    display: grid;
    gap: 20px;
}

.auth-shell--geosc {
    padding: 32px 20px;
    background:
        radial-gradient(circle at top left, rgba(35, 78, 226, 0.18), transparent 26%),
        radial-gradient(circle at bottom right, rgba(112, 207, 255, 0.18), transparent 22%),
        linear-gradient(180deg, #fbfcff 0%, #eff4fb 100%);
}

.auth-card--geosc {
    width: min(520px, 100%);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.92));
    box-shadow: 0 28px 70px rgba(20, 33, 61, 0.14);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-brand__logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.auth-brand .section-title {
    margin: 10px 0 0;
}

.auth-hero-note .section-copy {
    margin: 0;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.auth-actions--stack > * {
    flex: 1 1 0;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.app-shell {
    min-height: 100vh;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(20, 33, 61, 0.06);
    backdrop-filter: blur(18px);
}

.topbar-shell {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 18px;
    min-height: 76px;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-lockup__mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2b61ff 0%, #1b2f75 100%);
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    letter-spacing: 0.06em;
    box-shadow: var(--shadow-sm);
}

.brand-lockup__logo {
    width: 42px;
    height: 42px;
    display: block;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.brand-lockup__text {
    min-width: 0;
}

.brand-lockup__title {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.05rem;
    line-height: 1.1;
}

.brand-lockup__subtitle {
    margin-top: 2px;
    color: var(--ink-muted);
    font-size: 0.79rem;
}

.nav-links {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 10px 12px;
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 0.92rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    background: var(--accent-soft);
    color: var(--accent-deep);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    height: 44px;
    min-width: 220px;
    background: #f8faff;
    border: 1px solid rgba(20, 33, 61, 0.08);
    border-radius: 999px;
}

.nav-search svg {
    width: 16px;
    height: 16px;
    color: var(--ink-muted);
    flex: 0 0 auto;
}

.nav-search input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--ink);
    padding: 0;
}

.nav-search input::placeholder {
    color: #9aa4b5;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    box-shadow: 0 16px 32px rgba(35, 78, 226, 0.24);
}

.btn--secondary {
    color: var(--accent-deep);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(35, 78, 226, 0.12);
}

.btn--ghost {
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(20, 33, 61, 0.08);
}

.page-shell {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.section-kicker {
    margin: 0 0 10px;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 800;
}

.section-title {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.65rem, 3vw, 2.9rem);
    line-height: 1.08;
}

.section-copy {
    margin: 14px 0 0;
    max-width: 60ch;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ink-soft);
}

.panel {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(20, 33, 61, 0.08);
    color: var(--ink-soft);
    font-size: 0.88rem;
    font-weight: 600;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #18315d;
    background: rgba(35, 78, 226, 0.08);
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.stat-card {
    padding: 22px;
}

.stat-card__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: rgba(35, 78, 226, 0.08);
    color: var(--accent);
    margin-bottom: 18px;
}

.stat-card__value {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.8rem, 2vw, 2.3rem);
    line-height: 1;
    margin: 0;
}

.stat-card__label {
    margin: 7px 0 4px;
    color: var(--ink-soft);
    font-weight: 700;
}

.stat-card__hint {
    margin: 0;
    color: var(--ink-muted);
    font-size: 0.88rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: stretch;
}

.hero-copy {
    padding: 18px 0 6px;
}

.hero-copy--centered {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
    padding: 28px 0;
    text-align: center;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-actions--centered {
    justify-content: center;
}

.hero-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.hero-visual {
    position: relative;
    overflow: hidden;
    padding: 24px;
    min-height: 420px;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(51, 103, 255, 0.14) 0%, rgba(255, 255, 255, 0.8) 60%),
        radial-gradient(circle at top right, rgba(35, 78, 226, 0.24), transparent 28%);
}

.hero-visual--landing {
    display: grid;
    place-items: center;
    min-height: clamp(360px, 54vh, 540px);
    padding: 44px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.82) 26%, rgba(255, 255, 255, 0.24) 58%, rgba(255, 255, 255, 0.12) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.3)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cdefs%3E%3ClinearGradient id='bg' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0%25' stop-color='%23f4f8ff'/%3E%3Cstop offset='55%25' stop-color='%23d7e7ff'/%3E%3Cstop offset='100%25' stop-color='%23b9d5ff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1600' height='900' fill='url(%23bg)'/%3E%3Crect x='140' y='170' width='1320' height='560' rx='34' fill='%23eef4ff' stroke='%2398b9ef' stroke-width='10'/%3E%3Crect x='230' y='250' width='470' height='300' rx='24' fill='%23ffffff' stroke='%23c3d6f6' stroke-width='8'/%3E%3Crect x='770' y='250' width='470' height='300' rx='24' fill='%23ffffff' stroke='%23c3d6f6' stroke-width='8'/%3E%3Crect x='300' y='320' width='330' height='26' rx='13' fill='%23d8e6ff'/%3E%3Crect x='300' y='372' width='260' height='20' rx='10' fill='%23e5efff'/%3E%3Crect x='300' y='412' width='210' height='20' rx='10' fill='%23e5efff'/%3E%3Crect x='840' y='320' width='330' height='26' rx='13' fill='%23d8e6ff'/%3E%3Crect x='840' y='372' width='260' height='20' rx='10' fill='%23e5efff'/%3E%3Crect x='840' y='412' width='210' height='20' rx='10' fill='%23e5efff'/%3E%3Ccircle cx='655' cy='575' r='92' fill='%23234ee2'/%3E%3Crect x='610' y='470' width='90' height='150' rx='26' fill='%23142c57'/%3E%3Crect x='624' y='492' width='62' height='108' rx='16' fill='%23f5f8ff'/%3E%3Ccircle cx='655' cy='548' r='20' fill='%2370cfff'/%3E%3Cpath d='M655 523v25l18 10' stroke='%23234ee2' stroke-width='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='1215' cy='585' r='62' fill='%23ffffff' stroke='%2398b9ef' stroke-width='8'/%3E%3Cpath d='M1215 547c-18 0-32 14-32 31 0 23 32 51 32 51s32-28 32-51c0-17-14-31-32-31Z' fill='%23234ee2'/%3E%3Ccircle cx='1215' cy='580' r='11' fill='%23ffffff'/%3E%3C/svg%3E");
    background-position: center;
    background-size: cover, cover, 118% auto;
    box-shadow: var(--shadow-lg);
}

.hero-visual--landing::before {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.1) 100%),
        radial-gradient(circle at top right, rgba(35, 78, 226, 0.16), transparent 34%),
        radial-gradient(circle at bottom left, rgba(112, 207, 255, 0.18), transparent 32%);
}

.hero-visual--landing .section-title {
    color: #16325c;
    text-wrap: balance;
}

.device-stage {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    min-height: 100%;
}

.preview-map {
    height: 100%;
    min-height: 320px;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-lg);
}

.floating-card {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 5;
    width: min(310px, calc(100% - 40px));
    padding: 18px;
}

.floating-card h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.floating-card p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.65;
    font-size: 0.92rem;
}

.about-hero {
    position: relative;
    overflow: hidden;
    padding: 28px;
    background:
        radial-gradient(circle at top right, rgba(112, 207, 255, 0.24), transparent 24%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(243, 248, 255, 0.92));
}

.about-hero__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: center;
}

.about-hero__copy {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.about-hero__copy .section-title {
    margin-top: 14px;
}

.about-hero__copy .section-copy {
    max-width: 700px;
    margin-inline: auto;
}

.about-section {
    display: grid;
    gap: 18px;
    margin-top: 34px;
}

.about-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.about-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.about-feature-card,
.about-usage-card {
    padding: 20px;
}

.about-feature-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(35, 78, 226, 0.08);
    color: var(--accent-deep);
    font-size: 1.32rem;
}

.about-feature-card h3,
.about-usage-card h3 {
    margin: 14px 0 10px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.02rem;
}

.about-feature-card p,
.about-usage-card p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.7;
}

.about-usage-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.about-profile {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 22px;
}

.about-profile__media {
    min-height: 360px;
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(35, 78, 226, 0.08), rgba(112, 207, 255, 0.18));
    border: 1px solid rgba(35, 78, 226, 0.12);
}

.about-profile__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-profile__body h3 {
    margin: 14px 0 6px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.42rem;
}

.about-profile__role {
    margin: 0;
    color: var(--accent-deep);
    font-weight: 700;
}

.about-profile__bio {
    margin: 14px 0 0;
    color: var(--ink-soft);
    line-height: 1.75;
}

.about-contact-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.about-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(244, 247, 252, 0.86);
    border: 1px solid rgba(20, 33, 61, 0.08);
    color: var(--ink-soft);
}

.about-contact-item__icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(35, 78, 226, 0.1);
    color: var(--accent-deep);
    font-weight: 800;
}

.brand-strip {
    margin-top: 34px;
    padding: 18px 22px;
}

.brand-strip__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.brand-strip__title {
    margin: 0;
    font-size: 1rem;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip-link,
.chip-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid rgba(20, 33, 61, 0.08);
    padding: 9px 14px;
    background: #fff;
    color: var(--ink-soft);
    font-weight: 700;
    font-size: 0.88rem;
}

.chip-button.is-active,
.chip-link:hover {
    border-color: rgba(35, 78, 226, 0.22);
    color: var(--accent-deep);
    background: rgba(35, 78, 226, 0.08);
}

.explore-grid,
.finder-shell,
.detail-grid,
.admin-grid {
    display: grid;
    gap: 24px;
}

.explore-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(310px, 0.9fr);
    margin-top: 26px;
}

.map-panel {
    padding: 18px;
    display: flex;
    flex-direction: column;
}

.map-panel__header,
.results-column__header,
.control-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.map-panel__title,
.results-column__title,
.control-panel__title {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.1rem;
}

.map-canvas {
    width: 100%;
    height: clamp(400px, 48vh, 560px);
    min-height: 400px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(20, 33, 61, 0.08);
}

.results-column {
    padding: 18px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.results-stack,
.card-stack {
    display: grid;
    gap: 14px;
}

.results-column .results-stack {
    flex: 1 1 auto;
    min-height: 0;
    max-height: clamp(400px, 48vh, 560px);
    overflow: auto;
    padding-right: 4px;
    align-content: start;
}

.service-tile,
.result-card,
.related-card,
.nearby-card {
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(20, 33, 61, 0.08);
    box-shadow: 0 8px 20px rgba(18, 35, 80, 0.05);
}

.service-tile:hover,
.result-card:hover,
.related-card:hover,
.nearby-card:hover {
    border-color: rgba(35, 78, 226, 0.18);
}

.service-tile__title,
.result-card__title,
.nearby-card__title,
.related-card__title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.service-tile__meta,
.result-card__meta,
.nearby-card__meta,
.related-card__meta {
    margin-top: 10px;
    display: grid;
    gap: 8px;
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.info-item {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
}

.info-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    min-height: 18px;
    color: var(--accent-deep);
    font-size: 0.92rem;
    line-height: 1;
}

.info-item__text {
    min-width: 0;
    line-height: 1.45;
}

.tile-actions,
.result-card__actions,
.nearby-card__actions,
.related-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.mini-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(20, 33, 61, 0.08);
    background: #fff;
    color: var(--ink-soft);
    font-weight: 700;
}

.mini-button.is-primary {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
}

.explorer-shell,
.finder-shell {
    grid-template-columns: minmax(290px, 0.78fr) minmax(0, 1.22fr);
}

.explorer-shell--split {
    align-items: stretch;
    grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
}

.explorer-sidebar {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 18px;
    min-height: min(820px, calc(100vh - 156px));
}

.control-panel,
.location-panel {
    padding: 18px;
    align-self: start;
}

.explorer-filters {
    align-self: start;
}

.control-panel__body,
.location-panel__body {
    display: grid;
    gap: 18px;
}

.explorer-results {
    padding: 18px;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
}

.explorer-results__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.explorer-results__body {
    min-height: 0;
    overflow: auto;
    padding-right: 8px;
}

.explorer-results__body::-webkit-scrollbar {
    width: 8px;
}

.explorer-results__body::-webkit-scrollbar-thumb {
    background: rgba(20, 33, 61, 0.16);
    border-radius: 999px;
}

.explorer-results__body::-webkit-scrollbar-track {
    background: rgba(20, 33, 61, 0.04);
    border-radius: 999px;
}

.filter-group {
    display: grid;
    gap: 10px;
}

.filter-group label,
.field-label {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.select-field,
.input-field {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(20, 33, 61, 0.1);
    background: #fff;
    color: var(--ink);
    outline: none;
}

.slider-stack {
    display: grid;
    gap: 10px;
}

.slider-stack input[type="range"] {
    width: 100%;
}

.slider-values {
    display: flex;
    justify-content: space-between;
    color: var(--ink-muted);
    font-size: 0.85rem;
}

.checkbox-list {
    display: grid;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.map-stage {
    position: relative;
    padding: 18px;
    overflow: hidden;
    min-height: min(820px, calc(100vh - 156px));
}

.map-stage__canvas {
    height: 100%;
    min-height: min(784px, calc(100vh - 192px));
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(20, 33, 61, 0.08);
}

.map-stage__overlay {
    position: absolute;
    top: 34px;
    left: 34px;
    right: 34px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    pointer-events: none;
}

.map-stage__overlay > * {
    pointer-events: auto;
}

.metric-ribbon {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.metric-pill {
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(20, 33, 61, 0.08);
    box-shadow: var(--shadow-sm);
}

.metric-pill__value {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.15rem;
}

.metric-pill__label {
    color: var(--ink-muted);
    font-size: 0.78rem;
}

.legend-box {
    padding: 14px;
    width: 220px;
}

.legend-box h3 {
    margin: 0 0 10px;
    font-size: 0.94rem;
}

.legend-list {
    display: grid;
    gap: 9px;
    color: var(--ink-soft);
    font-size: 0.86rem;
}

.legend-list span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.legend-panel {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 440;
    width: min(226px, calc(100% - 32px));
    padding: 11px 12px;
    border-radius: 16px;
    border: 1px solid rgba(35, 78, 226, 0.12);
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 28px rgba(22, 50, 92, 0.12);
}

.map-stage.is-route-open .legend-panel {
    bottom: 118px;
}

.legend-panel.is-collapsed {
    width: auto;
}

.legend-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.legend-panel__header strong {
    font-size: 0.88rem;
}

.legend-panel__toggle {
    width: 24px;
    height: 24px;
    border: 0;
    padding: 0;
    border-radius: 999px;
    background: rgba(35, 78, 226, 0.08);
    color: var(--accent-deep);
    font: inherit;
    font-weight: 700;
    line-height: 1;
}

.legend-panel__body {
    margin-top: 10px;
}

.legend-list--map span {
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.legend-line {
    width: 18px;
    height: 0;
    border-top-width: 2px;
    border-top-style: solid;
    border-radius: 999px;
    flex: 0 0 18px;
}

.legend-line--route {
    border-top-color: #234ee2;
}

.legend-line--city {
    border-top-color: #1c50e0;
    border-top-style: dashed;
    border-top-width: 2px;
}

.legend-line--district {
    border-top-color: #0d6d77;
    border-top-style: solid;
}

.legend-marker {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    display: inline-block;
    position: relative;
}

.legend-marker--location {
    width: 13px;
    height: 13px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: linear-gradient(135deg, #2457e0 0%, #1637a3 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.95);
}

.legend-marker--location::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #ffffff;
}

.legend-marker--position {
    background: #234ee2;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(35, 78, 226, 0.42);
    border-radius: 999px;
}

.location-summary {
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(20, 33, 61, 0.08);
}

.location-summary__eyebrow {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.location-summary__value {
    margin-top: 8px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.6;
}

.finder-map {
    position: relative;
    padding: 18px;
}

.finder-map__canvas {
    min-height: 720px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(20, 33, 61, 0.08);
    filter: saturate(0.95);
}

.map-glass {
    position: absolute;
    inset: 34px;
    background:
        radial-gradient(circle at center, rgba(130, 210, 255, 0.28), transparent 18%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.1));
    border-radius: 24px;
    pointer-events: none;
}

.pulse-center {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    border: 1px solid rgba(130, 210, 255, 0.6);
    background: radial-gradient(circle, rgba(130, 210, 255, 0.28) 0%, rgba(130, 210, 255, 0.08) 60%, transparent 75%);
    box-shadow: 0 0 0 18px rgba(130, 210, 255, 0.08);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.detail-shell {
    display: grid;
    gap: 24px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 26px;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(20, 33, 61, 0.7) 0%, rgba(20, 33, 61, 0.38) 45%, rgba(20, 33, 61, 0.04) 100%),
        radial-gradient(circle at top right, rgba(115, 178, 255, 0.46), transparent 28%);
}

.detail-hero__content {
    position: relative;
    z-index: 1;
    min-height: 270px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
    gap: 24px;
    align-items: end;
}

.detail-hero__copy {
    color: #fff;
}

.detail-hero__copy .section-title {
    color: #fff;
}

.detail-hero__copy .section-copy {
    color: rgba(255, 255, 255, 0.82);
}

.detail-hero__visual {
    position: relative;
    min-height: 230px;
    border-radius: 24px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.06)),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.34), transparent 56%);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.detail-photo-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.detail-photo-frame__placeholder {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
    text-align: center;
    padding: 24px;
    line-height: 1.7;
}

.detail-photo-frame__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero__visual::before,
.detail-hero__visual::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.detail-hero__visual::before {
    width: 160px;
    height: 160px;
    top: 22px;
    right: 18px;
}

.detail-hero__visual::after {
    width: 92px;
    height: 92px;
    bottom: 24px;
    left: 28px;
}

.detail-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.info-card {
    padding: 20px;
}

.info-card h3 {
    margin: 0 0 14px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.08rem;
}

.hours-list,
.feature-list {
    display: grid;
    gap: 10px;
}

.hours-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(20, 33, 61, 0.08);
    color: var(--ink-soft);
}

.hours-row:last-child {
    border-bottom: none;
}

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

.feature-pill {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(35, 78, 226, 0.06);
    color: var(--ink-soft);
    font-size: 0.88rem;
    font-weight: 600;
}

.mini-map {
    min-height: 250px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(20, 33, 61, 0.08);
    margin-bottom: 16px;
}

.detail-stat {
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(20, 33, 61, 0.08);
}

.detail-stat__value {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 2.1rem;
}

.detail-stat__label {
    color: var(--ink-muted);
    font-size: 0.84rem;
}

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

.footer-shell {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 26px 0 34px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid rgba(20, 33, 61, 0.08);
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.footer-brand__logo {
    width: 40px;
    height: 40px;
    display: block;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

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

.admin-hero {
    padding: 24px;
    margin-bottom: 24px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 0;
    border-bottom: 1px solid rgba(20, 33, 61, 0.08);
    text-align: left;
    color: var(--ink-soft);
}

.admin-table th {
    color: var(--ink);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.empty-state {
    padding: 28px;
    text-align: center;
    color: var(--ink-muted);
}

.result-skeleton {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(35, 78, 226, 0.08);
}

.result-skeleton__line {
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(220, 228, 241, 0.72) 25%, rgba(244, 247, 252, 0.96) 50%, rgba(220, 228, 241, 0.72) 75%);
    background-size: 200% 100%;
    animation: sidebarShimmer 1.25s linear infinite;
}

.result-skeleton__line--short {
    width: 34%;
}

.result-skeleton__line--title {
    width: 78%;
    height: 16px;
}

.result-skeleton__line--medium {
    width: 62%;
}

.result-skeleton__actions {
    display: flex;
    gap: 8px;
    margin-top: 2px;
}

.result-skeleton__button {
    flex: 1 1 0;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(220, 228, 241, 0.72) 25%, rgba(244, 247, 252, 0.96) 50%, rgba(220, 228, 241, 0.72) 75%);
    background-size: 200% 100%;
    animation: sidebarShimmer 1.25s linear infinite;
}

@keyframes sidebarShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
}

.status-tag.is-success {
    background: rgba(33, 166, 103, 0.1);
    color: #15734a;
}

.status-tag.is-warning {
    background: rgba(231, 165, 28, 0.12);
    color: #8d5f08;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(20, 33, 61, 0.08);
    border-radius: 14px;
    background: #fff;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 999px;
    position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 999px;
}

.nav-toggle span::before {
    top: -6px;
}

.nav-toggle span::after {
    top: 6px;
}

.leaflet-container {
    font-family: "Plus Jakarta Sans", sans-serif;
}

.leaflet-popup-content-wrapper {
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(20, 33, 61, 0.08);
}

.leaflet-popup-content {
    margin: 14px 16px;
}

.map-popup {
    display: grid;
    gap: 10px;
    min-width: 220px;
}

.map-popup__title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.45;
}

.map-popup__meta {
    display: grid;
    gap: 7px;
    color: var(--ink-soft);
    font-size: 0.84rem;
}

.map-popup__actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

@media (max-width: 1080px) {
    .topbar-shell {
        grid-template-columns: auto 1fr auto;
    }

    .nav-search {
        display: none;
    }

    .hero-grid,
    .explore-grid,
    .finder-shell,
    .detail-grid,
    .about-hero__content,
    .about-profile {
        grid-template-columns: 1fr;
    }

    .map-stage__canvas,
    .finder-map__canvas {
        min-height: 540px;
    }

    .related-grid,
    .admin-grid,
    .about-feature-grid,
    .about-usage-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-visual--landing {
        padding: 34px 24px;
    }
}

@media (max-width: 960px) {
    .explorer-shell,
    .explorer-shell--split,
    .finder-shell {
        grid-template-columns: 1fr;
    }

    .explorer-sidebar,
    .map-stage {
        min-height: auto;
    }

    .explorer-results {
        min-height: auto;
    }

    .explorer-results__body {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 820px) {
    .topbar-shell {
        grid-template-columns: auto auto;
        gap: 14px;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .nav-links {
        display: none;
        grid-column: 1 / -1;
        padding-bottom: 14px;
        gap: 8px;
        flex-direction: column;
        align-items: stretch;
    }

    .topbar.is-open .nav-links {
        display: flex;
    }

    .topbar.is-open .nav-search {
        display: flex;
        grid-column: 1 / -1;
        width: 100%;
    }

    .topbar.is-open .nav-cta {
        display: inline-flex;
        grid-column: 1 / -1;
        width: 100%;
    }

    .stats-grid,
    .related-grid,
    .admin-grid,
    .feature-list,
    .about-feature-grid,
    .about-usage-grid {
        grid-template-columns: 1fr;
    }

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

    .map-stage__overlay {
        position: static;
        margin-bottom: 14px;
    }

    .legend-box {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 24px, 1220px);
        padding-top: 24px;
    }

    .topbar-shell {
        width: min(100% - 24px, 1220px);
        min-height: 68px;
    }

    .brand-lockup__subtitle,
    .footer-shell {
        font-size: 0.82rem;
    }

    .hero-visual,
    .map-panel,
    .results-column,
    .control-panel,
    .explorer-results,
    .map-stage,
    .finder-map,
    .location-panel,
    .detail-hero,
    .info-card,
    .admin-hero,
    .about-hero {
        padding: 16px;
    }

    .about-profile__media {
        min-height: 280px;
    }

    .map-stage__canvas,
    .finder-map__canvas {
        min-height: 420px;
    }

    .floating-card {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        margin-top: 14px;
    }
}

.admin-body {
    background: #f3f6fb;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 284px minmax(0, 1fr);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    min-height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    padding: 22px 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 255, 0.96) 100%);
    border-right: 1px solid rgba(20, 33, 61, 0.08);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
}

.admin-sidebar__mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #234ee2 0%, #1436a5 100%);
    box-shadow: var(--shadow-sm);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
}

.admin-sidebar__logo {
    width: 42px;
    height: 42px;
    display: block;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.admin-sidebar__title {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.08rem;
}

.admin-sidebar__subtitle {
    margin: 4px 0 0;
    color: var(--ink-muted);
    font-size: 0.8rem;
}

.admin-sidebar__nav,
.admin-sidebar__footer {
    display: grid;
    gap: 8px;
}

.admin-sidebar__footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(20, 33, 61, 0.08);
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    color: var(--ink-soft);
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-nav-link:hover {
    background: rgba(35, 78, 226, 0.08);
    color: var(--accent-deep);
    transform: translateX(2px);
}

.admin-nav-link.is-active {
    background: linear-gradient(135deg, #234ee2 0%, #1436a5 100%);
    color: #fff;
    box-shadow: 0 18px 30px rgba(35, 78, 226, 0.22);
}

.admin-nav-link.is-danger {
    color: #d25454;
}

.admin-nav-link__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.92;
}

.admin-nav-link__icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.admin-main {
    min-width: 0;
    padding: 28px;
}

.admin-page {
    display: grid;
    gap: 22px;
}

.admin-page__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-page__header h1 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.7rem, 2.3vw, 2.3rem);
}

.admin-page__subtitle {
    margin: 8px 0 0;
    color: var(--ink-soft);
}

.admin-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(180px, 220px));
    gap: 12px;
    align-items: center;
}

.admin-toolbar .input-field,
.admin-toolbar .select-field {
    height: 44px;
}

.admin-card {
    padding: 18px;
}

.admin-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.admin-card__title {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.02rem;
}

.admin-header-stack {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.manage-table-controls {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}

.manage-sort-box {
    display: grid;
    gap: 6px;
    min-width: 220px;
}

.manage-sort-box .select-field {
    min-width: 220px;
}

.manage-filter-panel {
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(20, 33, 61, 0.08);
    background: rgba(244, 247, 252, 0.72);
}

.manage-filter-panel[hidden] {
    display: none;
}

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

.admin-summary-card {
    padding: 18px;
}

.admin-summary-card__value {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.75rem;
    line-height: 1;
}

.admin-summary-card__label {
    margin: 8px 0 0;
    color: var(--ink-soft);
    font-weight: 700;
}

.admin-summary-card__hint {
    margin: 4px 0 0;
    color: var(--ink-muted);
    font-size: 0.84rem;
}

.admin-table-shell {
    overflow: hidden;
}

.admin-table-scroll {
    overflow-x: auto;
}

.admin-table-shell .admin-table {
    min-width: 880px;
    table-layout: fixed;
}

.admin-table tbody tr:hover {
    background: rgba(35, 78, 226, 0.03);
}

.admin-table-shell .admin-table th,
.admin-table-shell .admin-table td {
    padding: 14px 12px;
    vertical-align: middle;
}

.admin-table-shell .admin-table th:nth-child(1),
.admin-table-shell .admin-table td:nth-child(1) {
    width: 24%;
}

.admin-table-shell .admin-table th:nth-child(2),
.admin-table-shell .admin-table td:nth-child(2) {
    width: 10%;
    text-align: center;
}

.admin-table-shell .admin-table th:nth-child(3),
.admin-table-shell .admin-table td:nth-child(3) {
    width: 14%;
    text-align: center;
}

.admin-table-shell .admin-table th:nth-child(4),
.admin-table-shell .admin-table td:nth-child(4) {
    width: 14%;
    text-align: center;
}

.admin-table-shell .admin-table th:nth-child(5),
.admin-table-shell .admin-table td:nth-child(5) {
    width: 18%;
    text-align: center;
}

.admin-table-shell .admin-table th:nth-child(6),
.admin-table-shell .admin-table td:nth-child(6) {
    width: 10%;
    text-align: center;
}

.admin-table-shell .admin-table th:nth-child(7),
.admin-table-shell .admin-table td:nth-child(7) {
    width: 20%;
}

.table-brand {
    display: grid;
    gap: 4px;
}

.table-brand__name {
    font-weight: 700;
    color: var(--ink);
}

.table-brand .brand-badge,
#brandTable .brand-badge {
    width: fit-content;
    padding: 5px 10px;
    font-size: 0.72rem;
}

.table-subtle {
    color: var(--ink-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.table-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
}

.table-actions .mini-button {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.admin-table-shell .table-rating,
.admin-table-shell .status-tag {
    margin-inline: auto;
}

.admin-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
}

.pager-list {
    display: inline-flex;
    gap: 8px;
}

.pager-button {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(20, 33, 61, 0.12);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--ink-soft);
    font-weight: 700;
}

.pager-button.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #234ee2 0%, #1436a5 100%);
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
    gap: 18px;
}

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

.admin-manage-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.admin-manage-side {
    display: grid;
    gap: 18px;
    align-self: start;
}

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

.field-stack {
    display: grid;
    gap: 8px;
}

.field-span-2 {
    grid-column: 1 / -1;
}

.textarea-field {
    width: 100%;
    min-height: 116px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(20, 33, 61, 0.1);
    background: #fff;
    color: var(--ink);
    outline: none;
    resize: vertical;
    font: inherit;
}

.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 6px;
}

.admin-helper {
    margin: 0;
    color: var(--ink-muted);
    font-size: 0.84rem;
    line-height: 1.65;
}

.coordinate-shell {
    display: grid;
    gap: 12px;
}

.coordinate-shell__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.coordinate-shell__title {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
}

.coordinate-mode-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.photo-upload-shell {
    display: grid;
    gap: 12px;
}

.color-picker-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.color-picker-input {
    width: 64px;
    height: 46px;
    padding: 4px;
    border: 1px solid rgba(20, 33, 61, 0.1);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}

.photo-upload-preview {
    min-height: 220px;
    border-radius: 18px;
    border: 1px dashed rgba(20, 33, 61, 0.18);
    background: rgba(255, 255, 255, 0.86);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-muted);
    text-align: center;
    padding: 18px;
    overflow: hidden;
}

.photo-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.admin-alert {
    display: none;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(20, 33, 61, 0.08);
    font-size: 0.92rem;
    line-height: 1.65;
}

.admin-alert.is-visible {
    display: block;
}

.admin-alert.is-success {
    color: #15734a;
    background: rgba(33, 166, 103, 0.1);
}

.admin-alert.is-danger {
    color: #9a2f2f;
    background: rgba(223, 93, 93, 0.12);
}

.admin-alert.is-info {
    color: #1b4279;
    background: rgba(35, 78, 226, 0.09);
}

.admin-alert ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.status-panel {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1200;
    display: none;
    align-items: flex-start;
    gap: 12px;
    width: min(360px, calc(100vw - 32px));
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(20, 33, 61, 0.08);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 50px rgba(20, 33, 61, 0.18);
    backdrop-filter: blur(16px);
}

.status-panel.is-visible {
    display: flex;
    animation: statusPanelEnter 0.22s ease;
}

.status-panel.is-loading {
    color: #1b4279;
}

.status-panel.is-confirm {
    color: #8a5a12;
}

.status-panel.is-success {
    color: #15734a;
}

.status-panel.is-error {
    color: #9a2f2f;
}

.status-panel__icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 33, 61, 0.06);
}

.status-panel.is-loading .status-panel__icon {
    background: rgba(35, 78, 226, 0.12);
}

.status-panel.is-confirm .status-panel__icon {
    background: rgba(226, 170, 35, 0.16);
}

.status-panel.is-success .status-panel__icon {
    background: rgba(33, 166, 103, 0.14);
}

.status-panel.is-error .status-panel__icon {
    background: rgba(223, 93, 93, 0.14);
}

.status-panel__icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.status-panel__spinner {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(35, 78, 226, 0.18);
    border-top-color: currentColor;
    animation: statusSpin 0.7s linear infinite;
}

.status-panel__body {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.status-panel__body strong {
    font-size: 0.96rem;
    line-height: 1.35;
}

.status-panel__body ul {
    margin: 0;
    padding-left: 18px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.status-panel__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 2px;
}

@keyframes statusSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes statusPanelEnter {
    from {
        opacity: 0;
        transform: translate3d(0, -10px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.admin-meta-card {
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(20, 33, 61, 0.08);
}

.admin-meta-card h3 {
    margin: 0 0 6px;
    font-size: 0.98rem;
}

.admin-meta-card p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.65;
    font-size: 0.9rem;
}

.table-rating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(35, 78, 226, 0.08);
    color: var(--accent-deep);
    font-weight: 800;
}

.dashboard-highlights {
    max-height: 560px;
    overflow-y: auto;
    padding-right: 6px;
}

.admin-metric-list {
    display: grid;
    gap: 12px;
}

.admin-metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(20, 33, 61, 0.08);
}

.admin-metric-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.analysis-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) 344px;
    gap: 18px;
}

.analysis-main {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.analysis-map-wrap {
    position: relative;
    padding: 0;
    overflow: hidden;
}

.analysis-map {
    min-height: 620px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(20, 33, 61, 0.08);
}

.analysis-legend {
    position: absolute;
    left: 18px;
    top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    z-index: 500;
}

.analysis-side {
    display: grid;
    gap: 18px;
}

.analysis-side > .admin-card {
    min-height: 620px;
    display: flex;
    flex-direction: column;
}

.analysis-side > .admin-card .control-panel__body {
    flex: 1;
}

.analysis-stats-wide {
    width: 100%;
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.switch {
    position: relative;
    width: 52px;
    height: 30px;
    border-radius: 999px;
    background: rgba(20, 33, 61, 0.12);
    transition: background 0.2s ease;
}

.switch input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.switch span {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(20, 33, 61, 0.18);
    transition: transform 0.2s ease;
}

.switch input:checked + span {
    transform: translateX(22px);
}

.switch input:checked ~ .switch-track,
.switch.is-on {
    background: rgba(35, 78, 226, 0.26);
}

.distribution-bars {
    display: grid;
    gap: 12px;
}

.distribution-row {
    display: grid;
    grid-template-columns: 84px 1fr 42px;
    align-items: center;
    gap: 12px;
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.distribution-bar {
    height: 7px;
    border-radius: 999px;
    background: rgba(20, 33, 61, 0.08);
    overflow: hidden;
}

.distribution-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #234ee2 0%, #70cfff 100%);
}

.query-preview {
    font-family: Consolas, "SFMono-Regular", monospace;
    font-size: 0.82rem;
    line-height: 1.75;
    white-space: pre-wrap;
    color: #dce6ff;
    background: #192643;
    border-radius: 18px;
    padding: 18px;
}

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

.report-card {
    padding: 16px;
    background: #fff;
    border: 1px solid rgba(20, 33, 61, 0.08);
    border-radius: 16px;
}

.report-card h4 {
    margin: 0 0 8px;
    font-size: 0.96rem;
}

.mini-button.is-danger {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #df5d5d 0%, #b73535 100%);
}

@media (max-width: 1200px) {
    .admin-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-manage-layout,
    .analysis-layout,
    .admin-grid-2 {
        grid-template-columns: 1fr;
    }

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

    .analysis-side > .admin-card {
        min-height: auto;
    }

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

@media (max-width: 980px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(20, 33, 61, 0.08);
    }

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

    .admin-main {
        padding: 22px 16px 28px;
    }

    .admin-toolbar,
    .analysis-side {
        grid-template-columns: 1fr;
    }

    .admin-table-shell .admin-table {
        min-width: 820px;
    }
}

@media (max-width: 680px) {
    .admin-page__header {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-summary-grid,
    .admin-form-grid,
    .admin-sidebar__nav {
        grid-template-columns: 1fr;
    }

    .admin-pager {
        flex-direction: column;
        align-items: flex-start;
    }

    .field-span-2 {
        grid-column: auto;
    }

    .analysis-map {
        min-height: 420px;
    }

    .manage-table-controls,
    .manage-sort-box {
        width: 100%;
    }

    .manage-sort-box .select-field,
    .manage-table-controls .btn {
        width: 100%;
    }

    .dashboard-highlights {
        max-height: 420px;
    }

    .admin-table-scroll {
        margin-inline: -6px;
        padding-inline: 6px;
    }

    .admin-table-shell .admin-table {
        min-width: 760px;
    }

    .admin-table-shell .admin-table th,
    .admin-table-shell .admin-table td {
        padding: 12px 10px;
    }

    .admin-table-shell .admin-table th:nth-child(1),
    .admin-table-shell .admin-table td:nth-child(1) {
        width: 220px;
    }

    .admin-table-shell .admin-table th:nth-child(5),
    .admin-table-shell .admin-table td:nth-child(5) {
        width: 150px;
    }

    .admin-table-shell .admin-table th:nth-child(7),
    .admin-table-shell .admin-table td:nth-child(7) {
        width: 180px;
    }

    .table-actions .mini-button {
        min-height: 38px;
    }
}
