* { box-sizing: border-box; }

:root {
    --navy: #0d2b61;
    --blue: #1873ec;
    --blue-deep: #075bd4;
    --cyan: #1abcc7;
    --ink: #16233c;
    --muted: #65748d;
    --line: #dce8f5;
    --surface: rgba(255, 255, 255, 0.91);
    --shadow: 0 30px 90px rgba(33, 83, 141, 0.17);
}

html,
body {
    margin: 0;
    min-width: 320px;
    min-height: 100%;
    font-family: "Pretendard Variable", "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
    color: var(--ink);
    background: #eef7ff;
    letter-spacing: -0.02em;
}

body { min-height: 100dvh; }

.login-page {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: clamp(32px, 4vw, 68px) clamp(34px, 5vw, 92px);
    overflow: hidden;
    isolation: isolate;
}

.hias-hero {
    position: absolute;
    inset: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.96);
    border-radius: 38px;
    background: #eef7ff;
    box-shadow: 0 24px 84px rgba(48, 100, 155, 0.14);
}

.hias-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255,255,255,.08) 0%, transparent 46%, rgba(241,248,255,.30) 100%),
        linear-gradient(180deg, rgba(255,255,255,.06), rgba(232,245,255,.13));
}

.hias-hero-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: saturate(.96) contrast(.99);
}

.hias-hero-copy {
    position: absolute;
    z-index: 2;
    top: clamp(42px, 7vh, 92px);
    left: clamp(38px, 5vw, 88px);
    max-width: 490px;
}

.hias-daily-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #1269d7;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .13em;
}

.hias-daily-label span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #18bec8;
    box-shadow: 0 0 0 6px rgba(24,190,200,.12);
}

.hias-hero-copy h1 {
    margin: 19px 0 15px;
    color: var(--navy);
    font-size: clamp(36px, 3.3vw, 60px);
    line-height: 1.13;
    font-weight: 950;
    letter-spacing: -.065em;
    text-wrap: balance;
}

.hias-hero-copy h1 em {
    color: var(--blue);
    font-style: normal;
}

.hias-hero-copy > p {
    margin: 0;
    color: #50688a;
    font-size: clamp(14px, 1.15vw, 18px);
    line-height: 1.65;
    font-weight: 650;
}

.daily-brief-card {
    position: absolute;
    z-index: 3;
    left: clamp(34px, 4.2vw, 76px);
    bottom: clamp(44px, 7vh, 92px);
    width: min(440px, calc(52vw - 40px));
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 17px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 23px;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(18px) saturate(1.1);
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
    box-shadow: 0 20px 55px rgba(49, 104, 161, .16);
}

.daily-brief-icon {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 21px;
    background: linear-gradient(145deg, #e9f7ff, #fff8dc);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.84);
}

.daily-sun {
    position: absolute;
    width: 29px;
    height: 29px;
    top: 12px;
    right: 11px;
    border-radius: 50%;
    background: #ffc94b;
    box-shadow: 0 0 24px rgba(255,201,75,.52);
}

.daily-cloud {
    position: absolute;
    left: 12px;
    bottom: 15px;
    width: 42px;
    height: 17px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(47,103,154,.13);
}

.daily-cloud::before,
.daily-cloud::after {
    content: "";
    position: absolute;
    bottom: 7px;
    border-radius: 50%;
    background: #fff;
}

.daily-cloud::before { left: 7px; width: 20px; height: 20px; }
.daily-cloud::after { right: 5px; width: 15px; height: 15px; }

.daily-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-bottom: 7px;
    color: #64809f;
    font-size: 11px;
    font-weight: 800;
}

.daily-meta span + span::before { content: "·"; margin-right: 12px; }

.daily-brief-content strong {
    display: block;
    color: var(--navy);
    font-size: 18px;
    line-height: 1.35;
}

.daily-brief-content p {
    margin: 5px 0 0;
    color: #5f7087;
    font-size: 12.5px;
    line-height: 1.52;
}

.daily-privacy-note {
    position: absolute;
    z-index: 3;
    left: clamp(38px, 4.7vw, 84px);
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #678099;
    font-size: 11px;
    font-weight: 700;
}

.daily-privacy-note span {
    display: inline-flex;
    width: 17px;
    height: 17px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(24, 188, 199, .13);
    color: #0798a5;
}

.login-panel {
    position: relative;
    z-index: 5;
    width: min(480px, 38vw);
}

.login-card {
    width: 100%;
    padding: clamp(30px, 4vh, 46px) clamp(28px, 3.1vw, 46px) 30px;
    border: 1px solid rgba(255,255,255,.96);
    border-radius: 30px;
    background: var(--surface);
    backdrop-filter: blur(24px) saturate(1.06);
    -webkit-backdrop-filter: blur(24px) saturate(1.06);
    box-shadow: var(--shadow);
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: left;
}

.hias-mark {
    position: relative;
    width: 46px;
    height: 46px;
    transform: rotate(30deg);
    border-radius: 12px;
    background: linear-gradient(135deg, #1075ee 0 42%, #22c8c0 43% 69%, #85ddeb 70%);
    box-shadow: 0 10px 25px rgba(16,117,238,.23);
}

.hias-mark::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 7px;
    background: rgba(255,255,255,.96);
}

.hias-wordmark {
    color: var(--navy);
    font-size: 42px;
    line-height: .95;
    font-weight: 950;
    letter-spacing: .04em;
}

.login-brand p {
    margin: 8px 0 0;
    color: #66758b;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .025em;
}

.login-intro {
    margin: 27px 0 25px;
    text-align: center;
}

.login-intro > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1186b2;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .035em;
}

.login-intro > span::before,
.login-intro > span::after {
    content: "";
    width: 22px;
    height: 1px;
    background: #87dbe3;
}

.login-intro h2 {
    margin: 15px 0 8px;
    color: #163463;
    font-size: 20px;
    font-weight: 900;
}

.login-intro p {
    margin: 0 auto;
    max-width: 350px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.login-form { display: flex; flex-direction: column; }

.login-form label {
    margin: 0 0 7px 2px;
    color: #294261;
    font-size: 11px;
    font-weight: 850;
}

.login-form label:not(:first-child) { margin-top: 15px; }

.login-input-wrap { position: relative; }

.login-input-wrap input {
    width: 100%;
    height: 51px;
    padding: 0 16px 0 46px;
    border: 1px solid #cfdeed;
    border-radius: 13px;
    outline: none;
    background: rgba(255,255,255,.82);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.login-input-wrap input::placeholder { color: #a4b0bf; }

.login-input-wrap input:focus {
    border-color: #3888eb;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(24,115,236,.11);
}

.input-user-icon,
.input-lock-icon {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 18px;
    width: 15px;
    height: 15px;
    transform: translateY(-50%);
    color: #6280a4;
}

.input-user-icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 4px;
    width: 7px;
    height: 7px;
    border: 1.6px solid currentColor;
    border-radius: 50%;
}

.input-user-icon::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 1px;
    width: 13px;
    height: 7px;
    border: 1.6px solid currentColor;
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
}

.input-lock-icon {
    top: calc(50% + 2px);
    height: 12px;
    border: 1.6px solid currentColor;
    border-radius: 3px;
}

.input-lock-icon::before {
    content: "";
    position: absolute;
    left: 3px;
    top: -8px;
    width: 7px;
    height: 8px;
    border: 1.6px solid currentColor;
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
}

.login-message {
    min-height: 22px;
    padding-top: 6px;
    color: #dc3f53;
    font-size: 11.5px;
    line-height: 1.4;
}

.login-message.success { color: #087e88; }

#loginButton {
    height: 53px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(105deg, var(--blue-deep), #41a9f6);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(16,112,235,.25);
    transition: transform .17s ease, box-shadow .17s ease, opacity .17s ease;
}

#loginButton:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 19px 36px rgba(16,112,235,.31);
}

#loginButton:focus-visible { outline: 3px solid rgba(26,188,199,.35); outline-offset: 3px; }
#loginButton:disabled { opacity: .68; cursor: wait; transform: none; }

.login-trust-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-top: 20px;
    padding: 14px;
    border: 1px solid #dceaf7;
    border-radius: 15px;
    background: linear-gradient(120deg, rgba(244,250,255,.96), rgba(237,252,251,.75));
}

.trust-shield {
    display: inline-flex;
    width: 34px;
    height: 38px;
    align-items: center;
    justify-content: center;
    color: #098ca1;
    font-weight: 950;
    clip-path: polygon(50% 0, 92% 17%, 88% 70%, 50% 100%, 12% 70%, 8% 17%);
    background: #d8f4f3;
}

.login-trust-card strong { color: #234767; font-size: 12px; }
.login-trust-card p { margin: 3px 0 0; color: #728296; font-size: 10px; line-height: 1.45; }

.login-footnote {
    margin: 16px 0 0;
    color: #8a98a9;
    font-size: 9.5px;
    line-height: 1.45;
    text-align: center;
}

@media (max-width: 1120px) {
    .login-page {
        min-height: 100dvh;
        flex-direction: column;
        justify-content: flex-start;
        gap: 0;
        padding: 18px;
        overflow: visible;
    }
    .hias-hero {
        position: relative;
        inset: auto;
        width: 100%;
        height: min(530px, 61vh);
        flex: 0 0 auto;
    }
    .hias-hero-art { object-position: 36% center; }
    .login-panel {
        width: min(520px, calc(100% - 30px));
        margin: -44px auto 24px;
    }
    .daily-brief-card { width: min(410px, calc(100% - 60px)); bottom: 54px; }
    .daily-privacy-note { bottom: 25px; }
}

@media (max-width: 640px) {
    .login-page { padding: 0; background: #f3f9ff; }
    .hias-hero { height: 430px; border-width: 0; border-radius: 0 0 30px 30px; }
    .hias-hero-art { object-position: 37% center; }
    .hias-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(180deg, rgba(255,255,255,.10), transparent 46%, rgba(239,248,255,.52));
    }
    .hias-hero-copy { top: 25px; left: 24px; right: 20px; }
    .hias-hero-copy h1 { margin-top: 13px; font-size: clamp(29px, 9vw, 39px); }
    .hias-hero-copy > p { max-width: 270px; font-size: 12px; }
    .daily-brief-card {
        left: 18px;
        right: 18px;
        bottom: 34px;
        width: auto;
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 12px;
        padding: 13px 14px;
        border-radius: 18px;
    }
    .daily-brief-icon { width: 52px; height: 52px; border-radius: 16px; }
    .daily-sun { width: 22px; height: 22px; top: 9px; right: 8px; }
    .daily-cloud { transform: scale(.78); transform-origin: left bottom; left: 8px; bottom: 10px; }
    .daily-brief-content strong { font-size: 14px; }
    .daily-brief-content p { font-size: 10.5px; }
    .daily-meta { margin-bottom: 4px; font-size: 9px; }
    .daily-privacy-note { display: none; }
    .login-panel { width: calc(100% - 28px); margin: -16px auto 24px; }
    .login-card { padding: 29px 22px 24px; border-radius: 24px; }
    .hias-wordmark { font-size: 34px; }
    .hias-mark { width: 39px; height: 39px; }
    .login-brand p { font-size: 8px; }
}

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

/* HIAS Public Weather V1 */
.daily-brief-card {
    width: min(560px, calc(58vw - 52px));
    display: block;
    padding: 16px 17px 12px;
    border-color: rgba(255, 255, 255, .94);
    background: linear-gradient(145deg, rgba(246, 252, 255, .89), rgba(226, 243, 255, .79));
    box-shadow: 0 24px 65px rgba(36, 89, 145, .18);
}

.weather-summary {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
}

.weather-current-icon {
    display: flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(220,242,255,.85));
    font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
    font-size: 30px;
    filter: saturate(.94);
    box-shadow: inset 0 0 22px rgba(255,255,255,.68), 0 8px 24px rgba(38,102,158,.09);
}

.weather-summary-copy { min-width: 0; }

.weather-summary-copy .daily-meta {
    margin-bottom: 3px;
    font-size: 9.5px;
}

.weather-place {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--navy);
    font-size: 18px;
    line-height: 1.25;
}

.weather-place > span { color: #158db8; font-size: 17px; }
.weather-place strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.weather-summary-copy > p {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin: 3px 0 0;
    color: #4f6987;
    font-size: 10.5px;
    font-weight: 700;
}

#weatherHighLow { color: #7690aa; }

.weather-temperature {
    display: flex;
    align-items: flex-start;
    color: var(--navy);
    line-height: 1;
}

.weather-temperature strong { font-size: 43px; font-weight: 760; letter-spacing: -.065em; }
.weather-temperature span { margin: 2px 0 0 2px; font-size: 20px; font-weight: 750; }

.weather-tablist {
    display: flex;
    gap: 5px;
    margin: 11px 0 8px;
    padding: 3px;
    border: 1px solid rgba(181, 209, 234, .65);
    border-radius: 11px;
    background: rgba(255,255,255,.48);
}

.weather-tab {
    min-width: 0;
    flex: 1 1 0;
    height: 27px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6a8098;
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 850;
    cursor: pointer;
}

.weather-tab.is-active {
    background: rgba(255,255,255,.94);
    color: #106edc;
    box-shadow: 0 4px 15px rgba(47,102,159,.12);
}

.weather-tab:focus-visible { outline: 2px solid #168fe1; outline-offset: 1px; }
.weather-panel[hidden] { display: none !important; }
.weather-panel { min-height: 94px; }

.weather-now-stats {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 7px;
}

.weather-now-stats > span {
    padding: 4px 8px;
    border: 1px solid rgba(190,214,235,.75);
    border-radius: 9px;
    background: rgba(255,255,255,.48);
    color: #70859e;
    font-size: 9.5px;
    font-weight: 750;
}

.weather-now-stats strong { color: #2e567b; }
.daily-greeting { display: block; color: var(--navy); font-size: 13px; line-height: 1.4; }
.daily-message { margin: 2px 0 7px; color: #6a7e95; font-size: 9.5px; line-height: 1.4; }

.weather-advisories {
    display: grid;
    gap: 4px;
}

.weather-advisory {
    display: grid;
    grid-template-columns: 19px minmax(0, 1fr);
    gap: 6px;
    align-items: start;
    margin: 0;
    padding: 6px 8px;
    border: 1px solid rgba(145, 198, 231, .44);
    border-radius: 9px;
    background: rgba(233,247,255,.73);
    color: #315b7f;
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1.38;
}

.weather-advisory > span:first-child {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #d9eefb;
    color: #0b86bb;
    font-weight: 950;
}

.weather-advisory.severity-important {
    border-color: rgba(91, 157, 222, .52);
    background: rgba(222,240,255,.88);
    color: #164a7e;
}

.weather-advisory.is-quiet { grid-template-columns: 1fr; color: #6a8099; }

.forecast-strip {
    display: flex;
    min-height: 94px;
    gap: 6px;
    padding: 2px 1px 6px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(80,137,188,.38) transparent;
}

.forecast-item {
    flex: 0 0 65px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 7px 4px;
    border: 1px solid rgba(190,215,235,.63);
    border-radius: 11px;
    background: rgba(255,255,255,.47);
    color: #43627e;
    text-align: center;
}

.forecast-item-title { color: #6d8298; font-size: 9px; }
.forecast-item-icon { height: 25px; margin: 3px 0 1px; font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 19px; }
.forecast-item-main { color: #244d76; font-size: 11px; font-weight: 850; white-space: nowrap; }
.forecast-item-sub { margin-top: 2px; color: #7b91a7; font-size: 7.5px; white-space: nowrap; }
.forecast-strip-weekly .forecast-item { flex-basis: 69px; }

.weather-update-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
    color: #8194a8;
    font-size: 8px;
    font-weight: 750;
}

.daily-brief-card[data-weather-status="STALE"] .weather-update-line { color: #a06a20; }
.daily-brief-card[data-weather-status="UNAVAILABLE"] .weather-current-icon { color: #89a0b6; }

@keyframes hias-weather-float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1.003); }
    50% { transform: translate3d(0, -3px, 0) scale(1.005); }
}

@keyframes hias-weather-sway {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1.004); }
    50% { transform: translate3d(-3px, 1px, 0) scale(1.006); }
}

body[data-character-state="MORNING_READY"] .hias-hero-art,
body[data-character-state="DAY_FOCUS"] .hias-hero-art { animation: hias-weather-float 8s ease-in-out infinite; }
body[data-character-state="EVENING_CALM"] .hias-hero-art,
body[data-character-state="NIGHT_OWL"] .hias-hero-art { animation: hias-weather-sway 10s ease-in-out infinite; }
body[data-weather-pose="RAIN_UMBRELLA"] .weather-current-icon,
body[data-weather-pose="WINDY_HOLD"] .weather-current-icon { animation: hias-weather-sway 3.2s ease-in-out infinite; }
body[data-weather-pose="HUMIDITY_FAN"] .weather-current-icon,
body[data-weather-pose="HOT_DAY_SHADE"] .weather-current-icon,
body[data-weather-pose="COLD_DAY_SCARF"] .weather-current-icon,
body[data-weather-pose="CLEAR_WELCOME"] .weather-current-icon { animation: hias-weather-float 3.8s ease-in-out infinite; }

@media (max-width: 1120px) {
    .hias-hero { height: min(650px, 74vh); min-height: 570px; }
    .daily-brief-card { width: min(520px, calc(100% - 60px)); bottom: 52px; }
}

@media (max-width: 640px) {
    .hias-hero { height: 650px; }
    .hias-hero-copy > p { display: none; }
    .daily-brief-card {
        left: 14px;
        right: 14px;
        bottom: 31px;
        width: auto;
        padding: 13px 13px 10px;
    }
    .weather-summary { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 9px; }
    .weather-current-icon { width: 46px; height: 46px; border-radius: 15px; font-size: 25px; }
    .weather-place { font-size: 15px; }
    .weather-temperature strong { font-size: 36px; }
    .weather-summary-copy .daily-meta { font-size: 8px; }
    .weather-panel { min-height: 126px; }
    .daily-greeting { font-size: 12px; }
    .daily-message { font-size: 8.7px; }
    .weather-advisory { font-size: 8.7px; }
    .forecast-strip { min-height: 116px; }
    .forecast-item { flex-basis: 69px; padding-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .hias-hero-art,
    .weather-current-icon { animation: none !important; transform: none !important; }
}

/* ── 휴대폰 앱 설치(2026-11-02) ───────────────────────────────────── */
.app-install { margin-top: 16px; padding: 14px 14px 12px; border: 1px solid #dbe7f5; border-radius: 16px; background: #f7fbff; }
.app-install[hidden] { display: none; }
.app-install-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.app-install-head strong { color: var(--navy, #0f2a4a); font-size: 14px; }
.app-guide-button { padding: 6px 12px; border: 1px solid #1075ee; border-radius: 999px; background: #fff; color: #1075ee;
    font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.app-guide-button:hover { background: #1075ee; color: #fff; }
.app-install-qrs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px; border: 1px solid #e3ecf7;
    border-radius: 12px; background: #fff; color: inherit; text-decoration: none; text-align: center; }
.app-qr:hover { border-color: #1075ee; }
.app-qr-code { display: block; width: 112px; height: 112px; }
.app-qr-code svg { display: block; width: 100%; height: 100%; }
.app-qr-label { display: flex; flex-direction: column; gap: 2px; }
.app-qr-label b { font-size: 13px; color: #0f2a4a; }
.app-qr-label small { font-size: 11px; color: #66758b; }
.app-install-note { margin: 8px 0 0; color: #b45309; font-size: 12px; }
/* 휴대폰에서 들어오면 QR 은 감추고 단추로. */
.app-install.is-mobile .app-qr-code { display: none; }
.app-install.is-mobile .app-qr { flex-direction: row; justify-content: center; padding: 12px; }
.app-install.is-mobile .app-qr-label small { display: none; }

.app-guide { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px;
    background: rgba(15, 23, 42, 0.45); }
.app-guide[hidden] { display: none; }
body.app-guide-open { overflow: hidden; }
.app-guide-card { width: min(560px, 100%); max-height: min(86vh, 760px); display: flex; flex-direction: column; overflow: hidden;
    border-radius: 18px; background: #fff; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3); }
.app-guide-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 8px; }
.app-guide-head strong { font-size: 17px; color: #0f2a4a; }
.app-guide-close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f1f5f9; font-size: 15px; cursor: pointer; }
.app-guide-tabs { display: flex; gap: 6px; padding: 0 18px 10px; border-bottom: 1px solid #e5edf6; }
.app-guide-tabs button { flex: 1; padding: 9px 10px; border: 1px solid #dbe7f5; border-radius: 10px; background: #f7fbff;
    color: #475569; font: inherit; font-weight: 800; cursor: pointer; }
.app-guide-tabs button[aria-selected="true"] { border-color: #1075ee; background: #1075ee; color: #fff; }
.app-guide-panel { overflow-y: auto; padding: 14px 18px 18px; font-size: 13.5px; line-height: 1.6; color: #1f2937; }
.app-guide-panel[hidden] { display: none; }
.app-guide-panel ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.app-guide-panel code { padding: 1px 5px; border-radius: 5px; background: #eef2f7; font-size: 12px; }
.app-guide-path { margin-top: 6px; padding: 8px 10px; border-left: 3px solid #22c8c0; border-radius: 6px; background: #f0fdfa;
    font-size: 12.5px; color: #134e4a; }
.app-guide-tip { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff7ed; color: #9a3412; font-size: 12.5px; }

/* ── 한 화면에 들게(2026-11-02 사장님: 「로그인 페이지에 세로 스크롤이 생긴다 … 날씨 정보 하단에 넣어서 공간을 확보」) ──
   로그인 칸의 틈 · 입력칸 · QR 을 줄였다. 「안전한 개인 맞춤 브리핑」 은 날씨 아래로 옮겼다가 같은 날 제자리로(사장님: 공간이 충분하다). */
@media (min-width: 1121px) {
    .login-card { padding: clamp(20px, 3vh, 36px) clamp(26px, 2.8vw, 40px) 20px; }
    .login-intro { margin: clamp(12px, 2.2vh, 24px) 0 clamp(12px, 2vh, 20px); }
    .login-intro h2 { margin: 10px 0 6px; }
    .login-form label:not(:first-child) { margin-top: 11px; }
    .login-input-wrap input { height: 46px; }
    #loginButton { margin-top: 14px; }
    .login-footnote { margin-top: 10px; }
    .app-install { margin-top: 10px; padding: 10px 12px 9px; }
    .app-install-head { margin-bottom: 7px; }
    .app-qr { padding: 7px 6px; gap: 4px; }
    .app-qr-code { width: clamp(76px, 10vh, 104px); height: clamp(76px, 10vh, 104px); }
}
@media (min-width: 1121px) {
    .login-page { padding-top: clamp(8px, 1.6vh, 68px); padding-bottom: clamp(8px, 1.6vh, 68px); }
}
/* 키가 낮은 창(노트북 1536×864 · 1366×768 의 브라우저 안쪽) - 덜 중요한 것부터 접는다. */
@media (min-width: 1121px) and (max-height: 820px) {
    .login-footnote { display: none; }
    .app-qr-label small { display: none; }
    .hias-wordmark { font-size: 34px; }
    .login-brand p { margin-top: 4px; }
}
@media (min-width: 1121px) and (max-height: 680px) {
    .login-intro p { display: none; }
    .login-intro { margin: 10px 0 10px; }
    .login-input-wrap input { height: 42px; }
    #loginButton { height: 46px; margin-top: 10px; }
    .login-form label { margin-bottom: 5px; }
    .login-form label:not(:first-child) { margin-top: 8px; }
    .app-qr-code { width: 64px; height: 64px; }
    .app-install { padding: 8px 10px 7px; }
}
@media (min-width: 1121px) {
    .login-trust-card { margin-top: 12px; padding: 10px 12px; }
}
@media (min-width: 1121px) and (max-height: 680px) {
    .login-trust-card { margin-top: 8px; padding: 7px 10px; }
    .login-trust-card p { display: none; }
}
@media (min-width: 1121px) and (max-height: 820px) {
    .login-intro { margin: 10px 0 12px; }
    .app-qr-code { width: 70px; height: 70px; }
}
@media (min-width: 1121px) and (max-height: 680px) {
    .app-qr-code { width: 56px; height: 56px; }
    .hias-wordmark { font-size: 28px; }
    .hias-mark { width: 36px; height: 36px; }
    .login-intro h2 { margin: 6px 0 2px; font-size: 18px; }
}

/* ── 날씨 카드: 오늘 · 시간대별 · 주간을 한 번에, 글자 크게(2026-11-02 사장님: 「글자가 너무 작아서 안보여」 ·
   「오늘 날씨를 필두로 시간대별, 주간이 한꺼번에」). 탭을 걷고 세 칸을 위에서 아래로 쌓는다. ── */
.daily-brief-card { width: min(620px, calc(56vw - 40px)); padding: 18px 20px 14px; }
.weather-tablist { display: none; }
.weather-panel, .weather-panel[hidden] { display: block !important; min-height: 0; }
.weather-panel + .weather-panel { margin-top: 10px; }
.weather-panel-title { margin: 0 0 5px; color: #2e567b; font-size: 13px; font-weight: 850; letter-spacing: -.01em; }
.weather-summary { grid-template-columns: 66px minmax(0, 1fr) auto; }
.weather-current-icon { width: 62px; height: 62px; font-size: 34px; }
.weather-summary-copy .daily-meta { font-size: 12px; }
.weather-place { font-size: 22px; }
.weather-place > span { font-size: 19px; }
.weather-summary-copy > p { font-size: 13.5px; }
.weather-temperature strong { font-size: 52px; }
.weather-temperature span { font-size: 24px; }
.weather-now-stats > span { font-size: 12.5px; }
.daily-greeting { font-size: 15px; }
.daily-message { margin-bottom: 6px; font-size: 12px; }
.weather-advisory { font-size: 12px; }
.forecast-strip { min-height: 0; gap: 6px; }
.forecast-item { flex: 1 0 50px; padding: 6px 3px; }
.forecast-strip-weekly .forecast-item { flex-basis: 74px; }
.forecast-item-title { font-size: 12px; }
.forecast-item-icon { height: 26px; margin: 2px 0 0; font-size: 22px; }
.forecast-item-main { font-size: 14px; }
.forecast-item-sub { font-size: 10.5px; }
.weather-update-line { margin-top: 8px; font-size: 10.5px; }
@media (max-width: 640px) {
    .daily-brief-card { width: auto; }
    .weather-panel { min-height: 0; }
    .weather-place { font-size: 18px; }
    .weather-temperature strong { font-size: 42px; }
    .weather-summary-copy .daily-meta { font-size: 11px; }
    .daily-message, .weather-advisory { font-size: 11.5px; }
    .forecast-item { flex-basis: 56px; padding-top: 6px; }
}
/* 낮은 화면(노트북 720~820px)에서는 날씨 카드가 큰 제목을 덮었다 - 날씨와 상관없는 인사 두 줄과 제목 아래 한 줄을 접는다. */
@media (min-width: 641px) and (max-height: 820px) {
    .hias-hero-copy > p,
    .daily-greeting,
    .daily-message { display: none; }
}
/* 위아래로 쌓는 화면(태블릿 · 휴대폰, 1120px 이하) - 날씨 카드가 커져(오늘 · 시간대별 · 주간) 고정 높이(570~650px)에서 제목을
   덮었다. 높이를 내용에 맡기고 제목 → 카드 차례로 흐르게. */
@media (max-width: 1120px) {
    .hias-hero { height: auto !important; min-height: 0 !important; padding-bottom: 50px; }
    .hias-hero-copy { position: relative; top: auto; left: auto; right: auto; z-index: 3;
        padding: clamp(25px, 4vh, 48px) 20px 0 clamp(24px, 5vw, 62px); }
    .daily-brief-card { position: relative; left: auto; right: auto; bottom: auto;
        width: min(620px, calc(100% - 28px)); margin: 16px 14px 0 clamp(14px, 5vw, 62px); }
}

/* 시간대별 접기 단추 - 제목과 같은 꼴에 ▾. 펴면 ▴. */
.weather-fold { display: inline-flex; align-items: center; gap: 4px; padding: 2px 0; border: 0; background: none; cursor: pointer; font: inherit;
    color: #2e567b; font-size: 13px; font-weight: 850; }
.weather-fold:hover { color: #1075ee; }
.weather-fold-mark { font-size: 11px; transition: transform .15s ease; }
.weather-fold.is-open .weather-fold-mark { transform: rotate(180deg); }
.weather-panel-fold .weather-panel-title { margin-bottom: 0; }
.weather-panel-fold .weather-fold.is-open { margin-bottom: 5px; }
.forecast-strip[hidden] { display: none !important; }

/* 체감 · 습도 · 강수를 「맑음 최저 · 최고」 오른쪽에(2026-11-02). 좁으면 다음 줄로 내려간다. */
.weather-cond-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.weather-cond-row > p { margin: 0; }
.weather-cond-row .weather-now-stats { margin: 0; }

/* 최저 · 최고 기온 색(2026-11-02 사장님: 「최저는 파란색 최고는 빨간색」). */
.weather-temp.is-low { color: #1d6fe0; font-weight: 800; }
.weather-temp.is-high { color: #e0393e; font-weight: 800; }

/* 로봇을 살짝 오른쪽으로(2026-11-02 사장님) - 그림이 화면보다 가로가 좁아 위치값으로는 안 움직인다. 가로를 116% 로 키우고 왼쪽 끝에
   맞추면 로봇이 약 5% 오른쪽으로 간다. 왼쪽은 그림 그대로라 빈 곳이 없고, 잘리는 오른쪽 끝은 로그인 카드 자리다. */
@media (min-width: 1121px) {
    .hias-hero-art { right: auto; width: 116%; object-position: left center; }
}

/* 주간의 「오늘」 칸 테두리를 살짝 진하게(2026-11-02 사장님) - 다른 날과 갈라 보이게. */
.forecast-strip-weekly .forecast-item:first-child { border-color: rgba(70, 120, 175, .55); background: rgba(255, 255, 255, .7); }

/* QR 칸 위아래 여백을 넉넉히(2026-11-02 사장님: 「큐알코드 박스 상하단에 조금더 여백」). 낮은 화면은 한 화면에 들게 조금만. */
@media (min-width: 1121px) {
    .app-qr { padding: 14px 6px 13px; gap: 6px; }
}
@media (min-width: 1121px) and (max-height: 820px) {
    .app-qr { padding: 10px 6px; }
}

/* 오늘 칸 다듬기(2026-11-02 사장님): 인사 위에 여백 · 인사 두 문장을 한 줄로 이어(글자 크기 그대로), 「맑음 최저 · 최고」 는 한 치수
   작게(13.5 → 12.5px) · 「맑음」 굵게 · 뒤에 두 칸쯤 띄움. 시간대별 · 주간 머리 글자는 걷었다(위 템플릿). */
.weather-panel-today { margin-top: 12px; }
.weather-panel-today .daily-greeting { display: inline; margin-right: 6px; }
.weather-panel-today .daily-message { display: inline; margin: 0; }
.weather-panel-today .weather-advisories { margin-top: 8px; }
.weather-cond-row > p { font-size: 12.5px; }
#weatherCondition { font-weight: 800; margin-right: .7em; }
.weather-panel-strip { margin-top: 10px; }

/* 체감 · 습도 · 강수 칸 안에서 줄이 꺾이지 않게(폰에서 「체감 / 12.5°」 두 줄이었다). */
.weather-now-stats > span { white-space: nowrap; }

/* 폰 날씨 카드 좌우 여백을 아래 로그인 카드와 같게 14px(2026-11-02 사장님) - 왼쪽 20 · 오른쪽 8 이었다. */
@media (max-width: 640px) {
    .daily-brief-card { width: auto; margin-left: 14px; margin-right: 14px; }
}

/* 「2026-11-02 · 월요일 · 가을의 HIAS」 를 한 줄로(2026-11-02 사장님) - 꺾이면 「·」 가 둘째 줄 앞에 홀로 섰다. 한 줄이 되며 「논현동」 이
   올라와 아래 「맑음 최저 · 최고」 와 균형이 맞는다. */
.weather-summary-copy .daily-meta { flex-wrap: nowrap; white-space: nowrap; gap: 0 8px; margin-bottom: 2px; overflow: hidden; }
.weather-summary-copy .daily-meta span + span::before { margin-right: 8px; }
.weather-place { margin-bottom: 2px; }
