@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap');

:root {
    --bg: #f3efe8;
    --bg-soft: #ebe5dc;
    --panel: rgba(255, 255, 255, 0.74);
    --panel-strong: rgba(255, 255, 255, 0.88);
    --line: rgba(18, 31, 48, 0.09);
    --line-strong: rgba(18, 31, 48, 0.16);
    --text: #101826;
    --text-soft: #5e6a78;
    --navy: #0f2237;
    --blue: #2f7df6;
    --blue-soft: #dce9ff;
    --accent: #7eb3ff;
    --success: #1f9d61;
    --danger: #d14d4d;
    --warning: #c9892e;
    --radius-sm: 14px;
    --radius: 22px;
    --radius-lg: 34px;
    --shadow-soft: 0 24px 60px rgba(15, 34, 55, 0.08);
    --shadow-card: 0 14px 38px rgba(15, 34, 55, 0.07);
    --transition-fast: 0.18s ease;
    --transition-base: 0.28s cubic-bezier(.4, 0, .2, 1);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: 'Manrope', system-ui, sans-serif;
}

body {
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

body::before {
    background:
        radial-gradient(circle at 12% 18%, rgba(47, 125, 246, 0.18), transparent 24%),
        radial-gradient(circle at 88% 14%, rgba(15, 34, 55, 0.08), transparent 18%),
        radial-gradient(circle at 80% 84%, rgba(126, 179, 255, 0.16), transparent 24%);
}

body::after {
    opacity: 0.26;
    background-image:
        linear-gradient(rgba(16, 24, 38, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 24, 38, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, black 32%, transparent 90%);
}

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

button,
input,
textarea,
select {
    font: inherit;
}

.hidden,
.toast.hidden {
    display: none !important;
}

.public-shell,
.site-shell {
    position: relative;
    z-index: 1;
}

body.is-public {
    background:
        radial-gradient(circle at top left, rgba(49, 110, 255, 0.2), transparent 28%),
        radial-gradient(circle at 82% 16%, rgba(64, 140, 255, 0.14), transparent 24%),
        linear-gradient(180deg, #061120 0%, #08182d 38%, #071522 100%);
    color: #edf4ff;
}

body.is-authenticated {
    --bg: #08111d;
    --bg-soft: #0f1b2d;
    --panel: rgba(9, 17, 30, 0.82);
    --panel-strong: rgba(13, 24, 40, 0.92);
    --line: rgba(123, 168, 239, 0.12);
    --line-strong: rgba(155, 196, 255, 0.24);
    --text: #eef4ff;
    --text-soft: #94a9ca;
    --navy: #f4f8ff;
    --blue: #68adff;
    --blue-soft: rgba(104, 173, 255, 0.14);
    --accent: #9fd0ff;
    --shadow-soft: 0 28px 72px rgba(1, 7, 17, 0.52);
    --shadow-card: 0 20px 44px rgba(1, 7, 17, 0.34);
    color-scheme: dark;
    background:
        radial-gradient(circle at 12% 16%, rgba(54, 118, 255, 0.16), transparent 22%),
        radial-gradient(circle at 84% 12%, rgba(70, 141, 255, 0.14), transparent 18%),
        radial-gradient(circle at 76% 82%, rgba(29, 94, 206, 0.12), transparent 18%),
        linear-gradient(180deg, #06101b 0%, #091422 52%, #0b1727 100%);
    color: var(--text);
}

body.is-authenticated::before {
    background:
        radial-gradient(circle at 10% 14%, rgba(104, 173, 255, 0.12), transparent 18%),
        radial-gradient(circle at 78% 18%, rgba(63, 124, 232, 0.12), transparent 16%),
        radial-gradient(circle at 72% 84%, rgba(104, 173, 255, 0.08), transparent 18%);
}

body.is-authenticated::after {
    opacity: 0.06;
    background-image:
        linear-gradient(rgba(212, 228, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 228, 255, 0.06) 1px, transparent 1px);
}

body.is-public::before {
    background:
        radial-gradient(circle at 14% 16%, rgba(66, 139, 255, 0.26), transparent 24%),
        radial-gradient(circle at 82% 10%, rgba(21, 59, 117, 0.36), transparent 18%),
        radial-gradient(circle at 78% 82%, rgba(36, 108, 255, 0.18), transparent 24%);
}

body.is-public::after {
    opacity: 0.1;
    background-image:
        linear-gradient(rgba(197, 221, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(197, 221, 255, 0.08) 1px, transparent 1px);
}

.public-site {
    position: relative;
    z-index: 1;
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
    padding: 28px 0 72px;
}

.public-grid-lines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(90deg, transparent 0, transparent calc(50% - 1px), rgba(141, 185, 255, 0.08) calc(50% - 1px), rgba(141, 185, 255, 0.08) calc(50% + 1px), transparent calc(50% + 1px)),
        linear-gradient(180deg, transparent 0, transparent calc(100% - 1px), rgba(141, 185, 255, 0.04) calc(100% - 1px));
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 92%);
}

.public-glow {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(18px);
    opacity: 0.9;
    z-index: 0;
}

.public-glow-one {
    top: 5%;
    left: -8%;
    background: radial-gradient(circle, rgba(69, 143, 255, 0.2), transparent 68%);
    animation: floatGlow 14s ease-in-out infinite;
}

.public-glow-two {
    right: -8%;
    bottom: 6%;
    background: radial-gradient(circle, rgba(0, 109, 255, 0.18), transparent 68%);
    animation: floatGlow 18s ease-in-out infinite reverse;
}

@keyframes floatGlow {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -14px, 0) scale(1.05);
    }
}

.public-header,
.public-hero-panel,
.metric-card,
.mission-card,
.service-card,
.recruit-card,
.public-flash {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(128, 175, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(12, 26, 46, 0.86), rgba(7, 20, 37, 0.92)),
        rgba(7, 20, 37, 0.92);
    box-shadow:
        0 30px 90px rgba(2, 10, 20, 0.34),
        inset 0 1px 0 rgba(190, 220, 255, 0.06);
    backdrop-filter: blur(16px);
}

.public-header::before,
.public-hero-panel::before,
.metric-card::before,
.mission-card::before,
.service-card::before,
.recruit-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(110, 165, 255, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(63, 128, 255, 0.12), transparent 28%);
}

.public-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 18px 22px;
    border-radius: 24px;
    position: sticky;
    top: 16px;
    z-index: 12;
    transition:
        transform var(--transition-base),
        background var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base),
        padding var(--transition-base);
}

body.is-public.is-scrolled .public-header {
    padding: 14px 18px;
    background:
        linear-gradient(180deg, rgba(10, 24, 43, 0.94), rgba(7, 20, 37, 0.96)),
        rgba(7, 20, 37, 0.96);
    border-color: rgba(143, 186, 255, 0.24);
    box-shadow:
        0 24px 60px rgba(2, 10, 20, 0.42),
        inset 0 1px 0 rgba(190, 220, 255, 0.08);
}

.public-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.public-brand-mark {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(56, 126, 255, 0.22), rgba(21, 58, 118, 0.34));
    border: 1px solid rgba(112, 170, 255, 0.24);
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.public-brand-copy {
    display: grid;
    gap: 0.18rem;
}

.public-brand-copy strong,
.public-nav a,
.section-heading h2,
.mission-card h3,
.service-card h3,
.recruit-card h2,
.status-item strong {
    color: #f3f7ff;
}

.public-brand-copy span,
.public-nav a,
.public-hero-copy p,
.metric-card p,
.mission-card p,
.service-card p,
.section-note,
.recruit-card p,
.public-status-card p {
    color: rgba(214, 227, 248, 0.72);
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.public-nav a {
    font-size: 0.94rem;
    transition: color var(--transition-fast), opacity var(--transition-fast);
}

.public-nav a:hover {
    color: #fff;
}

.public-login,
.hero-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.15rem;
    border-radius: 999px;
    border: 1px solid rgba(115, 173, 255, 0.18);
    background: rgba(13, 32, 58, 0.72);
    color: #f3f7ff;
    font-weight: 700;
    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast),
        background var(--transition-fast),
        box-shadow var(--transition-fast);
}

.public-login:hover,
.hero-link:hover {
    transform: translateY(-2px);
    border-color: rgba(126, 178, 255, 0.34);
    background: rgba(19, 42, 74, 0.86);
    box-shadow: 0 16px 36px rgba(3, 12, 24, 0.24);
}

.public-login.disabled,
.hero-link.disabled {
    opacity: 0.6;
    cursor: default;
}

.public-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.72fr);
    gap: 1rem;
    margin-top: 18px;
    padding: 36px;
    border-radius: 34px;
}

.public-hero-copy,
.public-status-card {
    will-change: transform;
    transition: transform 0.16s linear;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #8ebdff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.public-hero-copy h1 {
    margin: 14px 0 0;
    max-width: 760px;
    color: #f7fbff;
    font-family: 'Sora', sans-serif;
    font-size: clamp(3.4rem, 7vw, 6.8rem);
    line-height: 0.94;
    letter-spacing: -0.05em;
}

.public-hero-copy p {
    max-width: 520px;
    margin: 1rem 0 0;
    font-size: 1.05rem;
    line-height: 1.68;
}

.public-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.8rem;
}

.hero-link.primary {
    background: linear-gradient(180deg, #358bff, #1a63e2);
    border-color: rgba(118, 176, 255, 0.22);
    box-shadow: 0 22px 48px rgba(24, 99, 226, 0.24);
}

.public-status-card {
    padding: 22px;
    border-radius: 26px;
    border: 1px solid rgba(128, 175, 255, 0.14);
    background: rgba(12, 28, 49, 0.72);
}

.status-line {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #dfeaff;
    font-size: 0.86rem;
    font-weight: 700;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #4ee08d;
    box-shadow: 0 0 0 8px rgba(78, 224, 141, 0.12);
}

.status-stack {
    display: grid;
    gap: 0.8rem;
    margin-top: 1.25rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(164, 199, 255, 0.08);
}

.status-item span,
.metric-card span,
.mission-index,
.service-pill {
    color: #8db9ff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.public-status-card p {
    margin: 1rem 0 0;
    line-height: 1.65;
}

.public-flash {
    margin-top: 16px;
}

.public-metrics,
.mission-grid,
.service-grid {
    display: grid;
    gap: 1rem;
}

.public-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.metric-card,
.mission-card,
.service-card,
.recruit-card {
    padding: 24px;
    border-radius: 28px;
}

.metric-card strong {
    display: block;
    margin-top: 0.7rem;
    color: #f7fbff;
    font-family: 'Sora', sans-serif;
    font-size: 1.8rem;
    letter-spacing: -0.05em;
}

.metric-card p {
    margin: 0.65rem 0 0;
    line-height: 1.6;
}

.public-section {
    margin-top: 18px;
}

.section-heading {
    margin-bottom: 1rem;
}

.section-heading h2 {
    margin: 0.5rem 0 0;
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    letter-spacing: -0.04em;
}

.section-heading.split {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1.2rem;
}

.section-note {
    max-width: 420px;
    margin: 0;
    line-height: 1.6;
}

.mission-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
}

.mission-card,
.service-card {
    min-height: 220px;
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.mission-card:hover,
.service-card:hover,
.metric-card:hover,
.recruit-card:hover {
    transform: translateY(-4px);
    border-color: rgba(131, 181, 255, 0.28);
    box-shadow:
        0 34px 100px rgba(2, 10, 20, 0.38),
        inset 0 1px 0 rgba(190, 220, 255, 0.08);
}

.mission-card h3,
.service-card h3 {
    margin: 1rem 0 0;
    font-family: 'Sora', sans-serif;
    font-size: 1.45rem;
    letter-spacing: -0.03em;
}

.mission-card p,
.service-card p {
    margin: 0.75rem 0 0;
    line-height: 1.65;
}

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

.service-pill {
    display: inline-flex;
    margin-bottom: 0.2rem;
}

.recruit-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.recruit-card h2 {
    margin: 0.5rem 0 0;
    font-family: 'Sora', sans-serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: -0.04em;
}

.recruit-card p {
    max-width: 620px;
    margin: 0.85rem 0 0;
    line-height: 1.65;
}

[data-reveal] {
    opacity: 0;
    transform: translate3d(0, 34px, 0) scale(0.985);
    transition:
        opacity 0.8s cubic-bezier(.22, 1, .36, 1),
        transform 0.8s cubic-bezier(.22, 1, .36, 1),
        border-color var(--transition-base),
        box-shadow var(--transition-base);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.public-header[data-reveal] {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
}

.public-min-header {
    position: relative;
    top: auto;
    z-index: 4;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 0 0 24px;
    border-bottom: 1px solid rgba(141, 185, 255, 0.12);
    transition:
        padding var(--transition-base),
        border-color var(--transition-base),
        background var(--transition-base),
        backdrop-filter var(--transition-base);
}

body.is-public.is-scrolled .public-min-header {
    padding: 0 0 24px;
    backdrop-filter: none;
    background: transparent;
    border-color: rgba(141, 185, 255, 0.12);
}

.public-min-header .public-brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(34, 100, 208, 0.14);
    border: 1px solid rgba(141, 185, 255, 0.18);
    box-shadow: none;
}

.public-min-header .public-nav {
    justify-content: center;
}

.public-min-header .public-login {
    background: transparent;
    border-color: rgba(141, 185, 255, 0.16);
    box-shadow: none;
}

.public-stage {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.55fr);
    gap: 3rem;
    min-height: calc(100vh - 180px);
    align-items: end;
    padding: 5.5rem 0 4rem;
}

.stage-copy h1 {
    margin: 0.6rem 0 0;
    max-width: 860px;
    color: #f7fbff;
    font-family: 'Sora', sans-serif;
    font-size: clamp(4rem, 9vw, 8.8rem);
    line-height: 0.9;
    letter-spacing: -0.07em;
}

.stage-copy p {
    max-width: 520px;
    margin: 1.2rem 0 0;
    color: rgba(221, 232, 247, 0.78);
    font-size: 1.05rem;
    line-height: 1.78;
}

.stage-side {
    display: grid;
    gap: 1rem;
    align-self: center;
    padding-left: 1rem;
}

.stage-note {
    display: grid;
    gap: 0.45rem;
    padding: 0.95rem 0 1rem;
    border-bottom: 1px solid rgba(141, 185, 255, 0.14);
}

.stage-note span,
.strip-item span,
.line-index,
.service-line-tag {
    color: #8db9ff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.stage-note strong {
    color: #f6fbff;
    font-family: 'Sora', sans-serif;
    font-size: 1.3rem;
    letter-spacing: -0.04em;
}

.stage-note p {
    margin: 0;
    color: rgba(214, 227, 248, 0.7);
    line-height: 1.62;
}

.public-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.4rem 0 2.2rem;
    border-top: 1px solid rgba(141, 185, 255, 0.12);
    border-bottom: 1px solid rgba(141, 185, 255, 0.12);
}

.strip-item {
    display: grid;
    gap: 0.55rem;
}

.strip-item strong {
    color: #f7fbff;
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.3rem, 3vw, 2rem);
    letter-spacing: -0.05em;
}

.public-band {
    position: relative;
    z-index: 1;
    padding: 5rem 0 0;
}

.section-heading {
    margin-bottom: 1.6rem;
}

.section-heading h2 {
    max-width: 760px;
    color: #f5f9ff;
}

.section-note {
    max-width: 460px;
    margin: 0;
    color: rgba(214, 227, 248, 0.66);
}

.line-list {
    border-top: 1px solid rgba(141, 185, 255, 0.12);
}

.line-item,
.service-line,
.recruit-line {
    display: grid;
    gap: 0.9rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid rgba(141, 185, 255, 0.12);
}

.line-item {
    grid-template-columns: 88px minmax(0, 280px) minmax(0, 1fr);
    align-items: start;
    column-gap: 1.4rem;
}

.line-item h3,
.service-line h3,
.recruit-line h2 {
    margin: 0;
    color: #f7fbff;
    font-family: 'Sora', sans-serif;
    letter-spacing: -0.04em;
}

.line-item h3,
.service-line h3 {
    font-size: 1.5rem;
}

.line-item p,
.service-line p,
.recruit-line p {
    margin: 0;
    color: rgba(214, 227, 248, 0.72);
    line-height: 1.72;
}

.split-band .section-heading {
    margin-bottom: 2rem;
}

.service-lines {
    border-top: 1px solid rgba(141, 185, 255, 0.12);
}

.service-line {
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: start;
    column-gap: 1.4rem;
}

.service-line-tag {
    padding-top: 0.35rem;
}

.recruit-line {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
}

.recruit-line h2 {
    font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.public-flash {
    margin-top: 1rem;
    padding: 0.9rem 0;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid rgba(141, 185, 255, 0.18);
    background: transparent;
    box-shadow: none;
    color: #dfeaff;
}

.public-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.ambient {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(20px);
    opacity: 0.8;
}

.ambient-one {
    width: 360px;
    height: 360px;
    top: 10%;
    left: 4%;
    background: radial-gradient(circle, rgba(47, 125, 246, 0.18), transparent 70%);
}

.ambient-two {
    width: 420px;
    height: 420px;
    right: -4%;
    bottom: -2%;
    background: radial-gradient(circle, rgba(15, 34, 55, 0.11), transparent 70%);
}

.layout-frame {
    width: min(1280px, 100%);
}

.public-frame {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(340px, 0.7fr);
    gap: 1.2rem;
    align-items: stretch;
}

.public-hero,
.auth-card,
.sidebar,
.content-area,
.list-block,
.config-panel,
.detail-shell,
.hero-panel,
.user-card,
.portal-header,
.inline-alert,
.alert,
.detail-card,
.readonly-card,
.member-card {
    backdrop-filter: blur(16px);
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-soft);
}

.public-hero,
.auth-card,
.portal-header,
.hero-panel,
.list-block,
.config-panel,
.detail-shell,
.user-card {
    border-radius: var(--radius-lg);
}

.public-hero,
.auth-card {
    min-height: 720px;
    position: relative;
    overflow: hidden;
}

.public-hero {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.public-hero::before,
.auth-card::before,
.portal-header::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 26%),
        radial-gradient(circle at top right, rgba(47, 125, 246, 0.12), transparent 30%);
}

.eyebrow-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.48rem 0.78rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.55);
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 800;
}

.eyebrow.muted {
    color: var(--text-soft);
}

.hero-copy h1,
.portal-intro h1,
.hero-panel h1,
.auth-main h2 {
    margin: 0;
    font-family: 'Sora', sans-serif;
    letter-spacing: -0.04em;
}

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

.hero-copy h1 {
    font-size: clamp(3.8rem, 8vw, 7.6rem);
    line-height: 0.92;
}

.hero-copy p,
.auth-main p,
.hero-meta,
.brand-sub,
.card-sub,
.card-meta,
.empty-state,
.field-label,
.auth-domain,
.auth-bottomline {
    color: var(--text-soft);
}

.hero-copy p {
    margin: 1rem 0 0;
    max-width: 440px;
    font-size: 1.06rem;
    line-height: 1.55;
}

.hero-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(16, 24, 38, 0.14), rgba(16, 24, 38, 0.03));
    margin: 1.2rem 0;
}

.feature-strip,
.auth-bottomline,
.card-meta,
.pill-row,
.member-grid,
.checkbox-grid,
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.feature-pill,
.pill,
.badge,
.list-count,
.feature-strip .feature-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.42rem 0.82rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.58);
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.auth-topline {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.auth-main h2 {
    font-size: clamp(2.3rem, 5vw, 3.4rem);
    line-height: 0.95;
}

.auth-main p {
    margin: 0.7rem 0 0;
    max-width: 280px;
    line-height: 1.55;
}

.auth-meta-card {
    padding: 1rem 1.05rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.56);
}

.meta-kicker {
    display: inline-flex;
    margin-bottom: 0.45rem;
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.auth-meta-card strong {
    display: block;
    font-size: 1.05rem;
}

.auth-meta-card p {
    margin: 0.45rem 0 0;
    color: var(--text-soft);
    line-height: 1.5;
}

.discord-btn,
.action-btn,
.logout-link,
.nav-item {
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        border-color var(--transition-fast),
        background var(--transition-fast),
        color var(--transition-fast);
}

.discord-btn,
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    padding: 0.9rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(47, 125, 246, 0.22);
    background: linear-gradient(180deg, #2f7df6, #1f67da);
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.01em;
    box-shadow: 0 16px 34px rgba(47, 125, 246, 0.22);
    cursor: pointer;
}

body.is-authenticated .action-btn {
    border-color: rgba(104, 173, 255, 0.16);
    background: linear-gradient(180deg, #5ea8ff, #3d86f0);
    box-shadow:
        0 16px 34px rgba(39, 102, 207, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.discord-btn:hover,
.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(47, 125, 246, 0.28);
}

.action-btn.muted {
    background: rgba(255, 255, 255, 0.56);
    color: var(--text-soft);
    border-color: var(--line);
    box-shadow: none;
}

body.is-authenticated .action-btn.muted {
    background: rgba(255, 255, 255, 0.04);
    color: #c0d0e7;
    border-color: rgba(129, 173, 243, 0.12);
}

.action-btn.danger {
    background: linear-gradient(180deg, #dc5f5f, #c24747);
    border-color: rgba(209, 77, 77, 0.22);
    box-shadow: 0 16px 34px rgba(209, 77, 77, 0.16);
}

body.is-authenticated .action-btn.danger {
    background: linear-gradient(180deg, #e06c6c, #c84d4d);
}

.auth-bottomline {
    justify-content: space-between;
    align-items: center;
    padding-top: 0.2rem;
    border-top: 1px solid rgba(16, 24, 38, 0.08);
    font-size: 0.92rem;
}

.site-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.25rem;
}

.sidebar {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

body.is-authenticated .sidebar {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(14, 25, 41, 0.96), rgba(9, 17, 29, 0.94));
    border: 1px solid rgba(132, 175, 243, 0.12);
    box-shadow:
        0 24px 60px rgba(1, 8, 18, 0.45),
        inset 0 1px 0 rgba(196, 221, 255, 0.04);
}

body.is-authenticated .sidebar::before,
body.is-authenticated .portal-header::before,
body.is-authenticated .hero-panel::before,
body.is-authenticated .list-block::before,
body.is-authenticated .config-panel::before,
body.is-authenticated .detail-shell::before,
body.is-authenticated .user-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
        radial-gradient(circle at top right, rgba(104, 173, 255, 0.08), transparent 26%);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-mark,
.brand-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(16, 24, 38, 0.94), rgba(16, 24, 38, 0.82));
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    letter-spacing: 0.06em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.is-authenticated .brand-mark,
body.is-authenticated .brand-icon {
    background:
        radial-gradient(circle at 30% 30%, rgba(110, 178, 255, 0.24), transparent 48%),
        linear-gradient(180deg, rgba(27, 44, 69, 0.98), rgba(10, 19, 32, 0.94));
    border: 1px solid rgba(137, 176, 239, 0.16);
    box-shadow:
        0 18px 28px rgba(2, 8, 18, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.brand-name {
    display: block;
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.brand-sub {
    display: block;
    margin-top: 0.28rem;
    font-size: 0.92rem;
}

.sidebar-nav {
    display: grid;
    gap: 0.5rem;
}

.nav-item {
    width: 100%;
    min-height: 52px;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-soft);
    text-align: left;
    font-weight: 700;
    cursor: pointer;
}

.nav-item:hover {
    transform: translateX(2px);
    color: var(--navy);
    background: rgba(255, 255, 255, 0.56);
}

body.is-authenticated .nav-item:hover {
    background: linear-gradient(180deg, rgba(104, 173, 255, 0.08), rgba(255, 255, 255, 0.02));
    border-color: rgba(131, 184, 255, 0.1);
}

.nav-item.active {
    color: var(--navy);
    border-color: rgba(47, 125, 246, 0.18);
    background: linear-gradient(180deg, rgba(47, 125, 246, 0.12), rgba(255, 255, 255, 0.66));
    box-shadow: var(--shadow-card);
}

body.is-authenticated .nav-item.active {
    border-color: rgba(104, 173, 255, 0.2);
    background: linear-gradient(180deg, rgba(104, 173, 255, 0.16), rgba(17, 28, 45, 0.96));
    box-shadow:
        0 12px 26px rgba(2, 8, 18, 0.24),
        inset 0 1px 0 rgba(190, 219, 255, 0.06);
}

.sidebar-spacer {
    flex: 1;
}

.user-card {
    padding: 0.95rem;
}

.minimal-user-card {
    display: grid;
    gap: 0.75rem;
}

.user-avatar {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    object-fit: cover;
}

.user-avatar.fallback {
    display: grid;
    place-items: center;
    background: var(--navy);
    color: #fff;
    font-weight: 800;
}

.user-copy strong {
    display: block;
    color: var(--navy);
}

.user-copy span {
    display: block;
    margin-top: 0.2rem;
}

.logout-link {
    color: var(--blue);
    font-weight: 800;
}

.content-area {
    padding: 1rem;
}

body.is-authenticated .content-area {
    padding: 0.15rem 0.5rem 0.5rem 0;
}

.portal-header {
    padding: 1.15rem 1.2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

body.is-authenticated .portal-header,
body.is-authenticated .hero-panel,
body.is-authenticated .list-block,
body.is-authenticated .config-panel,
body.is-authenticated .detail-shell,
body.is-authenticated .user-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(14, 24, 39, 0.94), rgba(10, 18, 31, 0.9));
    border: 1px solid rgba(129, 173, 243, 0.12);
    box-shadow:
        0 22px 52px rgba(1, 8, 18, 0.34),
        inset 0 1px 0 rgba(198, 222, 255, 0.04);
}

body.is-authenticated .portal-header {
    padding: 1.35rem 1.45rem;
}

.portal-intro h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 0.95;
}

.portal-header-stats,
.stats-row,
.dashboard-grid,
.detail-grid,
.dual-grid,
.split-layout {
    display: grid;
    gap: 0.8rem;
}

.portal-header-stats {
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    min-width: min(360px, 100%);
}

.header-stat,
.stat-card,
.portal-header-stats .header-stat {
    padding: 0.92rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.54);
}

body.is-authenticated .header-stat,
body.is-authenticated .stat-card,
body.is-authenticated .portal-header-stats .header-stat {
    background: linear-gradient(180deg, rgba(104, 173, 255, 0.08), rgba(255, 255, 255, 0.03));
    border-color: rgba(129, 173, 243, 0.12);
}

.header-stat span,
.stat-card span,
.detail-stat span {
    display: block;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.68rem;
    font-weight: 800;
}

.header-stat strong,
.stat-card strong,
.detail-stat strong {
    display: block;
    margin-top: 0.38rem;
    color: var(--navy);
    font-size: 1.35rem;
    font-weight: 800;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: panelIn 0.26s ease both;
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

.hero-panel,
.list-block,
.config-panel,
.detail-shell {
    padding: 1.1rem;
}

.minimal-hero-panel h1 {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    line-height: 1;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    color: var(--blue);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.hero-meta {
    margin-top: 0.55rem;
    line-height: 1.5;
}

.stats-row {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

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

.split-layout {
    grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1.25fr);
}

.detail-column {
    display: grid;
    gap: 1rem;
}

.list-block-head,
.card-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.list-title,
.config-title,
.detail-title {
    color: var(--navy);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.list-stack {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.9rem;
    max-height: 62vh;
    overflow: auto;
    padding-right: 0.15rem;
}

.list-card,
.detail-card,
.member-card,
.readonly-card {
    border-radius: var(--radius);
    border: 1px solid rgba(16, 24, 38, 0.08);
    background: var(--panel-strong);
    box-shadow: var(--shadow-card);
}

body.is-authenticated .list-card,
body.is-authenticated .detail-card,
body.is-authenticated .member-card,
body.is-authenticated .readonly-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
    border-color: rgba(129, 173, 243, 0.1);
    box-shadow:
        0 16px 32px rgba(1, 8, 18, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.list-card {
    padding: 0.95rem;
    cursor: pointer;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.list-card:hover {
    transform: translateY(-1px);
    border-color: rgba(47, 125, 246, 0.22);
}

.list-card.active {
    border-color: rgba(47, 125, 246, 0.24);
    background: linear-gradient(180deg, rgba(220, 233, 255, 0.86), rgba(255, 255, 255, 0.92));
}

body.is-authenticated .list-card:hover {
    transform: translateY(-2px);
    border-color: rgba(104, 173, 255, 0.18);
    background: linear-gradient(180deg, rgba(104, 173, 255, 0.08), rgba(255, 255, 255, 0.03));
}

body.is-authenticated .list-card.active {
    border-color: rgba(104, 173, 255, 0.24);
    background: linear-gradient(180deg, rgba(104, 173, 255, 0.14), rgba(255, 255, 255, 0.04));
    box-shadow:
        0 20px 36px rgba(1, 8, 18, 0.24),
        inset 0 1px 0 rgba(196, 221, 255, 0.05);
}

body.is-authenticated .list-card.active .detail-title,
body.is-authenticated .list-card.active .card-sub,
body.is-authenticated .list-card.active .card-meta,
body.is-authenticated .list-card.active .card-meta span {
    color: #eef5ff;
}

.card-sub {
    margin-top: 0.24rem;
    line-height: 1.45;
}

.card-meta {
    margin-top: 0.55rem;
    font-size: 0.86rem;
}

.detail-shell {
    min-height: 280px;
}

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

.detail-card {
    padding: 1rem;
    margin-bottom: 0.85rem;
}

.pill-row,
.member-grid,
.checkbox-grid {
    margin-top: 0.75rem;
}

.pill {
    gap: 0.34rem;
    color: var(--navy);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.84rem;
    font-weight: 700;
}

.badge.pending,
.badge.infraction {
    color: #225ea9;
    background: #e7f0ff;
    border-color: rgba(34, 94, 169, 0.12);
}

.badge.claimed,
.badge.open,
.badge.active,
.badge.misdemeanor {
    color: #17784b;
    background: #e1f5eb;
    border-color: rgba(23, 120, 75, 0.12);
}

.badge.investigation,
.badge.medium {
    color: #93611c;
    background: #fff3dd;
    border-color: rgba(147, 97, 28, 0.12);
}

.badge.felony {
    color: #aa3d3d;
    background: #fbe7e7;
    border-color: rgba(170, 61, 61, 0.12);
}

.badge.closed,
.badge.archived,
.badge.expired,
.badge.high,
.badge.critical {
    color: #9d3c3c;
    background: #fbe7e7;
    border-color: rgba(170, 61, 61, 0.12);
}

.badge.low {
    color: #536172;
    background: #edf1f5;
    border-color: rgba(83, 97, 114, 0.12);
}

.readonly-card {
    padding: 0.9rem 1rem;
    line-height: 1.55;
}

.form-stack {
    display: grid;
    gap: 0.9rem;
}

.field-group {
    display: grid;
    gap: 0.35rem;
}

.field-label {
    font-size: 0.8rem;
    font-weight: 700;
}

.field-input {
    width: 100%;
    min-height: 52px;
    padding: 0.85rem 0.95rem;
    border-radius: 16px;
    border: 1px solid rgba(16, 24, 38, 0.08);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

select.field-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 3rem;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(201, 222, 255, 0.78) 50%),
        linear-gradient(135deg, rgba(201, 222, 255, 0.78) 50%, transparent 50%);
    background-position:
        calc(100% - 1.3rem) calc(50% - 0.16rem),
        calc(100% - 0.95rem) calc(50% - 0.16rem);
    background-size: 0.42rem 0.42rem, 0.42rem 0.42rem;
    background-repeat: no-repeat;
}

.field-input option,
.field-input optgroup {
    background: #0c1626;
    color: #eef4ff;
}

.field-input:focus {
    border-color: rgba(47, 125, 246, 0.28);
    box-shadow: 0 0 0 4px rgba(47, 125, 246, 0.12);
    background: rgba(255, 255, 255, 0.92);
}

.field-textarea {
    min-height: 130px;
    resize: vertical;
}

.member-card {
    min-width: 200px;
    padding: 0.8rem 0.9rem;
}

.checkbox-grid .member-card {
    cursor: pointer;
}

.checkbox-grid input[type='checkbox'] {
    accent-color: var(--blue);
}

.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 40;
    min-width: 260px;
    max-width: 360px;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.9);
    color: var(--navy);
    box-shadow: var(--shadow-soft);
    animation: toastIn 0.2s ease;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
}

.toast.success {
    border-color: rgba(31, 157, 97, 0.16);
}

.toast.error {
    border-color: rgba(209, 77, 77, 0.16);
}

.toast.warning {
    border-color: rgba(201, 137, 46, 0.16);
}

.direction-shell .sidebar {
    gap: 1.15rem;
}

.direction-portal-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.25rem 1.4rem;
}

.portal-copy {
    margin: 0.55rem 0 0;
    max-width: 620px;
    color: var(--text-soft);
    line-height: 1.65;
}

body.is-authenticated .readonly-card,
body.is-authenticated .field-input,
body.is-authenticated .member-card,
body.is-authenticated .detail-stat,
body.is-authenticated .status-toggle {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
    border-color: rgba(145, 185, 248, 0.1);
}

body.is-authenticated .field-input {
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

body.is-authenticated .field-input:focus {
    background: linear-gradient(180deg, rgba(104, 173, 255, 0.08), rgba(255, 255, 255, 0.03));
    border-color: rgba(104, 173, 255, 0.22);
    box-shadow:
        0 0 0 4px rgba(104, 173, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.is-authenticated .field-input option,
body.is-authenticated .field-input optgroup {
    background: #0b1320;
    color: #eef4ff;
}

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

.status-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid var(--line);
}

.map-panel {
    position: relative;
    overflow: hidden;
    padding: 1.15rem;
    border-radius: 28px;
    border: 1px solid rgba(145, 187, 248, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
        rgba(8, 16, 28, 0.72);
    box-shadow:
        0 24px 52px rgba(1, 8, 18, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.live-ops-panel {
    margin-bottom: 1.25rem;
}

.map-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.95rem;
}

.map-panel-copy {
    margin: 0.3rem 0 0;
    max-width: 560px;
    color: var(--text-soft);
    line-height: 1.55;
}

.map-panel-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.map-summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 42px;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(149, 191, 250, 0.14);
    background: rgba(10, 20, 34, 0.76);
    color: var(--text-soft);
}

.map-summary-chip strong {
    color: var(--text);
    font-size: 0.92rem;
}

.map-style-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 999px;
    border: 1px solid rgba(149, 191, 250, 0.14);
    background: rgba(9, 18, 31, 0.9);
}

.map-style-btn {
    border: none;
    min-width: 86px;
    min-height: 38px;
    padding: 0 0.95rem;
    border-radius: 999px;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.map-style-btn.active {
    background: linear-gradient(135deg, rgba(63, 126, 255, 0.32), rgba(111, 177, 255, 0.18));
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.live-map {
    height: 420px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(145, 187, 248, 0.1);
    background:
        radial-gradient(circle at 16% 18%, rgba(84, 143, 255, 0.12), transparent 24%),
        linear-gradient(180deg, #07101b 0%, #081523 100%);
}

.live-map-dispatch {
    height: 360px;
}

.dispatch-visual-column {
    gap: 1rem;
}

.dispatch-map-panel {
    min-height: 0;
}

.site-map-icon-wrapper {
    background: transparent;
    border: none;
}

.site-map-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #f7fbff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.32);
}

.site-map-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    animation: siteMapPulse 2.2s ease-out infinite;
}

.site-map-icon.vehicle {
    background: linear-gradient(135deg, #2e7bff, #70b4ff);
    box-shadow: 0 12px 22px rgba(34, 110, 255, 0.28);
}

.site-map-icon.vehicle::before {
    border: 1px solid rgba(92, 156, 255, 0.44);
}

.site-map-icon.dispatch {
    background: linear-gradient(135deg, #ff7e38, #ffb35a);
    box-shadow: 0 12px 22px rgba(255, 127, 56, 0.24);
}

.site-map-icon.dispatch::before {
    border: 1px solid rgba(255, 181, 104, 0.46);
}

.site-map-icon span {
    position: relative;
    z-index: 1;
}

@keyframes siteMapPulse {
    0% {
        transform: scale(0.92);
        opacity: 0.62;
    }
    70% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.leaflet-container {
    background: #07101b !important;
    font: inherit;
}

.leaflet-control-zoom a {
    background: rgba(8, 18, 31, 0.92) !important;
    color: #eef4ff !important;
    border-bottom-color: rgba(145, 187, 248, 0.14) !important;
}

.leaflet-control-zoom a:hover {
    background: rgba(34, 98, 212, 0.22) !important;
}

.leaflet-tooltip {
    padding: 0.7rem 0.8rem !important;
    border-radius: 16px !important;
    border: 1px solid rgba(145, 187, 248, 0.14) !important;
    background: rgba(8, 16, 28, 0.94) !important;
    color: #eef4ff !important;
    box-shadow: 0 16px 34px rgba(1, 8, 18, 0.28) !important;
}

.leaflet-tooltip-top:before {
    border-top-color: rgba(8, 16, 28, 0.94) !important;
}

.site-map-tooltip-title {
    font-weight: 700;
}

.site-map-tooltip-copy {
    margin-top: 0.2rem;
    font-size: 0.84rem;
    color: #d8e8ff;
}

.site-map-tooltip-meta {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: #94a9ca;
}

.status-btn {
    min-height: 42px;
    padding: 0.65rem 0.95rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-soft);
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.status-btn.active {
    background: linear-gradient(180deg, rgba(47, 125, 246, 0.14), rgba(255, 255, 255, 0.82));
    color: var(--navy);
    box-shadow: var(--shadow-card);
}

body.is-authenticated .status-btn.active {
    background: linear-gradient(180deg, rgba(104, 173, 255, 0.18), rgba(255, 255, 255, 0.05));
}

.profile-photo-shell {
    margin: 1rem 0 0.25rem;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(16, 24, 38, 0.08);
    background: rgba(255, 255, 255, 0.64);
}

.profile-photo {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: cover;
}

.detail-grid {
    display: grid;
    gap: 0.8rem;
    margin: 0.9rem 0;
}

.detail-stat {
    display: grid;
    gap: 0.28rem;
    min-height: 86px;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.56);
}

.detail-stat span {
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 700;
}

.detail-stat strong {
    color: var(--navy);
    line-height: 1.45;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: grid;
    gap: 1rem;
}

.inline-alert,
.alert {
    padding: 0.9rem 1rem;
    border-radius: 18px;
    margin-bottom: 1rem;
}

.alert.warning,
.inline-alert.warning {
    color: #8d5b17;
}

.alert.error,
.inline-alert.error {
    color: #9d3c3c;
}

.alert.success,
.inline-alert.success {
    color: #17784b;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(16, 24, 38, 0.14);
    border: 2px solid transparent;
    background-clip: padding-box;
}

@media (max-width: 1180px) {
    .public-stage,
    .line-item,
    .service-line,
    .recruit-line,
    .dashboard-grid,
    .public-header,
    .section-heading.split,
    .public-frame,
    .site-shell,
    .split-layout {
        grid-template-columns: 1fr;
    }

    .public-stage {
        min-height: auto;
        gap: 2rem;
        padding: 4.5rem 0 3rem;
    }

    .public-header,
    .section-heading.split,
    .recruit-card {
        display: grid;
    }

    .public-min-header {
        grid-template-columns: 1fr auto;
    }

    .public-min-header .public-nav {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .public-hero-panel,
    .public-metrics,
    .mission-grid,
    .service-grid {
        grid-template-columns: 1fr;
    }

    .public-hero,
    .auth-card {
        min-height: auto;
    }

    .site-shell {
        padding: 0.8rem;
    }

    .sidebar {
        min-height: 0;
    }

    .portal-header {
        display: grid;
    }

    .portal-header-stats {
        min-width: 0;
    }

    .map-panel-head {
        display: grid;
    }

    .map-panel-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .public-site {
        width: min(100% - 24px, 100%);
        padding: 16px 0 40px;
    }

    .public-min-header {
        top: 10px;
        gap: 1rem;
        padding: 0 0 16px;
    }

    .public-nav {
        display: none;
    }

    .public-login,
    .hero-link {
        width: 100%;
    }

    .public-stage {
        padding: 3.2rem 0 2.2rem;
        gap: 1.5rem;
    }

    .stage-copy h1 {
        font-size: clamp(2.9rem, 15vw, 4.8rem);
    }

    .public-strip {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .line-item,
    .service-line,
    .recruit-line {
        gap: 0.75rem;
    }

    .public-shell,
    .content-area,
    .sidebar {
        padding: 1rem;
    }

    .public-hero,
    .auth-card,
    .portal-header,
    .hero-panel,
    .map-panel,
    .list-block,
    .config-panel,
    .detail-shell {
        padding: 1rem;
        border-radius: 24px;
    }

    .hero-copy h1 {
        font-size: clamp(2.8rem, 15vw, 4.8rem);
    }

    .portal-header-stats,
    .stats-row,
    .detail-grid,
    .dual-grid {
        grid-template-columns: 1fr;
    }

    .live-map,
    .live-map-dispatch {
        height: 300px;
    }

    .auth-topline,
    .auth-bottomline,
    .card-meta,
    .feature-strip {
        display: grid;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
