#weather {
    min-width: 0;
}

.weather-card {
    --weather-accent: #3979a8;
    --weather-accent-dark: #275d85;
    --weather-soft: #edf6fc;
    width: 100%;
    max-width: 460px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 20px;
    margin: 20px auto;
    border: 1px solid rgba(49, 111, 154, .14);
    border-radius: 10px;
    background:
        radial-gradient(circle at 104% -12%, rgba(255, 190, 74, .34), transparent 35%),
        linear-gradient(145deg, #ffffff 0%, #f1f8fc 100%);
    box-shadow: 0 8px 24px rgba(32, 74, 103, .13);
}

.weather-card::before,
.weather-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.weather-location-tools {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    padding-bottom: 13px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(48, 72, 89, .10);
}

.weather-location-form {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 6px;
}

.weather-location-form input {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    margin: 0;
    padding: 8px 10px;
    box-sizing: border-box;
    border: 1px solid #cbd6df;
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    color: #34414b;
    font: inherit;
}

.weather-location-form input:focus {
    border-color: #6e94b2;
    box-shadow: 0 0 0 3px rgba(57, 121, 168, .14);
    outline: 0;
}

.weather-card .weather-location-submit,
.weather-card .weather-location-auto {
    min-height: 40px;
    margin: 0;
    border: 1px solid #c6d4df;
    border-radius: 8px;
    background: rgba(255, 255, 255, .88);
    color: var(--weather-accent-dark);
    box-shadow: none;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.weather-card .weather-location-submit {
    width: 40px;
    padding: 0;
    display: grid;
    place-items: center;
}

.weather-card .weather-location-auto {
    padding: 7px 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    white-space: nowrap;
}

.weather-card .weather-location-submit:hover,
.weather-card .weather-location-submit:focus-visible,
.weather-card .weather-location-auto:hover,
.weather-card .weather-location-auto:focus-visible {
    border-color: var(--weather-accent);
    background: var(--weather-soft);
    color: var(--weather-accent-dark);
    outline: 0;
}

.weather-card .weather-location-auto:disabled {
    opacity: .62;
    cursor: wait;
}

.weather-location-submit .weather-svg-icon,
.weather-location-auto .weather-svg-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.weather-location-status {
    grid-column: 1 / -1;
    min-height: 0;
    margin: 0;
    color: #6c7881;
    font-size: 12px;
    line-height: 1.35;
}

.weather-location-status:empty {
    display: none;
}

.weather-location-status.is-error {
    color: #9b3434;
}

.weather-state-card .weather-state {
    min-height: 120px;
}

.weather-card::before {
    width: 120px;
    height: 120px;
    right: -54px;
    top: -66px;
    border: 22px solid rgba(255, 255, 255, .42);
    border-radius: 50%;
}

.weather-card::after {
    width: 160px;
    height: 46px;
    left: -62px;
    bottom: 84px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .34);
    transform: rotate(-8deg);
}

.weather-condition-rain,
.weather-condition-storm {
    --weather-accent: #486b91;
    --weather-accent-dark: #344f6e;
    --weather-soft: #eef3f8;
    background:
        radial-gradient(circle at 104% -12%, rgba(124, 160, 193, .29), transparent 37%),
        linear-gradient(145deg, #fff 0%, #edf3f8 100%);
}

.weather-condition-sun {
    --weather-accent: #c87516;
    --weather-accent-dark: #99540c;
    --weather-soft: #fff6e6;
    background:
        radial-gradient(circle at 103% -10%, rgba(255, 180, 51, .45), transparent 39%),
        linear-gradient(145deg, #fff 0%, #fff8eb 100%);
}

.weather-condition-moon,
.weather-condition-fog {
    --weather-accent: #66719a;
    --weather-accent-dark: #4a557e;
    --weather-soft: #f1f3f9;
}

.weather-svg-icon,
.weather-main-icon {
    width: 22px;
    height: 22px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.weather-top {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.weather-icon-wrap {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
    color: var(--weather-accent);
    box-shadow: 0 8px 18px rgba(46, 91, 123, .12), inset 0 1px rgba(255, 255, 255, .85);
    backdrop-filter: blur(5px);
}

.weather-main-icon {
    width: 39px;
    height: 39px;
    stroke-width: 1.55;
}

.weather-heading {
    min-width: 0;
}

.weather-eyebrow {
    display: block;
    margin: 0 0 3px;
    color: var(--weather-accent-dark);
    font-size: .78em;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.weather-heading h2 {
    margin: 0;
    overflow: hidden;
    color: #303b46;
    font-size: 1.25rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weather-summary {
    margin: 5px 0 0;
    overflow: hidden;
    color: #69747d;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weather-temperature-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0 14px;
    border-bottom: 1px solid rgba(48, 72, 89, .10);
}

.weather-temperature {
    color: var(--weather-accent-dark);
    font-size: clamp(2.75rem, 7vw, 3.5rem);
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: .92;
}

.weather-temperature-meta {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.weather-temperature-meta strong,
.weather-temperature-meta span {
    display: block;
}

.weather-temperature-meta strong {
    color: #3c4851;
}

.weather-temperature-meta span {
    color: #74808a;
    line-height: 1.3;
}

.weather-details {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.weather-detail {
    min-width: 0;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 8px;
    border: 1px solid rgba(55, 94, 119, .09);
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
}

.weather-detail-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--weather-soft);
    color: var(--weather-accent);
}

.weather-detail-icon .weather-svg-icon {
    width: 18px;
    height: 18px;
}

.weather-detail small,
.weather-detail strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weather-detail small {
    color: #7b858d;
}

.weather-detail strong {
    margin-top: 2px;
    color: #3c464f;
    font-size: .94em;
}

.weather-sun-strip {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 10px 11px;
    margin-top: 10px;
    border: 1px solid rgba(211, 147, 36, .13);
    border-radius: 8px;
    background: rgba(255, 250, 238, .82);
    color: #b16b10;
}

.weather-sun-strip > .weather-svg-icon {
    width: 21px;
    height: 21px;
}

.weather-sun-strip small,
.weather-sun-strip strong {
    display: block;
}

.weather-sun-strip small {
    color: #8a7a61;
}

.weather-sun-strip strong {
    margin-top: 1px;
    color: #584d3c;
}

.weather-sun-chance {
    padding: 4px 7px;
    border-radius: 999px;
    background: #fff;
    color: #9d6012;
    font-weight: 800;
}

.weather-forecast,
.weather-alarm {
    position: relative;
    z-index: 1;
    padding: 11px 12px;
    margin-top: 10px;
    border-radius: 8px;
}

.weather-forecast {
    border: 1px solid rgba(57, 121, 168, .13);
    background: rgba(241, 247, 251, .86);
    color: #526571;
}

.weather-forecast strong {
    color: var(--weather-accent-dark);
}

.weather-forecast p {
    display: -webkit-box;
    margin: 4px 0 0;
    overflow: hidden;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.weather-alarm {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border: 1px solid #efc7c7;
    background: #fff0f0;
    color: #8b3535;
    font-weight: 700;
}

.weather-alarm .weather-svg-icon {
    flex: 0 0 20px;
}

.weather-source {
    position: relative;
    z-index: 1;
    margin: 10px 0 0;
    color: #8a939a;
    font-size: .82em;
    text-align: right;
}

.weather-source a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.weather-source a:hover,
.weather-source a:focus-visible {
    color: var(--weather-accent-dark);
}

.weather-state {
    min-height: 90px;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 16px;
    border-radius: 8px;
    background: #f5f7f8;
    color: #6c747b;
    text-align: center;
}

@media (max-width: 380px) {
    .weather-card {
        padding: 16px;
    }

    .weather-top {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 11px;
    }

    .weather-icon-wrap {
        width: 54px;
        height: 54px;
        border-radius: 15px;
    }

    .weather-main-icon {
        width: 34px;
        height: 34px;
    }

    .weather-location-tools {
        grid-template-columns: minmax(0, 1fr);
    }

    .weather-card .weather-location-auto {
        width: 100%;
    }
}

/* r521: duidelijke en prettig bruikbare locatiekeuze. */
.weather-location-tools {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 0 0 15px;
    margin: 0 0 15px;
    border-bottom: 1px solid rgba(48, 72, 89, .11);
}

.weather-location-heading {
    min-width: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
}

.weather-location-heading-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--weather-soft);
    color: var(--weather-accent-dark);
}

.weather-location-heading-icon .weather-svg-icon {
    width: 19px;
    height: 19px;
}

.weather-location-heading strong,
.weather-location-heading small {
    display: block;
}

.weather-location-heading strong {
    color: #34414b;
    font-size: 1rem;
    line-height: 1.2;
}

.weather-location-heading small {
    margin-top: 2px;
    color: #75818a;
    font-size: .82em;
    line-height: 1.35;
}

.weather-location-form {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.weather-location-input-wrap {
    min-width: 0;
    position: relative;
    display: block;
}

.weather-location-input-wrap > .weather-svg-icon {
    width: 18px;
    height: 18px;
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 12px;
    color: #6b8293;
    transform: translateY(-50%);
    pointer-events: none;
}

.weather-location-form .weather-location-input-wrap input {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px 9px 38px;
    border: 1px solid #c4d2dd;
    border-radius: 8px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(35, 65, 85, .05);
}

.weather-location-form .weather-location-input-wrap input::placeholder {
    color: #8b969e;
}

.weather-card .weather-location-submit {
    width: auto;
    min-width: 92px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border-color: var(--weather-accent-dark);
    background: linear-gradient(180deg, var(--weather-accent) 0%, var(--weather-accent-dark) 100%);
    color: #fff;
    box-shadow: 0 3px 8px rgba(39, 93, 133, .18), inset 0 1px rgba(255, 255, 255, .22);
    white-space: nowrap;
}

.weather-card .weather-location-submit:hover,
.weather-card .weather-location-submit:focus-visible {
    border-color: var(--weather-accent-dark);
    background: linear-gradient(180deg, var(--weather-accent-dark) 0%, var(--weather-accent-dark) 100%);
    color: #fff;
}

.weather-card .weather-location-auto {
    width: 100%;
    min-height: 40px;
    justify-content: flex-start;
    padding: 8px 11px;
    border-color: #ccd8e1;
    background: rgba(255, 255, 255, .78);
    font-size: .88em;
    white-space: normal;
    text-align: left;
}

.weather-location-status {
    width: 100%;
    padding-left: 2px;
    font-size: .82em;
}

@media (max-width: 360px) {
    .weather-location-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .weather-card .weather-location-submit {
        width: 100%;
    }
}

/* r546: locatiekeuze compact in de weerkaart en bewerken via een kleine popup. */
.weather-location-trigger {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 0 0 14px;
    margin: 0 0 15px;
    border: 0;
    border-bottom: 1px solid rgba(48, 72, 89, .11);
    border-radius: 0;
    background: transparent;
    color: #34414b;
    box-shadow: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.weather-location-trigger:hover,
.weather-location-trigger:focus-visible {
    color: var(--weather-accent-dark);
    outline: 0;
}

.weather-location-trigger:focus-visible {
    border-bottom-color: var(--weather-accent);
}

.weather-location-trigger-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--weather-soft);
    color: var(--weather-accent-dark);
}

.weather-location-trigger-icon .weather-svg-icon {
    width: 20px;
    height: 20px;
}

.weather-location-trigger-copy {
    min-width: 0;
}

.weather-location-trigger-copy small,
.weather-location-trigger-copy strong {
    display: block;
}

.weather-location-trigger-copy small {
    color: #7b8790;
    font-size: .8em;
    line-height: 1.2;
}

.weather-location-trigger-copy strong {
    margin-top: 2px;
    overflow: hidden;
    color: #34414b;
    font-size: 1rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weather-location-trigger-action {
    padding: 6px 9px;
    border: 1px solid rgba(57, 121, 168, .18);
    border-radius: 7px;
    background: rgba(255, 255, 255, .72);
    color: var(--weather-accent-dark);
    font-size: .82em;
    font-weight: 750;
    white-space: nowrap;
}

.weather-location-trigger:hover .weather-location-trigger-action,
.weather-location-trigger:focus-visible .weather-location-trigger-action {
    border-color: var(--weather-accent);
    background: var(--weather-soft);
}

body.weather-location-modal-open {
    overflow: hidden;
}

.weather-location-modal[hidden] {
    display: none !important;
}

.weather-location-modal {
    position: fixed;
    z-index: 5200;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(23, 28, 34, .58);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
}

.weather-location-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.weather-location-modal-dialog {
    --weather-accent: #3979a8;
    --weather-accent-dark: #275d85;
    --weather-soft: #edf6fc;
    width: min(100%, 430px);
    max-height: min(84vh, 620px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(51, 68, 81, .20);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(17, 24, 31, .30);
    transform: translateY(12px) scale(.985);
    transition: transform .18s ease;
}

.weather-location-modal.is-open .weather-location-modal-dialog {
    transform: translateY(0) scale(1);
}

.weather-location-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid #d8dde2;
    background: linear-gradient(180deg, #f4f5f7 0%, #e9ecef 100%);
}

.weather-location-modal-header h2 {
    margin: 2px 0 0;
    color: #34414b;
    font-size: 1.25rem;
}

.weather-location-modal-close {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid #cfd5da;
    border-radius: 50%;
    background: #fff;
    color: #4f5d67;
    box-shadow: none;
    cursor: pointer;
}

.weather-location-modal-close:hover,
.weather-location-modal-close:focus-visible {
    border-color: #aeb8c0;
    background: #f5f7f8;
    outline: 0;
}

.weather-location-modal-close .welcome-svg-icon {
    width: 18px;
    height: 18px;
}

.weather-location-modal-body {
    overflow: auto;
    padding: 20px;
    background: #fff;
}

.weather-location-modal .weather-location-tools {
    gap: 12px;
    padding: 0;
    margin: 0;
    border: 0;
}

.weather-location-modal .weather-location-heading {
    grid-template-columns: 40px minmax(0, 1fr);
}

.weather-location-modal .weather-location-heading-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.weather-location-modal .weather-location-form {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.weather-location-modal .weather-location-submit,
.weather-location-modal .weather-location-auto {
    min-height: 42px;
    margin: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.weather-location-modal .weather-location-submit {
    min-width: 102px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid var(--weather-accent-dark);
    background: linear-gradient(180deg, var(--weather-accent) 0%, var(--weather-accent-dark) 100%);
    color: #fff;
    box-shadow: 0 3px 8px rgba(39, 93, 133, .18), inset 0 1px rgba(255, 255, 255, .22);
    white-space: nowrap;
}

.weather-location-modal .weather-location-submit:hover,
.weather-location-modal .weather-location-submit:focus-visible {
    background: var(--weather-accent-dark);
    outline: 0;
}

.weather-location-modal .weather-location-auto {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 9px 11px;
    border: 1px solid #ccd8e1;
    background: #f7fafc;
    color: var(--weather-accent-dark);
    text-align: left;
}

.weather-location-modal .weather-location-auto:hover,
.weather-location-modal .weather-location-auto:focus-visible {
    border-color: var(--weather-accent);
    background: var(--weather-soft);
    outline: 0;
}

.weather-location-modal .weather-location-auto:disabled {
    opacity: .62;
    cursor: wait;
}

@media (max-width: 520px) {
    .weather-location-modal {
        padding: 12px;
    }

    .weather-location-modal-header,
    .weather-location-modal-body {
        padding: 16px;
    }

    .weather-location-modal .weather-location-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .weather-location-modal .weather-location-submit {
        width: 100%;
    }
}

/* r552: bewerkknop volledig rechts en iets ruimer. */
.weather-location-title-row {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.weather-location-title-row h2 {
    min-width: 0;
    flex: 0 1 auto;
    margin: 0;
    overflow: hidden;
    color: #303b46;
    font-size: 1.25rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weather-card .weather-location-edit.button {
    width: 38px;
    min-width: 38px;
    height: 34px;
    min-height: 34px;
    flex: 0 0 38px;
    display: inline-grid;
    place-items: center;
    margin: 0 0 0 auto;
    padding: 7px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.weather-card .weather-location-edit .weather-svg-icon {
    width: 16px;
    height: 16px;
}

.weather-state-heading {
    margin-bottom: 14px;
}

.weather-state-heading .weather-location-title-row {
    max-width: 100%;
}

.weather-location-modal-dialog {
    width: min(520px, calc(100vw - 40px));
    max-height: min(520px, calc(100vh - 40px));
    display: grid;
    grid-template-rows: minmax(0, 1fr) 68px;
    border: 1px solid #aeb6bf;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .30);
}

.weather-location-modal-body {
    min-height: 0;
    overflow: auto;
    padding: 22px;
    background: #fff;
}

.weather-location-modal .weather-location-tools {
    gap: 14px;
    margin: 0;
    padding: 0;
    border: 0;
}

.weather-location-modal .weather-location-heading {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
}

.weather-location-modal .weather-location-heading-icon {
    width: 42px;
    height: 42px;
    border-radius: 9px;
}

.weather-location-modal .weather-location-form {
    grid-template-columns: minmax(0, 1fr);
}

.weather-location-modal .weather-location-input-wrap input {
    min-height: 44px;
    font: inherit;
}

.weather-location-modal .weather-location-auto {
    min-height: 42px;
    margin: 0;
    border-radius: 6px;
    font: inherit;
    font-weight: 700;
}

.weather-location-modal-footer {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 68px;
    padding: 12px 16px;
    border-top: 1px solid #c8cdd3;
    background: #eceff2;
}

.weather-location-modal-footer h1 {
    min-width: 0;
    flex: 1 1 auto;
    margin: 0;
    overflow: hidden;
    color: #202428;
    font: 700 1.08rem/1.25 Tahoma, Arial, sans-serif;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weather-location-modal-footer nav {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.weather-location-modal-footer .button {
    min-height: 36px;
    margin: 0;
    padding: 7px 14px;
    font: inherit;
    cursor: pointer;
}

@media (max-width: 520px) {
    .weather-location-modal {
        padding: 12px;
    }

    .weather-location-modal-dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
        grid-template-rows: minmax(0, 1fr) auto;
    }

    .weather-location-modal-body {
        padding: 18px;
    }

    .weather-location-modal-footer {
        min-height: 0;
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .weather-location-modal-footer nav,
    .weather-location-modal-footer .button {
        width: 100%;
    }
}

/* r553: compacte weerkop; icoon gelijk aan de gezamenlijke teksthoogte. */
.weather-top {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
}

.weather-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 17px;
}

.weather-main-icon {
    width: 40px;
    height: 40px;
}

.weather-location-title-row {
    position: relative;
    min-height: 0;
    padding-right: 48px;
}

.weather-location-title-row h2 {
    line-height: 1.12;
}

.weather-card .weather-location-edit.button {
    position: absolute;
    top: 50%;
    right: 0;
    margin: 0;
    transform: translateY(-50%);
}

.weather-summary {
    margin-top: 2px;
    line-height: 1.25;
}

@media (max-width: 380px) {
    .weather-top {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 10px;
    }

    .weather-icon-wrap {
        width: 60px;
        height: 60px;
    }

    .weather-main-icon {
        width: 37px;
        height: 37px;
    }
}

/* r557: iets ruimere, gelijkmatige verticale ritmiek voor het weerblok op Welkom. */
#container.welcome-page-shell .welcome-weather-panel .weather-heading {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 3px !important;
    min-width: 0 !important;
}

#container.welcome-page-shell .welcome-weather-panel .weather-eyebrow,
#container.welcome-page-shell .welcome-weather-panel .weather-location-title-row,
#container.welcome-page-shell .welcome-weather-panel .weather-location-title-row h2,
#container.welcome-page-shell .welcome-weather-panel .weather-summary,
#container.welcome-page-shell .welcome-weather-panel .weather-temperature-meta,
#container.welcome-page-shell .welcome-weather-panel .weather-temperature-meta strong,
#container.welcome-page-shell .welcome-weather-panel .weather-temperature-meta span,
#container.welcome-page-shell .welcome-weather-panel .weather-source {
    margin: 0 !important;
}

#container.welcome-page-shell .welcome-weather-panel .weather-eyebrow {
    line-height: 16px !important;
}

#container.welcome-page-shell .welcome-weather-panel .weather-location-title-row {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 0 52px 0 0 !important;
    line-height: 22px !important;
}

#container.welcome-page-shell .welcome-weather-panel .weather-location-title-row h2 {
    display: block !important;
    min-height: 0 !important;
    line-height: 22px !important;
}

#container.welcome-page-shell .welcome-weather-panel .weather-card .weather-location-edit.button {
    position: absolute !important;
    top: 50% !important;
    right: 0 !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
}

#container.welcome-page-shell .welcome-weather-panel .weather-summary {
    line-height: 20px !important;
}

#container.welcome-page-shell .welcome-weather-panel .weather-temperature-row {
    align-items: center !important;
    gap: 12px !important;
    margin: 12px 0 0 !important;
    padding: 0 !important;
    border-bottom: 0 !important;
}

#container.welcome-page-shell .welcome-weather-panel .weather-temperature-meta {
    display: grid !important;
    gap: 3px !important;
}

#container.welcome-page-shell .welcome-weather-panel .weather-temperature-meta strong,
#container.welcome-page-shell .welcome-weather-panel .weather-temperature-meta span {
    line-height: 20px !important;
}

#container.welcome-page-shell .welcome-weather-panel .weather-details,
#container.welcome-page-shell .welcome-weather-panel .weather-sun-strip,
#container.welcome-page-shell .welcome-weather-panel .weather-forecast,
#container.welcome-page-shell .welcome-weather-panel .weather-alarm,
#container.welcome-page-shell .welcome-weather-panel .weather-source {
    margin-top: 12px !important;
}


/* r558: iets ruimere, nog steeds gelijkmatige verticale ritmiek. */
#container.welcome-page-shell .welcome-weather-panel .weather-top {
    grid-template-columns: 68px minmax(0, 1fr) !important;
}

#container.welcome-page-shell .welcome-weather-panel .weather-icon-wrap {
    width: 68px !important;
    height: 68px !important;
}

#container.welcome-page-shell .welcome-weather-panel .weather-main-icon {
    width: 42px !important;
    height: 42px !important;
}

#container.welcome-page-shell .welcome-weather-panel .weather-heading {
    gap: 5px !important;
}

#container.welcome-page-shell .welcome-weather-panel .weather-temperature-row {
    margin-top: 16px !important;
}

#container.welcome-page-shell .welcome-weather-panel .weather-temperature-meta {
    gap: 5px !important;
}

#container.welcome-page-shell .welcome-weather-panel .weather-details,
#container.welcome-page-shell .welcome-weather-panel .weather-sun-strip,
#container.welcome-page-shell .welcome-weather-panel .weather-forecast,
#container.welcome-page-shell .welcome-weather-panel .weather-alarm,
#container.welcome-page-shell .welcome-weather-panel .weather-source {
    margin-top: 16px !important;
}

/* r558: weerlocatie-footer exact volgens Prikbordbericht plaatsen. */
.weather-location-modal-footer {
    box-sizing: border-box !important;
    height: 70px !important;
    min-height: 70px !important;
    max-height: 70px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 18px !important;
    padding: 12px 22px !important;
    border-top: 1px solid #ccc !important;
    background: #f2f2f2 !important;
    box-shadow: none !important;
}

.weather-location-modal-footer h1 {
    min-width: 0 !important;
    margin: 0 !important;
    color: #000 !important;
    font-family: var(--base-font) !important;
    font-size: calc(var(--base-font-size) + 6px) !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: normal !important;
    text-align: left !important;
}

.weather-location-modal-footer nav {
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 16px !important;
    margin: 0 !important;
}

.weather-location-modal-footer .button {
    min-height: 42px !important;
    margin: 0 !important;
}

@media (max-width: 520px) {
    .weather-location-modal-footer {
        grid-template-columns: minmax(0, 1fr) auto !important;
        padding: 12px 14px !important;
        gap: 10px !important;
    }

    .weather-location-modal-footer h1 {
        font-size: calc(var(--base-font-size) + 4px) !important;
    }

    .weather-location-modal-footer nav {
        width: auto !important;
        display: flex !important;
        gap: 8px !important;
    }

    .weather-location-modal-footer .button {
        width: auto !important;
        min-width: 86px !important;
    }
}


/* r560: Weer nu verwijderd, kleiner icoon en ruimere gelijkmatige tussenruimte. */
#container.welcome-page-shell .welcome-weather-panel .weather-top {
    grid-template-columns: 54px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 12px !important;
}

#container.welcome-page-shell .welcome-weather-panel .weather-icon-wrap {
    width: 54px !important;
    height: 54px !important;
    border-radius: 14px !important;
}

#container.welcome-page-shell .welcome-weather-panel .weather-main-icon {
    width: 32px !important;
    height: 32px !important;
}

#container.welcome-page-shell .welcome-weather-panel .weather-heading {
    gap: 7px !important;
}

#container.welcome-page-shell .welcome-weather-panel .weather-temperature-row {
    margin-top: 20px !important;
}

#container.welcome-page-shell .welcome-weather-panel .weather-temperature-meta {
    gap: 7px !important;
}

#container.welcome-page-shell .welcome-weather-panel .weather-details,
#container.welcome-page-shell .welcome-weather-panel .weather-sun-strip,
#container.welcome-page-shell .welcome-weather-panel .weather-forecast,
#container.welcome-page-shell .welcome-weather-panel .weather-alarm,
#container.welcome-page-shell .welcome-weather-panel .weather-source {
    margin-top: 20px !important;
}
