/* Start in tituto.com's look: paper #F5F5F5, ink #050505, gold #B6A574 for hairlines and marks. One system on every screen:
   - Playfair Display names the screen or the record, once; every heading under it is the text's own face, in ink;
   - one button in ink per screen, the others a grey field without an outline, all of one shape; a filter is a tab;
   - a list is even rows under hairlines: the name in ink, what is said of it quieter at the row's end.
   As much work as fits one screen: a phone's column at its end, a desk's three planes — the places, the list, the opened
   record — before it. No grey system control: choices are chips. */

/* #region Base */

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('/fonts/PlusJakartaSans-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('/fonts/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('/fonts/PlayfairDisplay-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --white: #F5F5F5;
    --black: #050505;
    --black-rgb: 5, 5, 5;
    --gold: #B6A574;
    --late: #9A3B2E;
    --muted: rgba(var(--black-rgb), 0.72);
    --rule: rgba(var(--black-rgb), 0.12);
    --field: rgba(var(--black-rgb), 0.07);
    --font-sans: 'Plus Jakarta Sans', Arial, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --edge: 1rem;
    --width: 46rem;
    /* A control's height: a thumb's on a phone, closer on a desk. */
    --control: 2.75rem;
    --round: 1.1rem;
    --corner: 0.5rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--white);
    color: var(--black);
    font-family: var(--font-sans);
    font-weight: 450;
    font-size: 1rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    padding-bottom: env(safe-area-inset-bottom);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

main {
    max-width: var(--width);
    margin: 0 auto;
    padding: 1.25rem var(--edge) 3rem;
}

/* The display face's own figures are old-style and drop below the line, which a year or an amount must not. */
h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    font-variant-numeric: lining-nums;
    line-height: 1.2;
}

h2 {
    margin: 2rem 0 0.6rem;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
}

h3 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.muted {
    color: var(--muted);
}

/* A control the script reveals stays hidden until it does, whatever its own display. */
[hidden] {
    display: none !important;
}

/* A quiet line for the CEO under the morning list's notices. */
.hint {
    font-size: 0.9rem;
    margin: 0.75rem 0;
}

em {
    font-style: normal;
    color: var(--muted);
}

/* No bold beyond the headings' own weight. */
strong,
b {
    font-weight: 600;
}

/* A keyboard always sees where it stands: one ink ring for every link, button and chip (fields draw their own, in gold). */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 2px;
}

/* A plain list in a screen's text keeps its bullets inside the column (the reset above takes every padding away). */
:is(main, .pane) :is(ul, ol):not([class]),
.list {
    margin: 0.75rem 0;
    padding-left: 1.25rem;
}

:is(main, .pane) :is(ul, ol):not([class]) li + li,
.list li + li {
    margin-top: 0.25rem;
}

/* An address or a key printed whole breaks where it must rather than widen the page. */
code {
    overflow-wrap: anywhere;
}

/* #endregion */

/* #region Bar */

/* On a phone the bar is the mark and the sign-out alone, and it scrolls away: the places live on the bottom bar under the
   thumb (.tabs). From a tablet up it stays on top and carries every place in one line. */
.bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: env(safe-area-inset-top) var(--edge) 0;
    min-height: 3.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
}

.bar-mark {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.bar-mark img {
    height: 1rem;
    width: auto;
}

.bar-mark span {
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.bar-nav {
    display: none;
}

.bar-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 3.5rem;
    text-decoration: none;
    white-space: nowrap;
    color: var(--muted);
    box-shadow: inset 0 -2px 0 transparent;
}

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

/* The screen's own place: in ink, underlined by the bar's own rule. */
.bar-nav a[aria-current="page"] {
    color: var(--black);
    box-shadow: inset 0 -2px 0 var(--black);
}

.bar-out {
    margin-left: auto;
}

.bar-out button {
    min-height: var(--control);
    padding: 0 0.25rem;
    background: none;
    border: 0;
    color: var(--muted);
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

/* The one search, between the mark and the sign-out on a phone and after the places on a desktop. */
.bar-search {
    flex: 1 1 6rem;
    min-width: 0;
    max-width: 20rem;
    margin-left: auto;
}

.bar-search input {
    width: 100%;
    min-height: 2.5rem;
    padding: 0 0.65rem;
    background: transparent;
    border: 1px solid var(--rule);
    border-radius: 0.5rem;
    color: var(--black);
    font: inherit;
    /* Below 16 px a phone's browser zooms the page when the field is tapped. */
    font-size: 1rem;
}

.bar-search input:focus {
    outline: none;
    border-color: var(--gold);
}

.bar-search + .bar-out {
    margin-left: 0;
}

/* How many approvals wait: a small ink figure beside the place, the one number the bar carries. */
.count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    background: var(--black);
    color: var(--white);
    font-size: 0.72rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

/* The phone's bottom bar: four places and „Więcej”, each a whole fifth of the width and 3.5 rem tall, above the home
   indicator. „Więcej” is a disclosure whose sheet opens upward over the page. */
.tabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--white);
    border-top: 1px solid var(--rule);
}

.tab,
.tab-more {
    flex: 1 1 0;
    min-width: 0;
}

.tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 3.5rem;
    padding: 0 0.15rem;
    color: var(--muted);
    font-size: 0.82rem;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    list-style: none;
}

.tab::-webkit-details-marker {
    display: none;
}

/* A fifth of a phone is narrower than „Akceptacje” and its figure side by side: on the bottom bar the figure sits in the
   place's top corner. */
.tab {
    position: relative;
}

.tab .count {
    position: absolute;
    top: 0.3rem;
    right: 0.2rem;
    min-width: 1.1rem;
    height: 1.1rem;
    font-size: 0.68rem;
}

.tab[aria-current="page"],
.tab.is-active,
.tab-more[open] > .tab {
    color: var(--black);
    box-shadow: inset 0 2px 0 var(--black);
}

.tab-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(3.5rem + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0.5rem var(--edge);
    background: var(--white);
    border-top: 1px solid var(--rule);
    box-shadow: 0 -0.75rem 1.5rem rgba(var(--black-rgb), 0.08);
}

.tab-sheet a {
    display: flex;
    align-items: center;
    min-height: 3rem;
    text-decoration: none;
}

.tab-sheet a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 0.3em;
}

/* The page ends above the bottom bar, never under it. */
body.has-tabs main {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom));
}

/* #endregion */

/* #region Messages */

#message-success,
#message-failure,
.notice {
    max-width: var(--width);
    margin: 0.75rem auto;
    padding: 0.75rem var(--edge);
    border-left: 2px solid var(--gold);
    background: rgba(var(--black-rgb), 0.04);
}

/* A notice inside a screen's column sits on the column's edge, its words on the rows' own inset. */
:is(main, .pane) .notice {
    padding: 0.75rem 1rem;
}

#message-failure {
    border-left-color: var(--late);
    background: rgba(154, 59, 46, 0.08);
}

main #message-failure {
    margin: 0.75rem 0;
}

/* #endregion */

/* #region Lists */

.head {
    margin-bottom: 1rem;
}

.crumb {
    font-size: 0.9rem;
    color: var(--muted);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

/* Every filter is in sight: tabs that wrap to a second line on a phone rather than hide past its edge. What is chosen is
   ink over a gold line; a second row of tabs narrows the first and is quieter. */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.25rem;
    margin: 0.5rem 0;
}

.filters .chip {
    min-height: 2.4rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--muted);
}

.filters .chip:hover {
    color: var(--black);
}

.filters .chip.is-on {
    background: none;
    color: var(--black);
    font-weight: 600;
    box-shadow: inset 0 -2px 0 var(--gold);
}

.filters.is-second .chip {
    min-height: 2rem;
    font-size: 0.9rem;
}

.filters.is-second .chip.is-on {
    box-shadow: none;
}

/* A part of a list: its name, how many stand under it, and the list's own line. */
.rows-head {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 1.25rem 0 0.35rem;
}

.rows-head span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

.rows-head.is-late {
    color: var(--late);
}

.rows {
    list-style: none;
    border-top: 1px solid var(--rule);
}

.pulse-revenue + .rows {
    margin-top: 1rem;
}

/* A list with nothing on it leaves no line behind. */
.rows:not(:has(> li)) {
    display: none;
}

.row {
    border-bottom: 1px solid var(--rule);
}

.row > a,
.row-block,
.row-line > a {
    display: block;
    padding: 0.85rem 0;
    text-decoration: none;
}

.row-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.row-line > a,
.row-line > .row-block {
    flex: 1;
}

/* A task without subtasks is ticked at its row's end, the box's own line standing on the column's edge. */
.row.is-tickable {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.row.is-tickable > a {
    flex: 1;
    min-width: 0;
}

.row.is-tickable .tick {
    margin-right: -0.5rem;
}

/* What follows draws its own rule: a list or a table above it ends without one, never two lines in a row. */
.rows:has(+ .actions.is-sticky) > .row:last-child,
.table-box:has(+ .actions.is-sticky) tr:last-child > td,
section:has(+ .fold) > .rows:last-child > .row:last-child {
    border-bottom: 0;
}

.row.is-closed .row-title {
    color: var(--muted);
    text-decoration: line-through;
}

.row-title {
    display: block;
    font-size: 1rem;
    font-weight: 500;
}

.row-title :is(.row-parent, .row-note) {
    font-weight: 400;
}

.row-parent {
    color: var(--muted);
}

/* What is said about a row beside its name: the panel's record, whom it waits for, how many subtasks are done. */
.row-note {
    margin-right: 0.25rem;
    color: var(--muted);
    font-size: 0.85em;
}

/* A task's label, and its notes and files counted beside their marks. */
.row-label,
.row-count {
    display: inline-flex;
    align-items: center;
    margin-right: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.5;
    vertical-align: middle;
}

.row-label {
    display: inline-block;
    max-width: 12rem;
    padding: 0 0.45rem;
    overflow: hidden;
    border-radius: 0.3rem;
    background: rgba(182, 165, 116, 0.28);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.row-counts {
    white-space: nowrap;
}

.row-count {
    gap: 0.2rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.row-count::before {
    content: '';
    width: 1rem;
    height: 1rem;
    background: currentColor;
    mask: var(--mark) center / contain no-repeat;
}

.row-count.is-notes {
    --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M3 4h14v10H9l-4 3v-3H3z M6.5 7.5h7 M6.5 10.5h4.5'/%3E%3C/svg%3E");
}

.row-count.is-files {
    --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M21 11.5l-8.8 8.8a5.5 5.5 0 0 1-7.8-7.8l8.8-8.8a3.7 3.7 0 0 1 5.2 5.2l-8.8 8.8a1.8 1.8 0 0 1-2.6-2.6l8.1-8.1'/%3E%3C/svg%3E");
}

.row-due:empty {
    display: none;
}

/* A late term is red where the heading does not say it already. */
.row.is-late .row-due {
    color: var(--late);
}

.rows-head.is-late + .rows .row-due {
    color: inherit;
}

.row-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.75rem;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.tag {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--black);
}

.tag::first-letter {
    text-transform: uppercase;
}

/* Gold is a mark, never small type: gold letters on paper read at about 2:1, so the tag is ink and the gold its square. */
.tag-gold {
    color: var(--black);
}

.tag-gold::before {
    content: '';
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    margin: 0 0.35rem 0.1rem 0;
    background: var(--gold);
    vertical-align: middle;
}

.tag-late,
.row.is-late .tag-late {
    color: var(--late);
}

/* A long list's quieter part folded under one line that says what and how many: a plus while shut, a minus open. */
.fold {
    margin: 2rem 0 0;
}

.fold + .fold {
    margin-top: 0.5rem;
}

.fold > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--control);
    padding: 0.5rem 0;
    border-top: 1px solid var(--rule);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.fold > summary::-webkit-details-marker {
    display: none;
}

.fold > summary::after {
    content: '+';
    font-family: var(--font-sans);
    color: var(--muted);
}

.fold[open] > summary::after {
    content: '−';
}

/* A task's subtasks folded inside its row: a quiet line under the task, and each subtask with its tick at the thumb. */
.row-fold {
    margin: 0 0 0.35rem;
}

.row-fold > summary {
    justify-content: flex-start;
    gap: 0.6rem;
    padding: 0;
    border-top: 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 400;
}

.ticks {
    list-style: none;
}

.ticks .row-line {
    gap: 0.35rem;
    margin-left: -0.5rem;
    border-top: 1px solid var(--rule);
}

.ticks .row-line > a {
    padding: 0.6rem 0;
}

.ticks .row-title {
    font-size: 0.95rem;
}

/* A list comes back with the task whose subtask was just ticked in view, below the bar that stays on top. */
.row[id] {
    scroll-margin-top: 4.5rem;
}

.facts {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 0.4rem 1rem;
    margin: 1rem 0;
}

.facts dt {
    color: var(--muted);
}

/* What each button will do: its name on one line, whole. */
.facts.is-choices {
    grid-template-columns: max-content 1fr;
}

.notes {
    margin: 1rem 0;
}

/* A note keeps the line breaks it was written with; a block of lines (an approval's draft, a request) keeps each line's
   own and nothing of the markup between them. */
p.notes,
.notes > p {
    white-space: pre-wrap;
}

.notes > p + p {
    margin-top: 0.5rem;
}

/* #endregion */

/* #region Buttons */

/* Every control is at least 2.75 rem (44 px) tall, a thumb's reach. One primary button per screen in ink, the rest quiet;
   a chip is a choice or a filter, never an action — the chip that is on is ink, like a ticked choice. */
.button,
.button-quiet,
.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--control);
    padding: 0 1.1rem;
    border-radius: var(--corner);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.button {
    background: var(--black);
    color: var(--white);
    border: 1px solid var(--black);
}

.button:hover {
    background: rgba(var(--black-rgb), 0.82);
}

.button-quiet,
.chip {
    border: 1px solid transparent;
    background: var(--field);
    color: var(--black);
}

.button-quiet:hover,
.chip:hover {
    background: rgba(var(--black-rgb), 0.13);
}

.chip {
    padding: 0 0.9rem;
    white-space: nowrap;
}

.chip.is-on {
    border-color: var(--black);
    background: var(--black);
    color: var(--white);
}

/* A subtask's tick: the box drawn 1.75 rem, the button around it a full 2.75 rem target. */
.tick {
    position: relative;
    flex: none;
    width: var(--control);
    height: var(--control);
    border: 0;
    background: none;
    cursor: pointer;
}

.tick::before {
    content: '';
    position: absolute;
    inset: 0.5rem;
    border: 1px solid rgba(var(--black-rgb), 0.45);
    border-radius: 50%;
}

.tick.is-done {
    display: inline-block;
}

.tick.is-done::before {
    border-color: var(--gold);
    background: var(--gold);
}

/* #endregion */

/* #region Forms */

.form label,
.form legend {
    display: block;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.form label :is(em, input, textarea),
.form legend em,
.form .chip-choice,
.form .check,
.form .choice-row {
    font-weight: 400;
}

/* A legend ignores its margin inside its fieldset; floated it takes the label's place and spacing like any field's. */
.form legend {
    float: left;
    width: 100%;
    padding: 0 0 0.35rem;
}

.form legend + * {
    clear: both;
}

.form fieldset {
    border: 0;
    min-width: 0;
}

/* Every typed field in one look, whatever its type — a url, a phone or a moment no less than text — on the paper itself,
   its edge darker than a rule so it reads as a place to write. */
.form input:not([type="hidden"], [type="radio"], [type="checkbox"], [type="submit"], [type="button"], [type="file"]),
.form textarea,
.inline-form input:not([type="hidden"], [type="radio"], [type="checkbox"], [type="submit"], [type="button"], [type="file"]) {
    display: block;
    width: 100%;
    min-height: var(--control);
    margin-top: 0.35rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(var(--black-rgb), 0.3);
    border-radius: 0.5rem;
    background: var(--white);
    color: var(--black);
    font: inherit;
}

.form input:focus,
.form textarea:focus,
.inline-form input:focus {
    outline: 1px solid var(--gold);
    border-color: var(--gold);
}

/* A field with its button on one line. */
.inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.inline-form input:not([type="hidden"], [type="radio"], [type="checkbox"], [type="submit"], [type="button"], [type="file"]) {
    width: auto;
    max-width: 11rem;
    margin-top: 0;
}

.inline-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
}

/* A short number beside its label, so a long list of them stays short. */
.inline-form.is-number label {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.inline-form.is-number input:not([type="hidden"], [type="radio"], [type="checkbox"], [type="submit"], [type="button"], [type="file"]) {
    width: 5rem;
}

/* A date, an hour and a month in the same field as any other, with the device's own picker behind it: the browser's own box
   is taken off, its value kept on the left as typed text is, and the whole field opens the picker. */
input[type="date"],
input[type="time"],
input[type="month"],
input[type="datetime-local"] {
    appearance: none;
    position: relative;
    min-width: 0;
    text-align: left;
}

input::-webkit-date-and-time-value {
    margin: 0;
    text-align: left;
}

input::-webkit-datetime-edit {
    padding: 0;
}

input::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
}

input::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0 0 0 auto;
    width: 1.1rem;
    height: auto;
    margin: 0;
    padding: 0 0.75rem;
    background-position: center;
    opacity: 0.62;
    cursor: pointer;
}

/* A file is chosen with the house's quiet button, never the system's grey one. */
.form input[type="file"],
.inline-form input[type="file"] {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    font: inherit;
    font-size: 0.9rem;
    color: var(--muted);
}

input[type="file"]::file-selector-button {
    min-height: var(--control);
    margin-right: 0.75rem;
    padding: 0 1.1rem;
    border: 0;
    border-radius: var(--corner);
    background: var(--field);
    color: var(--black);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}

/* A long form keeps its buttons in reach: they ride the bottom of the screen until the form's end comes up. */
.actions.is-sticky {
    position: sticky;
    bottom: 0;
    z-index: 1;
    margin: 1.5rem 0 0;
    padding: 0.75rem 0;
    background: var(--white);
    border-top: 1px solid var(--rule);
}

body.has-tabs .actions.is-sticky {
    bottom: calc(3.5rem + env(safe-area-inset-bottom));
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.chip-choice {
    position: relative;
}

.chip-choice input,
.check input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* A choice chip is a label: inside a form it must not take a field label's block and top margin, which put a gap under
   every wrapped row of chips. */
.form .chip-choice,
.chip-choice {
    display: inline-flex;
    margin-top: 0;
}

.chip-choice span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: var(--control);
    padding: 0.2rem 0.9rem;
    border: 1px solid transparent;
    border-radius: var(--corner);
    background: var(--field);
    cursor: pointer;
}

.chip-choice input:disabled + span {
    border-style: dashed;
    color: var(--muted);
    cursor: not-allowed;
}

.chip-choice input:checked + span {
    border-color: var(--black);
    background: var(--black);
    color: var(--white);
}

.chip-choice input:checked + span em {
    color: rgba(245, 245, 245, 0.7);
}

.chip-choice input:focus-visible + span,
.check input:focus-visible + span {
    outline: 1px solid var(--gold);
}

/* A choice that needs a sentence to be understood: a whole row with its mark, its name and what it means under it. */
.choice-rows {
    margin-top: 0.5rem;
    border-top: 1px solid var(--rule);
}

.form .choice-row {
    position: relative;
    display: flex;
    gap: 0.75rem;
    min-height: var(--control);
    margin: 0;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: 1rem;
    cursor: pointer;
}

.choice-row input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.choice-row-text::before {
    content: '';
    position: absolute;
    top: 0.95rem;
    left: 0;
    width: 1.15rem;
    height: 1.15rem;
    border: 1px solid var(--black);
}

.choice-row-text {
    display: flex;
    flex-direction: column;
    padding-left: 1.9rem;
}

.choice-row-text small {
    font-size: 0.87rem;
}

.choice-row input:checked + .choice-row-text::before {
    background: var(--black);
    box-shadow: inset 0 0 0 0.2rem var(--white);
}

.choice-row input:focus-visible + .choice-row-text {
    outline: 1px solid var(--gold);
    outline-offset: 0.25rem;
}

.choice-row:has(input:disabled) {
    color: var(--muted);
    cursor: not-allowed;
}

.choice-row input:disabled + .choice-row-text::before {
    border-style: dashed;
    border-color: var(--muted);
}

.form .check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.check span::before {
    content: '';
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.6rem;
    vertical-align: middle;
    border: 1px solid var(--black);
    border-radius: 0.25rem;
}

.check input:checked + span::before {
    background: var(--black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23F5F5F5' stroke-width='2'%3E%3Cpath d='M5 10.5l3.5 3.5L15 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
    align-items: end;
}

/* A refusal under one field would lift it above its neighbour. */
.pair:has(.error:not(:empty)) {
    align-items: start;
}

.error {
    display: block;
    min-height: 0;
    margin-top: 0.25rem;
    color: var(--late);
    font-size: 0.85rem;
}

.error:empty {
    display: none;
}

/* #endregion */

/* #region Pace and seasons */

/* One person's month on the morning list and on the goals: a gold rule, red once clearly behind; two thin meters with a
   gap between them — the month gone in gold, the goal reached in ink. */
.pace {
    border-left: 2px solid var(--gold);
    padding-left: 0.75rem;
    margin: 0.75rem 0;
}

.pace.is-behind {
    border-left-color: var(--late);
}

/* The seasons of the day on the morning list: gold marks in one wrapping line, above the list they explain. */
.seasons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    margin: 0.75rem 0;
}

.meter {
    display: block;
    width: 100%;
    height: 0.25rem;
    margin-top: 0.4rem;
    border: 0;
    background: var(--rule);
    appearance: none;
}

.meter::-webkit-progress-bar {
    background: var(--rule);
}

.meter::-webkit-progress-value {
    background: var(--gold);
}

.meter::-moz-progress-bar {
    background: var(--gold);
}

.meter.is-goal::-webkit-progress-value {
    background: var(--black);
}

.meter.is-goal::-moz-progress-bar {
    background: var(--black);
}

/* What to look at before a drafted message is sent: whole sentences, each on its own. */
.remarks {
    list-style: none;
    font-size: 0.95rem;
}

.remarks li {
    padding: 0.35rem 0;
}

/* The week's norms: one line each, the count at the line's end in even figures. */
.norms {
    list-style: none;
    margin: 0.75rem 0;
    font-size: 0.9rem;
}

.norms li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--rule);
}

.norms li span:last-child {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* #endregion */

/* #region Materials and the weekly review */

/* A material: what starts with it in a short list, what is to be done under it in the quiet voice. */
.material form {
    margin-top: 0.75rem;
}

.material-unlocks {
    list-style: none;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.material-unlocks li + li {
    margin-top: 0.15rem;
}

.material-steps {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
}

/* The review's steps in one line that wraps, drawn as the filters are. */
.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.25rem;
    list-style: none;
    border-bottom: 1px solid var(--rule);
}

.steps a {
    display: inline-flex;
    align-items: center;
    min-height: var(--control);
    color: var(--muted);
    text-decoration: none;
}

.steps a[aria-current="step"] {
    color: var(--black);
    font-weight: 600;
    box-shadow: inset 0 -2px 0 var(--gold);
}

/* #endregion */

/* #region Tables */

/* A table scrolls inside its own box, never the page; headers in the muted voice, figures in even columns. */
.table-box {
    overflow-x: auto;
    margin: 1rem 0;
}

.table-box table {
    border-collapse: collapse;
    min-width: 100%;
    font-size: 0.9rem;
}

.table-box th,
.table-box td {
    padding: 0.6rem 0.75rem 0.6rem 0;
    border-bottom: 1px solid var(--rule);
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}

.table-box th {
    font-weight: 400;
    color: var(--muted);
}

/* A table of counts: every column after the first is a figure, right-aligned in even digits, its header wrapping to a
   narrow column rather than widening it. */
.table-box.is-figures th:not(:first-child),
.table-box.is-figures td:not(:first-child) {
    padding: 0.6rem 0 0.6rem 1rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.table-box.is-figures th:not(:first-child) {
    min-width: 5.5rem;
    white-space: normal;
}

/* A table of many columns on a phone: each row its own short list, the column's name beside the figure. */
@media (max-width: 47.99rem) {
    .table-box.is-stacked :is(table, tbody, tr, td) {
        display: block;
    }

    .table-box.is-stacked thead {
        display: none;
    }

    .table-box.is-stacked tr {
        margin-bottom: 1.5rem;
    }

    .table-box.is-stacked td:first-child {
        font-size: 1rem;
    }

    .table-box.is-stacked td:not(:first-child) {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.6rem 0;
    }

    .table-box.is-stacked td::before {
        content: attr(data-label);
        color: var(--muted);
    }
}

/* A table to fill in: the fields share what the first column leaves, so a phone sees every person's column at once. */
.table-box.is-fields th:not(:first-child) {
    white-space: normal;
}

.table-box.is-fields td {
    white-space: normal;
    vertical-align: middle;
}

.table-box.is-fields td input {
    min-width: 5.5rem;
    margin-top: 0;
}

/* An amount that leads a section: in the headings' face, never in bold. */
.figure {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-variant-numeric: lining-nums;
}

/* #endregion */

/* #region Launcher */

/* The morning list's places at the foot of the page: every chip whole, wrapped rather than cut at the edge. */
.launcher-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1rem;
}

/* The screen's rows lead out of Start: a thin gold arrow after each name says so. */
.launcher .row-title::after {
    content: " ↗";
    color: var(--gold);
}

/* #endregion */

/* #region Voice quick-add */

/* The button under the list's own, a quiet line of what is happening, and the draft below a gold hairline — what was
   heard set apart in muted italics, so it reads as the recording's words and not as the form's. */
.voice {
    margin: 0 0 1.25rem;
}

/* In a row of buttons the voice button is one of them, and what it says and the draft take whole lines under the row. */
.actions > .voice {
    display: contents;
}

.actions > .voice > .voice-status,
.actions > .voice > .voice-draft {
    flex: 0 0 100%;
}

.voice[hidden],
.voice-draft[hidden] {
    display: none;
}

.voice-status {
    min-height: 1.25rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.voice-status:empty {
    min-height: 0;
    margin: 0;
}

.voice-draft {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gold);
}

.voice-heard {
    margin: 0 0 1rem;
    color: var(--muted);
    font-style: italic;
    overflow-wrap: anywhere;
}

/* #endregion */

/* #region Sign-in */

/* What stands beside the door (signed in, no connection) is black with white words. */
.is-signin {
    background: var(--black);
    color: var(--white);
}

.is-signin .muted {
    color: rgba(245, 245, 245, 0.66);
}

.is-signin .button {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.is-signin a:focus-visible,
.is-signin button:focus-visible {
    outline-color: var(--gold);
}

.is-signin #message-failure {
    max-width: none;
    margin: 0 0 1.5rem;
    background: rgba(245, 245, 245, 0.08);
}

.is-signin:has(.welcome) {
    background: var(--white);
    color: var(--black);
}

.is-signin main:has(.welcome) {
    max-width: none;
    padding: 0;
}

/* Two sheets: the house's name on black, and the one thing to press beside it (below it on a phone). */
.welcome {
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0.5rem;
}

.welcome-house {
    display: grid;
    place-items: center;
    min-height: 14rem;
    border-radius: var(--round);
    background: var(--black);
}

.welcome-house img {
    width: min(60%, 30rem);
    filter: invert(1) brightness(1.2);
}

.welcome-words {
    padding: 2.5rem 1.25rem 3rem;
}

.welcome h1 {
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    font-weight: 400;
}

.welcome form,
.welcome #message-failure {
    margin-top: 2rem;
}

.welcome .button {
    min-height: 3.25rem;
    padding: 0 2rem;
    background: var(--black);
    color: var(--white);
    font-size: 1rem;
}

@media (min-width: 40rem) and (orientation: landscape) {
    .welcome {
        grid-template: minmax(0, 1fr) / minmax(0, 1.35fr) minmax(20rem, 1fr);
    }

    .welcome-words {
        align-self: center;
        padding: 2rem 2rem 2rem 14%;
    }
}

.signin {
    max-width: 22rem;
    margin: 18vh auto 0;
    text-align: center;
}

.signin-mark {
    height: 1.25rem;
    width: auto;
    margin: 0 auto 1.5rem;
    filter: invert(1);
}

.signin h1 {
    font-size: 2.25rem;
}

.signin .muted {
    margin: 0.5rem 0 2rem;
}

.signin .button {
    width: 100%;
    justify-content: center;
}

/* #endregion */

/* #region Wider than a phone */

@media (min-width: 48rem) {
    :root {
        --edge: 2rem;
    }

    h1 {
        font-size: 2.25rem;
    }

}

@media (min-width: 64rem) {
    body.has-tabs .actions.is-sticky {
        bottom: 0;
    }
}

/* #endregion */

/* #region Desk */

/* A phone opens a record as its own screen. */
.pane {
    display: none;
}

/* From a laptop up the screen is a desk of three planes: the places on black, the list, and what was opened from it
   (effects.js) beside it, so nobody leaves the list to do one thing. Everything stands closer: one row is one line. */
@media (min-width: 64rem) {
    :root {
        --control: 2.25rem;
        --edge: 1.75rem;
        --side: 12.5rem;
        --pane: min(38vw, 44rem);
    }

    html {
        font-size: 93.75%;
    }

    body {
        line-height: 1.45;
    }

    body.has-tabs {
        padding-left: var(--side);
    }

    h1 {
        font-size: 1.9rem;
    }

    h2 {
        margin: 1.4rem 0 0.4rem;
    }

    .rows-head {
        margin: 1.1rem 0 0.3rem;
    }

    .has-tabs main,
    body.has-tabs main {
        max-width: calc(72rem + 2 * var(--edge));
        margin: 0;
        padding: 1.25rem var(--edge) 2rem;
    }

    .has-tabs main > .form,
    .has-tabs main > .notes,
    .has-tabs main > p {
        max-width: 46rem;
    }

    .has-tabs > #message-success,
    .has-tabs > #message-failure {
        margin: 0.5rem var(--edge) 0;
        padding: 0.45rem 0.8rem;
    }

    .tabs {
        display: none;
    }

    /* The places */

    .has-tabs .bar {
        position: fixed;
        inset: 0 auto 0 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: var(--side);
        padding: 1.25rem 0.6rem 0.75rem;
        overflow-y: auto;
        background: var(--black);
        color: var(--white);
        border: 0;
    }

    .has-tabs .bar-mark {
        padding: 0 0.7rem 1.1rem;
    }

    .has-tabs .bar-mark img {
        height: 0.95rem;
        filter: invert(1) brightness(1.2);
    }

    /* The side menu carries the house's name alone. */
    .has-tabs .bar-mark span {
        display: none;
    }

    .has-tabs .bar-search {
        flex: none;
        order: 1;
        max-width: none;
        margin: 0 0 0.9rem;
    }

    .has-tabs .bar-search input {
        min-height: 2rem;
        padding: 0 0.7rem;
        border-color: rgba(245, 245, 245, 0.2);
        color: var(--white);
        font-size: 0.95rem;
    }

    .has-tabs .bar-search input::placeholder {
        color: rgba(245, 245, 245, 0.6);
    }

    .has-tabs .bar-nav {
        display: flex;
        flex-direction: column;
        order: 2;
    }

    .has-tabs .bar-nav a {
        justify-content: space-between;
        min-height: 1.85rem;
        padding: 0 0.7rem;
        border-radius: var(--corner);
        box-shadow: none;
        color: rgba(245, 245, 245, 0.86);
        font-size: 0.97rem;
    }

    .has-tabs .nav-group {
        margin: 0.95rem 0.7rem 0.2rem;
        color: var(--gold);
        font-size: 0.82rem;
    }

    .has-tabs .nav-more {
        margin-top: 0.95rem;
    }

    .has-tabs .bar-nav a:hover {
        color: var(--white);
    }

    .has-tabs .bar-nav a[aria-current="page"] {
        background: var(--white);
        box-shadow: none;
        color: var(--black);
        font-weight: 600;
    }

    .has-tabs .bar .count {
        background: var(--gold);
        color: var(--black);
        border-radius: 1rem;
    }

    .has-tabs .bar-out {
        order: 3;
        margin: auto 0 0;
        padding: 0.5rem 0.7rem 0;
    }

    .has-tabs .bar-out button {
        min-height: 1.75rem;
        padding: 0;
        color: rgba(245, 245, 245, 0.6);
    }

    .has-tabs .bar a:focus-visible,
    .has-tabs .bar button:focus-visible {
        outline-color: var(--gold);
    }

    /* The list */

    .top {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.4rem 0.9rem;
        margin-bottom: 0.4rem;
    }

    .top > * {
        margin: 0;
    }

    .head {
        margin-bottom: 0.6rem;
    }

    .top > .head {
        display: flex;
        align-items: baseline;
        gap: 0.7rem;
        margin: 0 auto 0 0;
    }

    .actions {
        gap: 0.4rem;
        margin: 0.8rem 0;
    }

    .top > .actions,
    .top > .filters {
        margin: 0;
    }

    /* The tabs take the line under the name and stand on the list's own rule. */
    .top > .filters {
        flex-basis: 100%;
    }

    .top > .filters:not(.is-second) {
        border-bottom: 1px solid var(--rule);
    }

    .filters .chip {
        min-height: 2.1rem;
    }

    .filters.is-second .chip {
        min-height: 1.6rem;
    }

    .button,
    .button-quiet {
        padding: 0 0.95rem;
    }

    .chip:not(.filters *) {
        padding: 0 0.75rem;
    }

    :is(main, .pane) .notice {
        margin: 0.6rem 0;
        padding: 0 0 0 0.7rem;
        background: none;
    }

    .row:hover {
        background: rgba(var(--black-rgb), 0.035);
    }

    .row > a,
    .row-block,
    .row-line > a {
        padding: 0.42rem 0;
    }

    .row > a,
    .row-line > a {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: space-between;
        gap: 0 1rem;
    }

    .row > a > .row-meta,
    .row-line > a > .row-meta {
        gap: 0 0.7rem;
        margin-top: 0;
        font-size: 0.9rem;
    }

    .row > a:has(> .is-columns) {
        flex-wrap: nowrap;
    }

    .row > a > .is-columns {
        flex: none;
        white-space: nowrap;
        flex-wrap: nowrap;
    }

    .is-columns .row-category {
        display: block;
        width: 8.5rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .is-columns .row-due {
        display: block;
        width: 6.2rem;
        text-align: right;
        font-variant-numeric: tabular-nums;
    }

    /* The tick stands before the name, as on paper; a row no tick closes keeps its place empty, so the names stay in one
       column. */
    .row.is-tickable {
        gap: 0.5rem;
    }

    .row.is-tickable > form {
        display: flex;
        align-self: flex-start;
        order: -1;
        padding-top: 0.2rem;
    }

    /* A row's own button keeps off its rules. */
    .row .button-quiet,
    .row .button {
        min-height: 1.85rem;
        margin: 0.2rem 0;
    }

    .row .tick {
        --control: 1.9rem;
        width: 1.9rem;
        height: 1.9rem;
    }

    .row .tick::before {
        inset: 0.36rem;
        border-width: 1.5px;
    }

    .row.is-tickable .tick {
        margin: 0 0 0 -0.36rem;
    }

    .has-tabs .row.is-tickable .tick:hover::before {
        border-color: var(--gold);
        background: rgba(182, 165, 116, 0.35);
    }

    .rows:has(> .is-tickable) > .row:not(.is-tickable) {
        padding-left: 2.04rem;
    }

    .ticks .row-line {
        border-top: 0;
    }

    .day:has(.meter) {
        display: flex;
        align-items: center;
        gap: 0.9rem;
        margin: 0.4rem 0 0;
    }

    .day .meter {
        flex: 1;
        margin: 0;
    }

    .row > .row-fold {
        margin: -0.3rem 0 0;
    }

    .row-fold > summary {
        min-height: 1.4rem;
        padding-bottom: 0.4rem;
    }

    .top > .actions {
        row-gap: 0;
    }

    .ticks .row-line > a {
        padding: 0.2rem 0;
    }

    .fold {
        margin-top: 1rem;
    }

    .facts {
        grid-template-columns: 7rem 1fr;
        gap: 0.15rem 1rem;
        margin: 0.7rem 0;
    }

    .table-box {
        margin: 0.5rem 0;
    }

    .table-box th,
    .table-box td {
        padding: 0.3rem 1rem 0.3rem 0;
    }

    .table-box.is-figures th:not(:first-child),
    .table-box.is-figures td:not(:first-child) {
        padding: 0.3rem 0 0.3rem 1rem;
    }

    .form label,
    .form legend {
        margin-top: 0.8rem;
    }

    /* A screen that opens nothing beside it reads from the left: the name, then what is said of it. */

    .row-block:not(:has(> p, > ul, > form, > details, > .actions)) {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0 1rem;
    }

    .row-block:not(:has(> p, > ul, > form, > details, > .actions)) > .row-meta {
        margin-top: 0;
    }

    .row-block > .inline-form {
        margin: 0;
    }

    body:not(.has-pane) main .row > a:not(:has(> .is-columns)),
    body:not(.has-pane) main .row-line > a {
        justify-content: flex-start;
    }

    body:not(.has-pane) main .row :is(a, .row-block):not(:has(> .is-columns)) > .row-title:not(:last-child) {
        min-width: 23rem;
    }

    /* What was opened */

    .pane {
        display: block;
        position: fixed;
        inset: 0 0 0 auto;
        width: var(--pane);
        padding: 1.25rem var(--edge) 0;
        overflow-y: auto;
        border-left: 1px solid var(--rule);
        background: var(--white);
    }

    .pane-close {
        position: absolute;
        top: 1rem;
        right: 1.1rem;
        width: 2.25rem;
        height: 2.25rem;
        border: 0;
        border-radius: var(--corner);
        background: none;
        cursor: pointer;
    }

    .pane-close:hover {
        background: var(--field);
    }

    .pane-close::before,
    .pane-close::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 1rem;
        height: 1.5px;
        background: var(--black);
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .pane-close::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    .pane > .head {
        padding-right: 2rem;
    }

    /* The pane's end: a sticky row of buttons rides its very edge. */
    .pane::after {
        content: '';
        display: block;
        height: 1.4rem;
    }

    .pane h1 {
        font-size: 1.6rem;
    }

    /* Short facts stand in pairs, so what is written about a record comes sooner. */
    .pane .facts:not(.is-choices) {
        grid-template-columns: max-content 1fr max-content 1fr;
    }

    body.has-pane main {
        max-width: none;
        margin-right: var(--pane);
    }

    /* The opened row runs on to the pane it opened. */
    .row.is-open,
    .row.is-open:hover {
        background: var(--field);
        box-shadow: -0.6rem 0 0 var(--field), 0.6rem 0 0 var(--field);
    }
}

/* #endregion */
/* #region Phone */

/* The first task stands on the first screen: the heading with its filter, one line of buttons, then the work. */
@media (max-width: 63.99rem) {
    h2 {
        margin: 1.1rem 0 0.35rem;
    }

    .nav-group {
        grid-column: 1 / -1;
        margin-top: 0.6rem;
        color: var(--muted);
        font-size: 0.85rem;
    }

    .tab-sheet a {
        min-height: 2.6rem;
    }

    .tab-sheet {
        max-height: calc(100dvh - 4.5rem);
        overflow-y: auto;
    }

    /* The bottom bar has the search. */
    .has-tabs .bar-search {
        display: none;
    }

    .has-tabs .bar {
        min-height: 3rem;
    }

    .has-tabs .bar-search + .bar-out {
        margin-left: auto;
    }

    .has-tabs main {
        padding-top: 0.75rem;
    }

    .top {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.4rem 0.6rem;
        margin-bottom: 0.6rem;
    }

    .top > .head,
    .top > .actions,
    .top > .filters,
    .top > .fold {
        margin: 0;
    }

    .top > .head {
        margin-right: auto;
    }

    .top > .head .muted {
        display: none;
    }

    /* One line of tabs each, run along by the thumb. */
    .top > .filters {
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
        white-space: nowrap;
    }

    .top > .actions {
        width: 100%;
        gap: 0 0.5rem;
    }

    .top > .actions .button,
    .top > .actions .button-quiet {
        flex: 1 1 auto;
    }


    :is(main, .pane) .notice {
        margin: 0.4rem 0;
        padding: 0 0 0 0.75rem;
        background: none;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .row > a,
    .row-block,
    .row-line > a {
        padding: 0.55rem 0;
    }

    .row-title {
        line-height: 1.35;
    }

    .row-meta {
        margin-top: 0.1rem;
    }

    .day:has(.meter) {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        margin: 0 0 0.4rem;
    }

    .day .meter {
        flex: 1;
        margin: 0;
    }

    .tab .count {
        border-radius: 1rem;
        background: var(--gold);
        color: var(--black);
    }
}

/* #endregion */
