/* Quick wizard ("Log last week") — its own look, on purpose unlike the app.
   A sticker-book feel: flat bright colours, thick ink outlines, solid offset
   shadows that squash when pressed, one big rounded question per page, and a
   board-game track for the steps. Everything is prefixed .wz-.
   Loaded only by templates/wizard/base.html.twig. */

:root {
    --wz-sky: #e9f3ff;
    --wz-sky-2: #d7e9ff;
    --wz-card: #ffffff;
    --wz-ink: #1d2340;
    --wz-ink-soft: #4b5378;
    --wz-line: #1d2340;
    --wz-sun: #ffd23f;
    --wz-sun-press: #ffc400;
    --wz-pink: #ff7aa8;
    --wz-pink-soft: #ffe3ee;
    --wz-ocean: #3d8bff;
    --wz-ocean-soft: #dde9ff;
    --wz-leaf: #2fbf71;
    --wz-leaf-soft: #dcf6e8;
    --wz-warn: #ff8a3d;
    --wz-warn-soft: #fff0e2;
    --wz-bad: #e5484d;
    --wz-bad-soft: #ffe5e6;
    --wz-muted: #eef1f8;
    --wz-shadow: 4px 4px 0 var(--wz-line);
    --wz-shadow-sm: 3px 3px 0 var(--wz-line);
    --wz-r: 22px;
    --wz-r-sm: 14px;
    --wz-border: 2.5px solid var(--wz-line);
    --wz-head: "Baloo 2", "Nunito", system-ui, sans-serif;
    --wz-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --wz-sky: #141a33;
        --wz-sky-2: #1b2347;
        --wz-card: #222b52;
        --wz-ink: #f3f6ff;
        --wz-ink-soft: #b9c1e6;
        --wz-line: #060918;
        --wz-pink-soft: #4a2238;
        --wz-ocean-soft: #1d3366;
        --wz-leaf-soft: #173f2c;
        --wz-warn-soft: #4a2c14;
        --wz-bad-soft: #4d1d22;
        --wz-muted: #2a3460;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --wz-sky: #141a33;
    --wz-sky-2: #1b2347;
    --wz-card: #222b52;
    --wz-ink: #f3f6ff;
    --wz-ink-soft: #b9c1e6;
    --wz-line: #060918;
    --wz-pink-soft: #4a2238;
    --wz-ocean-soft: #1d3366;
    --wz-leaf-soft: #173f2c;
    --wz-warn-soft: #4a2c14;
    --wz-bad-soft: #4d1d22;
    --wz-muted: #2a3460;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.wz {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 18%, var(--wz-sky-2) 0 70px, transparent 71px),
        radial-gradient(circle at 88% 8%, var(--wz-sky-2) 0 110px, transparent 111px),
        var(--wz-sky);
    color: var(--wz-ink);
    font-family: var(--wz-body);
    font-size: 17px;
    line-height: 1.5;
}
.wz a { color: inherit; }
.wz :focus-visible { outline: 3px solid var(--wz-ocean); outline-offset: 3px; border-radius: 10px; }
.wz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Top bar ─────────────────────────────────────────── */
.wz-top {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 980px; margin: 0 auto; padding: 18px 16px 0;
}
.wz-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--wz-head); font-weight: 800; font-size: 22px; }
.wz-logo img { width: 30px; height: 30px; }
.wz-exit { font-weight: 700; font-size: 15px; color: var(--wz-ink-soft); text-decoration: none; padding: 6px 10px; border-radius: 999px; }
.wz-exit:hover { background: var(--wz-card); color: var(--wz-ink); }

/* ── The track: one stop per step, like a board game ─── */
.wz-track { max-width: 640px; margin: 18px auto 0; padding: 0 16px; }
.wz-track ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; justify-content: space-between; position: relative; }
.wz-track ol::before {
    content: ""; position: absolute; left: 14px; right: 14px; top: 13px;
    border-top: 3px dashed var(--wz-ink-soft); opacity: .45;
}
.wz-track li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1 1 0; min-width: 0; }
.wz-stop {
    width: 28px; height: 28px; border-radius: 50%; border: var(--wz-border); background: var(--wz-card);
    display: grid; place-items: center; font-size: 13px; font-weight: 800; position: relative; z-index: 1;
}
.wz-track .is-done .wz-stop { background: var(--wz-leaf); color: #fff; }
.wz-track .is-now .wz-stop {
    width: 36px; height: 36px; margin-top: -4px; background: var(--wz-sun); color: #1d2340; box-shadow: var(--wz-shadow-sm);
}
.wz-track small { font-size: 12px; font-weight: 700; color: var(--wz-ink-soft); text-align: center; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wz-track .is-now small { color: var(--wz-ink); }
@media (max-width: 520px) {
    .wz-track small { display: none; }
    .wz-track li.is-now small { display: block; position: absolute; top: 40px; white-space: nowrap; }
    .wz-track { margin-bottom: 18px; }
}

/* ── Page ───────────────────────────────────────────── */
.wz-main { max-width: 600px; margin: 0 auto; padding: 28px 16px 120px; }
.wz-main.is-wide { max-width: 820px; }
.wz-q {
    font-family: var(--wz-head); font-weight: 800; letter-spacing: -.01em;
    font-size: clamp(30px, 6vw, 44px); line-height: 1.08; margin: 8px 0 10px; text-align: center; text-wrap: balance;
}
.wz-sub { text-align: center; color: var(--wz-ink-soft); font-size: 18px; margin: 0 auto 26px; max-width: 34em; }
.wz-sub strong { color: var(--wz-ink); }
.wz-h2 { font-family: var(--wz-head); font-weight: 800; font-size: 24px; line-height: 1.2; margin: 0 0 8px; }
.wz-small { font-size: 14px; color: var(--wz-ink-soft); }
.wz-center { text-align: center; }

/* ── Big choices (stickers) ────────────────────────── */
.wz-choices { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.wz-choice {
    width: 100%; display: flex; align-items: center; gap: 18px; text-align: left;
    padding: 18px 20px; border: var(--wz-border); border-radius: var(--wz-r); background: var(--wz-card);
    box-shadow: var(--wz-shadow); color: var(--wz-ink); font: inherit; cursor: pointer; text-decoration: none;
    transition: transform .08s ease, box-shadow .08s ease;
}
.wz-choice:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--wz-line); }
.wz-choice:active, .wz-choice.is-pressed { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--wz-line); }
.wz-choice-icon {
    flex: 0 0 64px; height: 64px; border-radius: 18px; border: var(--wz-border); display: grid; place-items: center;
}
.wz-choice-icon svg { width: 36px; height: 36px; }
.wz-choice strong { display: block; font-family: var(--wz-head); font-size: 23px; line-height: 1.15; font-weight: 800; }
.wz-choice span.wz-choice-text small { display: block; color: var(--wz-ink-soft); font-size: 15px; margin-top: 2px; }
.wz-choice.is-pink .wz-choice-icon { background: var(--wz-pink); color: #1d2340; }
.wz-choice.is-ocean .wz-choice-icon { background: var(--wz-ocean); color: #fff; }
.wz-choice.is-leaf .wz-choice-icon { background: var(--wz-leaf); color: #fff; }
.wz-choice.is-sun .wz-choice-icon { background: var(--wz-sun); color: #1d2340; }
.wz-choice.is-plain .wz-choice-icon { background: var(--wz-muted); color: var(--wz-ink); }
.wz-choice.is-small { padding: 12px 16px; box-shadow: var(--wz-shadow-sm); }
.wz-choice.is-small .wz-choice-icon { flex-basis: 44px; height: 44px; border-radius: 13px; }
.wz-choice.is-small .wz-choice-icon svg { width: 24px; height: 24px; }
.wz-choice.is-small strong { font-size: 19px; }
.wz-choice[aria-checked="true"], .wz-radio:checked + .wz-choice { background: var(--wz-sun); color: #1d2340; }
.wz-radio:checked + .wz-choice small { color: #3b3f55; }
.wz-radio:focus-visible + .wz-choice { outline: 3px solid var(--wz-ocean); outline-offset: 3px; }
.wz-radio { position: absolute; opacity: 0; pointer-events: none; }
.wz-pick { position: relative; }
.wz-tick {
    margin-left: auto; flex: 0 0 30px; height: 30px; border-radius: 50%; border: var(--wz-border); background: var(--wz-card);
    display: grid; place-items: center;
}
.wz-tick svg { width: 16px; height: 16px; opacity: 0; }
.wz-radio:checked + .wz-choice .wz-tick { background: var(--wz-ink); color: var(--wz-sun); }
.wz-radio:checked + .wz-choice .wz-tick svg { opacity: 1; }

/* ── Buttons ───────────────────────────────────────── */
.wz-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 58px; padding: 0 30px; border: var(--wz-border); border-radius: 999px;
    background: var(--wz-sun); color: #1d2340; box-shadow: var(--wz-shadow);
    font-family: var(--wz-head); font-weight: 800; font-size: 21px; line-height: 1; cursor: pointer; text-decoration: none;
    transition: transform .08s ease, box-shadow .08s ease, background .1s;
}
.wz-btn:hover { background: var(--wz-sun-press); }
.wz-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--wz-line); }
.wz-btn[disabled], .wz-btn.is-off { opacity: .55; cursor: not-allowed; transform: none; }
.wz-btn.is-white { background: var(--wz-card); color: var(--wz-ink); }
.wz-btn.is-white:hover { background: var(--wz-muted); }
.wz-btn.is-ocean { background: var(--wz-ocean); color: #fff; }
.wz-btn.is-leaf { background: var(--wz-leaf); color: #fff; }
.wz-btn.is-small { min-height: 44px; font-size: 17px; padding: 0 20px; box-shadow: var(--wz-shadow-sm); }
.wz-btn.is-block { width: 100%; }
.wz-btn svg { width: 22px; height: 22px; flex: 0 0 auto; }
.wz-link {
    background: none; border: 0; padding: 4px 2px; font: inherit; font-weight: 700; color: var(--wz-ink-soft);
    text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; cursor: pointer;
}
.wz-link:hover { color: var(--wz-ink); }
.wz-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 28px; }
.wz-actions.is-row { flex-direction: row; flex-wrap: wrap; justify-content: center; }
/* The main button stays under the thumb on a phone. */
.wz-dock {
    position: sticky; bottom: 0; z-index: 5; margin: 28px -16px 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--wz-sky) 70%, transparent);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}

/* Busy: the button says what is happening, three dots hop. */
.wz-busy-dots { display: inline-flex; gap: 5px; }
.wz-busy-dots i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; animation: wz-hop .9s infinite ease-in-out; }
.wz-busy-dots i:nth-child(2) { animation-delay: .15s; }
.wz-busy-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes wz-hop { 0%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-7px); } }
.wz-btn.is-busy { pointer-events: none; }

/* ── Panels and fields ─────────────────────────────── */
.wz-panel { background: var(--wz-card); border: var(--wz-border); border-radius: var(--wz-r); box-shadow: var(--wz-shadow); padding: 22px; }
.wz-panel + .wz-panel { margin-top: 18px; }
.wz-field { display: grid; gap: 6px; margin-bottom: 16px; }
.wz-label { font-weight: 800; font-size: 16px; }
.wz-input, .wz-select, .wz-textarea {
    width: 100%; font: inherit; font-size: 18px; color: var(--wz-ink); background: var(--wz-card);
    border: var(--wz-border); border-radius: var(--wz-r-sm); padding: 12px 14px; min-height: 52px;
}
.wz-input:focus, .wz-select:focus, .wz-textarea:focus { outline: none; box-shadow: 0 0 0 4px var(--wz-sun); }
.wz-textarea { min-height: 190px; resize: vertical; line-height: 1.45; padding-right: 64px; }
.wz-select { appearance: none; padding-right: 40px;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 22px) 50%, calc(100% - 15px) 50%; background-size: 7px 7px; background-repeat: no-repeat; }
.wz-code {
    font-family: var(--wz-head); font-weight: 800; font-size: 40px; letter-spacing: .35em; text-align: center; padding-left: .35em;
}
.wz-hint { font-size: 14px; color: var(--wz-ink-soft); }
.wz-or { display: flex; align-items: center; gap: 12px; color: var(--wz-ink-soft); font-weight: 700; margin: 22px 0; }
.wz-or::before, .wz-or::after { content: ""; flex: 1; border-top: 2px dashed var(--wz-ink-soft); opacity: .4; }

/* The microphone, inside the text box. */
.wz-say { position: relative; }
.wz-mic {
    position: absolute; right: 12px; top: 12px; width: 48px; height: 48px; border-radius: 50%;
    border: var(--wz-border); background: var(--wz-pink); color: #1d2340; box-shadow: var(--wz-shadow-sm); cursor: pointer;
    display: grid; place-items: center;
}
.wz-mic svg { width: 22px; height: 22px; }
.wz-mic[aria-pressed="true"] { background: var(--wz-bad); color: #fff; animation: wz-pulse 1.2s infinite; }
@keyframes wz-pulse { 50% { box-shadow: 0 0 0 8px rgba(229, 72, 77, .25), var(--wz-shadow-sm); } }
.wz-count { font-size: 13px; color: var(--wz-ink-soft); text-align: right; }
.wz-count.is-full { color: var(--wz-bad); font-weight: 800; }
.wz-heard { min-height: 1.4em; font-size: 14px; font-weight: 700; color: var(--wz-ink-soft); }
.wz-example { background: var(--wz-pink-soft); border-radius: var(--wz-r-sm); padding: 12px 14px; font-size: 15px; margin: 0 0 16px; }
.wz-example b { display: block; font-size: 13px; color: var(--wz-ink-soft); margin-bottom: 2px; }

/* ── Messages ──────────────────────────────────────── */
.wz-flash { max-width: 600px; margin: 18px auto 0; padding: 0 16px; display: grid; gap: 10px; }
.wz-note {
    display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: var(--wz-border); border-radius: var(--wz-r-sm);
    background: var(--wz-card); font-weight: 600;
}
.wz-note::before { content: ""; flex: 0 0 12px; height: 12px; margin-top: 6px; border-radius: 50%; border: 2px solid var(--wz-line); background: var(--wz-ocean); }
.wz-note.is-error { background: var(--wz-bad-soft); }
.wz-note.is-error::before { background: var(--wz-bad); }
.wz-note.is-success { background: var(--wz-leaf-soft); }
.wz-note.is-success::before { background: var(--wz-leaf); }
.wz-note.is-warning { background: var(--wz-warn-soft); }
.wz-note.is-warning::before { background: var(--wz-warn); }

/* ── Badges ───────────────────────────────────────── */
.wz-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; border: 2px solid var(--wz-line);
    background: var(--wz-leaf-soft); font-weight: 800; font-size: 14px;
}
.wz-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -10px 0 22px; }

/* ── Landing page ─────────────────────────────────── */
.wz-hero { text-align: center; padding-top: 10px; }
.wz-hero .wz-q { font-size: clamp(36px, 8vw, 58px); }
.wz-clock {
    width: 96px; height: 96px; margin: 0 auto 6px; display: block;
}
.wz-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 46px 0 0; padding: 0; list-style: none; counter-reset: how; }
.wz-how li { text-align: center; font-weight: 700; font-size: 15px; color: var(--wz-ink-soft); counter-increment: how; }
.wz-how li::before {
    content: counter(how); display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 8px;
    border-radius: 50%; border: var(--wz-border); background: var(--wz-card); color: var(--wz-ink);
    font-family: var(--wz-head); font-weight: 800; font-size: 20px;
}
.wz-promise { margin: 28px auto 0; text-align: center; font-size: 15px; color: var(--wz-ink-soft); max-width: 30em; }
.wz-resume { text-align: center; margin: -8px 0 18px; }
@media (max-width: 520px) {
    .wz-how { grid-template-columns: 1fr; gap: 10px; }
    .wz-how li { display: flex; align-items: center; gap: 12px; text-align: left; }
    .wz-how li::before { margin: 0; flex: 0 0 40px; }
}

/* ── Review list ──────────────────────────────────── */
.wz-sum {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin: 0 0 22px;
    font-weight: 700; color: var(--wz-ink-soft);
}
.wz-sum b { font-family: var(--wz-head); font-size: 26px; color: var(--wz-ink); font-weight: 800; }
.wz-day { margin-top: 24px; }
.wz-day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 4px 10px; }
.wz-day-head h3 { font-family: var(--wz-head); font-size: 22px; font-weight: 800; margin: 0; }
.wz-day-head span { font-weight: 800; color: var(--wz-ink-soft); }
.wz-entry {
    display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: start;
    background: var(--wz-card); border: var(--wz-border); border-radius: var(--wz-r-sm); padding: 14px 16px; box-shadow: var(--wz-shadow-sm);
}
.wz-entry + .wz-entry { margin-top: 12px; }
.wz-entry.is-needs { background: var(--wz-warn-soft); }
.wz-entry.is-error { background: var(--wz-bad-soft); }
.wz-entry.is-off { opacity: .62; box-shadow: none; }
.wz-entry.is-locked { box-shadow: none; background: var(--wz-leaf-soft); }
.wz-inc { margin-top: 2px; }
.wz-inc input { appearance: none; width: 30px; height: 30px; border: var(--wz-border); border-radius: 9px; background: var(--wz-card); display: grid; place-items: center; cursor: pointer; margin: 0; }
.wz-inc input:checked { background: var(--wz-leaf); }
.wz-inc input:checked::after { content: ""; width: 9px; height: 15px; border: solid #fff; border-width: 0 3.5px 3.5px 0; transform: translateY(-2px) rotate(45deg); }
.wz-entry-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.wz-entry-top strong { font-size: 18px; line-height: 1.3; }
.wz-time { font-weight: 800; color: var(--wz-ink-soft); font-size: 14px; white-space: nowrap; }
.wz-who { font-size: 14px; color: var(--wz-ink-soft); }
.wz-place { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; grid-column: 2; }
.wz-place .wz-select { font-size: 16px; min-height: 46px; padding: 8px 36px 8px 12px; }
.wz-entry .wz-tag { grid-column: 2; font-weight: 800; font-size: 14px; }
.wz-entry details { grid-column: 2; }
.wz-entry summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--wz-ink-soft); list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.wz-entry summary::-webkit-details-marker { display: none; }
.wz-entry summary::before { content: "+"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 2px solid currentColor; font-size: 15px; line-height: 1; }
.wz-entry details[open] summary::before { content: "−"; }
.wz-entry textarea { margin-top: 8px; min-height: 80px; font-size: 16px; padding-right: 14px; }
.wz-flag { grid-column: 2; font-weight: 800; font-size: 14px; color: #a14a00; }
[data-theme="dark"] .wz-flag { color: var(--wz-warn); }
.wz-remember { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.wz-remember input { width: 22px; height: 22px; accent-color: var(--wz-leaf); }
.wz-empty { text-align: center; }
.wz-empty svg { width: 110px; height: 110px; }
@media (max-width: 560px) {
    .wz-place { grid-template-columns: 1fr; }
    .wz-entry { padding: 12px; }
}

/* ── Projects (import-file mode) ──────────────────── */
.wz-proj-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wz-proj-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--wz-r-sm); background: var(--wz-muted); }
.wz-proj-list small { display: block; color: var(--wz-ink-soft); }
.wz-rows { display: grid; gap: 12px; }
.wz-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }
@media (max-width: 560px) { .wz-row { grid-template-columns: 1fr; padding-bottom: 10px; border-bottom: 2px dashed var(--wz-muted); } }
.wz-drop {
    display: grid; place-items: center; gap: 8px; text-align: center; padding: 28px 16px; border: 3px dashed var(--wz-ink-soft);
    border-radius: var(--wz-r); background: var(--wz-card); cursor: pointer; font-weight: 700;
}
.wz-drop input { max-width: 100%; font: inherit; font-size: 15px; }
.wz-steps { margin: 0; padding-left: 22px; }
.wz-steps li + li { margin-top: 6px; }
.wz-copy { white-space: pre-wrap; background: var(--wz-muted); border-radius: var(--wz-r-sm); padding: 14px; font-size: 15px; margin: 0 0 12px; }

/* ── Sending and done ─────────────────────────────── */
.wz-progress { height: 26px; border: var(--wz-border); border-radius: 999px; background: var(--wz-card); overflow: hidden; margin: 24px 0 10px; }
.wz-progress span {
    display: block; height: 100%; background: repeating-linear-gradient(-45deg, var(--wz-sun) 0 14px, var(--wz-sun-press) 14px 28px);
    border-right: var(--wz-border); animation: wz-stripes 1s linear infinite;
}
@keyframes wz-stripes { to { background-position: 40px 0; } }
.wz-big { font-family: var(--wz-head); font-weight: 800; font-size: clamp(54px, 13vw, 92px); line-height: 1; text-align: center; margin: 12px 0 0; }
.wz-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.wz-table th { text-align: left; font-size: 13px; color: var(--wz-ink-soft); padding: 6px 8px; }
.wz-table td { padding: 10px 8px; border-top: 2px solid var(--wz-muted); vertical-align: top; }
.wz-table .is-bad td { background: var(--wz-bad-soft); }
.wz-table .num { text-align: right; white-space: nowrap; font-weight: 800; }
.wz-ok { color: #12804a; font-weight: 800; }
[data-theme="dark"] .wz-ok { color: var(--wz-leaf); }
.wz-ko { color: var(--wz-bad); font-weight: 800; }
.wz-scroll { overflow-x: auto; }
.wz-files { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.wz-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 20; overflow: hidden; }
.wz-confetti i { position: absolute; top: -20px; width: 12px; height: 18px; border: 2px solid var(--wz-line); border-radius: 3px; animation: wz-fall 2.6s cubic-bezier(.2, .6, .4, 1) forwards; }
@keyframes wz-fall { to { transform: translateY(110vh) rotate(540deg); } }

@media (prefers-reduced-motion: reduce) {
    .wz *, .wz *::before, .wz *::after { animation: none !important; transition: none !important; }
    .wz-confetti { display: none; }
}

/* Icon sizes outside buttons and cards. */
.wz-badge svg { width: 16px; height: 16px; flex: none; }
.wz-drop svg { width: 44px; height: 44px; }
.wz [hidden] { display: none !important; }

/* Review: a task typed by the person, shown when "Another task…" is picked (no script needed). */
.wz-custom { display: none; grid-column: 1 / -1; gap: 4px; }
.wz-place:has(select[data-wz-task] option[value="__custom__"]:checked) .wz-custom { display: grid; }
.wz-custom .wz-input { font-size: 16px; min-height: 46px; padding: 8px 12px; }

/* Review: "Fill the missing hours" switch and the top-up line of each day. */
.wz-fillbar { background: var(--wz-card); border: var(--wz-border); border-radius: var(--wz-r-sm); box-shadow: var(--wz-shadow-sm); padding: 14px 16px; margin: 0 0 6px; }
.wz-switch { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.wz-switch input { position: absolute; opacity: 0; pointer-events: none; }
.wz-switch-track { flex: 0 0 54px; height: 32px; border: var(--wz-border); border-radius: 999px; background: var(--wz-muted); position: relative; transition: background .12s; }
.wz-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; border: 2px solid var(--wz-line); background: var(--wz-card); transition: transform .12s; }
.wz-switch input:checked + .wz-switch-track { background: var(--wz-leaf); }
.wz-switch input:checked + .wz-switch-track::after { transform: translateX(22px); }
.wz-switch input:focus-visible + .wz-switch-track { outline: 3px solid var(--wz-ocean); outline-offset: 3px; }
.wz-switch-text strong { display: block; font-size: 17px; }
.wz-switch-text small { display: block; font-size: 14px; color: var(--wz-ink-soft); }
.wz-entry.wz-topup { background: var(--wz-ocean-soft); border-style: dashed; box-shadow: none; }
.wz-entry.wz-topup.is-locked { background: var(--wz-leaf-soft); }
.wz-plus { background: var(--wz-ocean); color: #fff; font-size: 18px; }

/* ── Rules in plain words (wizard/rules) ── */
.wz-rules { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 12px; }
.wz-rule {
    display: grid; grid-template-columns: 30px 1fr; gap: 4px 12px; align-items: start;
    background: var(--wz-card); border: var(--wz-border); border-radius: var(--wz-r-sm); box-shadow: var(--wz-shadow-sm); padding: 14px 16px;
}
.wz-rule.is-needs { background: var(--wz-warn-soft); }
.wz-rule.is-blocked { background: var(--wz-bad-soft); box-shadow: none; }
.wz-rule-pick { appearance: none; width: 30px; height: 30px; border: var(--wz-border); border-radius: 9px; background: var(--wz-card); display: grid; place-items: center; cursor: pointer; margin: 0; }
.wz-rule-pick:checked { background: var(--wz-leaf); }
.wz-rule-pick:checked::after { content: ""; width: 9px; height: 15px; border: solid #fff; border-width: 0 3.5px 3.5px 0; transform: translateY(-2px) rotate(45deg); }
.wz-rule-pick:focus-visible { outline: 3px solid var(--wz-ocean); outline-offset: 2px; }
.wz-rule-pick:disabled { cursor: not-allowed; opacity: .5; }
.wz-rule-body { display: grid; gap: 6px; cursor: pointer; min-width: 0; }
.wz-rule.is-blocked .wz-rule-body { cursor: default; }
.wz-rule-kind {
    justify-self: start; font-weight: 800; font-size: 12px; letter-spacing: .02em; text-transform: uppercase;
    border: 2px solid var(--wz-line); border-radius: 999px; padding: 1px 10px; background: var(--wz-sun); color: #1d2340;
}
.wz-rule-kind.is-update { background: var(--wz-ocean-soft); color: var(--wz-ink); }
.wz-rule-kind.is-delete { background: var(--wz-bad-soft); color: var(--wz-ink); }
.wz-rule-kind.is-catch_all { background: var(--wz-muted); color: var(--wz-ink); }
.wz-rule-say { font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }
.wz-rule-say .rl-fld, .wz-rule-say .rl-val { font-weight: 800; }
.wz-rule-say .rl-val { background: var(--wz-sun); color: #1d2340; border-radius: 6px; padding: 0 5px; }
.wz-rule-say .rl-and { color: var(--wz-ink-soft); font-weight: 700; }
.wz-rule-was { font-size: 14px; color: var(--wz-ink-soft); }
.wz-rule-why { font-size: 14px; color: var(--wz-ink-soft); }
.wz-rule .wz-flag { grid-column: auto; color: var(--wz-bad); }
.wz-rule-warn { font-weight: 700; font-size: 14px; color: #a14a00; }
.wz-rules.is-plain .wz-rule { grid-template-columns: 1fr; box-shadow: none; padding: 10px 14px; }
.wz-rules.is-plain .wz-rule-say { font-size: 15px; }
.wz-have { margin: 0 0 18px; background: var(--wz-ocean-soft); border-radius: var(--wz-r-sm); padding: 12px 14px; }
.wz-have summary { cursor: pointer; font-weight: 800; }
.wz-have[open] summary { margin-bottom: 10px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wz-rule-warn { color: #ffb37a; } }
:root[data-theme="dark"] .wz-rule-warn { color: #ffb37a; }

/* ── Saved rules: change, remove, undo ── */
.wz-have { background: var(--wz-ocean-soft); }
.wz-have-title { font-family: var(--wz-head); font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.wz-rules.is-saved .wz-rule { grid-template-columns: 34px 1fr; box-shadow: none; }
.wz-rule-n {
    display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--wz-line);
    background: var(--wz-sun); color: #1d2340; font-weight: 800; font-size: 15px;
}
.wz-rule-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: 4px; }
.wz-rule-tools .wz-link { font-size: 15px; }
.wz-link.is-bad { color: var(--wz-bad); }
.wz-rule-edit { flex: 1 0 100%; order: -1; }
.wz-rule-edit summary { cursor: pointer; font-weight: 700; font-size: 15px; color: var(--wz-ink-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; list-style: none; display: inline-block; padding: 4px 2px; }
.wz-rule-edit summary::-webkit-details-marker { display: none; }
.wz-rule-edit[open] summary { color: var(--wz-ink); }
.wz-rule-edit form { display: grid; gap: 10px; justify-items: start; margin: 6px 0 4px; }
.wz-rule-edit .wz-place { grid-column: auto; width: 100%; margin-top: 0; }
.wz-place:has(select[data-wz-project] option[value="__dont_log__"]:checked) select[data-wz-task],
.wz-place:has(select[data-wz-project] option[value="__dont_log__"]:checked) .wz-custom { display: none; }
.wz-undo {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
    background: var(--wz-leaf-soft); border: var(--wz-border); border-radius: var(--wz-r-sm); padding: 10px 14px; margin: 0 0 16px; font-weight: 700;
}
.wz-dock.is-static { position: static; }

/* ── Billable or not (check page) ── */
.wz-bill { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; cursor: pointer; margin-top: 6px; }
.wz-bill input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wz-bill span {
    display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px;
    border: 2px solid var(--wz-line); border-radius: 999px; padding: 3px 12px;
}
.wz-bill-on { background: var(--wz-leaf-soft); }
.wz-bill-on::before { content: "$"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--wz-leaf); color: #fff; font-size: 12px; }
.wz-bill-off { background: var(--wz-muted); color: var(--wz-ink-soft); text-decoration: line-through; text-decoration-thickness: 2px; }
.wz-bill input[type=checkbox]:checked ~ .wz-bill-off, .wz-bill input[type=checkbox]:not(:checked) ~ .wz-bill-on { display: none; }
.wz-bill input[type=checkbox]:focus-visible ~ span { outline: 3px solid var(--wz-ocean); outline-offset: 2px; }
.wz-fillbar .wz-bill { margin: 10px 0 0 58px; }
.wz-entry.is-off .wz-bill { opacity: .5; }

/* ── Where a line's project comes from (check page) ── */
.wz-why { grid-column: 2; font-size: 13px; font-weight: 700; color: var(--wz-ink-soft); }
.wz-why.is-pick { color: #a14a00; }
.wz-why .wz-link { font-size: 13px; padding: 0 2px; }
.wz-picked { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wz-why.is-pick { color: #ffb37a; } }
:root[data-theme="dark"] .wz-why.is-pick { color: #ffb37a; }

/* ── Sign-in: the two boxes to tick ── */
.wz-agree { display: grid; gap: 10px; background: var(--wz-card); border: var(--wz-border); border-radius: var(--wz-r-sm); padding: 14px 16px; margin: 0 0 18px; }
.wz-check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-weight: 700; font-size: 16px; line-height: 1.4; }
.wz-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wz-check-box { flex: 0 0 26px; height: 26px; border: var(--wz-border); border-radius: 8px; background: var(--wz-card); display: grid; place-items: center; }
.wz-check input:checked + .wz-check-box { background: var(--wz-leaf); }
.wz-check input:checked + .wz-check-box::after { content: ""; width: 8px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: translateY(-2px) rotate(45deg); }
.wz-check input:focus-visible + .wz-check-box { outline: 3px solid var(--wz-ocean); outline-offset: 2px; }
.wz-check .wz-link { padding: 0; }

/* ── Import files: one per project, Excel or CSV ── */
.wz-file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border: 2px dashed var(--wz-line); border-radius: var(--wz-r-sm); }
.wz-file-name { flex: 1 1 200px; font-weight: 800; overflow-wrap: anywhere; }
.wz-dock .wz-btn.is-small.is-white { font-size: 15px; min-height: 40px; }
