:root {
    color-scheme: light;

    --paper:       #F6F9F7;
    --paper-raise: #FFFFFF;
    --paper-sink:  #EDF3F0;
    --ink:         #16302A;
    --ink-soft:    #4E6A62;
    --ink-faint:   #839C94;
    --line:        #DCE7E2;
    --line-strong: #BFD2CB;

    /* Brand greens, brighter than before */
    --pine:        #2E9174;
    --pine-deep:   #1F6E57;
    --pine-wash:   #DCF2E9;

    /* Accents, one per area of the app */
    --sky:         #2F80B8;
    --sky-wash:    #DDEEF9;
    --amber:       #C2860F;
    --amber-wash:  #FCF0D6;
    --violet:      #7B5BC4;
    --violet-wash: #EBE5FA;
    --clay:        #CC5F52;
    --clay-wash:   #FDE6E2;

    --r-sm: 5px;
    --r-md: 10px;
    --r-lg: 16px;

    --shadow: 0 1px 2px rgba(22, 48, 42, .05), 0 10px 28px -20px rgba(22, 48, 42, .3);
    --shadow-lift: 0 2px 4px rgba(22, 48, 42, .06), 0 14px 32px -18px rgba(22, 48, 42, .35);

    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --serif: "Newsreader", Georgia, "Times New Roman", serif;

    --wrap: 74ch;
}

/* Dark: follows the system unless the user has chosen light. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;

        --paper:       #10201B;
        --paper-raise: #182C26;
        --paper-sink:  #0B1815;
        --ink:         #E8F2EE;
        --ink-soft:    #A6BDB5;
        --ink-faint:   #6F8A81;
        --line:        #264038;
        --line-strong: #375549;

        --pine:        #4FC49D;
        --pine-deep:   #79DCB8;
        --pine-wash:   #1B3B31;

        --sky:         #64B4E4;
        --sky-wash:    #17323F;
        --amber:       #E3B353;
        --amber-wash:  #33290F;
        --violet:      #A991EE;
        --violet-wash: #272040;
        --clay:        #EE8F81;
        --clay-wash:   #3A211D;

        --shadow: 0 1px 2px rgba(0, 0, 0, .5);
        --shadow-lift: 0 2px 6px rgba(0, 0, 0, .55);
    }
}

/* Dark: chosen explicitly. */
:root[data-theme="dark"] {
    color-scheme: dark;

    --paper:       #10201B;
    --paper-raise: #182C26;
    --paper-sink:  #0B1815;
    --ink:         #E8F2EE;
    --ink-soft:    #A6BDB5;
    --ink-faint:   #6F8A81;
    --line:        #264038;
    --line-strong: #375549;

    --pine:        #4FC49D;
    --pine-deep:   #79DCB8;
    --pine-wash:   #1B3B31;

    --sky:         #64B4E4;
    --sky-wash:    #17323F;
    --amber:       #E3B353;
    --amber-wash:  #33290F;
    --violet:      #A991EE;
    --violet-wash: #272040;
    --clay:        #EE8F81;
    --clay-wash:   #3A211D;

    --shadow: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-lift: 0 2px 6px rgba(0, 0, 0, .55);
}

/* ------------------------------------------------------------------ */
/* Icons                                                               */
/* ------------------------------------------------------------------ */

.ico {
    width: 1.15em;
    height: 1.15em;
    flex: none;
    vertical-align: -.18em;
}

.ico-lg { width: 1.5em; height: 1.5em; }
.ico-xl { width: 2rem; height: 2rem; }

.ico-badge {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: var(--r-md);
    display: inline-grid;
    place-items: center;
    flex: none;
    background: var(--pine-wash);
    color: var(--pine-deep);
}

.ico-badge.sky    { background: var(--sky-wash);    color: var(--sky); }
.ico-badge.amber  { background: var(--amber-wash);  color: var(--amber); }
.ico-badge.violet { background: var(--violet-wash); color: var(--violet); }
.ico-badge.clay   { background: var(--clay-wash);   color: var(--clay); }

.ico-badge .ico { width: 1.15rem; height: 1.15rem; vertical-align: 0; }

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 5rem;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 .5rem;
}

h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; margin-top: 2.25rem; }
h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; margin-top: 1.5rem; }

p { margin: 0 0 1rem; max-width: var(--wrap); }

a { color: var(--pine-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

:focus-visible {
    outline: 2px solid var(--pine);
    outline-offset: 2px;
    border-radius: var(--r-sm);
}

/* ------------------------------------------------------------------ */
/* Shell                                                               */
/* ------------------------------------------------------------------ */

.shell {
    max-width: 62rem;
    margin: 0 auto;
    padding: 0 1.25rem 5rem;
}

.masthead {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0 1rem;
    flex-wrap: wrap;
}

.wordmark {
    font-family: var(--serif);
    font-size: 1.25rem;
    letter-spacing: .02em;
    text-decoration: none;
    color: var(--ink);
}

.wordmark span {
    color: var(--ink-faint);
    font-family: var(--sans);
    font-size: .75rem;
    letter-spacing: .04em;
    margin-left: .5rem;
}

.nav {
    display: flex;
    gap: .25rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0;
    margin-bottom: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }

.nav a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem .8rem;
    text-decoration: none;
    color: var(--ink-soft);
    font-size: .9rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    margin-bottom: -1px;
}

.nav a:hover { color: var(--ink); }

.nav a[aria-current="page"] {
    color: var(--ink);
    border-bottom-color: var(--pine);
}

/* ------------------------------------------------------------------ */
/* The 90-day grid — the centrepiece                                   */
/* ------------------------------------------------------------------ */

.course {
    background: var(--paper-raise);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.course-head {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.course-day {
    font-family: var(--serif);
    font-size: 3.25rem;
    line-height: .9;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.course-day small {
    font-size: 1rem;
    color: var(--ink-faint);
    font-family: var(--sans);
    font-weight: 400;
    margin-left: .35rem;
}

.course-sub {
    color: var(--ink-soft);
    font-size: .9rem;
    margin-left: auto;
    text-align: right;
}

.grid90 {
    display: grid;
    grid-template-columns: repeat(30, 1fr);
    gap: 3px;
}

.grid90 i {
    display: block;
    aspect-ratio: 1;
    border-radius: 2px;
    background: var(--line);
    position: relative;
}

.grid90 i.full    { background: var(--pine); }
.grid90 i.half    { background: linear-gradient(135deg, var(--pine) 50%, var(--line) 50%); }
.grid90 i.missed  { background: var(--clay-wash); box-shadow: inset 0 0 0 1px var(--clay); }
.grid90 i.future  { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.grid90 i.today   { box-shadow: 0 0 0 2px var(--ink); z-index: 1; }

@media (max-width: 720px) {
    .grid90 { grid-template-columns: repeat(15, 1fr); gap: 4px; }
    .course-day { font-size: 2.5rem; }
    .course-sub { margin-left: 0; text-align: left; width: 100%; }
}

.legend {
    display: flex;
    gap: 1.1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    font-size: .8rem;
    color: var(--ink-soft);
}

.legend span { display: inline-flex; align-items: center; gap: .4rem; }

.legend i {
    width: 10px; height: 10px; border-radius: 2px; display: block;
}

/* ------------------------------------------------------------------ */
/* Stats                                                               */
/* ------------------------------------------------------------------ */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    margin-bottom: 2rem;
}

.stat {
    background: var(--paper-raise);
    padding: 1rem 1.1rem;
    position: relative;
}

.stat::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--pine);
}

.stat.sky::before    { background: var(--sky); }
.stat.amber::before  { background: var(--amber); }
.stat.violet::before { background: var(--violet); }
.stat.warn::before   { background: var(--clay); }

.stat .head {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: var(--ink-faint);
    margin-bottom: .1rem;
}

.stat .head .ico { width: .95rem; height: .95rem; }

.stat b {
    display: block;
    font-family: var(--serif);
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.stat span {
    font-size: .82rem;
    color: var(--ink-soft);
}

.stat.warn b { color: var(--clay); }

/* ------------------------------------------------------------------ */
/* Cards & forms                                                       */
/* ------------------------------------------------------------------ */

.card {
    background: var(--paper-raise);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.35rem;
    margin-bottom: 1.25rem;
}

.card > h2, .card > h3 { margin-top: 0; }

.card-note {
    color: var(--ink-soft);
    font-size: .88rem;
    margin: -.25rem 0 1rem;
}

fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 1.75rem;
}

legend {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 600;
    font-size: 1rem;
    padding: 0;
    margin-bottom: .95rem;
}

label .ico { color: var(--ink-faint); margin-right: .3rem; }

label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: .35rem; }

input[type="text"], input[type="password"], input[type="number"],
input[type="date"], select, textarea {
    width: 100%;
    font: inherit;
    font-size: .95rem;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    padding: .6rem .7rem;
}

textarea { resize: vertical; min-height: 5rem; line-height: 1.5; }

input:focus, select:focus, textarea:focus {
    border-color: var(--pine);
    outline: none;
    box-shadow: 0 0 0 3px var(--pine-wash);
}

.field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Dose toggles — the two most important controls on the page */

.doses { display: grid; gap: .6rem; }

.dose {
    display: flex;
    align-items: center;
    gap: .85rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    padding: .85rem 1rem;
    cursor: pointer;
    background: var(--paper);
    transition: background .12s ease, border-color .12s ease;
    margin: 0;
    font-weight: 500;
}

.dose:hover { border-color: var(--pine); }

.dose input { width: 1.15rem; height: 1.15rem; accent-color: var(--pine); margin: 0; flex: none; }

.dose:has(input:checked) {
    background: var(--pine-wash);
    border-color: var(--pine);
}

.dose small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .82rem; }

/* Checkbox row */

.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .55rem; }

.check {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 400;
    font-size: .92rem;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: .6rem .7rem;
    cursor: pointer;
    background: var(--paper);
    margin: 0;
}

.check input { accent-color: var(--pine); width: 1rem; height: 1rem; margin: 0; flex: none; }
.check:has(input:checked) { border-color: var(--pine); background: var(--pine-wash); }
.check.flag:has(input:checked) { border-color: var(--clay); background: var(--clay-wash); }

/* Segmented scales */

.scale { display: flex; gap: .35rem; flex-wrap: wrap; }
.scale.tight { flex-wrap: nowrap; }
.scale.tight label { min-width: 0; padding: .5rem .2rem; }

.scale label {
    margin: 0;
    flex: 1 1 auto;
    min-width: 2.6rem;
    text-align: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    padding: .5rem .4rem;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 500;
    background: var(--paper);
}

.scale input { position: absolute; opacity: 0; width: 0; height: 0; }
.scale label:has(input:checked) { background: var(--pine); border-color: var(--pine); color: #fff; }
.scale.flag label:has(input:checked) { background: var(--clay); border-color: var(--clay); color: #fff; }
.scale label.ok:has(input:checked) { background: var(--pine); border-color: var(--pine); color: #fff; }
.scale label:has(input:focus-visible) { outline: 2px solid var(--pine); outline-offset: 2px; }

.scale-ends {
    display: flex;
    justify-content: space-between;
    font-size: .78rem;
    color: var(--ink-faint);
    margin-top: .4rem;
}

/* Steppers */

.stepper { display: flex; align-items: stretch; gap: .4rem; }

.stepper button {
    flex: none;
    width: 2.6rem;
    font-size: 1.15rem;
    line-height: 1;
    border: 1px solid var(--line-strong);
    background: var(--paper);
    color: var(--ink);
    border-radius: var(--r-md);
    cursor: pointer;
}

.stepper button:hover { border-color: var(--pine); color: var(--pine-deep); }
.stepper input { text-align: center; font-variant-numeric: tabular-nums; }

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    padding: .7rem 1.2rem;
    border-radius: var(--r-md);
    border: 1px solid var(--pine);
    background: var(--pine);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover { background: var(--pine-deep); border-color: var(--pine-deep); color: #fff; }

.btn-quiet {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--line-strong);
}
.btn-quiet:hover { background: var(--paper); border-color: var(--ink-soft); color: var(--ink); }

.btn-small { padding: .45rem .8rem; font-size: .85rem; font-weight: 500; }

.actions {
    display: flex;
    gap: .75rem;
    align-items: center;
    flex-wrap: wrap;
    padding-top: .5rem;
}

/* Sticky save bar on the log form */

.savebar {
    position: sticky;
    bottom: 0;
    background: var(--paper-raise);
    border-top: 1px solid var(--line);
    margin: 0 -1.35rem -1.35rem;
    padding: .9rem 1.35rem calc(.9rem + env(safe-area-inset-bottom, 0px));
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    display: flex;
    gap: .75rem;
    align-items: center;
    flex-wrap: wrap;
}

.savebar .hint { color: var(--ink-faint); font-size: .82rem; }

/* ------------------------------------------------------------------ */
/* Day navigation                                                      */
/* ------------------------------------------------------------------ */

.daynav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1.25rem;
}

.daynav .label { font-weight: 600; }
.daynav .label small { display: block; font-weight: 400; color: var(--ink-faint); font-size: .8rem; }

/* ------------------------------------------------------------------ */
/* Charts                                                              */
/* ------------------------------------------------------------------ */

.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.chart .gridline { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.chart .line { fill: none; stroke: var(--pine); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.clay { stroke: var(--clay); }
.chart .area { fill: var(--pine-wash); }
.chart .bar { fill: var(--pine); }
.chart .bar.low { fill: var(--clay); }
.chart text { fill: var(--ink-faint); font-size: 10px; font-family: var(--sans); }

.chart-wrap { overflow-x: auto; }

/* ------------------------------------------------------------------ */
/* Tables                                                              */
/* ------------------------------------------------------------------ */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }

table { width: 100%; border-collapse: collapse; font-size: .88rem; }

th, td {
    text-align: left;
    padding: .6rem .75rem;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

th { font-weight: 600; background: var(--paper); font-size: .8rem; color: var(--ink-soft); }
tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; }

.pill {
    display: inline-block;
    padding: .1rem .45rem;
    border-radius: 99px;
    font-size: .75rem;
    font-weight: 600;
    background: var(--pine-wash);
    color: var(--pine-deep);
}
.pill.clay  { background: var(--clay-wash); color: var(--clay); }
.pill.amber { background: var(--amber-wash); color: var(--amber); }
.pill.mute  { background: var(--line); color: var(--ink-soft); }

/* ------------------------------------------------------------------ */
/* Notices                                                             */
/* ------------------------------------------------------------------ */

.notice {
    border-left: 3px solid var(--pine);
    background: var(--pine-wash);
    padding: .85rem 1rem;
    border-radius: 0 var(--r-md) var(--r-md) 0;
    margin-bottom: 1.5rem;
    font-size: .92rem;
}

.notice.warn  { border-color: var(--amber); background: var(--amber-wash); }
.notice.alert { border-color: var(--clay); background: var(--clay-wash); }
.notice p:last-child { margin-bottom: 0; }

.flash {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--paper);
    padding: .65rem 1.1rem;
    border-radius: 99px;
    font-size: .88rem;
    box-shadow: var(--shadow);
    z-index: 50;
    animation: rise .25s ease-out;
}

@keyframes rise {
    from { opacity: 0; transform: translate(-50%, .5rem); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ------------------------------------------------------------------ */
/* Login                                                               */
/* ------------------------------------------------------------------ */

.gate {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.gate-card {
    width: 100%;
    max-width: 22rem;
    background: var(--paper-raise);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow);
}

.gate-card h1 { font-size: 1.5rem; margin-bottom: .25rem; }
.gate-card p { color: var(--ink-soft); font-size: .9rem; }
.gate-card .btn { width: 100%; margin-top: 1rem; }

/* ------------------------------------------------------------------ */
/* Chat                                                                */
/* ------------------------------------------------------------------ */

.chat-log {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
    min-height: 8rem;
}

.msg { max-width: 90%; }
.msg .who { font-size: .75rem; color: var(--ink-faint); margin-bottom: .25rem; font-weight: 600; }

.msg .body {
    background: var(--paper-raise);
    border: 1px solid var(--line);
    padding: .8rem 1rem;
    border-radius: var(--r-md);
    font-size: .94rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.msg .body p { margin: 0 0 .7rem; max-width: none; }
.msg .body p:last-child { margin-bottom: 0; }
.msg .body ul { margin: 0 0 .7rem; padding-left: 1.2rem; }
.msg .body li { margin-bottom: .3rem; }
.msg .body strong { font-weight: 650; }

.msg.me { align-self: flex-end; }
.msg.me .who { text-align: right; }
.msg.me .body { background: var(--pine-wash); border-color: var(--pine-wash); }

.chat-form { display: flex; gap: .6rem; align-items: flex-end; }
.chat-form textarea { min-height: 3rem; max-height: 12rem; }

.typing { color: var(--ink-faint); font-size: .9rem; font-style: italic; }

.suggestions { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }

.suggestions button {
    font: inherit;
    font-size: .82rem;
    padding: .4rem .7rem;
    border-radius: 99px;
    border: 1px solid var(--line-strong);
    background: var(--paper);
    color: var(--ink-soft);
    cursor: pointer;
}
.suggestions button:hover { border-color: var(--pine); color: var(--pine-deep); }

/* ------------------------------------------------------------------ */
/* Plan / prose pages                                                  */
/* ------------------------------------------------------------------ */

.prose { max-width: var(--wrap); }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: .45rem; }
.prose h2 { border-bottom: 1px solid var(--line); padding-bottom: .4rem; }

.timeline { border-left: 2px solid var(--line); padding-left: 1.25rem; margin: 0 0 1.5rem; }
.timeline > div { margin-bottom: 1.35rem; position: relative; }
.timeline > div::before {
    content: "";
    position: absolute;
    left: calc(-1.25rem - 5px);
    top: .45rem;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--pine);
}
.timeline b { display: block; font-family: var(--sans); font-size: .95rem; }
.timeline p { color: var(--ink-soft); font-size: .92rem; margin: .15rem 0 0; }

/* ------------------------------------------------------------------ */
/* Print (the review report)                                           */
/* ------------------------------------------------------------------ */

@media print {
    .nav, .masthead, .no-print, .savebar { display: none !important; }
    body { background: #fff; color: #000; font-size: 11pt; }
    .card, .course, .stats { border-color: #999; break-inside: avoid; box-shadow: none; }
    .shell { max-width: none; padding: 0; }
    a { text-decoration: none; color: #000; }
}

/* ------------------------------------------------------------------ */
/* Section headings with an icon                                       */
/* ------------------------------------------------------------------ */

.sec-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 2.25rem 0 .35rem;
}

.sec-head h2 { margin: 0; }
.sec-head + .card-note { margin-top: 0; }

/* ------------------------------------------------------------------ */
/* Theme switcher                                                      */
/* ------------------------------------------------------------------ */

.themer {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    background: var(--paper-sink);
    border: 1px solid var(--line);
    border-radius: 99px;
}

.themer button {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink-faint);
    cursor: pointer;
    padding: 0;
}

.themer button:hover { color: var(--ink); }

.themer button[aria-pressed="true"] {
    background: var(--paper-raise);
    color: var(--pine-deep);
    box-shadow: var(--shadow);
}

.themer .ico { width: 1.05rem; height: 1.05rem; }

.masthead-right {
    display: flex;
    align-items: center;
    gap: .6rem;
}

/* ------------------------------------------------------------------ */
/* Liveliness: the course card gets a soft tint                        */
/* ------------------------------------------------------------------ */

.course {
    background:
        linear-gradient(160deg, var(--pine-wash) 0%, transparent 55%),
        var(--paper-raise);
    box-shadow: var(--shadow);
}

.course-day { color: var(--pine-deep); }

.card { box-shadow: var(--shadow); }

.dose:has(input:checked) { box-shadow: inset 0 0 0 1px var(--pine); }

.btn { box-shadow: var(--shadow); }
.btn-quiet { box-shadow: none; }

/* Grid squares: a touch rounder and brighter. */
.grid90 i { border-radius: 3px; }
.grid90 i.full { background: var(--pine); }

/* Chart accents */
.chart .line { stroke: var(--sky); }
.chart .line.clay { stroke: var(--clay); }
.chart .bar { fill: var(--sky); }
