/* =========================================================
   WOOMOO design tokens
   Black and white, thin rounded lines, no accent colour.
   Bootstrap 5.3 is used for plumbing only (grid, forms, offcanvas, modal, toast);
   everything that makes it look like WOOMOO is in this one file and driven by the
   custom properties below. No Sass, no build step.

   Font: Atkinson Hyperlegible Next (regular and bold, latin), self-hosted - a free, very legible face in the spirit of
   GOV.UK's body text. (Next has seven weights, 200 to 800; add a @font-face for any more that are wanted. The first Atkinson Hyperlegible files are still in wwwroot/fonts, unused.) (GOV.UK's own font is licensed for government services only.)
   Size: 18px on phones, 19px from tablet up (GOV.UK is 16/19) with a 1.4 line height.
   Form fields are always 16px or more, otherwise iOS Safari zooms in when one is focused.
   ========================================================= */

@font-face {
    font-family: "Atkinson Hyperlegible Next";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Atkinson Hyperlegible Next";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2");
}

/* WOOMOO's own colours: the dark purple of the logo (#4a2c82) is the accent, and the greys are tinted towards it. (This used to be a separate theme-violet.css linked after this file.)
   Light: dark purple where the site was black, lavender-tinted greys. Dark: the page stays black; the accent is a light lavender with dark purple writing on it. */
:root,
[data-bs-theme="light"] {
    --woo-bg: #ffffff;
    --woo-fg: #1a1228;              /* text: near-black with a hint of purple */
    --woo-fg-soft: #2f2545;
    --woo-muted: #54496b;           /* secondary text - 8:1 on white */
    --woo-line: #e7e2f1;            /* hairlines between rows */
    --woo-line-strong: #b3a9cc;     /* borders of inputs, buttons, cards */
    --woo-surface: #f5f2fa;         /* hover / quiet fills */
    --woo-danger: #ca3535;          /* errors and delete only - the one colour allowed */
    --woo-on-danger: #ffffff;
    --woo-solid-edge: #4a2c82;      /* the outline round every SOLID pill */
    /* The accent: what fills the main +, a switched-on pill, the selected tab or menu choice, a ticked box. --woo-on-accent is the text on top of it. */
    --woo-accent: #4a2c82;
    --woo-accent-soft: #5b3a9c;     /* hover state of a solid accent button */
    --woo-on-accent: #ffffff;       /* writing on the accent (10.6:1) */
}

[data-bs-theme="dark"] {
    --woo-bg: #000000;
    --woo-fg: #f5f2ff;
    --woo-fg-soft: #e2dcf5;
    --woo-muted: #b5abd0;
    --woo-line: #261f35;
    --woo-line-strong: #51476b;
    --woo-surface: #130f1c;
    --woo-danger: #ff7a6e;
    --woo-on-danger: #000000;
    /* The dark theme now uses the same dark purple as the light theme. The light lavenders it had before are kept here in case they come back:
       --woo-solid-edge: #9d8bdd;  --woo-accent: #c9b8ff;  --woo-accent-soft: #ddd0ff;  --woo-on-accent: #1d0f42 (dark purple writing on the lavender, 9.8:1);
       and, in the Bootstrap block below, --bs-link-color: #c9b8ff (rgb 201, 184, 255) and --bs-link-hover-color: #ddd0ff (rgb 221, 208, 255).
       Dark purple on a black page is low contrast (outlines, focus rings, ticked boxes, link text), so this is a try-it. */
    --woo-solid-edge: #4a2c82;      /* the outline round every SOLID pill (as the light theme) */
    --woo-accent: #4a2c82;          /* the dark purple of the logo, as the light theme */
    --woo-accent-soft: #5b3a9c;     /* hover state of a solid accent button */
    --woo-on-accent: #ffffff;       /* writing on the accent (10.6:1) */
}

/* ---- Map the tokens onto Bootstrap's variables ---- */
:root {
    --bs-body-font-family: "Atkinson Hyperlegible Next", Arial, "Helvetica Neue", sans-serif;
    --bs-body-font-size: 1.125rem;
    --bs-body-line-height: 1.4;
    --bs-border-width: 1px;
    --bs-border-radius: 12px;
    --bs-border-radius-sm: 8px;
    --bs-border-radius-lg: 16px;
    --bs-border-radius-pill: 999px;
    --woo-column: 640px;
    --woo-sidenav: min(var(--woo-sidenav-w, 260px), 40vw);
}

@media (min-width: 768px) {
    :root {
        --bs-body-font-size: 1.1875rem;
    }
}

[data-bs-theme="light"] {
    --bs-body-bg: #ffffff;
    --bs-body-bg-rgb: 255, 255, 255;
    --bs-body-color: #1a1228;
    --bs-body-color-rgb: 26, 18, 40;
    --bs-link-color: #4a2c82;
    --bs-link-color-rgb: 74, 44, 130;
    --bs-link-hover-color: #5b3a9c;
    --bs-link-hover-color-rgb: 91, 58, 156;
}

[data-bs-theme="dark"] {
    --bs-body-bg: #000000;
    --bs-body-bg-rgb: 0, 0, 0;
    --bs-body-color: #f5f2ff;
    --bs-body-color-rgb: 245, 242, 255;
    --bs-link-color: #4a2c82;       /* was #c9b8ff (the lavender); now the light theme's purple */
    --bs-link-color-rgb: 74, 44, 130;
    --bs-link-hover-color: #5b3a9c; /* was #ddd0ff */
    --bs-link-hover-color-rgb: 91, 58, 156;
}

[data-bs-theme] {
    --bs-border-color: var(--woo-line-strong);
    --bs-secondary-color: var(--woo-muted);
    --bs-tertiary-bg: var(--woo-surface);
    --bs-emphasis-color: var(--woo-fg);
}

body {
    background: var(--woo-bg);
    color: var(--woo-fg);
    -webkit-text-size-adjust: 100%;
    overflow-wrap: break-word;
}

/* Links are always underlined (they have no colour to set them apart); navigation links opt out. */
a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    text-decoration-thickness: 2px;
}

/* ---- Focus: a clear 3px ring in the text colour. With no accent colour, this matters more. ---- */
:focus-visible {
    outline: 3px solid var(--woo-accent);
    outline-offset: 2px;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.btn:focus,
.btn:focus-visible {
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--woo-accent);
}

.woo-skip {
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    z-index: 2000;
    background: var(--woo-bg);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--woo-accent);
}

/* =========================================================
   Layout - one centred feed column, slim left nav on desktop,
   top bar + bottom tab bar on a phone.
   ========================================================= */

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

.woo-sidenav {
    width: var(--woo-sidenav);
    flex: none;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.25rem 1rem;
    border-right: 1px solid var(--woo-line);
    overflow-y: auto;
}

/* The handle on the left menu's right edge: no width of its own (so the page doesn't shift), a wider strip to grab, and a line that shows when pointed at */
.woo-sidenav-grip {
    flex: none;
    position: sticky;
    top: 0;
    width: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 20;
    touch-action: none;
    outline: none;
    display: none;
}

@media (min-width: 768px) {
    .woo-sidenav-grip {
        display: block;
    }
}

.woo-sidenav-grip::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -5px;
    width: 10px;
    cursor: col-resize;
}

.woo-sidenav-grip::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -1px;
    width: 3px;
    background: transparent;
    pointer-events: none;
}

.woo-sidenav-grip:hover::after,
.woo-sidenav-grip:focus-visible::after,
.woo-resizing .woo-sidenav-grip::after {
    background: var(--woo-muted);
}

html.woo-resizing,
html.woo-resizing * {
    cursor: col-resize !important;
    user-select: none !important;
}

/* Nothing to drag while the menu is icons only */
html[data-nav="rail"] .woo-sidenav-grip {
    display: none;
}

.woo-brand {
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: 0.25rem 1rem 0.75rem;
}

.woo-brand:hover {
    text-decoration: none;
}

/* The logo picture: two copies in the page (--light is woomoo-logo-light.svg, the dark purple #4a2c82 ink made for a white page; --dark is woomoo-logo-dark.svg, the light lavender #c9b8ff ink
   made for a black one). Both themes now show the dark purple copy (--light); the lavender one (--dark) is hidden. To go back to one for each theme, replace the rule below with the two
   selectors: [data-bs-theme="dark"] .woo-logo--light, [data-bs-theme="light"] .woo-logo--dark { display: none; } */
.woo-brand--logo {
    display: block;
    line-height: 0;
}

.woo-logo {
    display: block;
}

.woo-logo--dark {
    display: none;
}

/* Left navigation: the full logo with its strapline */
.woo-sidenav .woo-brand--logo {
    padding: 0.25rem 1rem 1rem;
}

.woo-sidenav .woo-logo {
    width: 100%;
    max-width: 190px;
    height: auto;
}

/* Phone top bar: the full logo; it shrinks a little on very narrow screens so the buttons beside it always fit */
.woo-topbar .woo-logo {
    width: 200px;
    max-width: 55vw;
    height: auto;
}

.woo-sidelink {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 48px;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    color: var(--woo-fg);
    text-decoration: none;
    font-size: 1.05rem;
    background: none;
    border: 0;
    width: 100%;
    text-align: left;
}

.woo-sidelink:hover {
    background: var(--woo-surface);
    text-decoration: none;
}

.woo-sidelink[aria-current="page"] {
    font-weight: 700;
    color: var(--woo-accent);
}

/* Pots in the left nav: the link, a chevron to open the list, and the list of pots */
.woo-sidesplit {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.woo-sidesplit .woo-sidelink {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

.woo-sidetoggle {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--woo-muted);
}

.woo-sidetoggle:hover {
    background: var(--woo-surface);
    color: var(--woo-accent);
}

.woo-sidetoggle .woo-icon {
    transition: transform 0.15s ease;
}

.woo-sidetoggle.collapsed .woo-icon {
    transform: rotate(-90deg);
}

@media (prefers-reduced-motion: reduce) {
    .woo-sidetoggle .woo-icon {
        transition: none;
    }
}

.woo-sublist {
    list-style: none;
    margin: 0.1rem 0 0.4rem;
    padding: 0 0 0 2.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.woo-sublink {
    display: block;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    color: var(--woo-fg);
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.woo-sublink:hover {
    background: var(--woo-surface);
    text-decoration: none;
}

.woo-sublink[aria-current="page"] {
    font-weight: 700;
    color: var(--woo-accent);
}

/* A pot in the left menu that has sections: its link with a small chevron beside it, then its sections (one step further in for each level inside another) */
.woo-subsplit {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.woo-subsplit .woo-sublink {
    flex: 1 1 auto;
    min-width: 0;
}

.woo-sidetoggle--sub {
    width: 32px;
    height: 32px;
}

.woo-sublist--sections {
    margin: 0 0 0.3rem;
    padding-left: 0.9rem;
}

.woo-sublink--section {
    padding-left: calc(0.9rem + var(--woo-depth, 0) * 0.9rem);
    font-size: 0.9rem;
}

.woo-subempty {
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
    color: var(--woo-muted);
}

.woo-sidenav-spacer {
    flex: 1 1 auto;
}

/* Left menu as icons only (tablet and desktop). <html data-nav="rail"> is set before first paint from the browser's own memory
   (see the head script in _Layout and section 5 of site.js). The words stay in the page, just hidden from the eye, so each
   icon still has its name for a screen reader; site.js adds a tooltip. */
.woo-nav-icon {
    display: inline-flex;
}

.woo-mark,
.woo-nav-icon.woo-nav-icon--open {
    display: none;
}

html[data-nav="rail"] {
    --woo-sidenav: 76px;
}

html[data-nav="rail"] .woo-sidenav {
    padding: 1.25rem 0.5rem;
    align-items: center;
    overflow-x: hidden;
}

html[data-nav="rail"] .woo-sidenav .woo-logo {
    display: none;
}

html[data-nav="rail"] .woo-sidenav .woo-brand--logo {
    padding: 0.25rem 0 1rem;
}

html[data-nav="rail"] .woo-sidenav .woo-mark {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

html[data-nav="rail"] .woo-sidelabel {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html[data-nav="rail"] .woo-sidenav .woo-sidelink {
    position: relative;
    justify-content: center;
    width: 48px;
    padding: 0.5rem;
}

html[data-nav="rail"] .woo-sidenav .woo-sidelink[aria-current="page"] {
    background: var(--woo-surface);
}

/* The pots list needs room, so it stays out of the narrow menu; the Pots icon goes to the full page. */
html[data-nav="rail"] .woo-sidesplit {
    display: block;
}

html[data-nav="rail"] .woo-sidetoggle,
html[data-nav="rail"] .woo-sidegroup .collapse {
    display: none;
}

/* The number sits on the top right corner of its icon (the bell, To sort). The menu clips anything outside it, so it stays inside the button. */
html[data-nav="rail"] .woo-sidenav .woo-sidelink .woo-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    margin: 0;
}

html[data-nav="rail"] .woo-sidenav .btn-primary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
}

html[data-nav="rail"] .woo-nav-icon.woo-nav-icon--close {
    display: none;
}

html[data-nav="rail"] .woo-nav-icon.woo-nav-icon--open {
    display: inline-flex;
}

.woo-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.woo-column {
    width: 100%;
    max-width: var(--woo-column);
    padding: 1rem 1rem calc(6.5rem + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
    .woo-column {
        border-left: 1px solid var(--woo-line);
        border-right: 1px solid var(--woo-line);
        padding: 1.5rem 1.5rem 4rem;
    }

    .woo-main {
        justify-content: flex-start;
        padding-left: 0;
    }
}

/* The signed-out home page and the Identity pages (sign in, create account, passwords) on desktop: no left menu to sit beside, so the page is centred in the window (and the column loses its side lines) */
@media (min-width: 768px) {
    .woo-main--home {
        justify-content: center;
    }

    .woo-main--home .woo-column {
        border-left: 0;
        border-right: 0;
        max-width: 1000px;
    }

    /* The panels and picture sections use the wider column; the stories stay a comfortable reading width in the middle of it */
    .woo-main--home .woo-home-carousel {
        max-width: 40rem;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Top bar (phone only) */
.woo-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(0.4rem + env(safe-area-inset-top)) 1rem 0.4rem;
    background: var(--woo-bg);
    border-bottom: 1px solid var(--woo-line);
}

/* Phone only: the logo is bigger than the 200px it was (up to 300px) and sits in the middle of the top bar. Signed in, the theme
   button stays at the right; the logo is centred on the screen and may run a little into the empty margins either side, but
   never as far as the button's icon (so on a narrower phone it is smaller: about 263px at 375px wide, 300px from 430px).
   Signed out, the theme button is at the left as it is signed in; Sign in (when there is one - not on the home page or the Sign in
   page, woo-topbar--lean) has a row of its own underneath, centred. */
@media (max-width: 767.98px) {
    .woo-topbar {
        display: grid;
        grid-template-columns: 2.75rem 1fr 2.75rem;
        align-items: center;
    }

    .woo-topbar .woo-brand--logo {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
    }

    .woo-topbar .woo-logo {
        width: min(300px, calc(100vw - 7rem));
        max-width: none;
    }

    .woo-topbar > :last-child {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        position: relative;
        z-index: 1;
    }

    .woo-topbar:not(.d-md-none):not(.woo-topbar--lean) {
        row-gap: 0.25rem;
    }

    /* Signed out: the box holding the theme button and Sign in steps aside, so each can be placed on the grid itself. */
    .woo-topbar-actions {
        display: contents !important; /* beats Bootstrap's d-flex on the same box */
    }

    .woo-topbar-actions [data-theme-toggle] {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        position: relative;
        z-index: 1;
    }

    .woo-topbar-actions > a {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
    }
}

/* Desktop, signed out: the Sign in button in the top bar is the same size and style as the Sign in button on the home page's welcome card (a full-size button, not the small one) */
@media (min-width: 768px) {
    .woo-topbar-actions > a.btn.btn-sm {
        min-height: 48px;
        min-width: 11.3rem;
        --bs-btn-padding-x: 1.25rem;
        --bs-btn-padding-y: 0.55rem;
        --bs-btn-font-size: 1rem;
    }

    .woo-topbar-actions > a.btn.btn-sm {
        min-width: 12.2rem;
        --bs-btn-font-size: 1.1rem;
        --bs-btn-padding-y: 0.7rem;
    }
}

/* Phone, signed in: the top bar is the same height as the bottom bar. The bottom bar's height is its padding (0.3rem above and below), the "+" button with its 0.3rem margin
   (56px; 60px when the bar shows icons alone, BottomBar:ShowLabels = false) and its 1px border, plus the phone's safe area at the edge; the top bar takes the same, keeping its
   own safe area at the top, and its logo and buttons stay in the middle. (Signed out there is no bottom bar, so that top bar is as before.) */
@media (max-width: 767.98px) {
    html {
        --woo-bar-h: calc(0.6rem + 56px + 0.3rem + 1px);
    }

    html:has(.woo-bottomnav--icons) {
        --woo-bar-h: calc(0.6rem + 60px + 0.3rem + 1px);
    }

    .woo-topbar.d-md-none {
        min-height: calc(var(--woo-bar-h) + env(safe-area-inset-top));
        padding-top: env(safe-area-inset-top);
        padding-bottom: 0;
    }

    /* The logo is about three times as wide as it is high, so at 300px wide it is 100px high - taller than the whole bottom bar. Here it is as high as the bar's own height (less its
       1px border) and as wide as that makes it, never into the buttons either side. */
    .woo-topbar.d-md-none .woo-logo {
        width: auto;
        height: calc(var(--woo-bar-h) - 1px);
        max-width: calc(100vw - 7rem);
        object-fit: contain;
    }
}

/* Bottom tab bar (phone only, signed in) */
.woo-bottomnav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* six equal columns: pile, pots, calendar, Find, settings, + */
    justify-items: center;
    align-items: end;
    padding: 0.3rem 0.25rem calc(0.3rem + env(safe-area-inset-bottom));
    background: var(--woo-bg);
    border-top: 1px solid var(--woo-line);
}

.woo-navlink {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    min-width: 0;
    min-height: 52px;
    padding: 0.4rem 0.25rem;
    white-space: nowrap;
    font-size: 0.78rem;
    color: var(--woo-muted);
    text-decoration: none;
    border-radius: 12px;
}

.woo-navlink:hover {
    text-decoration: none;
    color: var(--woo-accent);
}

.woo-navlink[aria-current="page"] {
    color: var(--woo-accent);
    font-weight: 700;
}

/* The number on the Pile button: a small pill over the top right of the icon (its colours are the person's "to sort" pile pill) */
.woo-navicon {
    position: relative;
    display: inline-flex;
}

/* (two classes, so it wins over the plain .woo-badge sizes further down) */
.woo-badge.woo-navcount {
    position: absolute;
    top: -0.45rem;
    left: 62%;
}

/* The pile's number on the phone's bottom bar and on the left menu's Pile link: the same size as the bell's number (.woo-bell-count), a round
   pill (a single digit is a circle, two or more stretch it). The line height leaves room for the 1px border, so the height is 1.15rem. */
.woo-badge.woo-navcount,
.woo-badge.woo-sidecount {
    min-width: 1.15rem;
    padding: 0 0.3rem;
    font-size: 0.7rem;
    line-height: calc(1.15rem - 2px);
    text-align: center;
}

.woo-badge.woo-navcount[hidden] {
    display: none;
}

/* BottomBar:ShowLabels = false in appsettings: no words, so the icons are larger and each button is a bigger target */
.woo-bottomnav--icons .woo-navlink {
    justify-content: center;
    min-height: 58px;
    padding: 0.5rem 0.25rem;
}

.woo-bottomnav--icons .woo-navlink .woo-icon {
    width: 1.9rem;
    height: 1.9rem;
}

.woo-bottomnav--icons .woo-fab {
    width: 60px;
    height: 60px;
}

.woo-bottomnav--icons .woo-fab .woo-icon {
    width: 1.9rem;
    height: 1.9rem;
}

.woo-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 0.3rem;
    border-radius: 50%;
    background: var(--woo-accent);
    color: var(--woo-on-accent);
    text-decoration: none;
}

.woo-fab:hover {
    color: var(--woo-bg);
    text-decoration: none;
}

.woo-fab .woo-icon {
    width: 1.7rem;
    height: 1.7rem;
    stroke-width: 2;
}

/* Calendar: the agenda - a month heading, then each day with its things under it */
.woo-agenda-month {
    margin: 1.5rem 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--woo-fg);
}

.woo-agenda-month:first-child {
    margin-top: 0.25rem;
}

.woo-agenda-heading {
    margin: 1rem 0 0.3rem;
    font-size: 1rem;
    font-weight: 700;
}

/* In the agenda the day is the quieter heading (the month above it is the strong one) */
.woo-agenda .woo-agenda-heading {
    color: var(--woo-muted);
}

/* The pot a thing is in, small above its row (the row has its own top padding, so this tucks into it) */
.woo-agenda-pot {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0.55rem 0 -0.4rem;
    font-size: 0.78rem;
    color: var(--woo-muted);
}

.woo-agenda-pot .woo-icon {
    width: 0.95em;
    height: 0.95em;
}

/* The names in it are links, but they read as the quiet label until pointed at */
.woo-agenda-pot a {
    color: inherit;
    text-decoration: none;
}

.woo-agenda-pot a:hover,
.woo-agenda-pot a:focus-visible {
    color: var(--woo-link, inherit);
    text-decoration: underline;
}

/* Calendar: the layout switch (Agenda / Grid) sits level with the heading */
.woo-cal-views {
    margin-top: 0.3rem;
}

/* Calendar: the month grid. Phone: a number and up to three dots per day. Wider: the first two titles. */
.woo-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.woo-cal-month {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.woo-cal-next .woo-icon {
    transform: scaleX(-1); /* the left chevron, turned round */
}

.woo-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-top: 1px solid var(--woo-line);
    border-left: 1px solid var(--woo-line);
}

.woo-cal-dow {
    padding: 0.3rem 0;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--woo-muted);
    border-right: 1px solid var(--woo-line);
    border-bottom: 1px solid var(--woo-line);
}

.woo-cal-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    min-width: 0;
    min-height: 3.4rem;
    padding: 0.25rem 0.15rem;
    border-right: 1px solid var(--woo-line);
    border-bottom: 1px solid var(--woo-line);
}

.woo-cal-cell.is-out {
    background: var(--woo-surface);
    color: var(--woo-muted);
}

.woo-cal-num {
    min-width: 1.5rem;
    font-size: 0.85rem;
    line-height: 1.5rem;
    text-align: center;
    border-radius: 999px;
}

.woo-cal-cell.is-today .woo-cal-num {
    background: var(--woo-accent);
    color: var(--woo-on-accent);
    font-weight: 700;
}

.woo-cal-cell.is-selected {
    box-shadow: inset 0 0 0 2px var(--woo-accent);
}

.woo-cal-dots {
    display: flex;
    gap: 3px;
}

.woo-cal-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--woo-accent);
}

.woo-cal-dot.is-done {
    background: none;
    box-shadow: inset 0 0 0 1px var(--woo-muted);
}

.woo-cal-evs {
    display: none;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}

.woo-cal-ev {
    display: block;
    padding: 0 0.25rem;
    overflow: hidden;
    font-size: 0.72rem;
    line-height: 1.4;
    white-space: nowrap;
    text-overflow: ellipsis;
    background: var(--woo-surface);
    border: 1px solid var(--woo-line);
    border-radius: 4px;
}

.woo-cal-ev.is-done {
    color: var(--woo-muted);
    text-decoration: line-through;
}

/* A date that has only been offered ("Set date: ...", not yet accepted or declined): hollow and dashed instead of solid */
.woo-cal-dot.is-offered {
    background: none;
    box-shadow: none;
    border: 1px dashed var(--woo-accent);
}

.woo-cal-ev.is-offered {
    background: none;
    color: var(--woo-muted);
    border-style: dashed;
    border-color: var(--woo-line-strong);
}

.woo-cal-more {
    font-size: 0.7rem;
    color: var(--woo-muted);
}

/* A day with things on it: the whole square is the link */
.woo-cal-link {
    position: absolute;
    inset: 0;
}

.woo-cal-link:focus-visible {
    outline: 2px solid var(--woo-accent);
    outline-offset: -2px;
}

@media (min-width: 576px) {
    .woo-cal-cell {
        align-items: stretch;
        min-height: 5.5rem;
        padding: 0.25rem;
    }

    .woo-cal-num {
        align-self: flex-start;
    }

    .woo-cal-dots {
        display: none;
    }

    .woo-cal-evs {
        display: flex;
    }
}

/* =========================================================
   Icons (Lucide sprite) - thin line, follow the text colour
   ========================================================= */

.woo-icon {
    width: 1.35em;
    height: 1.35em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -0.25em;
}

/* Theme toggle shows one icon, chosen by the current preference (set on <html> by site.js) */
.woo-theme-icon {
    display: none;
}

html[data-theme-pref="system"] .woo-theme-icon--system,
html[data-theme-pref="light"] .woo-theme-icon--light,
html[data-theme-pref="dark"] .woo-theme-icon--dark {
    display: inline-block;
}

/* =========================================================
   Typography and small pieces
   ========================================================= */

.woo-h1 {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0.25rem 0 1rem;
}

.woo-h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1.75rem 0 0.75rem;
}

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

.woo-small {
    font-size: 0.875rem;
}

.woo-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.woo-btn-wide {
    width: 100%;
}

/* A button that fills the width on a phone (the Sections, Tags and Members buttons in a pot's Settings) and is its own width on a bigger screen. */
@media (max-width: 767.98px) {
    .woo-btn-full-mobile {
        width: 100%;
    }
}

.woo-auth {
    max-width: 420px;
    margin: 1rem auto 0;
}

.woo-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: var(--woo-muted);
    font-size: 0.9rem;
}

.woo-divider::before,
.woo-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--woo-line);
}

.woo-alert {
    border: 1px solid var(--woo-line-strong);
    border-left: 4px solid var(--woo-accent);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.woo-alert:empty {
    display: none;
}

.woo-alert--error {
    border-left-color: var(--woo-danger);
}

.woo-alert--warn {
    border-left-color: #b68735;
}

.woo-flash {
    border: 1px solid var(--woo-line-strong);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.woo-field-error {
    display: block;
    color: var(--woo-danger);
    font-weight: 700;
    margin-top: 0.25rem;
}

.woo-field-error:empty {
    display: none;
}

.validation-summary-valid {
    display: none;
}

.woo-badge {
    display: inline-block;
    border: 1px solid var(--woo-line-strong);
    border-radius: 999px;
    padding: 0 0.6rem;
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--woo-muted);
    white-space: nowrap;
}

.woo-empty {
    color: var(--woo-muted);
    text-align: center;
    padding: 2.5rem 1rem;
    margin: 0;
}

/* Home page: someone is asking to join one of your pots - a big card with Accept / Decline */
.woo-requests {
    margin-bottom: 1rem;
}

.woo-request {
    border: 2px solid var(--woo-accent);
    border-radius: 16px;
    padding: 1.1rem 1.1rem 1rem;
    margin-bottom: 0.75rem;
}

.woo-request-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.9rem;
}

.woo-request-actions form {
    flex: 1;
}

/* "Later" sits on its own line under Accept / Decline as a quiet link-style button */
.woo-request-actions .woo-request-later {
    flex-basis: 100%;
}

/* A badge you can press (the people count opens the list of people). Raised above a card's stretched link. */
.woo-badge--button {
    position: relative;
    z-index: 1;
    cursor: pointer;
    text-decoration: none;
}

.woo-badge--button:hover {
    color: var(--woo-accent);
    border-color: var(--woo-accent);
    text-decoration: none;
}

/* A badge that needs noticing (e.g. "2 waiting to join") */
.woo-badge--alert {
    background: var(--woo-accent);
    border-color: var(--woo-accent);
    color: var(--woo-on-accent);
    font-weight: 700;
}

/* ...and when that badge is a link (the owner's pot page), keep its colours on hover */
a.woo-badge--alert,
a.woo-badge--alert:hover {
    color: var(--woo-bg);
    text-decoration: none;
}

/* A pill that is switched on (the "n things" pill on a pot's page while it shows only your own things) */
a.woo-badge--selected,
a.woo-badge--selected:hover {
    background: var(--woo-accent);
    border-color: var(--woo-accent);
    color: var(--woo-on-accent);
    font-weight: 700;
    text-decoration: none;
}

/* A wrapper that only exists to carry htmx attributes: its children lay out as if it were not there */
.woo-contents {
    display: contents;
}

/* Home page "getting started" links for a brand-new account - hidden as soon as the pile has a row in it */
.woo-start {
    margin-top: 1.5rem;
}

/* "Getting started" with its X on the right */
.woo-start-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 1.75rem 0 0.75rem;
}

.woo-start-head .woo-h2 {
    margin: 0;
}

.woo-start-head .woo-iconbtn {
    margin: -0.5rem -0.5rem -0.5rem 0;
}

.woo-start-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.woo-start-card .woo-icon {
    flex: none;
    width: 1.6rem;
    height: 1.6rem;
}

.woo-start-card small {
    display: block;
    margin-top: 0.15rem;
    color: var(--woo-muted);
}

/* A card with a colour (appsettings "GettingStarted"): that colour's soft fill, edge and text, light and dark, as a pot's tile has (PillPalette.AccentStyle sets the variables). */
.woo-start-card.woo-start-colour {
    background: var(--pot-tile);
    border-color: var(--pot-accent);
    color: var(--pot-tile-fg);
}

.woo-start-card.woo-start-colour:hover {
    background: var(--pot-tile-hover);
    border-color: var(--pot-accent);
}

.woo-start-card.woo-start-colour small {
    color: inherit;
    opacity: 0.85;
}

[data-bs-theme="dark"] .woo-start-card.woo-start-colour {
    background: var(--pot-tile-d);
    border-color: var(--pot-accent-d);
    color: var(--pot-tile-fg-d);
}

[data-bs-theme="dark"] .woo-start-card.woo-start-colour:hover {
    background: var(--pot-tile-hover-d);
    border-color: var(--pot-accent-d);
}

/* Small icons written into the words (the three who-can-see icons on Create a new pot) */
.woo-start-card small .woo-icon {
    width: 1.1em;
    height: 1.1em;
    vertical-align: -0.2em;
}

/* Phone only: the getting-started cards sit at the bottom of the screen, just above the bottom bar, where a thumb reaches them.
   The page becomes exactly one screen tall (top bar + content) and the section takes the free space above it. */
@media (max-width: 767.98px) {
    body:has(.woo-start) {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        min-height: 100dvh;
    }

    body:has(.woo-start) .woo-app {
        flex: 1 1 auto;
        min-height: 0;
    }

    .woo-column:has(.woo-start) {
        display: flex;
        flex-direction: column;
    }

    .woo-column:has(.woo-start) .woo-start {
        margin-top: auto;
        padding-top: 1.5rem;
    }
}

body:has(.woo-list .woo-row) .woo-start {
    display: none;
}

/* Hide the "nothing here yet" message as soon as the list has a row in it. */
.woo-list:has(.woo-row) > .woo-empty {
    display: none;
}

/* =========================================================
   Buttons, fields, checks
   ========================================================= */

.btn {
    --bs-btn-border-radius: 999px;
    --bs-btn-padding-x: 1.25rem;
    --bs-btn-padding-y: 0.55rem;
    --bs-btn-font-size: 1rem;
    --bs-btn-font-weight: 700;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    --bs-btn-color: var(--woo-on-accent);
    --bs-btn-bg: var(--woo-accent);
    --bs-btn-border-color: var(--woo-accent);
    --bs-btn-hover-color: var(--woo-on-accent);
    --bs-btn-hover-bg: var(--woo-accent-soft);
    --bs-btn-hover-border-color: var(--woo-accent-soft);
    --bs-btn-active-color: var(--woo-on-accent);
    --bs-btn-active-bg: var(--woo-accent-soft);
    --bs-btn-active-border-color: var(--woo-accent-soft);
    --bs-btn-disabled-color: var(--woo-on-accent);
    --bs-btn-disabled-bg: var(--woo-muted);
    --bs-btn-disabled-border-color: var(--woo-muted);
}

.btn-outline-secondary {
    --bs-btn-color: var(--woo-fg);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: var(--woo-line-strong);
    --bs-btn-hover-color: var(--woo-fg);
    --bs-btn-hover-bg: var(--woo-surface);
    --bs-btn-hover-border-color: var(--woo-accent);
    --bs-btn-active-color: var(--woo-fg);
    --bs-btn-active-bg: var(--woo-surface);
    --bs-btn-active-border-color: var(--woo-accent);
}

.btn-danger {
    --bs-btn-color: var(--woo-on-danger);
    --bs-btn-bg: var(--woo-danger);
    --bs-btn-border-color: var(--woo-danger);
    --bs-btn-hover-color: var(--woo-on-danger);
    --bs-btn-hover-bg: var(--woo-danger);
    --bs-btn-hover-border-color: var(--woo-danger);
    --bs-btn-active-color: var(--woo-on-danger);
    --bs-btn-active-bg: var(--woo-danger);
    --bs-btn-active-border-color: var(--woo-danger);
}

.btn-sm {
    min-height: 40px;
    --bs-btn-padding-y: 0.3rem;
    --bs-btn-padding-x: 0.9rem;
    --bs-btn-font-size: 0.95rem;
}

.woo-iconbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-width: 44px;
    min-height: 44px;
    padding: 0 0.5rem;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--woo-muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.woo-iconbtn:hover {
    background: var(--woo-surface);
    color: var(--woo-accent);
    text-decoration: none;
}

/* An action icon by a pot's name that this person chose but cannot use here (Share on a private pot they do not manage, Add without the right to add...): drawn faint, in the colour the
   other icons have (so a lighter shade of the pot's colour on a coloured heading), and it does nothing. The title says why. */
.woo-iconbtn.is-unavailable {
    opacity: 0.35;
    cursor: default;
}

.woo-iconbtn.is-unavailable:hover {
    background: none !important;
}

/* An icon button that removes or deletes something (the X beside a person in the pot's Settings): in the one colour kept for it. */
.woo-iconbtn--danger,
.woo-iconbtn--danger:hover {
    color: var(--woo-danger);
}

.form-label {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* A group heading (a <legend> such as "Who can see it?") is the same size as the other field labels, not the browser's larger legend size. */
legend.form-label {
    font-size: 1rem;
}

.form-text {
    color: var(--woo-muted);
    font-size: 0.95rem;
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.form-control,
.form-select {
    --bs-border-color: var(--woo-line-strong);
    min-height: 48px;
    font-size: 1rem;
    background-color: var(--woo-bg);
    color: var(--woo-fg);
    border-color: var(--woo-line-strong);
}

/* The role dropdowns on a pot's Settings page: all the same width so the owner's (greyed out) one lines up with the rest */
.woo-role-select {
    width: 8.5rem;   /* wide enough for "Contributor" plus the dropdown arrow */
}

.form-control::placeholder {
    color: var(--woo-muted);
    opacity: 1;
}

/* A file chooser (the Add sheet, and a thing's Documents and Photos): its button fills the whole height of the box. The box is taller than Bootstrap expects (min-height above),
   so without this the button stops short and leaves a gap underneath. */
input[type="file"].form-control {
    padding: 0 0.75rem 0 0;
    line-height: 46px;
    overflow: hidden;
}

input[type="file"].form-control::file-selector-button {
    margin: 0 0.75rem 0 0;
    padding: 0 0.75rem;
    height: 100%;
    line-height: inherit;
}

textarea.form-control {
    min-height: 6rem;
}

.form-check-input {
    width: 1.4em;
    height: 1.4em;
    margin-top: 0.15em;
    background-color: var(--woo-bg);
    border-color: var(--woo-line-strong);
}

.form-check-input:checked {
    background-color: var(--woo-accent);
    border-color: var(--woo-accent);
}

/* In a tick-box row the box is as tall as one line of its words (1.4em in a line of 1.4), so it sits level with them: the words read centred on the box,
   not a little above it. (A bordered choice and the "check rows" below set their own.) */
.form-check .form-check-input {
    margin-top: 0;
}

/* Bootstrap's tick is white - on a white (dark-mode) fill it would vanish, so use a black one there. */
[data-bs-theme="dark"] .form-check-input:checked[type="checkbox"] {
    --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

[data-bs-theme="dark"] .form-check-input:checked[type="radio"] {
    --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23000'/%3e%3c/svg%3e");
}

.form-check-label {
    padding-left: 0.25rem;
}

/* A bordered, tappable choice (radio / checkbox with a title and a description) */
.woo-choice {
    display: block;
    border: 1px solid var(--woo-line-strong);
    border-radius: 12px;
    padding: 0.75rem 1rem 0.75rem 2.6rem;
    margin-bottom: 0.6rem;
    cursor: pointer;
}

.woo-choice .form-check-input {
    float: left;
    margin-left: -1.75rem;
}

.woo-choice:has(input:checked) {
    border-color: var(--woo-accent);
    box-shadow: inset 0 0 0 1px var(--woo-accent);
}

.woo-choice-title {
    font-weight: 700;
    display: block;
}

.woo-choice-desc {
    color: var(--woo-muted);
    font-size: 0.95rem;
    display: block;
}

/* A card hidden by the quick filters (display:block above would otherwise win over [hidden]) */
.woo-choice[hidden] {
    display: none;
}

/* The Add sheet's Where step: the ticked pots sit at the top (data-pot-pinned), the rest of the list folds away behind a button (data-pot-toggle). */
[data-pot-rest][hidden],
[data-pot-toggle][hidden] {
    display: none;
}

/* "Add to new pot": the same card as a pot, which opens to show the name and who-can-see-it choices when ticked */
.woo-newpot {
    cursor: default;
}

.woo-newpot-head {
    display: block;
    margin: 0;
    cursor: pointer;
}

.woo-newpot-fields {
    display: none;
    margin-top: 0.75rem;
}

.woo-newpot:has(.woo-newpot-toggle:checked) .woo-newpot-fields {
    display: block;
}

/* The radios inside would otherwise light the whole card up even when it is not ticked */
.woo-newpot:not(:has(.woo-newpot-toggle:checked)) {
    border-color: var(--woo-line-strong);
    box-shadow: none;
}

.woo-newpot-fields fieldset.mb-4 {
    margin-bottom: 0.25rem !important;
}

/* =========================================================
   The feed: capture box and hairline rows (borderless, divided by thin lines, like x.com)
   ========================================================= */

.woo-capture {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.woo-capture .form-control {
    flex: 1 1 auto;
    border-radius: 999px;
    padding-left: 1.1rem;
}

/* Find: the form wraps (the list of what to look for has a row to itself), so the box starts from nothing and grows - the button stays beside it */
.woo-capture.flex-wrap .form-control {
    flex: 1 1 0;
    min-width: 0;
}

.woo-capture .btn {
    flex: none;
    padding-left: 1rem;
    padding-right: 1rem;
}

.woo-list {
    border-top: 1px solid var(--woo-line);
}

/* On a pot's own page there is no line between the heading and the list (the first thing or section header has its own line below it). */
.woo-pot-things .woo-list {
    border-top: 0;
}

.woo-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--woo-line);
}

/* On the calendar, a thing whose date is only an offer: a dashed outline round the row, like the "Set date" chip inside it */
.woo-row.is-offered {
    margin: 0.3rem 0;
    padding: 0.55rem 0.6rem;
    border: 1px dashed var(--woo-line-strong);
    border-radius: 12px;
}

/* A badge that is also a button (the Done toggle, the like). Looks like a pill, reacts like one. */
.woo-badge--toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    font: inherit;
    font-size: 0.78rem;
    line-height: 1.55;
    min-height: calc(0.78rem * 1.55 + 2px); /* one line of text plus the border, so icon-only pills match the text ones */
    cursor: pointer;
}

.woo-badge--toggle:hover {
    color: var(--woo-accent);
    border-color: var(--woo-accent);
}

.woo-badge--toggle .woo-icon {
    width: 0.95em;
    height: 0.95em;
}

/* A pill with an icon in it that is not a button (read-only "tick 2 of 3") */
.woo-badge--static {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.woo-badge--static .woo-icon {
    width: 0.95em;
    height: 0.95em;
}

/* An icon-only pill (private / shared / public) has no line of text to give it a height: match the other pills (1.55 lines + the 2px border) */
.woo-badge--static[role="img"],
.woo-badge--static.woo-badge--button {
    min-height: calc(1.55em + 2px);
}

/* The link's site (e.g. ents24.com) shown as a pill */
.woo-badge--link {
    text-decoration: none;
}

.woo-badge--link:hover {
    color: var(--woo-accent);
    border-color: var(--woo-accent);
    text-decoration: none;
}

.woo-row.is-done .woo-donepill {
    background: var(--woo-accent);
    border-color: var(--woo-accent);
    color: var(--woo-on-accent);
}

/* The tick itself is green, on the round mark after a done thing's title and on its done pill (the fills are as they were). A light green on the dark purple of the light theme, a deep green
   on the lavender of the dark theme - each at least 3:1 against its fill. */
.woo-rowmark--done .woo-icon,
.woo-row.is-done .woo-donepill .woo-icon {
    color: #4ade80;
}

[data-bs-theme="dark"] .woo-rowmark--done .woo-icon,
[data-bs-theme="dark"] .woo-row.is-done .woo-donepill .woo-icon {
    color: #0e6b28;
}

.woo-row.is-done .woo-row-title {
    color: var(--woo-muted);
}

.woo-row-main {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 0.45rem;
}

.woo-row-title {
    font-size: 1.05rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.woo-row-title a {
    text-decoration: none;
}

.woo-row-title a:hover {
    text-decoration: underline;
}

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

/* Right-hand column of a row: the preview picture with the "..." button underneath it */
.woo-row-side {
    flex: none;
    width: 56px; /* same width as the picture, so the "..." lines up down the page with or without one */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* The link's preview picture (Open Graph image) */
.woo-row-thumb {
    flex: none;
    width: 56px;
    height: 56px;
    margin-top: 0.35rem;
    border-radius: 10px;
    border: 1px solid var(--woo-line);
    background: var(--woo-surface);
    object-fit: cover;
}

/* The preview picture on a thing's row is bigger (56px to 104px), on desktop and on a phone. The column that holds it (and the "..." button when there is no picture) is the same width,
   so it still lines up down the page. The picture in the Find results is unchanged. */
.woo-row-side {
    width: 104px;
}

.woo-row-side .woo-row-thumb {
    width: 104px;
    height: 104px;
    border-radius: 15px;
}

/* ...as a link (opens the thing's sheet): the box is just the picture, with no stray line height under it */
.woo-row-thumblink {
    flex: none;
    display: block;
    line-height: 0;
}

/* A thing with no picture: its type icon on a soft tile the size of a picture (104px), in the picture's place. It is a link (or a plain tile for a visitor) in the title icon's colour. */
.woo-row-typetile {
    flex: none;
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    margin-top: 0.35rem;
    border-radius: 15px;
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
    background: color-mix(in srgb, currentColor 12%, transparent);
    line-height: 0;
    text-decoration: none;
}

a.woo-row-typetile:hover {
    background: color-mix(in srgb, currentColor 18%, transparent);
}

.woo-row-typetile .woo-icon {
    width: 2.6rem;
    height: 2.6rem;
}

.woo-detail-image {
    display: block;
    width: 100%;
    max-height: 220px;
    margin-bottom: 1rem;
    border-radius: 12px;
    border: 1px solid var(--woo-line);
    background: var(--woo-surface);
    object-fit: cover;
}

/* Tags (your own, the "2 going, 1 maybe" summary, other people's) wear a soft violet so they stand out from the grey pills for
   type, date and place. Dark text on a pale fill in light mode, pale text on a deep fill in dark mode: both clear 4.5:1.
   --mark is the older name, still used on the people sheet. */
.woo-badge--mark,
.woo-badge--tag,
.woo-pick--tag,
.woo-pick--others {
    --woo-tag-bg: #ece9ff;
    --woo-tag-line: #7b6be0;
    --woo-tag-fg: #3a2c9c;
    --woo-tag-bg-hover: #dcd6ff;
    background: var(--woo-tag-bg);
    border-color: var(--woo-tag-line);
    color: var(--woo-tag-fg);
}

[data-bs-theme="dark"] .woo-badge--mark,
[data-bs-theme="dark"] .woo-badge--tag,
[data-bs-theme="dark"] .woo-pick--tag,
[data-bs-theme="dark"] .woo-pick--others {
    --woo-tag-bg: #2b2457;
    --woo-tag-line: #8f82f0;
    --woo-tag-fg: #dcd7ff;
    --woo-tag-bg-hover: #3a3172;
}

a.woo-badge--tag:hover,
a.woo-badge--mark:hover {
    background: var(--woo-tag-bg-hover);
    border-color: var(--woo-tag-fg);
    color: var(--woo-tag-fg);
}

/* YOUR OWN tags on a thing are the violet turned inside out (solid, light text), so they stand out from the summary and other
   people's tags, which stay pale. Hover keeps the colours. */
.woo-badge--tag.woo-badge--mine,
a.woo-badge--tag.woo-badge--mine:hover {
    background: var(--woo-tag-fg);
    border-color: var(--woo-solid-edge);
    color: var(--woo-tag-bg);
}

/* The tag pill on a row: the tag icon, then (optionally) "2 going, 1 maybe" */
.woo-badge--tagicon {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    /* An icon-only pill has no line of text to give it a height: match the other pills (1.55 lines + the 2px border). */
    min-height: calc(1.55em + 2px);
}

.woo-badge--tagicon .woo-icon {
    flex: none;
    width: 0.95em;
    height: 0.95em;
}

/* The tag choices in a pot's tag sheet: pills you press to switch a tag on or off. They wear the colours of the pills they make -
   teal for your own, blue for the shared ones (see the blocks below, which also give these their colours). Pressed = solid + a tick. */
.woo-pick {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.15rem 0.85rem;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
}

/* The tag buttons on a thing's tag sheet (--tag, your tag colour) and the People sheet's switches (--others, other people's tag colour): the
   violet above unless the person chose another colour, then pale; hovered a little deeper; switched on = solid with a tick. */
.woo-pick--tag,
.woo-pick--others {
    background: var(--woo-tag-bg);
    border-color: var(--woo-tag-line);
    color: var(--woo-tag-fg);
}

.woo-pick--tag:hover,
.woo-pick--others:hover {
    background: var(--woo-tag-bg-hover);
    border-color: var(--woo-tag-fg);
}

.woo-pick--tag[aria-pressed="true"],
.woo-pick--tag[aria-pressed="true"]:hover,
.woo-pick--others[aria-pressed="true"],
.woo-pick--others[aria-pressed="true"]:hover {
    background: var(--woo-tag-fg);
    border-color: var(--woo-tag-fg);
    color: var(--woo-tag-bg);
    font-weight: 700;
}

/* Choices about the pot itself (the People sheet's "The people in it") wear the plain grey of the pills on the pot, not a tag colour:
   hovered a little darker; chosen = solid with a tick. */
.woo-pick--pot {
    background: transparent;
    border-color: var(--woo-line-strong);
    color: var(--woo-muted);
}

.woo-pick--pot:hover {
    border-color: var(--woo-accent);
    color: var(--woo-accent);
}

.woo-pick--pot[aria-pressed="true"],
.woo-pick--pot[aria-pressed="true"]:hover {
    background: var(--woo-accent);
    border-color: var(--woo-accent);
    color: var(--woo-on-accent);
    font-weight: 700;
}

/* Tags on a pot (not on a thing) wear teal, so the two types can be told apart at a glance. Same recipe as the violet above. */
.woo-badge--potag,
.woo-pick--mine {
    --woo-potag-bg: #def5f0;
    --woo-potag-line: #2a9d8a;
    --woo-potag-fg: #0b4f44;
    --woo-potag-bg-hover: #c8ede6;
    background: var(--woo-potag-bg);
    border-color: var(--woo-potag-line);
    color: var(--woo-potag-fg);
}

[data-bs-theme="dark"] .woo-badge--potag,
[data-bs-theme="dark"] .woo-pick--mine {
    --woo-potag-bg: #0f3a34;
    --woo-potag-line: #3fb5a3;
    --woo-potag-fg: #c2f3ea;
    --woo-potag-bg-hover: #17504a;
}

a.woo-badge--potag:hover {
    background: var(--woo-potag-bg-hover);
    border-color: var(--woo-potag-fg);
    color: var(--woo-potag-fg);
}

/* ...and the one that is switched on as a filter on the pots list goes solid, like the other switched-on pills */
a.woo-badge--potag.woo-badge--selected,
a.woo-badge--potag.woo-badge--selected:hover {
    background: var(--woo-accent);
    border-color: var(--woo-accent);
    color: var(--woo-on-accent);
}

.woo-pick--mine:hover {
    background: var(--woo-potag-bg-hover);
    border-color: var(--woo-potag-fg);
}

.woo-pick--mine[aria-pressed="true"],
.woo-pick--mine[aria-pressed="true"]:hover {
    background: var(--woo-potag-fg);
    border-color: var(--woo-potag-fg);
    color: var(--woo-potag-bg);
    font-weight: 700;
}

/* Tags the owner or an admin puts on a pot for EVERYONE in it wear blue, so they are easy to tell from your own teal ones */
.woo-badge--shared,
.woo-pick--shared {
    --woo-shared-bg: #e5f0ff;
    --woo-shared-line: #4179c8;
    --woo-shared-fg: #123668;
    --woo-shared-bg-hover: #cce1ff;
    background: var(--woo-shared-bg);
    border-color: var(--woo-shared-line);
    color: var(--woo-shared-fg);
}

[data-bs-theme="dark"] .woo-badge--shared,
[data-bs-theme="dark"] .woo-pick--shared {
    --woo-shared-bg: #1c2f4a;
    --woo-shared-line: #6c9ee5;
    --woo-shared-fg: #d1e4ff;
    --woo-shared-bg-hover: #264064;
}

a.woo-badge--shared:hover {
    background: var(--woo-shared-bg-hover);
    border-color: var(--woo-shared-fg);
    color: var(--woo-shared-fg);
}

a.woo-badge--shared.woo-badge--selected,
a.woo-badge--shared.woo-badge--selected:hover {
    background: var(--woo-accent);
    border-color: var(--woo-accent);
    color: var(--woo-on-accent);
}

.woo-pick--shared:hover {
    background: var(--woo-shared-bg-hover);
    border-color: var(--woo-shared-fg);
}

.woo-pick--shared[aria-pressed="true"],
.woo-pick--shared[aria-pressed="true"]:hover {
    background: var(--woo-shared-fg);
    border-color: var(--woo-shared-fg);
    color: var(--woo-shared-bg);
    font-weight: 700;
}

/* "Set date: Thu 3 Dec 2026" - a date found in the page, waiting for the owner to accept it */
.woo-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px dashed var(--woo-line-strong);
    border-radius: 999px;
    padding: 0 0.6rem;
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--woo-fg);
    text-decoration: none;
}

.woo-chip:hover {
    border-style: solid;
    text-decoration: none;
}

.woo-chip .woo-icon {
    width: 1em;
    height: 1em;
}

/* A location pill / chip: the text is cut short with "..." instead of pushing the row wider than the screen */
.woo-badge--place,
.woo-badge--clip,
.woo-chip--place {
    max-width: 100%;
    min-width: 0;
}

.woo-badge--place > span,
.woo-badge--clip > span,
.woo-chip--place > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* The offer inside the details sheet */
.woo-offer {
    border: 1px solid var(--woo-line-strong);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.woo-offer-text {
    margin-bottom: 0.6rem;
}

/* Edit form: when "All day" is ticked the time boxes have nothing to say, so they step aside. */
.woo-datefields:has(input[type="checkbox"]:checked) .woo-timefield {
    display: none;
}

.woo-row-actions {
    flex: none;
    display: flex;
    align-items: center;
}

/* Reactions (a heart, a thumbs up...): the pills a thing, a pot or a comment wears. The wrapper takes no space of its own, so its pills
   sit in the row of pills beside it. Yours has darker writing (the same edge as everyone's). */
.woo-react {
    display: contents;
}

.woo-reaction {
    gap: 0.25rem;
}

/* A reaction of yours: a soft tint of the accent, a solid accent edge (a 1px border plus a 1px inset line, so the pill does not grow) and a bold count. The emoji keeps its own colours. */
.woo-reaction.is-mine {
    color: var(--woo-accent);
    background: color-mix(in srgb, var(--woo-accent) 14%, transparent);
    border-color: var(--woo-accent);
    box-shadow: inset 0 0 0 1px var(--woo-accent);
}

.woo-reaction.is-mine span + span {
    font-weight: 700;
}

/* On the Reactions sheet of a thing the emoji is as big as the reaction's title beside it (the page's own text size) and not the small size of the pill's writing; the count keeps the pill's size. */
.woo-reaction-emoji {
    font-size: var(--bs-body-font-size);
    line-height: 1;
}

/* ...and the pill around it is bigger to suit: more room above, below and at the sides than the small pills in the lists. */
.woo-reaction.woo-reaction--sheet {
    padding: 0.3rem 0.85rem;
    font-size: var(--bs-body-font-size); /* the count beside the emoji is the page's own text size too (it was the small pill size, 0.78rem) */
}

.woo-reaction-add[aria-expanded="true"] {
    color: var(--woo-accent);
    border-color: var(--woo-accent);
}

/* Under a pot's name and under a comment, the pills get a line of their own */
.woo-react-line,
.woo-comment-react {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
}

/* Ratings: the pill on a row, and the sheet where you give yours. Black and white like everything else; yours has the darker outline. */
.woo-ratingpill {
    gap: 0.25rem;
}

.woo-ratingpill.is-mine {
    color: var(--woo-accent);
    border-color: var(--woo-accent);
}

.woo-star-solid .woo-icon {
    fill: currentColor;
}

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

.woo-ratingchoice {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

/* The row of stars in the sheet. Each star is the picture with one button over each half (or one over the whole star): the buttons are
   invisible, the picture shows what you have given. */
.woo-stars {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
}

.woo-star {
    position: relative;
    width: 2.75rem;
    height: 2.75rem;
    color: var(--woo-fg);
}

.woo-star-art,
.woo-star-fill {
    position: absolute;
    inset: 0;
}

.woo-star-art > .woo-icon {
    width: 100%;
    height: 100%;
    color: var(--woo-line-strong);
}

.woo-star-fill {
    display: none;
}

.woo-star-fill .woo-icon {
    width: 100%;
    height: 100%;
    color: var(--woo-accent);
    fill: currentColor;
}

.woo-star.is-full .woo-star-fill {
    display: block;
}

.woo-star.is-half .woo-star-fill {
    display: block;
    clip-path: inset(0 50% 0 0);
}

.woo-star-hit {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
}

.woo-star-hit--left {
    width: 50%;
}

.woo-star-hit--right {
    left: auto;
    right: 0;
    width: 50%;
}

.woo-star-hit button {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.woo-star-hit button:focus-visible {
    outline: 3px solid var(--woo-accent);
    outline-offset: -2px;
    border-radius: 6px;
}

/* A number out of 10, or a short list of choices (thumbs...): a row of pills that wrap. */
.woo-rate-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.woo-rate-form {
    margin: 0;
}

.woo-rate-num {
    justify-content: center;
    min-width: 2.4rem;
    min-height: 2.4rem;
    font-size: 1rem;
}

.woo-rate-choice {
    min-height: 2.4rem;
    padding: 0 0.9rem;
    font-size: 0.95rem;
}

.woo-rate-num.is-mine,
.woo-rate-choice.is-mine {
    color: var(--woo-accent);
    border-color: var(--woo-accent);
    border-width: 2px;
}

.woo-rate-mine {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.woo-raters {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woo-rater {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--woo-line);
}

.woo-rater.is-me {
    font-weight: 600;
}

/* A collection card in the list of collections */
.woo-card {
    display: block;
    border: 1px solid var(--woo-line-strong);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--woo-fg);
    text-decoration: none;
}

.woo-card:hover {
    text-decoration: none;
    border-color: var(--woo-accent);
}

/* A pot the person has given a colour (pot Settings, Appearance, Colour): an edge on its card, and beside its name on its own page. PillPalette.AccentStyle sets
   --pot-accent (light) and --pot-accent-d (dark). */
.woo-accent,
.woo-card.woo-accent:hover {
    border-left: 6px solid var(--pot-accent);
}

[data-bs-theme="dark"] .woo-accent,
[data-bs-theme="dark"] .woo-card.woo-accent:hover {
    border-left-color: var(--pot-accent-d);
}

.woo-accent-title {
    border-left: 6px solid var(--pot-accent);
    padding-left: 0.6rem;
}

[data-bs-theme="dark"] .woo-accent-title {
    border-left-color: var(--pot-accent-d);
}

/* A pot's own page, when the person has given it a colour: the heading (name, icons, description and pills) sits on the colour's soft fill, as the pot's tile does on the Pots page,
   with the colour's own light and dark sets (PillPalette.AccentStyle sets the variables on .woo-pot-head). The box reaches 0.75rem out each side and pads 0.75rem back in, so the text
   stays where it was and, on a phone, the icon row's own -0.75rem pull still lines the icons up with the bottom bar. The edge is an inset shadow (not a border) so it adds no width. */
.woo-pot-head--colour {
    margin: 0 -0.75rem 1rem;
    padding: 0.5rem 0.75rem 0.6rem;
    border-radius: 14px;
    background: var(--pot-tile);
    box-shadow: inset 0 0 0 1px var(--pot-accent);
    color: var(--pot-tile-fg);
}

/* The name and the "+" share the first row: the name takes the width, the "+" sits at the right, level with the name's first line. */
.woo-pot-titlerow {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.woo-pot-titlerow .woo-h1 {
    flex: 1 1 auto;
    min-width: 0;
}

/* The pot's icon (or picture) and its name sit side by side, so a name that wraps stays in its own column beside the icon, with every line starting level with the first
   (not underneath the icon). The icon is pulled up a little so its middle is level with the middle of the name's first line. */
.woo-pot-titlerow .woo-h1 {
    display: flex;
    align-items: flex-start;
}

.woo-pot-titlerow .woo-h1 > .woo-pot-tile,
.woo-pot-titlerow .woo-h1 > .woo-pot-thumb--head {
    flex: none;
    margin-top: -0.165rem;
}

.woo-pot-titlerow .woo-iconbtn {
    flex: 0 0 auto;
    margin-top: -0.15rem;
}

/* On a phone the "+" sits in the last of the six icon columns (the icon row below is pulled 0.75rem out each side), with the chevron straight under it. */
@media (max-width: 767.98px) {
    .woo-pot-titlerow .woo-iconbtn {
        width: calc((100% + 1.5rem) / 6);
        margin-right: -0.75rem;
        padding: 0;
    }
}

/* The chevron, last of the heading's icons, folds the row of pills up and down (data-pills-toggle in site.js): down while it shows, turned to point right while it is folded (like the side menu's). */
.woo-pot-pills[hidden] {
    display: none;
}

/* The Pot data panel is only a wrapper (its pills lay out in the row); the settings parts (list settings, Appearance) take the full width. */
.woo-contents[hidden],
.woo-potdata[hidden],
.woo-potsettings[hidden] {
    display: none;
}

/* The chosen "Default" / "None" are solid like the other switched-on pills (the filter pill, Select). */
.woo-potsettings .woo-badge--toggle[aria-pressed="true"],
.woo-potsettings .woo-badge--toggle[aria-pressed="true"]:hover {
    background: var(--woo-accent);
    border-color: var(--woo-accent);
    color: var(--woo-on-accent);
}

.woo-potsettings {
    flex: 0 0 100%;
    min-width: 0;
}

/* The Pot data tab: a row of the pot's action pills, then a part for each of the rest (Privacy, the things, Members, Tags...), each a heading with its pills in a row under it. */
.woo-potdata {
    flex: 0 0 100%;
    min-width: 0;
}

.woo-potdata-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.6rem;
}

.woo-potdata > .woo-potdata-group:first-child > .woo-potdata-title {
    margin-top: 0;
}

/* The row with no heading (n waiting to join) */
.woo-potdata-pills--alone {
    margin-top: 0.75rem;
}

.woo-potsettings-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* The headings in the Settings tab: a bigger one for each part (Icons, Colours) and a smaller one for each thing inside it. */
.woo-potsettings-title,
.woo-potdata-title {
    margin: 1rem 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: inherit;
}

.woo-potsettings > .woo-potsettings-title:first-child {
    margin-top: 0;
}

/* The headings inside a settings tab (Action icons on this page...) are the same as the headings in the Pot data tab (.woo-potdata-title): 1.05rem, bold, the page's text colour. */
.woo-potsettings-sub {
    margin: 0.75rem 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: inherit;
}

/* "Use standard icons" for a row of icons, under it at the left. */
.woo-slotreset {
    display: flex;
    justify-content: flex-start;
    gap: 0.4rem;
    margin-top: 0.15rem;
}

/* The pot's own icon: one line of icons to swipe (or scroll) along, in groups with the group's name above. Default and None come first, dashed. */
.woo-iconstrip {
    display: flex;
    gap: 1.1rem;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding: 0.2rem 0.25rem 0.6rem;
    cursor: grab;
}

/* While it is being dragged with a mouse: no snapping (it would fight the drag) and no text selection. */
.woo-iconstrip.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

.woo-iconstrip.is-dragging .woo-iconpick {
    cursor: grabbing;
}

.woo-iconstrip-group {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.woo-iconstrip-name {
    margin-bottom: 0.3rem;
    font-size: 0.72rem;
    color: var(--woo-muted);
    white-space: nowrap;
}

.woo-iconstrip-items {
    display: flex;
    gap: 0.35rem;
}

.woo-iconpick {
    appearance: none;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    border-radius: 0.6rem;
    border: 1px solid var(--woo-line-strong);
    background: none;
    color: inherit;
    cursor: pointer;
}

.woo-iconpick .woo-icon {
    width: 1.3rem;
    height: 1.3rem;
}

.woo-iconpick.is-dashed {
    border-style: dashed;
}

/* Hover only where there is a pointer to hover with: on a phone it would stay on after a tap. */
@media (hover: hover) {
    .woo-iconpick:hover {
        border-color: var(--woo-fg);
    }
}

.woo-iconpick[aria-pressed="true"] {
    outline: 2px solid var(--woo-fg);
    outline-offset: 1px;
}

/* A round colour sample you press to choose that colour for the pot. It is filled with the colour's tile fill (the custom properties come from the style attribute, see PillPalette.AccentStyle);
   the chosen one has a ring round it. The edge and ring use the heading's own line and text colours, so they show on a coloured heading too. */
.woo-swatchbtn {
    appearance: none;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--woo-line-strong);
    background: var(--pot-tile, transparent);
    cursor: pointer;
}

[data-bs-theme="dark"] .woo-swatchbtn {
    background: var(--pot-tile-d, transparent);
}

@media (hover: hover) {
    .woo-swatchbtn:hover {
        border-color: var(--woo-fg);
    }
}

.woo-swatchbtn[aria-pressed="true"] {
    outline: 2px solid var(--woo-fg);
    outline-offset: 2px;
}

.woo-swatchbtn:focus-visible {
    outline: 2px solid var(--woo-accent);
    outline-offset: 2px;
}

/* The six places for icons by the name (Settings tab, Icons; data-slot-open in site.js): a small square button with the icon in that place, dashed when the place is empty or the icon does not suit this pot.
   The menu of icons for a place opens under the row, full width, so it never runs off a phone's edge. */
.woo-slotbtn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    border-radius: 0.6rem;
    border: 1px solid var(--woo-line-strong);
    background: none;
    color: inherit;
    cursor: pointer;
}

.woo-slotbtn .woo-icon {
    width: 1.2rem;
    height: 1.2rem;
}

@media (hover: hover) {
    .woo-slotbtn:hover {
        border-color: var(--woo-fg);
    }
}

.woo-slotbtn[aria-expanded="true"] {
    outline: 2px solid var(--woo-fg);
    outline-offset: 2px;
}

.woo-slotbtn.is-empty,
.woo-slotbtn.is-off,
.woo-potsettings .woo-badge.is-off {
    border-style: dashed;
}

.woo-slotbtn.is-off,
.woo-potsettings .woo-badge.is-off {
    opacity: 0.7;
}

.woo-slotmenu {
    margin-top: 0.5rem;
}

.woo-slotmenu[hidden] {
    display: none;
}

/* The row of the six places in the Settings tab sits in the same columns as the icons in the heading above it (right-aligned, each place in an icon's width), so every place is under its icon. On a
   phone that is the bottom bar's six columns, pulled out 0.75rem each side like the heading's icon row. */
.woo-slotrow {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.25rem;
}

/* In the list's settings the six places start at the left (not lined up under the heading's icons). */
.woo-slotrow--plain {
    justify-content: flex-start;
}

.woo-slotcell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

@media (max-width: 767.98px) {
    .woo-slotrow {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        gap: 0;
    }

    .woo-slotrow--plain {
        margin-left: 0;
        margin-right: 0;
    }

    .woo-slotcell {
        flex: 0 0 calc(100% / 6);
        min-width: 0;
    }
}

/* The colour swatches in a pot's Settings, Appearance, Colour: a row each for the Primary, Secondary and Tertiary colours (and a last one for No colour / Use default), a small caption first. */
.woo-swatchgroup + .woo-swatchgroup {
    margin-top: 0.6rem;
}

.woo-swatchgroup-label {
    flex: 0 0 5.5rem;
    font-size: 0.85rem;
    color: var(--woo-muted);
}

/* "No colour" in the colour row: a dashed empty circle (it must not take the heading's colour, which the swatches would otherwise inherit). */
.woo-swatchbtn.is-none,
[data-bs-theme="dark"] .woo-swatchbtn.is-none {
    background: transparent;
    border-style: dashed;
}

/* A switch in the heading's row of icons (the filter, Select) that is on: ringed, so it shows on any colour of heading. */
.woo-iconbtn[aria-pressed="true"] {
    box-shadow: inset 0 0 0 2px currentColor;
}

.woo-pillstoggle .woo-icon {
    transition: transform 0.15s ease;
}

.woo-pillstoggle[aria-expanded="false"] .woo-icon {
    transform: rotate(-90deg);
}

/* The "show more / show less" pill on a pot's page wears the same chevrons as each thing's strip: an up chevron while every thing is unfolded (press to fold them), a down chevron while not. */
.woo-foldallpill[aria-pressed="true"] .woo-fold-down,
.woo-foldallpill:not([aria-pressed="true"]) .woo-fold-up {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .woo-pillstoggle .woo-icon {
        transition: none;
    }
}

.woo-pot-head--colour .woo-pot-pills {
    margin-bottom: 0 !important; /* Bootstrap's mb-2 on the row needs !important to beat; the box's own padding gives the space */
}

.woo-pot-head--colour .woo-page-head:not(.woo-has-bg) .woo-h1,
.woo-pot-head--colour .woo-page-head:not(.woo-has-bg) .woo-iconbtn {
    color: var(--pot-tile-fg);
}

.woo-pot-head--colour .woo-page-head:not(.woo-has-bg) .woo-iconbtn:hover {
    background: var(--pot-tile-hover);
}

/* The pills on the coloured heading keep their see-through background (the heading's colour shows through) and take the pot's colour for their edge and their text / icon (the usual dark edge on
   hover). The ones that already have a fill of their own (shared and own tags, "waiting to join", the "n things" pill and a pill switched on, a reaction of yours) keep their own look. */
.woo-pot-head--colour .woo-pot-pills .woo-badge:not(.woo-badge--shared):not(.woo-badge--potag):not(.woo-badge--alert):not(.woo-badge--selected):not(.is-mine):not([aria-pressed="true"]) {
    border-color: var(--pot-accent);
    color: var(--pot-tile-fg);
}

.woo-pot-head--colour .woo-pot-pills .woo-badge:not(.woo-badge--shared):not(.woo-badge--potag):not(.woo-badge--alert):not(.woo-badge--selected):not(.is-mine):not([aria-pressed="true"]):hover {
    border-color: var(--woo-fg);
}

[data-bs-theme="dark"] .woo-pot-head--colour .woo-pot-pills .woo-badge:not(.woo-badge--shared):not(.woo-badge--potag):not(.woo-badge--alert):not(.woo-badge--selected):not(.is-mine):not([aria-pressed="true"]) {
    border-color: var(--pot-accent-d);
    color: var(--pot-tile-fg-d);
}

[data-bs-theme="dark"] .woo-pot-head--colour .woo-pot-pills .woo-badge:not(.woo-badge--shared):not(.woo-badge--potag):not(.woo-badge--alert):not(.woo-badge--selected):not(.is-mine):not([aria-pressed="true"]):hover {
    border-color: var(--woo-fg);
}

/* A reaction of yours there has the same edge as everyone's (the rules above leave "is-mine" pills out, for the ones with a fill of their own). */
.woo-pot-head--colour .woo-pot-pills .woo-reaction.is-mine {
    border-color: var(--pot-accent);
}

.woo-pot-head--colour .woo-pot-pills .woo-reaction.is-mine:hover {
    border-color: var(--woo-fg);
}

[data-bs-theme="dark"] .woo-pot-head--colour .woo-pot-pills .woo-reaction.is-mine {
    border-color: var(--pot-accent-d);
}

[data-bs-theme="dark"] .woo-pot-head--colour .woo-pot-pills .woo-reaction.is-mine:hover {
    border-color: var(--woo-fg);
}

[data-bs-theme="dark"] .woo-pot-head--colour {
    background: var(--pot-tile-d);
    box-shadow: inset 0 0 0 1px var(--pot-accent-d);
    color: var(--pot-tile-fg-d);
}

[data-bs-theme="dark"] .woo-pot-head--colour .woo-page-head:not(.woo-has-bg) .woo-h1,
[data-bs-theme="dark"] .woo-pot-head--colour .woo-page-head:not(.woo-has-bg) .woo-iconbtn {
    color: var(--pot-tile-fg-d);
}

[data-bs-theme="dark"] .woo-pot-head--colour .woo-page-head:not(.woo-has-bg) .woo-iconbtn:hover {
    background: var(--pot-tile-hover-d);
}

/* The little round sample beside the Colour list in a pot's Settings, Appearance. */
.woo-pot-swatch {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 1px solid var(--woo-line-strong);
    background: var(--pot-accent, transparent);
}

[data-bs-theme="dark"] .woo-pot-swatch {
    background: var(--pot-accent-d, transparent);
}

/* Deep tiles in light mode (always on: _Layout puts woo-deep-tiles on <html>): a coloured tile, pot heading or Getting started card is the colour's
   strong fill with light text, so inside it the text, lines and accent are turned light the way dark mode has them - the box's own fill and text (--pot-tile, --pot-tile-fg, from
   PillPalette.AccentStyle) are mixed to get the in-between greys. */
html.woo-deep-tiles[data-bs-theme="light"] :is(.woo-tile-colour, .woo-pot-head--colour, .woo-start-card.woo-start-colour, .woo-card--pot.woo-card-colour) {
    --woo-fg: var(--pot-tile-fg);
    --woo-bg: var(--pot-tile);
    --woo-muted: color-mix(in srgb, var(--pot-tile-fg) 90%, var(--pot-tile));
    --woo-line: color-mix(in srgb, var(--pot-tile-fg) 25%, var(--pot-tile));
    --woo-line-strong: color-mix(in srgb, var(--pot-tile-fg) 55%, var(--pot-tile));
    --woo-surface: color-mix(in srgb, var(--pot-tile-fg) 14%, var(--pot-tile));
    --woo-accent: var(--pot-tile-fg);
    --woo-accent-soft: color-mix(in srgb, var(--pot-tile-fg) 85%, var(--pot-tile));
    --woo-on-accent: var(--pot-tile);
}

/* ...and the pills on a deep heading get a light edge (their edge is --pot-accent, which on a deep fill is the fill's own colour and would not show). */
html.woo-deep-tiles[data-bs-theme="light"] .woo-pot-head--colour .woo-pot-pills {
    --pot-accent: color-mix(in srgb, var(--pot-tile-fg) 55%, var(--pot-tile));
}

/* The same for dark mode (always on: _Layout puts woo-deep-tiles-dark on <html>), using the -d variables. Most deep fills have white text, which the dark tokens already suit; this is for
   the light ones (Lilac, Mauve, Yellow...) that have dark text on them, and keeps the greys inside every deep box mixed from the box's own colours. */
html.woo-deep-tiles-dark[data-bs-theme="dark"] :is(.woo-tile-colour, .woo-pot-head--colour, .woo-start-card.woo-start-colour, .woo-card--pot.woo-card-colour) {
    --woo-fg: var(--pot-tile-fg-d);
    --woo-bg: var(--pot-tile-d);
    --woo-muted: color-mix(in srgb, var(--pot-tile-fg-d) 90%, var(--pot-tile-d));
    --woo-line: color-mix(in srgb, var(--pot-tile-fg-d) 25%, var(--pot-tile-d));
    --woo-line-strong: color-mix(in srgb, var(--pot-tile-fg-d) 55%, var(--pot-tile-d));
    --woo-surface: color-mix(in srgb, var(--pot-tile-fg-d) 14%, var(--pot-tile-d));
    --woo-accent: var(--pot-tile-fg-d);
    --woo-accent-soft: color-mix(in srgb, var(--pot-tile-fg-d) 85%, var(--pot-tile-d));
    --woo-on-accent: var(--pot-tile-d);
}

html.woo-deep-tiles-dark[data-bs-theme="dark"] .woo-pot-head--colour .woo-pot-pills {
    --pot-accent-d: color-mix(in srgb, var(--pot-tile-fg-d) 55%, var(--pot-tile-d));
}

/* A collection you've asked to join but aren't in yet - dashed and not clickable */
.woo-card--waiting {
    border-style: dashed;
    color: var(--woo-muted);
}

.woo-card-title {
    font-weight: 700;
    font-size: 1.1rem;
}

/* A collection card on the Pots page. The title link is stretched over the whole card so a tap anywhere opens it;
   the share / settings / + buttons are raised above that, in the top right. */
.woo-card--pot {
    position: relative;
}

.woo-card-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.woo-card-head .woo-card-title {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.woo-card-link,
.woo-card-link:hover {
    color: inherit;
    text-decoration: none;
}

.woo-card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.woo-card-link:focus-visible::after {
    outline: 2px solid var(--woo-accent);
    outline-offset: 2px;
}

/* A pot's description under its name on the Pots page: the same size as the name (.woo-card-title), but grey and not bold */
.woo-card-desc {
    margin-top: 0.1rem;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--woo-muted);
    overflow-wrap: anywhere;
}

/* The strips on the Pots page: the pot's picture or icon and name (with the new / waiting marks at the end of the row), its description on one line under that, and a chevron at the right that says "press to open".
   Each strip runs the full width of the page - out to the edges of the content column, which pads 1rem each side on a phone and 1.5rem on a desktop (--strip-padx) - with square corners and a
   small gap (0.5rem) between strips; a line along the bottom (in the pot's colour, if it has one) tells one from the next. The name and the description are each one line, cut short with "..." if too long
   (the whole text is in the tooltip). */
.woo-card--pot[data-card-id] {
    --strip-padx: 1rem;
    margin: 0 calc(-1 * var(--strip-padx)) 0.5rem; /* a small gap between strips */
    padding: 0.6rem calc(var(--strip-padx) + 1.8rem) 0.6rem var(--strip-padx); /* room on the right for the chevron */
    min-height: 4.75rem; /* every strip is the same height: the name's row and the description's row */
    border-width: 0 0 1px;
    border-radius: 0;
}

@media (min-width: 768px) {
    .woo-card--pot[data-card-id] {
        --strip-padx: 1.5rem;
    }
}

.woo-card--pot[data-card-id] .woo-card-head .woo-card-title {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    overflow: hidden;
    font-size: 1.6rem; /* the size of the name in a pot's own heading (.woo-h1) */
    line-height: 1.2;
}

.woo-card--pot[data-card-id] .woo-card-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.woo-card--pot[data-card-id] .woo-card-title .woo-pot-titleicon {
    flex: none;
    margin-left: 0;
}

/* The chevron at the right of the strip says "press to open": the strip is a link to the pot (the title link is stretched over it), so this is only a picture. It is centred up and down on
   the strip, and the strip leaves room for it (the extra padding on the right, above). */
.woo-card--pot[data-card-id] > .woo-card-chevron {
    position: absolute;
    top: 50%;
    right: var(--strip-padx);
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    opacity: 0.6;
    pointer-events: none;
}

/* The name's row is as tall as the picture beside the name, whether there is one or not; the marks (n new, n waiting to join) are at its end. */
.woo-card--pot[data-card-id] > .woo-card-head {
    min-height: 2rem;
}

.woo-card--pot[data-card-id] .woo-pot-thumb {
    width: 2rem;
    height: 2rem;
}

.woo-card--pot[data-card-id] .woo-card-head > .woo-card-marks {
    flex: none;
    flex-wrap: nowrap;
    margin-top: 0;
}

.woo-card-chevron .woo-icon {
    width: 1.6rem;
    height: 1.6rem;
}

.woo-card--pot[data-card-id] .woo-card-desc {
    margin-top: 0.25rem;
    font-size: 0.875rem; /* a little smaller than the description in a pot's own heading */
    line-height: 1.4;
    min-height: 1.4em; /* the row is there even with no description, so the strips are all the same height */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.woo-card--pot[data-card-id] .woo-row-meta {
    margin-top: 0.5rem;
}

/* Tile strips on the Pots page (the class woo-pots--tilestrips on #woo-pots in Collections/Index.cshtml; take that class off to go back to the plain strips). Each strip is a row of three: a rounded tile at the left
   (a square, --strip-tile tall, with the list's picture or its icon large and centred), the name over the description in the middle, and a large chevron at the right as tall as the tile. The strip is as tall as the
   tile plus its padding. The tile is a soft tint of the strip's own text colour, so it suits a coloured strip, a picture strip and the dark theme alike. The chevron is only a picture (the title link covers the strip). */
.woo-card-tile {
    display: none;
}

.woo-pots--tilestrips {
    --strip-tile: 4.25rem; /* was 3.75rem */
    --strip-tile-left: 0.5rem; /* the space to the left of the tile */
    --strip-tile-right: 0.75rem; /* the space to the right of the chevron's column (the arrow sits a little inside it); was 0.25rem */
    --strip-gap: 0; /* the space between strips; was 0.25rem */
}

.woo-pots--tilestrips .woo-card--pot[data-card-id] {
    display: grid;
    grid-template-columns: var(--strip-tile) minmax(0, 1fr) 1.25rem;
    grid-template-rows: auto auto;
    align-content: center;
    align-items: center;
    column-gap: 0.9rem;
    padding: 0.25rem var(--strip-tile-right) 0.25rem var(--strip-tile-left); /* above and below the tile; was 0.5rem */
    margin-bottom: var(--strip-gap);
    min-height: var(--strip-tile); /* content-box: the padding comes on top */
}

.woo-pots--tilestrips .woo-card--pot[data-card-id] > .woo-card-tile {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: var(--strip-tile);
    height: var(--strip-tile);
    overflow: hidden;
    border-radius: 16px;
    background: color-mix(in srgb, currentColor 12%, transparent);
}

.woo-pots--tilestrips .woo-card--pot[data-card-id] > .woo-card-tile .woo-icon {
    width: 2.4rem; /* was 2.1rem, with the tile at 3.75rem */
    height: 2.4rem;
}

.woo-pots--tilestrips .woo-card--pot[data-card-id] > .woo-card-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.woo-pots--tilestrips .woo-card--pot[data-card-id] > .woo-card-head {
    grid-column: 2;
    grid-row: 1;
}

.woo-pots--tilestrips .woo-card--pot[data-card-id] > .woo-card-desc {
    grid-column: 2;
    grid-row: 2;
}

/* A long name wraps onto a second line (cut short with "..." only if it still does not fit in two); the strip grows by that line, and the tile and the chevron stay centred on it. The description
   stays on one line, cut short to the room there is. */
.woo-pots--tilestrips .woo-card--pot[data-card-id] .woo-card-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    white-space: normal;
    overflow-wrap: anywhere;
    overflow: hidden;
}

/* Every strip stays the tile's height, whatever the name does: the name's row is as tall as its text (one or two lines), and the description is in the room that is left under it. With a one-line name
   there is room for the description's line; with a two-line name there is none, so the description is not shown (it is clipped to nothing). The line spacing of the name is a touch tighter so two lines
   fit in the tile's height (4.25rem). The name's row starts a little way down (0.2rem) so one line plus the description sits in the middle of the tile, as before. */
.woo-pots--tilestrips .woo-card--pot[data-card-id] {
    grid-template-rows: auto minmax(0, 1fr);
    box-sizing: content-box; /* Bootstrap's border-box would make the tile's height include the padding, squeezing the text out of the strip */
    height: var(--strip-tile);
}

.woo-pots--tilestrips .woo-card--pot[data-card-id] .woo-card-head .woo-card-title {
    line-height: 1.15;
}

.woo-pots--tilestrips .woo-card--pot[data-card-id] > .woo-card-head {
    align-self: start;
    margin-top: 0.2rem;
}

.woo-pots--tilestrips .woo-card--pot[data-card-id] > .woo-card-desc {
    align-self: stretch;
    min-height: 0;
}

/* The icon and the picture are in the tile now, so they are not repeated beside the name. */
.woo-pots--tilestrips .woo-card--pot[data-card-id] .woo-card-title .woo-pot-titleicon,
.woo-pots--tilestrips .woo-card--pot[data-card-id] .woo-card-head > .woo-pot-thumb {
    display: none;
}

/* The chevron's box is as tall as the tile (the arrow itself fills about half of that), in a narrow column so it does not take room from the name: the box is centred on the column and runs over its sides. */
.woo-pots--tilestrips .woo-card--pot[data-card-id] > .woo-card-chevron {
    position: static;
    transform: none;
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-content: center;
    width: 1.25rem;
    height: var(--strip-tile);
}

.woo-pots--tilestrips .woo-card--pot[data-card-id] > .woo-card-chevron .woo-icon {
    width: var(--strip-tile);
    height: var(--strip-tile);
}

/* A pot with a colour (pot Settings, Appearance, Colour) has its whole strip in the same fill, edge and text as its tile (the colour's own light and dark sets, or the strong "deep"
   fill; PillPalette.AccentStyle sets the variables). The pile can have a colour too. */
.woo-card--pot.woo-card-colour {
    background: var(--pot-tile);
    border-color: var(--pot-accent);
    color: var(--pot-tile-fg);
}

.woo-card--pot.woo-card-colour:hover {
    background: var(--pot-tile-hover);
    border-color: var(--pot-accent);
}

.woo-card--pot.woo-card-colour .woo-iconbtn {
    color: var(--pot-tile-fg);
}

.woo-card--pot.woo-card-colour .woo-iconbtn:hover {
    background: var(--pot-tile-hover);
}

[data-bs-theme="dark"] .woo-card--pot.woo-card-colour {
    background: var(--pot-tile-d);
    border-color: var(--pot-accent-d);
    color: var(--pot-tile-fg-d);
}

[data-bs-theme="dark"] .woo-card--pot.woo-card-colour:hover {
    background: var(--pot-tile-hover-d);
    border-color: var(--pot-accent-d);
}

[data-bs-theme="dark"] .woo-card--pot.woo-card-colour .woo-iconbtn {
    color: var(--pot-tile-fg-d);
}

[data-bs-theme="dark"] .woo-card--pot.woo-card-colour .woo-iconbtn:hover {
    background: var(--pot-tile-hover-d);
}

/* A pot whose picture is its heading background (pot Settings) has the picture over the whole strip, as a tile's picture covers the tile (.woo-tile-bg): darkened behind white writing,
   a little less dark on hover. The picture comes in as --woo-tile-img. The pills that have a fill of their own (tags, "waiting to join", "n new") keep it; the rest turn white. */
.woo-card--pot.woo-card-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), var(--woo-tile-img) center / cover no-repeat;
    color: #fff;
}

.woo-card--pot.woo-card-bg:hover {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), var(--woo-tile-img) center / cover no-repeat;
}

.woo-card--pot.woo-card-bg .woo-card-desc,
.woo-card--pot.woo-card-bg .woo-row-meta,
.woo-card--pot.woo-card-bg .woo-iconbtn {
    color: #fff;
}

.woo-card--pot.woo-card-bg .woo-iconbtn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.woo-card--pot.woo-card-bg .woo-badge:not(.woo-badge--shared):not(.woo-badge--potag):not(.woo-badge--alert):not(.woo-badge--selected):not(.woo-badge--good):not([aria-pressed="true"]) {
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

/* Clear strips (the class woo-pots--clearstrips beside woo-pots--tilestrips on #woo-pots in Collections/Index.cshtml; take it off to put the coloured strips back). The strip itself has no fill, no edge and
   no picture - the page shows through - and only the tile carries the list's colour (its fill and text, light or dark), or its picture darkened when the picture is set as the background. The name, the
   description and the marks are in the page's ordinary text. A list with no colour keeps the soft grey tile. Pointing at a strip gives it the faint hover fill, and its tile the colour's hover fill.
   (The deep-tiles rules above turn the card's text variables light on a coloured card; they are put back here, and the tile gets the colour's own text instead.) */
html .woo-pots--clearstrips.woo-pots--tilestrips .woo-card.woo-card--pot[data-card-id] {
    background: transparent;
    border-color: transparent;
    color: var(--woo-fg);
    --woo-fg: unset;
    --woo-bg: unset;
    --woo-muted: unset;
    --woo-line: unset;
    --woo-line-strong: unset;
    --woo-surface: unset;
    --woo-accent: unset;
    --woo-accent-soft: unset;
    --woo-on-accent: unset;
}

html .woo-pots--clearstrips.woo-pots--tilestrips .woo-card.woo-card--pot[data-card-id]:hover {
    background: var(--woo-surface);
    border-color: transparent;
}

html .woo-pots--clearstrips.woo-pots--tilestrips .woo-card.woo-card--pot[data-card-id] .woo-iconbtn {
    color: var(--woo-fg);
}

html .woo-pots--clearstrips.woo-pots--tilestrips .woo-card.woo-card--pot[data-card-id] .woo-iconbtn:hover {
    background: var(--woo-surface);
}

/* A list with a picture as its background: the writing goes back to the page's colours... */
html .woo-pots--clearstrips.woo-pots--tilestrips .woo-card.woo-card--pot[data-card-id].woo-card-bg .woo-card-desc {
    color: var(--woo-muted);
}

html .woo-pots--clearstrips.woo-pots--tilestrips .woo-card.woo-card--pot[data-card-id].woo-card-bg .woo-row-meta {
    color: var(--woo-fg);
}

html .woo-pots--clearstrips.woo-pots--tilestrips .woo-card.woo-card--pot[data-card-id].woo-card-bg .woo-badge:not(.woo-badge--shared):not(.woo-badge--potag):not(.woo-badge--alert):not(.woo-badge--selected):not(.woo-badge--good):not([aria-pressed="true"]) {
    border-color: var(--woo-line-strong);
    color: var(--woo-muted);
}

/* ...and the picture goes on the tile, darkened behind its white icon. */
html .woo-pots--clearstrips.woo-pots--tilestrips .woo-card.woo-card--pot[data-card-id].woo-card-bg > .woo-card-tile {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), var(--woo-tile-img) center / cover no-repeat;
    color: #fff;
}

html .woo-pots--clearstrips.woo-pots--tilestrips .woo-card.woo-card--pot[data-card-id].woo-card-bg:hover > .woo-card-tile {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), var(--woo-tile-img) center / cover no-repeat;
}

/* A list with a colour: the tile is the colour's fill with the colour's text (the same ones the whole strip had). */
html .woo-pots--clearstrips.woo-pots--tilestrips .woo-card.woo-card--pot[data-card-id].woo-card-colour > .woo-card-tile {
    background: var(--pot-tile);
    color: var(--pot-tile-fg);
}

html .woo-pots--clearstrips.woo-pots--tilestrips .woo-card.woo-card--pot[data-card-id].woo-card-colour:hover > .woo-card-tile {
    background: var(--pot-tile-hover);
}

html[data-bs-theme="dark"] .woo-pots--clearstrips.woo-pots--tilestrips .woo-card.woo-card--pot[data-card-id].woo-card-colour > .woo-card-tile {
    background: var(--pot-tile-d);
    color: var(--pot-tile-fg-d);
}

html[data-bs-theme="dark"] .woo-pots--clearstrips.woo-pots--tilestrips .woo-card.woo-card--pot[data-card-id].woo-card-colour:hover > .woo-card-tile {
    background: var(--pot-tile-hover-d);
}

/* Clear strips: the chevron is the tile's colour (a list with a colour: the tile's fill, and its hover fill when pointed at). A list with no colour, or a picture, has a grey tile that is a faint tint
   of the text colour - too faint for an arrow - so its chevron is a stronger tint of the same (--strip-chevron-plain on #woo-pots, 35% to begin with). */
html .woo-pots--clearstrips.woo-pots--tilestrips .woo-card.woo-card--pot[data-card-id] > .woo-card-chevron {
    color: color-mix(in srgb, var(--woo-fg) var(--strip-chevron-plain, 35%), transparent);
    opacity: 1;
}

html .woo-pots--clearstrips.woo-pots--tilestrips .woo-card.woo-card--pot[data-card-id].woo-card-colour > .woo-card-chevron {
    color: var(--pot-tile);
}

html .woo-pots--clearstrips.woo-pots--tilestrips .woo-card.woo-card--pot[data-card-id].woo-card-colour:hover > .woo-card-chevron {
    color: var(--pot-tile-hover);
}

html[data-bs-theme="dark"] .woo-pots--clearstrips.woo-pots--tilestrips .woo-card.woo-card--pot[data-card-id].woo-card-colour > .woo-card-chevron {
    color: var(--pot-tile-d);
}

html[data-bs-theme="dark"] .woo-pots--clearstrips.woo-pots--tilestrips .woo-card.woo-card--pot[data-card-id].woo-card-colour:hover > .woo-card-chevron {
    color: var(--pot-tile-hover-d);
}

.woo-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.woo-page-head .woo-h1 {
    margin-bottom: 0.25rem;
}

/* A pot's own page: the icons in a row of their own (pushed to the right), the name on a full row under them */
.woo-page-head--stacked {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

/* The description under the name on the Pile and a pot's own page: a little closer to the name above and the pills below */
.woo-page-desc {
    margin-top: -0.5rem;
    margin-bottom: 0.4rem;
}

/* On a pot's own page the icons are the last thing in the heading, so the description needs no pulling up */
.woo-page-head--stacked + .woo-page-desc {
    margin-top: 0;
}

/* Pots page: the Private / Shared / Public quick filters sit beside the New button, wrapping under the heading on a narrow phone */
.woo-page-head--filters {
    flex-wrap: wrap;
}

.woo-page-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-left: auto;
}

.woo-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* Pots page: the join and "+" icons together */
.woo-page-icons {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Pots page on a phone: the heading and the two icons share the top row (icons at the right), and the filters take their own
   row underneath, centred. .woo-page-actions steps out of the way (display: contents) so its children line up with the heading. */
@media (max-width: 767.98px) {
    .woo-page-head--pots {
        align-items: center;
    }

    .woo-page-head--pots .woo-h1 {
        order: 1;
        margin-bottom: 0;
    }

    .woo-page-head--pots .woo-page-actions {
        display: contents;
    }

    .woo-page-head--pots .woo-page-icons {
        order: 2;
        margin-left: auto;
    }

    .woo-page-head--pots .woo-filters {
        order: 3;
        flex: 0 0 100%;
        justify-content: center;
    }
}

/* Pots page: a little more room under the heading and the filter icons, before the first pot or tile. */
.woo-page-head--pots {
    margin-bottom: 1rem;
}

.woo-filter {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 0.8rem;
    border: 1px solid var(--woo-line-strong);
    border-radius: 999px;
    color: var(--woo-fg);
    font-size: 0.9rem;
    text-decoration: none;
}

/* Tabs with an icon before the words (the thing page's tabs): the icon sits beside the words, a little smaller than the text's line. */
.woo-filters--icons .woo-filter {
    gap: 0.35rem;
}

.woo-filters--icons .woo-filter .woo-icon {
    width: 1.1em;
    height: 1.1em;
}

.woo-filter:hover {
    background: var(--woo-surface);
    text-decoration: none;
}

button.woo-filter {
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.woo-filter[aria-current="true"],
.woo-filter[aria-pressed="true"] {
    background: var(--woo-accent);
    border-color: var(--woo-accent);
    color: var(--woo-on-accent);
    font-weight: 700;
}

/* Pots page: the row of tags and the all / private / shared / public buttons are hidden until the funnel in the row of icons is pressed (site.js puts woo-show-pot-tags on <html>), and stay
   while a tag or a kind of pot is chosen so it can be switched off. */
.woo-pot-tags {
    display: none;
}

.woo-page-head--pots .woo-filters {
    display: none;
}

html.woo-show-pot-tags .woo-page-head--pots .woo-filters,
.woo-page-head--pots .woo-filters--active {
    display: flex;
}

/* Pots page: the text search sits with the tags (the same switch). site.js puts woo-find-hidden on the lists that do not match what was typed. */
.woo-pot-find {
    display: none;
}

html.woo-show-pot-tags .woo-pot-find {
    display: block;
}

.woo-find-hidden {
    display: none !important;
}

html.woo-show-pot-tags .woo-pot-tags,
.woo-pot-tags--filtering {
    display: flex;
}

/* =========================================================
   Offcanvas + modal shells
   Desktop: a panel sliding in from the right. Phone: a sheet rising from the bottom.
   ========================================================= */

.woo-offcanvas {
    --bs-offcanvas-width: min(460px, 100vw);
    --bs-offcanvas-bg: var(--woo-bg);
    --bs-offcanvas-color: var(--woo-fg);
    --bs-offcanvas-border-color: var(--woo-line-strong);
    --bs-offcanvas-padding-x: 0;
    --bs-offcanvas-padding-y: 0;
    --bs-offcanvas-box-shadow: none;
}

@media (max-width: 767.98px) {
    .offcanvas.woo-offcanvas {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: auto;
        max-height: 92vh;
        max-height: 92dvh;
        border-left: 0;
        border-top: 1px solid var(--woo-line-strong);
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
    }

    .offcanvas.woo-offcanvas.showing,
    .offcanvas.woo-offcanvas.show:not(.hiding) {
        transform: none;
    }
}

.woo-shell-content {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
}

.woo-shell-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.25rem 0.9rem;
    border-bottom: 1px solid var(--woo-line);
}

.woo-shell-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

/* The close X keeps its size when a long title wraps onto several lines (it was squeezed narrow), and the title may break long words rather than push it out. */
.woo-shell-head .btn-close {
    flex: none;
}

.woo-shell-title {
    min-width: 0;
    overflow-wrap: anywhere;
}

.woo-shell-body {
    padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
}

/* On a full page the head/body are just part of the column, and there's nothing to close. */
.woo-main .woo-shell-head {
    padding-left: 0;
    padding-right: 0;
}

.woo-main .woo-shell-body {
    padding-left: 0;
    padding-right: 0;
}

.woo-main [data-shell-close] {
    display: none;
}

.modal {
    --bs-modal-bg: var(--woo-bg);
    --bs-modal-color: var(--woo-fg);
    --bs-modal-border-color: var(--woo-line-strong);
    --bs-modal-border-radius: 16px;
    --bs-modal-inner-border-radius: 15px;
    --bs-modal-box-shadow: none;
}

.btn-close {
    --bs-btn-close-opacity: 0.7;
}

[data-bs-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Toast */
.toast-container {
    position: fixed;
    left: 0;
    right: 0;
    width: auto; /* Bootstrap makes this box only as wide as the toast, which pinned it to the left edge */
    bottom: calc(5.5rem + env(safe-area-inset-bottom));
    display: flex;
    justify-content: center;
    z-index: 2100;
    pointer-events: none;
}

@media (min-width: 768px) {
    .toast-container {
        bottom: 1.5rem;
    }
}

.woo-toast {
    --bs-toast-bg: var(--woo-accent);
    --bs-toast-color: var(--woo-on-accent);
    --bs-toast-border-width: 0;
    --bs-toast-border-radius: 999px;
    --bs-toast-padding-x: 1.25rem;
    --bs-toast-padding-y: 0.6rem;
    --bs-toast-box-shadow: none;
    width: auto;
    max-width: 90vw;
    pointer-events: auto;
}

/* =========================================================
   Admin tables and small data displays
   ========================================================= */

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--woo-fg);
    --bs-table-border-color: var(--woo-line);
    --bs-table-striped-bg: var(--woo-surface);
    --bs-table-hover-bg: var(--woo-surface);
    font-size: 0.95rem;
}

.table > :not(caption) > * > * {
    padding: 0.6rem 0.5rem;
}

.table th {
    font-weight: 700;
    white-space: nowrap;
}

.woo-token {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9rem;
    border: 1px solid var(--woo-accent);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    overflow-wrap: anywhere;
    user-select: all;
}

.woo-kv {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.35rem 1rem;
    margin: 0 0 1rem;
}

.woo-kv dt {
    color: var(--woo-muted);
    font-weight: 400;
}

.woo-kv dd {
    margin: 0;
    overflow-wrap: anywhere;
}

/* "What people think" on a thing's About tab: each row's icon, pills and buttons sit on one line, centred on each other (the reaction bar's wrapper takes no
   space of its own, so its pills are laid out by the dd). */
.woo-kv--social {
    align-items: center;
}

.woo-kv--social dt {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Each cell of answers is not a box of its own: its parts are rows of the list's grid, so the icon in the first column shares a row with the first line (the pills, or the average and
   its stars) and is centred on that line alone; anything after the first line (what you rated it, the button) goes on its own rows under it. */
.woo-kv--social dd {
    display: contents;
}

.woo-kv--social dd > * {
    grid-column: 2;
}

.woo-kv--social dd > a {
    justify-self: start;
}

.woo-social-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

/* The reaction pills in that block are the phone's bigger size on a computer too (text 1.1rem, icons 1.2825rem, and a pill tall enough for them),
   the same figures as the "Larger on a phone" rules; they only apply from 768px up because the phone rules already cover narrower screens. */
@media (min-width: 768px) {
    .woo-kv--social .woo-reaction,
    .woo-kv--social .woo-reaction-add {
        font-size: 1.1rem;
        min-height: calc(1.1rem * 1.55 + 2px);
    }

    .woo-kv--social .woo-reaction .woo-icon,
    .woo-kv--social .woo-reaction-add .woo-icon {
        width: 1.2825rem;
        height: 1.2825rem;
    }
}

/* The average rating drawn as stars: the same two pictures as the stars in the rating sheet (grey outline, accent fill), each fill clipped from the right
   to the part of that star the average covers. */
.woo-avgstars {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
}

.woo-avgstar {
    position: relative;
    width: 1.35em; /* the same size as the icon beside the row (.woo-icon) */
    height: 1.35em;
}

/* Each picture fills its square exactly: an inline picture sits on the text's baseline, which pushed it down and had the bottom of the filled star cut off. */
.woo-avgstar .woo-icon {
    display: block;
    vertical-align: baseline;
}

.woo-avgstar .woo-star-fill {
    display: block;
}

/* In the rating sheet the average's stars are as big as the ones you press. */
.woo-avgstars--big {
    gap: 0.2rem;
}

.woo-avgstars--big .woo-avgstar {
    width: 2.75rem;
    height: 2.75rem;
}

/* Your rating as a number, the stars, and the button to take it back. */
.woo-rate-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.woo-note {
    color: var(--woo-muted);
    font-size: 0.95rem;
}

details.woo-details > summary {
    cursor: pointer;
    color: var(--woo-muted);
}

pre.woo-pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 0.85rem;
    border: 1px solid var(--woo-line);
    border-radius: 12px;
    padding: 0.6rem 0.8rem;
    margin: 0.4rem 0 0;
}

/* Admin pages hold wide tables, so they get a wider column than the feed. */
.woo-column:has(.woo-wide) {
    max-width: 1000px;
}

.woo-admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--woo-line);
}

.woo-admin-nav a {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--woo-muted);
}

.woo-admin-nav a:hover {
    background: var(--woo-surface);
    color: var(--woo-accent);
}

.woo-admin-nav a[aria-current="page"] {
    color: var(--woo-accent);
    font-weight: 700;
    border: 1px solid var(--woo-line-strong);
}

/* Notifications: the bell (phone top bar) with its unread count, and the rows in the notifications sheet */
.woo-bell {
    position: relative;
}

.woo-bell-count {
    position: absolute;
    top: 4px;
    right: 0;
    min-width: 1.15rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: var(--woo-accent);
    color: var(--woo-on-accent);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.15rem;
    text-align: center;
}

/* The top bar is a three-column grid on a phone: the theme button takes the left-hand column, and the bell (the last child)
   takes the right-hand one through the ".woo-topbar > :last-child" rule above */
@media (max-width: 767.98px) {
    .woo-topbar > [data-theme-toggle] {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        position: relative;
        z-index: 1;
    }
}

a.woo-notice {
    color: inherit;
    text-decoration: none;
}

a.woo-notice:hover {
    background: var(--woo-surface);
    text-decoration: none;
}

/* Unread: bold, with a dot in front */
.woo-notice--unread::before {
    content: "";
    flex: none;
    width: 0.55rem;
    height: 0.55rem;
    margin-top: 0.45rem;
    border-radius: 50%;
    background: var(--woo-accent);
}

.woo-notice--unread .woo-row-title {
    font-weight: 700;
}

/* The pile's "n things to sort" pill: solid green when there is nothing to sort, solid red when there is. White text on both
   clears 4.5:1, and the words say the same thing as the colour. */
.woo-badge--good,
.woo-badge--bad {
    color: #fff;
    font-weight: 700;
}

.woo-badge--good {
    background: #1a7f37;
    border-color: var(--woo-solid-edge);
}

.woo-badge--bad {
    background: #c62828;
    border-color: var(--woo-solid-edge);
}

/* The two pile pills carry a second class (--tosort-ok / --tosort-todo) so a person's own colour for them (Settings, Appearance) can be
   applied without touching the green "New" pills, which share --good. They are not bold ("New" still is). */
.woo-badge--tosort-ok,
.woo-badge--tosort-todo {
    font-weight: 400;
}

/* Settings, Tags: one row per tag of your own - the tag and where it is used, then rename with an X beside it (which asks "are you sure?"
   in a sheet, so nothing is deleted by one stray tap). */
.woo-tagrow {
    display: grid;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--woo-line);
}

.woo-tagrow-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* Settings, Plan: one row per limit, with a bar for how much of it is used. The bar is a hairline track with a fill in the text colour;
   a full one turns the error colour. */
.woo-planrow {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--woo-line);
}

.woo-planrow-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}

.woo-meter {
    height: 0.5rem;
    margin-top: 0.4rem;
    border: 1px solid var(--woo-line-strong);
    border-radius: 999px;
    background: var(--woo-bg);
    overflow: hidden;
}

.woo-meter > span {
    display: block;
    height: 100%;
    background: var(--woo-accent);
}

.woo-meter--full > span {
    background: var(--woo-danger);
}

/* Settings, Appearance, Pill colours: each colour choice is a pill drawn in that colour (PillPalette.ChipStyle sets the --sw-* values),
   so it is its own preview. The Soft / Solid choice above the colours redraws them (:has). The real radio buttons are visually
   hidden but still work with the keyboard; a tick and a ring show which one is picked. */
.woo-colourset {
    margin-bottom: 1.25rem;
}

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

.woo-colour {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.woo-colour .woo-badge {
    padding: 0.1rem 0.85rem;
    font-size: 0.85rem;
}

.woo-colour-chip {
    background: var(--sw-bg);
    border-color: var(--sw-line);
    color: var(--sw-fg);
}

[data-bs-theme="dark"] .woo-colour-chip {
    background: var(--sw-bg-d);
    border-color: var(--sw-line-d);
    color: var(--sw-fg-d);
}

.woo-colourset:has(.woo-style-solid input:checked) .woo-colour-chip {
    background: var(--sw-sbg);
    border-color: var(--sw-sline);
    color: var(--sw-sfg);
}

[data-bs-theme="dark"] .woo-colourset:has(.woo-style-solid input:checked) .woo-colour-chip {
    background: var(--sw-sbg-d);
    border-color: var(--sw-sline-d);
    color: var(--sw-sfg-d);
}

.woo-colourset:has(.woo-style-outline input:checked) .woo-colour-chip {
    background: var(--sw-obg);
    border-color: var(--sw-oline);
    color: var(--sw-ofg);
}

[data-bs-theme="dark"] .woo-colourset:has(.woo-style-outline input:checked) .woo-colour-chip {
    background: var(--sw-obg-d);
    border-color: var(--sw-oline-d);
    color: var(--sw-ofg-d);
}

/* The colour drop-down, with a preview pill beside it (site.js redraws the pill when another colour is picked). */
.woo-colour-pick {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.woo-colour-preview {
    padding: 0.1rem 0.85rem;
    font-size: 0.85rem;
}

/* The drop-down, the Soft / Solid / Outline choice and the "Example:" pill share one line (wrapping on a narrow screen). */
.woo-colour-pick .woo-colours {
    margin-top: 0;
}

.woo-colour-example {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.woo-colour-example-label {
    color: var(--woo-muted);
    font-size: 0.85rem;
}

/* the Soft / Solid / Outline choice itself is a plain pill */
.woo-stylechip {
    background: transparent;
    border-color: var(--woo-line-strong);
    color: var(--woo-fg);
}

.woo-colour:hover .woo-badge {
    box-shadow: 0 0 0 2px var(--woo-line-strong);
}

.woo-colour input:checked + .woo-badge {
    box-shadow: 0 0 0 2px var(--woo-bg), 0 0 0 4px var(--woo-accent);
}

.woo-colour input:focus-visible + .woo-badge {
    outline: 3px solid var(--woo-accent);
    outline-offset: 4px;
}

/* Comments and pot chat ----------------------------------------------------------------------------------------------------------- */
.woo-comment-compose {
    margin-bottom: 0.25rem;
}

.woo-comment-replying {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    padding: 0.35rem 0.6rem;
    border-left: 3px solid var(--woo-line-strong);
    background: var(--woo-surface);
    font-size: 0.9rem;
    color: var(--woo-muted);
}

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

.woo-comment-actions form {
    display: inline;
    margin: 0;
}

.woo-comment-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--woo-muted);
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
}

.woo-comment-link:hover {
    color: var(--woo-accent);
}

.woo-comment-link--danger:hover {
    color: var(--woo-danger);
}

.woo-mention-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.4rem;
}

.woo-mention-chip {
    padding: 0.1rem 0.6rem;
    border: 1px solid var(--woo-line-strong);
    border-radius: 999px;
    background: none;
    color: var(--woo-muted);
    font-size: 0.85rem;
}

.woo-mention-chip:hover {
    background: var(--woo-surface);
    color: var(--woo-accent);
}

.woo-comment {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--woo-line);
}

.woo-comment--reply {
    margin-left: 1.1rem;
    padding-left: 0.8rem;
    border-left: 2px solid var(--woo-line-strong);
    border-bottom-color: transparent;
}

.woo-comment-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.woo-comment-author {
    font-weight: 700;
}

.woo-comment-time {
    color: var(--woo-muted);
    font-size: 0.85rem;
}

.woo-comment-body {
    margin-top: 0.15rem;
    overflow-wrap: anywhere;
}

.woo-comment-quote {
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
    margin-top: 0.15rem;
    color: var(--woo-muted);
    font-size: 0.85rem;
}

.woo-comment-quote .woo-icon {
    flex: none;
    margin-top: 0.15rem;
}

.woo-comment-removed {
    color: var(--woo-muted);
    font-style: italic;
}

.woo-mention {
    font-weight: 700;
}

/* New to you: a bar down the side */
.woo-comment.is-new {
    box-shadow: inset 3px 0 0 var(--woo-accent);
    padding-left: 0.7rem;
}

.woo-comment--reply.is-new {
    box-shadow: none;
    border-left-color: var(--woo-accent);
}

/* The comment pill on a row and the chat icon on a pot: a dot on the corner when someone else has written since you looked */
.woo-commentpill.has-unread,
.woo-chatbtn.has-unread {
    position: relative;
}

.woo-commentpill.has-unread::after,
.woo-chatbtn.has-unread::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 2px;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--woo-accent);
    box-shadow: 0 0 0 2px var(--woo-bg);
}

.woo-commentpill.has-unread::after {
    top: -3px;
    right: -3px;
}

/* Polls ------------------------------------------------------------------------------------------------------------------------------ */
/* The Polls icon on a pot: a dot on the corner when a poll someone else started is waiting for your pick (same dot as the chat icon). */
.woo-pollbtn.has-unread {
    position: relative;
}

.woo-pollbtn.has-unread::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 2px;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--woo-accent);
    box-shadow: 0 0 0 2px var(--woo-bg);
}

.woo-poll {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--woo-line);
}

.woo-poll.needs-vote {
    box-shadow: inset 3px 0 0 var(--woo-accent);
    padding-left: 0.8rem;
}

.woo-poll-question {
    margin: 0 0 0.15rem;
    font-size: 1.1rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.woo-poll-meta {
    margin: 0 0 0.5rem;
}

.woo-poll-prompt {
    margin: 0 0 0.4rem;
    font-weight: 600;
}

.woo-poll-options {
    list-style: none;
    margin: 0 0 0.5rem;
    padding: 0;
}

.woo-poll-option {
    padding: 0.3rem 0;
}

.woo-poll-pick {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
}

.woo-poll-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    min-height: 2.4rem;
    padding: 0.2rem 0.4rem;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--woo-fg);
    text-align: left;
    cursor: pointer;
}

.woo-poll-btn:hover {
    background: var(--woo-surface);
}

.woo-poll-btn:focus-visible {
    outline: 3px solid var(--woo-accent);
    outline-offset: 2px;
}

/* The round marker beside a choice: empty, filled for the choice you picked. */
.woo-poll-dot {
    flex: 0 0 auto;
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid var(--woo-line-strong);
    border-radius: 50%;
}

.woo-poll-option.is-mine .woo-poll-dot {
    border-color: var(--woo-accent);
    background: radial-gradient(circle, var(--woo-accent) 0 45%, transparent 50%);
}

.woo-poll-label {
    overflow-wrap: anywhere;
}

.woo-poll-option.is-mine .woo-poll-label,
.woo-poll-option.is-top .woo-poll-label {
    font-weight: 600;
}

.woo-poll-bar {
    height: 0.4rem;
    margin: 0.1rem 0 0.1rem 2rem;
    background: var(--woo-surface);
    border-radius: 999px;
    overflow: hidden;
}

.woo-poll-bar > span {
    display: block;
    height: 100%;
    background: var(--woo-line-strong);
    border-radius: 999px;
}

.woo-poll-option.is-top .woo-poll-bar > span,
.woo-poll-option.is-mine .woo-poll-bar > span {
    background: var(--woo-accent);
}

.woo-poll-count,
.woo-poll-voters {
    margin-left: 2rem;
    font-size: 0.9rem;
    color: var(--woo-muted);
    overflow-wrap: anywhere;
}

.woo-poll-outcome {
    margin: 0 0 0.4rem;
    font-weight: 600;
}

.woo-poll-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
}

.woo-poll-actions form {
    display: inline;
    margin: 0;
}

/* The ticked-from-the-pot list on the new poll sheet: a box that scrolls rather than a very long sheet. */
.woo-poll-things {
    max-height: 14rem;
    overflow-y: auto;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--woo-line-strong);
    border-radius: 12px;
}

/* The new poll sheet shows the part for whichever "People pick from" is set to - things, dates or other choices (no JavaScript needed). */
#woo-poll-new:not(:has(#poll-pick-things:checked)) .woo-poll-things-only,
#woo-poll-new:not(:has(#poll-pick-dates:checked)) .woo-poll-dates-only,
#woo-poll-new:not(:has(#poll-pick-other:checked)) .woo-poll-other-only {
    display: none;
}

/* The close poll sheet shows the "Update a thing" boxes only when that choice is picked (no JavaScript needed). */
#woo-poll-close:not(:has(#close-mode-update:checked)) .woo-poll-update-only {
    display: none;
}

/* "Create a new pot" in the left menu's pots list when there are none yet */
.woo-sublink--create {
    color: var(--woo-muted);
}

/* Count badges: the number on the bell, and on the To sort icon where it sits on an icon (the phone's bottom bar, and the left menu when it is
   icons only). Their colour is the person's "Count badges" choice (Settings, Appearance), set as three custom properties by PillPalette.ToCss;
   with no choice they are solid red, white text and no border. The To sort number on the full left menu is the To sort pill instead. */
.woo-countbadge {
    background: var(--woo-count-bg, #c62828);
    border-color: var(--woo-count-line, transparent);
    color: var(--woo-count-fg, #ffffff);
    font-weight: 700;
}

.woo-bell-count.woo-countbadge {
    border: 1px solid var(--woo-count-line, transparent);
    line-height: calc(1.15rem - 2px);
}

html[data-nav="rail"] .woo-sidenav .woo-sidecount.woo-badge {
    background: var(--woo-count-bg, #c62828);
    border-color: var(--woo-count-line, transparent);
    color: var(--woo-count-fg, #ffffff);
}

/* Settings, Pill colours: the "No border" example is the solid fill with no edge */
.woo-colourset:has(.woo-style-flat input:checked) .woo-colour-chip {
    background: var(--sw-fbg);
    border-color: var(--sw-fline);
    color: var(--sw-ffg);
}

[data-bs-theme="dark"] .woo-colourset:has(.woo-style-flat input:checked) .woo-colour-chip {
    background: var(--sw-fbg-d);
    border-color: var(--sw-fline-d);
    color: var(--sw-ffg-d);
}

/* Select multiple things (To sort list, a pot's page): the bar above the list, and a tick box on each row while selecting */
.woo-selectbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

[data-select-scope]:not(:has(.woo-row)) .woo-selectbar {
    display: none;
}

.woo-selecttools {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: auto;
}

.woo-selecttools[hidden] {
    display: none;
}

.woo-row-select {
    display: none;
}

[data-selecting] .woo-row-select {
    display: block;
    flex: 0 0 auto;
    align-self: center; /* in the middle of the row, up and down */
    margin-top: 0;
}

/* The box above the column of ticks: same size and place as theirs. Empty, it shows a faint tick when you point at it (as Outlook does);
   a dash while only some rows are ticked. */
.woo-select-all {
    flex: none;
    margin: 0;
    cursor: pointer;
}

.woo-select-all:not(:checked):not(:indeterminate):hover {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%238a8a8a' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

[data-selecting] .woo-row-select + .woo-row-main {
    padding-left: 0;
}

.woo-bulk-things {
    padding-left: 1.1rem;
}

.woo-bulk-head {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
}

/* A filter that is only an icon (private / shared / public): drawn like the "+" on the Pots page - just the icon, with a round
   background that appears when you point at it. The one that is switched on keeps its filled circle so you can see which it is. */
.woo-filters:has(.woo-filter--icon) {
    align-items: center;
}

.woo-filter.woo-filter--icon {
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 0.5rem;
    border: 0;
    color: var(--woo-muted);
}

.woo-filter.woo-filter--icon:hover {
    background: var(--woo-surface);
    color: var(--woo-accent);
}

.woo-filter.woo-filter--icon[aria-current="true"],
.woo-filter.woo-filter--icon[aria-pressed="true"] {
    background: var(--woo-accent);
    color: var(--woo-on-accent);
}

.woo-filter--icon svg {
    width: 1.2em;
    height: 1.2em;
}

/* Pots page on a desktop: the filter icons (all / private / shared / public) and the join and "+" icons are as big as the icons on the tiles (.woo-pick-icon, 1.7rem). */
@media (min-width: 768px) {
    .woo-page-head--pots .woo-filter--icon svg,
    .woo-page-head--pots .woo-page-icons .woo-icon {
        width: 1.7rem;
        height: 1.7rem;
    }
}

/* Pots on a desktop: the pills under a pot's name (on its page and on its card on the Pots list, To sort too) are larger - 1rem text and 1.2rem icons (they are .78rem and .95em
   otherwise). The pills in the lists of things are unchanged. */
@media (min-width: 768px) {
    .woo-card--pot .woo-row-meta,
    .woo-pot-pills {
        font-size: 1rem;
    }

    .woo-card--pot .woo-row-meta .woo-badge,
    .woo-pot-pills .woo-badge {
        font-size: 1rem;
    }

    .woo-card--pot .woo-row-meta .woo-badge:not(.woo-badge--names),
    .woo-pot-pills .woo-badge:not(.woo-badge--names) {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }

    .woo-card--pot .woo-row-meta .woo-badge .woo-icon,
    .woo-pot-pills .woo-badge .woo-icon {
        width: 1.2rem;
        height: 1.2rem;
    }

    /* The pills that are buttons keep a height of one line of their own text (it was worked out from .78rem). */
    .woo-pot-pills .woo-badge--toggle,
    .woo-card--pot .woo-row-meta .woo-badge--toggle {
        min-height: calc(1.55em + 2px);
    }
}

/* The things in a list on a desktop (a pot's page, To sort, search...): the pills under a thing's title are the same size as a pot's - 1rem text and 1.2rem icons. A pill that is a
   button with only an icon in it (add a reaction, done, comment) stays as tall as the pills with words. */
@media (min-width: 768px) {
    .woo-row-meta {
        font-size: 1rem;
    }

    .woo-row-meta .woo-badge,
    .woo-row-meta .woo-chip,
    .woo-rowtags .woo-badge {
        font-size: 1rem;
    }

    .woo-row-meta .woo-badge .woo-icon,
    .woo-row-meta .woo-chip .woo-icon,
    .woo-rowtags .woo-badge .woo-icon {
        width: 1.2rem;
        height: 1.2rem;
    }

    .woo-row-meta .woo-badge--toggle {
        min-height: calc(1.55em + 2px);
    }

    /* A poll's chart text is the size of the pills too. */
    .woo-pollchart .woo-pollbar,
    .woo-pollchart .woo-pollbar-more {
        font-size: 1rem;
    }
}

/* A person's name as a pill (the people pill on a pot's page): a long name is cut with "..." instead of pushing the row wider than the screen */
.woo-badge--names {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

/* "Larger on a phone" (the only phone sizes now - the setting was removed; the old html[data-large] prefix is gone. Checked 1 Nov against the running pages at phone and desktop widths in light and dark: taking the html:root prefix off these rules changed no element's computed style). On a phone, the Pots page's top buttons are as big as the icons on the
   bottom bar (1.9rem), and the pills under each pot are as big as its description (1.1rem) with icons as big as the pot's own icons
   (1.35em of the .95rem icon button = 1.2825rem). Only the Pots page for now. */
@media (max-width: 767.98px) {
    .woo-page-head--pots .woo-page-icons .woo-icon,
    .woo-page-head--pots .woo-filter--icon svg {
        width: 1.9rem;
        height: 1.9rem;
    }

    .woo-card--pot .woo-row-meta {
        font-size: 1.1rem;
    }

    .woo-card--pot .woo-row-meta .woo-badge {
        font-size: 1.1rem;
    }

    .woo-card--pot .woo-row-meta .woo-badge:has(.woo-icon) {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }

    .woo-card--pot .woo-row-meta .woo-badge .woo-icon {
        width: 1.2825rem;
        height: 1.2825rem;
    }
}

/* "Larger on a phone", a pot's own page: the icon row is as big as the bottom bar's (and wraps rather than running off the screen if there are
   a lot of them), and the pill row under the name matches the Pots page's pills. The things in the list are unchanged for now. */
@media (max-width: 767.98px) {
    .woo-page-head--stacked > .d-flex {
        flex-wrap: wrap;
    }

    .woo-page-head--stacked .woo-iconbtn .woo-icon {
        width: 1.9rem;
        height: 1.9rem;
    }

    .woo-pot-pills {
        font-size: 1.1rem;
    }

    .woo-pot-pills .woo-badge {
        font-size: 1.1rem;
    }

    .woo-pot-pills .woo-badge:has(.woo-icon) {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }

    .woo-pot-pills .woo-badge .woo-icon {
        width: 1.2825rem;
        height: 1.2825rem;
    }

    /* The "change this section" icon in a section's header is the same size as those pill icons. */
    .woo-section-edit .woo-icon {
        width: 1.2825rem;
        height: 1.2825rem;
    }
}

/* "Larger on a phone", the things in a list (a pot's page, the Pile, To sort, search...): the title and the pills under it are the size of a pot's
   name and pills on the Pots page. A pill that is a button with only an icon in it (add a reaction, done, comment) is as tall as the pills with
   words, so it does not look smaller beside them. */
@media (max-width: 767.98px) {
    .woo-row-title {
        font-size: 1.1rem;
    }

    .woo-row-meta {
        font-size: 1.1rem;
    }

    .woo-row-meta .woo-badge,
    .woo-row-meta .woo-chip {
        font-size: 1.1rem;
    }

    .woo-row-meta .woo-badge:has(.woo-icon),
    .woo-row-meta .woo-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }

    .woo-row-meta .woo-badge .woo-icon,
    .woo-row-meta .woo-chip .woo-icon {
        width: 1.2825rem;
        height: 1.2825rem;
    }

    .woo-row-meta .woo-badge--toggle,
    .woo-pot-pills .woo-badge--toggle,
    .woo-card--pot .woo-row-meta .woo-badge--toggle {
        min-height: calc(1.1rem * 1.55 + 2px);
    }

    .woo-pollchart .woo-pollbar,
    .woo-pollchart .woo-pollbar-more {
        font-size: 1.1rem;
    }
}

/* "Larger on a phone", the To sort page: its "+" is the size of the bottom bar's icons, and its pills match a pot's. */
@media (max-width: 767.98px) {
    .woo-page-head .woo-iconbtn .woo-icon {
        width: 1.9rem;
        height: 1.9rem;
    }
}

/* A row with no picture has the "..." button on its own in the right-hand column: centre it up and down against the row's height
   (with a picture the column holds the picture, as before). */
.woo-row-side:has(.woo-row-actions) {
    align-self: stretch;
    justify-content: center;
}

/* The Select pill (the list icon, last in a page's row of pills): solid while Select is on. It goes when the list has nothing in it, and
   the bar under the pills (the box that ticks all, "n selected", Actions) only shows while selecting. */
.woo-selectpill[aria-pressed="true"],
.woo-selectpill[aria-pressed="true"]:hover,
.woo-filterpill[aria-pressed="true"],
.woo-filterpill[aria-pressed="true"]:hover {
    background: var(--woo-accent);
    border-color: var(--woo-accent);
    color: var(--woo-on-accent);
}

/* No things listed: no Select pill. !important because the larger-on-a-phone rules give icon pills "display: inline-flex". */
body:not(:has([data-select-scope] .woo-row)) [data-select-toggle] {
    display: none !important;
}

[data-select-scope]:not([data-selecting]) .woo-selectbar {
    display: none;
}

/* A pot's page, on a phone: the icons at the top sit in the same six equal columns as the bottom bar, counted from the right, so each one is
   straight above one of the bar's icons. The bar's columns run from 0.25rem in from each side of the screen, the page has 1rem each side, so the
   row is pulled out by the difference (0.75rem). A seventh icon, if there ever is one, wraps onto a second row. */
@media (max-width: 767.98px) {
    .woo-page-head--stacked > .d-flex {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0 !important; /* Bootstrap's gap-1 on the row needs !important to beat */
    }

    .woo-page-head--stacked > .d-flex .woo-iconbtn {
        flex: 0 0 calc(100% / 6);
        min-width: 0;
        padding: 0;
    }
}

/* "Larger on a phone", the top bar: the light / dark button and the bell are as big as the bottom bar's icons (the bell's count stays in its corner). */
@media (max-width: 767.98px) {
    .woo-topbar .woo-iconbtn .woo-icon {
        width: 1.9rem;
        height: 1.9rem;
    }

    /* The bell's number sits a little higher and further left than usual (usually top 4px, right 0), clear of the bigger icon. */
    .woo-topbar .woo-bell-count {
        top: 1px;
        right: 3px;
    }
}

/* "Larger on a phone", the Calendar: the filter buttons, the headings, the agenda's pot labels and the month grid (bigger numbers, dots and day
   names; each square a little taller). Numbers: filters 1.1rem, headings 1.25rem / 1.1rem, labels 1rem, grid 1.3rem month / 1.05rem days. */
@media (max-width: 767.98px) {
    .woo-page-head--filters .woo-filter,
    .woo-cal-range .woo-filter {
        min-height: 40px;
        padding: 0 1rem;
        font-size: 1.1rem;
    }

    .woo-agenda-month {
        font-size: 1.25rem;
    }

    .woo-agenda-heading {
        font-size: 1.1rem;
    }

    .woo-agenda-pot {
        font-size: 1rem;
        gap: 0.4rem;
    }

    .woo-agenda-pot .woo-icon {
        width: 1.15em;
        height: 1.15em;
    }

    .woo-cal-nav .woo-iconbtn .woo-icon {
        width: 1.9rem;
        height: 1.9rem;
    }

    .woo-cal-month {
        font-size: 1.3rem;
    }

    .woo-cal-dow {
        font-size: 0.9rem;
    }

    .woo-cal-cell {
        min-height: 4.2rem;
    }

    .woo-cal-num {
        min-width: 1.9rem;
        font-size: 1.05rem;
        line-height: 1.9rem;
    }

    .woo-cal-dot {
        width: 8px;
        height: 8px;
    }

    .woo-cal-dots {
        gap: 4px;
    }
}

/* "Larger on a phone", the Home page's Getting started cards: icons as big as the bottom bar's, the card's name a size up, the line under it
   the size of a pot's description. */
@media (max-width: 767.98px) {
    .woo-start-head .woo-iconbtn .woo-icon {
        width: 1.9rem;
        height: 1.9rem;
    }

    .woo-start-card .woo-icon {
        width: 1.9rem;
        height: 1.9rem;
    }

    .woo-start-card .woo-card-title {
        font-size: 1.25rem;
    }

    .woo-start-card small {
        font-size: 1.1rem;
    }

    .woo-start-card small .woo-icon {
        width: 1.1em;
        height: 1.1em;
    }
}

/* A filter pill with just an icon in it (the Calendar's List / Calendar switch): still a pill, with the icon in the middle. */
.woo-filter--glyph {
    justify-content: center;
    padding: 0 0.8rem;
}

.woo-filter--glyph .woo-icon {
    width: 1.15rem;
    height: 1.15rem;
}

/* "Larger on a phone": the icon is the size of the bottom bar's icons, in a pill as tall as the text filters */
@media (max-width: 767.98px) {
    .woo-filter--glyph {
        padding: 0 0.9rem;
    }

    .woo-filter--glyph .woo-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* "Larger on a phone", the sheets (the + sheet, thing details, tags, polls...) and the forms in them. Written once for what they all share, so every
   sheet follows: the title and the close button, the tab strip, labels and hints, the boxes you type in, the ticks and choice cards, and the
   buttons. Sizes: title 1.4rem, labels / typing / buttons 1.1rem, hints 1.05rem, ticks 1.6em, close button as big as the bottom bar's icons. */
@media (max-width: 767.98px) {
    .woo-shell-title {
        font-size: 1.4rem;
    }

    /* The close X: its picture is the whole of 1em (a Lucide icon is about half its box), so 1.15rem looks like the 1.9rem icons; the padding keeps
       the area you can press about 46px. */
    .woo-shell-head .btn-close {
        font-size: 1.15rem;
        padding: 0.7rem;
    }

    .woo-shell-body .woo-filter:not(.woo-filter--icon) {
        min-height: 40px;
        padding: 0 1rem;
        font-size: 1.1rem;
    }

    .woo-shell-body .woo-filter--icon svg {
        width: 1.9rem;
        height: 1.9rem;
    }

    .woo-shell-body .form-label {
        font-size: 1.1rem;
    }

    .woo-shell-body .form-text {
        font-size: 1.05rem;
    }

    .woo-shell-body .form-control,
    .woo-shell-body .form-select {
        min-height: 52px;
        font-size: 1.1rem;
    }

    .woo-shell-body textarea.form-control {
        min-height: 6.5rem;
    }

    .woo-shell-body .form-check-input {
        width: 1.6em;
        height: 1.6em;
    }

    .woo-shell-body .form-check-label {
        font-size: 1.1rem;
    }

    .woo-shell-body .woo-choice {
        padding-left: 3rem;
    }

    .woo-shell-body .woo-choice .form-check-input {
        margin-left: -2.15rem;
    }

    .woo-shell-body .woo-choice-title {
        font-size: 1.15rem;
    }

    .woo-shell-body .woo-choice-desc {
        font-size: 1.05rem;
    }

    .woo-shell-body details > summary {
        font-size: 1.1rem;
    }

    .woo-shell-body .woo-alert {
        font-size: 1.05rem;
    }

    .woo-shell-body .btn {
        --bs-btn-font-size: 1.1rem;
        min-height: 52px;
    }
}

/* =========================================================
   "Larger on a phone", everything else. The rules above did the pages one at a time; these do what is left, for every page and sheet at once
   (anything not named here, or that you have not met yet, is a size that still needs adding). Phone width only. The scale used throughout: icons 1.9rem (the bottom bar's), pill and button text 1.1rem, small print 1rem.
   ========================================================= */
@media (max-width: 767.98px) {
    /* Ordinary text (descriptions, paragraphs, table cells): a little over the usual 18px */
    body {
        font-size: 1.1rem;
    }

    .woo-h2 {
        font-size: 1.3rem;
    }

    .woo-small,
    .woo-divider,
    .woo-token,
    .woo-poll-voters,
    .woo-comment-replying,
    .woo-comment-link,
    .woo-mention-chip,
    .woo-comment-quote,
    .woo-colour .woo-badge,
    .woo-colour-preview,
    .woo-colour-example-label {
        font-size: 1rem;
    }

    .woo-comment-time,
    pre.woo-pre {
        font-size: 0.95rem;
    }

    .form-text,
    .woo-choice-desc,
    .woo-note,
    .woo-rate-choice,
    .table {
        font-size: 1.05rem;
    }

    /* The bottom bar's words (only when the bar shows them) and the calendar's longer entries */
    .woo-navlink {
        font-size: 0.88rem;
    }

    .woo-cal-ev {
        font-size: 0.85rem;
    }

    .woo-cal-more {
        font-size: 0.8rem;
    }

    /* Pills of every kind, wherever they are (the rows, pots and Calendar above are just a few of the places): text 1.1rem, icons 1.2825rem */
    .woo-badge:not(.woo-countbadge):not(.woo-navcount):not(.woo-sidecount),
    .woo-chip {
        font-size: 1.1rem;
    }

    .woo-badge:not(.woo-countbadge):not(.woo-navcount):not(.woo-sidecount):has(.woo-icon),
    .woo-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }

    .woo-badge:not(.woo-countbadge):not(.woo-navcount):not(.woo-sidecount) .woo-icon,
    .woo-chip .woo-icon {
        width: 1.2825rem;
        height: 1.2825rem;
    }

    .woo-badge--toggle {
        min-height: calc(1.1rem * 1.55 + 2px);
    }

    /* The tag / choice pills you press in the sheets (tags, people, the colour choices) */
    .woo-pick {
        padding: 0.2rem 1rem;
        font-size: 1.1rem;
    }

    /* Filter pills with words, and the icon-only ones */
    .woo-filter:not(.woo-filter--icon):not(.woo-filter--glyph) {
        min-height: 40px;
        padding: 0 1rem;
        font-size: 1.1rem;
    }

    .woo-filter--icon svg {
        width: 1.9rem;
        height: 1.9rem;
    }

    /* Icon buttons anywhere (the "..." on a row, the arrows, the small ones in sheets): the bottom bar's size */
    .woo-iconbtn .woo-icon {
        width: 1.9rem;
        height: 1.9rem;
    }

    /* ...except the buttons on a thing's row, which keep the size you tried them at (1.35em of the button's .95rem) */
    .woo-row-actions .woo-iconbtn .woo-icon {
        width: 1.2825rem;
        height: 1.2825rem;
    }

    /* Boxes and buttons on every page, not only in the sheets */
    .form-label {
        font-size: 1.1rem;
    }

    .form-control,
    .form-select {
        min-height: 52px;
        font-size: 1.1rem;
    }

    input[type="file"].form-control {
        line-height: 50px;
    }

    textarea.form-control {
        min-height: 6.5rem;
    }

    .form-check-input {
        width: 1.6em;
        height: 1.6em;
    }

    .form-check-label {
        font-size: 1.1rem;
    }

    .btn {
        --bs-btn-font-size: 1.1rem;
        min-height: 52px;
    }

    .btn-sm {
        --bs-btn-font-size: 1.05rem;
        min-height: 44px;
    }

    details > summary {
        font-size: 1.1rem;
    }

    .woo-alert {
        font-size: 1.05rem;
    }

    /* The Identity pages (sign in, create an account...): the same boxes and buttons, a little more space between them */
    .woo-auth .woo-stack {
        gap: 0.9rem;
    }
}

/* A type of thing can have its own background on a pot's page: appsettings "ThingTypes" (e.g. Poll), written onto the row as --woo-type-bg
   (and --woo-type-bg-dark for the dark theme). The background reaches a little past the row either side so the text stays in line with the rest. */
.woo-pot-things .woo-row.has-type-bg {
    margin-left: -0.6rem;
    margin-right: -0.6rem;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
    background: var(--woo-type-bg);
}

[data-bs-theme="dark"] .woo-pot-things .woo-row.has-type-bg {
    background: var(--woo-type-bg-dark, var(--woo-type-bg));
}

/* ...and the plain pills and chips on such a row (type, date, place, done, comment, reactions...) get the page's own background, so the row's colour
   does not show through them: small chips sitting on the colour. Pills with a fill of their own (tags, "New", the switched-on ones) are left alone. */
.woo-pot-things .woo-row.has-type-bg :is(.woo-badge, .woo-chip):not(.woo-badge--tag):not(.woo-badge--mark):not(.woo-badge--shared):not(.woo-badge--potag):not(.woo-badge--good):not(.woo-badge--bad):not(.woo-badge--alert):not(.woo-badge--selected):not([aria-pressed="true"]) {
    background-color: var(--woo-bg);
}

/* The type's icon before a thing's title: the title's own colour, a little smaller than the other icons. The icon and the title are two columns, so a title that wraps stays
   in line with its first word, and the date and place under it (.woo-fact-item has the same icon width and gap) start at the same place. The icon's top margin centres it on the
   title's first line (1.3 line height less the icon's 1.1, halved). */
.woo-titlelink {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
}

.woo-type-icon {
    flex: none;
    display: inline-flex;
    margin-top: 0.1em;
}

/* The title's words (the link, then the marks right after it, so the marks follow the last word and wrap with it). */
.woo-titletext {
    flex: 1 1 auto;
    min-width: 0;
}

/* The icon is outside the link now, so it takes the link's colour itself. */
.woo-titlelink--link .woo-type-icon {
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
}

.woo-type-icon .woo-icon {
    width: 1.1em;
    height: 1.1em;
}

/* The date and the place under a thing's title: plain lines, not pills (the date's link goes to the calendar, the place's to a map), each on a line of its own. Each icon is the
   size of the type icon before the title (1.1 times the title's text, which is 1.05rem, or 1.1rem with Large text on a phone) and the lines have no left padding, so the icons
   sit in a column straight under it. The place is cut short with "..." rather than pushing the row wider than the screen. */
/* The heading over the lines that unfold on a poll's own thing (Poll details): it looks like the Actions and Reactions headings (.woo-rowgroup-title) and takes a line of its own. */
.woo-rowhead {
    flex: 0 0 100%;
    min-width: 0;
}

.woo-fact {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 0.5rem;
    min-width: 0;
}

.woo-fact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    min-width: 0;
    color: inherit;
}

/* Links are underlined everywhere else; these lines only show it on hover (like the title). */
a.woo-fact-item {
    text-decoration: none;
}

a.woo-fact-item:hover {
    color: var(--woo-accent);
    text-decoration: underline;
}

.woo-fact-item .woo-icon {
    flex: none;
    width: 1.155rem;
    height: 1.155rem;
}

/* The reminder bell at the end of the date line (it opens the thing's When tab): solid in the accent colour when you have reminders on the thing, a faint outline when you have none ("Add a reminder"). */
a.woo-fact-bell {
    color: var(--woo-accent);
}

/* Solid (filled in) while you have reminders on the thing; an outline while you have none. */
a.woo-fact-bell:not(.is-empty) .woo-icon {
    fill: currentColor;
}

a.woo-fact-bell.is-empty {
    color: inherit;
    opacity: 0.5;
}

a.woo-fact-bell.is-empty:hover {
    color: var(--woo-accent);
    opacity: 1;
}

/* A poll's own thing: the votes so far as a small bar chart under its title (kept when the thing is folded). A line per choice, a rounded bar with the choice's words on it, its count at the
   right and a fill behind them for its share of the votes; the leaders' fill is stronger. */
.woo-pollchart {
    position: relative;
    flex: 0 0 100%;
    min-width: 0;
    margin: 0.15rem 0;
}

.woo-pollbars {
    display: grid;
    gap: 0.25rem;
}

/* For a member the chart opens the poll: a link stretched over all of it. */
.woo-pollchart-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 1rem;
}

.woo-pollchart-link:hover {
    box-shadow: 0 0 0 1px var(--woo-line-strong);
}

.woo-pollchart-link:focus-visible {
    outline: 2px solid var(--woo-accent);
    outline-offset: 2px;
}

.woo-pollbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.1rem 0.65rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--pot-accent, var(--woo-accent)) 12%, var(--woo-bg)); /* a lighter shade of the pot colour than the votes' fill (the site accent outside a pot) */
    overflow: hidden;
    font-size: 0.78rem; /* the same size as the pills on a phone (a desktop and Larger on a phone are below) */
    line-height: 1.4;
}

.woo-pollbar-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    border-radius: 999px; /* the end of the votes is rounded like the bar (its left end is the bar's own, cut by overflow) */
    background: color-mix(in srgb, var(--pot-accent, var(--woo-accent)) 28%, var(--woo-bg));
}

.woo-pollbar.is-top .woo-pollbar-fill {
    background: color-mix(in srgb, var(--pot-accent, var(--woo-accent)) 45%, var(--woo-bg));
}

/* On a pot page the list carries the viewer's pot colour (--pot-accent / --pot-accent-d, set on .woo-pot-things from PillPalette.AccentStyle), so the chart takes shades of it;
   with no pot colour, or in lists outside a pot, the variables are not set and the site accent is used. The dark set is used in the dark theme. */
[data-bs-theme="dark"] .woo-pollbar {
    background: color-mix(in srgb, var(--pot-accent-d, var(--woo-accent)) 12%, var(--woo-bg));
}

[data-bs-theme="dark"] .woo-pollbar-fill {
    background: color-mix(in srgb, var(--pot-accent-d, var(--woo-accent)) 28%, var(--woo-bg));
}

[data-bs-theme="dark"] .woo-pollbar.is-top .woo-pollbar-fill {
    background: color-mix(in srgb, var(--pot-accent-d, var(--woo-accent)) 45%, var(--woo-bg));
}

.woo-pollbar-label {
    position: relative;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--woo-fg);
}

.woo-pollbar-count {
    position: relative;
    font-variant-numeric: tabular-nums;
    color: var(--woo-fg);
}

.woo-pollbar-more {
    font-size: 0.78rem;
}

.woo-fact-item--place > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .woo-fact-item .woo-icon {
        width: 1.21rem;
        height: 1.21rem;
    }
}

/* The chevron at the right of a thing's title row folds the pills under it (everything in .woo-row-meta not marked woo-keep: the date, the place, a suggested date and place, and a poll's status and result stay) and unfolds them.
   Down chevron while folded, up while showing, like the one on a pot's page. It is the title's colour, and its 44px touch area is pulled out with negative margins so
   it does not make the title row any taller. */
.woo-row-titlebar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.25rem;
}

.woo-row-titlebar > .woo-titlelink {
    flex: 1 1 auto;
    min-width: 0;
}

/* The marks under a thing's date and place (a "New" pill, the done tick, a link, details, photos, a tag, your star, comments, the reactions): small circles, mostly to look at (the tag, star and chat ones open their sheet). The group is at least as tall as a line of the
   title, wraps on to a second line when there are more marks than fit across, and is hidden when empty. */
.woo-row-marks {
    display: inline-flex;
    flex-wrap: wrap; /* more marks than fit across (up to eleven) go on a second line rather than off the edge */
    vertical-align: top;
    white-space: nowrap;
    margin-left: 0;
    align-items: center;
    gap: 0.25rem 0.35rem;
    min-height: calc(1.05rem * 1.3); /* the title's first line: its text size and line height (a mark, as tall as a tag pill, is a little less) */
    max-width: 100%;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--woo-muted);
}

.woo-row-marks:not(:has(*)) {
    display: none;
}

/* On a thing's row the marks are a child of the row itself (like the tags line below them), so they take the whole width, under the picture and the words, with the date and the place above. */
.woo-row.woo-row--split > .woo-row-marks:has(*) {
    display: flex;
    flex: 0 0 100%;
    margin-top: 0.4rem;
}

/* The green "New" pill, first of the marks (the only one that is not a circle). */
.woo-row-marks .woo-newpill {
    flex: none;
}

/* A thing's row (_ItemRow): the title and the date, place and poll lines beside the picture (or the "..." button), then the pills that unfold (.woo-row-more) on a line of their
   own under both, across the whole width of the row. The words column has no starting width (flex-basis 0) so a long title cannot push the picture on to the next line. */
.woo-row.woo-row--split {
    flex-wrap: wrap;
    row-gap: 0;
}

/* Things are as wide as a poll's colour box: a thing reaches 0.6rem out past the list on each side, with its text, pills and strip (a poll already pads 0.6rem back in, inside its colour). A thing that
   is only an offered date on the calendar keeps its own padding and outline. */
.woo-row.woo-row--split:not(.is-offered) {
    margin-left: -0.6rem;
    margin-right: -0.6rem;
}

/* The picture (or the "..." button when there is none) is at the LEFT of a thing, before its words; the tick box that shows while Select is on stays first of all. It comes after the words in
   the markup, so it is moved with order. */
.woo-row.woo-row--split > .woo-row-select {
    order: -2;
}

.woo-row.woo-row--split > .woo-row-side {
    order: -1;
}

/* A poll with no picture has nothing in the picture's column but the "..." button, so the column is left out and the poll (its title and chart) takes the whole width. The title still opens it. */
.woo-row.is-poll > .woo-row-side:has(.woo-row-actions) {
    display: none;
}

/* No line between one thing and the next (the strip along the bottom of each thing marks its end). A thing that is only an offered date on the calendar keeps its dashed outline. */
.woo-row.woo-row--split:not(.is-offered) {
    border-bottom: 0;
}

.woo-row.woo-row--split > .woo-row-main {
    flex: 1 1 0;
}

.woo-row.woo-row--split > .woo-row-more {
    flex: 0 0 100%;
    min-width: 0; /* so a long pill is cut short with "..." rather than making the row wider than the screen */
    margin-top: 0.4rem;
}

/* The pills that unfold are in groups under a small heading each (Actions, Details, Tags, Links), one group under the other; the pills in a group wrap as they did. */
.woo-row.woo-row--split > .woo-row-more {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

.woo-rowgroup {
    min-width: 0;
}

/* The headings over a thing's unfolded groups are the same as the pot's (.woo-potdata-title): 1.05rem, bold, the page's text colour. */
.woo-rowgroup-title {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: inherit;
}

.woo-rowgroup-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.6rem;
    min-width: 0;
}

/* ...and neither part takes any room when it has nothing in it (a thing with no date or place, or a visitor with no pills). */
.woo-row.woo-row--split .woo-row-meta:not(:has(> *)) {
    display: none;
}

/* Each mark (the done tick, your star, a tag) is a small filled circle in the accent colour (the logo's dark purple; the light lavender in the dark theme) with the icon in the colour
   for writing on it (white). The reactions are already circles (see below). Named rowmark because .woo-mark is the logo in the side menu. */
.woo-rowmark {
    --woo-mark-size: calc(0.78rem * 1.55 + 2px); /* as tall as a tag pill under it (.woo-badge: its text size, line height and edge) */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--woo-mark-size);
    height: var(--woo-mark-size);
    border-radius: 50%;
    background: var(--woo-mark-bg, var(--woo-accent)); /* the theme can give the marks their own colour (--woo-mark-bg and --woo-mark-fg) */
    color: var(--woo-mark-fg, var(--woo-on-accent));
    cursor: pointer; /* pressing a mark folds or unfolds the thing (site.js), except the tag, star and chat marks, which open their sheet */
    user-select: none;
}

.woo-rowmark .woo-icon {
    width: 0.83rem;
    height: 0.83rem;
}

.woo-rowmark--done .woo-icon {
    stroke-width: 3;
}

.woo-rowmark--star .woo-icon {
    fill: currentColor;
}

/* The tag, star and chat marks for a member are buttons (they open the tags, rating and comments sheets; .woo-rowmark--act) and are always drawn: filled when there is something, an empty outline (.is-empty) when there is not.
   The hit area is a little bigger than the circle. A dot on the chat mark means someone else has written since you looked. */
.woo-rowmark--act {
    position: relative;
    text-decoration: none;
}

/* The marks sit in the title line, whose links are underlined on hover (.woo-row-title a:hover): a mark never is. */
.woo-row-title .woo-rowmark--act,
.woo-row-title .woo-rowmark--act:hover {
    text-decoration: none;
}

.woo-rowmark--act::before {
    content: "";
    position: absolute;
    inset: -0.25rem;
}

@media (hover: hover) {
    .woo-rowmark--act:hover {
        filter: brightness(1.15);
    }
}

.woo-rowmark--act:focus-visible {
    outline: 2px solid var(--woo-accent);
    outline-offset: 2px;
}

.woo-rowmark.is-empty {
    background: transparent;
    color: var(--woo-muted);
    box-shadow: inset 0 0 0 1px var(--woo-line-strong);
}

.woo-rowmark.is-empty .woo-icon {
    fill: none;
}

/* A mark that is a <button> (the done mark) wears no button edge or padding. */
button.woo-rowmark {
    border: 0;
    padding: 0;
    font: inherit;
}

/* The done mark while it is not done: an empty outline like the others - a plain thin tick, not the green bold one. */
.woo-rowmark--done.is-empty .woo-icon,
[data-bs-theme="dark"] .woo-rowmark--done.is-empty .woo-icon {
    color: inherit;
    stroke-width: 2;
}

.woo-rowmark--act.has-unread::after {
    content: "";
    position: absolute;
    top: -3px;
    right: -3px;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--woo-accent);
    box-shadow: 0 0 0 2px var(--woo-bg);
}

/* The reactions, as Facebook shows them: every type used, in little purple circles that overlap (the most used on top). */
.woo-rowmark--react {
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    isolation: isolate; /* the faces' z-index only orders them among themselves */
}

.woo-react-faces {
    display: inline-flex;
    align-items: center;
}

.woo-react-face {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: var(--woo-mark-bg, var(--woo-accent)); /* each face is a circle like the other marks; the ring in the page colour keeps overlapping faces apart */
    box-shadow: 0 0 0 2px var(--woo-bg);
    font-size: 0.8rem;
    line-height: 1;
    overflow: hidden; /* a wide emoji glyph (Windows) stays inside its circle */
}

.woo-react-face + .woo-react-face {
    margin-left: -0.3rem;
}

/* In the reactions mark the faces are as big as the other marks. */
.woo-rowmark--react .woo-react-face {
    width: var(--woo-mark-size);
    height: var(--woo-mark-size);
    font-size: 0.88rem;
}

/* A face for a reaction you have left has a ring in the accent colour outside the page-colour ring. */
.woo-react-face.is-mine {
    box-shadow: 0 0 0 2px var(--woo-bg), 0 0 0 3.5px var(--woo-accent);
}

/* The round faces of the reactions mark keep only the page-colour ring that keeps overlapping faces apart: yours has no accent ring outside it. The reaction pills in the unfolded part are not touched. */
.woo-rowmark--react .woo-react-face.is-mine {
    box-shadow: 0 0 0 2px var(--woo-bg);
}

/* The reactions mark for a member is a button (.woo-rowmark--act, opens the reactions sheet): the faces while there are reactions, a small smile-plus in an empty outline while there are none. */
.woo-rowmark--react.woo-rowmark--act > .woo-icon {
    display: none;
}

.woo-rowmark--react.woo-rowmark--act.is-empty {
    width: var(--woo-mark-size);
    height: var(--woo-mark-size);
    border-radius: 50%;
}

.woo-rowmark--react.woo-rowmark--act.is-empty > .woo-icon {
    display: block;
}

.woo-rowmark--react.woo-rowmark--act.is-empty > .woo-react-faces {
    display: none;
}

/* A bigger title with Large text on a phone: the marks follow it. */
@media (max-width: 767.98px) {
    .woo-row-marks {
        min-height: calc(1.1rem * 1.55 + 2px); /* as tall as a tag pill in Large text (text 1.1rem) */
        font-size: 0.9rem;
    }

    .woo-rowmark {
        --woo-mark-size: calc(1.1rem * 1.55 + 2px);
    }

    .woo-rowmark .woo-icon {
        width: 1.15rem;
        height: 1.15rem;
    }

    /* The reactions mark is as wide as its faces, not one circle (the rule above is more specific than .woo-rowmark--react). */
    .woo-rowmark--react {
        width: auto;
        height: auto;
    }

    .woo-rowmark--react.is-empty {
        width: var(--woo-mark-size);
        height: var(--woo-mark-size);
    }

    .woo-react-face {
        width: 1.35rem;
        height: 1.35rem;
        font-size: 0.9rem;
    }

    .woo-rowmark--react .woo-react-face {
        width: var(--woo-mark-size);
        height: var(--woo-mark-size);
        font-size: 1.1rem;
    }
}

.woo-rowtoggle {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin: -0.7rem -0.4rem -0.7rem 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: none;
    color: inherit;
    text-decoration: none;
}

.woo-rowtoggle--link {
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
}

.woo-rowtoggle:hover {
    background: var(--woo-surface);
}

/* One down chevron, turned to point right while the thing is folded - the same as the side menu's (.woo-sidetoggle.collapsed). */
.woo-rowtoggle .woo-icon {
    transition: transform 0.15s ease;
}

.woo-rowtoggle[aria-expanded="false"] .woo-icon {
    transform: rotate(-90deg);
}

@media (prefers-reduced-motion: reduce) {
    .woo-rowtoggle .woo-icon {
        transition: none;
    }
}

/* A thing's tags, in the part that shows when it is folded: a line of pills of their own, under the date, place and poll lines. */
.woo-rowtags {
    display: flex;
    flex: 0 0 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.35rem;
    min-width: 0;
    margin: 0.15rem 0;
}

/* On a thing's row the tags line is a child of the row itself (not of the words beside the picture), so it takes the whole width, under the picture and the words, like the pills that unfold. */
.woo-row.woo-row--split > .woo-rowtags {
    margin-top: 0.4rem;
}

/* The strip that folds and unfolds: along the bottom of a pot's heading (data-pills-toggle) and of each thing (data-row-toggle), full width, with an up chevron while what it folds is showing
   and a down chevron while it is folded (aria-expanded decides which of the two is drawn). Its fill is a see-through shade of what is under it - darker in the light theme, lighter in the
   dark - so it is a lighter or darker version of the pot's colour (or of the picture, or of the page when the pot has no colour). */
.woo-foldbar {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 100%;
    width: 100%;
    min-height: 32px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    cursor: pointer;
}

[data-bs-theme="dark"] .woo-foldbar {
    background: rgba(255, 255, 255, 0.12);
}

@media (hover: hover) {
    .woo-foldbar:hover {
        background: rgba(0, 0, 0, 0.15);
    }

    [data-bs-theme="dark"] .woo-foldbar:hover {
        background: rgba(255, 255, 255, 0.2);
    }
}

.woo-foldbar:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -3px;
}

.woo-foldbar .woo-icon {
    width: 1.3rem;
    height: 1.3rem;
}

.woo-foldbar .woo-fold-down,
.woo-foldbar[aria-expanded="false"] .woo-fold-up {
    display: none;
}

.woo-foldbar[aria-expanded="false"] .woo-fold-down {
    display: inline-block;
}

.woo-foldbar--row {
    height: 24px; /* fixed, like the pot heading's strip, so the chevron cannot make it taller */
    min-height: 0;
    margin-top: 0.4rem;
    border-radius: 0;
    font-size: 0.95rem;
    color: var(--woo-muted);
}

/* A thing with a background of its own (a type's colour on a pot's page, e.g. a poll) or an outline (an offered date on the calendar) pads 0.6rem each side and 0.55rem under: its strip is pulled
   out by that padding so it runs to the edges of the colour and to the bottom of it. */
.woo-pot-things .woo-row.has-type-bg > .woo-foldbar--row,
.woo-row.is-offered > .woo-foldbar--row {
    flex-basis: calc(100% + 1.2rem);
    width: calc(100% + 1.2rem);
    margin: 0.4rem -0.6rem -0.55rem;
}

/* On a pot's page the strip is the last thing in the heading, across its whole width and square-edged. A coloured or picture heading is a full-width header with square corners
   (see "On a phone a pot's heading..." and "The same on a desktop" further down, which give its padding): the strip is pulled out to the box's edges by that padding there, and the box's
   own margin is the gap under it. A pot with no colour has no box. The strip's chevron is the size of the heading's icons (the icon buttons are 0.95rem text with a 1.35em icon;
   "larger on a phone" makes those 1.9rem). */
.woo-foldbar--pot {
    height: 24px; /* a fixed height, so the chevron (1.9rem in "larger on a phone") cannot make the strip taller: it is centred and the glyph is only half the height of its box */
    min-height: 0;
    margin: 0.25rem 0 0.75rem;
    border-radius: 0;
    font-size: 0.95rem;
}

.woo-foldbar--pot .woo-icon,
.woo-foldbar--row .woo-icon {
    width: 1.35em;
    height: 1.35em;
}

@media (max-width: 767.98px) {
    .woo-foldbar--pot .woo-icon,
    .woo-foldbar--row .woo-icon {
        width: 1.9rem;
        height: 1.9rem;
    }
}

.woo-pot-head--bg > .woo-foldbar--pot,
[data-bs-theme="dark"] .woo-pot-head--bg > .woo-foldbar--pot {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
}

@media (hover: hover) {
    .woo-pot-head--bg > .woo-foldbar--pot:hover,
    [data-bs-theme="dark"] .woo-pot-head--bg > .woo-foldbar--pot:hover {
        background: rgba(0, 0, 0, 0.42);
    }
}

/* !important because the larger-on-a-phone rules give pills with an icon "display: inline-flex" with a higher specificity. */
.woo-row.is-folded .woo-row-meta > :not(.woo-keep),
.woo-row.is-folded .woo-row-meta:not(:has(> .woo-keep)) {
    display: none !important;
}

/* A thing's title is shown in bold wherever a thing is listed (a pot, To sort, the calendar, search results). */
.woo-thing-title {
    font-weight: 600;
}

/* The trophy on a closed poll's result (its line under the title; a pill in older places) is gold. */
.woo-badge--winner .woo-icon,
.woo-fact-item--winner .woo-icon {
    color: #d49a00;
    opacity: 1;
}

[data-bs-theme="dark"] .woo-badge--winner .woo-icon,
[data-bs-theme="dark"] .woo-fact-item--winner .woo-icon {
    color: #f5c518;
}

/* Larger on a phone: the bigger tick boxes made a switch as wide as it is tall (it looked like a radio button).
   Keep it the same shape as the normal switch (2 : 1.4), scaled to the new height. */
@media (max-width: 767.98px) {
    .form-switch .form-check-input {
        width: 2.3em;
    }
}

/* Settings > Appearance: the "Use defaults" / "Use custom ..." radio buttons and the Delete / Add to pot tick boxes. Laid out in a row each (button, then words, centred on
   each other) so a bigger button can't hang below its line or touch the next one. */
.woo-checkrows .form-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 0;
    margin-bottom: 0.6rem;
    padding-left: 0;
}

.woo-checkrows .form-check:last-child {
    margin-bottom: 0;
}

.woo-checkrows .form-check-input {
    float: none;
    flex: none;
    margin: 0;
}

.woo-checkrows .form-check-label {
    padding-left: 0;
}

/* ---- Pot page: the Order button (opens the Order sheet) ---- */

/* No things listed, nothing to put in order. */
body:not(:has([data-select-scope] .woo-row)) .woo-sortpill {
    display: none !important;
}

/* ---- Sections in a pot ---- */

/* A section: a header that folds away, with the things in it (and the sections inside it) underneath. Sections inside sections are
   indented, with a thin line down their left edge; less on a phone. */
.woo-section {
    margin-top: 0.4rem;
}

.woo-section-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    border-bottom: 1px solid var(--woo-line-strong);
}

.woo-section-head::-webkit-details-marker {
    display: none;
}

/* The little arrow: points right while folded, down while open. */
.woo-section-head::before {
    content: "";
    flex: none;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.15s ease;
}

.woo-section[open] > .woo-section-head::before {
    transform: rotate(45deg);
}

.woo-section-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* The count after a section's name is not bold like the name (the header's weight would otherwise reach it). */
.woo-section-count {
    font-weight: 400;
}

/* The little link in a section's header that opens just that section. */
.woo-section-open {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.3rem;
    color: var(--woo-muted);
    text-decoration: none;
}

.woo-section-open:hover {
    color: var(--woo-accent);
}

/* The "change this section" icon sits right after the section's name (not pushed to the right like the "+"), at the size of the icons in a pot's pills (.95em of a pill's 0.78rem text). */
.woo-section-edit {
    margin-left: 0;
    font-size: 0.78rem;
}

.woo-section-edit .woo-icon {
    width: 0.95em;
    height: 0.95em;
}

/* The way back when one section is opened on its own: Pot > Packing > Kids. */
.woo-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
    margin: 0 0 0.6rem;
}

.woo-crumbs-sep {
    color: var(--woo-muted);
}

.woo-section-body > .woo-section {
    margin-left: 0.9rem;
    padding-left: 0.6rem;
    border-left: 2px solid var(--woo-line);
}

@media (max-width: 767.98px) {
    .woo-section-body > .woo-section {
        margin-left: 0.25rem;
        padding-left: 0.4rem;
    }
}

/* The sheet that arranges them. */
.woo-sectionlist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woo-sectionlist-item {
    padding: 0.5rem 0 0.5rem calc(var(--depth, 0) * 1.1rem);
    border-bottom: 1px solid var(--woo-line);
}

.woo-sectionlist-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.woo-sectionlist-name {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.woo-sectionlist-move {
    flex: none;
}

/* The thin chevrons on the move up / move down buttons: the same arrowhead as on a fold on the thing's sheet. */
.woo-tri {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

.woo-tri--up {
    transform: translateY(0.12rem) rotate(-135deg);
}

.woo-tri--down {
    transform: translateY(-0.12rem) rotate(45deg);
}

.woo-sectionlist-edit {
    margin-top: 0.4rem;
}

/* Details on a thing: name and value pairs on the open thing's sheet, and the small marker on a list row that it has some. */
.woo-detaillist {
    list-style: none;
    margin: 0 0 0.4rem;
    padding: 0;
}

.woo-detaillist > li {
    border-bottom: 1px solid var(--woo-line);
}

.woo-detailrow > summary,
.woo-detailrow-plain {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0;
    cursor: pointer;
}

.woo-detailrow-plain {
    cursor: default;
}

.woo-detail-name {
    color: var(--woo-muted);
    font-weight: 600;
}

.woo-detail-value {
    text-align: right;
    overflow-wrap: anywhere;
}

.woo-detailedit {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    padding-bottom: 0.5rem;
}

.woo-detailform {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    flex: 1 1 auto;
    min-width: 0;
}

.woo-detailform .btn {
    justify-self: start;
}

/* An existing link or detail on its sheet (Items/Links, Items/ItemDetails): a box with what it is and its Edit and Remove buttons; while it is being changed its fields open under it,
   full width, each with a label. */
.woo-editcard {
    border: 1px solid var(--woo-line);
    border-radius: 0.5rem;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.6rem;
}

.woo-editcard.is-editing {
    border-color: var(--woo-accent);
}

.woo-editcard-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
}

.woo-editcard-text {
    flex: 1 1 10rem;
    min-width: 0;
}

.woo-editcard-name {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.woo-editcard-sub {
    display: block;
    color: var(--woo-muted);
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}

.woo-editcard-actions {
    display: flex;
    gap: 0.4rem;
    flex: 0 0 auto;
    margin-left: auto;
}

/* A detail's box on the Details sheet: the name and the value on one line (as on the thing's own page), the Edit and Remove buttons under them. */
.woo-editcard-head--stack {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
}

.woo-editcard-head--stack .woo-detailrow-plain {
    padding: 0;
}

.woo-editcard-head--stack .woo-editcard-actions {
    margin-left: 0;
}

.woo-editcard-form {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--woo-line);
}

/* "Add a detail" at the foot of the Details tab: the summary is drawn as a button and opens the form under it. */
.woo-adddetail > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

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

.woo-adddetail[open] > summary {
    margin-bottom: 0.75rem;
}

/* A detail on the Details tab, changed where it stands: the name on the top row with the tag pin at its right, the value box under it, and the Save, Edit and Remove icons beside the box.
   The icons are bare (no box or border) to save room; they are still buttons, so they keep their focus ring and a hover tint. */
.woo-detailinline-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.woo-detailinline-tools {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.woo-detailinline-head .woo-detail-name a {
    color: inherit;
    text-decoration: none;
}

.woo-detailinline-head .woo-detail-name a:hover {
    text-decoration: underline;
}

/* The small external-link mark after a link's label, and the podium that marks the main link. */
.woo-detailinline-head .woo-detail-name a .woo-icon,
.woo-mainlink .woo-icon {
    width: 1rem;
    height: 1rem;
    margin-left: 0.35rem;
    vertical-align: -0.15em;
}

.woo-mainlink {
    color: var(--woo-accent);
}

.woo-detailinline-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

/* The value box, with the dropdown above it when the detail has a list of choices (the "Other..." box then shows underneath the dropdown). The icons line up with its first control. */
.woo-detailinline-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1 1 auto;
    min-width: 0;
}

.woo-detailinline-row .woo-editcard-actions {
    margin-left: 0;
    gap: 0.1rem;
}

/* A detail on a phone (.woo-detailinline--inhead, on the Details tab only): the Save, Edit and Remove icons move up into the name's row, just before the pin, and the value box has the row under it to
   itself - two rows to a detail instead of three, and a full-width box. The head and the row are taken out of the way (display: contents) so the name, the three icons, the pin and the box can be
   placed in one grid: name | icons | pin on the first row, the box across the second. Wider screens keep the icons beside the box. */
@media (max-width: 767.98px) {
    .woo-detailinline--inhead {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        column-gap: 0.1rem;
        row-gap: 0.25rem;
    }

    .woo-detailinline--inhead > .woo-detailinline-head,
    .woo-detailinline--inhead > .woo-detailinline-row {
        display: contents;
    }

    .woo-detailinline--inhead .woo-detailinline-head > .woo-detail-name {
        grid-column: 1;
        grid-row: 1;
    }

    .woo-detailinline--inhead .woo-detailinline-row .woo-editcard-actions {
        grid-column: 2;
        grid-row: 1;
    }

    .woo-detailinline--inhead .woo-detailinline-row .woo-editcard-actions .btn {
        min-height: 2.25rem;
        padding: 0.15rem 0.4rem;
    }

    .woo-detailinline--inhead .woo-detailinline-head > .btn {
        grid-column: 3;
        grid-row: 1;
    }

    .woo-detailinline--inhead .woo-detailinline-field {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

.woo-detailinline .btn {
    border: 0;
    background: transparent;
    color: var(--woo-muted);
    padding: 0.4rem;
    line-height: 1;
}

.woo-detailinline-head .btn {
    min-height: 2.25rem;
    padding: 0.15rem 0.4rem;
}

.woo-detailinline .btn:hover,
.woo-detailinline .btn:focus-visible {
    background: color-mix(in srgb, currentColor 12%, transparent);
    color: var(--woo-fg);
}

/* A pinned detail or link: the same pin, in green (a lighter green on the dark theme) and filled in. */
.woo-detailinline .btn.is-on {
    color: #1a7f37;
}

.woo-detailinline .btn.is-on .woo-icon {
    fill: currentColor;
}

[data-bs-theme="dark"] .woo-detailinline .btn.is-on {
    color: #3fb950;
}

/* The pin under the buttons on the Create a new list / Join a shared list sheet: "Pin to My lists" is ordinary text and the pin after it is the button, drawn as a pinned detail's pin is
   (a plain grey pin; green and solid once pinned). */
.woo-pinline {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.woo-pinbtn {
    border: 0;
    background: transparent;
    color: var(--woo-muted);
    padding: 0.4rem;
    line-height: 1;
    border-radius: 0.375rem;
}

.woo-pinbtn:hover,
.woo-pinbtn:focus-visible {
    background: color-mix(in srgb, currentColor 12%, transparent);
    color: var(--woo-fg);
}

.woo-pinbtn.is-on {
    color: #1a7f37;
}

.woo-pinbtn.is-on .woo-icon {
    fill: currentColor;
}

[data-bs-theme="dark"] .woo-pinbtn.is-on {
    color: #3fb950;
}

/* The structure box of a pot template: plain text where the spacing matters. */
.woo-structure {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9rem;
    white-space: pre;
    overflow-x: auto;
}

/* One line of the "templates offered here" sheet: the template, and the "starts selected" choice at the far end. */
.woo-offerrow {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.25rem 0;
}

/* The pot page's "started from" filter and "add up" choice, above the list. */
.woo-filterbar {
    margin: 0.5rem 0;
    max-width: 20rem;
}

.woo-filterbar .form-select + .form-select {
    margin-top: 0.4rem;
}

/* A section's total for the detail being added up, beside its count. */
.woo-badge--sum {
    margin-left: 0.25rem;
}

/* Photos on a thing's sheet: one row each - the picture, then (for whoever may edit) a caption box and small buttons for up, down, cover and remove. */
.woo-photolist {
    list-style: none;
    margin: 0 0 0.4rem;
    padding: 0;
}

.woo-photorow {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--woo-line);
}

.woo-photorow-pic {
    flex: none;
    display: block;
    line-height: 0;
}

.woo-photorow-pic img {
    width: 5.5rem;
    height: 5.5rem;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--woo-line);
    background: var(--woo-surface);
}

.woo-photorow-main {
    flex: 1 1 auto;
    min-width: 0;
}

.woo-photorow-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.3rem;
}

.woo-photo-caption {
    overflow-wrap: anywhere;
}

.woo-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.35rem;
}

/* The picture on the "remove this photo?" sheet (Items/PhotoRemove). */
.woo-photoremove-pic {
    display: block;
    max-width: 100%;
    max-height: 12rem;
    border-radius: 10px;
    border: 1px solid var(--woo-line);
}

/* Files (documents) on a thing's sheet: one row each - a file icon, the name (a download link) with its size, and a Remove button for whoever may edit. */
.woo-filelist {
    list-style: none;
    margin: 0 0 0.4rem;
    padding: 0;
}

.woo-filerow {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--woo-line);
}

.woo-filerow-icon {
    flex: none;
    display: inline-flex;
    color: var(--woo-muted, inherit);
}

.woo-filerow-main {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* =========================================================
   A pot's picture
   Small beside the name, or (if its owner chose that) behind the whole heading.
   ========================================================= */

.woo-pot-thumb {
    flex: none;
    width: 2.5rem;
    height: 2.5rem;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--woo-line);
    background: var(--woo-surface);
}

/* In the pot's own heading it sits inline, in front of the name */
.woo-pot-thumb--head {
    width: 2.25rem;
    height: 2.25rem;
    margin-right: 0.5rem;
    vertical-align: -0.45rem;
}

/* The pot's tags, under the pot's description (not in the row of pills, so they stay when it is folded): just the tags, with no label; nothing at all when there are none. */
.woo-pot-tagsbar {
    display: block;
    margin-top: 0.25rem;
}

.woo-pot-tagsbar:not(:has(> *)) {
    display: none;
}

/* The pot's icon (its template's, or the one chosen in Settings) at the end of its name in the heading: inline, a little smaller than the text, in the heading's own colour. */
.woo-pot-titleicon {
    display: inline-block;
    margin-left: 0.15rem;
    white-space: nowrap;
}

.woo-pot-titleicon .woo-icon {
    width: 0.85em;
    height: 0.85em;
    vertical-align: -0.1em;
}

/* The pot's icon in its own heading, in front of the name, in a small rounded tile (the same look as the tile on the Pots page strips, at the size of the small picture): the pot's picture if it has one
   (not as the heading background), else its icon (the template's, or the one chosen in Settings), else the plain list icon. The tile is a soft tint of the heading's own text colour. */
.woo-pot-tile {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-right: 0.5rem;
    vertical-align: middle;
    border-radius: 10px;
    background: color-mix(in srgb, currentColor 12%, transparent);
}

.woo-pot-tile .woo-icon {
    width: 1.35rem;
    height: 1.35rem;
    vertical-align: baseline;
}

/* The preview on the Details tab of the pot's Settings */
.woo-pot-picture-preview {
    display: block;
    max-width: 100%;
    max-height: 12rem;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--woo-line);
}

/* The picture behind a heading. A dark wash keeps the white writing readable on a light picture. */
.woo-has-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), var(--woo-bg) center / cover no-repeat;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: #fff;
}

.woo-has-bg .woo-h1,
.woo-has-bg .woo-card-title,
.woo-has-bg a,
.woo-has-bg .woo-card-link,
.woo-has-bg .woo-card-link:hover {
    color: #fff;
}

.woo-has-bg .woo-accent-title {
    border-left-color: #fff;
}

.woo-has-bg .woo-iconbtn {
    color: #fff;
}

.woo-has-bg .woo-iconbtn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.woo-page-head.woo-has-bg {
    margin-bottom: 1rem;
}

/* A pot's own page (and To sort) with its picture behind the WHOLE heading - name, icons, description and pills - not just the name and icons. The picture comes in as --woo-head-img
   (not --woo-bg, which the pills use for their own text colour). The same dark wash as .woo-has-bg keeps the white writing readable; the pills that have a fill of their own
   (tags, "waiting to join", a pill switched on) keep it, the rest turn white. */
.woo-pot-head--bg {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), var(--woo-head-img) center / cover no-repeat;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: #fff;
}

.woo-pot-head--bg .woo-pot-pills {
    margin-bottom: 0 !important; /* Bootstrap's mb-2 on the row needs !important to beat; the heading's own padding gives the space */
}

.woo-pot-head--bg .woo-h1,
.woo-pot-head--bg .woo-iconbtn,
.woo-pot-head--bg .woo-page-desc {
    color: #fff;
}

.woo-pot-head--bg .woo-iconbtn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.woo-pot-head--bg .woo-badge:not(.woo-badge--shared):not(.woo-badge--potag):not(.woo-badge--alert):not(.woo-badge--selected):not(.is-mine):not([aria-pressed="true"]) {
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

.woo-pot-head--bg .woo-badge:not(.woo-badge--shared):not(.woo-badge--potag):not(.woo-badge--alert):not(.woo-badge--selected):not(.is-mine):not([aria-pressed="true"]):hover {
    border-color: #fff;
    color: #fff;
}

/* ---- The thing's sheet: the row of pills (Categories sheet), the action row, the More menu ---- */
.woo-pillrow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.woo-actionrow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 0.75rem;
}

.woo-actionrow > .btn {
    flex: 1 1 auto;
}

.woo-more {
    margin-bottom: 1rem;
}

.woo-more > summary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.3rem 0.9rem;
    border: 1px solid var(--woo-line-strong);
    border-radius: 999px;
    color: var(--woo-fg);
    cursor: pointer;
    list-style: none;
}

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

.woo-more > summary:hover {
    background: var(--woo-surface);
}

.woo-more-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

/* The Add sheet: a pot's section list sits inside the pot's own bordered card, under its name. */
.woo-choice-row {
    display: block;
    cursor: pointer;
}

.woo-choice-sub {
    margin-top: 0.6rem;
    cursor: default;
}

.woo-choice-sub[hidden] {
    display: none;
}

/* =========================================================
   Cards to choose from, the steps of the Add sheet, and the icon picker
   ========================================================= */

/* A row of cards that scrolls sideways on a touch screen (the next one peeks in from the edge) and wraps onto rows where there is a mouse.
   Used for the pot template choice on the New pot sheet and the types on the Add sheet. */
.woo-card-strip {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding: 0.2rem 0.2rem 0.6rem;
    margin: 0 -0.2rem;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

@media (hover: hover) and (pointer: fine) {
    .woo-card-strip {
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

.woo-card-strip[hidden] {
    display: none;
}

/* One row to swipe along, with a mouse as well (the Add sheet's templates) */
@media (hover: hover) and (pointer: fine) {
    .woo-card-strip.woo-card-strip--swipe {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
}

/* The Add sheet's template button, or the chosen template with Change and Remove */
.woo-template-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.woo-template-bar + .woo-card-strip {
    margin-top: 0.6rem;
}

.woo-template-chip {
    padding: 0.2rem 0.8rem;
    border: 1px solid var(--woo-line-strong);
    border-radius: 999px;
    font-weight: 600;
}

/* One card: an icon top-left and a name bottom-left. A button (pot templates, the types on the Add sheet) or a label round a hidden radio (how to add a thing). Chosen = solid, like a solid pill. */
.woo-pick-card {
    position: relative;
    flex: 0 0 auto;
    width: 8rem;
    min-height: 6.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid var(--woo-line-strong);
    border-radius: 16px;
    background: var(--woo-bg);
    color: var(--woo-fg);
    font: inherit;
    text-align: left;
    cursor: pointer;
    scroll-snap-align: start;
}

.woo-pick-card:hover {
    background: var(--woo-surface);
}

.woo-pick-card[aria-pressed="true"],
.woo-pick-card:has(.woo-pick-input:checked) {
    background: var(--woo-accent);
    color: var(--woo-on-accent);
    border-color: var(--woo-solid-edge);
}

.woo-pick-card:focus-visible,
.woo-pick-card:has(.woo-pick-input:focus-visible) {
    outline: 2px solid var(--woo-accent);
    outline-offset: 2px;
}

.woo-pick-icon .woo-icon {
    width: 1.7rem;
    height: 1.7rem;
}

/* A card with no icon (a pot the person chose "Do not show an icon" for): the name stays at the bottom left, where it is under an icon, clear of the "+" at the top right. */
.woo-pick-card--noicon {
    justify-content: flex-end;
}

/* The line under the pot cards (the chosen card's description) keeps room for two lines, so the page does not jump when a one-line description is swapped for a two-line one. */
.woo-note[data-pot-note] {
    min-height: 2.8em;
}

.woo-pick-name {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

/* The radio inside a card is there for keyboards and screen readers; the card is the thing you see. */
.woo-pick-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

/* The Pots list as tiles (appsettings PotList: Tiles): the same tiles as the pot templates, each a link. A grid, so every tile in a row is as tall as the tallest and they line up:
   three across on a phone (two was tried), as many as fit (at least 8rem each) on a wider screen. A tile has room for its icon and up to three lines of name (longer names are cut short; the full name is
   in its title). */
.woo-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.woo-tiles .woo-tile {
    position: relative;
    display: flex;
    min-width: 0;
}

.woo-tiles .woo-pick-card {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    min-height: 6.5rem;
    text-decoration: none;
    /* The name and the icon are one title on the top row (the name first, the icon after it); the space below is for the marks. */
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.4rem;
}

.woo-tiles .woo-pick-card--noicon {
    justify-content: flex-start;
}

.woo-tiles .woo-pick-icon {
    flex: 0 0 auto;
    display: inline-flex;
    order: 2;
}

.woo-tiles .woo-pick-icon .woo-icon {
    width: 1.2rem;
    height: 1.2rem;
}

/* The marks in a tile's bottom right corner (n new, n waiting to join; for To sort, how many are left to sort): laid over the tile, and they do not take presses, so the tile stays the link. */
.woo-tiles .woo-tile-marks {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.25rem;
    pointer-events: none;
}

/* A pot with a colour: the colour's soft fill, edge and text (its own light and dark sets, from PillPalette.AccentStyle). */
.woo-tiles .woo-tile-colour .woo-pick-card {
    background: var(--pot-tile);
    border-color: var(--pot-accent);
    color: var(--pot-tile-fg);
}

.woo-tiles .woo-tile-colour .woo-pick-card:hover {
    background: var(--pot-tile-hover);
}

[data-bs-theme="dark"] .woo-tiles .woo-tile-colour .woo-pick-card {
    background: var(--pot-tile-d);
    border-color: var(--pot-accent-d);
    color: var(--pot-tile-fg-d);
}

[data-bs-theme="dark"] .woo-tiles .woo-tile-colour .woo-pick-card:hover {
    background: var(--pot-tile-hover-d);
}

/* A pot whose owner chose its image as the tile background: the image darkened behind white text, as on a heading with its image as background. */
.woo-tiles .woo-tile-bg .woo-pick-card {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), var(--woo-tile-img) center / cover no-repeat;
    color: #fff;
}

.woo-tiles .woo-tile-bg .woo-pick-card:hover {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), var(--woo-tile-img) center / cover no-repeat;
}

.woo-tiles .woo-pick-name {
    flex: 0 1 auto;
    min-width: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    max-width: 100%;
    font-size: 1rem;
}

@media (max-width: 575.98px) {
    .woo-tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .woo-tiles .woo-pick-card {
        padding: 0.6rem;
    }
}

/* A heading over a row of cards (the Add sheet's types, one row for each group they are listed under). */
.woo-card-heading {
    margin: 0.8rem 0 0.1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--woo-muted);
}

/* The small line under a card's name (the heading it is listed under). */
.woo-pick-sub {
    font-size: 0.75rem;
    line-height: 1.15;
    opacity: 0.8;
}

/* "Reminder", on a type card whose type asks for a date. */
.woo-pick-tag {
    align-self: flex-start;
    margin-top: 0.15rem;
    padding: 0 0.4rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.4;
    opacity: 0.8;
}

/* Once a type is picked the box is called "What is it called?" and the hints about links and photos are not wanted. */
[data-text-block][data-hide-hints] .form-text {
    display: none;
}

/* The Add sheet's Photo and File buttons under the box, and what has been picked: a thumbnail for each photo and a name for each file, each with an x to take it off. */
.woo-attach-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.woo-attach-buttons[hidden] {
    display: none;
}

.woo-attach-buttons .woo-icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.2rem;
    vertical-align: -0.15em;
}

.woo-attach-buttons [hidden] {
    display: none;
}

/* Scan QR: the camera full screen, above the sheet, with a square to aim with and Cancel at the bottom */
.woo-qr {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: #000;
    color: #fff;
}

.woo-qr-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.woo-qr-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(70vw, 18rem);
    aspect-ratio: 1;
    transform: translate(-50%, -60%);
    border: 3px solid #fff;
    border-radius: 18px;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.woo-qr-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, 0.55);
}

.woo-qr-hint {
    margin: 0;
    text-align: center;
}

.woo-attach-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.woo-attach-list:empty {
    display: none;
}

.woo-attach-item {
    position: relative;
}

.woo-attach-item--photo img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: 1px solid var(--woo-line-strong);
    border-radius: 8px;
}

.woo-attach-item--file {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 100%;
    padding: 0.2rem 0.3rem 0.2rem 0.8rem;
    border: 1px solid var(--woo-line-strong);
    border-radius: 999px;
    font-size: 0.9rem;
}

.woo-attach-name {
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.woo-attach-remove {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    padding: 0;
    border: 1px solid var(--woo-line-strong);
    border-radius: 50%;
    background: var(--woo-bg);
    color: var(--woo-fg);
    font: inherit;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.woo-attach-item--photo .woo-attach-remove {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
}

/* The steps of the Add sheet: a bar for each, the ones reached drawn solid. Each is a button, so any step already reached can be gone back to. */
.woo-steps {
    display: flex;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.woo-steps li {
    flex: 1 1 0;
    min-width: 0;
}

.woo-step-dot {
    display: block;
    width: 100%;
    padding: 0.4rem 0 0;
    border: 0;
    border-top: 3px solid var(--woo-line-strong);
    background: none;
    color: var(--woo-muted);
    font: inherit;
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.woo-step-dot[aria-current="step"] {
    border-top-color: var(--woo-accent);
    color: var(--woo-accent);
    font-weight: 700;
}

.woo-step-dot[data-done] {
    border-top-color: var(--woo-accent);
}

.woo-step-title {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.woo-step-title:focus {
    outline: none;
}

.woo-wizard-footer {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.woo-wizard-footer .woo-wizard-next {
    flex: 1 1 auto;
}

/* On the last step there is no Next, so Add takes the room. */
.woo-wizard-footer.is-last .woo-wizard-add {
    flex: 1 1 auto;
}

.woo-wizard-footer [hidden] {
    display: none;
}

/* The buttons are laid out in a grid at every width (phone and desktop), each as wide as it can be:
   first step  - Next, then Create, each full width;
   middle step - Back and Next half width each, then Create full width;
   last step   - Back, then Create, each full width. */
.woo-wizard-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.woo-wizard-footer .woo-wizard-back {
    order: 1;
}

.woo-wizard-footer .woo-wizard-next {
    order: 2;
}

.woo-wizard-footer .woo-wizard-add {
    order: 3;
    grid-column: 1 / -1;
}

/* No Back (first step): Next takes the whole row. No Next (last step): Back does. */
.woo-wizard-footer .woo-wizard-back[hidden] ~ .woo-wizard-next,
.woo-wizard-footer.is-last .woo-wizard-back {
    grid-column: 1 / -1;
}

/* The line under the buttons that says Add saves it now and Next carries on. */
.woo-wizard-hint {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    color: var(--woo-muted);
}

/* A step whose own heading says what the choices' legend would (New pot's "Who can see it?"): the legend stays for screen readers only. */
.woo-hide-legend legend {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* The icon picker on a pot template's form: a grid of small squares, the chosen one solid. */
.woo-icon-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.woo-icon-pick {
    position: relative;
    cursor: pointer;
}

.woo-icon-pick input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.woo-icon-pick span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid var(--woo-line-strong);
    border-radius: 10px;
}

/* A group of icons in the picker: a small heading, then its grid. */
.woo-icon-group + .woo-icon-group {
    margin-top: 0.9rem;
}

.woo-icon-group-name {
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
    color: var(--woo-muted);
}

.woo-icon-pick input:checked + span {
    background: var(--woo-accent);
    color: var(--woo-on-accent);
    border-color: var(--woo-solid-edge);
}

.woo-icon-pick input:focus-visible + span {
    outline: 2px solid var(--woo-accent);
    outline-offset: 2px;
}

/* ---- Without :has() ---- A browser too old for :has() (Chrome before 105, Safari before 15.4) ignores the rules above that use it. site.js (the
   "Browsers without :has()" part) then puts .no-has on <html> and keeps the classes below in step, and these rules do the same jobs. In a browser
   that has :has() the class is never added, so none of this applies. */
.no-has body.woo-no-rows .woo-sortpill,
.no-has body.woo-no-rows [data-select-toggle] {
    display: none !important;
}

.no-has body.woo-has-list-rows .woo-start {
    display: none;
}

.no-has .woo-choice.has-checked {
    border-color: var(--woo-accent);
    box-shadow: inset 0 0 0 1px var(--woo-accent);
}

.no-has .woo-newpot.has-checked .woo-newpot-fields {
    display: block;
}

.no-has .woo-newpot:not(.has-checked) {
    border-color: var(--woo-line-strong);
    box-shadow: none;
}

.no-has .woo-pick-card.has-checked {
    background: var(--woo-accent);
    color: var(--woo-on-accent);
    border-color: var(--woo-solid-edge);
}

.no-has .woo-datefields.is-allday .woo-timefield {
    display: none;
}

.no-has #woo-poll-new:not(.pick-things) .woo-poll-things-only,
.no-has #woo-poll-new:not(.pick-dates) .woo-poll-dates-only,
.no-has #woo-poll-new:not(.pick-other) .woo-poll-other-only,
.no-has #woo-poll-close:not(.close-update) .woo-poll-update-only {
    display: none;
}

/* On a phone a pot's heading (the colour's fill, or its picture) is a full header, not a panel: it reaches the top bar and both edges of the screen, with square corners and no inset edge.
   The column pads 1rem each side and above, so the margins pull the box out by that much and the padding puts the text back where it was. (Delete this block to put the panel back.) */
@media (max-width: 767.98px) {
    html[data-bs-theme] .woo-pot-head--colour,
    html[data-bs-theme] .woo-pot-head--bg {
        margin: -1rem -1rem 1rem;
        padding: 1rem 1rem 0.75rem;
        border-radius: 0;
        box-shadow: none;
    }
}

/* The same on a desktop: the heading reaches the top and both sides of the content column (which pads 1.5rem). On a wide window the column is narrower than the window, so the header is as wide
   as the column. (Delete this block to put the panel back on desktop.) */
@media (min-width: 768px) {
    html[data-bs-theme] .woo-pot-head--colour,
    html[data-bs-theme] .woo-pot-head--bg {
        margin: -1.5rem -1.5rem 1rem;
        padding: 1.5rem 1.5rem 1rem;
        border-radius: 0;
        box-shadow: none;
    }
}

/* The fold strip on those headings runs out to the heading's edges: pulled out by the heading's side padding and the padding under it (phone 1rem and 0.75rem, desktop 1.5rem and 1rem). */
@media (max-width: 767.98px) {
    html[data-bs-theme] .woo-pot-head--colour > .woo-foldbar--pot,
    html[data-bs-theme] .woo-pot-head--bg > .woo-foldbar--pot {
        width: calc(100% + 2rem);
        margin: 0.5rem -1rem -0.75rem;
    }
}

@media (min-width: 768px) {
    html[data-bs-theme] .woo-pot-head--colour > .woo-foldbar--pot,
    html[data-bs-theme] .woo-pot-head--bg > .woo-foldbar--pot {
        width: calc(100% + 3rem);
        margin: 0.5rem -1.5rem -1rem;
    }
}

/* =========================================================
   Signed-out home page (Pages/Index.cshtml): the heading, the sign-up buttons and the carousel of example stories.
   Each story is a coloured card (woo-start-colour, the same colours and light / dark sets as Getting started) with a little picture of a pot under it.
   ========================================================= */

.woo-home-title {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0.25rem 0 0.75rem;
}

.woo-home-lead {
    font-size: 1.1rem;
    color: var(--woo-muted);
    margin-bottom: 1.25rem;
}

/* Create an account / Sign in: stacked and full width on a phone, side by side from a little wider */
.woo-home-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.woo-home-cta--end {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

@media (min-width: 576px) {
    /* Side by side, both buttons as wide as the wider of the two */
    .woo-home-cta {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        width: fit-content;
    }
}

.woo-home-cta .btn {
    font-size: 1.1rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

/* All the stories sit in one grid cell, so the carousel is as tall as the tallest and the page does not jump as they change; only the shown one is visible. */
.woo-home-carousel .carousel-inner {
    display: grid;
}

.woo-home-carousel .carousel-item {
    grid-area: 1 / 1;
    display: block;
    float: none;
    margin-right: 0;
    visibility: hidden;
}

.woo-home-carousel .carousel-item.active,
.woo-home-carousel .carousel-item-next,
.woo-home-carousel .carousel-item-prev {
    visibility: visible;
}

.woo-home-slide {
    display: block;
    height: 100%;
    margin-bottom: 0;
    padding: 1.1rem 1.1rem 1.2rem;
    cursor: default;
}

/* The welcome card (first in the carousel): plain, not a pot colour. Its content sits in the middle, whatever height the tallest story makes the carousel. */
.woo-home-slide--intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 1.25rem;
    background: var(--woo-bg, transparent);
}

.woo-home-slide--intro,
.woo-home-slide--intro:hover {
    border-color: transparent;
}

/* A story on a plain card, like the welcome card: no colour and no edge (the page colour behind it) */
.woo-home-slide--plain,
.woo-home-slide--plain:hover {
    background: var(--woo-bg, transparent);
    border-color: transparent;
}

/* A wide picture at the foot of a story, as wide as the card */
.woo-home-slide-wide {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 1rem;
}

.woo-home-slide--intro .woo-home-title {
    margin-top: 0;
}

.woo-home-slide--intro .woo-home-lead {
    margin: 0 0 1.25rem;
}

.woo-home-slide--intro .woo-home-cta {
    margin-bottom: 0;
}

/* From a little wider the two buttons sit side by side, centred; on a phone they are stacked and full width */
@media (min-width: 576px) {
    .woo-home-slide--intro .woo-home-cta {
        margin-left: auto;
        margin-right: auto;
    }
}

.woo-home-slide p {
    margin: 0.5rem 0 0;
}

/* A story is not a link, so it does not change on hover the way a Getting started card does */
.woo-card.woo-home-slide.woo-start-colour:hover {
    background: var(--pot-tile);
}

[data-bs-theme="dark"] .woo-card.woo-home-slide.woo-start-colour:hover {
    background: var(--pot-tile-d);
}

/* A story's title is the same size as the welcome heading (.woo-home-title); its icon sits at the end of the title, kept on the line with the last word, and grows with it */
.woo-home-slide-head {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.woo-home-slide-title .woo-icon {
    width: 0.9em;
    height: 0.9em;
    vertical-align: -0.1em;
}

.woo-home-slide-title {
    margin: 0;
    font-size: inherit;
    font-weight: 700;
    line-height: 1.15;
}

.woo-home-slide .woo-home-problem {
    margin-top: 0.75rem;
}

/* A story with a picture (Films and TV): the words on one side and the picture on the other from a little wider; on a phone the picture sits under the words, kept small */
.woo-home-slide-split {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.woo-home-slide-pic {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 280px;
    height: auto;
}

@media (min-width: 576px) {
    .woo-home-slide-split {
        flex-direction: row;
        gap: 1.25rem;
    }

    .woo-home-slide-text {
        flex: 1 1 48%;
    }

    .woo-home-slide-pic {
        flex: 0 0 48%;
        width: 48%;
        max-height: none;
    }
}

/* Three core benefits beneath the carousel. Neutral cards let the Woomoo purple accents do the work. */
.woo-home-panels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin: 1.5rem 0 2.5rem;
}

@media (min-width: 768px) {
    .woo-home-panels {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
}

.woo-home-panel {
    margin-bottom: 0;
    padding: 1.25rem;
    min-height: 0;
    cursor: default;
}

.woo-home-panel-icon,
.woo-home-sort-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.85rem;
    color: var(--woo-accent);
    background: color-mix(in srgb, var(--woo-accent) 12%, transparent);
    border-radius: 0.85rem;
}

.woo-home-panel-icon .woo-icon,
.woo-home-sort-icon .woo-icon {
    width: 1.45rem;
    height: 1.45rem;
}

.woo-home-panel p {
    margin: 0.55rem 0 0;
    color: var(--woo-muted);
    hyphens: auto;
    overflow-wrap: break-word;
}

.woo-home-panel-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
}

.woo-card.woo-home-panel:hover {
    transform: none;
}

/* Editorial sections pair the explanation with each transparent illustration. */
.woo-home-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 1.25rem;
    margin: 2.5rem 0;
}

.woo-home-feature-copy {
    min-width: 0;
}

.woo-home-feature .woo-h2 {
    margin-top: 0;
    margin-bottom: 0.85rem;
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    line-height: 1.2;
}

.woo-home-feature-copy p {
    color: var(--woo-muted);
}

.woo-home-feature-copy p:last-child {
    margin-bottom: 0;
}

.woo-home-feature .woo-home-figure {
    width: 100%;
    max-width: 34rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .woo-home-feature {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: clamp(1.5rem, 4vw, 3.5rem);
        margin: 3.5rem 0;
    }

    .woo-home-feature--reverse {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    }

    .woo-home-feature--reverse .woo-home-feature-copy {
        order: 2;
    }

    .woo-home-feature--reverse .woo-home-figure {
        order: 1;
    }
}

.woo-home-sort {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 2.5rem 0 1rem;
    padding: 1.25rem;
    border: 1px solid var(--woo-line, var(--bs-border-color));
    border-radius: 1rem;
    background: var(--woo-surface, var(--bs-tertiary-bg));
}

.woo-home-sort-icon {
    flex: 0 0 auto;
    margin: 0;
}

.woo-home-sort h2 {
    margin: 0 0 0.45rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.woo-home-sort p {
    margin: 0;
    color: var(--woo-muted);
}

@media (max-width: 575.98px) {
    .woo-home-sort {
        gap: 0.75rem;
        padding: 1rem;
    }
}

/* The dots under the stories */
.woo-home-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem 0 0.25rem;
}

.woo-home-carousel .carousel-indicators {
    position: static;
    margin: 0;
    justify-content: center;
}

.woo-home-carousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    margin: 0 6px;
    border: 0;
    border-radius: 50%;
    background-color: var(--woo-line-strong);
    opacity: 1;
}

.woo-home-carousel .carousel-indicators .active {
    background-color: var(--woo-accent);
}

/* The picture of things flowing into a pot, under "Start with a pot": it has a see-through background, so it sits on the page in light and dark */
.woo-home-figure {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0.5rem auto 1rem;
}

/* The lock / people / globe icons written into the words under the stories */
.woo-home-inline {
    width: 1.1em;
    height: 1.1em;
    vertical-align: -0.2em;
}

/* The Pick one sheet (Pages/Collections/Pick.cshtml): the thing chosen, as a card with its picture (if it has one) beside its name. */
.woo-chosen {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0;
    padding: 1rem 1.1rem;
}

.woo-chosen-thumb {
    flex: none;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
}

.woo-chosen-text {
    min-width: 0;
}

.woo-chosen-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

/* A section's name over its things in the new poll sheet's list (only in a pot that has sections). */
.woo-poll-things-group {
    margin: 0.6rem 0 0.2rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--woo-muted);
}

.woo-poll-things-group:first-child {
    margin-top: 0;
}

/* Add: what the first step found for a link - its picture, a Title that can be changed, and the type / date / place it names (shown only; changed on the next steps) */
.woo-addpreview {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    border: 1px solid var(--woo-line-strong);
    border-radius: 12px;
    padding: 0.8rem;
    margin-bottom: 1rem;
}

.woo-addpreview[hidden],
.woo-addpreview-pic[hidden],
.woo-addpreview-facts[hidden] {
    display: none;
}

.woo-addpreview-pic {
    flex: 0 0 auto;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 10px;
    overflow: hidden;
}

.woo-addpreview-pic img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.woo-addpreview-body {
    flex: 1;
    min-width: 0;
}

.woo-addpreview-type {
    margin-top: 0.6rem;
}

.woo-addpreview-type[hidden] {
    display: none;
}

/* Plain words with a type spotted in them: the box is just the Type */
.woo-addpreview--typeonly [data-preview-title-block],
.woo-addpreview--typeonly .woo-addpreview-pic {
    display: none;
}

.woo-addpreview--typeonly .woo-addpreview-type {
    margin-top: 0;
}

.woo-addpreview-facts {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.6rem;
    font-size: 0.9rem;
}

/* One fact: its label (Date, Time, Location) in a fixed column, muted, then what was found */
.woo-addpreview-fact {
    display: flex;
    gap: 0.75rem;
}

.woo-addpreview-label {
    flex: 0 0 5rem;
    color: var(--woo-muted);
}
