/* Weather Plugin v2.1.0 — cleaner skins and better readability */
.emlog-weather-container {
    --weather-accent: #4a90d9;
    --weather-text: #1f2937;
    --weather-card-bg: #ffffff;
    --weather-header-bg: #f8fbff;
    --weather-header-text: #1f2937;
    --weather-border: #d9e1ee;
    --weather-body-bg: #ffffff;
    position: relative;
    width: 100%;
    margin: 20px auto;
    z-index: 9;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.emlog-weather-container.weather-animate-in {
    animation: weatherFadeIn 0.35s ease both;
}

@keyframes weatherFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes weatherCinemaBreathe {
    0%, 100% {
        opacity: 0.2;
        transform: translateZ(0) scale(1);
    }
    50% {
        opacity: 0.34;
        transform: translateZ(0) scale(1.015);
    }
}

.emlog-weather-card {
    --weather-rx: 0deg;
    --weather-ry: 0deg;
    --weather-glx: 50%;
    --weather-gly: 0%;
    --weather-cinema-glow: rgba(255, 255, 255, 0.36);
    --weather-cinema-shadow: rgba(5, 15, 32, 0.14);
    --weather-cinema-mix: screen;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--weather-border);
    background: var(--weather-card-bg);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08), 0 1px 0 rgba(255, 255, 255, 0.72) inset;
    transform: perspective(1100px) rotateX(var(--weather-rx)) rotateY(var(--weather-ry)) translateY(0);
    transform-style: preserve-3d;
    will-change: transform;
    transition: box-shadow 0.2s ease, transform 0.22s ease, border-color 0.2s ease;
}

.emlog-weather-card:hover {
    transform: perspective(1100px) rotateX(var(--weather-rx)) rotateY(var(--weather-ry)) translateY(-2px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14), 0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.emlog-weather-card::before,
.emlog-weather-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

.emlog-weather-card::before {
    background:
        radial-gradient(130% 78% at 50% 0%, rgba(255, 255, 255, 0.22), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 35%);
    opacity: 0.7;
}

.emlog-weather-card::after {
    background:
        radial-gradient(circle at var(--weather-glx) var(--weather-gly), var(--weather-cinema-glow), transparent 40%),
        radial-gradient(120% 100% at 50% 130%, var(--weather-cinema-shadow), transparent 60%);
    mix-blend-mode: var(--weather-cinema-mix);
    opacity: 0.2;
    animation: weatherCinemaBreathe 7.5s ease-in-out infinite;
    transition: opacity 0.22s ease;
}

.emlog-weather-card.is-depth-active::after {
    opacity: 0.72;
    animation-play-state: paused;
}

.emlog-weather-card.is-depth-active::before {
    opacity: 0.82;
}

.emlog-weather-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    background: var(--weather-header-bg);
    color: var(--weather-header-text);
    border-bottom: 1px solid var(--weather-border);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.01em;
    line-height: 1.35;
    position: relative;
    z-index: 2;
}

.emlog-weather-header::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--weather-accent);
    flex-shrink: 0;
}

.emlog-weather-body {
    position: relative;
    min-height: 130px;
    background: var(--weather-body-bg);
    display: block;
    padding: 12px;
    z-index: 2;
}

.emlog-weather-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 118px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(241, 245, 249, 0.62));
    overflow: hidden;
}

.emlog-weather-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.weather-chip {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(100, 116, 139, 0.28);
    background: rgba(255, 255, 255, 0.7);
    color: #334155;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.weather-chip-style {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.28);
    color: #1d4ed8;
}

.emlog-weather-meta .weather-chip-style:only-child {
    margin-left: auto;
}

.emlog-weather-iframe {
    display: block;
    width: min(100%, 360px) !important;
    max-width: 100% !important;
    border: none;
    background: transparent;
    margin: 0 auto !important;
    padding: 0;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(2px);
}

.emlog-weather-runtime {
    width: min(100%, 350px);
    margin: 0 auto;
    padding: 6px 6px 4px;
    border-radius: 10px;
    border: none;
    background: transparent;
    box-shadow: none;
    text-align: left;
}

.weather-runtime-main {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.weather-runtime-temp {
    font-size: 32px;
    line-height: 1;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.weather-runtime-icon {
    display: block;
    font-size: 24px;
    line-height: 1;
}

.weather-icon-svg {
    width: 1.15em;
    height: 1.15em;
    display: block;
}

.weather-icon-fill {
    fill: #60a5fa;
}

.weather-icon-stroke {
    stroke: #60a5fa;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.weather-icon-bolt {
    fill: #f59e0b;
}

.weather-type-clear .weather-icon-fill,
.weather-type-clear .weather-icon-stroke {
    fill: #f59e0b;
    stroke: #f59e0b;
}

.weather-type-cloudy .weather-icon-fill {
    fill: #60a5fa;
}

.weather-type-rain .weather-icon-fill,
.weather-type-rain .weather-icon-stroke {
    fill: #3b82f6;
    stroke: #3b82f6;
}

.weather-type-snow .weather-icon-fill,
.weather-type-snow .weather-icon-stroke {
    fill: #7dd3fc;
    stroke: #7dd3fc;
}

.weather-type-thunder .weather-icon-fill {
    fill: #64748b;
}

.weather-type-haze .weather-icon-fill,
.weather-type-haze .weather-icon-stroke {
    fill: #94a3b8;
    stroke: #94a3b8;
}

.weather-runtime-desc {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

.weather-runtime-sub {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: #475569;
}

.weather-runtime-time {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(100, 116, 139, 0.25);
    font-size: 11px;
    color: #64748b;
}

.weather-runtime-state-empty {
    border-style: dashed;
}

.weather-runtime-state-empty .weather-runtime-temp {
    color: #64748b;
}

.weather-runtime-state-empty .weather-runtime-desc {
    color: #334155;
}

.weather-runtime-state-empty .weather-runtime-time {
    color: #ef4444;
}

.emlog-weather-body.is-loaded .emlog-weather-iframe {
    opacity: 1;
    transform: translateY(0);
}

.emlog-weather-skeleton {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.78);
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.emlog-weather-body.is-loaded .emlog-weather-skeleton {
    opacity: 0;
}

.emlog-weather-skeleton span {
    display: block;
    height: 10px;
    border-radius: 6px;
    background: rgba(31, 41, 55, 0.14);
}

.emlog-weather-skeleton span:nth-child(1) { width: 55%; }
.emlog-weather-skeleton span:nth-child(2) { width: 75%; }
.emlog-weather-skeleton span:nth-child(3) { width: 40%; }

/* 1. Cartoon */
.skin-cartoon {
    --weather-card-bg: #fffef7;
    --weather-header-bg: linear-gradient(180deg, #ffe685 0%, #ffd447 100%);
    --weather-header-text: #101522;
    --weather-border: #111827;
    --weather-body-bg: #fffef9;
    --weather-cinema-glow: rgba(255, 248, 200, 0.38);
    --weather-cinema-shadow: rgba(17, 24, 39, 0.12);
    --weather-cinema-mix: normal;
}
.skin-cartoon .emlog-weather-card {
    border-width: 2px;
    box-shadow: 5px 5px 0 #111827, 0 1px 0 rgba(255, 255, 255, 0.7) inset;
    border-radius: 12px;
}
.skin-cartoon .emlog-weather-card::before {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0)),
        radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, 0.18), transparent 62%);
}
.skin-cartoon .emlog-weather-header {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 800;
    border-bottom-width: 2px;
}
.skin-cartoon .emlog-weather-body {
    background-image:
        radial-gradient(circle at 16% 18%, rgba(255, 212, 71, 0.26), transparent 38%),
        linear-gradient(180deg, rgba(255, 225, 105, 0.22), rgba(255, 225, 105, 0));
}
.skin-cartoon .emlog-weather-stage {
    border-color: rgba(17, 24, 39, 0.34);
    background: linear-gradient(180deg, rgba(255, 251, 230, 0.8), rgba(255, 245, 205, 0.68));
}
.skin-cartoon .weather-chip {
    border-color: rgba(17, 24, 39, 0.3);
    color: #1f2937;
}
.skin-cartoon .emlog-weather-runtime {
    border-color: rgba(17, 24, 39, 0.3);
    background: linear-gradient(180deg, rgba(255, 252, 235, 0.95), rgba(255, 248, 217, 0.92));
}

/* 2. Glass (light) */
.skin-glass {
    --weather-card-bg: rgba(255, 255, 255, 0.76);
    --weather-header-bg: linear-gradient(90deg, rgba(233, 248, 255, 0.82), rgba(253, 239, 253, 0.82));
    --weather-header-text: #334155;
    --weather-border: rgba(180, 205, 230, 0.72);
    --weather-body-bg: rgba(255, 255, 255, 0.8);
    --weather-cinema-glow: rgba(255, 255, 255, 0.58);
    --weather-cinema-shadow: rgba(86, 138, 175, 0.16);
}
.skin-glass .emlog-weather-card {
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    border-color: rgba(210, 226, 241, 0.8);
    border-radius: 18px;
    box-shadow:
        0 18px 38px rgba(94, 153, 185, 0.24),
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}
.skin-glass .emlog-weather-card::after {
    background:
        radial-gradient(circle at var(--weather-glx) var(--weather-gly), rgba(255, 255, 255, 0.52), transparent 42%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}
.skin-glass .emlog-weather-header {
    border-bottom-color: rgba(102, 145, 188, 0.26);
}
.skin-glass .emlog-weather-body {
    background-image:
        radial-gradient(circle at 14% 10%, rgba(173, 232, 255, 0.25), transparent 56%),
        radial-gradient(circle at 88% 24%, rgba(255, 211, 249, 0.22), transparent 44%);
}
.skin-glass .emlog-weather-stage {
    border-color: rgba(128, 171, 206, 0.36);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(240, 248, 255, 0.52));
}
.skin-glass .weather-chip {
    background: rgba(255, 255, 255, 0.6);
}
.skin-glass .emlog-weather-runtime {
    border-color: rgba(128, 171, 206, 0.3);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(240, 248, 255, 0.72));
}

/* 3. Mac */
.skin-mac {
    --weather-card-bg: linear-gradient(180deg, #f5f7fb 0%, #e9eef6 100%);
    --weather-header-bg: linear-gradient(180deg, #f3f6fb 0%, #e8edf6 100%);
    --weather-header-text: #3c4a5f;
    --weather-border: #cad4e1;
    --weather-body-bg: #ffffff;
    --weather-cinema-glow: rgba(255, 255, 255, 0.46);
    --weather-cinema-shadow: rgba(99, 118, 150, 0.16);
}
.skin-mac .emlog-weather-card {
    box-shadow:
        0 18px 38px rgba(86, 103, 130, 0.22),
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 -1px 0 rgba(160, 174, 196, 0.18) inset;
    border-radius: 16px;
    border-color: #c7d3e2;
}
.skin-mac .emlog-weather-card::after {
    background:
        radial-gradient(circle at var(--weather-glx) var(--weather-gly), rgba(255, 255, 255, 0.44), transparent 44%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(120, 136, 164, 0.04));
}
.skin-mac .emlog-weather-header {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background-image:
        radial-gradient(circle, #ff5f57 4px, transparent 4px),
        radial-gradient(circle, #febc2e 4px, transparent 4px),
        radial-gradient(circle, #28c840 4px, transparent 4px),
        linear-gradient(180deg, #f3f6fb 0%, #e8edf6 100%);
    background-size: 8px 8px, 8px 8px, 8px 8px, auto;
    background-position: 14px center, 28px center, 42px center, 0 0;
    background-repeat: no-repeat;
    padding-left: 64px;
    border-bottom-color: #d3dce8;
}
.skin-mac .emlog-weather-header::before {
    display: none;
}
.skin-mac .emlog-weather-body {
    margin: 10px;
    min-height: 112px;
    border-radius: 10px;
    border: 1px solid #dce4ef;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    background-image: linear-gradient(180deg, #ffffff 0%, #f7fafe 100%);
}
.skin-mac .emlog-weather-stage {
    border-radius: 10px;
    border-color: #d5deea;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8fe 100%);
}
.skin-mac .weather-chip {
    border-color: #cfd8e6;
    background: #f8fbff;
    color: #45566f;
}
.skin-mac .emlog-weather-runtime {
    border-color: #d5deea;
    box-shadow: 0 8px 18px rgba(100, 116, 139, 0.12);
}

/* 4. Minimal */
.skin-minimal {
    --weather-card-bg: #ffffff;
    --weather-header-bg: #f8fafc;
    --weather-header-text: #0f172a;
    --weather-border: #e2e8f0;
    --weather-body-bg: #ffffff;
    --weather-cinema-glow: rgba(255, 255, 255, 0.22);
    --weather-cinema-shadow: rgba(15, 23, 42, 0.08);
    --weather-cinema-mix: normal;
}
.skin-minimal .emlog-weather-card {
    border-left: 4px solid var(--weather-accent);
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    box-shadow: none;
}
.skin-minimal .emlog-weather-card::before,
.skin-minimal .emlog-weather-card::after {
    opacity: 0.3;
}
.skin-minimal .emlog-weather-header {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.skin-minimal .emlog-weather-header::before {
    width: 20px;
    height: 2px;
    border-radius: 2px;
}
.skin-minimal .emlog-weather-body {
    background-image: linear-gradient(180deg, #fff, #f9fbfd);
}
.skin-minimal .emlog-weather-stage {
    border-radius: 8px;
    border-color: #d9e2ec;
    background: #ffffff;
}
.skin-minimal .weather-chip {
    border-radius: 6px;
}
.skin-minimal .emlog-weather-runtime {
    border-radius: 8px;
    box-shadow: none;
}

/* 5. Aurora (kept bright for readable iframe text) */
.skin-aurora {
    --weather-card-bg: linear-gradient(155deg, #f5fbff 0%, #eff4ff 50%, #f6f1ff 100%);
    --weather-header-bg: linear-gradient(90deg, #c9f5e8 0%, #d9e6ff 55%, #eddfff 100%);
    --weather-header-text: #1a3558;
    --weather-border: #b7c9ea;
    --weather-body-bg: #fcfeff;
    --weather-cinema-glow: rgba(231, 245, 255, 0.58);
    --weather-cinema-shadow: rgba(75, 106, 199, 0.2);
}
.skin-aurora .emlog-weather-card {
    box-shadow:
        0 18px 36px rgba(66, 97, 160, 0.22),
        0 1px 0 rgba(255, 255, 255, 0.85) inset;
    border-radius: 18px;
    border-color: #b8cdef;
}
.skin-aurora .emlog-weather-card::after {
    background:
        radial-gradient(circle at var(--weather-glx) var(--weather-gly), rgba(255, 255, 255, 0.48), transparent 38%),
        radial-gradient(120% 90% at 100% 100%, rgba(75, 106, 199, 0.2), transparent 58%);
}
.skin-aurora .emlog-weather-header {
    background-image: linear-gradient(90deg, #cff7ec 0%, #dce8ff 55%, #efe1ff 100%);
    border-bottom-color: #bfd0f0;
}
.skin-aurora .emlog-weather-header::before {
    background: linear-gradient(135deg, #2dd4bf, #6366f1);
}
.skin-aurora .emlog-weather-body {
    background-image:
        radial-gradient(circle at 18% 20%, rgba(45, 212, 191, 0.16), transparent 50%),
        radial-gradient(circle at 82% 12%, rgba(99, 102, 241, 0.14), transparent 42%),
        linear-gradient(180deg, #fcfeff 0%, #f5f9ff 100%);
}
.skin-aurora .emlog-weather-stage {
    border-color: rgba(143, 169, 223, 0.42);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(241, 247, 255, 0.66));
}
.skin-aurora .weather-chip-style {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.28);
    color: #4f46e5;
}
.skin-aurora .emlog-weather-runtime {
    border-color: rgba(143, 169, 223, 0.4);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(243, 248, 255, 0.82));
}

/* 6. Neon (header dark, body still light to keep widget readable) */
.skin-neon {
    --weather-card-bg: linear-gradient(180deg, #1f2742 0%, #181f35 100%);
    --weather-header-bg: linear-gradient(90deg, #251b3d, #1c3054);
    --weather-header-text: #f5f7ff;
    --weather-border: #304062;
    --weather-body-bg: linear-gradient(180deg, #f6fbff 0%, #ecf3ff 100%);
    --weather-cinema-glow: rgba(56, 231, 255, 0.38);
    --weather-cinema-shadow: rgba(0, 0, 0, 0.36);
    --weather-cinema-mix: normal;
}
.skin-neon .emlog-weather-header::before {
    background: #22d3ee;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.8);
}
.skin-neon .emlog-weather-card {
    box-shadow:
        0 20px 34px rgba(23, 28, 52, 0.45),
        0 0 0 1px rgba(70, 88, 124, 0.7) inset,
        0 0 22px rgba(34, 211, 238, 0.14);
    border-radius: 12px;
    border-color: #1e2a46;
}
.skin-neon .emlog-weather-card::before {
    background:
        radial-gradient(110% 80% at 50% -15%, rgba(151, 176, 255, 0.28), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
}
.skin-neon .emlog-weather-card::after {
    background:
        radial-gradient(circle at var(--weather-glx) var(--weather-gly), rgba(56, 231, 255, 0.34), transparent 40%),
        radial-gradient(120% 100% at 50% 130%, rgba(0, 0, 0, 0.36), transparent 60%);
    mix-blend-mode: normal;
}
.skin-neon .emlog-weather-header {
    border-bottom-color: rgba(34, 211, 238, 0.35);
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.25);
}
.skin-neon .emlog-weather-body {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background-image:
        linear-gradient(180deg, rgba(34, 211, 238, 0.08), transparent 42%),
        repeating-linear-gradient(
            90deg,
            rgba(37, 43, 79, 0.03) 0,
            rgba(37, 43, 79, 0.03) 10px,
            rgba(255, 255, 255, 0) 10px,
            rgba(255, 255, 255, 0) 18px
        ),
        linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
}
.skin-neon .emlog-weather-stage {
    border-color: rgba(66, 91, 140, 0.56);
    background: linear-gradient(180deg, rgba(245, 250, 255, 0.96), rgba(233, 242, 255, 0.92));
}
.skin-neon .weather-chip {
    border-color: rgba(66, 91, 140, 0.45);
    color: #31476c;
}
.skin-neon .weather-chip-style {
    background: rgba(34, 211, 238, 0.12);
    border-color: rgba(34, 211, 238, 0.4);
    color: #0e7490;
}
.skin-neon .emlog-weather-runtime {
    border-color: rgba(66, 91, 140, 0.52);
    box-shadow: 0 10px 22px rgba(30, 45, 77, 0.2);
}

.weather-pos-fixed-top,
.weather-pos-fixed-bottom {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    margin: 0;
    width: calc(100% - 24px);
    max-width: 420px !important;
}

.weather-pos-fixed-top {
    top: max(12px, env(safe-area-inset-top, 12px));
}

.weather-pos-fixed-bottom {
    bottom: max(12px, env(safe-area-inset-bottom, 12px));
}

.weather-is-dismissible .weather-dismiss {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.48);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.weather-is-dismissible .weather-dismiss:hover {
    transform: scale(1.06);
    background: rgba(15, 23, 42, 0.68);
}

.emlog-weather-container.is-hidden {
    display: none !important;
}

@media (prefers-color-scheme: dark) {
    .emlog-weather-container {
        --weather-card-bg: #101827;
        --weather-header-bg: #162235;
        --weather-header-text: #f1f5f9;
        --weather-border: #243146;
        --weather-body-bg: #f8fafc;
    }
    .emlog-weather-card {
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.36);
    }
    .emlog-weather-card::before {
        opacity: 0.52;
    }
    .emlog-weather-card::after {
        opacity: 0.3;
    }
    .emlog-weather-stage {
        background: linear-gradient(180deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.48));
        border-color: rgba(100, 116, 139, 0.38);
    }
    .weather-chip {
        background: rgba(30, 41, 59, 0.6);
        border-color: rgba(100, 116, 139, 0.45);
        color: #dbe7f5;
    }
    .weather-chip-style {
        color: #93c5fd;
    }
    .emlog-weather-runtime {
        border-color: rgba(100, 116, 139, 0.45);
        background: linear-gradient(180deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.72));
        box-shadow: 0 10px 22px rgba(2, 6, 23, 0.32);
    }
    .weather-runtime-temp {
        color: #f1f5f9;
    }
    .weather-runtime-desc,
    .weather-runtime-sub {
        color: #cbd5e1;
    }
    .weather-runtime-icon {
        color: #e2e8f0;
    }
    .weather-type-clear .weather-icon-fill,
    .weather-type-clear .weather-icon-stroke {
        fill: #fbbf24;
        stroke: #fbbf24;
    }
    .weather-type-cloudy .weather-icon-fill {
        fill: #93c5fd;
    }
    .weather-type-rain .weather-icon-fill,
    .weather-type-rain .weather-icon-stroke {
        fill: #60a5fa;
        stroke: #60a5fa;
    }
    .weather-type-snow .weather-icon-fill,
    .weather-type-snow .weather-icon-stroke {
        fill: #bae6fd;
        stroke: #bae6fd;
    }
    .weather-runtime-time {
        border-top-color: rgba(148, 163, 184, 0.35);
        color: #94a3b8;
    }
    .skin-neon {
        --weather-header-text: #f8fbff;
        --weather-border: #49567b;
        --weather-cinema-glow: rgba(70, 235, 255, 0.46);
        --weather-cinema-shadow: rgba(0, 0, 0, 0.42);
    }
    .skin-aurora {
        --weather-header-text: #1f365d;
        --weather-cinema-glow: rgba(232, 246, 255, 0.52);
    }

    .emlog-weather-skeleton {
        background: rgba(15, 23, 42, 0.55);
    }
    .emlog-weather-skeleton span {
        background: rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 768px) {
    .emlog-weather-container { max-width: 100% !important; }
    .weather-pos-fixed-top,
    .weather-pos-fixed-bottom { width: calc(100% - 16px); }
    .weather-chip {
        font-size: 10px;
        padding: 0 8px;
    }
    .emlog-weather-runtime {
        padding: 12px 12px 10px;
    }
    .weather-runtime-temp {
        font-size: 28px;
    }
    .weather-runtime-desc {
        font-size: 12px;
    }
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
    .emlog-weather-card {
        transform: none !important;
        transition: box-shadow 0.2s ease, border-color 0.2s ease;
    }
    .emlog-weather-card:hover {
        transform: none !important;
    }
    .emlog-weather-card::after {
        display: none;
    }
}

/* Setting page previews */
.weather-setting-preview-dark {
    background: #101827 !important;
    border-radius: 12px;
}

.skin-option { cursor: pointer; display: block; }
.skin-option input { display: none; }
.skin-card {
    height: 70px;
    width: 100%;
    position: relative;
    border-radius: 10px;
    border: 1px solid #dbe3ef;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, filter 0.2s;
    overflow: hidden;
    background: #fff;
}
.skin-option:hover .skin-card {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}
.skin-header {
    height: 22px;
    font-size: 10px;
    line-height: 22px;
    padding-left: 8px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.skin-option input:checked + .skin-card {
    transform: translateY(-1px);
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
    filter: saturate(1.04);
}

.skin-option .small {
    color: #1f2937;
    transition: color 0.2s ease, opacity 0.2s ease;
    opacity: 0.8;
}
.skin-option input:checked + .skin-card + .small {
    color: #1d4ed8;
    opacity: 1;
}

.skin-card-cartoon {
    background: #fffef6;
    border-color: #111827;
}
.skin-card-cartoon .skin-header {
    background: #ffe169;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.skin-card-glass {
    background: linear-gradient(120deg, rgba(233, 248, 255, 0.9), rgba(253, 239, 253, 0.9));
    border-radius: 12px;
}
.skin-card-glass .skin-header {
    background: rgba(255, 255, 255, 0.72);
    color: #334155;
}

.skin-card-mac {
    background: linear-gradient(180deg, #f5f7fb 0%, #e9eef6 100%);
}
.skin-card-mac .skin-header {
    background-image:
        radial-gradient(circle, #ff5f57 3px, transparent 3px),
        radial-gradient(circle, #febc2e 3px, transparent 3px),
        radial-gradient(circle, #28c840 3px, transparent 3px),
        linear-gradient(180deg, #edf2f8 0%, #e8eef6 100%);
    background-size: 6px 6px, 6px 6px, 6px 6px, auto;
    background-position: 8px center, 17px center, 26px center, 0 0;
    background-repeat: no-repeat;
    color: #334155;
    padding-left: 36px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.skin-card-minimal {
    border-left: 4px solid #4a90d9;
    box-shadow: none;
}
.skin-card-minimal .skin-header {
    background: #f8fafc;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.skin-card-aurora {
    background: linear-gradient(90deg, #cff7ec 0%, #dce8ff 55%, #efe1ff 100%);
}
.skin-card-aurora .skin-header {
    background: rgba(255, 255, 255, 0.76);
    color: #1e3a5f;
}

.skin-card-neon {
    background: linear-gradient(180deg, #1f2742 0%, #181f35 100%);
    border-color: #1e2a46;
}
.skin-card-neon .skin-header {
    background: linear-gradient(90deg, #251b3d, #1d2a4d);
    color: #f8f9ff;
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.35);
}
