/* The artist's app only (index.html): its frame, its colours and everything built on them. The admin, the clients' booking
   page and the privacy page keep app.css alone */
/* =====================================================================================================================
   THE APP FRAME (docs/app-structure-spec.txt): a phone app's own type, grouped lists instead of cards, a bar on top with
   the screen's name, five places at the foot, sheets for what is decided, one accent the person picks
   ===================================================================================================================== */
:root {
  --canvas: #f2f3f5; --bg: #f2f3f5; --surface: #ffffff; --group: #ffffff; --soft: #f2f3f5;
  --ink: #111214; --muted: #5c6066; --faint: #8a8f96; --line: #dadde1; --line-strong: #c3c7cc; --field-line: #7a8087;
  --track: #e9ebee; --fill: #e9ebee; --day-fill: #111214; --on-day: #ffffff; --day-past: #e9ebee;
  --accent: #1f5fd0; --accent-fill: #1f5fd0; --accent-soft: #e6eefb; --on-accent: #ffffff;
  --ok: #1b7340; --ok-soft: #e3f2e8; --warn: #8a5300; --warn-soft: #fbf0da; --bad: #c0281f; --bad-soft: #fbe7e5;
  --panel: #ffffff; --panel-ink: #111214; --panel-muted: #5c6066; --panel-line: #dadde1; --panel-track: #e9ebee; --panel-accent: #1f5fd0;
  --panel-ok: #1b7340; --panel-warn: #8a5300; --panel-bad: #c0281f;
  --toast-bg: #111214; --toast-ink: #ffffff; --toast-line: #111214;
  --r: 10px; --r-l: 12px; --gutter: 16px; --pad: 16px; --tabs-h: 50px;
  --sys: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, Roboto, "Segoe UI", "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #000000; --bg: #000000; --surface: #1c1c1f; --group: #1c1c1f; --soft: #2c2c30;
    --ink: #f3f4f5; --muted: #a6abb2; --faint: #7f858d; --line: #2e3035; --line-strong: #3f4248; --field-line: #80868e;
    --track: #2c2f34; --fill: #2c2f34; --day-fill: #f3f4f5; --on-day: #111214; --day-past: #2c2f34;
    --accent: #7faeff; --accent-fill: #2f6fe0; --accent-soft: #15233d; --on-accent: #ffffff;
    --ok: #63c98b; --ok-soft: #12301e; --warn: #e8b056; --warn-soft: #33270f; --bad: #ff8a80; --bad-soft: #3a1715;
    --panel: #1c1c1f; --panel-ink: #f3f4f5; --panel-muted: #a6abb2; --panel-line: #2e3035; --panel-track: #2c2f34; --panel-accent: #7faeff;
    --panel-ok: #63c98b; --panel-warn: #e8b056; --panel-bad: #ff8a80;
    --toast-bg: #f3f4f5; --toast-ink: #111214; --toast-line: #f3f4f5;
  }
}
:root[data-tint="teal"] { --accent: #0b7068; --accent-fill: #0b7068; --accent-soft: #e1f1ef; --panel-accent: #0b7068; }
:root[data-tint="green"] { --accent: #256f3a; --accent-fill: #256f3a; --accent-soft: #e4f1e7; --panel-accent: #256f3a; }
:root[data-tint="rust"] { --accent: #a8431a; --accent-fill: #a8431a; --accent-soft: #f8e8e1; --panel-accent: #a8431a; }
:root[data-tint="graphite"] { --accent: #3a4048; --accent-fill: #3a4048; --accent-soft: #e7e9ec; --panel-accent: #3a4048; }
@media (prefers-color-scheme: dark) {
  :root[data-tint="teal"]:not([data-theme="light"]) { --accent: #5cc7bc; --accent-fill: #0f7f77; --accent-soft: #0f2a28; --panel-accent: #5cc7bc; }
  :root[data-tint="green"]:not([data-theme="light"]) { --accent: #73c98a; --accent-fill: #2b7d43; --accent-soft: #13291a; --panel-accent: #73c98a; }
  :root[data-tint="rust"]:not([data-theme="light"]) { --accent: #f0996f; --accent-fill: #b64c20; --accent-soft: #33190f; --panel-accent: #f0996f; }
  :root[data-tint="graphite"]:not([data-theme="light"]) { --accent: #c3c9d1; --accent-fill: #c3c9d1; --accent-soft: #26292e; --on-accent: #111214; --panel-accent: #c3c9d1; }
}
body { background: var(--canvas); font: 400 17px/22px var(--sys); letter-spacing: -0.2px; }
h1 { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.4px; }
h2 { font-size: 17px; line-height: 22px; font-weight: 600; }
h3 { font-size: 17px; line-height: 22px; font-weight: 600; }
.small { font-size: 15px; line-height: 20px; }
.tiny { font-size: 13px; line-height: 18px; font-weight: 400; }
a { color: var(--accent); }

/* the bar on top: back or brand, the title once the large one is gone, the screen's own buttons */
.shell { max-width: 720px; padding: 0 0 calc(var(--tabs-h) + 24px + env(safe-area-inset-bottom)); }
.bar { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; min-height: 44px; margin: 0; padding: env(safe-area-inset-top) 8px 0; background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 0.5px solid transparent; }
.bar.under { border-bottom-color: var(--line); }
.bar-start { display: flex; align-items: center; min-width: 0; }
.bar-title { font-size: 17px; font-weight: 600; opacity: 0; transition: opacity 0.15s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56vw; }
.bar.under .bar-title { opacity: 1; }
.bar-end { justify-content: flex-end; gap: 2px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--accent); }
.icon-btn .count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 12px; line-height: 18px; font-weight: 600; text-align: center; }
.backlink { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 8px; color: var(--accent); font-size: 17px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand { padding-left: 8px; font-size: 17px; }
main.stack { gap: 0; padding: 0 var(--gutter); }
main.stack > * + * { margin-top: 22px; }
.head { padding: 4px 0 0; gap: 2px; }
.head h1 { font-size: 34px; line-height: 41px; letter-spacing: -0.6px; }
.lede { font-size: 15px; line-height: 20px; color: var(--muted); }

/* a group of rows on the canvas: the way every list and every setting is shown */
.card, .status, details.card { padding: 0; border: 0; border-radius: var(--r-l); background: var(--group); box-shadow: none; }
.card > .sec-head:first-child, .card > :not(.list):not(.rows):not(.sec-head) { margin-inline: 16px; }
.card { display: grid; gap: 12px; padding-block: 14px; }
.card.rows-only { padding-block: 0; gap: 0; }
.sec-head > h2 { font-size: 20px; line-height: 25px; font-weight: 700; letter-spacing: -0.3px; }
.sec-head .meta { font-size: 15px; color: var(--muted); }
.group-title { margin: 0 16px 6px; font-size: 13px; line-height: 18px; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: 0.2px; }
.group-foot { margin: 6px 16px 0; font-size: 13px; line-height: 18px; color: var(--muted); }
.rows { display: grid; border-radius: var(--r-l); background: var(--group); overflow: hidden; }
.row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 11px 16px; color: var(--ink); text-decoration: none; background: none; border: 0; width: 100%; text-align: left; font: inherit; }
.row + .row::before, .list > * + *::before { content: ""; position: absolute; top: 0; right: 0; left: 16px; border-top: 0.5px solid var(--line); }
.row:active { background: var(--fill); }
.row > .grow { display: grid; gap: 1px; min-width: 0; }
.row b { font-weight: 400; }
.row .line { font-size: 15px; line-height: 20px; color: var(--muted); }
.row .value { flex: none; max-width: 50%; color: var(--muted); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .value.add { color: var(--warn); }
.row > svg:last-child { flex: none; color: var(--faint); }
.row .ico { color: var(--accent); }
.row.danger { color: var(--bad); justify-content: center; }
.row.accent { color: var(--accent); }
.list { gap: 0; }
.list > * { position: relative; }
.list > .rowlink { padding: 11px 16px; border-top: 0; min-height: 60px; font-weight: 400; }
.list > .rowlink b { font-weight: 600; }
.card > .list { margin-inline: 0; }
.card > .list > .rowlink:first-child { margin-top: -2px; }

/* the five places, docked at the foot */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; padding: 0 0 env(safe-area-inset-bottom); border-top: 0.5px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-radius: 0; box-shadow: none; }
.tabs a { min-height: var(--tabs-h); padding: 5px 2px 3px; gap: 2px; font-size: 10.5px; line-height: 12px; font-weight: 500; color: var(--faint); border-radius: 0; background: none !important; }
.tabs a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.tabs .ico { width: 26px; height: 26px; }
.tabs .badge { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 12px; line-height: 18px; font-weight: 600; text-align: center; }
.tabs .dot { top: 6px; left: calc(50% + 9px); width: 8px; height: 8px; border: 0; background: var(--bad); }

/* the parts of one place: a segmented control under the title */
.parts { display: flex; gap: 0; padding: 2px; border-radius: 9px; background: var(--fill); overflow: visible; }
.parts a { flex: 1 1 0; min-height: 30px; padding: 4px 6px; border-radius: 7px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--muted); box-shadow: none; white-space: nowrap; transition: transform 0.12s ease; }
.parts a[aria-current="page"] { background: var(--surface); color: var(--accent); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.04); }
.parts .n { min-width: 16px; padding: 0 4px; border-radius: 8px; font-size: 11px; line-height: 16px; }

/* buttons */
.btn { min-height: 50px; border-radius: 12px; font-size: 17px; font-weight: 600; box-shadow: none; }
.btn.s { min-height: 36px; padding: 6px 14px; border-radius: 9px; font-size: 15px; }
.btn.ghost, .btn.line, .btn.danger { border-color: transparent; background: var(--fill); color: var(--accent); }
.btn.danger { color: var(--bad); }
.quiet, .link { color: var(--accent); font-weight: 400; text-decoration: none; }
.quiet.danger { color: var(--bad); }
input, select, textarea { min-height: 44px; height: auto; border: 0; border-radius: 10px; background: var(--fill); font-size: 17px; }
input, select { height: 44px; }
input[type="checkbox"], input[type="radio"] { height: 22px; min-height: 0; }
textarea { min-height: 88px; }
.field > span { font-size: 13px; line-height: 18px; font-weight: 400; color: var(--muted); text-transform: none; }

/* status: a dot and a word */
.st { font-size: 15px; font-weight: 400; }

/* the sheet that comes up from the foot, and the question that asks before something is done */
dialog.sheet { width: 100%; max-width: 640px; max-height: 92dvh; margin: auto auto 0; padding: 0 0 env(safe-area-inset-bottom); border: 0; border-radius: 14px 14px 0 0; background: var(--canvas); color: var(--ink); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18); overflow: auto; }
dialog.sheet::backdrop { background: rgba(0, 0, 0, 0.35); }
.sheet-head { position: sticky; top: 0; z-index: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 56px; padding: 6px 8px 0; background: var(--canvas); }
.sheet-head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: var(--line-strong); }
.sheet-head h2 { font-size: 17px; text-align: center; }
.sheet-head .end { justify-self: end; }
.sheet-body { display: grid; gap: 22px; padding: 8px 16px 24px; }
.ask-box { width: 270px; padding: 0; border: 0; border-radius: 14px; background: color-mix(in srgb, var(--surface) 96%, transparent); color: var(--ink); text-align: center; overflow: hidden; }
.ask-box::backdrop { background: rgba(0, 0, 0, 0.35); }
.ask-box > div { padding: 19px 16px 18px; display: grid; gap: 4px; }
.ask-box h2 { font-size: 17px; }
.ask-box p { font-size: 13px; line-height: 18px; white-space: pre-line; }
.ask-box nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 0.5px solid var(--line); }
.ask-box nav button { min-height: 44px; border: 0; background: none; color: var(--accent); font: inherit; font-size: 17px; }
.ask-box nav button + button { border-left: 0.5px solid var(--line); font-weight: 600; }
.ask-box nav button.bad { color: var(--bad); }
.add-sheet .row .ico { width: 28px; height: 28px; }

/* settings: the one being changed */
.setting > form { display: grid; gap: 22px; }
.setting .card { padding-block: 16px; gap: 16px; }
.setting .head h1 { font-size: 28px; line-height: 34px; }
.savebar { display: none; }
.me-row .avatar { width: 56px; height: 56px; font-size: 20px; }
.me-row b { font-size: 20px; line-height: 25px; font-weight: 600; }
.tints { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 14px 16px; }
.tint { display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--ink); font-size: 13px; }
.tint i { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); }
.tint[aria-pressed="true"] i { outline: 3px solid var(--accent); outline-offset: 3px; }
.tint[data-tint="blue"] i { background: #1f5fd0; }
.tint[data-tint="teal"] i { background: #0b7068; }
.tint[data-tint="green"] i { background: #256f3a; }
.tint[data-tint="rust"] i { background: #a8431a; }
.tint[data-tint="graphite"] i { background: #3a4048; }

/* home today: no big panel */
.status { color: var(--ink); }
.status > * { padding: 14px 16px; border-top-color: var(--line); }
.status .lede { color: var(--muted); }
.huge { font-size: 34px; line-height: 41px; }
.quick { display: none; }
.req.stencil, .req.stencil:first-child, .sec-head + .req.stencil { padding: 14px 16px; border: 0; border-radius: 0; background: none; box-shadow: inset 3px 0 0 var(--accent); margin: 0; }

@media (min-width: 800px) {
  .shell { max-width: 1060px; padding-left: 248px; padding-bottom: 40px; position: relative; }
  .tabs { position: fixed; left: 0; top: 0; bottom: 0; right: auto; width: 232px; flex-direction: column; justify-content: flex-start; gap: 2px; padding: 64px 12px 12px; border-top: 0; border-right: 0.5px solid var(--line); background: var(--surface); }
  .tabs a { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 40px; padding: 0 12px; border-radius: 8px; font-size: 15px; line-height: 20px; color: var(--ink); }
  .tabs a[aria-current="page"] { background: var(--fill) !important; color: var(--ink); }
  .tabs a[aria-current="page"] .ico { color: var(--accent); }
  .tabs .ico { width: 22px; height: 22px; }
  .tabs .badge { position: static; margin-left: auto; }
  .bar { padding-left: 0; }
  main.stack { padding: 0 24px; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .parts a[aria-current="page"] { background: #3a3d42; }
}
:root[data-theme="dark"] .parts a[aria-current="page"] { background: #3a3d42; }
.tabs a::after, .tabs a::before { display: none !important; }


/* ===== polish (three reviews merged) ===== */
.card > .list > .req, .card > .list > .req:first-child, .card > .list > .req:last-child,
.card > .list > .req.stencil, .card > .list > .sec-head + .req.stencil { padding: 14px 16px; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; gap: 4px; }
.req.stencil, .req.stencil:first-child, .sec-head + .req.stencil { box-shadow: none; }
.card > .list > .req > :is(.picks, form, .req-acts, .req-more, .note, .stack-s) { margin-top: 8px; }
.card > .list > .req .head-row { margin-bottom: 2px; }
.req .head-row > b { font-size: 17px; line-height: 22px; font-weight: 600; }

.req[id^="ask-"] > .pre { margin-top: 4px; color: var(--ink); }
.req[id^="ask-"] > p.small:not(.num):not(.muted) { color: var(--muted); }
.req[id^="ask-"] > p.small:not(.num):not(.muted) b { color: var(--ink); font-weight: 500; }

.req-acts > .btn:nth-child(odd):last-child { grid-column: 1 / -1; }

.status .state { display: flex; align-items: center; gap: 10px; font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.3px; }
.status .state::before { width: 10px; height: 10px; margin: 0; flex: none; }
.status .state.paused::before { width: 10px; height: 12px; border-left-width: 4px; border-right-width: 4px; }
.status .state.setup::before { width: 11px; height: 11px; border-width: 1.5px; }
.status .eyebrow { font-size: 15px; line-height: 20px; font-weight: 400; }
.status-top { gap: 4px; }
.status .fullness > .figline { display: flex; align-items: baseline; gap: 6px; }
.status .huge { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.4px; font-variant-numeric: tabular-nums; }
.status .figline > span { font-size: 15px; }
.status > * { border-top-width: 0.5px; }
.status .meter { height: 6px; border-radius: 3px; }
.status .meter > i { background: var(--accent-fill); }
.status > .rowlink { min-height: 48px; color: var(--accent); font-weight: 400; }
.status > .rowlink svg { color: var(--faint); }

.cal:not(.compact) { gap: 4px 0; }
.cal-head { font-size: 13px; line-height: 18px; font-weight: 400; color: var(--faint); }
.cal:not(.compact) .day { justify-self: center; width: min(44px, 100%); height: auto; aspect-ratio: 1; border-radius: 50%; font-size: 17px; font-weight: 400; }
.day.free { border-width: 1.5px; }
.day.booked { font-weight: 600; }
.day.past, .day.past.free, .day.past.off { border-color: transparent; background: none; color: var(--faint); }
.day.past.booked { background: var(--day-past); color: var(--muted); }
.legend { gap: 8px 14px; font-size: 13px; line-height: 18px; }
.legend i { width: 16px; height: 16px; border-radius: 50%; }

.cal-step, .cal-step:disabled { border: 0; border-radius: 22px; color: var(--accent); }
.cal-step:disabled { color: var(--faint); }
.cal-step:active { background: var(--fill); }
.cal-nav h3 { font-size: 17px; font-weight: 600; }

.head-row.inline { align-items: center; gap: 4px 10px; }
.head-row > .st { font-size: 13px; line-height: 18px; gap: 6px; font-weight: 500; }

.setting { display: grid; gap: 16px; }
.setting .head h1 { font-size: 22px; line-height: 28px; letter-spacing: -0.3px; }
.note .btn.ghost { background: var(--group); }
.setting .note .plainlist b { font-weight: 500; }
.setting .note .plainlist { font-variant-numeric: tabular-nums; }

.list > .rowlink .grow > .small.muted { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.list > .rowlink b { font-size: 17px; line-height: 22px; }

.head-row b .muted, .place h3 .muted { font-weight: 400; }
#sec-suggest .place { padding-top: 16px; border-top: 0.5px solid var(--line); }
#sec-suggest > .sec-head + p + .place, #sec-suggest > .sec-head + .place { padding-top: 0; border-top: 0; }
.place .req-acts > .quiet { grid-column: 1 / -1; justify-self: start; min-height: 36px; }
.place details.fold > summary { min-height: 36px; display: flex; align-items: center; }
.shot img { border-radius: 8px; }

.req .adprev { max-width: 300px; width: 100%; justify-self: center; }

.card > .sec-head > h2 { font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -0.2px; }
.group-title { text-transform: none; font-weight: 600; letter-spacing: 0; }

.tabs a { font-size: 11px; line-height: 13px; }
@media (max-width: 799px) { .tabs a { color: var(--muted); } }

@media (min-width: 800px) { main.stack { max-width: 760px; } }
main.stack > .empty { padding: 40px 24px; text-align: center; font-size: 15px; line-height: 20px; color: var(--muted); }


/* ===== the fullness ring, the weeks' bars, the drawings on empty screens ===== */
.status .fullness { display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; align-items: center; }
.status .fullness > .ring { grid-row: 1 / 3; width: 72px; height: 72px; }
.status .fullness > .figline { align-self: end; }
.status .fullness > .counts { align-self: start; display: flex; flex-wrap: wrap; gap: 2px 12px; justify-content: flex-start; font-size: 15px; color: var(--muted); }
.status .fullness > .counts b { color: var(--ink); font-weight: 600; }
.status .gauge { display: none; }
.ring circle { fill: none; stroke-width: 7; }
.ring-track { stroke: var(--track); }
.ring-fill { stroke: var(--accent-fill); stroke-linecap: round; }
.ring-mark { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; opacity: 0.55; }
.bars { width: 100%; height: auto; overflow: visible; }
.bars .base { stroke: var(--line); stroke-width: 1; }
.bars .bar { fill: var(--accent-fill); }
.bars text { font: 500 10px/1 var(--sys); text-anchor: middle; fill: var(--muted); }
.bars text.n { fill: var(--accent); font-weight: 600; }
.empty-art { display: grid; justify-items: center; gap: 12px; padding: 28px 24px 32px; text-align: center; color: var(--muted); font-size: 15px; line-height: 20px; }
.empty-art p { max-width: 30ch; }
.art { width: 84px; height: 84px; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.art rect { fill: var(--accent-soft); }
.art .soft { stroke: var(--faint); }

/* ===== motion: a screen comes in, a sheet rises, figures grow; nothing moves for someone who asked for less ===== */
.btn, .row, .icon-btn, .tabs a, .tint i, .parts a { transition: transform 0.12s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes enter { from { opacity: 0; transform: translateY(10px); } }
  @keyframes fade { from { opacity: 0; } }
  @keyframes rise { from { transform: translateY(100%); } }
  @keyframes pop { from { opacity: 0; transform: scale(1.06); } }
  @keyframes popIn { 0% { transform: scale(0.4); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
  @keyframes growX { from { transform: scaleX(0); } }
  @keyframes growY { from { transform: scaleY(0); } }
  @keyframes ringIn { from { stroke-dasharray: 0 100; } }
  @keyframes tick { from { opacity: 0; } }
  @keyframes floaty { 50% { transform: translateY(-3px); } }
  main.enter > * { animation: enter 0.36s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  main.enter > :nth-child(2) { animation-delay: 0.04s; }
  main.enter > :nth-child(3) { animation-delay: 0.08s; }
  main.enter > :nth-child(4) { animation-delay: 0.12s; }
  main.enter > :nth-child(n + 5) { animation-delay: 0.16s; }
  main.enter .ring-fill { animation: ringIn 1.1s 0.15s cubic-bezier(0.25, 0.8, 0.25, 1) both; }
  main.enter .ring-mark { animation: tick 0.3s 1s both; }
  main.enter :is(.meter, .progress) > i { transform-origin: left center; animation: growX 0.8s 0.2s cubic-bezier(0.25, 0.8, 0.25, 1) both; }
  main.enter .bars .bar { transform-box: fill-box; transform-origin: center bottom; animation: growY 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) both; }
  main.enter .bars .bar:nth-of-type(2) { animation-delay: 0.05s; }
  main.enter .bars .bar:nth-of-type(3) { animation-delay: 0.1s; }
  main.enter .bars .bar:nth-of-type(4) { animation-delay: 0.15s; }
  main.enter .bars .bar:nth-of-type(5) { animation-delay: 0.2s; }
  main.enter .bars .bar:nth-of-type(6) { animation-delay: 0.25s; }
  main.enter .bars text { animation: fade 0.4s 0.5s both; }
  .art { animation: floaty 4s ease-in-out infinite; }
  .sheet[open] { animation: rise 0.34s cubic-bezier(0.2, 0.9, 0.25, 1); }
  .sheet[open]::backdrop, .ask-box[open]::backdrop { animation: fade 0.25s ease; }
  .ask-box[open] { animation: pop 0.22s cubic-bezier(0.2, 0.9, 0.3, 1); }
  .tabs a[aria-current="page"] .ico { animation: popIn 0.32s cubic-bezier(0.3, 0.8, 0.3, 1); }
  .tabs .badge, .icon-btn .count, .parts .n { animation: popIn 0.35s 0.2s both; }
  .btn:active, .icon-btn:active, .tint:active i { transform: scale(0.96); }
  .tabs a:active .ico { transform: scale(0.88); }
  .toast { animation: enter 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
}


/* ===== the ad on a phone: feed, story, reel ===== */
.adp { justify-items: center; }
.adp-parts { width: min(100%, 280px); }
.adp-phone { position: relative; width: min(100%, 280px); aspect-ratio: 9 / 19.5; margin: 4px 0 0; padding: 9px; border-radius: 42px; background: #0b0b0c; box-shadow: 0 0 0 1px #2a2b2e, 0 18px 40px -18px rgba(0, 0, 0, 0.45); overflow: hidden; }
.adp-notch { position: absolute; z-index: 3; top: 16px; left: 50%; width: 74px; height: 20px; margin-left: -37px; border-radius: 12px; background: #0b0b0c; }
.adp-screen { position: absolute; inset: 9px; display: none; border-radius: 33px; overflow: hidden; font: 400 12px/16px var(--sys); letter-spacing: 0; }
.adp[data-view="feed"] .adp-feed, .adp[data-view="story"] .adp-story, .adp[data-view="reel"] .adp-reel { display: flex; flex-direction: column; }
.adp-feed { padding-top: 40px; background: #fff; color: #111; }
.adp-head { display: flex; align-items: center; gap: 8px; padding: 6px 10px; }
.adp-head .avatar { flex: none; width: 26px; height: 26px; font-size: 10px; line-height: 12px; }
.adp-who { display: grid; min-width: 0; flex: 1; }
.adp-who b { overflow: hidden; font-size: 12px; line-height: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.adp-who small { font-size: 10.5px; line-height: 13px; opacity: 0.7; }
.adp-ico .ico, .adp-acts .ico, .adp-side .ico { width: 20px; height: 20px; }
.adp-shots { display: flex; flex: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #eee; }
.adp-shots::-webkit-scrollbar { display: none; }
.adp-shots img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; }
.adp-cta { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-bottom: 0.5px solid #ddd; color: #111; font-weight: 600; }
.adp-cta svg { width: 6px; height: 11px; }
.adp-acts { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 2px; }
.adp-acts > span:first-child { display: flex; gap: 12px; }
.adp-dots { display: flex; gap: 3px; }
.adp-dots i { width: 5px; height: 5px; border-radius: 50%; background: #c7c7cc; transition: background-color 0.2s; }
.adp-dots i.on { background: #0a66e8; }
.adp-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; padding: 2px 10px; white-space: pre-line; }
.adp-text b { font-weight: 600; }
.adp-tall { background: #111; color: #fff; }
.adp-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.adp-tall::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0.35), transparent 22%, transparent 60%, rgba(0, 0, 0, 0.55)); pointer-events: none; }
.adp-tall > * { position: relative; z-index: 1; }
.adp-bars { display: flex; gap: 3px; padding: 40px 10px 4px; }
.adp-bars i { flex: 1; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, 0.4); }
.adp-bars i.on { background: #fff; }
.adp-tall .avatar { box-shadow: 0 0 0 1.5px #fff; }
.adp-side { position: absolute; right: 10px; bottom: 96px; display: grid; gap: 16px; }
.adp-foot { margin-top: auto; display: grid; gap: 6px; padding: 10px 10px 18px; }
.adp-story .adp-foot { justify-items: center; }
.adp-reel .adp-foot { padding-right: 46px; }
.adp-reel .adp-head { padding: 0; }
.adp-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adp-pill { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 32px; padding: 6px 16px; border-radius: 16px; background: #fff; color: #111; font-weight: 600; }
.adp-reel .adp-pill { border-radius: 8px; background: rgba(255, 255, 255, 0.22); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.adp-pill .ico { width: 14px; height: 14px; }
.adp-note { max-width: 280px; text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes adpIn { from { opacity: 0; transform: scale(0.985); } }
  .adp-screen { animation: adpIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .adp-story .adp-bars i.on { transform-origin: left; animation: growX 5s linear infinite; }
}
.adp-tall > .adp-bg { position: absolute; z-index: 0; }
.adp-tall::after { z-index: 0; }
.adp-next { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: center; padding: 14px 10px 0; }
.adp-next i { width: 26px; height: 26px; border-radius: 50%; background: #ececee; }
.adp-next b { width: 46%; height: 9px; border-radius: 5px; background: #ececee; }
.adp-next span { grid-column: 1 / -1; height: 160px; margin: 0 -10px; background: #f1f1f3; }
.adp-feed > * { flex: none; }
.adp-feed { overflow: hidden; }
.adp-feed .adp-text { display: block; -webkit-line-clamp: unset; line-clamp: none; height: auto; max-height: 52px; overflow: hidden; }


/* ===== Today: a state line, three tiles, what waits, what comes ===== */
.home-head { padding-top: 0; }
.home-head .eyebrow { font-size: 15px; line-height: 20px; color: var(--muted); }
.me-link { display: grid; place-items: center; width: 44px; height: 44px; margin-left: 4px; }
.me-link .avatar { width: 32px; height: 32px; font-size: 12px; }
.state-pill { display: inline-flex; align-items: center; gap: 8px; justify-self: start; width: fit-content; max-width: 100%; min-height: 34px; padding: 6px 10px 6px 12px; border-radius: 17px; background: var(--group); color: var(--ink); font-size: 15px; line-height: 20px; text-decoration: none; }
main.stack > .state-pill { margin-top: 12px; }
.state-pill > i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.state-pill.paused > i { background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 22%, transparent); }
.state-pill.setup > i { background: var(--faint); box-shadow: none; }
.state-pill svg { color: var(--faint); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
main.stack > .tiles { margin-top: 12px; }
.tile { display: grid; align-content: start; gap: 2px; min-height: 104px; padding: 14px; border-radius: 16px; background: var(--group); color: var(--ink); text-decoration: none; }
.tile-wide { grid-column: 1 / -1; grid-template-columns: 76px minmax(0, 1fr); align-items: center; column-gap: 16px; min-height: 0; }
.tile-wide .ring { width: 76px; height: 76px; }
.tile-body { display: grid; gap: 2px; }
.tile-k { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--muted); }
.tile-v { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.tile-v small { margin-left: 1px; font-size: 17px; font-weight: 600; color: var(--muted); }
.tile-v.hot { color: var(--accent); }
.tile-s { font-size: 13px; line-height: 18px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.home-advice { margin: 10px 4px 0 !important; font-size: 13px; line-height: 18px; color: var(--muted); }
.count-chip { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; padding: 0 6px; border-radius: 10px; background: var(--bad); color: #fff; font-size: 12px; font-weight: 600; vertical-align: 1px; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 4px 6px 16px; }
.group-head .group-title { margin: 0; }
.group-link { font-size: 15px; color: var(--accent); text-decoration: none; padding: 0 12px; }
.lead-row { min-height: 60px; }
.lead-row + .lead-row::before { left: 64px; }
.lead { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--fill); color: var(--accent); }
.lead .ico { width: 20px; height: 20px; }
.lead.bad { color: var(--bad); }
.lead-row b { font-weight: 600; }
.datebadge { display: grid; justify-items: center; flex: none; width: 36px; line-height: 1; }
.datebadge b { font-size: 20px; line-height: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.datebadge small { font-size: 11px; line-height: 13px; font-weight: 600; color: var(--bad); text-transform: uppercase; letter-spacing: 0.3px; }
.tile:active, .state-pill:active { transform: scale(0.98); }
.tile, .state-pill { transition: transform 0.12s ease; }
@media (min-width: 800px) {
  .tiles { grid-template-columns: 2fr 1fr 1fr; }
  .tile-wide { grid-column: auto; }
}

/* ===== the round button and what rises from it ===== */
.fab { position: fixed; z-index: 60; right: 16px; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 16px); display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%; background: var(--accent-fill); color: var(--on-accent); box-shadow: 0 6px 18px -4px color-mix(in srgb, var(--accent-fill) 60%, transparent), 0 2px 6px rgba(0, 0, 0, 0.18); transition: transform 0.28s cubic-bezier(0.3, 1.4, 0.5, 1), background-color 0.2s; }
.fab .ico { width: 26px; height: 26px; stroke-width: 2.2; transition: transform 0.28s cubic-bezier(0.3, 1.4, 0.5, 1); }
.fab:active { transform: scale(0.92); }
.fab-on .fab .ico { transform: rotate(135deg); }
.fab-on .fab { background: var(--ink); color: var(--canvas); }
.fab-menu { position: fixed; inset: 0; z-index: 55; }
.fab-veil { position: absolute; inset: 0; background: color-mix(in srgb, var(--canvas) 55%, transparent); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); opacity: 0; transition: opacity 0.24s ease; }
.fab-menu.open .fab-veil { opacity: 1; }
.fab-items { position: absolute; right: 20px; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 84px); display: grid; justify-items: end; gap: 12px; }
.fab-item { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; opacity: 0; transform: translateY(14px) scale(0.96); transition: opacity 0.2s ease, transform 0.26s cubic-bezier(0.25, 1.2, 0.5, 1); }
.fab-menu.open .fab-item { opacity: 1; transform: none; }
.fab-menu.open .fab-item:nth-last-child(1) { transition-delay: 0s; }
.fab-menu.open .fab-item:nth-last-child(2) { transition-delay: 0.03s; }
.fab-menu.open .fab-item:nth-last-child(3) { transition-delay: 0.06s; }
.fab-menu.open .fab-item:nth-last-child(4) { transition-delay: 0.09s; }
.fab-menu.open .fab-item:nth-last-child(5) { transition-delay: 0.12s; }
.fab-label { padding: 8px 14px; border-radius: 12px; background: var(--surface); font-size: 15px; line-height: 20px; font-weight: 600; box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.3); }
.fab-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); color: var(--accent); box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.3); }
.fab-ico .ico { width: 22px; height: 22px; }
.fab-item:active .fab-ico { transform: scale(0.92); }
@media (prefers-reduced-motion: reduce) {
  .fab, .fab .ico, .fab-item, .fab-veil { transition: none; }
}
@media (min-width: 800px) {
  .fab { right: 28px; bottom: 28px; }
  .fab-items { right: 32px; bottom: 100px; }
}
.shell { padding-bottom: calc(var(--tabs-h) + 96px + env(safe-area-inset-bottom)); }


/* ===== 1. screens slide in from their side ===== */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fromRight { from { opacity: 0; transform: translateX(28px); } }
  @keyframes fromLeft { from { opacity: 0; transform: translateX(-28px); } }
  main.enter.from-right > * { animation-name: fromRight; animation-duration: 0.3s; }
  main.enter.from-left > * { animation-name: fromLeft; animation-duration: 0.3s; }
}
/* ===== 2. what is pressed gives way; a day fills from the touch ===== */
.row:active, .tile:active, .chip:active, .ask-line:active { transform: scale(0.98); }
.day { position: relative; overflow: hidden; }
.ripple { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--accent-fill); opacity: 0.35; pointer-events: none; animation: ripple 0.55s ease-out forwards; }
@keyframes ripple { to { transform: scale(12); opacity: 0; } }
input[type="checkbox"].switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 51px; height: 31px; min-height: 0; padding: 0; border-radius: 16px; background: var(--fill); transition: background-color 0.2s; }
input[type="checkbox"].switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); transition: transform 0.22s cubic-bezier(0.3, 1.3, 0.5, 1); }
input[type="checkbox"].switch:checked { background: var(--ok); }
input[type="checkbox"].switch:checked::after { transform: translateX(20px); }
/* ===== 3. figures that moved; a badge that grew ===== */
[data-count] { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .badge.bump { animation: bump 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
  @keyframes bump { 30% { transform: scale(1.35) rotate(-8deg); } 60% { transform: scale(0.95) rotate(4deg); } }
}
/* ===== 4. the grey shape while loading ===== */
.skel .bar { min-height: 52px; }
.skel main { padding-top: 8px; }
.sk { display: block; border-radius: 12px; background: var(--fill); }
.sk-h { width: 46%; height: 34px; margin-top: 8px; }
.sk-pill { width: 62%; height: 34px; border-radius: 17px; }
.sk-tile { height: 104px; border-radius: 16px; }
.sk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sk-rows { height: 180px; border-radius: 14px; }
.sk-dot { width: 26px; height: 26px; margin: auto; border-radius: 8px; }
main.stack > .sk + .sk, main.stack > .sk + .sk-two, main.stack > .sk-two + .sk { margin-top: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .sk { background: linear-gradient(90deg, var(--fill) 30%, color-mix(in srgb, var(--fill) 55%, var(--group)) 50%, var(--fill) 70%) 0 0 / 300% 100%; animation: shimmer 1.3s linear infinite; }
  @keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
}
/* ===== 5 + 10. requests: parts, chips, short rows, the sheet ===== */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
main.stack > .chips { margin-top: 12px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 32px; padding: 6px 14px; border: 0; border-radius: 16px; background: var(--group); color: var(--ink); font: 500 14px/20px var(--sys); white-space: nowrap; box-shadow: inset 0 0 0 0.5px var(--line); transition: background-color 0.18s, color 0.18s, transform 0.12s; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--canvas); box-shadow: none; }
.ask-line { min-height: 76px; align-items: center; }
.ask-swipe + .ask-swipe > .ask-line::before { content: ""; position: absolute; top: 0; right: 0; left: 68px; border-top: 0.5px solid var(--line); }
.ask-line .avatar { flex: none; width: 40px; height: 40px; font-size: 14px; }
.ask-line b { font-weight: 600; }
.ask-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 2px; }
.ask-tags .st { font-size: 13px; line-height: 18px; }
.chip-s { padding: 1px 7px; border-radius: 6px; background: var(--fill); color: var(--muted); font-size: 12px; line-height: 16px; font-weight: 500; }
.ask-pic { flex: none; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.ask-sheet .req { padding: 16px; border-radius: 14px; background: var(--group); box-shadow: none; margin: 0; border: 0; }
.ask-sheet .req .head-row { display: none; }
.ask-sheet .req > * + * { margin-top: 10px; }
/* ===== 6. four round shortcuts ===== */
/* ===== 7. the timeline ===== */
.timeline { display: grid; gap: 14px; }
.tl-head { position: sticky; top: calc(44px + env(safe-area-inset-top)); z-index: 2; margin: 0 0 6px; padding: 4px 16px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--muted); background: var(--canvas); }
.tl-day .avatar { flex: none; width: 36px; height: 36px; font-size: 13px; }
/* ===== 8. richer days ===== */
.day.away { background-image: none; box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--accent-fill) 45%, transparent); }
.day .spot.hold { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }
.day .ask-n { position: absolute; top: 1px; right: 1px; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 7px; background: var(--accent-fill); color: var(--on-accent); font-size: 9.5px; line-height: 14px; font-weight: 700; }
/* ===== 11. the tick and the way back ===== */
.toast.done { display: flex; align-items: center; gap: 10px; padding-right: 10px; }
.toast .tick { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--ok); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.toast .tick circle { stroke: color-mix(in srgb, var(--ok) 35%, transparent); }
.toast-undo { margin-left: auto; padding: 6px 10px; border: 0; border-radius: 8px; background: color-mix(in srgb, var(--toast-ink) 14%, transparent); color: var(--toast-ink); font: 600 14px/18px var(--sys); }
@media (prefers-reduced-motion: no-preference) {
  .toast .tick path { stroke-dasharray: 20; stroke-dashoffset: 20; animation: draw 0.4s 0.12s ease-out forwards; }
  .toast .tick circle { stroke-dasharray: 63; stroke-dashoffset: 63; animation: draw 0.35s ease-out forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}
/* ===== 12. the month's amount ===== */
.budget { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: var(--group); color: var(--ink); text-decoration: none; }
main.stack > .budget { margin-top: 10px; }
.budget-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--muted); }
.budget-top b { color: var(--ink); font-size: 17px; }
.budget-bar { display: block; height: 8px; border-radius: 4px; background: var(--track); overflow: hidden; }
.budget-bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent-fill); }
.budget.over .budget-bar i { background: var(--warn); }
.budget.over .tile-s { color: var(--warn); }
main.enter .budget-bar i { transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
  main.enter .budget-bar i { animation: growX 0.8s 0.25s cubic-bezier(0.25, 0.8, 0.25, 1) both; }
}

/* a chart or a table inside a card keeps to the card's inner width */
.card > .bars, .card > .table { width: calc(100% - 32px); }
.card > .table { font-size: 15px; }
.card > .table th { white-space: nowrap; font-size: 12px; }
.card > .table td, .card > .table th { padding-inline: 4px; }
.card > .table :is(td, th):first-child { padding-left: 0; }
.card > .table :is(td, th):last-child { padding-right: 0; }
/* rows of a card that are not themselves padded keep the card inset */
.card > .list > :is(.src, .item, .booking, .bk) { padding-inline: 16px; }
.card .list .src, .card .list .item { min-height: 44px; }


/* ===== the theme the artist chose over the phone's own ===== */

  :root[data-theme="dark"] {
    --canvas: #000000; --bg: #000000; --surface: #1c1c1f; --group: #1c1c1f; --soft: #2c2c30;
    --ink: #f3f4f5; --muted: #a6abb2; --faint: #7f858d; --line: #2e3035; --line-strong: #3f4248; --field-line: #80868e;
    --track: #2c2f34; --fill: #2c2f34; --day-fill: #f3f4f5; --on-day: #111214; --day-past: #2c2f34;
    --accent: #7faeff; --accent-fill: #2f6fe0; --accent-soft: #15233d; --on-accent: #ffffff;
    --ok: #63c98b; --ok-soft: #12301e; --warn: #e8b056; --warn-soft: #33270f; --bad: #ff8a80; --bad-soft: #3a1715;
    --panel: #1c1c1f; --panel-ink: #f3f4f5; --panel-muted: #a6abb2; --panel-line: #2e3035; --panel-track: #2c2f34; --panel-accent: #7faeff;
    --panel-ok: #63c98b; --panel-warn: #e8b056; --panel-bad: #ff8a80;
    --toast-bg: #f3f4f5; --toast-ink: #111214; --toast-line: #f3f4f5;
  }


  :root[data-tint="teal"][data-theme="dark"] { --accent: #5cc7bc; --accent-fill: #0f7f77; --accent-soft: #0f2a28; --panel-accent: #5cc7bc; }
  :root[data-tint="green"][data-theme="dark"] { --accent: #73c98a; --accent-fill: #2b7d43; --accent-soft: #13291a; --panel-accent: #73c98a; }
  :root[data-tint="rust"][data-theme="dark"] { --accent: #f0996f; --accent-fill: #b64c20; --accent-soft: #33190f; --panel-accent: #f0996f; }
  :root[data-tint="graphite"][data-theme="dark"] { --accent: #c3c9d1; --accent-fill: #c3c9d1; --accent-soft: #26292e; --on-accent: #111214; --panel-accent: #c3c9d1; }



:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

/* ===== 1. sheets in one colour; messages at the top, clear of the round button ===== */
dialog.sheet { background: var(--group); overscroll-behavior: contain; border-top: 0.5px solid var(--line); }
dialog.sheet .sheet-head { background: var(--group); }
dialog.sheet.scrolled .sheet-head { box-shadow: 0 0.5px 0 var(--line); }
.ask-sheet .req { padding: 0; background: none; }
.toast { top: calc(env(safe-area-inset-top) + 52px); bottom: auto !important; width: max-content; max-width: min(92vw, 440px); border-radius: 14px; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.3); }
.toast.bad { display: flex; align-items: center; gap: 8px; border-color: transparent; background: var(--bad-soft); color: var(--bad); }
.toast.done { pointer-events: auto; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes dropIn { from { opacity: 0; transform: translateY(-12px); } }
  .toast { animation: dropIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
}

/* ===== 2. one layout of the bars for every width below the side column ===== */
@media (max-width: 799px) {
  .tabs { display: flex; }
}

/* ===== 3. the tab bar ===== */
:root { --badge: #e5372b; --on-badge: #fff; --bar-bg: color-mix(in srgb, var(--canvas) 80%, transparent); --tabs-h: 49px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --badge: #ff453a; } }
:root[data-theme="dark"] { --badge: #ff453a; }
.tabs { background: color-mix(in srgb, var(--surface) 82%, transparent); }
.tabs a, .tabs a[aria-current="page"] { font-size: 10.5px; line-height: 12px; font-weight: 600; color: var(--muted); }
.tabs a[aria-current="page"] { color: var(--accent); }
.tabs a[aria-current="page"] .ico { fill: currentColor; fill-opacity: 0.22; }
.tabs .badge, .icon-btn .count, .count-chip { background: var(--badge); color: var(--on-badge); box-shadow: 0 0 0 2px var(--surface); }
.tabs .badge { top: 2px; left: calc(50% + 4px); animation: none; }
.tabs .av { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--fill); color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: 0.2px; }
.tabs a[aria-current="page"] .av { box-shadow: 0 0 0 2px var(--accent); }
.tabs .pdot { position: absolute; top: 4px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--badge); box-shadow: 0 0 0 2px var(--surface); }
.parts .n { background: var(--badge); color: var(--on-badge); }

/* ===== 4. the top bar ===== */
.bar { min-height: 44px; background: var(--bar-bg); grid-template-columns: minmax(44px, 1fr) auto minmax(44px, 1fr); }
.bar .icon-btn { color: var(--ink); }
.bar .icon-btn.has-new { color: var(--accent); }
.bar .icon-btn.has-new .ico { fill: currentColor; fill-opacity: 0.2; }
.bar-title { transform: translateY(4px); transition: opacity 0.18s, transform 0.18s; }
.bar.under .bar-title { transform: none; }
.backlink svg { width: 11px; height: 19px; stroke-width: 2.2; }
.backlink span { max-width: 40vw; overflow: hidden; text-overflow: ellipsis; }
.bar-save { width: auto; padding: 0 10px; font-size: 17px; font-weight: 600; color: var(--accent) !important; }
.bar-save:disabled { color: var(--faint) !important; }
@media (max-width: 799px) { .setting form > .btn.wide { display: none; } }
.offline-bar { display: none; position: sticky; top: calc(44px + env(safe-area-inset-top)); z-index: 29; margin: 0; padding: 4px 16px; background: var(--warn-soft); color: var(--warn); font-size: 13px; line-height: 18px; text-align: center; }
body.offline .offline-bar { display: block; }
.pull { position: fixed; top: calc(52px + env(safe-area-inset-top)); left: 50%; z-index: 31; width: 32px; height: 32px; margin-left: -16px; border-radius: 50%; background: var(--surface); box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.3); opacity: 0; transform: translateY(-40px); transition: opacity 0.15s; pointer-events: none; }
.pull::after { content: ""; position: absolute; inset: 8px; border: 2px solid var(--accent); border-right-color: transparent; border-radius: 50%; }
.pull.on { opacity: 1; }
.pull.go::after { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.search-row { display: flex; align-items: center; gap: 8px; }
main.stack > .search-row { margin-top: 12px; }
.search-row input { flex: 1; height: 38px; min-height: 0; padding: 0 12px; border-radius: 10px; background: var(--fill); font-size: 16px; }
.themes { padding: 12px 16px; }

/* ===== 5. the round button ===== */
.fab { width: 52px; height: 52px; transition: transform 0.28s cubic-bezier(0.3, 1.4, 0.5, 1), translate 0.25s ease, background-color 0.2s; }
.fab.away { translate: 0 120px; }
main.stack { padding-bottom: 24px; }
.shell { padding-bottom: calc(var(--tabs-h) + 88px + env(safe-area-inset-bottom)); }
.side-new { display: none; }
@media (min-width: 800px) {
  .fab { display: none; }
  .side-new { display: flex; align-items: center; justify-content: center; gap: 8px; position: fixed; z-index: 21; top: 16px; left: 12px; width: 208px; height: 40px; border: 0; border-radius: 10px; background: var(--accent-fill); color: var(--on-accent); font: 600 15px/20px var(--sys); }
  .side-new .ico { width: 20px; height: 20px; }
  .fab-items { left: 16px; right: auto; top: 64px; bottom: auto; justify-items: start; }
  .fab-item { flex-direction: row-reverse; }
}


/* ===== 6-7. Today ===== */
.home-head .eyebrow { margin-top: 2px; }
.tile-say { margin-top: 4px; color: var(--ink); }
.pill { flex: none; padding: 3px 10px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 13px; line-height: 18px; font-weight: 600; }
.lead.ok { color: var(--ok); }
.lead b { font-size: 15px; font-weight: 700; color: var(--muted); }
.caught .lead { background: var(--ok-soft); }
.banner { display: flex; align-items: center; gap: 4px; padding: 6px 4px 6px 14px; border-radius: 14px; background: var(--accent-soft); }
main.stack > .banner { margin-top: 12px; }
.banner > .grow { display: grid; gap: 1px; min-width: 0; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 20px; }
.banner .line { color: var(--muted); font-size: 13px; line-height: 18px; }
.next-client { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: var(--group); color: var(--ink); text-decoration: none; }
.next-who { display: flex; align-items: center; gap: 12px; }
.next-who .avatar { width: 40px; height: 40px; font-size: 14px; }
.next-who .grow { display: grid; min-width: 0; }
.next-who b { font-size: 17px; font-weight: 600; }
.next-who .line { font-size: 15px; color: var(--muted); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 10px; padding: 10px 6px; border-radius: 16px; background: var(--group); }
.wk { display: grid; justify-items: center; gap: 2px; padding: 4px 0; border-radius: 10px; color: var(--ink); text-decoration: none; }
.wk small { font-size: 11px; line-height: 13px; font-weight: 600; color: var(--muted); }
.wk b { font-size: 17px; line-height: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wk i { width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--accent-fill); }
.wk.booked i { background: var(--ink); box-shadow: none; }
.wk.off i { box-shadow: none; }
.wk.off b { color: var(--faint); }
.wk.now { background: var(--accent-soft); }
.wk.now b { color: var(--accent); }
.wk:active { transform: scale(0.95); }
.getting .rows { margin-bottom: 8px; }
.gs-bar { padding: 14px 16px 6px; }
.gs-all > summary { padding: 4px 16px 8px; }


/* ===== 8-9. requests ===== */
.avatar.h1 { background: #e7eefc; color: #2457b8; } .avatar.h2 { background: #e3f3ef; color: #0d6f66; } .avatar.h3 { background: #f8ebe3; color: #9a4a1f; }
.avatar.h4 { background: #efe9f6; color: #5b4a7a; } .avatar.h5 { background: #e9f2e2; color: #3c6a23; } .avatar.h6 { background: #f6e6e9; color: #9c3446; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .avatar:is(.h1, .h2, .h3, .h4, .h5, .h6) { background: var(--fill); color: var(--ink); } }
:root[data-theme="dark"] .avatar:is(.h1, .h2, .h3, .h4, .h5, .h6) { background: var(--fill); color: var(--ink); }
.ask-line:active { transform: none; background: var(--fill); }
.ask-line { align-items: flex-start; padding-block: 12px; }
.ask-line .avatar { margin-top: 2px; }
.ask-name { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ask-name small { flex: none; font-size: 13px; color: var(--muted); }
.ask-line.fresh .ask-name b { font-weight: 700; }
.ask-line.fresh .ask-name small { color: var(--accent); font-weight: 600; }
.ask-idea-1 { overflow: hidden; color: var(--muted); font-size: 15px; line-height: 20px; white-space: nowrap; text-overflow: ellipsis; }
.chip-s.warn { background: var(--warn-soft); color: var(--warn); }
.ask-pic { position: relative; flex: none; width: 52px; height: 52px; margin-top: 2px; border-radius: 10px; overflow: hidden; }
.ask-pic img { width: 100%; height: 100%; object-fit: cover; }
.ask-pic i { position: absolute; right: 3px; bottom: 3px; padding: 0 5px; border-radius: 6px; background: rgba(0, 0, 0, 0.6); color: #fff; font: 600 11px/16px var(--sys); font-style: normal; }
.ask-sheet .sheet-head h2:empty { display: none; }
.ask-full { display: grid; gap: 14px; }
.ask-full > * + * { margin-top: 0 !important; }
.ask-top { display: flex; align-items: center; gap: 12px; }
.ask-top .grow { display: grid; min-width: 0; }
.ask-top b { font-size: 20px; line-height: 25px; font-weight: 700; }
.ask-top .line { color: var(--muted); font-size: 14px; }
.ask-idea { font-size: 19px; line-height: 26px; }
.ask-day, .ask-reach { padding: 10px 12px; border-radius: 12px; background: var(--canvas); }
.ask-day .grow, .ask-reach .grow { display: grid; min-width: 0; }
.ask-day .line, .ask-reach .line { color: var(--muted); font-size: 14px; }
.kv { display: grid; border-radius: 12px; background: var(--canvas); }
.kv-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; font-size: 15px; }
.kv-row + .kv-row { border-top: 0.5px solid var(--line); }
.kv-row span { color: var(--muted); }
.kv-row b { font-weight: 500; text-align: right; }
.ref-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.ref-strip a { flex: none; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; }
.ref-strip img { width: 100%; height: 100%; object-fit: cover; }
/* the photo of where on the body it goes, beside where on the body */
.kv-spot { align-items: center; }
.spot-thumb { flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; }
.spot-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.warn-line { background: var(--warn-soft); color: var(--warn); padding: 10px 14px; font-size: 14px; }
.sheet-foot { position: sticky; bottom: 0; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 8px; margin: 4px -16px -24px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--group) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 0.5px solid var(--line); }
.ask-offer[open], .ask-decline[open] { padding: 14px; border-radius: 12px; background: var(--canvas); }
.ask-offer > summary, .ask-decline > summary { list-style: none; }
.answered { display: grid; justify-items: center; gap: 8px; padding: 16px 0 8px; text-align: center; }
.answered .lead { width: 56px; height: 56px; }
.answered .lead .ico { width: 30px; height: 30px; }
.answered h2 { font-size: 22px; }
.ask-full .chips { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; }


/* ===== 10. the calendar ===== */
.cal-head-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.cal-head-top h1 { font-size: 30px; line-height: 36px; }
.cal-tools { display: flex; align-items: center; gap: 2px; padding-bottom: 2px; }
.cal-tools .cal-step { width: 40px; height: 40px; }
.cal-sum { margin: 10px 4px 0 !important; font-size: 15px; color: var(--ink); }
.cal-card { margin-top: 12px; padding: 4px 8px 12px; border-radius: 16px; background: var(--group); }
.cal-actions { display: flex; justify-content: space-between; align-items: center; padding: 0 0 0 8px; }
.day.free { background: var(--accent-soft); border-color: transparent; color: var(--ink); }
.day.booked { background: var(--day-fill); color: var(--on-day); border-color: transparent; }
.day.off { background: none; border-color: transparent; color: var(--ink); }
.day.past, .day.past.free, .day.past.off, .day.past.booked { background: none; border-color: transparent; color: var(--faint); font-weight: 400; }
.day.today { color: var(--accent); font-weight: 700; }
.day.today.booked { color: var(--on-day); box-shadow: 0 0 0 2px var(--accent-fill); }
.day.today::before { display: none; }
.day.chosen { outline: 2px solid var(--accent-fill); outline-offset: 2px; }
.legend { justify-content: center; gap: 6px 14px; padding: 8px 4px 0; }
.legend i.free { background: var(--accent-soft); border: 0; }
.legend i.off { background: none; border: 1px solid var(--line-strong); }
.legend i.away { border-radius: 2px; height: 4px; background: color-mix(in srgb, var(--accent-fill) 45%, transparent); border: 0; }
.day-panel { margin-top: 12px; }
.day-sheet { display: grid; gap: 12px; padding: 14px; border-radius: 16px; background: var(--group); }
.day-title { display: grid; gap: 2px; }
.day-title h3 { font-size: 17px; font-weight: 700; }
.day-title .muted { font-size: 14px; }
.day-sheet .rows { background: var(--canvas); }
.cal-saved { margin: 10px 4px 0 !important; font-size: 13px; color: var(--muted); }
.cal-saved .quiet { font-size: 13px; padding: 0; min-height: 0; }
.selbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 0.5px solid var(--line); box-shadow: 0 -6px 18px -10px rgba(0, 0, 0, 0.25); overflow-x: auto; }
.selbar b { flex: none; margin-right: auto; font-size: 15px; }
.selbar .chip { flex: none; }
.selbar .chip.booked { background: var(--day-fill); color: var(--on-day); }
.selbar .chip.free { background: var(--accent-soft); }
.shell:has(.selbar) .fab { display: none; }
.sheet-week { padding: 12px; }
.fold > summary.btn { list-style: none; display: flex; justify-content: center; }
.day-panel { margin: 12px 0 0; padding: 0; border: 0; background: none; box-shadow: none; }


/* ===== 12. Ads ===== */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
main.stack > .kpis { margin-top: 12px; }
.kpi { display: grid; gap: 4px; padding: 12px; border-radius: 14px; background: var(--group); }
.kpi .tile-k { font-size: 12px; line-height: 15px; }
.kpi b { font-size: 20px; line-height: 24px; font-weight: 700; letter-spacing: -0.3px; }
#sec-plans .tl-head { position: static; padding: 8px 16px 6px; background: none; }
.plan-card { padding-block: 0; }
.plan-money { margin-top: 2px; font-size: 15px; color: var(--muted); }
.plan-money b { font-size: 22px; line-height: 28px; font-weight: 700; color: var(--ink); }
.plan-acts { grid-template-columns: 1fr 1fr !important; }
.plan-acts > .btn:first-child { grid-column: 1 / -1; }
.bars .bar { cursor: pointer; }
.bars .bar.on { fill: var(--ink); }
.adp-next { display: none; }

/* ===== 13. Profile ===== */
.how .lead b { color: var(--accent); }
.how .lead-row { align-items: flex-start; }

/* ===== 14. Messages ===== */
.view-chat { min-height: calc(100dvh - 44px - var(--tabs-h) - env(safe-area-inset-bottom) - 40px); display: flex !important; flex-direction: column; }
.view-chat > * + * { margin-top: 12px !important; }
.chat.thread { flex: 1; max-height: none; overflow: visible; padding: 0; gap: 6px; }
.thread .msg { border-radius: 18px 18px 18px 6px; background: var(--group); }
.thread .msg.mine { border-radius: 18px 18px 6px 18px; background: var(--accent-fill); color: var(--on-accent); }
.thread .msg.mine b, .thread .msg.mine .muted, .thread .msg.mine small { color: inherit; opacity: 0.85; }
.composer { position: sticky; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 8px); z-index: 5; display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 22px; background: var(--group); box-shadow: 0 0 0 0.5px var(--line), 0 6px 16px -10px rgba(0, 0, 0, 0.3); }
.composer textarea { flex: 1; min-height: 32px; max-height: 120px; height: 32px; padding: 6px 0; border: 0; background: none; resize: none; font-size: 16px; line-height: 20px; }
.composer .send { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--accent-fill); color: var(--on-accent); }
.composer .send:disabled { background: var(--fill); color: var(--faint); }
.composer .send .ico { width: 20px; height: 20px; stroke-width: 2.2; }
@media (max-width: 799px) { body:has(.composer textarea:focus) .composer { bottom: 8px; } }
.group-link.muted { color: var(--muted); font-size: 13px; }

/* the story and the reel: Instagram's 9:16 frame in the middle of the phone, black above and below on a tall screen */
.adp-tall { background: #000; }
.adp-tall > .adp-bg { top: 50%; bottom: auto; height: auto; aspect-ratio: 9 / 16; transform: translateY(-50%); object-fit: cover; }
.adp-tall > .adp-bg.whole { object-fit: contain; }
.adp-tall::after { background: linear-gradient(rgba(0, 0, 0, 0.45), transparent 20%, transparent 62%, rgba(0, 0, 0, 0.6)); }

/* every ad of the plan in the story and the reel: one shown, the others ready under it; a bar each that fills */
.adp-stack { position: absolute; inset: 0; z-index: 0 !important; }
.adp-stack > .adp-bg { position: absolute; left: 0; right: 0; top: 50%; width: 100%; height: auto; aspect-ratio: 9 / 16; transform: translateY(-50%); object-fit: cover; opacity: 0; transition: opacity 0.3s ease; }
.adp-stack > .adp-bg.whole { object-fit: contain; }
.adp-stack > .adp-bg.on { opacity: 1; }
.adp-tall.many { cursor: pointer; }
.adp-bars i { position: relative; overflow: hidden; background: rgba(255, 255, 255, 0.38); }
.adp-bars i b { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.adp-bars i.done b { transform: none; }
.adp-bars i.on { background: rgba(255, 255, 255, 0.38); }
.adp-bars i.on b { animation: barFill 4.5s linear forwards; }
@media (prefers-reduced-motion: reduce) { .adp-bars i.on b { animation: none; transform: none; } }
@keyframes barFill { to { transform: none; } }
.adp-story .adp-bars i.on { transform: none; animation: none; }
.adp-count { position: absolute; top: 44px; right: 12px; z-index: 2; padding: 2px 8px; border-radius: 10px; background: rgba(0, 0, 0, 0.45); color: #fff; font-size: 11px; line-height: 16px; font-weight: 600; }
.adp-thumbs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; max-width: 300px; }
.adp-thumb { width: 44px; aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: #000; opacity: 0.55; transition: opacity 0.2s, transform 0.12s, box-shadow 0.2s; }
.adp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.adp-thumb.whole img { object-fit: contain; }
.adp-thumb[aria-current] { opacity: 1; box-shadow: 0 0 0 2px var(--canvas), 0 0 0 4px var(--accent-fill); }
.adp-thumb:active { transform: scale(0.94); }
.adp-best { display: flex; align-items: flex-start; gap: 10px; max-width: 320px; padding: 10px 12px; border-radius: 12px; background: var(--ok-soft); color: var(--ink); font-size: 13px; line-height: 18px; }
.adp-best .lead { flex: none; width: 24px; height: 24px; background: none; }
.adp-best .lead .ico { width: 18px; height: 18px; }

/* the message after an action: a small capsule under the bar, in the theme's own colours, with its sign */
.toast, .toast.done, .toast.bad { left: 50%; right: auto; top: calc(env(safe-area-inset-top) + 54px); display: flex; align-items: center; gap: 8px; width: max-content; max-width: min(88vw, 420px); margin: 0; padding: 9px 16px 9px 10px; border: 0.5px solid var(--line); border-radius: 22px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); color: var(--ink); font-size: 15px; line-height: 20px; font-weight: 600; text-align: left; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.35); transform: translateX(-50%); translate: none; z-index: 70; }
.toast.done:has(.toast-undo) { padding-right: 6px; }
.toast .tick { width: 22px; height: 22px; }
.toast.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.toast.bad .tick { stroke: var(--bad); }
.toast.bad .tick circle { stroke: color-mix(in srgb, var(--bad) 35%, transparent); }
.toast-undo { margin-left: 6px; background: var(--fill); color: var(--accent); border-radius: 16px; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(-10px) scale(0.96); } }
  .toast, .toast.done, .toast.bad { animation: toastIn 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
}
/* it comes down over the bar, as a phone shows its own notices, and never over the page title */
.toast, .toast.done, .toast.bad { top: calc(env(safe-area-inset-top) + 5px); }

/* the plan's settings and its Regenerate */
.plan-set { display: grid; gap: 8px; }
.plan-set-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-set-head .quiet:last-child { margin-left: auto; }
.pill.mine { background: var(--warn-soft); color: var(--warn); }
.plan-set .kv { background: var(--canvas); }
.warn-text { color: var(--warn); }
.regen { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.regen .btn { gap: 6px; }
.regen .ico { width: 18px; height: 18px; }
@media (prefers-reduced-motion: no-preference) { .regen .spinning .ico { animation: spin 0.8s linear infinite; } }

/* the ads by country: a section each that opens and closes, the running ones in lines that open */
.chips + .ctry, #sec-plans > .chips { margin-bottom: 10px; }
.ctry { margin-top: 10px; border-radius: 16px; background: var(--group); overflow: hidden; }
.ctry-head { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; cursor: pointer; list-style: none; }
.ctry-head::-webkit-details-marker { display: none; }
.ctry-head .flag { font-size: 26px; line-height: 1; }
.ctry-head .grow { display: grid; min-width: 0; }
.ctry-head b { font-size: 17px; font-weight: 700; }
.ctry-head .line { color: var(--muted); font-size: 13px; line-height: 18px; }
.ctry-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--badge); flex: none; }
.ctry-chev { display: grid; place-items: center; color: var(--faint); transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ctry[open] > .ctry-head .ctry-chev { transform: rotate(90deg); }
.ctry-body { padding: 0 10px 12px; }
.ctry-body .rows { background: var(--canvas); }
.ctry-body .plan-card { background: var(--canvas); }
.ctry-body .tl-head { position: static; padding: 6px 6px 6px; background: none; }
.plan-mini > summary { display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; list-style: none; }
.plan-mini > summary::-webkit-details-marker { display: none; }
.plan-mini + .plan-mini { border-top: 0.5px solid var(--line); }
.plan-mini > summary > svg { flex: none; color: var(--faint); transition: transform 0.2s; }
.plan-mini[open] > summary > svg { transform: rotate(90deg); }
.plan-mini .grow { display: grid; gap: 3px; min-width: 0; }
.plan-mini b { font-weight: 600; }
.plan-mini .line { color: var(--muted); font-size: 13px; }
.mini-pics { display: flex; flex: none; }
.mini-pics img { width: 30px; height: 42px; border-radius: 6px; object-fit: cover; background: #000; box-shadow: 0 0 0 2px var(--canvas); }
.mini-pics img + img { margin-left: -12px; }
.mini-bar { display: block; height: 4px; border-radius: 2px; background: var(--track); overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: var(--accent-fill); border-radius: 2px; }
.mini-st { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13px; color: var(--muted); }
.mini-st .st { font-size: 13px; }
.plan-mini.alarm > summary b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--badge); vertical-align: 2px; }
.mini-open { padding: 0 12px 12px; }
.mini-open > .req { padding: 0; }
.ctry-done > summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.ctry-done > summary::-webkit-details-marker { display: none; }
.ctry-done > summary svg { color: var(--faint); transition: transform 0.2s; }
.ctry-done[open] > summary svg { transform: rotate(90deg); }
@media (prefers-reduced-motion: no-preference) {
  .ctry[open] > .ctry-body, .plan-mini[open] > .mini-open { animation: enter 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
}
@media (min-width: 1000px) {
  #sec-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: start; }
  #sec-plans > .group-head, #sec-plans > .chips { grid-column: 1 / -1; }
}
#sec-plans > .chips { flex-wrap: nowrap; overflow-x: auto; }
.ctry-head .ctry-chev svg { width: 8px; height: 14px; }

/* Calendar, Spots: the guest spots by place. A country is the same card as on Ads; in it each city is a small fold of its own
   with its spots in lines, what is over folded under "Past", and a way to add one more right there */
#sec-spots > .ctry { margin-top: 0; }
.rgn-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; flex: none; }
.group-title .rgn-n { height: 18px; min-width: 18px; padding: 0 6px; font-size: 12px; vertical-align: 1px; }
.rgn .ctry-body { display: grid; gap: 10px; }
.rgn-city { border-radius: 12px; background: var(--canvas); overflow: hidden; }
.rgn-city-head { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px 8px 14px; cursor: pointer; list-style: none; }
.rgn-city-head::-webkit-details-marker { display: none; }
.rgn-city-head .grow { display: grid; min-width: 0; }
.rgn-city-head b { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rgn-city-head .line { color: var(--muted); font-size: 13px; line-height: 18px; }
.rgn-city[open] > .rgn-city-head .ctry-chev { transform: rotate(90deg); }
.rgn-city .ctry-chev svg { width: 8px; height: 14px; }
.rgn-city-body { display: grid; gap: 6px; padding: 0 8px 8px; }
.rgn-city-body .rows { background: var(--group); }
.rgn-city-body .row { cursor: pointer; }
.rgn-city-body .row b { font-weight: 500; }
.rgn-city-body .row .line { font-size: 13px; line-height: 18px; }
.rgn-past > summary { display: flex; align-items: center; justify-content: space-between; position: static; margin: 0; padding: 6px 8px; background: none; cursor: pointer; list-style: none; }
.rgn-past > summary::-webkit-details-marker { display: none; }
.rgn-past > summary svg { color: var(--faint); }
.rgn-past[open] > summary svg { transform: rotate(90deg); }
.rgn-was b { color: var(--muted); }
.rgn-was > .ico { flex: none; width: 20px; height: 20px; color: var(--accent); }
.rgn-add { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 8px 12px; border: 1px dashed var(--line-strong); border-radius: 12px; background: none; color: var(--accent); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.rgn-add .ico { flex: none; width: 20px; height: 20px; }
.rgn-add:active { transform: scale(0.99); }
.rgn-add:focus-visible, .rgn-city-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.rgn-city-body > .rgn-add { border-color: var(--line); }
.rgn-empties { display: grid; border-radius: 16px; background: var(--group); overflow: hidden; }
.rgn-empty { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 12px 10px 14px; }
.rgn-empty + .rgn-empty::before { content: ""; position: absolute; top: 0; right: 0; left: 52px; border-top: 0.5px solid var(--line); }
.rgn-empty .flag { font-size: 26px; line-height: 1; }
.rgn-empty .grow { display: grid; min-width: 0; }
.rgn-empty b { font-size: 17px; font-weight: 700; }
.rgn-empty .line { color: var(--muted); font-size: 13px; line-height: 18px; }
.rgn-empty .rgn-add { width: auto; flex: none; min-height: 40px; padding: 6px 12px; border-style: solid; border-color: transparent; background: var(--accent-soft); border-radius: 20px; font-size: 14px; }
.rgn-new { margin-top: 4px; }
.rgn-new .btn .ico { width: 20px; height: 20px; vertical-align: -4px; }
.ads-make .btn .ico { width: 20px; height: 20px; vertical-align: -4px; }
@media (max-width: 360px) {
  .rgn-empty .rgn-add span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: no-preference) {
  .rgn-city[open] > .rgn-city-body, .rgn-past[open] > .rows { animation: enter 0.24s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .rgn-city-head .ctry-chev { transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .rgn-past > summary svg { transition: transform 0.2s; }
}
@media (prefers-reduced-motion: reduce) {
  .rgn-add:active { transform: none; }
  .rgn .ctry-chev, .rgn-past > summary svg { transition: none; }
}

/* Pictures: the library first, in square tiles; each city's pictures in a strip */
.lib-top { display: flex; align-items: center; gap: 12px; }
main.stack > .lib-top { margin-top: 12px; }
.lib-top p { flex: 1; margin: 0; }
.up-btn { flex: none; gap: 6px; }
.up-btn .ico { width: 18px; height: 18px; }
.lib-box { display: grid; gap: 10px; }
.lib-chips { margin-inline: 0; padding-inline: 0; flex-wrap: nowrap; overflow-x: auto; }
.chip.warn[aria-pressed="false"] { color: var(--warn); }
.lib { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; border-radius: 14px; overflow: hidden; }
.lib-tile { position: relative; display: block; aspect-ratio: 1; background: var(--fill); overflow: hidden; }
.lib-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.lib-tile.tall img { object-fit: contain; background: #000; }
.lib-tile:active img { transform: scale(0.96); }
.lib-name { display: grid; place-items: center; height: 100%; padding: 6px; font-size: 11px; color: var(--muted); text-align: center; word-break: break-all; }
.lib-star { position: absolute; top: 5px; right: 6px; color: #ffcc00; font-style: normal; font-size: 15px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
.lib-bad, .lib-note { position: absolute; left: 5px; right: 5px; bottom: 5px; padding: 2px 6px; border-radius: 6px; font-size: 10.5px; line-height: 14px; font-weight: 600; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lib-bad { background: var(--bad); color: #fff; }
.lib-note { background: rgba(0, 0, 0, 0.6); color: #fff; }
.lib-wait { position: absolute; top: 6px; left: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8); }
.cities { display: grid; gap: 10px; }
.city { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--group); }
.city-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.city-head h3 { font-size: 17px; }
.city-strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.city-strip .shot { flex: none; width: 86px; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: #000; }
.city-strip .shot.tall { aspect-ratio: 9 / 16; width: 62px; }
.city-strip img { width: 100%; height: 100%; object-fit: cover; }
.city-strip .shot.tall img { object-fit: contain; }
.city-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#sec-suggest > .rows { margin-top: 10px; }
@media (min-width: 800px) {
  .lib { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cities { grid-template-columns: 1fr 1fr; }
}
.city-head { flex-direction: column; align-items: flex-start; }
.city .pill { white-space: normal; max-width: 100%; }
.city, .cities, #sec-suggest { min-width: 0; max-width: 100%; }
/* the plan's buttons: Approve across, then the two others side by side, all the same height and shape */
.plan-acts { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
.plan-acts > .btn { min-height: 44px; padding: 8px 10px; border-radius: 12px; font-size: 15px; line-height: 20px; white-space: nowrap; }
.plan-acts > .btn:first-child { grid-column: 1 / -1; min-height: 50px; font-size: 17px; }
.plan-acts > .btn:nth-child(odd):last-child { grid-column: auto; }
.plan-acts > .btn.ghost { background: var(--fill); color: var(--accent); }
.regen { justify-content: flex-start; }
.regen .btn { min-height: 40px; border-radius: 20px; padding-inline: 14px; }
.plan-set-head { flex-wrap: nowrap; }
.plan-set-head .quiet { white-space: nowrap; }

/* the library's two sources, and a post as a tile */
.lib-src { margin-bottom: 10px; }
.lib-src .muted { font-weight: 400; }
.lib-tile.post img { object-fit: cover; }
.post-play { position: absolute; top: 6px; right: 7px; color: #fff; font-style: normal; font-size: 12px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.post-likes { position: absolute; left: 6px; bottom: 6px; padding: 1px 6px; border-radius: 8px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 11px; line-height: 16px; font-weight: 600; }
.lib-tile.post .lib-bad { bottom: 26px; }
#sec-posts .lib-top .btn { gap: 6px; }
#sec-posts .lib-top .ico { width: 16px; height: 16px; }

/* ===== tablets: the halves of a screen side by side, more tiles in a row, sheets in the middle ===== */
.half-a, .half-b { display: grid; gap: 0; align-content: start; min-width: 0; }
.half-a > * + *, .half-b > * + * { margin-top: 18px !important; }
main.stack > .half-a { margin-top: 12px; }
main.stack > .half-b { margin-top: 22px; }
.half-a > .tiles + .budget, .half-a > .budget + .home-advice { margin-top: 10px !important; }
@media (min-width: 640px) {
  .shell { max-width: 760px; }
  .lib { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tiles { grid-template-columns: 2fr 1fr 1fr; }
  .tile-wide { grid-column: auto; }
  .cities { grid-template-columns: 1fr 1fr; }
  dialog.sheet { max-width: 560px; margin: auto; border-radius: 18px; max-height: 86dvh; box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.4); }
  @media (prefers-reduced-motion: no-preference) {
    @keyframes sheetPop { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
    dialog.sheet[open] { animation: sheetPop 0.28s cubic-bezier(0.2, 0.9, 0.3, 1); }
  }
}
@media (min-width: 900px) {
  .shell { max-width: 1240px; }
  main.stack { max-width: none !important; }
  .view-home, .view-days { display: grid !important; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: 24px; align-items: start; }
  .view-home > :not(.half-a):not(.half-b), .view-days > :not(.half-a):not(.half-b) { grid-column: 1 / -1; }
  .view-home > .half-a, .view-home > .half-b, .view-days > .half-a, .view-days > .half-b { margin-top: 16px !important; }
  .view-days > .half-b { position: sticky; top: 60px; }
  .lib { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .view-ads > *:not(#sec-plans), .view-files > *, .view-asks > *, .view-profile > *, .view-chat > * { max-width: 900px; }
  .view-asks .rows { display: grid; grid-template-columns: 1fr 1fr; }
  .view-asks .ask-swipe + .ask-swipe > .ask-line::before { left: 16px; }
}

@media (min-width: 900px) {
  .view-home, .view-days { grid-auto-flow: row dense; }
  .view-home > .half-a, .view-days > .half-a { grid-column: 1; }
  .view-home > .half-b, .view-days > .half-b { grid-column: 2; }
}
/* each picture a tile of its own, with room around it */
.lib { gap: 8px; border-radius: 0; overflow: visible; }
.lib-tile { border-radius: 12px; box-shadow: 0 0 0 0.5px var(--line); }
@media (min-width: 640px) { .lib { gap: 10px; } }
.lib-src a { white-space: nowrap; }
.lib-src .num { margin-left: 4px; }
.city-strip { gap: 8px; }
.mini-pics img + img { margin-left: -8px; }
.lib-src a { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 4px; }
.lib-src .num { margin-left: 0; }

/* ===== tablets: room to breathe ===== */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  main.stack { padding-inline: var(--gutter); }
  .half-a > * + *, .half-b > * + * { margin-top: 24px !important; }
  main.stack > * + * { margin-top: 26px; }
  .tiles { gap: 14px; }
  .tile { padding: 18px; min-height: 120px; }
  .tile-wide { column-gap: 20px; }
  .rows .row { padding-inline: 18px; }
  .ctry, .city, .kpi, .budget, .next-client, .week { border-radius: 18px; }
  .kpis { gap: 14px; }
  .kpi { padding: 16px; }
  .cities { gap: 14px; }
  .ctry + .ctry { margin-top: 14px; }
  .chips { gap: 10px; }
  .group-title { margin-bottom: 10px; }
}
@media (min-width: 900px) {
  :root { --gutter: 36px; }
  .view-home, .view-days { column-gap: 32px; }
  /* on a landscape tablet the three tiles would be squeezed: the ring takes its own row, the other two share the next */
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: 1 / -1; }
  .view-asks .rows { gap: 12px; background: none; }
  .view-asks .ask-swipe, .view-asks .ask-swipe > .ask-line { border-radius: 16px; background: var(--group); }
  .view-asks .ask-swipe + .ask-swipe > .ask-line::before { display: none; }
  #sec-plans { gap: 0 20px; }
}
/* the two halves keep their distance (the frame's own rule took the gap away) */
@media (min-width: 900px) {
  main.stack.view-home, main.stack.view-days { column-gap: 36px; }
}
/* the month on a tablet: bigger days, more air between the weeks */
@media (min-width: 640px) {
  .cal:not(.compact) { gap: 10px 0; }
  .cal:not(.compact) .day { width: min(54px, 100%); font-size: 19px; }
  .cal-head { font-size: 14px; }
  .cal-card { padding: 10px 14px 16px; }
  .day-sheet { padding: 18px; gap: 14px; }
  .week { padding: 12px 10px; }
  .wk b { font-size: 19px; }
}
.adp-thumb { position: relative; }
.thumb-ig { position: absolute; left: 3px; bottom: 3px; padding: 0 3px; border-radius: 4px; background: rgba(0, 0, 0, 0.6); color: #fff; font: 700 8px/12px var(--sys); font-style: normal; }
.gen-btn { gap: 6px; }
.gen-btn .ico { width: 16px; height: 16px; }
@media (prefers-reduced-motion: no-preference) { .gen-btn.spinning .ico { animation: spin 0.8s linear infinite; } }
.gen-say { margin: 0 0 10px !important; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 600; }

/* the picture full size: a swipe to the next, its bar at the foot */
dialog.viewer { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: #fff; overflow: hidden; }
dialog.viewer::backdrop { background: #000; }
.vw-top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: calc(env(safe-area-inset-top) + 8px) 12px 8px; background: linear-gradient(rgba(0, 0, 0, 0.55), transparent); }
.vw-x { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; }
.vw-count { font-size: 15px; }
.vw-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; opacity: 0.7; text-align: right; }
.vw-strip { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.vw-strip::-webkit-scrollbar { display: none; }
.vw-slide { flex: 0 0 100%; display: grid; place-items: center; height: 100%; margin: 0; padding: 64px 0 96px; scroll-snap-align: center; scroll-snap-stop: always; }
.vw-slide img, .vw-slide video { max-width: 100%; max-height: 100%; object-fit: contain; }
.vw-doc { display: grid; justify-items: center; gap: 10px; opacity: 0.85; }
.vw-doc .ico { width: 48px; height: 48px; }
.vw-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 10px 12px calc(env(safe-area-inset-bottom) + 12px); background: linear-gradient(transparent, rgba(0, 0, 0, 0.65)); }
.vw-bar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; max-width: 520px; margin: 0 auto; }
.vw-btn { display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, 0.12); color: #fff; font: 600 12px/15px var(--sys); text-decoration: none; overflow: hidden; }
.vw-btn span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vw-btn .ico { width: 22px; height: 22px; }
.vw-btn.on { color: #ffcc00; }
.vw-btn.on .ico { fill: currentColor; }
.vw-btn:active { transform: scale(0.95); }
.chip.folder { font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes vwIn { from { opacity: 0; transform: scale(0.97); } }
  dialog.viewer[open] { animation: vwIn 0.22s ease-out; }
}

/* ---------- 27/11: the way to the profile, Pictures' own tab ---------- */
.me-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin-left: -6px; border-radius: 50%; text-decoration: none; }
.me-btn .av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.2px; }
.me-btn .pdot { position: absolute; top: 6px; right: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--badge); box-shadow: 0 0 0 2px var(--canvas); }
.me-btn:active .av { transform: scale(0.92); }
.create-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 10px; align-items: stretch; }
main.stack > .create-row { margin-top: 14px; }
.create-btn { position: relative; display: grid; align-content: space-between; gap: 18px; min-height: 140px; padding: 16px; overflow: hidden; border-radius: 22px; background: linear-gradient(140deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 72%, #000) 100%); color: var(--on-accent); text-decoration: none; box-shadow: 0 10px 24px -14px var(--accent); isolation: isolate; }
.create-btn::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 65%); z-index: -1; }
.create-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, 0.2); }
.create-ic .ico { width: 21px; height: 21px; }
.create-txt { display: grid; gap: 3px; }
.create-txt b { font-size: 19px; line-height: 23px; font-weight: 700; letter-spacing: -0.2px; }
.create-txt .line { font-size: 13px; line-height: 17px; opacity: 0.85; }
.create-fan { position: absolute; right: 8px; top: 8px; width: 92px; height: 72px; pointer-events: none; transform: scale(0.86); transform-origin: top right; }
.create-fan img { position: absolute; top: 6px; width: 42px; height: 63px; object-fit: cover; border-radius: 7px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); outline: 2px solid rgba(255, 255, 255, 0.85); }
.create-fan img:nth-child(1) { left: 0; transform: rotate(-11deg); }
.create-fan img:nth-child(2) { left: 25px; top: 0; z-index: 2; transform: rotate(0deg); }
.create-fan img:nth-child(3) { left: 50px; transform: rotate(11deg); }
@media (prefers-reduced-motion: no-preference) {
  .create-fan img { transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.2, 1); }
  .create-btn:hover .create-fan img:nth-child(1), .create-btn:active .create-fan img:nth-child(1) { transform: rotate(-16deg) translateX(-6px); }
  .create-btn:hover .create-fan img:nth-child(3), .create-btn:active .create-fan img:nth-child(3) { transform: rotate(16deg) translateX(6px); }
}
.create-btn:active { transform: scale(0.985); }
.up-tile { display: grid; place-items: center; align-content: center; gap: 8px; padding: 12px 6px; border: 0; border-radius: 22px; background: var(--group); color: var(--accent); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.up-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); }
.up-ic .ico { width: 20px; height: 20px; }
.up-tile:active { transform: scale(0.96); }


/* ---------- Today: every block folds like a dropdown ---------- */
.hfold-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 4px 6px 0; }
.hfold-head .group-title { margin: 0; flex: 1; min-width: 0; }
.hfold-btn { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 36px; padding: 4px 8px 4px 16px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.hfold-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.hfold-btn .count-chip { margin-left: 2px; }
.hfold-sub { color: var(--muted); font-weight: 400; font-size: 13px; }
.hfold-sub::before { content: "·"; margin-right: 6px; }
.fold-chev { flex: none; margin-left: auto; color: var(--muted); transition: transform 0.25s ease; }
.hfold.shut .fold-chev { transform: rotate(-90deg); }
.hfold-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.28s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.2s ease; }
.hfold-in { min-height: 0; overflow: hidden; }
.hfold.shut .hfold-body { grid-template-rows: 0fr; opacity: 0; }
.hfold.shut .hfold-head { margin-bottom: 0; }
.hfold.shut .hfold-head .group-link { display: none; }
@media (prefers-reduced-motion: reduce) { .hfold-body, .fold-chev { transition: none; } }
.hfold-in > .state-pill { margin-top: 0; }
main.stack > .hfold-coming { margin-top: 12px; }

/* ---------- Coming up: a widget at the top ---------- */
.cu { display: grid; gap: 0; padding: 12px; border-radius: 20px; background: var(--group); }
.cu .week { margin: 0 0 12px; padding: 4px 0; background: none; }
.cu-today, .cu-later { display: grid; gap: 8px; padding: 12px 4px 4px; border-top: 1px solid var(--line); }
.cu-dayhead { display: flex; align-items: baseline; gap: 8px; padding: 0 4px; }
.cu-dayhead b { font-size: 15px; line-height: 20px; }
.cu-dayhead .muted { font-size: 13px; }
.cu-list { display: grid; gap: 6px; }
/* the upcoming guest spots, one row under the days, apart from them */
.cu-spots { margin-top: 12px; border-radius: 14px; background: var(--surface); }
.cu-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; }
.cu-row:active { transform: scale(0.99); }
/* a row that is a button (a guest spot, a client on a day) looks like one that is a link */
button.cu-row { width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; }
.cu-time { display: grid; justify-items: start; gap: 0; padding-right: 10px; border-right: 2px solid var(--accent); }
.cu-time b { font-size: 16px; line-height: 20px; font-weight: 700; }
.cu-time small { font-size: 12px; line-height: 15px; color: var(--muted); }
.cu-what { display: grid; gap: 1px; min-width: 0; }
.cu-what b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cu-what .line { font-size: 13px; color: var(--muted); }
/* how the deposit of an appointment stands: paid green, waiting amber, none asked grey */
.dep-chip { display: inline-flex; justify-self: start; align-self: start; width: max-content; max-width: 100%; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; }
.dep-chip.paid { background: var(--ok-soft); color: var(--ok); }
.dep-chip.pending { background: var(--warn-soft); color: var(--warn); }
.dep-chip.none { background: var(--soft); color: var(--muted); font-weight: 500; }
.kv-row .dep-chip { margin-top: 0; }
.cu-note { margin-top: 4px; padding: 6px 8px; border-radius: 8px; background: var(--warn-soft); color: var(--ink); font-size: 13px; line-height: 17px; white-space: pre-line; }
.cu-empty { margin: 0; padding: 2px 4px; font-size: 14px; }
.cu-daynote, .cu-addnote { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 14px; font: inherit; text-align: left; cursor: pointer; }
.cu-daynote { background: var(--warn-soft); color: var(--ink); font-size: 14px; line-height: 19px; }
.cu-daynote .cu-pin .ico { width: 18px; height: 18px; color: var(--warn); }
.cu-edit { flex: none; font-size: 13px; color: var(--accent); }
.cu-addnote { align-items: center; background: none; color: var(--accent); font-size: 14px; box-shadow: inset 0 0 0 1.5px var(--line); }
.cu-addnote .ico { width: 16px; height: 16px; }
.cu-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.day-sheet > .cu-daynote, .day-sheet > .cu-addnote { margin-top: 4px; }
.other-city { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; background: none; cursor: pointer; overflow: hidden; }
.other-city img { display: block; width: 100%; filter: grayscale(0.6) brightness(0.8); }
.oc-tag { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 8px; background: var(--warn); color: #fff; font-size: 11px; font-weight: 700; }
.oc-pic img { display: block; max-height: 42vh; margin: 0 auto; border-radius: 14px; }
/* the unread count sits on the corner of the messages sign, not over it */
.bar .to-chat .count { top: 4px; right: -3px; box-sizing: border-box; height: 18px; min-width: 18px; padding: 0 5px; border-radius: 9px; font-size: 11px; line-height: 18px; text-align: center; }
/* inside a folding block its pieces keep their breathing room */
.hfold-in > * + * { margin-top: 12px; }
.hfold-in > .state-pill { margin-bottom: 2px; }
.vw-btn.vw-del { color: #ff6b6b; }

/* ---------- the edit room (#make) ---------- */
.ed-h1 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.4px; }
.ed-sub { margin: 2px 0 0; font-size: 14px; line-height: 18px; color: var(--muted); }
.ed-room { display: grid; gap: 12px; margin-top: 10px; }
main.view-make > .ed-h1 + .ed-sub { margin-top: 0; }
.ed-stage { position: relative; display: grid; justify-items: center; gap: 8px; padding: 16px 12px 12px; border-radius: 24px; background: radial-gradient(120% 80% at 50% 0%, #26262c 0%, #0d0d10 70%); }
.ed-frame { position: relative; height: clamp(300px, calc(100svh - 440px), 600px); aspect-ratio: 9 / 16; max-width: 100%; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06); touch-action: none; user-select: none; -webkit-user-select: none; }
.ed-frame canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.ed-frame canvas:active { cursor: grabbing; }
.ed-ring { position: absolute; box-sizing: border-box; border: 2px solid #fff; border-radius: 6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(0, 0, 0, 0.25); pointer-events: none; transition: left 0.18s ease, top 0.18s ease, width 0.18s ease, height 0.18s ease, opacity 0.2s ease; }
.ed-ring[hidden] { display: block; opacity: 0; }
.ed-zoom-tag { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.62); color: #fff; font-size: 13px; font-weight: 600; pointer-events: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ed-hint { margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.86); font-size: 12px; line-height: 16px; text-align: center; }
.ed-say { margin: 0; color: #ffb4a8; font-size: 13px; }
.ed-say:empty { display: none; }
.ed-side { display: grid; gap: 12px; align-content: start; min-width: 0; }
.ed-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: var(--group); }
.ed-tool { display: grid; justify-items: center; gap: 3px; padding: 8px 4px 7px; border: 0; border-radius: 12px; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.ed-tool .ico { width: 22px; height: 22px; }
.ed-tool[aria-selected="true"] { background: var(--surface); color: var(--accent); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.ed-tool:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ed-panel { display: grid; gap: 12px; padding: 14px; border-radius: 18px; background: var(--group); min-width: 0; }
.ed-panel[hidden] { display: none; }
.ed-lays { margin: -4px -6px; padding: 4px 6px 8px; }
.ed-lays .lay { width: 88px; }
.ed-lays .lay canvas { width: 88px; height: 156px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.ed-lays .lay[aria-pressed="true"] canvas { box-shadow: 0 0 0 2.5px var(--accent); }
.ed-lays .lay[aria-pressed="true"] .tiny { color: var(--accent); font-weight: 600; }
.ed-slots .slot { flex: 0 1 64px; border-radius: 10px; }
.ed-zoom { display: flex; align-items: center; gap: 10px; }
.ed-zoom-row { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.ed-zoom-row input[type="range"] { flex: 1; min-width: 0; accent-color: var(--accent); }
.ed-zoom-row b { min-width: 34px; text-align: right; }
.ed-picks { display: flex; gap: 8px; overflow-x: auto; margin: 0 -14px; padding: 2px 14px 6px; scroll-snap-type: x proximity; }
.ed-picks .pick { flex: none; width: 72px; aspect-ratio: 3 / 4; scroll-snap-align: start; border-radius: 10px; }
.ed-tones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ed-tone { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border: 0; border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ed-tone i { width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); }
.ed-tone.tone-colour i { background: conic-gradient(#e35d5b, #f2b33d, #5cb85c, #3f8ee0, #9b59b6, #e35d5b); }
.ed-tone.tone-mono i { background: linear-gradient(135deg, #f4f4f4 0%, #8a8a8a 50%, #141414 100%); }
.ed-tone.tone-warm i { background: linear-gradient(135deg, #f6e7cf 0%, #b08a5e 55%, #3b2a1a 100%); }
.ed-tone[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); color: var(--accent); }
.ed-words .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.ed-foot { position: sticky; bottom: calc(var(--tabs-h, 64px) + 10px + env(safe-area-inset-bottom)); z-index: 4; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 18px; background: var(--surface); box-shadow: 0 8px 28px -10px rgba(0, 0, 0, 0.35); }
.ed-ticks { display: grid; gap: 4px; flex: 1; min-width: 0; }
.ed-foot .check { font-size: 13px; line-height: 17px; }
.ed-foot > .btn { flex: none; padding-inline: 22px; }
@media (min-width: 820px) {
  .ed-room { grid-template-columns: auto minmax(320px, 1fr); align-items: start; gap: 24px; }
  .ed-stage { position: sticky; top: 64px; padding: 20px; }
  .ed-frame { height: min(calc(100svh - 150px), 720px); }
  .ed-foot { position: static; }
}
@media (prefers-reduced-motion: reduce) { .ed-ring { transition: none; } }
/* sheets: never wider than the screen, pulled down to close, and gone quickly */
dialog.sheet { overflow-x: hidden; transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1); will-change: transform; }
dialog.sheet.pulling { transition: none; }
dialog.sheet.leaving { transform: translateY(105%) !important; transition: transform 0.17s ease-in; }
dialog.sheet.leaving::backdrop { opacity: 0; transition: opacity 0.17s ease-in; }
.sheet-body { grid-template-columns: minmax(0, 1fr); }
.sheet-head { touch-action: none; }
@media (min-width: 640px) { dialog.sheet.leaving { transform: translateY(24px) scale(0.98) !important; opacity: 0; transition: transform 0.15s ease-in, opacity 0.15s ease-in; } }

/* ---------- the side bar on a tablet or computer ---------- */
.tabs .side-gap, .tabs .side-extra { display: none; }
@media (min-width: 800px) {
  .tabs { width: 240px; gap: 4px; padding: 76px 14px 16px; background: var(--group); border-right: 0.5px solid var(--line); }
  .shell { padding-left: 264px; }
  .side-new { left: 14px; top: 18px; width: 212px; height: 44px; border-radius: 14px; font-size: 15px; box-shadow: 0 8px 20px -12px var(--accent); }
  .tabs a { position: relative; min-height: 46px; padding: 0 12px; gap: 14px; border-radius: 12px; font-size: 15px; line-height: 20px; font-weight: 500; color: var(--ink); }
  .tabs a .ico { width: 22px; height: 22px; color: var(--muted); }
  .tabs a:hover { background: var(--fill) !important; }
  .tabs a[aria-current="page"] { background: var(--accent-soft) !important; color: var(--accent); font-size: 15px; line-height: 20px; font-weight: 600; }
  .tabs a[aria-current="page"] .ico { color: var(--accent); }
  .tabs .badge { position: static; margin-left: auto; min-width: 22px; height: 22px; border-radius: 11px; font-size: 12px; line-height: 22px; box-shadow: none; }
  .tabs a > .pdot { position: static; margin-left: auto; width: 8px; height: 8px; box-shadow: none; }
  .tabs a:first-child { margin-left: 0; }
  .tabs .side-gap { display: block; flex: 1; }
  .tabs .side-extra { display: flex; }
  .side-me { min-height: 60px !important; margin-top: 6px; padding: 8px 10px !important; background: var(--surface) !important; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
  .side-me .av { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; }
  .side-who { display: grid; min-width: 0; }
  .side-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--ink); }
  .side-who small { font-size: 12px; line-height: 15px; font-weight: 400; color: var(--muted); }
  .side-me[aria-current="page"] { box-shadow: 0 0 0 2px var(--accent); }
  /* the top bar no longer needs its own way to the profile or the messages: the side bar has them */
  .bar .me-btn, .bar .to-chat { display: none; }
}
/* a sheet as it goes: a still copy over the screen, which already takes taps */
.sheet-ghost { position: fixed; z-index: 1000; display: block; box-sizing: border-box; margin: 0; padding: 0; border: 0; overflow: hidden; border-radius: 14px 14px 0 0; background: var(--group); color: var(--ink); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18); pointer-events: none; transition: transform 0.2s ease-in, opacity 0.2s ease-in; }
.sheet-ghost.go { transform: translateY(105%) !important; }
.sheet-shade { position: fixed; inset: 0; z-index: 999; background: rgba(0, 0, 0, 0.35); pointer-events: none; transition: opacity 0.2s ease-in; }
.sheet-shade.go { opacity: 0; }
@media (min-width: 640px) {
  .sheet-ghost { border-radius: 18px; }
  .sheet-ghost.go { transform: translateY(24px) scale(0.98) !important; opacity: 0; }
}
/* the sessions of a request being accepted */
.sess-head { display: flex; align-items: center; gap: 12px; }
.sess-head .grow { display: grid; gap: 1px; }
.sess-head .line { font-size: 13px; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 12px; background: var(--fill); }
.step-btn { width: 36px; height: 34px; border: 0; border-radius: 9px; background: var(--surface); color: var(--accent); font: inherit; font-size: 20px; font-weight: 600; line-height: 1; cursor: pointer; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.step-btn:disabled { opacity: 0.35; cursor: default; }
.stepper b { min-width: 28px; text-align: center; font-size: 17px; }
.sess-list { display: grid; gap: 8px; }
.sess-row { display: grid; grid-template-columns: 26px minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 6px; align-items: center; padding: 8px; border-radius: 14px; background: var(--surface); }
.sess-k { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; }
@media (max-width: 380px) { .sess-row { grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr); } .sess-row .sess-date { grid-column: 2 / -1; } .sess-row .sess-time { grid-column: 2; } }
.sess-days[hidden] { display: none; }
.create-side { display: grid; gap: 10px; grid-auto-rows: 1fr; }
.create-side .up-tile { gap: 4px; padding: 8px 6px; font-size: 13px; white-space: nowrap; }
.create-side .up-ic { width: 32px; height: 32px; }
.create-side .up-ic .ico { width: 17px; height: 17px; }
.create-row { grid-template-columns: minmax(0, 1fr) 100px; }
.gen-tile.spinning .ico, .gen-tile[disabled] .ico { animation: spin 0.8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .gen-tile .ico { animation: none !important; } }
.btn.danger-soft { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); box-shadow: none; }
.btn.danger-soft .ico { width: 18px; height: 18px; }
/* favourites and folders while choosing photos */
.pick-chips { margin: 0; padding: 0; flex-wrap: wrap; }
.pick[hidden] { display: none !important; }
.pick { position: relative; }
.pick-star { position: absolute; right: 4px; bottom: 4px; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.42); color: rgba(255, 255, 255, 0.9); font: inherit; font-size: 15px; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pick-star.on { color: #ffd24d; background: rgba(0, 0, 0, 0.55); }
.pick-star:active { transform: scale(0.88); }

/* the way into the edit room, on an ad shown while ads are made */
.shot, .shot-link { position: relative; display: block; }
.shot-edit { position: absolute; right: 6px; bottom: 6px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 0, 0, 0.5); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none; }
.shot-edit .ico { width: 15px; height: 15px; }
.vw-edit { color: #8fb8ff; }
/* six in a row on a phone: every name whole */
@media (max-width: 480px) { .vw-bar { gap: 4px; } .vw-btn { padding-inline: 2px; } .vw-btn span { font-size: 10.5px; letter-spacing: -0.1px; overflow: visible; text-overflow: clip; white-space: nowrap; } }
/* the words of the ad, one by one */
.ed-ring.words { border-style: dashed; border-color: #ffd24d; }
.ed-el { display: grid; gap: 8px; padding: 10px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 0 transparent; transition: box-shadow 0.2s ease; }
.ed-el.on { box-shadow: 0 0 0 2px var(--accent); }
.ed-el .field { margin: 0; }
.ed-el-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ed-el-tools .stepper b { min-width: 40px; font-size: 12px; }
.ed-el-tools .step-btn { width: 34px; height: 30px; font-size: 13px; }
.ed-colours { display: inline-flex; gap: 6px; }
.ed-colour { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); cursor: pointer; }
.ed-colour.auto { background: conic-gradient(#fff 0 25%, #111 0 50%, #fff 0 75%, #111 0); }
.ed-colour[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
/* whom a plan's ads are shown to, and why */
.aud-why { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 0; }
.aud-why .ico, .aud-line .lead .ico { flex: none; width: 16px; height: 16px; color: var(--accent); margin-top: 2px; }
.aud-line { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--group); }
.aud-line .grow { display: grid; gap: 2px; }
.aud-line b { font-size: 14px; }
.aud-line .line { font-size: 13px; color: var(--muted); }
.ask-del { margin-top: 8px; }

/* the ground of every screen: a soft light from the top in the app's own colour, fading into the page, still while it scrolls */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(130% 55% at 50% -8%, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 70%),
    radial-gradient(90% 40% at 100% 0%, color-mix(in srgb, var(--accent) 9%, transparent) 0%, transparent 65%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, var(--canvas)) 0%, var(--canvas) 55%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body::before {
    background:
      radial-gradient(120% 45% at 15% -5%, color-mix(in srgb, var(--accent) 17%, transparent) 0%, transparent 70%),
      radial-gradient(100% 50% at 100% 30%, color-mix(in srgb, var(--accent) 6%, transparent) 0%, transparent 70%),
      linear-gradient(170deg, color-mix(in srgb, var(--accent) 11%, var(--canvas)) 0%, color-mix(in srgb, var(--accent) 4%, var(--canvas)) 55%, var(--canvas) 100%); }
}
:root[data-theme="dark"] body::before {
  background:
    radial-gradient(120% 45% at 15% -5%, color-mix(in srgb, var(--accent) 17%, transparent) 0%, transparent 70%),
    radial-gradient(100% 50% at 100% 30%, color-mix(in srgb, var(--accent) 6%, transparent) 0%, transparent 70%),
    linear-gradient(170deg, color-mix(in srgb, var(--accent) 11%, var(--canvas)) 0%, color-mix(in srgb, var(--accent) 4%, var(--canvas)) 55%, var(--canvas) 100%); }
/* in the dark, cards take a breath of the app's colour, so they sit on its ground */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --group: color-mix(in srgb, var(--accent) 5%, #121316); --surface: color-mix(in srgb, var(--accent) 5%, #121316); --canvas: color-mix(in srgb, var(--accent) 3%, #030304); }
}
:root[data-theme="dark"] { --group: color-mix(in srgb, var(--accent) 5%, #121316); --surface: color-mix(in srgb, var(--accent) 5%, #121316); --canvas: color-mix(in srgb, var(--accent) 3%, #030304); }

/* ---------- the top bar of each place: see-through, a round gear, who and how the ads stand, round buttons ---------- */
.bar.mine { min-height: 60px; padding-top: calc(env(safe-area-inset-top) + 6px); padding-bottom: 6px; grid-template-columns: minmax(0, 1fr) auto auto; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent !important; transition: background-color 0.2s ease; }
.bar.mine.under { background: color-mix(in srgb, var(--canvas) 62%, transparent); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); }
.bar.mine .bar-title { display: none; }
.bar.mine .bar-start:first-child { gap: 10px; }
.me-gear { position: relative; display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent); text-decoration: none; }
.me-gear .ico { width: 21px; height: 21px; }
.me-gear .pdot { position: absolute; top: 2px; right: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--badge); box-shadow: 0 0 0 2px var(--canvas); }
.me-gear:active { transform: scale(0.92); }
.me-who { display: grid; gap: 1px; min-width: 0; color: var(--ink); text-decoration: none; }
.me-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; line-height: 22px; font-weight: 700; letter-spacing: -0.2px; }
.me-state { display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; line-height: 16px; color: var(--muted); }
.me-state i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.me-state.paused i { background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 22%, transparent); }
.me-state.setup i { background: var(--faint); box-shadow: none; }
.bar.mine .bar-end { gap: 8px; padding-right: 4px; }
.bar.mine .icon-btn { width: 42px; height: 42px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent); color: var(--ink); }
.bar.mine .icon-btn .ico { width: 21px; height: 21px; }
.bar.mine .to-chat .count { top: -2px; right: -2px; }
/* the place's own large title: the bar now says who it is, so it stands a little lower */
main.stack > .head:first-child, main.stack > .home-head { margin-top: 4px; }
/* the artist's own photo, round, where their initials stood */
.av-img { display: block; flex: none; width: 100%; height: 100%; overflow: hidden; border-radius: 50%; background: var(--fill); }
.av-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.me-gear .av-img, .me-gear .av { width: 42px; height: 42px; }
.me-gear .av { display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 700; }
.me-gear:has(.av-img) { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent); }
.side-me .av-img { width: 36px; height: 36px; }
.me-row .av-img.avatar, .row .av-img.avatar { width: 44px; height: 44px; }
.av-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.av-pick { aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; overflow: hidden; background: var(--fill); cursor: pointer; }
.av-pick img { display: block; width: 100%; height: 100%; object-fit: cover; }
.av-pick[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent); }

/* ---------- the calendar: square days, and a month that follows the finger ---------- */
#cal-grid { overflow: hidden; touch-action: pan-y; }
#cal-grid > div { will-change: transform; }
.cal:not(.compact) { gap: 6px; }
.cal:not(.compact) .cal-head { padding: 2px 0 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; color: var(--muted); }
.cal:not(.compact) .day { justify-self: stretch; width: 100%; height: auto; aspect-ratio: 1; border-radius: 12px; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; transition: transform 0.12s ease, background-color 0.2s ease, box-shadow 0.2s ease; }
.cal:not(.compact) .day:active:not(:disabled) { transform: scale(0.92); }
.cal:not(.compact) .day.past, .cal:not(.compact) .day.past.free, .cal:not(.compact) .day.past.off, .cal:not(.compact) .day.past.booked { background: none; box-shadow: none; color: var(--faint); font-weight: 400; }
.cal:not(.compact) .day.today.booked { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent-fill); }
.cal:not(.compact) .day.chosen { outline: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.cal-card { padding: 8px 10px 14px; border-radius: 20px; }
.legend i { border-radius: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .cal-in.next { animation: calSlideNext 0.28s cubic-bezier(0.2, 0.9, 0.3, 1); }
  .cal-in.prev { animation: calSlidePrev 0.28s cubic-bezier(0.2, 0.9, 0.3, 1); }
}
@keyframes calSlideNext { from { transform: translateX(40%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes calSlidePrev { from { transform: translateX(-40%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- the Calendar page, whole ---------- */
.cal-head-top { align-items: center; flex-wrap: nowrap; }
.cal-head-top h1 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 28px; line-height: 34px; }
.cal-tools { flex: none; gap: 8px; padding: 0; }
.cal-arrows { display: inline-flex; padding: 3px; border-radius: 14px; background: var(--group); box-shadow: inset 0 0 0 1px var(--line); }
.cal-arrows .cal-step { width: 36px; height: 34px; border-radius: 11px; }
.cal-arrows .cal-step[hidden] { display: none; }
/* the month in three figures */
.cal-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
main.stack > .cal-stats { margin-top: 12px; }
.cal-stat { position: relative; display: grid; gap: 0; padding: 10px 12px; border-radius: 16px; background: var(--group); overflow: hidden; }
.cal-stat b { font-size: 22px; line-height: 26px; font-weight: 800; letter-spacing: -0.4px; }
.cal-stat span { font-size: 12px; line-height: 15px; color: var(--muted); text-transform: capitalize; }
.cal-stat i { position: absolute; top: 12px; right: 12px; width: 10px; height: 10px; border-radius: 3px; }
.cal-stat.booked i { background: var(--accent-fill); }
.cal-stat.free i { background: color-mix(in srgb, var(--accent) 20%, var(--group)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.cal-stat.full { background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 22%, var(--group)), var(--group)); }
.cal-when { margin: 6px 4px 0 !important; }
main.stack > .cal-when { margin-top: 6px; }
/* people on a day: a dot each, up to three */
.day .dots { position: absolute; left: 50%; bottom: 5px; display: flex; gap: 2px; transform: translateX(-50%); pointer-events: none; }
.day .dots .spot { position: static; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.day .dots .spot.hold { background: none; box-shadow: inset 0 0 0 1px currentColor; }
/* the day chosen */
.day-sheet { gap: 14px; padding: 16px; border-radius: 20px; }
.day-top { display: flex; align-items: center; gap: 12px; }
.day-num { display: grid; justify-items: center; align-content: center; flex: none; width: 54px; height: 58px; border-radius: 14px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.day-num small { font-size: 11px; line-height: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); }
.day-num b { font-size: 24px; line-height: 28px; font-weight: 800; }
.day-num.booked { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 85%, #fff), var(--accent-fill)); color: var(--on-accent); }
.day-num.booked small { color: color-mix(in srgb, var(--on-accent) 80%, transparent); }
.day-num.free { background: color-mix(in srgb, var(--accent) 14%, var(--group)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent); }
.day-top .day-title h3 { font-size: 17px; line-height: 22px; }
.state-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.state-pick .sp { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.state-pick .sp i { width: 10px; height: 10px; border-radius: 3px; }
.state-pick .sp.free i { background: color-mix(in srgb, var(--accent) 20%, var(--group)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.state-pick .sp.booked i { background: var(--accent-fill); }
.state-pick .sp.off i { background: color-mix(in srgb, var(--ink) 18%, transparent); }
.state-pick .sp[aria-current="page"] { background: var(--surface); box-shadow: 0 0 0 2px var(--accent-fill); }
.day-sheet .cu-row { width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; }
.day-sheet .cu-row.ask .cu-time { border-right-color: var(--warn); }
/* what comes next, by day: no bands, the day's name on the page itself */
.agenda { display: grid; gap: 14px; }
.ag-head { margin: 0 0 6px; padding: 0 6px; font-size: 13px; line-height: 18px; color: var(--muted); }
.ag-head b { font-weight: 700; color: var(--ink); }
.agenda .cu-row { background: var(--group); }
.cal-saved { text-align: center; }
.cu-time b { white-space: nowrap; font-size: 15px; }
.cu-row { grid-template-columns: 68px minmax(0, 1fr) auto; }
/* the days keep the colours they always had (booked filled, free soft, today in the app's colour); only their shape is square */
.cal:not(.compact) .day.chosen { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent-fill); }
.cal:not(.compact) .day.today.booked { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent-fill); }
.day-num.booked { background: var(--day-fill); color: var(--on-day); }
.day-num.booked small { color: color-mix(in srgb, var(--on-day) 75%, transparent); }
.day-num.free { background: var(--accent-soft); box-shadow: none; }
.cal-stat.booked i, .state-pick .sp.booked i { background: var(--day-fill); }
.cal-stat.free i, .state-pick .sp.free i { background: var(--accent-soft); box-shadow: none; }
.legend i { border-radius: 4px; }
/* a long month's name with the arrows and Today beside it: a little smaller, never cut */
.cal-head-top h1 { font-size: clamp(22px, 6.4vw, 28px); text-overflow: clip; }
.cal-tools .chip { padding-inline: 10px; }
/* each day of the month: a square with its number in the middle */
.cal:not(.compact) .day { aspect-ratio: 0.78; display: grid; align-content: start; justify-items: center; padding: 9px 2px 0; line-height: 20px; }
.cal:not(.compact) .day .dots { bottom: auto; top: 33px; }
.cal:not(.compact) .day .ask-n { top: 3px; right: 3px; }
.cal:not(.compact) .day { box-sizing: border-box; min-width: 0; }
.cal:not(.compact) { align-items: start; }
.cal:not(.compact) .day { aspect-ratio: 1; align-content: center; padding: 0 2px; }
.cal:not(.compact) .day .dots { top: auto; bottom: 5px; }
/* a guest spot: a glowing line laid over the top edge of its days, carried across the gaps between them, and its city and
   country on a small tab sitting on the line. Drawn over the squares, so they keep their size and place. */
.cal:not(.compact) .day.away { overflow: visible; }
.day .trip-line, .day .trip-name { display: none; }
.cal:not(.compact) .day .trip-line { display: block; position: absolute; z-index: 2; top: -2px; left: -1px; right: -8px; height: 4px; background: linear-gradient(90deg, var(--accent-fill), color-mix(in srgb, var(--accent-fill) 70%, #b06cff)); box-shadow: 0 0 10px color-mix(in srgb, var(--accent-fill) 55%, transparent); pointer-events: none; }
.cal:not(.compact) .day .trip-line.starts { left: 2px; border-radius: 3px 0 0 3px; }
.cal:not(.compact) .day .trip-line.ends { right: 2px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; }
.cal:not(.compact) .day .trip-line.starts.ends { border-radius: 3px; }
.cal:not(.compact) .day .trip-name { display: block; position: absolute; z-index: 3; top: -9px; left: 4px; max-width: calc(100% - 6px); overflow: hidden; padding: 1px 7px 1px 15px; border-radius: 9px; background: var(--accent-fill); box-shadow: 0 2px 8px rgb(0 0 0 / 0.28), 0 0 0 1.5px var(--group); color: var(--on-accent); font-size: 9.5px; line-height: 13px; font-weight: 700; letter-spacing: 0.1px; text-align: left; white-space: nowrap; text-overflow: ellipsis; pointer-events: none; }
/* a small location dot before the place */
.cal:not(.compact) .day .trip-name::before { content: ""; position: absolute; left: 6px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: currentColor; opacity: 0.9; }
.cal:not(.compact) .day .trip-name:not(.starts) { opacity: 0.88; }
/* the tab may run on over the next days of the same week that the guest spot covers */
.cal:not(.compact) .day .trip-name.room-2 { max-width: calc(200% + 6px - 6px); }
.cal:not(.compact) .day .trip-name.room-3 { max-width: calc(300% + 12px - 6px); }
.cal:not(.compact) .day .trip-name.room-4 { max-width: calc(400% + 18px - 6px); }
.cal:not(.compact) .day .trip-name.room-5 { max-width: calc(500% + 24px - 6px); }
.cal:not(.compact) .day .trip-name.room-6 { max-width: calc(600% + 30px - 6px); }
.cal:not(.compact) .day .trip-name.room-7 { max-width: calc(700% + 36px - 6px); }
/* a later day of the week paints over the tab of an earlier one, unless the tab stays on top */
.cal:not(.compact) .day.away { z-index: 1; }
.cal:not(.compact) .day.away:has(.trip-name) { z-index: 2; }
/* a short piece at the end of a week sets its tab leftwards over the days before it, so the place is never cut to a letter */
.cal:not(.compact) .day .trip-name.leftward { left: auto; right: 2px; max-width: none; }
.cal:not(.compact) .day .dots { top: auto; bottom: 5px; }
.cal:not(.compact) .day.away { box-shadow: none; }

/* the booking page's photos: every one uploaded, a tick for the page and, on the ones ticked, a "Cover" to make it the first */
.page-picks { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pick-tile { position: relative; min-width: 0; }
/* the photo behind a guest spot's city on the booking page: the one found, or one of the artist's own */
.city-pic { margin: 0; padding: 0; border: 0; min-width: 0; }
.city-pics { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x proximity; }
.city-pic-opt { position: relative; flex: 0 0 auto; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); cursor: pointer; scroll-snap-align: start; }
.city-pic-opt input { position: absolute; opacity: 0; pointer-events: none; }
.city-pic-opt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.city-pic-opt.auto span { display: grid; place-items: center; height: 100%; padding: 4px; font-size: 11px; line-height: 1.2; font-weight: 600; text-align: center; color: var(--muted); }
.city-pic-opt:has(input:checked) { outline: 3px solid var(--accent-fill); outline-offset: -3px; }
.city-pic-opt.auto:has(input:checked) span { color: var(--ink); }
.city-pic-opt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.page-picks .pick { aspect-ratio: 1; border-radius: 12px; }
.page-picks .pick:not(:has(input:checked)) img { opacity: 0.55; filter: saturate(0.6); }
.cover-pick { position: absolute; left: 6px; right: 6px; bottom: 6px; z-index: 2; display: none; }
.pick-tile:has(input[name="photos"]:checked) .cover-pick { display: block; }
.cover-pick input { position: absolute; opacity: 0; pointer-events: none; }
.cover-pick span { display: block; overflow: hidden; padding: 4px 6px; border-radius: 999px; background: rgb(0 0 0 / 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; font-size: 11px; line-height: 14px; font-weight: 600; text-align: center; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.cover-pick input:checked + span { background: var(--accent-fill); color: var(--on-accent); }
.cover-pick input:checked + span::before { content: "★ "; }
.cover-pick input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.pick-tile:has(.cover-pick input:checked):has(input[name="photos"]:checked) .pick { outline: 3px solid var(--accent-fill); outline-offset: -3px; }
.pg-quick { display: inline-flex; gap: 10px; }
/* projects: the number of the project a photo is in, on its corner; while choosing, the photos tapped carry their order */
.pick-tile[data-set]:not([data-set=""])::after { content: "P" attr(data-set); position: absolute; top: 6px; right: 6px; z-index: 2; padding: 2px 7px; border-radius: 999px; background: rgb(0 0 0 / 0.6); color: #fff; font-size: 11px; line-height: 16px; font-weight: 700; pointer-events: none; }
form.choosing .page-picks .pick { cursor: copy; }
form.choosing .page-picks .pick input { opacity: 0; }
form.choosing .pick-tile:has(input[name="photos"]) .cover-pick { display: none; }
.pg-choosing > span { flex: 1 1 100%; }
form.choosing .pick-tile.chosen .pick { outline: 3px solid var(--accent-fill); outline-offset: -3px; }
form.choosing .pick-tile.chosen .pick img { opacity: 1; filter: none; }
form.choosing .pick-tile.chosen::after { content: attr(data-order); position: absolute; top: 6px; left: 6px; right: auto; z-index: 2; min-width: 22px; padding: 3px 0; border-radius: 999px; background: var(--accent-fill); color: var(--on-accent); font-size: 11px; line-height: 16px; font-weight: 700; text-align: center; pointer-events: none; }
form.choosing .page-picks { user-select: none; -webkit-user-select: none; }
.pg-choosing { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 3; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface); box-shadow: 0 6px 24px rgb(0 0 0 / 0.14), 0 0 0 1px var(--line); }
.pg-set { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.pg-set-head { display: flex; align-items: baseline; gap: 8px; }
.pg-set-head .quiet { margin-left: auto; }
.pg-set-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.pg-set-pic { position: relative; flex: none; width: 64px; height: 64px; padding: 0; overflow: hidden; border: 0; border-radius: 10px; background: var(--track); cursor: pointer; }
.pg-set-pic[aria-disabled="true"] { cursor: default; outline: 2px solid var(--accent-fill); outline-offset: -2px; }
.pg-set-pic img { width: 100%; height: 100%; object-fit: cover; }
.pg-set-pic i { position: absolute; left: 4px; bottom: 4px; min-width: 18px; padding: 1px 4px; border-radius: 999px; background: rgb(0 0 0 / 0.6); color: #fff; font-size: 11px; line-height: 16px; font-style: normal; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) { .pg-set-pic { transition: transform 0.15s ease; } .pg-set-pic:active { transform: scale(0.94); } }

/* a question with several answers: chips that tick on and off, wrapping onto more lines */
.several { min-width: 0; }
.check-chip b { font-weight: inherit; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; margin-top: 8px; }
.check-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.check-chip input { position: absolute; opacity: 0; pointer-events: none; }
.check-chip:has(input:checked) { background: var(--ink); color: var(--canvas); box-shadow: none; }
.check-chip:has(input:checked) b::before { content: "✓ "; }
.check-chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
/* a full-width button at the foot of a form card keeps inside the card's own margins */
form.card > .btn.wide { width: auto; justify-self: stretch; }
/* on the page's photos: a thin ring on the ones on the page, the strong one on the cover */
.page-picks .pick:has(input:checked) { outline: 2px solid color-mix(in srgb, var(--accent-fill) 45%, transparent); outline-offset: -2px; }

/* the one save of a sheet: kept in reach at its foot while the sheet scrolls */
.sheet .sheet-save { position: sticky; bottom: 0; z-index: 3; margin: 8px -16px -24px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--group) 72%, transparent); }
.plan-acts .btn svg { width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; }
/* a plan that waits: «Approve» and «Edit the ad», one under the other, the same width */
.req.stencil .plan-acts { display: grid; grid-template-columns: 1fr; gap: 8px; }
.req.stencil .plan-acts .btn { width: 100%; justify-content: center; }
/* the artist's basic ads: a row of tall cards, the one to add dashed; borrowed from «everywhere», they are shown faded */
.basics .bs-seg { padding: 3px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.basics .bs-seg button { min-height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--muted, inherit); font: 600 14px/1 var(--sys); box-shadow: none; }
.basics .bs-seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / 0.25); }
.bs-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bs-tile { position: relative; margin: 0; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 12px; background: var(--track); box-shadow: 0 6px 18px -8px rgb(0 0 0 / 0.5); }
.bs-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bs-row.borrowed .bs-tile img { opacity: 0.45; filter: saturate(0.5); }
.bs-x { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgb(0 0 0 / 0.6); color: #fff; font-size: 17px; line-height: 26px; cursor: pointer; }
.bs-add { display: grid; place-content: center; justify-items: center; gap: 6px; border: 1.5px dashed color-mix(in srgb, var(--ink) 30%, transparent); background: transparent; box-shadow: none; color: var(--accent); font: 600 13px/1.2 var(--sys); cursor: pointer; }
.bs-add svg { width: 22px; height: 22px; }
.bs-picks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bs-picks .pick { aspect-ratio: 9 / 16; border-radius: 12px; }
.pill.base { background: color-mix(in srgb, var(--accent-fill) 18%, transparent); color: var(--accent); text-decoration: none; }

/* a plan folds away under its head: the arrow turns, the place, status and amount stay */
.plan-fold > summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; cursor: pointer; }
.plan-fold > summary::-webkit-details-marker { display: none; }
.plan-fold .fold-arrow { display: grid; place-items: center; width: 32px; height: 32px; margin-top: -4px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--muted, inherit); transition: transform 0.2s ease; transform: rotate(90deg); }
.plan-fold[open] .fold-arrow { transform: rotate(-90deg); }
.plan-fold:not([open]) .req-text .small.muted.num { display: none; }
.plan-fold > .plan-body { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .plan-fold .fold-arrow { transition: none; } }
.plan-money .chip-s.ver { margin-left: 8px; vertical-align: 3px; font-size: 12px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent-fill) 16%, transparent); }

/* what the booking form asks: the questions as ticks, and each part of the body folded open to its areas */
.pg-fields { display: grid; }
.pg-part { border: 1px solid var(--line); border-radius: 14px; }
.pg-part > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; cursor: pointer; list-style: none; font-weight: 600; }
.pg-part > summary::-webkit-details-marker { display: none; }
.pg-part > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 14px; }
.pg-part .grow { flex: 1; }
.pg-part .fold-arrow { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--muted); transform: rotate(90deg); }
.pg-part[open] .fold-arrow { transform: rotate(-90deg); }
.pg-part-body { display: grid; gap: 4px; padding: 0 12px 10px; }
.pg-part-body .pg-quick { justify-content: flex-end; }
.pg-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); column-gap: 16px; }
@media (prefers-reduced-motion: no-preference) { .pg-part .fold-arrow { transition: transform 0.2s ease; } }

/* ===== the foot of a request's sheet: the step that moves it on, full width on top; the other two side by side under it, the
   one that says no in red without shouting; taking the request away for good is a small red word at the very bottom, and asks
   first. The foot keeps clear of the phone's home bar ===== */
.sheet-foot > .btn { width: 100%; min-width: 0; min-height: 46px; padding: 6px 10px; border-radius: 12px; font-size: 15px; line-height: 19px; white-space: normal; text-align: center; }
.sheet-foot > .foot-main { grid-column: 1 / -1; min-height: 50px; font-size: 17px; }
.sheet-foot > .btn.danger { background: var(--bad-soft); color: var(--bad); }
.sheet-foot:has(+ .ask-del-row) { margin-bottom: 0; }
.ask-del-row { display: flex; justify-content: center; margin: 0; }
.ask-del { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; font-size: 15px; font-weight: 500; }
.ask-del .ico { width: 16px; height: 16px; }

/* ===== a request's line pushed to the left shows what can be done with it (app.js, SWIPE_ACTS): the line slides over its buttons,
   which fill what it leaves open; a full swipe stretches the first one over the whole row. Up and down stays the page's own
   scrolling (touch-action), and with less motion asked for nothing slides ===== */
.ask-swipe { position: relative; overflow: hidden; }
.ask-swipe > .ask-line { z-index: 1; background: var(--group); touch-action: pan-y; }
.ask-swipe > .ask-line:active { background: var(--fill); }
.ask-swipe.swiping > .ask-line, .ask-swipe.open > .ask-line { background: var(--group); }
/* the wrapper clips what is outside the line, so the keyboard's ring is drawn inside it */
.ask-swipe > .ask-line:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.swipe-acts { position: absolute; top: 0; right: 0; bottom: 0; display: flex; width: 228px; }
.swipe-acts button { flex: 1 1 0; min-width: 0; padding: 0 6px; border: 0; color: #fff; font: 600 14px/18px var(--sys); text-align: center; overflow: hidden; white-space: normal; transition: flex-grow 0.22s ease, padding 0.22s ease; }
.swipe-acts .sw-go { background: var(--accent-fill); }
.swipe-acts .sw-grey { background: #6b7079; }
.swipe-acts .sw-bad { background: #d0362b; }
.ask-swipe.full .swipe-acts button:not(:first-child) { flex-grow: 0; padding: 0; }
@media (prefers-reduced-motion: reduce) {
  .swipe-acts button { transition: none; }
  .ask-swipe > .ask-line { transition: none !important; }
}

/* ===== focus: the ring is for the keyboard only (:focus-visible), drawn to the shape of what has it; a tap draws none. A sheet
   or a question opened by a tap holds the focus itself (app.js, calmFocus), which draws nothing ===== */
:where(:focus:not(:focus-visible)) { outline: none; }
dialog:focus, dialog:focus-visible { outline: none; }
button.quiet, a.quiet, button.link { border-radius: 10px; }
.sheet-head .end { padding-inline: 8px; }
.btn:focus-visible { outline-offset: 3px; }

/* ===== ONE FIELD STYLE for every box in the app's edit and add sheets: text, number, date and time boxes, picks, longer words and
   the segmented choices share one frame (the same height, corners, padding, line and fill), the same space under their label,
   and the same soft accent ring when they have the cursor. Forms do not restyle their boxes; the few that must be smaller say
   only what differs, below ===== */
:root { --field-h: 46px; --field-r: 12px; --field-px: 14px; --field-bd: color-mix(in srgb, var(--ink) 13%, transparent); --field-bg: var(--fill); --field-ring: color-mix(in srgb, var(--accent) 34%, transparent); }
.field { gap: 6px; }
.field > span { font-size: 13px; line-height: 18px; }
.field > em { font-size: 13px; line-height: 18px; font-style: normal; }
input:where(:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"], [type="hidden"])), select, textarea {
  box-sizing: border-box; display: block; width: 100%; max-width: 100%; min-width: 0; height: var(--field-h); min-height: var(--field-h);
  margin: 0; padding: 0 var(--field-px); border: 1px solid var(--field-bd); border-radius: var(--field-r); background-color: var(--field-bg);
  color: var(--ink); font-size: 17px; line-height: 22px; box-shadow: none; transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { height: auto; min-height: 96px; padding-block: 11px; resize: vertical; }
select { padding-right: 38px; background-image: var(--chev); background-repeat: no-repeat; background-position: right 14px center; text-overflow: ellipsis; }
/* date and time boxes on the iPhone: no width of their own that pushes out of a column, the value on the left like the others */
input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"] { -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%; text-align: left; }
input::-webkit-date-and-time-value { min-height: 22px; margin: 0; text-align: left; }
input::-webkit-datetime-edit { padding: 0; }
input::-webkit-calendar-picker-indicator { margin: 0 0 0 4px; opacity: 0.7; }
input:where(:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"])):focus, select:focus, textarea:focus, input[type="date"]:focus-within, input[type="time"]:focus-within {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--field-ring);
}
/* the segmented choices: the same frame, the chosen one in the accent's soft fill */
.seg { gap: 6px; }
.seg button, .seg span { min-height: var(--field-h); border: 1px solid var(--field-bd); border-radius: var(--field-r); background: var(--field-bg); color: var(--ink); font-size: 15px; }
.seg button[aria-pressed="true"], .seg input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.seg input:focus-visible + span { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--field-ring); }
/* the days of a request's sittings sit three to a line: the same frame, a little less padding, and 16px words so the phone does not zoom */
.sess-row input, .sess-row select { height: var(--field-h); min-height: var(--field-h); padding: 0 10px; font-size: 16px; }
.sess-row select { padding-right: 28px; background-position: right 10px center; }

/* ===== the chosen segmented choice looks the same however it was chosen: the keyboard's ring shows only while a keyboard is in
   use (html.kb, set by app.js on a key pressed outside a text box), never after a tap ===== */
.seg label { -webkit-tap-highlight-color: transparent; }
html:not(.kb) .seg input:focus-visible + span { box-shadow: none; }
html:not(.kb) .seg input:focus-visible:not(:checked) + span { border-color: var(--field-bd); }

/* ===== date and time boxes: the phone's own box to tap, its own text hidden, the day written over it in the app's words
   ("29 Nov 2026"), and "--:--" in an empty time box ===== */
.dt { position: relative; display: block; min-width: 0; }
.dt > input { color: transparent; caret-color: transparent; }
.dt > input::-webkit-datetime-edit, .dt > input::-webkit-date-and-time-value { color: transparent; }
.dt-face { position: absolute; top: 0; bottom: 0; left: var(--field-px); right: 30px; display: flex; align-items: center; overflow: hidden; color: var(--ink); font-size: 17px; line-height: 22px; white-space: nowrap; text-overflow: ellipsis; pointer-events: none; font-variant-numeric: tabular-nums; }
.dt-face.empty { color: var(--faint); }
.sess-row .dt-face { left: 10px; right: 8px; font-size: 16px; }

/* ===== the length of a sitting as a digital clock: − 03:30 +, the same height and frame as every box. The digits turn under the
   finger, so the page does not scroll while they do ===== */
.clock { display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; align-items: center; height: var(--field-h); min-width: 0; border: 1px solid var(--field-bd); border-radius: var(--field-r); background: var(--field-bg); overflow: hidden; }
.clk-btn { height: 100%; border: 0; background: none; color: var(--accent); font: inherit; font-size: 22px; font-weight: 600; line-height: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.clk-btn:active { background: var(--accent-soft); }
.clk-face { display: flex; align-items: center; justify-content: center; height: 100%; min-width: 0; color: var(--ink); font-size: 20px; font-weight: 600; letter-spacing: 0.02em; touch-action: none; user-select: none; -webkit-user-select: none; cursor: ns-resize; font-variant-numeric: tabular-nums; }
.clk-face > span { padding: 4px 2px; border-radius: 6px; }
.clk-face > i { font-style: normal; padding: 0 1px; opacity: 0.6; }
.clk-face .clk-all { font-size: 15px; font-weight: 600; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clk-face.turning > span { background: var(--accent-soft); color: var(--accent); }
.clk-face:focus { outline: none; }
html.kb .clk-face:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
@media (prefers-reduced-motion: no-preference) { .clk-face > span { transition: background-color 0.12s, color 0.12s; } }

/* a new appointment's start and length: side by side, their words on one line and their boxes the same height, as the day and
   the number of days above them */
form[data-form="booking"] .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }

/* a request's sittings: the day and the time on the first line, the length's clock under them, at any width */
.sess-row { grid-template-columns: 26px minmax(0, 1.35fr) minmax(0, 1fr); row-gap: 8px; }
.sess-row .sess-date, .sess-row .sess-time { grid-column: auto; }
.sess-row .sess-min { grid-column: 2 / -1; display: grid; grid-template-columns: auto minmax(0, 170px); justify-content: space-between; align-items: center; gap: 8px; }
.sess-min-k { color: var(--muted); font-size: 14px; }
.sess-none[hidden] { display: none; }

/* on Today: a client needs more sessions in a country with no free day left there */
.need-days { align-items: flex-start; }
.nd-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
