:root {
    --bg: #07111f;
    --bg-soft: rgba(13, 29, 48, 0.78);
    --panel: rgba(9, 20, 35, 0.88);
    --panel-border: rgba(138, 177, 255, 0.14);
    --text: #edf4ff;
    --muted: #93a6c4;
    --accent: #52d6a1;
    --accent-2: #60a5fa;
    --danger: #ff6b6b;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(82, 214, 161, 0.15), transparent 30%),
        radial-gradient(circle at right, rgba(96, 165, 250, 0.18), transparent 25%),
        linear-gradient(180deg, #09111d 0%, #040812 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}

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

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

.app-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 0 18px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(138, 177, 255, 0.16);
}

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

.site-logo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    flex-shrink: 0;
    filter: drop-shadow(0 14px 26px rgba(82, 214, 161, 0.12));
    transition: transform 0.18s ease, filter 0.18s ease;
}

.brand-link:hover .site-logo,
.login-brand:hover .site-logo {
    transform: translateY(-1px) scale(1.02);
    filter: drop-shadow(0 16px 30px rgba(82, 214, 161, 0.2));
}

.app-title-block {
    display: grid;
    gap: 6px;
}

.brand-title {
    display: block;
    margin: 6px 0 8px;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
}

.brand-copy {
    display: block;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.login-brand {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 10px 10px;
    border: 1px solid rgba(138, 177, 255, 0.14);
    border-radius: 20px;
    background: rgba(9, 20, 35, 0.78);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    color: var(--text);
    font-weight: 800;
}

.login-brand .site-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.app-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.hero {
    display: grid;
    grid-template-columns: 1.6fr 0.9fr;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 22px;
}

.hero-copy,
.hero-card,
.stat-card,
.table-section,
.notice {
    background: var(--bg-soft);
    backdrop-filter: blur(16px);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
}

.hero-copy {
    border-radius: 18px;
    padding: 26px 28px;
}

.hero-copy h1 {
    font-size: 2.7rem;
    line-height: 1.05;
    margin: 8px 0 14px;
    letter-spacing: 0;
    max-width: none;
}

.hero-text {
    max-width: 54ch;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.hero-card {
    border-radius: 18px;
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(160deg, rgba(82, 214, 161, 0.18), rgba(96, 165, 250, 0.08)),
        var(--panel);
}

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

.dashboard-tabs {
    display: flex;
    gap: 12px;
    margin: 0 0 20px;
    flex-wrap: wrap;
}

.dashboard-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(138, 177, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-weight: 700;
}

.dashboard-tab.is-active {
    background: linear-gradient(135deg, rgba(82, 214, 161, 0.22), rgba(96, 165, 250, 0.18));
    border-color: rgba(82, 214, 161, 0.4);
}

.dashboard-tab.is-disabled {
    color: var(--muted);
    opacity: 0.7;
}

.module-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 18px;
}

.module-title h2 {
    margin: 6px 0 0;
    font-size: 1.65rem;
}

.module-title p:not(.eyebrow) {
    max-width: 48ch;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    text-align: right;
}

.weather-summary {
    display: grid;
    justify-items: end;
    gap: 8px;
    max-width: 52ch;
    color: var(--muted);
    line-height: 1.55;
    text-align: right;
}

.weather-summary small,
.stat-card small {
    color: var(--muted);
}

.hero-admin {
    align-items: start;
}

.admin-actions {
    gap: 12px;
}

.hero-card-label,
.eyebrow,
.stat-card span,
.asset-cell span,
.section-head p {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
}

.hero-card strong {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    margin: 10px 0 16px;
}

.hero-card-delta {
    font-weight: 700;
    font-size: 1.1rem;
}

.hero-card-delta small {
    display: block;
    margin-top: 6px;
    font-size: 0.95rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card {
    border-radius: 22px;
    padding: 24px;
}

.stat-card strong {
    display: block;
    margin-top: 12px;
    font-size: 1.8rem;
    letter-spacing: -0.04em;
}

.stat-card small {
    display: block;
    margin-top: 8px;
    line-height: 1.5;
}

.table-section {
    border-radius: 28px;
    padding: 24px;
}

.success {
    border-color: rgba(82, 214, 161, 0.32);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.section-head h2 {
    margin: 6px 0 0;
    font-size: 1.6rem;
}

.table-wrap {
    overflow-x: auto;
}

.compact-table table {
    min-width: 680px;
}

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

th,
td {
    padding: 16px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
    color: #c8d7ef;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.asset-cell {
    display: flex;
    align-items: center;
    gap: 14px;
}

.asset-cell strong {
    display: block;
    margin-bottom: 5px;
}

.asset-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.asset-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #04111e;
    background: linear-gradient(135deg, #52d6a1, #8df0cb);
}

.pill {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 14px;
    font-weight: 700;
    min-width: 125px;
}

.pill small {
    opacity: 0.92;
    font-size: 0.82rem;
}

.is-up {
    color: var(--accent);
    background: rgba(82, 214, 161, 0.12);
}

.is-down {
    color: var(--danger);
    background: rgba(255, 107, 107, 0.12);
}

.is-neutral {
    color: #ffd166;
    background: rgba(255, 209, 102, 0.12);
}

.notice {
    border-radius: 22px;
    padding: 22px;
    margin-bottom: 22px;
}

.notice h2 {
    margin-top: 0;
}

.warning {
    border-color: rgba(250, 204, 21, 0.28);
}

.error {
    border-color: rgba(255, 107, 107, 0.28);
}

pre {
    white-space: pre-wrap;
    word-break: break-word;
    background: rgba(0, 0, 0, 0.25);
    padding: 14px;
    border-radius: 16px;
    overflow: auto;
}

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

code {
    font-family: Consolas, monospace;
}

.muted {
    color: var(--muted);
}

.weather-pill {
    --weather-color: #93a6c4;
    --weather-core: #edf4ff;
    --weather-glow: rgba(147, 166, 196, 0.34);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    min-height: 50px;
    padding: 7px 14px;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid rgba(138, 177, 255, 0.24);
    background:
        radial-gradient(circle at 50% 92%, var(--weather-glow), transparent 48%),
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2), transparent 32%),
        linear-gradient(145deg, rgba(20, 39, 62, 0.96), rgba(10, 21, 37, 0.88));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.17),
        inset 0 -14px 28px rgba(255, 255, 255, 0.035),
        0 16px 36px rgba(0, 0, 0, 0.28),
        0 0 34px var(--weather-glow);
    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
    isolation: isolate;
    animation: weatherBadgeBreath 2.9s ease-in-out infinite;
}

.weather-pill::before,
.weather-pill::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.weather-pill::before {
    inset: -60%;
    background:
        conic-gradient(from 40deg, transparent 0 18%, rgba(255, 255, 255, 0.2) 22%, transparent 28% 100%),
        radial-gradient(circle, var(--weather-glow), transparent 58%);
    opacity: 0.72;
    animation: weatherAura 4.8s linear infinite;
}

.weather-pill::after {
    top: -35%;
    bottom: -35%;
    left: -72%;
    width: 42%;
    transform: rotate(18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    animation: weatherSweep 3.6s ease-in-out infinite;
}

.weather-pill.is-up {
    --weather-color: #52d6a1;
    --weather-core: #9affda;
    --weather-glow: rgba(82, 214, 161, 0.48);
}

.weather-pill.is-neutral {
    --weather-color: #ffd166;
    --weather-core: #ffe6a3;
    --weather-glow: rgba(255, 209, 102, 0.42);
}

.weather-pill.is-down {
    --weather-color: #ff6b6b;
    --weather-core: #ff9a9a;
    --weather-glow: rgba(255, 107, 107, 0.48);
}

.weather-pill.is-muted {
    --weather-color: #93a6c4;
    --weather-core: #c8d7ef;
    --weather-glow: rgba(147, 166, 196, 0.22);
    color: var(--muted);
}

.weather-summary .weather-pill,
.weather-stat .weather-pill {
    min-width: 86px;
    min-height: 64px;
}

.table-section .weather-pill {
    min-width: 70px;
    min-height: 50px;
    padding: 7px 13px;
}

.weather-stat {
    display: flex;
    align-items: center;
}

.weather-icon,
.weather-icon::before,
.weather-icon::after,
.weather-icon span {
    display: block;
}

.weather-icon {
    position: relative;
    z-index: 1;
    width: 38px;
    height: 38px;
    color: var(--weather-color);
    filter:
        drop-shadow(0 0 8px var(--weather-glow))
        drop-shadow(0 0 18px var(--weather-glow));
    animation: weatherIconFloat 2.8s ease-in-out infinite;
}

.weather-summary .weather-icon,
.weather-stat .weather-icon {
    width: 48px;
    height: 48px;
}

.weather-icon::before,
.weather-icon::after,
.weather-icon span {
    content: "";
    position: absolute;
}

.weather-icon-sun {
    animation: weatherIconFloat 2.8s ease-in-out infinite, weatherSpin 8s linear infinite;
}

.weather-icon-sun::before {
    inset: 31%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 32%, #ffffff, var(--weather-core) 38%, var(--weather-color) 72%);
    box-shadow:
        0 0 12px var(--weather-color),
        0 0 26px var(--weather-glow);
}

.weather-icon-sun::after {
    inset: 5%;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from 0deg,
        var(--weather-color) 0 9deg,
        transparent 9deg 28deg
    );
    -webkit-mask: radial-gradient(circle, transparent 0 44%, #000 46% 62%, transparent 64%);
    mask: radial-gradient(circle, transparent 0 44%, #000 46% 62%, transparent 64%);
    opacity: 0.92;
}

.weather-icon-sun span {
    inset: 19%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.18);
    animation: weatherPulse 1.9s ease-in-out infinite;
}

.weather-icon-bright::before {
    left: 2%;
    top: 5%;
    width: 45%;
    height: 45%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffffff, var(--weather-core) 32%, var(--weather-color) 74%);
    box-shadow:
        0 0 12px var(--weather-color),
        0 0 24px var(--weather-glow);
    animation: weatherSunPeek 2.6s ease-in-out infinite;
}

.weather-icon-bright::after,
.weather-icon-bright span,
.weather-icon-cloud::before,
.weather-icon-cloud::after,
.weather-icon-cloud span,
.weather-icon-storm::before,
.weather-icon-storm span {
    background:
        radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.75), transparent 18%),
        linear-gradient(145deg, var(--weather-core), var(--weather-color));
}

.weather-icon-bright span,
.weather-icon-cloud span,
.weather-icon-storm span {
    left: 13%;
    top: 56%;
    width: 74%;
    height: 31%;
    border-radius: 999px;
    animation: weatherCloudDrift 2.7s ease-in-out infinite;
}

.weather-icon-bright::after,
.weather-icon-cloud::before,
.weather-icon-storm::before {
    left: 36%;
    top: 34%;
    width: 40%;
    height: 40%;
    border-radius: 50%;
    animation: weatherCloudDrift 2.7s ease-in-out infinite;
}

.weather-icon-cloud::after {
    left: 10%;
    top: 48%;
    width: 38%;
    height: 38%;
    border-radius: 50%;
    animation: weatherCloudDrift 2.7s ease-in-out infinite;
}

.weather-icon-calm::before {
    left: 8%;
    top: 23%;
    width: 82%;
    height: 55%;
    border: 2px solid var(--weather-color);
    border-radius: 999px;
    box-shadow:
        inset 0 0 12px var(--weather-glow),
        0 0 12px var(--weather-glow);
    opacity: 0.94;
    animation: weatherCalmRing 2.4s ease-in-out infinite;
}

.weather-icon-calm::after,
.weather-icon-calm span {
    left: 27%;
    height: 2px;
    border-radius: 999px;
    background: var(--weather-core);
    box-shadow: 0 0 10px var(--weather-glow);
}

.weather-icon-calm::after {
    top: 45%;
    width: 46%;
    animation: weatherWind 2.2s ease-in-out infinite;
}

.weather-icon-calm span {
    top: 57%;
    width: 34%;
    animation: weatherWind 2.2s ease-in-out infinite reverse;
}

.weather-icon-storm::after {
    left: 37%;
    top: 50%;
    width: 36%;
    height: 48%;
    background: linear-gradient(180deg, #fff3a6, var(--weather-color));
    clip-path: polygon(48% 0, 100% 0, 66% 42%, 100% 42%, 20% 100%, 40% 55%, 0 55%);
    filter: drop-shadow(0 0 12px var(--weather-glow));
    animation: weatherLightning 1.15s steps(2, end) infinite;
}

.weather-icon-unknown::before {
    inset: 13%;
    border: 2px dashed var(--weather-color);
    border-radius: 50%;
    box-shadow: 0 0 14px var(--weather-glow);
    animation: weatherSpin 6s linear infinite;
}

.weather-icon-unknown::after {
    left: 48%;
    top: 26%;
    width: 2px;
    height: 32%;
    border-radius: 999px;
    background: var(--weather-core);
}

.weather-icon-unknown span {
    left: calc(50% - 2px);
    top: 67%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--weather-core);
}

@keyframes weatherBadgeBreath {
    0%,
    100% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.17),
            inset 0 -14px 28px rgba(255, 255, 255, 0.035),
            0 16px 36px rgba(0, 0, 0, 0.28),
            0 0 24px var(--weather-glow);
        transform: translateY(0);
    }

    50% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.24),
            inset 0 -14px 32px rgba(255, 255, 255, 0.055),
            0 20px 44px rgba(0, 0, 0, 0.34),
            0 0 42px var(--weather-glow);
        transform: translateY(-2px);
    }
}

@keyframes weatherAura {
    to {
        transform: rotate(1turn);
    }
}

@keyframes weatherSweep {
    0%,
    32% {
        left: -72%;
    }

    64%,
    100% {
        left: 132%;
    }
}

@keyframes weatherIconFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes weatherSpin {
    to {
        transform: rotate(1turn);
    }
}

@keyframes weatherPulse {
    0%,
    100% {
        opacity: 0.55;
        transform: scale(0.88);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

@keyframes weatherSunPeek {
    0%,
    100% {
        transform: translate(0, 0) scale(0.92);
        opacity: 0.76;
    }

    50% {
        transform: translate(-1px, -2px) scale(1.05);
        opacity: 1;
    }
}

@keyframes weatherCloudDrift {
    0%,
    100% {
        transform: translateX(-1px);
    }

    50% {
        transform: translateX(3px);
    }
}

@keyframes weatherCalmRing {
    0%,
    100% {
        transform: scale(0.94);
        opacity: 0.76;
    }

    50% {
        transform: scale(1.04);
        opacity: 1;
    }
}

@keyframes weatherWind {
    0%,
    100% {
        transform: translateX(-3px);
        opacity: 0.55;
    }

    50% {
        transform: translateX(3px);
        opacity: 1;
    }
}

@keyframes weatherLightning {
    0%,
    100% {
        opacity: 0.38;
        transform: translateY(0) scale(0.94);
    }

    50% {
        opacity: 1;
        transform: translateY(2px) scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .weather-pill,
    .weather-pill::before,
    .weather-pill::after,
    .weather-icon,
    .weather-icon-sun,
    .weather-icon-sun span,
    .weather-icon-bright::before,
    .weather-icon-cloud::before,
    .weather-icon-cloud::after,
    .weather-icon-cloud span,
    .weather-icon-bright::after,
    .weather-icon-bright span,
    .weather-icon-storm::before,
    .weather-icon-storm::after,
    .weather-icon-storm span,
    .weather-icon-calm::before,
    .weather-icon-calm::after,
    .weather-icon-calm span,
    .weather-icon-unknown::before {
        animation: none;
    }
}

.weather-pill {
    --weather-glow: rgba(147, 166, 196, 0.28);
    min-width: 64px;
    min-height: 64px;
    width: 64px;
    height: 64px;
    padding: 0;
    overflow: visible;
    border: 0;
    background:
        radial-gradient(circle at center, var(--weather-glow), transparent 62%),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.06), transparent 42%);
    box-shadow: none;
    animation: none;
}

.weather-pill::before,
.weather-pill::after {
    display: none;
}

.weather-pill.is-up {
    --weather-glow: rgba(82, 214, 161, 0.34);
}

.weather-pill.is-neutral {
    --weather-glow: rgba(255, 209, 102, 0.28);
}

.weather-pill.is-down {
    --weather-glow: rgba(255, 107, 107, 0.34);
}

.weather-pill.is-muted {
    --weather-glow: rgba(147, 166, 196, 0.22);
}

.weather-summary .weather-pill,
.weather-stat .weather-pill {
    min-width: 88px;
    min-height: 88px;
    width: 88px;
    height: 88px;
}

.table-section .weather-pill {
    min-width: 58px;
    min-height: 58px;
    width: 58px;
    height: 58px;
    padding: 0;
}

.weather-static,
.weather-static::before,
.weather-static::after,
.weather-static span {
    display: block;
}

.weather-static {
    position: relative;
    width: 58px;
    height: 58px;
    filter:
        drop-shadow(0 0 10px var(--weather-glow))
        drop-shadow(0 10px 18px rgba(0, 0, 0, 0.26));
}

.weather-static::before,
.weather-static::after,
.weather-static span {
    content: "";
    position: absolute;
}

.weather-summary .weather-static,
.weather-stat .weather-static {
    width: 78px;
    height: 78px;
}

.table-section .weather-static {
    width: 50px;
    height: 50px;
}

.weather-static-sun::before {
    inset: 3%;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from 0deg,
        #ffd45d 0 8deg,
        transparent 8deg 24deg
    );
    -webkit-mask: radial-gradient(circle, transparent 0 48%, #000 49% 66%, transparent 67%);
    mask: radial-gradient(circle, transparent 0 48%, #000 49% 66%, transparent 67%);
}

.weather-static-sun::after {
    inset: 22%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 28%, #fff4b3, transparent 0 25%, #ffd35c 45%, #ff9f1c 100%);
    border: 4px solid #0b3a8f;
    box-shadow: inset -8px -10px 0 rgba(255, 142, 0, 0.26);
}

.weather-static-sun span {
    inset: 31%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    transform: translate(-16%, -14%);
}

.weather-static-cloud::before,
.weather-static-storm::before {
    left: 7%;
    top: 48%;
    width: 82%;
    height: 32%;
    border-radius: 999px;
    background:
        radial-gradient(circle at 28% 12%, rgba(255, 255, 255, 0.98), transparent 0 24%),
        linear-gradient(145deg, #ffffff 0%, #c8dcff 100%);
    border-bottom: 4px solid #0b3a8f;
}

.weather-static-cloud::after,
.weather-static-storm span {
    left: 28%;
    top: 22%;
    width: 38%;
    height: 43%;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff 0%, #d9e8ff 100%);
}

.weather-static-cloud span,
.weather-static-storm::after {
    left: 49%;
    top: 32%;
    width: 35%;
    height: 35%;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff 0%, #cde1ff 100%);
}

.weather-static-storm::before {
    background:
        radial-gradient(circle at 28% 12%, rgba(255, 255, 255, 0.92), transparent 0 24%),
        linear-gradient(145deg, #eef5ff 0%, #7f9bc8 100%);
}

.weather-static-storm::after {
    background: linear-gradient(145deg, #eef5ff 0%, #8ea8d4 100%);
}

.weather-static-storm span {
    background: linear-gradient(145deg, #eef5ff 0%, #9fb6df 100%);
}

.weather-static-storm span::after {
    content: "";
    position: absolute;
    left: 38%;
    top: 86%;
    width: 48%;
    height: 82%;
    background: linear-gradient(180deg, #ffe873 0%, #ffb020 100%);
    clip-path: polygon(46% 0, 100% 0, 67% 43%, 100% 43%, 15% 100%, 38% 56%, 0 56%);
    filter: drop-shadow(0 0 5px rgba(255, 176, 32, 0.8));
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sort-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(138, 177, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.sort-button.is-active {
    color: #04111e;
    background: linear-gradient(135deg, #52d6a1, #8df0cb);
    border-color: transparent;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid rgba(138, 177, 255, 0.18);
    font-weight: 700;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.primary-button {
    color: #04111e;
    background: linear-gradient(135deg, #52d6a1, #7af0d4);
}

.secondary-button {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-1px);
    border-color: rgba(138, 177, 255, 0.35);
}

.login-body {
    display: grid;
    place-items: center;
}

.auth-shell {
    width: min(100%, 460px);
    padding: 24px;
}

.auth-card {
    background: var(--bg-soft);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
    border-radius: 28px;
    padding: 32px;
    backdrop-filter: blur(16px);
}

.auth-card h1 {
    margin: 10px 0 16px;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1;
}

.auth-form,
.admin-form {
    display: grid;
    gap: 18px;
}

.field,
.auth-form label {
    display: grid;
    gap: 8px;
}

.field span,
.auth-form span,
.edit-meta span {
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="month"],
input[type="date"],
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(138, 177, 255, 0.18);
    border-radius: 14px;
    background: rgba(4, 11, 22, 0.92);
    color: var(--text);
    font: inherit;
    font-size: 16px;
}

textarea {
    min-height: 120px;
    padding: 14px;
    resize: vertical;
    line-height: 1.5;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="month"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(82, 214, 161, 0.65);
    box-shadow: 0 0 0 4px rgba(82, 214, 161, 0.08);
}

.compact-notice {
    margin-bottom: 18px;
}

.auth-link {
    margin: 18px 0 0;
    color: var(--muted);
}

.profile-grid,
.mining-grid,
.pool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.profile-card,
.mining-card,
.pool-card {
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(138, 177, 255, 0.12);
}

.profile-card h3,
.mining-card h3,
.pool-card h3 {
    margin: 0;
    font-size: 1.4rem;
}

.profile-copy,
.profile-meta {
    margin: 0;
}

.profile-copy {
    color: var(--muted);
    line-height: 1.6;
}

.profile-meta {
    color: #c8d7ef;
    font-size: 0.95rem;
}

.mining-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mini-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(138, 177, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    font-weight: 700;
}

.mini-badge.is-highlight {
    color: #04111e;
    background: linear-gradient(135deg, #52d6a1, #8df0cb);
    border-color: transparent;
}

.mining-metrics {
    display: grid;
    gap: 10px;
}

.pool-card-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.mining-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(138, 177, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

.mining-state strong {
    font-size: 0.86rem;
    letter-spacing: 0.08em;
}

.mining-state span:last-child {
    font-size: 0.86rem;
    font-weight: 800;
}

.mining-state.is-on {
    color: var(--accent);
    border-color: rgba(82, 214, 161, 0.32);
    background: rgba(82, 214, 161, 0.12);
    box-shadow: 0 0 24px rgba(82, 214, 161, 0.12);
}

.mining-state.is-off {
    color: var(--danger);
    border-color: rgba(255, 107, 107, 0.32);
    background: rgba(255, 107, 107, 0.12);
}

.state-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 12px currentColor;
    flex-shrink: 0;
}

.pool-meta {
    display: grid;
    gap: 10px;
}

.pool-action {
    display: flex;
    justify-content: flex-end;
    margin: 0;
}

.trending-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.trend-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(138, 177, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

.trend-pill strong,
.trend-pill span {
    display: block;
}

.trend-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.tool-card {
    color: inherit;
}

.text-up {
    color: var(--accent);
}

.text-down {
    color: var(--danger);
}

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

.edit-card {
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(138, 177, 255, 0.12);
}

.edit-form {
    margin: 0;
}

.field-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

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

.edit-meta strong {
    font-size: 1rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
}

.tiny-button {
    min-width: 104px;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(82, 214, 161, 0.28);
    border-radius: 14px;
    background: rgba(82, 214, 161, 0.14);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.tiny-button:hover {
    border-color: rgba(82, 214, 161, 0.52);
}

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

.form-hint {
    margin: 0;
    color: var(--muted);
}

.overtime-panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: 18px;
}

.overtime-card {
    padding: 20px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(82, 214, 161, 0.1), transparent 32%),
        rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(138, 177, 255, 0.12);
}

.overtime-card h3 {
    margin: 8px 0 10px;
    font-size: 1.35rem;
}

.date-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(82, 214, 161, 0.16), rgba(96, 165, 250, 0.1));
    border: 1px solid rgba(82, 214, 161, 0.22);
}

.date-badge span {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
}

.date-badge strong {
    font-size: 1.25rem;
}

.month-tools {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
}

.month-field {
    min-width: 180px;
}

.inline-form {
    margin: 0;
}

.danger-button {
    border-color: rgba(255, 107, 107, 0.28);
    background: rgba(255, 107, 107, 0.12);
}

.danger-button:hover {
    border-color: rgba(255, 107, 107, 0.52);
}

.shopping-form textarea {
    min-height: 92px;
}

.shopping-add-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1fr 1fr;
    gap: 18px;
}

.shopping-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.shopping-category-card {
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.11), transparent 34%),
        rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(138, 177, 255, 0.12);
}

.shopping-category-head,
.shopping-item,
.shopping-done-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.shopping-category-head strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: #04111e;
    background: linear-gradient(135deg, #52d6a1, #8df0cb);
}

.shopping-list,
.shopping-done-list {
    display: grid;
    gap: 10px;
}

.shopping-item,
.shopping-done-item {
    padding: 14px;
    border-radius: 18px;
    background: rgba(4, 11, 22, 0.45);
    border: 1px solid rgba(138, 177, 255, 0.1);
}

.shopping-done-item {
    grid-template-columns: auto minmax(0, 1fr);
    opacity: 0.78;
}

.shopping-done-item strong {
    text-decoration: line-through;
}

.shopping-check-form {
    margin: 0;
}

.shopping-checkbox-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    cursor: pointer;
}

.shopping-checkbox-label input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.shopping-checkbox-label span {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    border: 1px solid rgba(138, 177, 255, 0.28);
    background: rgba(4, 11, 22, 0.72);
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.shopping-checkbox-label input:checked + span,
.shopping-checkbox-label.is-checked span {
    border-color: transparent;
    background: linear-gradient(135deg, #52d6a1, #8df0cb);
}

.shopping-checkbox-label span::after {
    content: "";
    position: absolute;
    left: 11px;
    top: 7px;
    width: 9px;
    height: 15px;
    border: solid #04111e;
    border-width: 0 3px 3px 0;
    opacity: 0;
    transform: rotate(45deg) scale(0.75);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.shopping-checkbox-label input:checked + span::after,
.shopping-checkbox-label.is-checked span::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.shopping-checkbox-label:hover span {
    border-color: rgba(82, 214, 161, 0.62);
    transform: translateY(-1px);
}

.shopping-item-main {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.shopping-item-main strong,
.shopping-done-item strong {
    font-size: 1.02rem;
}

.shopping-item-main span:not(.shopping-tag),
.shopping-done-item span {
    color: var(--muted);
}

.shopping-item-main small {
    width: 100%;
    color: var(--muted);
    line-height: 1.5;
}

.shopping-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    color: #04111e;
    background: linear-gradient(135deg, #60a5fa, #a9cfff);
    font-size: 0.78rem;
    font-weight: 800;
}

.shopping-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.shopping-shell {
    width: min(900px, calc(100% - 28px));
}

.shopping-title {
    align-items: flex-start;
}

.shopping-title p:not(.eyebrow) {
    text-align: left;
}

.shopping-quick-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.shopping-quick-stats article {
    padding: 16px;
    border-radius: 18px;
    background: var(--bg-soft);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
}

.shopping-quick-stats span {
    display: block;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
}

.shopping-quick-stats strong {
    display: block;
    margin-top: 8px;
    font-size: 1.8rem;
}

.shopping-add-section,
.shopping-list-section {
    margin-bottom: 18px;
}

.shopping-mobile-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px auto;
    gap: 12px;
    align-items: end;
}

.shopping-mobile-form input[type="text"] {
    min-height: 58px;
    font-size: 1.05rem;
}

.shopping-add-button {
    min-height: 58px;
    padding: 0 24px;
}

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

.shopping-mobile-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 72px;
    padding: 14px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top left, rgba(82, 214, 161, 0.1), transparent 34%),
        rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(138, 177, 255, 0.12);
}

.shopping-mobile-item.is-done {
    grid-template-columns: auto minmax(0, 1fr);
    opacity: 0.72;
}

.shopping-mobile-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.shopping-mobile-copy strong {
    font-size: 1.12rem;
    overflow-wrap: anywhere;
}

.shopping-mobile-copy span {
    color: var(--muted);
}

.shopping-mobile-item.is-done strong {
    text-decoration: line-through;
}

.shopping-delete-button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 107, 107, 0.24);
    border-radius: 14px;
    background: rgba(255, 107, 107, 0.1);
    color: var(--danger);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.shopping-delete-button:hover {
    border-color: rgba(255, 107, 107, 0.52);
}

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

.budget-card {
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.1), transparent 34%),
        rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(138, 177, 255, 0.12);
}

.budget-card h3 {
    margin: 8px 0 0;
    font-size: 1.35rem;
}

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

.budget-form-row {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: 12px;
}

.budget-progress-list,
.budget-transaction-list {
    display: grid;
    gap: 12px;
}

.budget-progress {
    display: grid;
    gap: 10px;
}

.budget-progress > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
}

.budget-progress strong {
    font-size: 0.98rem;
}

.budget-progress span {
    color: var(--muted);
}

.budget-bar {
    display: block;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.budget-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, #52d6a1, #60a5fa);
}

.budget-transaction {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(138, 177, 255, 0.12);
}

.budget-transaction div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.budget-transaction strong {
    overflow-wrap: anywhere;
}

.budget-transaction small {
    color: var(--muted);
}

.megane-hero {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
    overflow: hidden;
}

.megane-car {
    position: relative;
    min-height: 170px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 30%, rgba(82, 214, 161, 0.24), transparent 34%),
        linear-gradient(145deg, rgba(96, 165, 250, 0.12), rgba(82, 214, 161, 0.05));
    border: 1px solid rgba(138, 177, 255, 0.14);
}

.megane-car-body {
    position: absolute;
    right: 34px;
    bottom: 48px;
    left: 34px;
    height: 66px;
    border-radius: 42px 54px 28px 28px;
    background: linear-gradient(135deg, #5ee0b1, #60a5fa);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.28);
}

.megane-car-body::before {
    content: "";
    position: absolute;
    left: 54px;
    top: -34px;
    width: 118px;
    height: 50px;
    border-radius: 70px 70px 10px 10px;
    background: linear-gradient(135deg, rgba(237, 244, 255, 0.9), rgba(96, 165, 250, 0.48));
}

.megane-car-body::after,
.megane-car-body span::before {
    content: "";
    position: absolute;
    bottom: -16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #07111f;
    border: 8px solid #203d62;
}

.megane-car-body::after {
    left: 44px;
}

.megane-car-body span::before {
    right: 44px;
}

.megane-road {
    position: absolute;
    right: 44px;
    bottom: 30px;
    left: 44px;
    height: 3px;
    border-radius: 999px;
    background: rgba(237, 244, 255, 0.36);
}

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

.megane-info-card,
.megane-action-card {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(138, 177, 255, 0.12);
}

.megane-info-card span,
.megane-action-card span {
    display: block;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.megane-info-card strong,
.megane-action-card strong {
    display: block;
    margin-bottom: 6px;
}

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

.megane-action-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin: 0;
}

.megane-action-card select {
    min-width: 150px;
}

.megane-action-card button:disabled,
.megane-action-card select:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.megane-safety {
    margin-top: 18px;
}

.megane-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 980px) {
    .hero,
    .stats-grid,
    .edit-grid,
    .add-grid,
    .shopping-add-grid,
    .profile-grid,
    .mining-grid,
    .pool-grid,
    .overtime-panel-grid,
    .shopping-board,
    .budget-layout,
    .budget-envelope-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .hero-card,
    .stat-card,
    .table-section {
        border-radius: 16px;
    }

    .hero-copy h1 {
        font-size: 2.2rem;
    }

    .page-shell {
        width: min(100% - 20px, 1200px);
        padding-top: 20px;
    }

    .app-header,
    .module-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand-link {
        align-items: flex-start;
        width: 100%;
    }

    .site-logo {
        width: 50px;
        height: 50px;
        border-radius: 16px;
    }

    .brand-title {
        font-size: 1.8rem;
    }

    .login-brand {
        position: static;
        margin: 16px auto 0;
        width: min(100% - 32px, 460px);
    }

    .app-actions,
    .app-actions .primary-button,
    .app-actions .secondary-button {
        width: 100%;
    }

    .module-title p:not(.eyebrow) {
        text-align: left;
    }

    .weather-summary {
        justify-items: start;
        text-align: left;
    }

    th,
    td {
        padding: 14px 12px;
    }

    .form-actions {
        justify-content: stretch;
    }

    .form-actions .primary-button,
    .hero-links .primary-button,
    .hero-links .secondary-button,
    .admin-actions .secondary-button,
    .tiny-button {
        width: 100%;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .dashboard-tab {
        width: 100%;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .sort-controls,
    .sort-button,
    .month-tools,
    .month-tools .tiny-button,
    .month-tools .secondary-button,
    .shopping-actions,
    .shopping-actions .tiny-button {
        width: 100%;
    }

    .shopping-item,
    .shopping-done-item {
        align-items: flex-start;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .shopping-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    body {
        padding-bottom: calc(92px + env(safe-area-inset-bottom));
    }

    .page-shell {
        width: min(100% - 14px, 1200px);
        padding: 10px 0 calc(104px + env(safe-area-inset-bottom));
    }

    .app-header {
        gap: 10px;
        padding: 4px 0 12px;
        margin-bottom: 10px;
    }

    .brand-link {
        align-items: center;
        gap: 10px;
    }

    .brand-copy {
        display: none;
    }

    .brand-title {
        margin: 2px 0 0;
        font-size: 1.28rem;
        line-height: 1.12;
    }

    .eyebrow,
    .hero-card-label,
    .stat-card span,
    .asset-cell span,
    .section-head p {
        font-size: 0.66rem;
        letter-spacing: 0.1em;
    }

    .site-logo {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .app-actions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 8px;
    }

    .app-actions .primary-button,
    .app-actions .secondary-button {
        min-height: 42px;
        padding: 0 12px;
        border-radius: 13px;
        font-size: 0.88rem;
    }

    .dashboard-tabs {
        position: fixed;
        z-index: 30;
        right: 8px;
        bottom: max(8px, env(safe-area-inset-bottom));
        left: 8px;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(86px, 1fr);
        gap: 6px;
        margin: 0;
        padding: 8px;
        overflow-x: auto;
        border: 1px solid rgba(138, 177, 255, 0.18);
        border-radius: 24px;
        background: rgba(4, 11, 22, 0.88);
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(18px);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .dashboard-tabs::-webkit-scrollbar {
        display: none;
    }

    .dashboard-tab {
        width: auto;
        min-height: 48px;
        padding: 0 10px;
        border-radius: 18px;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .module-title {
        gap: 8px;
        margin-bottom: 12px;
    }

    .module-title h2 {
        font-size: 1.35rem;
    }

    .module-title p:not(.eyebrow) {
        font-size: 0.94rem;
        line-height: 1.45;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 16px;
    }

    .stat-card {
        padding: 16px;
        border-radius: 18px;
    }

    .stat-card strong {
        margin-top: 8px;
        font-size: 1.35rem;
        letter-spacing: -0.03em;
    }

    .table-section,
    .notice {
        padding: 16px;
        border-radius: 18px;
        margin-bottom: 14px;
    }

    .section-head {
        gap: 10px;
        margin-bottom: 14px;
    }

    .section-head h2 {
        font-size: 1.28rem;
    }

    .primary-button,
    .secondary-button,
    .tiny-button {
        min-height: 50px;
        border-radius: 15px;
    }

    .sort-controls {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .sort-button {
        min-height: 42px;
    }

    .table-wrap {
        margin: 0 -6px;
        padding: 0 6px 6px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    table {
        min-width: 760px;
    }

    .compact-table table {
        min-width: 660px;
    }

    th,
    td {
        padding: 13px 10px;
    }

    .asset-logo {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .profile-card,
    .mining-card,
    .pool-card,
    .edit-card,
    .overtime-card,
    .budget-card {
        padding: 16px;
        border-radius: 18px;
    }

    .profile-card h3,
    .mining-card h3,
    .pool-card h3 {
        font-size: 1.15rem;
    }

    .pool-card-head,
    .edit-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .mining-state {
        min-height: 42px;
        white-space: normal;
    }

    .field,
    .auth-form label {
        gap: 7px;
    }

    input[type="text"],
    input[type="password"],
    input[type="number"],
    input[type="month"],
    input[type="date"],
    select,
    textarea {
        min-height: 52px;
        border-radius: 15px;
    }

    textarea {
        min-height: 104px;
    }

    .budget-form-row {
        grid-template-columns: 1fr;
    }

    .budget-transaction {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
    }

    .budget-transaction .inline-form {
        grid-column: 1 / -1;
    }

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

    .megane-car {
        min-height: 150px;
    }

    .megane-action-card {
        grid-template-columns: 1fr;
    }

    .megane-action-card select,
    .megane-action-card .tiny-button {
        width: 100%;
    }

    .shopping-shell {
        width: min(100% - 14px, 900px);
        padding-top: 10px;
    }

    .shopping-shell .brand-copy {
        display: none;
    }

    .shopping-shell .brand-title {
        font-size: 1.3rem;
        margin-bottom: 0;
    }

    .shopping-shell .site-logo {
        width: 44px;
        height: 44px;
    }

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

    .shopping-quick-stats article {
        padding: 12px 10px;
        border-radius: 16px;
    }

    .shopping-quick-stats span {
        font-size: 0.64rem;
        letter-spacing: 0.08em;
    }

    .shopping-quick-stats strong {
        font-size: 1.45rem;
    }

    .shopping-mobile-form {
        grid-template-columns: minmax(0, 1fr) 86px;
    }

    .shopping-mobile-form .shopping-add-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .shopping-add-section,
    .shopping-list-section {
        padding: 16px;
        border-radius: 18px;
    }

    .shopping-mobile-item {
        min-height: 76px;
        padding: 13px 12px;
        border-radius: 18px;
    }

    .shopping-checkbox-label {
        width: 40px;
        height: 40px;
    }

    .shopping-checkbox-label span {
        width: 34px;
        height: 34px;
    }

    .shopping-checkbox-label span::after {
        left: 14px;
        top: 9px;
    }
}
