:root {
    --blue: #00A3E0;
    --green: #73C92D;
    --grey: #91999F;
    --text: #ffffff;
    --text-soft: rgba(255, 255, 255, .78);
    --glass: rgba(8, 15, 22, .58);
    --glass-strong: rgba(8, 15, 22, .82);
    --line: rgba(255, 255, 255, .14);
    --shadow: 0 24px 70px rgba(0, 0, 0, .34);
    --radius-lg: 26px;
    --radius-md: 18px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    font-family: "Trebuchet MS", Arial, sans-serif;
    background: #071018;
    color: var(--text);
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(0, 163, 224, .55);
    outline-offset: 3px;
}

.background-layer,
.background-shade,
#particles-js {
    position: fixed;
    inset: 0;
}

.background-layer {
    z-index: 0;
    background:
        radial-gradient(circle at 20% 18%, rgba(0, 163, 224, .24), transparent 38%),
        radial-gradient(circle at 78% 72%, rgba(115, 201, 45, .18), transparent 42%),
        linear-gradient(135deg, #07121d, #15202a 48%, #0b1718);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    animation: zoomBreathe 42s ease-in-out infinite;
    will-change: transform;
}

body.zoom-disabled .background-layer {
    animation: none;
}

.background-shade {
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, .03) 28%, rgba(0, 0, 0, .05) 62%, rgba(0, 0, 0, .42) 100%),
        radial-gradient(circle at center, transparent 28%, rgba(0, 0, 0, .18) 100%);
    pointer-events: none;
}

#particles-js {
    z-index: 2;
    pointer-events: auto;
    transition: opacity .3s ease;
}

.particles-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

body.particles-disabled #particles-js {
    opacity: 0;
    pointer-events: none;
}

.side-panel {
    position: fixed;
    z-index: 40;
}

@keyframes zoomBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.075); }
}

.topbar,
.bottom-bar,
.home-stage,
.today-handle {
    position: fixed;
    z-index: 10;
}

.topbar {
    top: calc(18px + var(--safe-top));
    right: calc(20px + var(--safe-right));
    display: flex;
    gap: 10px;
}

.icon-btn {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(5, 12, 18, .34);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    backdrop-filter: blur(14px);
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.icon-btn:hover {
    transform: translateY(-2px);
    background: rgba(5, 12, 18, .58);
    border-color: rgba(255, 255, 255, .28);
}

.icon-btn-small {
    width: 40px;
    height: 40px;
}

.home-stage {
    inset: 0;
    display: grid;
    place-items: center;
    padding: 90px 24px 110px;
    pointer-events: none;
}

.hero {
    width: min(900px, 100%);
    text-align: center;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .48), 0 1px 2px rgba(0, 0, 0, .85);
    transform: translateY(-1.5vh);
}

.clock {
    font-size: clamp(4.7rem, 10vw, 8.4rem);
    font-weight: 700;
    line-height: .9;
    letter-spacing: -.06em;
}

.date {
    margin-top: 14px;
    font-size: clamp(1rem, 2.2vw, 1.45rem);
    font-weight: 600;
    color: rgba(255, 255, 255, .92);
}

.greeting {
    margin-top: 55px;
    font-size: clamp(1.55rem, 3.2vw, 2.35rem);
    font-weight: 700;
}

.weather-glance {
    pointer-events: auto;
    margin: 26px auto 0;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    max-width: min(560px, 100%);
    border: 1px solid transparent;
    background: transparent;
    color: #fff;
    border-radius: 22px;
    padding: 12px 18px;
    cursor: pointer;
    text-align: left;
    text-shadow: inherit;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.weather-glance:hover {
    background: rgba(0, 0, 0, .22);
    border-color: rgba(255, 255, 255, .12);
    transform: translateY(-2px);
    backdrop-filter: blur(8px);
}

.weather-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    font-size: 2.25rem;
}

.weather-texts {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.weather-main {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 700;
}

.weather-sub {
    color: rgba(255, 255, 255, .78);
    font-size: .92rem;
}





.today-handle {
    left: calc(18px + var(--safe-left));
    bottom: calc(20px + var(--safe-bottom));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(6, 13, 19, .38);
    color: #fff;
    padding: 11px 15px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.today-handle:hover {
    transform: translateY(-2px);
    background: rgba(6, 13, 19, .58);
    border-color: rgba(255,255,255,.28);
}

.handle-arrow {
    font-size: .8rem;
    transition: transform .3s ease;
}

.today-handle[aria-expanded="true"] .handle-arrow {
    transform: rotate(180deg);
}

.bottom-bar {
    left: calc(20px + var(--safe-left));
    right: calc(20px + var(--safe-right));
    bottom: calc(16px + var(--safe-bottom));
    display: flex;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
}

.source-note {
    display: none;
}

.bing-actions {
    display: flex;
    gap: 8px;
    pointer-events: auto;
}






.panel-head,
.modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.panel-head {
    margin-bottom: 26px;
}

.eyebrow {
    display: block;
    margin-bottom: 4px;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--blue);
    font-weight: 700;
}

.panel-head h2,
.modal-head h2 {
    margin: 0;
    font-size: 1.75rem;
}

.today-content {
    display: grid;
    gap: 12px;
}

.today-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .06);
}

.today-card-highlight {
    background: linear-gradient(135deg, rgba(0, 163, 224, .20), rgba(145, 153, 159, .10));
}

.today-card > i,
.today-card-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, .09);
}

.today-card strong {
    display: block;
    margin-bottom: 4px;
}

.today-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.45;
    font-size: .9rem;
}

.ghost-card {
    opacity: .76;
}

.settings-form,
.settings-group {
    display: grid;
    gap: 12px;
}

.settings-form {
    gap: 24px;
}

.settings-group {
    padding: 17px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .08);
}

.settings-group h3 {
    margin: 0 0 3px;
    font-size: 1rem;
}

.field-label {
    font-size: .84rem;
    color: var(--text-soft);
}

.text-input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    background: rgba(0, 0, 0, .22);
    color: #fff;
    padding: 12px 13px;
}

.text-input::placeholder {
    color: rgba(255, 255, 255, .4);
}

.field-help {
    margin: -3px 0 0;
    font-size: .76rem;
    color: rgba(255, 255, 255, .5);
}

.choice-line,
.switch-line {
    display: flex;
    align-items: center;
    gap: 11px;
    cursor: pointer;
}

.choice-line input {
    accent-color: var(--blue);
}

.choice-line span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.choice-line small {
    color: rgba(255, 255, 255, .52);
    font-size: .74rem;
}

.switch-line {
    justify-content: space-between;
    position: relative;
    min-height: 31px;
}

.switch-line input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-ui {
    width: 46px;
    height: 25px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
    position: relative;
    transition: background .2s ease;
}

.switch-ui::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s ease;
}

.switch-line input:checked + .switch-ui {
    background: var(--blue);
}

.switch-line input:checked + .switch-ui::after {
    transform: translateX(21px);
}

.primary-btn,
.secondary-btn {
    border: 0;
    border-radius: 13px;
    min-height: 44px;
    padding: 11px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
}

.primary-btn {
    color: #fff;
    background: var(--blue);
    box-shadow: 0 12px 30px rgba(0, 163, 224, .18);
}

.secondary-btn {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
}

.modal {
    width: min(1180px, calc(100vw - 30px));
    max-height: min(900px, calc(100vh - 30px));
    padding: 0;
    border: 0;
    border-radius: 28px;
    background: transparent;
    color: #fff;
    overflow: hidden;
}

.modal::backdrop {
    background: rgba(0, 0, 0, .48);
    backdrop-filter: blur(8px);
}

.modal-shell {
    max-height: min(900px, calc(100vh - 30px));
    overflow-y: auto;
    padding: 28px;
    background: rgba(0, 0, 0, .20);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(30px) saturate(120%);
    -webkit-backdrop-filter: blur(30px) saturate(120%);
}

.modal-head {
    margin-bottom: 24px;
}

.weather-loading {
    min-height: 330px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    color: var(--text-soft);
}

.weather-loading i {
    font-size: 2rem;
    color: var(--blue);
}

.weather-loading[hidden],
.weather-detail[hidden] {
    display: none !important;
}

.weather-detail {
    display: grid;
    gap: 24px;
}

.weather-overview {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .1);
}

.weather-overview-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    font-size: 3.2rem;
    background: rgba(255, 255, 255, .08);
}

.weather-overview-temp {
    font-size: 3.15rem;
    line-height: .95;
    font-weight: 700;
}

.weather-overview-condition {
    margin-top: 7px;
    font-size: 1.2rem;
    font-weight: 700;
}

.weather-overview-meta {
    margin-top: 4px;
    color: var(--text-soft);
    font-size: .9rem;
}

.section-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-title-row h3 {
    margin: 0;
    font-size: 1.05rem;
}

.section-title-row span {
    font-size: .78rem;
    color: rgba(255, 255, 255, .48);
}

.hourly-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(92px, 1fr);
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.hourly-item {
    min-width: 92px;
    padding: 13px 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .08);
    text-align: center;
}

.hourly-item.is-now {
    border-color: rgba(0, 163, 224, .42);
    background: rgba(0, 163, 224, .12);
}

.hourly-time {
    color: rgba(255, 255, 255, .6);
    font-size: .78rem;
}

.hourly-icon {
    margin: 10px 0;
    font-size: 1.3rem;
}

.hourly-temp {
    display: block;
    font-size: 1rem;
}

.hourly-rain {
    display: block;
    margin-top: 5px;
    color: #8fd8f3;
    font-size: .72rem;
}

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

.weather-card {
    min-width: 0;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .085);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 17px;
}

.card-title i {
    color: #9fe56c;
}

.card-title h3 {
    margin: 0;
    font-size: 1rem;
}

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

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

.metric-grid > div,
.metric-list > div,
.sun-data > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-grid span,
.metric-list span,
.sun-data span {
    font-size: .75rem;
    color: rgba(255, 255, 255, .5);
}

.metric-grid strong,
.metric-list strong,
.sun-data strong {
    font-size: .96rem;
}

.wind-layout {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 18px;
}

.compass {
    width: 142px;
    height: 142px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .06), transparent 68%);
}

.compass::before,
.compass::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, .09);
}

.compass::before {
    left: 50%;
    top: 10px;
    bottom: 10px;
    width: 1px;
}

.compass::after {
    top: 50%;
    left: 10px;
    right: 10px;
    height: 1px;
}

.compass > span {
    position: absolute;
    font-size: .7rem;
    color: rgba(255, 255, 255, .55);
    z-index: 2;
}

.compass-n { top: 7px; left: 50%; transform: translateX(-50%); }
.compass-e { right: 8px; top: 50%; transform: translateY(-50%); }
.compass-s { bottom: 7px; left: 50%; transform: translateX(-50%); }
.compass-w { left: 8px; top: 50%; transform: translateY(-50%); }

.compass-needle {
    position: absolute;
    inset: 25px;
    display: grid;
    place-items: center;
    z-index: 3;
    transition: transform .5s ease;
}

.compass-needle i {
    font-size: 2.1rem;
    color: #67caf0;
    transform: rotate(-45deg);
    filter: drop-shadow(0 3px 8px rgba(0, 163, 224, .45));
}

.metric-list {
    display: grid;
    gap: 11px;
}

.aqi-score {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.aqi-score strong {
    font-size: 2.6rem;
}

.aqi-score span {
    color: rgba(255, 255, 255, .45);
    font-size: .78rem;
}

.quality-pill {
    display: inline-flex;
    width: fit-content;
    margin-top: 5px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(115, 201, 45, .14);
    color: #c8f9a8;
    font-weight: 700;
    font-size: .78rem;
}

.sunmoon-layout {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 18px;
    align-items: center;
}

.sun-data {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.moon-area {
    display: grid;
    justify-items: center;
    gap: 6px;
    text-align: center;
}

.moon-area > span {
    font-size: .74rem;
    color: rgba(255, 255, 255, .48);
}

.moon-visual {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 35% 30%, #fff 0, #d8e2e7 55%, #87939b 100%);
    box-shadow: 0 0 28px rgba(230, 243, 255, .18);
}

.moon-shadow {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: #111820;
    transform: translateX(50%);
    transition: transform .4s ease, border-radius .4s ease;
}

.trend-text {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.55;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(120px, 1fr));
    gap: 9px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.forecast-day {
    min-width: 120px;
    padding: 14px 12px;
    border-radius: 17px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    text-align: center;
}

.forecast-day .day-name {
    display: block;
    font-weight: 700;
    font-size: .8rem;
}

.forecast-day .day-date {
    display: block;
    margin-top: 2px;
    font-size: .68rem;
    color: rgba(255, 255, 255, .45);
}

.forecast-day .forecast-icon {
    display: block;
    margin: 12px 0;
    font-size: 1.45rem;
}

.forecast-day .forecast-temps {
    display: block;
    font-weight: 700;
}

.forecast-day .forecast-wind {
    display: block;
    margin-top: 7px;
    font-size: .7rem;
    color: rgba(255, 255, 255, .55);
}

.weather-source {
    text-align: right;
    color: rgba(255, 255, 255, .42);
    font-size: .72rem;
}

.weather-source a {
    color: rgba(255, 255, 255, .64);
}

.small-modal-shell {
    width: min(540px, 100%);
    margin: auto;
}

.bing-modal-content h3 {
    margin: 0 0 10px;
}

.bing-modal-content p {
    margin: 0 0 12px;
    color: var(--text-soft);
    line-height: 1.5;
}

.bing-credit {
    font-size: .78rem;
    opacity: .7;
}

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

@media (max-width: 820px) {
    .weather-grid {
        grid-template-columns: 1fr;
    }

    .forecast-grid {
        grid-template-columns: repeat(7, 130px);
    }
}

@media (max-width: 640px) {
    .topbar {
        top: calc(12px + var(--safe-top));
        right: calc(12px + var(--safe-right));
    }

    .home-stage {
        padding: 78px 16px 94px;
    }

    .hero {
        transform: translateY(-1vh);
    }

    .clock {
        font-size: clamp(4rem, 22vw, 6rem);
    }

    .date {
        margin-top: 10px;
        font-size: .98rem;
    }

    .greeting {
        margin-top: 55px;
        font-size: 1.55rem;
    }

    .weather-glance {
        margin-top: 18px;
        padding: 10px 12px;
    }

    .weather-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        font-size: 1.85rem;
    }

    .weather-main {
        font-size: 1rem;
    }

    .weather-sub {
        font-size: .78rem;
    }

    .today-handle {
        left: calc(12px + var(--safe-left));
        bottom: calc(14px + var(--safe-bottom));
        padding: 10px 12px;
    }

    .today-handle span {
        display: none;
    }

    .bottom-bar {
        left: calc(12px + var(--safe-left));
        right: calc(12px + var(--safe-right));
        bottom: calc(10px + var(--safe-bottom));
    }

    .side-panel {
        width: min(94vw, 430px);
        padding-inline: 18px;
    }

    .modal {
        width: calc(100vw - 14px);
        max-height: calc(100vh - 14px);
        border-radius: 22px;
    }

    .modal-shell {
        max-height: calc(100vh - 14px);
        padding: 20px 15px;
        border-radius: 22px;
    }

    .weather-overview {
        padding: 17px;
        gap: 15px;
    }

    .weather-overview-icon {
        width: 66px;
        height: 66px;
        font-size: 2.4rem;
        border-radius: 20px;
    }

    .weather-overview-temp {
        font-size: 2.45rem;
    }

    .wind-layout,
    .sunmoon-layout {
        grid-template-columns: 1fr;
    }

    .compass {
        margin: 0 auto;
    }

    .moon-area {
        grid-template-columns: auto 1fr;
        justify-items: start;
        text-align: left;
    }

    .moon-area strong,
    .moon-area > span {
        grid-column: 2;
    }

    .moon-visual {
        grid-row: 1 / 3;
    }

    .metric-grid-3 {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* =========================================================
   home.ceg.gy — Structure principale
   ========================================================= */

/* Même respiration du fond que ceg.gy */
.background-layer {
    animation: zoomBreathe 20s linear infinite;
}

@keyframes zoomBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Les particules restent une couche visuelle plein écran. */
#particles-js {
    pointer-events: auto;
}

/* Plus de barre Bing indépendante : tout est regroupé dans le panneau Aujourd'hui. */
.bottom-bar,
.topbar {
    display: none !important;
}

/* Poignée du panneau Aujourd'hui, désormais à droite. */
.today-handle,
.today-handle-right {
    left: auto;
    right: calc(18px + var(--safe-right));
    bottom: calc(20px + var(--safe-bottom));
}

.today-handle[aria-expanded="true"] .handle-arrow {
    transform: rotate(180deg);
}

/* Panneau latéral unique à droite. */
.side-panel.right-panel {
    top: 12px;
    right: calc(12px + var(--safe-right));
    bottom: 12px;
    left: auto;
    width: 420px;
    max-width: calc(100vw - 24px - var(--safe-left) - var(--safe-right));
    height: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 26px;
    background: rgba(0, 0, 0, .10);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(30px) saturate(120%);
    -webkit-backdrop-filter: blur(30px) saturate(120%);
    transform: translateX(calc(100% + 36px + var(--safe-right)));
}

.side-panel.right-panel.is-open {
    transform: translateX(0);
}

.right-panel .panel-head {
    flex: 0 0 auto;
    margin: 0;
    padding: 22px 20px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.right-panel .panel-head-actions {
    display: flex;
    gap: 8px;
}

.right-panel .panel-scroll {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    padding: 18px 20px 20px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}

.right-panel .panel-view,
.right-panel .today-content,
.right-panel .settings-form {
    min-width: 0;
    width: 100%;
}

.right-panel .settings-view[hidden],
.right-panel .panel-view[hidden] {
    display: none !important;
}

/* Bloc Bing intégré au bas du panneau. */
.bing-panel {
    flex: 0 0 auto;
    min-width: 0;
    margin: 0;
    padding: 16px 20px 18px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    background: rgba(2, 8, 12, .24);
}

.bing-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.bing-panel-head .eyebrow {
    margin: 0;
}

.bing-panel h3 {
    margin: 0 0 5px;
    font-size: .96rem;
    line-height: 1.25;
}

.bing-panel p {
    margin: 0;
    color: rgba(255, 255, 255, .68);
    font-size: .76rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.bing-panel .bing-credit {
    margin-top: 5px;
    color: rgba(255, 255, 255, .48);
    font-size: .69rem;
}

.bing-panel-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.bing-panel-actions .secondary-btn {
    min-width: 0;
    flex: 1 1 0;
    padding-inline: 10px;
    font-size: .78rem;
}

/* Localisation : petit témoin toujours visible, indépendamment du panneau. */
.location-chip {
    display: inline-flex !important;
    position: fixed;
    z-index: 11;
    left: calc(20px + var(--safe-left));
    right: auto;
    bottom: calc(18px + var(--safe-bottom));
    align-items: center;
    gap: 7px;
    max-width: min(420px, calc(100vw - 180px));
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    background: rgba(5, 12, 18, .28);
    color: rgba(255, 255, 255, .7);
    font-size: .72rem;
    backdrop-filter: blur(12px);
    pointer-events: none;
}

.location-chip span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------------------------------------------------------
   Météo : largeur stable et uniquement du scroll vertical.
   --------------------------------------------------------- */
.weather-modal.modal {
    width: 980px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    overflow: hidden;
}

.weather-modal .modal-shell {
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

.weather-modal .modal-head,
.weather-modal .weather-detail,
.weather-modal .weather-overview,
.weather-modal .weather-grid,
.weather-modal .weather-card,
.weather-modal .section-title-row,
.weather-modal .hourly-strip,
.weather-modal .forecast-grid {
    min-width: 0;
    max-width: 100%;
}

.weather-modal .section-title-row {
    align-items: flex-end;
    flex-wrap: wrap;
}

.weather-modal .section-title-row > * {
    min-width: 0;
}

.weather-modal .hourly-section,
.weather-modal .forecast-section {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.weather-modal .weather-detail {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* 24 h : bande horizontale fluide et volontairement scrollable. */
.weather-modal .hourly-strip {
    display: flex;
    gap: 9px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 10px;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.weather-modal .hourly-item {
    flex: 0 0 92px;
    min-width: 92px;
    width: 92px;
    padding-inline: 7px;
    scroll-snap-align: start;
}

/* 7 jours : bande horizontale, indépendante du scroll de la modale. */
.weather-modal .forecast-grid {
    display: flex;
    gap: 9px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 10px;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.weather-modal .forecast-day {
    flex: 0 0 128px;
    min-width: 128px;
    width: 128px;
    padding-inline: 8px;
    scroll-snap-align: start;
}

.weather-modal .forecast-day,
.weather-modal .weather-card,
.weather-modal .metric-grid > div,
.weather-modal .metric-list > div,
.weather-modal .sun-data > div {
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .weather-modal.modal {
        width: 760px;
        max-width: calc(100vw - 24px);
    }

    .weather-modal .modal-shell {
        max-height: calc(100vh - 24px);
    }

}

@media (max-width: 700px) {
    .side-panel.right-panel {
        top: 8px;
        right: calc(8px + var(--safe-right));
        bottom: calc(8px + var(--safe-bottom));
        width: min(420px, calc(100vw - 16px - var(--safe-left) - var(--safe-right)));
        max-width: none;
        border-radius: 22px;
    }

    .right-panel .panel-head {
        padding: 18px 16px 13px;
    }

    .right-panel .panel-scroll {
        padding: 15px 16px 18px;
    }

    .bing-panel {
        padding: 14px 16px 16px;
    }

    .weather-modal.modal {
        width: calc(100vw - 16px);
        max-width: none;
        max-height: calc(100vh - 16px);
        border-radius: 22px;
    }

    .weather-modal .modal-shell {
        max-height: calc(100vh - 16px);
        padding: 20px 16px;
        border-radius: 22px;
    }

    .weather-modal .weather-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 520px) {
    .today-handle,
    .today-handle-right {
        left: auto;
        right: calc(12px + var(--safe-right));
        bottom: calc(12px + var(--safe-bottom));
    }

    .today-handle span {
        display: inline;
    }

    .location-chip {
        left: calc(12px + var(--safe-left));
        bottom: calc(13px + var(--safe-bottom));
        max-width: calc(100vw - 150px - var(--safe-left) - var(--safe-right));
    }


    .weather-modal .metric-grid,
    .weather-modal .sun-data {
        grid-template-columns: 1fr;
    }

    .weather-modal .wind-layout,
    .weather-modal .sunmoon-layout {
        grid-template-columns: 1fr;
    }
}


/* Scrollbars glass — panneau, modale météo et prévisions horaires. */
.panel-scroll,
.modal-shell,
.hourly-strip,
.forecast-grid {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .30) rgba(255, 255, 255, .055);
}

.panel-scroll::-webkit-scrollbar,
.modal-shell::-webkit-scrollbar {
    width: 8px;
}

.hourly-strip::-webkit-scrollbar,
.forecast-grid::-webkit-scrollbar {
    height: 7px;
}

.panel-scroll::-webkit-scrollbar-track,
.modal-shell::-webkit-scrollbar-track,
.hourly-strip::-webkit-scrollbar-track,
.forecast-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .045);
    border-radius: 999px;
}

.panel-scroll::-webkit-scrollbar-thumb,
.modal-shell::-webkit-scrollbar-thumb,
.hourly-strip::-webkit-scrollbar-thumb,
.forecast-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .25);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 999px;
}

.panel-scroll::-webkit-scrollbar-thumb:hover,
.modal-shell::-webkit-scrollbar-thumb:hover,
.hourly-strip::-webkit-scrollbar-thumb:hover,
.forecast-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 163, 224, .72);
    background-clip: padding-box;
}

/* Météo glass : plus proche de la transparence utilisée sur ceg.gy. */
.weather-modal .modal-shell {
    background: rgba(0, 0, 0, .10);
    border-color: rgba(255, 255, 255, .13);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(30px) saturate(120%);
    -webkit-backdrop-filter: blur(30px) saturate(120%);
}

.weather-modal::backdrop {
    background: rgba(0, 0, 0, .20);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* =========================================================
   Panneau TextoFlash
   ========================================================= */

/* Le bloc météo suit directement le message d’accueil. */
.weather-glance {
    margin: 0 auto;
}

/* Une seule poignée ronde pour ouvrir / fermer le panneau. */
.today-handle,
.today-handle-right {
    z-index: 55;
    top: 50%;
    bottom: auto;
    left: auto;
    right: calc(18px + var(--safe-right));
    width: 48px;
    height: 48px;
    padding: 0;
    gap: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, .10);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .30), inset 0 1px 0 rgba(255, 255, 255, .10);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    transform: translateY(-50%);
    transition: right .34s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
    animation: panelHandleNudge 8s ease-in-out infinite;
}

.today-handle:hover,
.today-handle-right:hover {
    transform: translateY(-50%) scale(1.06);
    background: rgba(0, 0, 0, .24);
    border-color: rgba(255, 255, 255, .30);
}

.today-handle[aria-expanded="true"],
.today-handle-right[aria-expanded="true"] {
    animation: none;
    background: rgba(0, 0, 0, .18);
}

.today-handle .handle-arrow {
    font-size: 1rem;
    transition: none;
    transform: none !important;
}

.today-handle[aria-expanded="true"] .handle-arrow {
    transform: none !important;
}

@keyframes panelHandleNudge {
    0%, 78%, 100% { transform: translateY(-50%); }
    82% { transform: translateY(-50%) translateY(-8px); }
    86% { transform: translateY(-50%); }
    90% { transform: translateY(-50%) translateY(-5px); }
    94% { transform: translateY(-50%); }
}

/* Contenu TextoFlash. */
.today-content {
    gap: 10px;
}

.today-card {
    padding: 14px;
    background: rgba(255, 255, 255, .055);
}

.today-card-body {
    min-width: 0;
    flex: 1 1 auto;
}

.today-card-body > strong,
.today-card > div > strong {
    color: #fff;
}

.today-list {
    list-style: none;
    margin: 7px 0 0;
    padding: 0 6px 0 0;
    display: grid;
    gap: 7px;
    max-height: 15rem;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .30) rgba(255, 255, 255, .055);
}


.today-light-content {
    max-height: 13.5rem;
    margin-top: 7px;
    padding-right: 6px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .30) rgba(255, 255, 255, .055);
}

.today-light-content > p:first-child,
.today-light-content > blockquote:first-child {
    margin-top: 0;
}

.today-list::-webkit-scrollbar,
.today-light-content::-webkit-scrollbar {
    width: 6px;
}

.today-list::-webkit-scrollbar-track,
.today-light-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .045);
    border-radius: 999px;
}

.today-list::-webkit-scrollbar-thumb,
.today-light-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .26);
    border-radius: 999px;
}

.today-list::-webkit-scrollbar-thumb:hover,
.today-light-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 163, 224, .68);
}

.today-list li {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: rgba(255, 255, 255, .76);
    font-size: .86rem;
    line-height: 1.42;
}

.today-list li::before {
    content: "";
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    margin-top: .5em;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 163, 224, .10);
}

.today-list li:has(.today-year)::before {
    display: none;
}

.today-year {
    flex: 0 0 auto;
    min-width: 43px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(0, 163, 224, .14);
    color: #bcecff;
    font-weight: 700;
    font-size: .72rem;
    text-align: center;
}

.today-inline-strong {
    display: block;
    margin: 0 !important;
    color: rgba(255, 255, 255, .92);
    font-size: .86rem;
}

.today-list small {
    display: block;
    margin-top: 1px;
    color: rgba(255, 255, 255, .48);
    font-size: .71rem;
}

.today-empty {
    margin-top: 6px !important;
    color: rgba(255, 255, 255, .46) !important;
    font-style: italic;
    font-size: .78rem !important;
}

.today-light-card {
    background: linear-gradient(135deg, rgba(0, 163, 224, .14), rgba(145, 153, 159, .07));
}

.today-light-card blockquote {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .86);
    font-size: .9rem;
    line-height: 1.5;
}

.today-author {
    margin-top: 7px !important;
    color: rgba(255, 255, 255, .56) !important;
    font-size: .78rem !important;
}

.today-answer {
    margin-top: 8px !important;
    color: #bcecff !important;
}

/* Les deux actions Bing occupent exactement la moitié de la ligne. */
.bing-panel-actions > a,
.bing-panel-actions .secondary-btn,
.bing-panel-actions .primary-btn {
    width: 50%;
    flex: 1 1 50%;
    min-width: 0;
    justify-content: center;
    text-align: center;
}

@media (max-width: 520px) {
    .today-handle,
    .today-handle-right {
        top: 50%;
        bottom: auto;
        right: calc(10px + var(--safe-right));
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .today-handle,
    .today-handle-right {
        animation: none !important;
    }
}


/* =========================================================
   Retours utilisateur + publicité ceg.gy
   ========================================================= */
.panel-lower-stack {
    flex: 0 0 auto;
    display: grid;
    gap: 10px;
    padding: 0 20px 14px;
}

.data-report-link {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 12px;
    background: rgba(255, 255, 255, .045);
    color: rgba(255, 255, 255, .72);
    font: inherit;
    font-size: .76rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.data-report-link:hover,
.data-report-link:focus-visible {
    color: #fff;
    border-color: rgba(0, 163, 224, .42);
    background: rgba(0, 163, 224, .12);
    outline: none;
}

.data-report-link:active {
    transform: translateY(1px);
}

.sidebar-ad {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 16px;
    background: rgba(255, 255, 255, .055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    overflow: hidden;
}

.sidebar-ad[hidden] {
    display: none !important;
}

.sidebar-ad-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 7px 2px;
    color: rgba(255, 255, 255, .42);
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sidebar-ad-promo {
    display: grid;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    min-width: 0;
}

.sidebar-ad-promo:not([href]) {
    cursor: default;
}

.sidebar-ad-promo img {
    display: block;
    width: 100%;
    max-height: 110px;
    object-fit: cover;
    border-radius: 11px;
    background: rgba(255, 255, 255, .05);
}

.sidebar-ad-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.sidebar-ad-copy > strong {
    color: rgba(255, 255, 255, .95);
    font-size: .84rem;
    line-height: 1.25;
}

#sidebarAdBody {
    color: rgba(255, 255, 255, .63);
    font-size: .72rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.sidebar-ad-cta {
    justify-self: start;
    margin-top: 2px;
    color: #bcecff;
    font-size: .72rem;
    font-weight: 800;
}

.sidebar-google-ad {
    min-height: 70px;
    overflow: hidden;
}

.home-google-ad {
    display: block;
    width: 100%;
}

.report-modal.modal {
    width: min(620px, calc(100vw - 32px));
    max-width: min(620px, calc(100vw - 32px));
    background: transparent;
}

.report-shell {
    width: 100%;
    max-height: min(760px, calc(100vh - 32px));
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 25px;
    background: rgba(0, 0, 0, .10);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(30px) saturate(120%);
    -webkit-backdrop-filter: blur(30px) saturate(120%);
}

.report-modal::backdrop {
    background: rgba(0, 0, 0, .34);
    backdrop-filter: blur(4px);
}

.report-intro {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, .62);
    font-size: .82rem;
    line-height: 1.45;
}

.report-form-grid {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.report-field {
    display: grid;
    gap: 7px;
}

.report-field > span,
.report-preview-label {
    color: rgba(255, 255, 255, .68);
    font-size: .74rem;
    font-weight: 800;
}

.report-preview-wrap {
    display: grid;
    gap: 7px;
}

.report-preview {
    min-height: 72px;
    max-height: 190px;
    padding: 12px 13px;
    overflow-y: auto;
    overflow-x: hidden;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 13px;
    background: rgba(255, 255, 255, .045);
    color: rgba(255, 255, 255, .74);
    font-size: .78rem;
    line-height: 1.45;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.28) rgba(255,255,255,.04);
}

.report-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.45;
}

.report-status {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: .78rem;
    line-height: 1.4;
}

.report-status.is-info {
    background: rgba(0, 163, 224, .12);
    color: #c6efff;
}

.report-status.is-success {
    background: rgba(115, 201, 45, .13);
    color: #d6ffb5;
}

.report-status.is-error {
    background: rgba(220, 80, 80, .14);
    color: #ffd1d1;
}

.report-actions {
    margin-top: 18px;
}

.report-preview::-webkit-scrollbar,
.report-shell::-webkit-scrollbar {
    width: 7px;
}

.report-preview::-webkit-scrollbar-track,
.report-shell::-webkit-scrollbar-track {
    background: rgba(255,255,255,.035);
    border-radius: 999px;
}

.report-preview::-webkit-scrollbar-thumb,
.report-shell::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.24);
    border-radius: 999px;
}

.report-preview::-webkit-scrollbar-thumb:hover,
.report-shell::-webkit-scrollbar-thumb:hover {
    background: rgba(0,163,224,.62);
}

@media (max-width: 520px) {
    .panel-lower-stack {
        padding-inline: 14px;
    }

    .report-shell {
        padding: 19px;
        border-radius: 20px;
    }
}


/* =========================================================
   V8 — harmonisation finale
   ========================================================= */

.right-panel .eyebrow,
.right-panel .sidebar-ad-cta,
.right-panel .today-answer {
    color: var(--blue) !important;
}

.right-panel .primary-btn {
    background: var(--blue);
}

.right-panel .primary-btn:hover,
.right-panel .primary-btn:focus-visible {
    background: #008FC4;
}

.right-panel .switch-line input:checked + .switch-ui {
    background: var(--blue);
}

.today-list {
    /* Environ 10 lignes visibles avant le scroll interne. */
    max-height: 15rem;
}

.today-light-content {
    /* Environ 10 lignes visibles avant le scroll interne. */
    max-height: 13.5rem;
}

.report-data-fields {
    display: grid;
    gap: 16px;
}

.report-data-fields[hidden] {
    display: none !important;
}

.today-handle-mobile {
    display: none;
}

@media (max-width: 520px) {
    body.panel-open .today-handle-external {
        display: none;
    }

    .right-panel .panel-head {
        align-items: center;
    }

    .right-panel .panel-head-actions {
        align-items: center;
    }

    .today-handle-mobile,
    .today-handle-mobile.today-handle-right {
        position: static;
        display: grid;
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        transform: none;
        animation: none;
        transition: background .2s ease, border-color .2s ease, transform .2s ease;
    }

    .today-handle-mobile:hover,
    .today-handle-mobile.today-handle-right:hover {
        transform: scale(1.05);
    }
}

/* =========================================================
   V14 — centrage horloge/date + tri TextoFlash
   ========================================================= */
.home-stage {
    padding: 0 24px;
}

.hero {
    position: relative;
    width: min(900px, 100%);
    height: 100%;
    transform: none;
}

.clock-date-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.hero-lower {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 100%;
    margin-top: 150px;
    transform: translateX(-50%);
    text-align: center;
}

.hero-lower .greeting {
    margin-top: 0;
}

.today-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.today-card-title-row > strong {
    min-width: 0;
    color: #fff;
}

.today-sort-controls {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.today-sort-button {
    width: 25px;
    height: 25px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
    color: rgba(255, 255, 255, .56);
    font: inherit;
    font-size: .68rem;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

.today-sort-button:hover,
.today-sort-button:focus-visible {
    color: #fff;
    border-color: rgba(0, 163, 224, .48);
    background: rgba(0, 163, 224, .14);
    outline: none;
}

.today-sort-button.is-active {
    color: #fff;
    border-color: rgba(0, 163, 224, .62);
    background: rgba(0, 163, 224, .22);
}

.today-sort-button:active {
    transform: translateY(1px);
}

@media (max-width: 640px) {
    .home-stage {
        padding: 0 16px;
    }

    .hero {
        transform: none;
    }

    .hero-lower {
        margin-top: 150px;
    }

    .greeting {
        margin-top: 0;
    }
}

/* =========================================================
   V16 — préférences de tri, météo J+1 et TextoNews
   ========================================================= */
.panel-lower-stack {
    padding: 14px 20px;
}

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

.weather-overview-grid .weather-overview {
    min-width: 0;
    height: 100%;
}

.weather-overview-kicker {
    margin-bottom: 5px;
    color: var(--blue);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.weather-overview-tomorrow .weather-overview-temp {
    font-size: clamp(2rem, 4vw, 2.75rem);
    white-space: nowrap;
}

.hero-lower {
    margin-top: var(--hero-lower-gap, 150px);
}

.textonews-card .today-card-icon {
    color: #fff;
}

.textonews-list {
    --textonews-row-height: 68px;
    display: grid;
    margin-top: 7px;
    max-height: calc(var(--textonews-row-height) * 5);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 163, 224, .48) rgba(255, 255, 255, .055);
}

.textonews-row {
    height: var(--textonews-row-height);
    display: flex;
    align-items: center;
    padding: 8px 4px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, .075);
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
    font-size: .82rem;
    line-height: 1.35;
    transition: color .18s ease, background .18s ease, padding-left .18s ease;
}

.textonews-row:last-child {
    border-bottom: 0;
}

.textonews-row-content {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.textonews-title {
    min-width: 0;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.textonews-meta {
    display: block;
    color: rgba(255, 255, 255, .58);
    font-size: .69rem;
    line-height: 1.2;
}

.textonews-row:hover,
.textonews-row:focus-visible {
    padding-left: 8px;
    color: #fff;
    background: rgba(0, 163, 224, .10);
    outline: none;
}

.textonews-list::-webkit-scrollbar {
    width: 6px;
}

.textonews-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .045);
    border-radius: 999px;
}

.textonews-list::-webkit-scrollbar-thumb {
    background: rgba(0, 163, 224, .46);
    border-radius: 999px;
}

.textonews-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 163, 224, .70);
}

@media (max-width: 640px) {
    .panel-lower-stack {
        padding: 14px 20px;
    }

    .weather-overview-grid {
        gap: 8px;
    }

    .weather-overview-grid .weather-overview {
        padding: 13px 10px;
        gap: 9px;
        border-radius: 18px;
    }

    .weather-overview-grid .weather-overview-icon {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        border-radius: 15px;
        font-size: 1.75rem;
    }

    .weather-overview-grid .weather-overview-temp,
    .weather-overview-tomorrow .weather-overview-temp {
        font-size: 1.55rem;
    }

    .weather-overview-grid .weather-overview-condition {
        margin-top: 4px;
        font-size: .88rem;
    }

    .weather-overview-grid .weather-overview-meta {
        font-size: .7rem;
        line-height: 1.25;
    }

    .weather-overview-kicker {
        margin-bottom: 3px;
        font-size: .64rem;
    }
}

/* =========================================================
   V18 — applications séparées + grille de placement des widgets
   ========================================================= */
.panel-tabs {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 20px 0;
}

.panel-tabs[hidden] {
    display: none !important;
}

.panel-tab {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 12px;
    background: rgba(255, 255, 255, .045);
    color: rgba(255, 255, 255, .66);
    font: inherit;
    font-size: .8rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.panel-tab:hover,
.panel-tab:focus-visible {
    color: #fff;
    border-color: rgba(0, 163, 224, .40);
    outline: none;
}

.panel-tab.is-active {
    color: #fff;
    border-color: rgba(0, 163, 224, .58);
    background: rgba(0, 163, 224, .18);
}

.settings-group-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.settings-group-head h3 {
    margin-bottom: 3px;
}

.settings-group-head p {
    margin: 0;
    color: rgba(255, 255, 255, .52);
    font-size: .74rem;
    line-height: 1.4;
}

.settings-group-head > i {
    margin-top: 2px;
    color: var(--blue);
}

.panel-content-list {
    display: grid;
    gap: 7px;
}

.panel-content-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 30px 30px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 7px;
    min-height: 46px;
    padding: 6px 7px;
    border: 1px solid rgba(255, 255, 255, .085);
    border-radius: 12px;
    background: rgba(255, 255, 255, .035);
    transition: opacity .16s ease, transform .16s ease, border-color .16s ease, background .16s ease;
}

.panel-content-item.is-dragging {
    z-index: 2;
    opacity: .72;
    transform: scale(.985);
    border-color: rgba(0, 163, 224, .52);
    background: rgba(0, 163, 224, .12);
}

.panel-card-drag,
.panel-card-visibility,
.panel-card-lock {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: rgba(255, 255, 255, .58);
    font: inherit;
}

.panel-card-drag {
    cursor: grab;
    touch-action: none;
}

.panel-card-drag:active {
    cursor: grabbing;
}

.panel-card-drag:hover,
.panel-card-drag:focus-visible,
.panel-card-visibility:hover,
.panel-card-visibility:focus-visible {
    color: #fff;
    background: rgba(0, 163, 224, .12);
    outline: none;
}

.panel-card-visibility {
    cursor: pointer;
    color: var(--blue);
}

.panel-card-visibility.is-hidden {
    color: rgba(255, 255, 255, .36);
}

.panel-card-visibility.is-locked,
.panel-card-lock {
    cursor: default;
    color: rgba(255, 255, 255, .44);
}

.panel-content-item-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #fff;
    background: rgba(0, 163, 224, .16);
}

.panel-content-item > strong,
.panel-content-locked-copy strong {
    min-width: 0;
    font-size: .78rem;
    line-height: 1.25;
}

.panel-content-item-locked {
    grid-template-columns: 30px 30px minmax(0, 1fr) 34px;
    margin-top: 3px;
    border-style: dashed;
    background: rgba(145, 153, 159, .06);
}

.panel-content-locked-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.panel-content-locked-copy small {
    color: rgba(255, 255, 255, .46);
    font-size: .68rem;
}

.app-setting-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, .085);
    border-radius: 12px;
    background: rgba(255, 255, 255, .035);
}

.app-setting-icon,
.app-section-icon {
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(0, 163, 224, .18);
}

.app-setting-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
}

.app-setting-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.app-setting-copy strong {
    font-size: .84rem;
}

.app-setting-copy small {
    color: rgba(255, 255, 255, .50);
    font-size: .7rem;
    line-height: 1.3;
}

.app-open-button {
    padding-inline: 10px;
}

.apps-view {
    min-width: 0;
}

.pomodoro-app,
.timer-app {
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    background: rgba(255, 255, 255, .025);
}

.timer-app {
    margin-top: 16px;
}

.app-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 2px 2px 6px;
}

.app-section-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 14px;
    font-size: 1.05rem;
}

.app-section-head > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.app-section-head strong {
    font-size: 1.05rem;
}

.app-section-head small {
    color: rgba(255, 255, 255, .54);
    font-size: .75rem;
    line-height: 1.35;
}

.pomodoro-current,
.pomodoro-builder,
.simple-timer-card {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 17px;
    background: rgba(255, 255, 255, .045);
}

.pomodoro-current {
    display: grid;
    justify-items: center;
    gap: 7px;
    text-align: center;
}

.pomodoro-current-kind {
    padding: 4px 8px;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 163, 224, .18);
    font-size: .67rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.pomodoro-current > strong {
    max-width: 100%;
    font-size: .92rem;
    overflow-wrap: anywhere;
}

.pomodoro-time {
    margin: 2px 0 4px;
    color: #fff;
    font-size: clamp(2.35rem, 8vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.045em;
    font-variant-numeric: tabular-nums;
}

.pomodoro-controls {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}

.pomodoro-controls .compact-btn {
    flex: 1 1 auto;
    min-width: 96px;
}

.pomodoro-builder,
.simple-timer-card {
    display: grid;
    gap: 11px;
}

.app-subhead {
    display: grid;
    gap: 2px;
}

.app-subhead strong {
    font-size: .86rem;
}

.app-subhead small {
    color: rgba(255, 255, 255, .48);
    font-size: .7rem;
    line-height: 1.35;
}

.pomodoro-sequence {
    display: grid;
    gap: 6px;
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 163, 224, .45) rgba(255, 255, 255, .04);
}

.pomodoro-sequence-item {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 11px;
    background: rgba(0, 0, 0, .10);
}

.pomodoro-sequence-item.is-current {
    border-color: rgba(0, 163, 224, .48);
    background: rgba(0, 163, 224, .10);
}

.pomodoro-sequence-main {
    min-width: 0;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 0;
    background: transparent;
    color: #fff;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.pomodoro-sequence-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: var(--blue);
    background: rgba(0, 163, 224, .10);
}

.pomodoro-sequence-main > span:last-child {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.pomodoro-sequence-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .76rem;
}

.pomodoro-sequence-main small {
    color: rgba(255, 255, 255, .48);
    font-size: .67rem;
}

.pomodoro-remove {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: rgba(255, 255, 255, .42);
    cursor: pointer;
}

.pomodoro-remove:hover,
.pomodoro-remove:focus-visible {
    color: #fff;
    background: rgba(145, 153, 159, .16);
    outline: none;
}

.pomodoro-add-form {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 7px;
}

.pomodoro-minutes-field,
.simple-timer-minutes-field {
    min-width: 0;
    display: grid;
    gap: 5px;
    color: rgba(255, 255, 255, .70);
    font-size: .72rem;
    font-weight: 700;
}

.pomodoro-minutes-field .text-input,
.simple-timer-minutes-field .text-input {
    min-width: 92px;
    padding: 10px 12px;
    color: #fff;
    background: rgba(0, 0, 0, .34);
    border-color: rgba(0, 163, 224, .34);
    font-size: .92rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color-scheme: dark;
}

.pomodoro-minutes-field .text-input:focus,
.simple-timer-minutes-field .text-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 163, 224, .12);
    outline: none;
}

.pomodoro-add-form > .secondary-btn {
    justify-content: center;
}

.simple-timer-row {
    display: grid;
    grid-template-columns: minmax(110px, .7fr) minmax(0, 1.3fr);
    align-items: end;
    gap: 12px;
}

.simple-timer-time {
    text-align: right;
    font-size: 1.8rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.sidebar-ad-card {
    border-color: rgba(145, 153, 159, .18);
    background: rgba(145, 153, 159, .07);
}

.sidebar-ad-card > .today-card-icon {
    color: #fff;
    background: rgba(145, 153, 159, .16);
}

.sidebar-ad-label-inline {
    margin-bottom: 7px !important;
    color: rgba(255, 255, 255, .60);
    font-size: .69rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.sidebar-ad-inline {
    min-width: 0;
    display: grid;
    gap: 8px;
    color: #fff;
    text-decoration: none;
}

.sidebar-ad-inline-image {
    width: 100%;
    max-height: 130px;
    object-fit: cover;
    border-radius: 10px;
}

.sidebar-ad-inline-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.sidebar-ad-inline-copy > strong {
    margin: 0;
    font-size: .82rem;
}

.sidebar-ad-inline-body {
    color: rgba(255, 255, 255, .60);
    font-size: .72rem;
    line-height: 1.35;
}

.sidebar-ad-inline-cta {
    width: max-content;
    max-width: 100%;
    margin-top: 2px;
    padding: 5px 8px;
    border-radius: 8px;
    color: #fff;
    background: rgba(0, 163, 224, .18);
    font-size: .68rem;
    font-weight: 800;
}

.home-widget {
    position: fixed;
    z-index: 42;
    width: min(250px, calc(100vw - 36px));
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    background: rgba(0, 0, 0, .16);
    box-shadow: 0 15px 42px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .07);
    backdrop-filter: blur(24px) saturate(120%);
    -webkit-backdrop-filter: blur(24px) saturate(120%);
}

.home-widget[hidden] {
    display: none !important;
}

.pomodoro-widget[data-widget-position="top-left"] {
    top: max(18px, var(--safe-top));
    left: max(18px, var(--safe-left));
}

.pomodoro-widget[data-widget-position="top-center"] {
    top: max(18px, var(--safe-top));
    left: 50%;
    transform: translateX(-50%);
}

.pomodoro-widget[data-widget-position="top-right"] {
    top: max(18px, var(--safe-top));
    right: max(18px, var(--safe-right));
}

.pomodoro-widget[data-widget-position="middle-left"] {
    left: max(18px, var(--safe-left));
    top: 50%;
    transform: translateY(-50%);
}

.pomodoro-widget[data-widget-position="middle-right"] {
    right: max(18px, var(--safe-right));
    top: 50%;
    transform: translateY(-50%);
}

.pomodoro-widget[data-widget-position="bottom-left"] {
    bottom: max(18px, var(--safe-bottom));
    left: max(18px, var(--safe-left));
}

.pomodoro-widget[data-widget-position="bottom-center"] {
    bottom: max(18px, var(--safe-bottom));
    left: 50%;
    transform: translateX(-50%);
}

.pomodoro-widget[data-widget-position="bottom-right"] {
    right: max(18px, var(--safe-right));
    bottom: max(18px, var(--safe-bottom));
}

.pomodoro-widget.is-moving {
    transform: none !important;
    cursor: grabbing;
}

.widget-placement-grid {
    position: fixed;
    inset: 0;
    z-index: 41;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: max(18px, var(--safe-top)) max(18px, var(--safe-right)) max(18px, var(--safe-bottom)) max(18px, var(--safe-left));
    background: rgba(0, 0, 0, .20);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
}

.widget-placement-grid[hidden] {
    display: none !important;
}

.widget-drop-zone {
    min-width: 0;
    min-height: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    border: 1px dashed rgba(255, 255, 255, .25);
    border-radius: 18px;
    color: rgba(255, 255, 255, .66);
    background: rgba(255, 255, 255, .035);
    font-size: .72rem;
    font-weight: 800;
    text-align: center;
    transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.widget-drop-zone i {
    color: var(--blue);
    font-size: 1rem;
}

.widget-drop-zone.is-target {
    border-color: var(--blue);
    color: #fff;
    background: rgba(0, 163, 224, .18);
    box-shadow: inset 0 0 0 1px rgba(0, 163, 224, .22), 0 0 28px rgba(0, 163, 224, .15);
    transform: scale(.985);
}

.widget-drop-zone-reserved {
    border-style: solid;
    border-color: rgba(145, 153, 159, .14);
    color: rgba(255, 255, 255, .28);
    background: rgba(0, 0, 0, .18);
}

.widget-drop-zone-reserved i {
    color: var(--gray);
    opacity: .55;
}

.widget-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: grab;
    touch-action: none;
}

.widget-head > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, .78);
    font-size: .72rem;
    font-weight: 800;
}

.widget-head > span i {
    color: var(--blue);
}

.widget-icon-btn,
.widget-action {
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .62);
    cursor: pointer;
}

.widget-icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 9px;
}

.widget-icon-btn:hover,
.widget-action:hover,
.widget-icon-btn:focus-visible,
.widget-action:focus-visible {
    color: #fff;
    background: rgba(0, 163, 224, .13);
    outline: none;
}

.widget-current-title {
    display: block;
    margin: 9px 0 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .76rem;
}

.widget-timer {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}

.widget-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.widget-action {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .055);
}

.mobile-app-dock {
    position: fixed;
    right: calc(16px + var(--safe-right));
    bottom: calc(16px + var(--safe-bottom));
    z-index: 45;
    width: 44px;
    height: 44px;
    display: none;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    background: rgba(0, 0, 0, .18);
    color: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    cursor: pointer;
}

.mobile-app-dock[hidden] {
    display: none !important;
}

body.panel-open .pomodoro-widget[data-widget-position="top-right"],
body.panel-open .pomodoro-widget[data-widget-position="middle-right"],
body.panel-open .pomodoro-widget[data-widget-position="bottom-right"] {
    right: calc(438px + var(--safe-right));
}

@media (max-width: 1100px) {
    body.panel-open .pomodoro-widget[data-widget-position="top-right"],
    body.panel-open .pomodoro-widget[data-widget-position="middle-right"],
    body.panel-open .pomodoro-widget[data-widget-position="bottom-right"] {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .home-widget {
        width: min(220px, calc(100vw - 30px));
    }

    .widget-placement-grid {
        gap: 8px;
        padding: 14px;
    }

    .widget-drop-zone span {
        font-size: .65rem;
    }
}

@media (max-width: 720px) {
    .pomodoro-widget {
        display: none !important;
    }

    .mobile-app-dock:not([hidden]) {
        display: grid;
    }

    .app-setting-row {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .app-setting-row .app-open-button {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
    }

    .pomodoro-add-form {
        grid-template-columns: 1fr;
    }

    .pomodoro-minutes-field,
    .simple-timer-minutes-field {
        grid-template-columns: 1fr;
    }

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

    .simple-timer-time {
        text-align: center;
    }

    .widget-placement-grid {
        display: none !important;
    }
}

@media (max-width: 520px) {
    .panel-tabs {
        padding-inline: 14px;
    }

    .panel-content-item {
        grid-template-columns: 28px 28px minmax(0, 1fr) 32px;
        gap: 5px;
    }

    .pomodoro-current,
    .pomodoro-builder,
    .simple-timer-card {
        padding: 12px;
    }
}

/* Dock top/bottom hors de la colonne centrale. */
.pomodoro-widget[data-widget-position="top"] {
    top: max(18px, var(--safe-top));
    left: max(18px, var(--safe-left));
    transform: none;
}

.pomodoro-widget[data-widget-position="bottom"] {
    right: max(18px, var(--safe-right));
    bottom: max(18px, var(--safe-bottom));
    left: auto;
    transform: none;
}

body.panel-open .pomodoro-widget[data-widget-position="bottom"] {
    right: calc(438px + var(--safe-right));
}

@media (max-width: 1100px) {
    body.panel-open .pomodoro-widget[data-widget-position="bottom"] {
        display: none !important;
    }
}

@media (max-width: 720px) {
    body.panel-open .mobile-app-dock {
        display: none !important;
    }
}

/* =========================================================
   V19 — accordéons applications + grille 5x5 widgets
   ========================================================= */

.applications-list {
    display: grid;
    gap: 12px;
}

.application-accordion {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 18px;
    background: rgba(255, 255, 255, .045);
    overflow: hidden;
    transition: border-color .18s ease, background .18s ease, transform .18s ease, opacity .18s ease;
}

.application-accordion.is-open {
    border-color: rgba(0, 163, 224, .20);
    background: rgba(0, 163, 224, .045);
}

.application-accordion.is-dragging {
    opacity: .68;
    transform: scale(.985);
    border-color: var(--blue);
}

.application-accordion .app-section-head {
    min-height: 64px;
    margin: 0;
    padding: 9px 10px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    border: 0;
    border-radius: 0;
    background: rgba(0, 0, 0, .08);
}

.app-drag-handle,
.app-widget-button,
.app-chevron-button,
.app-accordion-toggle {
    border: 0;
    font: inherit;
}

.app-drag-handle,
.app-widget-button,
.app-chevron-button {
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .58);
    background: transparent;
    cursor: pointer;
}

.app-drag-handle {
    width: 30px;
    height: 42px;
    border-radius: 9px;
    cursor: grab;
    touch-action: none;
}

.app-drag-handle:active {
    cursor: grabbing;
}

.app-drag-handle:hover,
.app-drag-handle:focus-visible,
.app-widget-button:hover,
.app-widget-button:focus-visible,
.app-chevron-button:hover,
.app-chevron-button:focus-visible {
    color: #fff;
    background: rgba(0, 163, 224, .13);
    outline: none;
}

.app-accordion-toggle {
    min-width: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.app-section-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.app-section-copy strong,
.app-section-copy small {
    display: block;
}

.app-section-copy strong {
    font-size: .88rem;
}

.app-section-copy small {
    overflow: hidden;
    color: rgba(255, 255, 255, .58);
    font-size: .69rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-section-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.app-widget-button,
.app-chevron-button {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.app-widget-button.is-active {
    color: #fff;
    background: rgba(0, 163, 224, .23);
    box-shadow: inset 0 0 0 1px rgba(0, 163, 224, .28);
}

.app-accordion-body {
    padding: 0 12px 12px;
}

.app-accordion-body[hidden] {
    display: none !important;
}

.application-accordion .pomodoro-current,
.application-accordion .pomodoro-builder,
.application-accordion .simple-timer-card {
    margin-top: 10px;
}

/* 5 x 5 : toutes les cases sont disponibles sauf 13 (centre) et 18. */
.widget-placement-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: repeat(5, minmax(0, 1fr));
    gap: 7px;
    padding: max(12px, var(--safe-top)) max(12px, var(--safe-right)) max(12px, var(--safe-bottom)) max(12px, var(--safe-left));
}

.widget-drop-zone {
    border-radius: 14px;
    font-size: .64rem;
}

.widget-drop-zone i {
    font-size: .88rem;
}

.widget-drop-zone-reserved {
    opacity: .45;
}

.widget-drop-zone-center {
    opacity: .72;
}

.home-widget[data-widget-position] {
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
}

.home-widget[data-widget-position="r1c1"] { top: 10%; left: clamp(126px, 10%, 180px); }
.home-widget[data-widget-position="r1c2"] { top: 10%; left: 30%; }
.home-widget[data-widget-position="r1c3"] { top: 10%; left: 50%; }
.home-widget[data-widget-position="r1c4"] { top: 10%; left: 70%; }
.home-widget[data-widget-position="r1c5"] { top: 10%; left: calc(100% - clamp(126px, 10%, 180px)); }
.home-widget[data-widget-position="r2c1"] { top: 30%; left: clamp(126px, 10%, 180px); }
.home-widget[data-widget-position="r2c2"] { top: 30%; left: 30%; }
.home-widget[data-widget-position="r2c3"] { top: 30%; left: 50%; }
.home-widget[data-widget-position="r2c4"] { top: 30%; left: 70%; }
.home-widget[data-widget-position="r2c5"] { top: 30%; left: calc(100% - clamp(126px, 10%, 180px)); }
.home-widget[data-widget-position="r3c1"] { top: 50%; left: clamp(126px, 10%, 180px); }
.home-widget[data-widget-position="r3c2"] { top: 50%; left: 30%; }
.home-widget[data-widget-position="r3c4"] { top: 50%; left: 70%; }
.home-widget[data-widget-position="r3c5"] { top: 50%; left: calc(100% - clamp(126px, 10%, 180px)); }
.home-widget[data-widget-position="r4c1"] { top: 70%; left: clamp(126px, 10%, 180px); }
.home-widget[data-widget-position="r4c2"] { top: 70%; left: 30%; }
.home-widget[data-widget-position="r4c4"] { top: 70%; left: 70%; }
.home-widget[data-widget-position="r4c5"] { top: 70%; left: calc(100% - clamp(126px, 10%, 180px)); }
.home-widget[data-widget-position="r5c1"] { top: 90%; left: clamp(126px, 10%, 180px); }
.home-widget[data-widget-position="r5c2"] { top: 90%; left: 30%; }
.home-widget[data-widget-position="r5c3"] { top: 90%; left: 50%; }
.home-widget[data-widget-position="r5c4"] { top: 90%; left: 70%; }
.home-widget[data-widget-position="r5c5"] { top: 90%; left: calc(100% - clamp(126px, 10%, 180px)); }

.home-widget.is-moving {
    transform: none !important;
}

body.panel-open .home-widget[data-widget-position="r1c5"],
body.panel-open .home-widget[data-widget-position="r2c5"],
body.panel-open .home-widget[data-widget-position="r3c5"],
body.panel-open .home-widget[data-widget-position="r4c5"],
body.panel-open .home-widget[data-widget-position="r5c5"] {
    transform: translate(calc(-50% - 420px), -50%);
}

.mobile-pomodoro-dock {
    right: calc(16px + var(--safe-right));
}

.mobile-timer-dock {
    right: calc(68px + var(--safe-right));
}

@media (max-width: 1100px) {
    body.panel-open .home-widget[data-widget-position="r1c5"],
    body.panel-open .home-widget[data-widget-position="r2c5"],
    body.panel-open .home-widget[data-widget-position="r3c5"],
    body.panel-open .home-widget[data-widget-position="r4c5"],
    body.panel-open .home-widget[data-widget-position="r5c5"] {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .widget-placement-grid {
        gap: 5px;
        padding: 9px;
    }

    .widget-drop-zone span {
        display: none;
    }

    .application-accordion .app-section-head {
        grid-template-columns: 28px minmax(0, 1fr) auto;
        padding-inline: 8px;
    }
}

@media (max-width: 720px) {
    .home-widget {
        display: none !important;
    }

    .app-section-copy small {
        white-space: normal;
    }

    .app-drag-handle {
        height: 36px;
    }
}

/* =========================================================
   V20 — réglages widgets + déplacement sans sélection
   ========================================================= */

.app-widget-settings-list .app-widget-setting-item {
    grid-template-columns: 30px minmax(0, 1fr) 34px;
}

.app-widget-setting-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.app-widget-setting-copy strong {
    min-width: 0;
    color: #fff;
    font-size: .78rem;
    line-height: 1.25;
}

.app-widget-setting-copy small {
    min-width: 0;
    color: rgba(255, 255, 255, .48);
    font-size: .68rem;
    line-height: 1.3;
}

.widget-head,
.widget-head *,
.home-widget.is-moving,
.home-widget.is-moving * {
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

body.widget-placement-active,
body.widget-placement-active * {
    -webkit-user-select: none !important;
    user-select: none !important;
}

body.widget-placement-active {
    cursor: grabbing;
}

/* Évite la sélection accidentelle du texte lors du déplacement des applications/widgets. */
body {
    -webkit-user-select: none;
    user-select: none;
}

input,
textarea,
select,
[contenteditable="true"] {
    -webkit-user-select: text;
    user-select: text;
}


/* =========================================================
   V21 — filtres du panneau + ordre des applications en réglages
   ========================================================= */

.panel-content-item.has-filters {
    grid-template-columns: 30px 30px minmax(0, 1fr) auto;
}

.panel-content-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
}

.panel-card-filter,
.panel-filter-reset {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    color: rgba(255, 255, 255, .55);
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.panel-card-filter:hover,
.panel-card-filter:focus-visible,
.panel-card-filter.is-active,
.panel-filter-reset:hover,
.panel-filter-reset:focus-visible {
    color: #fff;
    background: rgba(0, 163, 224, .14);
    outline: none;
}

.panel-card-filter.is-active {
    color: var(--blue);
    box-shadow: inset 0 0 0 1px rgba(0, 163, 224, .24);
}

.panel-card-filters {
    grid-column: 1 / -1;
    min-width: 0;
    margin-top: 3px;
    padding: 10px;
    display: grid;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, .075);
    border-radius: 0 0 10px 10px;
    background: rgba(0, 0, 0, .08);
}

.panel-card-filters[hidden] {
    display: none !important;
}

.panel-filter-head,
.panel-filter-years {
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-filter-head {
    justify-content: space-between;
}

.panel-filter-head > strong,
.panel-filter-years > span,
.panel-filter-categories legend {
    color: rgba(255, 255, 255, .72);
    font-size: .7rem;
    font-weight: 800;
}

.panel-filter-years {
    align-items: end;
}

.panel-filter-years > span {
    width: 58px;
    flex: 0 0 58px;
    padding-bottom: 8px;
}

.panel-filter-years label {
    min-width: 0;
    flex: 1 1 0;
    display: grid;
    gap: 3px;
}

.panel-filter-years small {
    color: rgba(255, 255, 255, .46);
    font-size: .64rem;
}

.panel-filter-year {
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 6px 8px;
    font-size: .74rem;
}

.panel-filter-categories {
    min-width: 0;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    border: 0;
}

.panel-filter-categories legend {
    grid-column: 1 / -1;
    margin-bottom: 2px;
}

.panel-filter-choice {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 7px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 9px;
    background: rgba(255, 255, 255, .025);
    color: rgba(255, 255, 255, .65);
    font-size: .66rem;
    line-height: 1.2;
    cursor: pointer;
}

.panel-filter-choice-all {
    grid-column: 1 / -1;
}

.panel-filter-choice input {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    accent-color: var(--blue);
}

.app-widget-settings-list .app-widget-setting-item {
    grid-template-columns: 30px 30px minmax(0, 1fr) 34px;
}

.app-widget-setting-item.is-dragging {
    z-index: 2;
    opacity: .72;
    transform: scale(.985);
    border-color: rgba(0, 163, 224, .52);
    background: rgba(0, 163, 224, .12);
}

/* Dans l'onglet Applications, les accordéons ne servent plus de zone de tri. */
.application-accordion .app-section-head {
    grid-template-columns: minmax(0, 1fr) auto;
}

@media (max-width: 900px) {
    .application-accordion .app-section-head {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

@media (max-width: 520px) {
    .panel-filter-categories {
        grid-template-columns: 1fr;
    }

    .panel-filter-choice-all {
        grid-column: auto;
    }
}

/* V22 — données primordiales TextoFlash */
.today-show-all-button {
    width: 100%;
    margin-top: 10px;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(0, 163, 224, .30);
    border-radius: 10px;
    background: rgba(0, 163, 224, .09);
    color: rgba(255, 255, 255, .88);
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: .75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.today-show-all-button:hover,
.today-show-all-button:focus-visible {
    border-color: rgba(0, 163, 224, .62);
    background: rgba(0, 163, 224, .18);
    outline: none;
}

.today-show-all-button:active {
    transform: translateY(1px);
}

/* =========================================================
   V23 — Bing desktop, prénoms, météo contenue
   ========================================================= */

/* Navigation des 10 dernières images Bing, comme sur ceg.gy. */
.bing-nav-arrow {
    position: fixed;
    top: 50%;
    z-index: 24;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    background: rgba(0, 0, 0, .30);
    color: #fff;
    font: inherit;
    font-size: 1.35rem;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.bing-nav-arrow:hover,
.bing-nav-arrow:focus-visible {
    background: rgba(0, 163, 224, .60);
    border-color: rgba(255, 255, 255, .30);
    box-shadow: 0 0 18px rgba(0, 163, 224, .36);
    transform: translateY(-50%) scale(1.08);
    outline: none;
}

.bing-nav-left { left: 30px; }
.bing-nav-right { right: 30px; }

/* Cadre d'informations Bing sur le bureau, inspiré du cadre de ceg.gy. */
.bing-desktop-card {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 22;
    width: min(430px, calc(100vw - 60px));
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 26px;
    background: rgba(0, 0, 0, .10);
    color: #fff;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .30), inset 0 1px 0 rgba(255, 255, 255, .07);
    backdrop-filter: blur(18px) saturate(115%);
    -webkit-backdrop-filter: blur(18px) saturate(115%);
    opacity: 1;
    transform: translateY(0);
    transition: opacity .28s ease, transform .28s ease;
}

.bing-desktop-card[hidden] { display: none !important; }


.bing-desktop-card h3 {
    margin: 0 0 5px;
    color: var(--blue);
    font-size: 1rem;
    line-height: 1.25;
}

.bing-desktop-card p {
    margin: 0 0 5px;
    color: rgba(255, 255, 255, .82);
    font-size: .82rem;
    line-height: 1.4;
}

.bing-desktop-card small {
    display: block;
    color: rgba(255, 255, 255, .60);
    font-size: .72rem;
    line-height: 1.35;
}

.bing-desktop-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 11px;
}

.bing-desktop-actions .compact-btn {
    min-width: 0;
    width: 100%;
}

/* Le bouton des widgets garde une punaise quelle que soit sa valeur. */
.app-widget-pin {
    color: rgba(255, 255, 255, .36);
}

.app-widget-pin.is-active {
    color: var(--blue);
    background: rgba(0, 163, 224, .12);
}

.app-widget-pin.is-hidden {
    color: rgba(255, 255, 255, .34);
}

/* Le scroll météo est maintenant interne au cadre, avec de l'air avant les arrondis. */
.weather-modal.modal {
    max-height: calc(100vh - 48px);
}

.weather-modal .modal-shell {
    max-height: calc(100vh - 48px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.weather-modal .modal-head {
    flex: 0 0 auto;
}

.weather-modal .weather-scroll {
    min-height: 0;
    max-height: calc(100vh - 148px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    padding-bottom: 6px;
    margin-right: -2px;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .30) rgba(255, 255, 255, .055);
}

.weather-modal .weather-scroll::-webkit-scrollbar {
    width: 8px;
}

.weather-modal .weather-scroll::-webkit-scrollbar-track {
    margin-block: 8px;
    background: rgba(255, 255, 255, .045);
    border-radius: 999px;
}

.weather-modal .weather-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .25);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 999px;
}

.weather-modal .weather-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 163, 224, .72);
    background-clip: padding-box;
}

@media (max-width: 768px) {
    .bing-nav-arrow,
    .bing-desktop-card {
        display: none !important;
    }

    .weather-modal.modal,
    .weather-modal .modal-shell {
        max-height: calc(100vh - 32px);
    }

    .weather-modal .weather-scroll {
        max-height: calc(100vh - 126px);
        padding-right: 5px;
    }
}

/* =========================================================
   V25 — Bing mobile, météo horizontale, listes 5 lignes
   ========================================================= */

/* Saints et prénoms : cinq lignes visibles, puis scroll interne. */
.today-list.today-list-five {
    max-height: 8rem;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
}

/* Les listes TextoFlash laissent le scroll se poursuivre dans le panneau latéral
   lorsqu'elles sont trop courtes ou lorsqu'elles arrivent en début/fin de liste. */
.right-panel .today-list,
.right-panel .today-light-content {
    overscroll-behavior-y: auto;
    touch-action: pan-y;
}

/* Informations Bing : carte sur bureau, bouton i sur mobile. */
.bing-mobile-info-button {
    display: none;
}

.bing-mobile-info-button[hidden] {
    display: none !important;
}

.bing-info-modal {
    width: min(520px, calc(100vw - 24px));
    margin: auto;
}

.bing-info-modal-shell {
    width: 100%;
}

.bing-mobile-modal-content {
    text-align: center;
}

.bing-mobile-modal-content p {
    margin-inline: auto;
    max-width: 42ch;
}

.bing-mobile-modal-content .bing-credit {
    display: block;
    margin-top: 10px;
}

.bing-mobile-actions {
    margin-top: 18px;
}

/* Défilement horizontal météo : pas de snap, inertie native et geste horizontal prioritaire. */
.weather-modal .hourly-strip,
.weather-modal .forecast-grid {
    scroll-snap-type: none !important;
    scroll-behavior: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pinch-zoom;
    cursor: grab;
}

.weather-modal .hourly-strip.is-dragging,
.weather-modal .forecast-grid.is-dragging {
    cursor: grabbing;
    user-select: none;
    -webkit-user-select: none;
}

.weather-modal .hourly-item,
.weather-modal .forecast-day {
    scroll-snap-align: none !important;
}

@media (max-width: 768px) {
    .bing-nav-arrow,
    .bing-desktop-card {
        display: none !important;
    }

    .bing-mobile-info-button:not([hidden]) {
        position: fixed;
        top: calc(14px + var(--safe-top));
        right: calc(14px + var(--safe-right));
        z-index: 56;
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, .24);
        border-radius: 50%;
        background: rgba(0, 0, 0, .22);
        color: #fff;
        font-family: "Trebuchet MS", Arial, sans-serif;
        font-size: 1rem;
        cursor: pointer;
        box-shadow: 0 10px 28px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .10);
        backdrop-filter: blur(16px) saturate(120%);
        -webkit-backdrop-filter: blur(16px) saturate(120%);
    }

    .bing-mobile-info-button:not([hidden]):active {
        transform: scale(.95);
    }

    .bing-info-modal {
        width: calc(100vw - 28px);
        max-height: calc(100vh - 40px);
    }

    .bing-info-modal .modal-shell {
        max-height: calc(100vh - 40px);
        padding: 22px 18px;
    }

    .weather-modal .hourly-strip,
    .weather-modal .forecast-grid {
        scrollbar-width: none;
    }

    .weather-modal .hourly-strip::-webkit-scrollbar,
    .weather-modal .forecast-grid::-webkit-scrollbar {
        display: none;
    }
}



/* V26 — Informations Bing et panneau latéral */
.bing-panel[hidden] {
    display: none !important;
}

body.panel-open .bing-desktop-card:not([hidden]) {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

/* =========================================================
   V27 — poignée en haut à droite + réponses des blagues
   ========================================================= */

/* La poignée externe du panneau Aujourd'hui est placée en haut à droite. */
.today-handle-external.today-handle-right {
    top: calc(18px + var(--safe-top));
    right: calc(18px + var(--safe-right));
    bottom: auto;
    width: 50px;
    height: 50px;
    padding: 0;
    box-sizing: border-box;
    transform: none;
    animation: none;
}

.today-handle-external.today-handle-right:hover {
    transform: scale(1.06);
}

.today-handle-external.today-handle-right[aria-expanded="true"] {
    transform: none;
}

/* Accordéon de réponse : la chute d'une blague n'est jamais visible d'emblée. */
.today-answer-accordion {
    margin-top: 10px;
    border: 1px solid rgba(0, 163, 224, .28);
    border-radius: 12px;
    background: rgba(0, 163, 224, .08);
    overflow: hidden;
}

.today-answer-accordion summary {
    min-height: 40px;
    padding: 9px 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: rgba(255, 255, 255, .92);
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.today-answer-accordion summary::-webkit-details-marker {
    display: none;
}

.today-answer-accordion summary i {
    color: var(--blue);
    transition: transform .2s ease;
}

.today-answer-accordion[open] summary i {
    transform: rotate(180deg);
}

.today-answer-accordion .today-answer {
    margin: 0 !important;
    padding: 0 11px 11px;
    color: #bcecff !important;
}

@media (max-width: 768px) {
    .today-handle-external.today-handle-right {
        top: calc(14px + var(--safe-top));
        right: calc(14px + var(--safe-right));
    }

    /* Le bouton d'information Bing descend d'un cran pour ne pas chevaucher la poignée. */
    .bing-mobile-info-button:not([hidden]) {
        top: calc(66px + var(--safe-top));
    }
}


/* =========================================================
   V29 — Notes rapides + réservation dynamique de Bas 5
   ========================================================= */

.widget-drop-zone-dynamic-reserved {
    opacity: .48;
    cursor: not-allowed;
}

.quick-notes-app {
    display: grid;
    gap: 12px;
}

.quick-notes-app-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.quick-notes-list {
    display: grid;
    gap: 10px;
}

.quick-notes-empty {
    min-height: 92px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    border: 1px dashed rgba(255,255,255,.13);
    border-radius: 14px;
    color: rgba(255,255,255,.46);
    font-size: .75rem;
}

.quick-notes-empty i {
    color: var(--blue);
    font-size: 1.2rem;
}

.quick-note-editor-card {
    padding: 10px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 15px;
    background: rgba(255,255,255,.04);
}

.quick-note-editor-head,
.quick-note-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
}

.quick-note-editor-head {
    justify-content: space-between;
    margin-bottom: 7px;
}

.quick-note-editor-head strong {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .76rem;
}

.quick-note-editor-head strong i {
    color: var(--blue);
}

.quick-note-toolbar {
    margin-bottom: 7px;
}

.quick-note-format {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    background: rgba(255,255,255,.045);
    color: rgba(255,255,255,.72);
    cursor: pointer;
}

.quick-note-format:hover,
.quick-note-format:focus-visible {
    color: #fff;
    border-color: rgba(0,163,224,.34);
    background: rgba(0,163,224,.14);
    outline: none;
}

.quick-note-editor {
    min-height: 86px;
    max-height: 230px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 11px;
    background: rgba(0,0,0,.13);
    color: #fff;
    font-size: .8rem;
    line-height: 1.48;
    outline: none;
    -webkit-user-select: text;
    user-select: text;
}

.quick-note-editor:focus {
    border-color: rgba(0,163,224,.42);
    box-shadow: inset 0 0 0 1px rgba(0,163,224,.12);
}

.quick-note-editor:empty::before {
    content: attr(data-placeholder);
    color: rgba(255,255,255,.32);
    pointer-events: none;
}

.quick-note-editor ul,
.quick-note-editor ol,
.quick-note-widget-body ul,
.quick-note-widget-body ol {
    margin: 5px 0 5px 20px;
    padding: 0;
}

.quick-note-widget {
    width: min(260px, calc(100vw - 36px));
    min-height: 108px;
    background: linear-gradient(145deg, rgba(18,30,37,.74), rgba(7,16,22,.62));
}

.quick-note-widget-body {
    max-height: 170px;
    overflow: auto;
    margin-top: 8px;
    padding: 9px 10px;
    border-radius: 11px;
    background: rgba(255,255,255,.045);
    color: rgba(255,255,255,.92);
    font-size: .78rem;
    line-height: 1.46;
    overflow-wrap: anywhere;
    -webkit-user-select: none;
    user-select: none;
}

.quick-note-widget-body p,
.quick-note-widget-body div {
    margin: 0 0 4px;
}

.quick-note-placeholder {
    color: rgba(255,255,255,.34);
    font-style: italic;
}

.mobile-notes-dock {
    right: calc(120px + var(--safe-right));
}

@media (max-width: 720px) {
    .quick-notes-app-head {
        align-items: stretch;
        flex-direction: column;
    }

    .quick-notes-app-head .secondary-btn {
        justify-content: center;
    }

    .mobile-notes-dock:not([hidden]) {
        display: grid;
    }
}

/* =========================================================
   V30 — Titres des notes + tâches du jour + mémo presse-papiers
   ========================================================= */

/* Espace constant entre l'en-tête d'une application et son contenu. */
.application-accordion .app-accordion-body {
    padding-top: 12px;
}

.application-accordion .app-accordion-body > :first-child {
    margin-top: 0;
}

.quick-note-title-wrap {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 7px;
}

.quick-note-title-wrap > i {
    flex: 0 0 auto;
    color: var(--blue);
}

.quick-note-title-input {
    min-width: 0;
    width: 100%;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
    outline: none;
    -webkit-user-select: text;
    user-select: text;
}

.quick-note-title-input:hover,
.quick-note-title-input:focus {
    border-color: rgba(0, 163, 224, .28);
    background: rgba(255, 255, 255, .045);
}

.quick-note-widget-head > span {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.quick-note-widget-head [data-note-widget-title] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.daily-tasks-app,
.clipboard-memo-app {
    display: grid;
    gap: 12px;
}

.daily-tasks-list {
    display: grid;
    gap: 7px;
}

.daily-task-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 12px;
    background: rgba(255, 255, 255, .035);
    transition: border-color .16s ease, background .16s ease, opacity .16s ease;
}

.daily-task-row:focus-within {
    border-color: rgba(0, 163, 224, .30);
    background: rgba(0, 163, 224, .055);
}

.daily-task-check {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.daily-task-check-ui {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 8px;
    background: rgba(0, 0, 0, .12);
    color: transparent;
    cursor: pointer;
    transition: .16s ease;
}

.daily-task-check:focus-visible + .daily-task-check-ui {
    outline: 2px solid rgba(0, 163, 224, .55);
    outline-offset: 2px;
}

.daily-task-check:checked + .daily-task-check-ui {
    border-color: rgba(115, 201, 45, .48);
    background: rgba(115, 201, 45, .18);
    color: #fff;
}

.daily-task-input {
    min-width: 0;
    width: 100%;
    padding: 5px 3px;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: .79rem;
    outline: none;
    -webkit-user-select: text;
    user-select: text;
}

.daily-task-input::placeholder {
    color: rgba(255, 255, 255, .30);
}

.daily-task-row.is-done {
    opacity: .58;
}

.daily-task-row.is-done .daily-task-input {
    text-decoration: line-through;
}

.clipboard-memo-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.clipboard-memo-list {
    display: grid;
    gap: 10px;
}

.clipboard-memo-empty {
    min-height: 92px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    border: 1px dashed rgba(255, 255, 255, .13);
    border-radius: 14px;
    color: rgba(255, 255, 255, .46);
    font-size: .75rem;
}

.clipboard-memo-empty i {
    color: var(--blue);
    font-size: 1.2rem;
}

.clipboard-memo-card {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 15px;
    background: rgba(255, 255, 255, .04);
}

.clipboard-memo-card-head {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 105px 34px;
    align-items: center;
    gap: 6px;
}

.clipboard-memo-title,
.clipboard-memo-type,
.clipboard-memo-content {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 9px;
    background: rgba(0, 0, 0, .12);
    color: #fff;
    font: inherit;
    outline: none;
    -webkit-user-select: text;
    user-select: text;
}

.clipboard-memo-title,
.clipboard-memo-type {
    min-width: 0;
    height: 34px;
    padding: 0 8px;
    font-size: .74rem;
}

.clipboard-memo-type option {
    background: #172129;
    color: #fff;
}

.clipboard-memo-content {
    min-height: 76px;
    resize: vertical;
    padding: 9px 10px;
    font-size: .77rem;
    line-height: 1.42;
}

.clipboard-memo-title:focus,
.clipboard-memo-type:focus,
.clipboard-memo-content:focus {
    border-color: rgba(0, 163, 224, .38);
    box-shadow: inset 0 0 0 1px rgba(0, 163, 224, .10);
}

.clipboard-copy-button {
    justify-self: start;
}

.clipboard-copy-button.is-copied {
    border-color: rgba(115, 201, 45, .38);
    background: rgba(115, 201, 45, .12);
}

@media (max-width: 720px) {
    .clipboard-memo-head {
        align-items: stretch;
        flex-direction: column;
    }

    .clipboard-memo-head .secondary-btn {
        justify-content: center;
    }

    .clipboard-memo-card-head {
        grid-template-columns: minmax(0, 1fr) 34px;
    }

    .clipboard-memo-type {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .clipboard-memo-delete {
        grid-column: 2;
        grid-row: 1;
    }
}

.daily-task-check-wrap {
    width: 26px;
    height: 26px;
    display: block;
    position: relative;
    cursor: pointer;
}

/* =========================================================
   V31 — Widgets Tâches / Presse-papiers + tri des tâches
   ========================================================= */

.daily-task-row {
    grid-template-columns: 28px 30px minmax(0, 1fr) 30px;
}

.daily-task-drag {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, .42);
    cursor: grab;
    touch-action: none;
}

.daily-task-drag:hover,
.daily-task-drag:focus-visible {
    color: #fff;
    background: rgba(0, 163, 224, .12);
    outline: none;
}

.daily-task-drag:active {
    cursor: grabbing;
}

.daily-task-delete {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, .36);
    cursor: pointer;
}

.daily-task-delete:hover,
.daily-task-delete:focus-visible {
    color: #fff;
    background: rgba(220, 80, 80, .14);
    outline: none;
}

.daily-task-row.is-dragging {
    position: relative;
    z-index: 3;
    border-color: rgba(0, 163, 224, .42);
    background: rgba(0, 163, 224, .09);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.tasks-widget,
.clipboard-widget {
    width: min(285px, calc(100vw - 36px));
}

.tasks-widget-list {
    display: grid;
    gap: 6px;
    margin-top: 9px;
    max-height: 194px;
    padding-right: 3px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: auto;
    scrollbar-width: thin;
}

.tasks-widget-list.is-empty {
    min-height: 42px;
    overflow: hidden;
}

.tasks-widget-empty {
    min-height: 42px;
    display: grid;
    place-items: center;
    padding: 8px;
    border: 1px dashed rgba(255, 255, 255, .10);
    border-radius: 10px;
    color: rgba(255, 255, 255, .46);
    font-size: .72rem;
    text-align: center;
}

.tasks-widget-list::-webkit-scrollbar {
    width: 5px;
}

.tasks-widget-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .24);
    border-radius: 999px;
}

.tasks-widget-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 5px 7px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
    cursor: pointer;
}

.tasks-widget-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tasks-widget-check {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 7px;
    color: transparent;
    background: rgba(0, 0, 0, .12);
}

.tasks-widget-row input:checked + .tasks-widget-check {
    border-color: rgba(115, 201, 45, .48);
    background: rgba(115, 201, 45, .18);
    color: #fff;
}

.tasks-widget-text {
    min-width: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, .90);
    font-size: .74rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tasks-widget-row.is-done {
    opacity: .55;
}

.tasks-widget-row.is-done .tasks-widget-text {
    text-decoration: line-through;
}

.clipboard-widget-list {
    max-height: 250px;
    margin-top: 9px;
    display: grid;
    gap: 6px;
    overflow: auto;
    overscroll-behavior: contain;
}

.clipboard-widget-copy {
    min-width: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    color: #fff;
    text-align: left;
    cursor: pointer;
}

.clipboard-widget-copy:hover,
.clipboard-widget-copy:focus-visible {
    border-color: rgba(0, 163, 224, .35);
    background: rgba(0, 163, 224, .09);
    outline: none;
}

.clipboard-widget-copy > i {
    color: var(--blue);
    text-align: center;
}

.clipboard-widget-copy > span {
    min-width: 0;
    overflow: hidden;
    font-size: .74rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.clipboard-widget-copy.is-copied {
    border-color: rgba(115, 201, 45, .42);
    background: rgba(115, 201, 45, .12);
}

.clipboard-widget-copy.is-copied > i {
    color: var(--green);
}

.clipboard-widget-copy:disabled {
    opacity: .36;
    cursor: default;
}

.clipboard-widget-empty {
    padding: 10px 4px 4px;
    color: rgba(255, 255, 255, .40);
    font-size: .72rem;
    font-style: italic;
}

.mobile-tasks-dock {
    right: calc(172px + var(--safe-right));
}

.mobile-clipboard-dock {
    right: calc(224px + var(--safe-right));
}

@media (max-width: 720px) {
    .tasks-widget,
    .clipboard-widget {
        display: none !important;
    }
}

/* =========================================================
   V33 — Navigation alignée + épingle Notes + mémo 5 lignes
   ========================================================= */

/* Les trois commandes utilisent exactement la même boîte et le même glyphe. */
#bingPrev,
#bingNext,
#todayButton {
    width: 50px;
    height: 50px;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

#bingPrev > i,
#bingNext > i,
#todayButton > .handle-arrow {
    width: 18px;
    height: 18px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    font-size: 18px;
    line-height: 1;
    text-align: center;
}

#bingPrev > i::before,
#bingNext > i::before,
#todayButton > .handle-arrow::before {
    display: block;
    line-height: 1;
}

.quick-note-head-actions {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.quick-note-pin {
    color: rgba(255, 255, 255, .46);
    transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

.quick-note-pin:hover,
.quick-note-pin:focus-visible {
    color: #fff;
    background: rgba(0, 163, 224, .12);
    border-color: rgba(0, 163, 224, .28);
    outline: none;
}

.quick-note-pin.is-active {
    color: var(--blue);
    background: rgba(0, 163, 224, .15);
    border-color: rgba(0, 163, 224, .36);
}

.quick-note-pin.is-active i {
    transform: rotate(-18deg);
}

.quick-note-editor-card.is-pinned {
    border-color: rgba(0, 163, 224, .20);
}

/* Le widget presse-papiers montre cinq lignes, puis devient défilable. */
.clipboard-widget-list {
    grid-auto-rows: 38px;
    max-height: calc((5 * 38px) + (4 * 6px));
    padding-right: 3px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: auto;
    scrollbar-width: thin;
}

.clipboard-widget-copy {
    height: 38px;
    min-height: 38px;
    padding-top: 0;
    padding-bottom: 0;
}

.clipboard-widget-list::-webkit-scrollbar {
    width: 5px;
}

.clipboard-widget-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .24);
    border-radius: 999px;
}

/* =========================================================
   V33 — Tri des mémos + aide page d'accueil navigateur
   ========================================================= */

.clipboard-memo-card-head {
    grid-template-columns: 28px minmax(0, 1fr) 105px 34px;
}

.clipboard-memo-drag {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, .42);
    cursor: grab;
    touch-action: none;
}

.clipboard-memo-drag:hover,
.clipboard-memo-drag:focus-visible {
    color: #fff;
    background: rgba(0, 163, 224, .12);
    outline: none;
}

.clipboard-memo-drag:active {
    cursor: grabbing;
}

.clipboard-memo-card.is-dragging {
    opacity: .58;
    border-color: rgba(0, 163, 224, .42);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
}

.browser-home-card {
    border-color: rgba(0, 163, 224, .20);
    background: linear-gradient(145deg, rgba(0, 163, 224, .08), rgba(115, 201, 45, .05));
}

.browser-home-card > .today-card-icon {
    color: #fff;
    background: rgba(0, 163, 224, .16);
}

.browser-home-card .today-card-body > p {
    margin: 4px 0 10px;
    color: rgba(255, 255, 255, .66);
    font-size: .75rem;
    line-height: 1.4;
}

.browser-home-button,
.browser-home-copy {
    justify-content: center;
}

.browser-home-help {
    display: grid;
    gap: 9px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.browser-home-help[hidden] {
    display: none !important;
}

.browser-home-help p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: .73rem;
    line-height: 1.45;
}

@media (max-width: 720px) {
    .clipboard-memo-card-head {
        grid-template-columns: 28px minmax(0, 1fr) 34px;
    }

    .clipboard-memo-drag {
        grid-column: 1;
        grid-row: 1;
    }

    .clipboard-memo-title {
        grid-column: 2;
        grid-row: 1;
    }

    .clipboard-memo-delete {
        grid-column: 3;
        grid-row: 1;
    }

    .clipboard-memo-type {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}
