/* ==========================================================================
   Marketing Olympus - participant app + brand layer (loaded after style.css)
   Phone first: colored header, cards, bottom tab bar.
   From 900px: side navigation and wider grids.
   ========================================================================== */
:root {
    --turq: #23B4C9;
    --teal: #117B95;
    --orange: #F47D2C;
    --yellow: #FFCC22;
    --coral: #ED4B53;
    --lime: #A1D900;
    --olive: #719900;
    --ink: #073B3D;
    --panel: #F3F6EC;
    --font-head: "Roboto Condensed", "Arial Narrow", "Lato", sans-serif;
}

.mono {
    font-family: Consolas, "Courier New", monospace;
    font-size: .85rem;
}

.color-input {
    height: 44px;
    padding: 4px !important;
    width: 90px !important;
    cursor: pointer;
}

.optional {
    font-weight: 400;
    color: var(--text-muted);
    font-size: .8rem;
}

.eyebrow-dark {
    margin: 0 0 2px;
    font-size: .75rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
}

.icon {
    flex-shrink: 0;
    vertical-align: -4px;
}

/* ---- Welcome (login) page ------------------------------------------------------------- */
.welcome {
    max-width: 480px;
    margin: 0 auto;
}

.welcome-hero {
    position: relative;
    overflow: hidden;
    background: var(--turq);
    color: var(--ink);
    text-align: center;
    border-radius: 0 0 40px 40px;
    padding: 26px 18px 0;
    margin: -20px -16px 18px;
}

.hero-laurel {
    display: block;
    color: var(--ink);
    line-height: 0;
    margin-bottom: 4px;
}

.hero-brand-small {
    margin: 0;
    letter-spacing: .5em;
    font-size: .82rem;
    font-weight: 700;
    padding-left: .5em;
}

.hero-brand-big {
    margin: 0;
    color: inherit;
    font-size: 3.3rem;
    line-height: 1;
    letter-spacing: .03em;
    font-family: var(--font-head);
}

.band-sub {
    margin: 6px 0 0;
    font-weight: 700;
    opacity: .92;
}

.welcome-gods {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    margin-top: 14px;
    height: 170px;
    overflow: hidden;
}

.welcome-god {
    width: 30%;
    max-width: 120px;
    height: auto;
    align-self: flex-end;
}

/* ---- App shell ------------------------------------------------------------------------ */
body.app-body {
    display: block;
    padding: 0;
}

.app {
    display: flex;
    min-height: 100vh;
}

.app-main {
    flex: 1;
    min-width: 0;
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

.app-content {
    max-width: 1040px;
    margin: 0 auto;
    padding: 20px 16px 28px;
}

.sidebar {
    display: none;
}

/* bottom tab bar (phones) */
.tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-top: 1px solid var(--border-color);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 18px rgba(7, 59, 61, .08);
}

.tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 0;
    color: var(--text-muted);
    text-decoration: none;
    font-size: .72rem;
    font-weight: 700;
    border-radius: 12px;
}

.tabbar a.active {
    color: var(--teal);
}

.tabbar a.active .icon {
    stroke-width: 2.3;
}

/* ---- Colored header band ------------------------------------------------------------------ */
.hero-band {
    position: relative;
    background: var(--hero, var(--turq));
    color: var(--on-hero, var(--ink));
    border-radius: 0 0 34px 34px;
    padding: 14px 0 34px;
    overflow: hidden;
}

.hero-inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
}

.hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    position: relative;
    z-index: 2;
}

.hero-top .hero-laurel {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: inherit;
}

.hero-btn,
.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
    background: rgba(255, 255, 255, .22);
    font-weight: 800;
    font-size: .85rem;
}

.avatar {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 2px 8px rgba(7, 59, 61, .18);
}

.avatar-big {
    width: 64px;
    height: 64px;
    font-size: 1.2rem;
    background: var(--turq);
}

.hero-text {
    text-align: center;
    margin-top: 6px;
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    margin: 0;
    letter-spacing: .32em;
    font-size: .8rem;
    font-weight: 700;
    padding-left: .32em;
    opacity: .9;
}

.band-title {
    margin: 2px 0 0;
    color: inherit;
    font-size: 2.1rem;
    line-height: 1.1;
    font-family: var(--font-head);
    font-weight: 700;
}

.hero-text .hero-brand-small {
    margin-top: 6px;
}

.hero-text .hero-brand-big {
    color: inherit;
}

.hero-chip {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    color: var(--ink);
    font-weight: 700;
    font-size: .85rem;
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.hero-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    opacity: .55;
}

.hero-dots span.on {
    opacity: 1;
    transform: scale(1.35);
}

/* header with a big statue at the right (task detail) */
.hero-with-image .hero-text {
    text-align: left;
    max-width: 58%;
    margin-top: 22px;
}

.hero-with-image .hero-eyebrow {
    font-family: var(--font-head);
    font-size: 2.6rem;
    letter-spacing: .01em;
    padding: 0;
    line-height: 1;
    font-weight: 700;
}

.hero-with-image .band-title {
    font-size: 1.7rem;
    font-weight: 400;
}

.hero-with-image {
    padding-bottom: 20px;
    min-height: 300px;
}

.hero-with-image .hero-inner {
    position: static;
}

.hero-image {
    position: absolute;
    right: 6px;
    bottom: 0;
    width: 185px;
    z-index: 1;
}

.hero-image .hero-art {
    width: 100%;
    height: auto;
    display: block;
}

/* ---- God pictures -------------------------------------------------------------------------------- */
.god-art {
    display: block;
    width: 100%;
    height: auto;
}

.god-art-row {
    width: 84px;
    flex-shrink: 0;
}

.god-art-admin {
    width: 70px;
}

.god-art-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    aspect-ratio: 1;
    width: 84px;
    font-weight: 800;
    font-size: 1.6rem;
    background: var(--turq);
    color: var(--ink);
}

/* ---- Sections, cards ------------------------------------------------------------------------------- */
.section {
    margin-bottom: 22px;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.section-head h2 {
    margin: 0;
    font-size: 1.35rem;
}

.link-more {
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.lead {
    margin: 0 0 16px;
}

.notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    background: #E3F3F6;
    color: var(--ink);
    margin-bottom: 14px;
}

.notice-closed {
    background: #FDEEDD;
    color: #6E3608;
}

.intro-card {
    text-align: center;
    color: var(--teal);
}

.intro-card h2 {
    color: var(--ink);
    font-size: 1.5rem;
    margin-top: 6px;
}

.intro-card p {
    color: var(--text-muted);
    max-width: 52ch;
    margin: 0 auto;
}

.state-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
    background: #E6ECEC;
    color: #35575A;
}

.state-done {
    background: #DDF1B8;
    color: #2F4A00;
}

.state-draft {
    background: #FFE9C2;
    color: #7A4300;
}

/* ---- Home: gods, stages ----------------------------------------------------------------------------- */
.god-scroller {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.god-card {
    flex: 0 0 132px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
    background: var(--panel);
    border-radius: 20px;
    padding: 12px 8px 14px;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}

.god-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(7, 59, 61, .12);
}

.god-card .god-art {
    width: 96px;
}

.god-name {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    margin-top: 4px;
}

.god-role {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 600;
    min-height: 1.3em;
}

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

.stage-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--panel);
    color: var(--ink);
    text-decoration: none;
}

.stage-card:hover {
    background: #E9EFE0;
}

.stage-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--stage);
    flex-shrink: 0;
}

.stage-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stage-text small {
    color: var(--text-muted);
}

/* ---- Days ------------------------------------------------------------------------------------------- */
.day-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.day-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 22px 20px;
    border-radius: 24px;
    text-decoration: none;
    background: var(--day);
    color: var(--on-day);
    min-height: 130px;
    justify-content: flex-end;
    box-shadow: 0 10px 24px rgba(7, 59, 61, .14);
    transition: transform .15s;
}

.day-card:hover {
    transform: translateY(-3px);
}

.day-card-eyebrow {
    letter-spacing: .3em;
    font-size: .78rem;
    font-weight: 800;
    opacity: .9;
}

.day-card-title {
    font-family: var(--font-head);
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.1;
}

.day-card-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: .9rem;
    margin-top: 4px;
}

/* ---- Day: task rows ------------------------------------------------------------------------------------ */
.task-list {
    display: grid;
    gap: 12px;
}

.task-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 22px;
    background: var(--panel);
    color: var(--ink);
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}

.task-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(7, 59, 61, .1);
}

.task-row-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.task-row-god {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.task-row-god strong {
    font-family: var(--font-head);
    font-size: 1.5rem;
    line-height: 1;
}

.task-row-god em {
    font-style: normal;
    font-family: var(--font-head);
    font-size: 1.15rem;
}

.task-row-text {
    display: flex;
    gap: 8px;
    color: var(--text-muted);
    font-size: .92rem;
    align-items: flex-start;
}

.task-row-text .icon {
    margin-top: 2px;
    color: var(--ink);
}

.task-row .state-pill {
    align-self: flex-start;
}

/* ---- Task detail --------------------------------------------------------------------------------------------- */
.task-summary {
    display: flex;
    align-items: center;
    gap: 18px;
}

.task-summary h2 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.task-summary p {
    margin: 0 0 8px;
}

.ring {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.ring svg {
    width: 100%;
    height: 100%;
}

.ring b {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 1.15rem;
}

.tabs-card {
    padding: 0;
    overflow: hidden;
}

.task-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.task-tabs button {
    flex: 1;
    padding: 14px 6px;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 800;
    color: var(--text-muted);
    cursor: pointer;
}

.task-tabs button.active {
    color: var(--ink);
    box-shadow: inset 0 -3px 0 var(--ink);
}

.pane {
    display: none;
    padding: 18px;
}

.pane.active {
    display: block;
    animation: fadeIn .25s ease-out;
}

.step-list {
    list-style: none;
    margin: 14px 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.step-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--panel);
    border-radius: 14px;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #E3E8DA;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .85rem;
    flex-shrink: 0;
}

.step-ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--ink);
}

.step-text {
    flex: 1;
    font-size: .95rem;
}

.quote-box {
    background: #E3F3F6;
    border-radius: 14px;
    padding: 12px 14px;
    margin: 12px 0;
}

.goal {
    margin-top: 10px;
}

.cta-bar {
    position: sticky;
    bottom: calc(80px + env(safe-area-inset-bottom));
    z-index: 40;
    padding-top: 8px;
}

.btn-cta {
    width: 100%;
    min-height: 54px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.05rem;
    background: var(--turq);
    color: var(--ink);
    box-shadow: 0 8px 20px rgba(7, 59, 61, .22);
}

.btn-cta:hover {
    filter: brightness(.95);
}

.response-form .form-actions .btn {
    flex: 1 1 180px;
    width: auto;
}

.response-form .form-row.three {
    grid-template-columns: 1fr;
}

.media-preview.small {
    max-height: 200px;
    margin: 8px 0 0;
}

/* ---- Questionnaire --------------------------------------------------------------------------------------------- */
.q-block {
    border: 0;
    border-bottom: 1px solid var(--border-color);
    margin: 0 0 20px;
    padding: 0 0 20px;
    min-width: 0;
}

.q-block:last-of-type {
    border-bottom: 0;
}

.q-block legend {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0;
    margin-bottom: 6px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.q-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
}

.q-note {
    color: var(--text-muted);
    font-size: .9rem;
    margin: 0 0 10px;
}

.choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
}

.choice:has(input:checked) {
    border-color: var(--teal);
    background: #E3F3F6;
}

.rate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

.rate-name {
    font-weight: 700;
}

.rate-row select {
    width: 190px;
    max-width: 55%;
}

.month-block {
    background: var(--panel);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
}

.month-line {
    margin-top: 8px;
}

.month-label {
    display: block;
    font-size: .85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

.month {
    position: relative;
}

.month input {
    position: absolute;
    opacity: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.month span {
    display: block;
    text-align: center;
    padding: 7px 0;
    border-radius: 10px;
    background: #fff;
    border: 2px solid var(--border-color);
    font-size: .8rem;
    font-weight: 700;
}

.month input:checked+span {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}

.month input:focus-visible+span {
    outline: 3px solid var(--turq);
    outline-offset: 2px;
}

.check.small {
    font-size: .85rem;
    margin: 4px 0;
}

.check-list {
    display: grid;
    gap: 2px;
    margin-bottom: 12px;
}

.answer-list {
    margin: 8px 0;
}

.answer-list dt {
    font-weight: 800;
    margin-top: 8px;
}

.answer-list dd {
    margin: 2px 0 0;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

/* ---- Profile / admin extras ------------------------------------------------------------------------------------------ */
.profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-card h2 {
    margin-bottom: 2px;
}

.profile-card p {
    margin: 0;
}

.god-admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

.god-admin-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.god-admin-top>div {
    display: flex;
    flex-direction: column;
}

.inline-form.compact {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.inline-form.compact input {
    flex: 1;
}

/* Leaderboard: the brand turquoise marks "me" */
.hero-card.is-me {
    outline: 2px solid var(--turq);
    background: #E9F7FA;
}

.you-tag {
    background: var(--turq);
    color: var(--ink);
}

.hero-score {
    background: rgba(35, 180, 201, .16);
    color: var(--teal);
}

/* ---- Tablets and computers --------------------------------------------------------------------------------------------- */
@media (min-width: 720px) {
    .day-grid {
        grid-template-columns: 1fr 1fr;
    }

    .god-admin-grid {
        grid-template-columns: 1fr 1fr;
    }

    .response-form .form-row.three {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .month-grid {
        grid-template-columns: repeat(12, 1fr);
    }

    .band-title {
        font-size: 2.6rem;
    }

    .hero-brand-big {
        font-size: 4rem;
    }

    .welcome-hero {
        margin: -28px -24px 22px;
        border-radius: 0 0 48px 48px;
    }
}

@media (min-width: 900px) {
    .tabbar {
        display: none;
    }

    .app-main {
        padding-bottom: 0;
    }

    .sidebar {
        display: flex;
        flex-direction: column;
        gap: 22px;
        width: 250px;
        flex-shrink: 0;
        position: sticky;
        top: 0;
        height: 100vh;
        background: var(--ink);
        color: #E3F3F6;
        padding: 24px 16px;
    }

    .side-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #fff;
        text-decoration: none;
        letter-spacing: .3em;
        font-size: .7rem;
    }

    .side-brand span {
        display: flex;
        flex-direction: column;
        line-height: 1.05;
    }

    .side-brand strong {
        font-family: var(--font-head);
        font-size: 1.6rem;
        letter-spacing: .04em;
        color: var(--turq);
    }

    .sidebar nav {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .sidebar nav a,
    .side-admin {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        border-radius: 12px;
        color: #E3F3F6;
        text-decoration: none;
        font-weight: 700;
    }

    .sidebar nav a:hover,
    .side-admin:hover {
        background: rgba(255, 255, 255, .08);
    }

    .sidebar nav a.active {
        background: var(--turq);
        color: var(--ink);
    }

    .side-admin {
        margin-top: auto;
        font-size: .9rem;
        font-weight: 400;
    }

    .hero-band {
        border-radius: 0 0 44px 44px;
        padding-bottom: 44px;
    }

    .hero-btn[aria-label="Menu"] {
        visibility: hidden;
    }

    .app-content {
        padding: 28px 28px 40px;
    }

    .god-scroller {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        overflow: visible;
    }

    .god-card {
        flex: initial;
    }

    .day-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .task-list {
        grid-template-columns: 1fr 1fr;
    }

    .stage-list {
        grid-template-columns: 1fr 1fr;
    }

    .cta-bar {
        bottom: 16px;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-with-image {
        min-height: 360px;
    }

    .hero-image {
        width: 230px;
        right: 28px;
    }

    .hero-with-image .hero-text {
        margin-top: 36px;
    }

    .hero-with-image .hero-eyebrow {
        font-size: 3.4rem;
    }
}

@media (min-width: 1100px) {
    .app-content {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* ---- Admin: users, system check ------------------------------------------------------------------------ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.card-note {
    border: 2px solid var(--turq);
}

.pw {
    background: #FFF6D6;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: .95rem;
    user-select: all;
}

.example {
    background: var(--panel);
    border-radius: 10px;
    padding: 10px 12px;
    overflow-x: auto;
    font-size: .85rem;
    margin: 0 0 12px;
}

.check-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.check-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--panel);
}

.check-item p {
    margin: 2px 0 0;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

.check-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #fff;
}

.check-ok .check-dot {
    background: #4C8A00;
}

.check-warn .check-dot {
    background: #D9731A;
}

.check-fail .check-dot {
    background: var(--danger);
}

.check-fail {
    background: #FBE4E1;
}

.log-view {
    max-height: 360px;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* ---- Brand color choice (days, gods) ----------------------------------------------------------------------------- */
.swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
}

.swatch {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.swatch input {
    position: absolute;
    opacity: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.swatch span {
    display: block;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--border-color);
    transition: transform .12s;
}

.swatch:hover span {
    transform: scale(1.1);
}

.swatch input:checked+span {
    box-shadow: 0 0 0 3px var(--ink);
}

.swatch input:focus-visible+span {
    outline: 3px solid var(--turq);
    outline-offset: 3px;
}

.day-row.is-mirror input[type=datetime-local] {
    background: #EEF2E8;
    color: var(--text-muted);
}

.gm-order {
    display: flex;
    gap: 4px;
}

.gm-order .btn {
    padding: 6px 10px;
    min-width: 0;
}

.nowrap {
    white-space: nowrap;
    font-size: .85rem;
}

/* ---- Seminar editor: task rows (change task / day / order) ---------------------------------------------------------------- */
.gm-order {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
}

.gm-form-wide {
    grid-template-columns: 1fr 1fr;
}

.gm-form-wide select {
    min-width: 0;
}

.day-row.is-mirror .form-group:has(input[type=datetime-local]) label {
    color: var(--text-muted);
}

@media (min-width: 720px) {
    .gm-form-wide {
        flex-wrap: wrap;
    }

    .gm-form-wide .form-group {
        width: auto;
        flex: 1 1 110px;
    }

    .gm-form-wide .form-group:first-of-type {
        flex: 2 1 240px;
    }
}