.app-shell {
    --app-glass: linear-gradient(135deg, rgba(28, 37, 38, 0.9), rgba(22, 31, 32, 0.72));
    --app-glass-soft: rgba(22, 32, 33, 0.58);
    --app-line: rgba(255, 255, 255, 0.16);
    --app-muted: rgba(255, 255, 255, 0.7);
    --app-cyan: #78e2e3;
    padding-top: 1px;
}

.app-topbar {
    width: min(1180px, calc(100% - 48px));
    min-height: 46px;
    margin: 74px auto 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.app-context {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.app-context p {
    margin: 0;
    font-family: "RajMed", sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.025em;
}

.context-mark {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #53c5c7;
    box-shadow: 0 0 0 4px rgba(83, 197, 199, 0.13);
    flex: 0 0 auto;
}

.logout-button {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 9px 13px;
    color: var(--text);
    font: 1rem "RajMed", sans-serif;
    border: 1px solid var(--app-line);
    border-radius: 11px;
    background: var(--app-glass-soft);
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.logout-button:hover {
    transform: translateY(-1px);
    border-color: rgba(83, 197, 199, 0.65);
}

.logout-button:focus-visible,
.app-shell a:focus-visible,
.app-shell button:focus-visible {
    outline: 2px solid #60d8da;
    outline-offset: 3px;
}

.app-container {
    width: min(1180px, calc(100% - 48px));
    min-height: 54vh;
    margin: 0 auto;
}

.app-view {
    animation: app-arrive 280ms ease both;
}

@keyframes app-arrive {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}

.app-hero {
    min-height: 330px;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px 58px 18px 18px;
    background: var(--app-glass);
    color: #fff;
    box-shadow: inset 1px 1px 3px rgba(255,255,255,.1), 0 16px 40px rgba(0,0,0,.16);
    isolation: isolate;
}

.app-hero-copy {
    position: relative;
    z-index: 2;
    padding: clamp(28px, 5vw, 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 13px;
    color: var(--app-cyan);
    font-family: "RajBold", sans-serif;
    font-size: .87rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: currentColor;
}

.app-hero h1,
.section-heading h1,
.empty-state h2,
.settings-title {
    margin: 0;
    font-family: "RajBold", sans-serif;
    font-weight: 700;
    line-height: .98;
    letter-spacing: .015em;
}

.app-hero h1 {
    max-width: 600px;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
}

.app-hero-copy > p:not(.eyebrow) {
    max-width: 480px;
    margin: 18px 0 24px;
    color: rgba(255,255,255,.79);
    font-size: 1.14rem;
    line-height: 1.48;
}

.app-primary-link,
.app-secondary-link {
    min-height: 44px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 10px;
    text-decoration: none;
    font-family: "RajBold", sans-serif;
    letter-spacing: .035em;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.app-primary-link {
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .36);
}

.app-primary-link:hover {
    background: rgba(255, 255, 255, .21);
    transform: translateY(-2px);
}

.app-secondary-link {
    color: var(--text);
    border: 1px solid var(--app-line);
    background: var(--app-glass-soft);
}

.app-secondary-link:hover {
    border-color: rgba(83,197,199,.75);
    transform: translateY(-2px);
}

.app-hero-art {
    position: relative;
    min-height: 290px;
    overflow: hidden;
}

.app-hero-art::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, rgba(24,33,34,.76), rgba(24,33,34,.05) 54%, rgba(24,33,34,.18));
    pointer-events: none;
}

.app-hero-art img {
    position: absolute;
    object-fit: cover;
    width: 68%;
    height: 74%;
    top: 14%;
    right: 7%;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0,0,0,.38);
}

.app-hero-art img:first-child {
    z-index: 2;
    transform: rotate(5deg) translateY(7%);
}

.app-hero-art img:last-child {
    width: 58%;
    height: 61%;
    top: 6%;
    right: 34%;
    opacity: .78;
    transform: rotate(-8deg);
}

.app-section-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 34px 0 14px;
}

.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading h1 { font-size: clamp(2.1rem, 4vw, 3.5rem); }
.section-heading p {
    max-width: 650px;
    margin: 11px 0 0;
    color: var(--app-muted);
    font-size: 1.13rem;
    line-height: 1.45;
}

.section-kicker {
    align-self: flex-end;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--app-muted);
    font-size: .95rem;
    white-space: nowrap;
}

.section-kicker i { color: #47bfc2; }

.map-empty {
    min-height: 290px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, .72fr);
    overflow: hidden;
    border: 1px solid var(--app-line);
    border-radius: 16px 42px 16px 16px;
    background: var(--app-glass-soft);
    box-shadow: inset 1px 1px 3px rgba(255,255,255,.08), 0 12px 34px rgba(0,0,0,.12);
}

.empty-state {
    padding: clamp(25px, 4vw, 46px);
    align-self: center;
}

.empty-state .empty-symbol {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    color: #8de5e5;
    border: 1px solid rgba(141,229,229,.38);
    border-radius: 12px;
    background: rgba(82,190,192,.12);
}

.empty-state h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.7rem);
}

.empty-state p {
    max-width: 490px;
    margin: 12px 0 21px;
    color: var(--app-muted);
    font-size: 1.1rem;
    line-height: 1.5;
}

.map-editorial {
    position: relative;
    min-height: 250px;
    overflow: hidden;
}

.map-editorial::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(18,28,29,.26), rgba(18,28,29,.02) 60%, rgba(18,28,29,.28));
}

.map-editorial img {
    width: 100%;
    height: 100%;
    min-height: 290px;
    display: block;
    object-fit: cover;
    filter: saturate(.82);
}

.editorial-caption {
    position: absolute;
    z-index: 1;
    bottom: 16px;
    right: 17px;
    color: #fff;
    font-size: .88rem;
    letter-spacing: .07em;
    text-shadow: 0 1px 8px rgba(0,0,0,.8);
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(230px, .72fr) minmax(0, 1.4fr);
    gap: 18px;
    margin-top: 28px;
}

.profile-card,
.profile-content-card,
.settings-card {
    border: 1px solid var(--app-line);
    border-radius: 15px;
    background: var(--app-glass-soft);
    box-shadow: inset 1px 1px 3px rgba(255,255,255,.07), 0 10px 28px rgba(0,0,0,.1);
}

.profile-card {
    padding: 28px;
    color: #fff;
    background: var(--app-glass);
    border-top-right-radius: 38px;
}

.profile-monogram {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin-bottom: 23px;
    border: 1px solid rgba(129,224,225,.55);
    border-radius: 17px;
    background: rgba(93,191,194,.17);
    color: #a4eeee;
    font: 700 1.6rem "RajBold", sans-serif;
}

.profile-card h2 {
    margin: 0 0 5px;
    font: 700 1.7rem "RajBold", sans-serif;
    overflow-wrap: anywhere;
}

.profile-card p {
    margin: 0;
    color: rgba(255,255,255,.72);
    overflow-wrap: anywhere;
}

.profile-card .profile-label {
    margin-bottom: 14px;
    color: #90dfdf;
    font-size: .83rem;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.profile-content-card { padding: clamp(24px, 4vw, 38px); }
.profile-content-card h2,
.settings-card h2 {
    margin: 0;
    font: 700 1.55rem "RajBold", sans-serif;
}
.profile-content-card > p,
.settings-card > p {
    margin: 8px 0 0;
    color: var(--app-muted);
    font-size: 1.05rem;
    line-height: 1.45;
}

.profile-content-card .app-secondary-link { margin-top: 20px; }

.settings-card {
    max-width: 760px;
    margin-top: 28px;
    padding: clamp(24px, 4vw, 38px);
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--app-line);
}
.setting-row:first-of-type { margin-top: 16px; }
.setting-row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.setting-row strong { display: block; font: 700 1.12rem "RajBold", sans-serif; }
.setting-row span { display: block; margin-top: 3px; color: var(--app-muted); }
.setting-value {
    color: #60cfd0 !important;
    font-family: "RajBold", sans-serif;
    white-space: nowrap;
}
.theme-settings { margin-top: 24px; padding-top: 25px; border-top: 1px solid var(--app-line); }
.theme-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.nav-appearance { min-width: 0; margin: 22px 0 0; padding: 22px 0 0; border: 0; border-top: 1px solid var(--app-line); }
.nav-appearance legend { float: left; width: 100%; padding: 0; font: 700 1.2rem "RajBold", sans-serif; }
.nav-appearance > p { clear: both; padding-top: 6px; color: var(--app-muted); }
.nav-appearance-control { margin-top: 24px; }
.map-appearance .theme-options { clear: both; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .map-appearance .theme-options { grid-template-columns: 1fr; } }
.nav-appearance-control label { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.nav-appearance-control output { font-variant-numeric: tabular-nums; color: var(--app-cyan); }
.nav-appearance .glass-slider-input { appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; }
.nav-appearance .glass-slider-input::-webkit-slider-runnable-track { height: 10px; border-radius: 10px; background: var(--app-glass-soft); border: 1px solid var(--app-line); }
.nav-appearance .glass-slider-input::-moz-range-track { height: 10px; border-radius: 10px; background: var(--app-glass-soft); border: 1px solid var(--app-line); }
.nav-appearance .glass-slider-input::-webkit-slider-thumb { appearance: none; margin-top: -7px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--app-line); background: var(--app-cyan); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.nav-appearance .glass-slider-input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--app-line); background: var(--app-cyan); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.nav-appearance .glass-slider-input:focus-visible { outline: 2px solid var(--app-cyan); outline-offset: 4px; border-radius: 8px; }
.theme-fieldset legend { padding: 0; font: 700 1.4rem "RajBold", sans-serif; }
.theme-fieldset > p { margin: 5px 0 17px; color: var(--app-muted); line-height: 1.4; }
.theme-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 88px;
    padding: 12px;
    border: 1px solid var(--app-line);
    border-radius: 11px 24px 11px 11px;
    background: var(--app-glass-soft);
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.theme-option:hover { transform: translateY(-2px); border-color: rgba(83,197,199,.62); }
.theme-option:focus-within { outline: 2px solid #60d8da; outline-offset: 3px; }
.theme-option:has(input:checked) { border-color: #53c5c7; background: rgba(83,197,199,.14); box-shadow: inset 0 0 0 1px rgba(83,197,199,.15); }
.theme-option-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #61d0d0;
    background: rgba(83,197,199,.13);
}
.theme-option-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.theme-option-copy strong { font: 700 1.05rem "RajBold", sans-serif; }
.theme-option-copy span { color: var(--app-muted); font-size: .83rem; line-height: 1.2; }
.theme-option input { width: 17px; height: 17px; flex: 0 0 auto; margin: 0; accent-color: #3baeb0; cursor: pointer; }
.theme-status { margin: 10px 0 0; color: var(--app-muted); }
.theme-status:empty { display: none; }

.upload-note {
    max-width: 850px;
    margin-top: 28px;
    padding: 25px 28px;
    display: flex;
    align-items: flex-start;
    gap: 17px;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    background: var(--app-glass-soft);
}
.upload-note i { margin-top: 4px; color: #74d7d8; font-size: 1.3rem; }
.upload-note h2 { margin: 0; font: 700 1.35rem "RajBold", sans-serif; }
.upload-note p { margin: 6px 0 0; color: var(--app-muted); line-height: 1.45; }

.app-footer { margin-top: 9vh; }

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .app-shell {
        --app-glass: linear-gradient(135deg, rgba(34, 47, 48, .91), rgba(30, 44, 45, .79));
        --app-glass-soft: rgba(41, 55, 56, .09);
        --app-line: rgba(28, 44, 45, .18);
        --app-muted: rgba(26, 43, 44, .74);
    }
    :root:not([data-theme="dark"]) .app-context p { color: var(--text); }
    :root:not([data-theme="dark"]) .app-section-strip .section-heading p,
    :root:not([data-theme="dark"]) .profile-content-card > p,
    :root:not([data-theme="dark"]) .settings-card > p,
    :root:not([data-theme="dark"]) .setting-row span { color: rgba(26,43,44,.74); }
    :root:not([data-theme="dark"]) .profile-content-card,
    :root:not([data-theme="dark"]) .settings-card { background: rgba(255,255,255,.22); }
}
:root[data-theme="light"] .app-shell {
    --app-glass: linear-gradient(135deg, rgba(34, 47, 48, .91), rgba(30, 44, 45, .79));
    --app-glass-soft: rgba(41, 55, 56, .09);
    --app-line: rgba(28, 44, 45, .18);
    --app-muted: rgba(26, 43, 44, .74);
}
:root[data-theme="light"] .app-section-strip .section-heading p,
:root[data-theme="light"] .profile-content-card > p,
:root[data-theme="light"] .settings-card > p,
:root[data-theme="light"] .setting-row span { color: rgba(26,43,44,.74); }
:root[data-theme="light"] .profile-content-card,
:root[data-theme="light"] .settings-card { background: rgba(255,255,255,.22); }

@media (max-width: 760px) {
    .app-topbar,
    .app-container { width: calc(100% - 30px); }
    .app-topbar { margin-top: 70px; }
    .app-hero { grid-template-columns: 1fr; min-height: 0; border-top-right-radius: 42px; }
    .app-hero-copy { padding: 34px 27px 25px; }
    .app-hero-art { min-height: 220px; }
    .app-hero-art img { width: 58%; height: 82%; top: 8%; right: 9%; }
    .app-hero-art img:last-child { width: 46%; height: 70%; top: 5%; right: 45%; }
    .app-section-strip { align-items: flex-start; flex-direction: column; margin-top: 26px; }
    .section-kicker { align-self: flex-start; }
    .map-empty { grid-template-columns: 1fr; }
    .map-editorial { min-height: 210px; }
    .map-editorial img { min-height: 210px; max-height: 280px; }
    .profile-grid { grid-template-columns: 1fr; }
    .profile-card { border-top-right-radius: 30px; }
    .app-footer { flex-direction: column; gap: 24px; }
    .app-footer .footer-col-img { width: 50%; }
    .app-footer .footer-col-links { width: 100%; }
    .theme-options { grid-template-columns: 1fr; }
    .theme-option { min-height: 64px; }
}

@media (max-width: 480px) {
    .app-context p { font-size: .94rem; }
    .logout-button { padding: 9px 10px; gap: 8px; }
    .logout-button span { font-size: .92rem; }
    .app-hero h1 { font-size: 2.7rem; }
    .setting-row { align-items: flex-start; flex-direction: column; gap: 8px; }
    .app-footer .footer-col-links { flex-wrap: wrap; }
    .app-footer .f-link-section { width: 100%; margin-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .app-view { animation: none; }
    .app-primary-link, .app-secondary-link, .logout-button { transition: none; }
}

/* Authenticated workspace — keeps the landing page's Rajdhani / glass language. */
.app-topbar { justify-content: flex-start; }
.app-section-strip { margin-bottom: 19px; }
.workspace-map {
    position: relative;
    width: 100%;
    height: min(66vh, 650px);
    min-height: 360px;
    overflow: hidden;
    border: 1px solid var(--app-line);
    border-radius: 16px 44px 16px 16px;
    background: rgba(91, 115, 116, .2);
    box-shadow: inset 1px 1px 3px rgba(255,255,255,.11), 0 12px 34px rgba(0,0,0,.15);
    z-index: 0;
}
.workspace-map .leaflet-container { width: 100%; height: 100%; font-family: "RajMed", sans-serif; }
.workspace-map .leaflet-control-attribution { font-size: 11px; }
.map-status {
    position: absolute;
    z-index: 500;
    left: 16px;
    bottom: 17px;
    max-width: min(390px, calc(100% - 32px));
    padding: 11px 15px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 10px 24px 10px 10px;
    background: rgba(24, 35, 36, .9);
    color: #fff;
    box-shadow: 0 5px 22px rgba(0,0,0,.22);
}
.map-status[hidden] { display: none; }
.map-status p { margin: 0; }
.section-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.section-actions .app-primary-link,
.form-submit {
    background: var(--app-glass);
    color: #fff;
    border-color: rgba(255,255,255,.3);
}
.section-actions .app-primary-link:hover,
.form-submit:hover { filter: brightness(1.18); }
.workspace-alert {
    margin: 14px 0;
    padding: 12px 15px;
    border: 1px solid rgba(191, 93, 71, .48);
    border-radius: 10px 22px 10px 10px;
    background: rgba(141, 59, 45, .12);
    color: var(--text);
}
.workspace-alert[hidden] { display: none; }
.workspace-alert.success { border-color: rgba(62, 155, 145, .52); background: rgba(62, 155, 145, .14); }
.loading-panel {
    min-height: 185px;
    display: grid;
    place-items: center;
    padding: 28px;
    border: 1px solid var(--app-line);
    border-radius: 14px 36px 14px 14px;
    background: var(--app-glass-soft);
    color: var(--app-muted);
    text-align: center;
}
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}
.photo-card {
    overflow: hidden;
    min-width: 0;
    border: 1px solid var(--app-line);
    border-radius: 13px 34px 13px 13px;
    background: var(--app-glass-soft);
}
.photo-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: rgba(88,114,114,.2); }
.photo-card-body { padding: 15px 17px 17px; }
.photo-card h3 { margin: 0; font: 700 1.2rem "RajBold", sans-serif; overflow-wrap: anywhere; }
.photo-card p { margin: 7px 0 0; color: var(--app-muted); line-height: 1.35; overflow-wrap: anywhere; }
.photo-card .photo-byline { color: #53bfc1; font-size: .92rem; }
.photo-card-actions { display: flex; justify-content: flex-end; margin-top: 13px; }
.danger-button, .quiet-button {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 40px; padding: 8px 13px;
    border: 1px solid var(--app-line); border-radius: 9px;
    color: var(--text); background: var(--app-glass-soft);
    font: 1rem "RajMed", sans-serif; cursor: pointer;
}
.danger-button { border-color: rgba(192, 92, 72, .45); }
.danger-button:hover { background: rgba(192, 92, 72, .16); }
.account-logout { margin-top: 24px; }
.upload-form {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr);
    gap: 22px; align-items: start; margin-top: 24px;
}
.upload-panel, .location-panel {
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid var(--app-line);
    border-radius: 14px 38px 14px 14px;
    background: var(--app-glass-soft);
}
.field { display: block; margin-bottom: 18px; }
.field label, .field-label { display: block; margin-bottom: 7px; font: 700 1.08rem "RajBold", sans-serif; }
.field input:not([type=file]), .field textarea {
    width: 100%; box-sizing: border-box; padding: 11px 13px;
    border: 1px solid var(--app-line); border-radius: 8px 20px 8px 8px;
    background: rgba(255,255,255,.13); color: var(--text);
    font: 1rem "RajMed", sans-serif;
}
.field textarea { min-height: 102px; resize: vertical; }
.field input[type=file] { width: 100%; color: var(--text); font: 1rem "RajMed", sans-serif; }
.field input::placeholder, .field textarea::placeholder { color: var(--app-muted); }
.field-help { display: block; margin-top: 6px; color: var(--app-muted); font-size: .92rem; }
.field .photo-picker {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 105px;
    margin: 0;
    padding: 15px 18px;
    overflow: hidden;
    border: 1px dashed rgba(132, 217, 216, .56);
    border-radius: 12px 30px 12px 12px;
    color: #f5f8f6;
    background: var(--app-glass);
    box-shadow: inset 1px 1px 2px rgba(255,255,255,.08);
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.field .photo-picker:hover, .field .photo-picker.has-file { border-color: #8de5e5; }
.field .photo-picker:hover { transform: translateY(-1px); }
.field .photo-picker:focus-within { outline: 2px solid #8de5e5; outline-offset: 3px; }
.photo-picker input[type=file] {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.photo-picker-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(132,217,216,.42);
    border-radius: 10px 20px 10px 10px;
    color: #8de5e5;
    background: rgba(132,217,216,.12);
    font-size: 1.22rem;
}
.photo-picker-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.22; }
.photo-picker-copy strong { font: 700 1.2rem "RajBold", sans-serif; }
.photo-picker-copy > span { margin-top: 3px; color: rgba(238,247,244,.72); font: .93rem "RajMed", sans-serif; }
.photo-picker-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border: 1px solid rgba(132,217,216,.5);
    border-radius: 8px 17px 8px 8px;
    color: #a1eded;
    background: rgba(132,217,216,.1);
    font: 700 .9rem "RajBold", sans-serif;
    white-space: nowrap;
}
.photo-file-status { display: block; margin-top: 7px; color: var(--app-muted); font-size: .95rem; overflow-wrap: anywhere; }
.photo-file-status:empty { display: none; }
.optional-label { color: var(--app-muted); font: .85rem "RajMed", sans-serif; }
.location-hint {
    margin: 0;
    padding: 11px 13px;
    border-left: 2px solid #53bfc1;
    border-radius: 0 12px 12px 0;
    color: var(--text);
    background: var(--app-glass-soft);
    line-height: 1.35;
}
.photo-preview {
    width: 100%; max-height: 330px; object-fit: contain; display: block;
    margin: 0 0 18px; border-radius: 10px; background: rgba(20,30,30,.2);
}
.photo-preview[hidden] { display: none; }
.location-map {
    height: 310px; overflow: hidden;
    border: 1px solid var(--app-line); border-radius: 10px 30px 10px 10px;
    background: rgba(85, 111, 112, .2);
}
.location-map .leaflet-container { width:100%;height:100%;font-family:"RajMed",sans-serif; }
.coordinates { min-height: 24px; margin: 12px 0 17px; color: var(--app-muted); font-variant-numeric: tabular-nums; }
.coordinates.is-set { color: #38aeb0; }
.geolocate-button { margin: 0 0 15px; }
.form-submit { width: 100%; min-height: 47px; cursor: pointer; font-size: 1.07rem; }
.form-submit:disabled { opacity: .62; cursor: wait; }
.upload-form .form-submit {
    border: 1px solid rgba(20,79,78,.45);
    color: #102b2c;
    background: linear-gradient(115deg, #82dddd, #b4ece5);
    box-shadow: 0 7px 24px rgba(25,113,113,.18);
}
.upload-form .form-submit:hover:not(:disabled) { background: linear-gradient(115deg, #9ce9e9, #cef6ec); transform: translateY(-1px); }
.upload-form .upload-feedback {
    margin: 14px 0 0; padding: 16px 18px; border-radius: 12px;
    border: 1px solid rgba(241,135,135,.5); background: rgba(120,35,35,.12);
    color: var(--text); font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere;
    scroll-margin-bottom: calc(112px + env(safe-area-inset-bottom)); scroll-margin-top: 24px;
}
.upload-form .upload-feedback.progress {
    border-color: rgba(120,226,227,.45); background: rgba(77,160,160,.12);
}
.upload-form .upload-feedback.success {
    border-color: rgba(121,222,173,.5); background: rgba(60,151,112,.14);
}
.upload-form .upload-result-link {
    margin-top: 12px; justify-content: center; scroll-margin-bottom: calc(112px + env(safe-area-inset-bottom));
}
.upload-form .upload-result-link[hidden], .upload-form .upload-feedback[hidden] { display: none; }
.profile-card .logout-button {
    margin-top: 23px;
    color: #fff;
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.36);
}
.profile-card .logout-button:hover { background: rgba(255,255,255,.21); }
.display-name-form {
    margin-top: 22px;
    padding-top: 19px;
    border-top: 1px solid var(--app-line);
}
.display-name-form label { display: block; margin-bottom: 7px; font: 700 1rem "RajBold", sans-serif; }
.display-name-controls { display: flex; align-items: stretch; gap: 8px; }
.display-name-controls input {
    min-width: 0;
    flex: 1;
    padding: 9px 11px;
    border: 1px solid var(--app-line);
    border-radius: 8px 17px 8px 8px;
    color: var(--text);
    background: rgba(255,255,255,.11);
    font: 1rem "RajMed", sans-serif;
}
.display-name-controls input:focus-visible { outline: 2px solid #60d8da; outline-offset: 2px; }
.display-name-controls .app-secondary-link { min-height: 40px; padding: 8px 11px; cursor: pointer; }
.display-name-controls button:disabled { opacity: .65; cursor: wait; }
.profile-display-name-form { border-top-color: rgba(255,255,255,.19); }
.profile-display-name-form label { color: #a4eeee; font-size: .91rem; }
.profile-display-name-form .display-name-controls input { color: #fff; border-color: rgba(255,255,255,.24); }
.profile-display-name-form .display-name-controls input::placeholder { color: rgba(255,255,255,.58); }
.profile-display-name-form .app-secondary-link { color: #fff; }
.settings-card .display-name-form { margin-top: 20px; padding: 18px 0 0; border-top: 1px solid var(--app-line); }
.settings-card .display-name-controls { max-width: 530px; }
.settings-card .display-name-form .field-help { margin-top: 7px; }
.admin-profile-link { margin-left: 9px; }
.admin-settings-link { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--app-line); }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 17px 0; }
.admin-toolbar p { margin: 0; color: var(--app-muted); }
.admin-content { display: grid; gap: 27px; }
.admin-section { min-width: 0; }
.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 5px 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--app-line);
}
.admin-tab {
    min-height: 42px;
    padding: 9px 17px;
    border: 1px solid var(--app-line);
    border-radius: 9px 20px 9px 9px;
    color: var(--text);
    background: var(--app-glass-soft);
    font: 700 1rem "RajBold", sans-serif;
    cursor: pointer;
    transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}
.admin-tab:hover { border-color: rgba(83,197,199,.65); }
.admin-tab.is-active { color: #102b2c; border-color: #72d5d6; background: linear-gradient(115deg, #82dddd, #b4ece5); }
.admin-section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.admin-section-heading .eyebrow { margin-bottom: 5px; }
.admin-section-heading h2 { margin: 0; font: 700 1.65rem "RajBold", sans-serif; }
.admin-section-heading h2 span { margin-left: 5px; color: var(--app-muted); font: 1rem "RajMed", sans-serif; }
.admin-search-form {
    margin: 0 0 13px;
    padding: 15px 17px;
    border: 1px solid var(--app-line);
    border-radius: 10px 24px 10px 10px;
    background: var(--app-glass-soft);
}
.admin-search-form label { display: block; margin-bottom: 7px; font: 700 1rem "RajBold", sans-serif; }
.admin-search-controls { display: flex; gap: 9px; }
.admin-search-controls input {
    min-width: 0;
    flex: 1;
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid var(--app-line);
    border-radius: 8px 16px 8px 8px;
    color: var(--text);
    background: rgba(255,255,255,.1);
    font: 1rem "RajMed", sans-serif;
}
.admin-search-controls input:focus-visible { outline: 2px solid #60d8da; outline-offset: 2px; }
.admin-search-controls button { justify-content: center; min-width: 90px; }
.admin-search-form :disabled, .admin-toolbar button:disabled, .admin-load-more:disabled { opacity: .6; cursor: wait; }
.admin-list-status { margin: 0 0 10px; color: var(--app-muted); }
.admin-list-status[hidden] { display: none; }
.admin-list-status.is-error { padding: 11px 14px; border: 1px solid rgba(191,93,71,.48); border-radius: 9px 20px 9px 9px; color: var(--text); background: rgba(141,59,45,.12); }
.admin-user-list {
    overflow: hidden;
    border: 1px solid var(--app-line);
    border-radius: 13px 32px 13px 13px;
    background: var(--app-glass-soft);
}
.admin-user-row {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(125px, .65fr) auto;
    align-items: center;
    gap: 17px;
    padding: 17px 19px;
    border-bottom: 1px solid var(--app-line);
}
.admin-user-row:last-child { border-bottom: 0; }
.admin-user-identity, .admin-user-state { display: flex; flex-direction: column; min-width: 0; gap: 4px; }
.admin-user-identity strong { font: 700 1.08rem "RajBold", sans-serif; overflow-wrap: anywhere; }
.admin-user-identity span, .admin-user-state span { color: var(--app-muted); font-size: .91rem; overflow-wrap: anywhere; }
.admin-user-state .admin-role { color: #53bfc1; text-transform: capitalize; }
.admin-user-state .admin-status { text-transform: capitalize; }
.admin-user-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.admin-user-actions button { min-height: 36px; padding: 6px 10px; }
.admin-photo-grid { margin-top: 0; }
.admin-photo-card .photo-card-actions { justify-content: flex-start; }
.admin-review-grid { align-items: start; }
.admin-review-card { height: 100%; }
.admin-screening {
    padding: 7px 9px;
    border-left: 2px solid #e0b25c;
    border-radius: 0 8px 8px 0;
    background: rgba(224,178,92,.1);
    font-size: .92rem;
}
.admin-review-actions { justify-content: flex-start; flex-wrap: wrap; }
.admin-review-actions button { flex: 1 1 100px; justify-content: center; }
.photo-card .photo-pending-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border: 1px solid rgba(224,178,92,.45);
    border-radius: 8px 15px 8px 8px;
    color: #dba93f;
    background: rgba(224,178,92,.1);
    font: 700 .9rem "RajBold", sans-serif;
}
.admin-empty { margin: 0; padding: 19px; color: var(--app-muted); }
.admin-load-more { margin-top: 12px; }
.admin-load-more[hidden] { display: none; }
@media (max-width: 760px) {
    .admin-user-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
    .admin-user-identity { grid-column: 1 / -1; }
    .admin-user-actions { justify-content: flex-start; grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .admin-toolbar { align-items: flex-start; flex-direction: column; }
    .admin-tabs { gap: 6px; }
    .admin-tab { flex: 1 1 auto; padding: 8px 11px; }
    .admin-user-row { padding: 15px; }
    .admin-user-actions button { flex: 1 1 auto; }
    .admin-profile-link { margin-left: 0; }
    .admin-search-form { padding: 13px; }
    .admin-search-controls { align-items: stretch; flex-direction: column; }
    .admin-search-controls button { width: 100%; }
}
.popup-photo { display:block; width: 230px; max-width: 62vw; aspect-ratio: 4/3; object-fit:cover; border-radius:7px; margin-bottom:8px; }
.leaflet-popup-content { font-family:"RajMed",sans-serif; line-height:1.35; }
.leaflet-popup-content-wrapper { border-radius: 9px 22px 9px 9px; }
.popup-caption { font-weight:700; font-size:1.08rem; }
.popup-location, .popup-author { margin-top:4px; color:#536364; }
:root[data-theme="dark"] .main-app .leaflet-popup-content-wrapper,
:root[data-theme="dark"] .main-app .leaflet-popup-tip {
    background: #192829;
}
:root[data-theme="dark"] .main-app .leaflet-popup-content-wrapper {
    border: 1px solid rgba(211,237,232,.2);
    color: #f2f7f7;
    box-shadow: 0 12px 32px rgba(0,0,0,.4);
}
:root[data-theme="dark"] .main-app .leaflet-popup-content {
    color: #f2f7f7;
}
:root[data-theme="dark"] .main-app .popup-location,
:root[data-theme="dark"] .main-app .popup-author {
    color: rgba(227,238,235,.76);
}
:root[data-theme="dark"] .main-app .popup-author .photo-author-link {
    color: #78e2e3;
}
:root[data-theme="dark"] .main-app .leaflet-popup-close-button,
:root[data-theme="dark"] .main-app .leaflet-popup-close-button:hover {
    color: #d4e9e8;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .main-app .leaflet-popup-content-wrapper,
    :root:not([data-theme="light"]) .main-app .leaflet-popup-tip {
        background: #192829;
    }
    :root:not([data-theme="light"]) .main-app .leaflet-popup-content-wrapper {
        border: 1px solid rgba(211,237,232,.2);
        color: #f2f7f7;
        box-shadow: 0 12px 32px rgba(0,0,0,.4);
    }
    :root:not([data-theme="light"]) .main-app .leaflet-popup-content {
        color: #f2f7f7;
    }
    :root:not([data-theme="light"]) .main-app .popup-location,
    :root:not([data-theme="light"]) .main-app .popup-author {
        color: rgba(227,238,235,.76);
    }
    :root:not([data-theme="light"]) .main-app .popup-author .photo-author-link {
        color: #78e2e3;
    }
    :root:not([data-theme="light"]) .main-app .leaflet-popup-close-button,
    :root:not([data-theme="light"]) .main-app .leaflet-popup-close-button:hover {
        color: #d4e9e8;
    }
}
.profile-empty {
    padding: 26px; border: 1px solid var(--app-line);
    border-radius: 13px 34px 13px 13px; background: var(--app-glass-soft);
}
.profile-empty h2 { margin:0; font:700 1.5rem "RajBold",sans-serif; }
.profile-empty p { color:var(--app-muted); line-height:1.45; }
@media (max-width: 760px) {
    .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .upload-form { grid-template-columns:1fr; }
    .workspace-map { height: 58vh; min-height: 340px; }
}
@media (max-width: 480px) {
    .photo-grid { grid-template-columns:1fr; }
    .location-map { height: 270px; }
    .workspace-map { min-height: 310px; border-top-right-radius: 32px; }
    .field .photo-picker { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 15px; }
    .photo-picker-cta { grid-column: 1 / -1; justify-content: center; }
}