/* D’Gees — espace artistes (maquette). Same black-and-white language as the site; venue colours come from the current planning sheet. */
@font-face { font-family: Dgees; src: url('assets/regular.woff2') format('woff2'); font-display: swap; }

:root {
  --bg: #070708;
  --card: #111114;
  --card-2: #18181c;
  --ink: #f3f3f1;
  --muted: #a6a6ae;
  --faint: #76767f;
  --line: #ffffff1c;
  --line-2: #ffffff33;
  --grey: #4a4a50;
  --ok: #7ee2a8;
  --warn: #ffcf70;
  --bad: #ff8a8a;
  --display: Dgees, 'Helvetica Neue', Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --r: 14px;
  --gutter: clamp(16px, 3vw, 32px);
  --on-ink: #0b0b0d;
  --tint: 255 255 255;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100svh; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 12px var(--gutter); padding-top: max(12px, env(safe-area-inset-top)); background: #070708ee; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: baseline; gap: 10px; color: inherit; text-decoration: none; }
.brand__sub { font-size: 13px; color: var(--muted); }
.demo { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.demo select { min-height: 40px; padding: 0 12px; background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; }

main { padding: 24px var(--gutter) 120px; max-width: 1400px; margin: 0 auto; outline: none; }

/* Shared bits */
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.title { font: 400 clamp(30px, 5vw, 52px)/1 var(--display); letter-spacing: -.045em; margin-top: 8px; }
.lede { color: var(--muted); margin-top: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--ok { color: var(--ok); background: #7ee2a81a; }
.pill--warn { color: var(--warn); background: #ffcf701a; }
.pill--bad { color: var(--bad); background: #ff8a8a1a; }
.pill--muted { color: var(--muted); background: rgb(var(--tint) / 0.063); }
.venue { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-weight: 600; font-size: 14px; }
.btn:hover { border-color: var(--ink); }
.btn--light { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.btn--small { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn--danger { color: var(--bad); border-color: #ff8a8a55; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.spacer { flex: 1; }
.private { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); }
.private::before { content: ''; width: 10px; height: 10px; border: 1.5px solid currentColor; border-radius: 3px 3px 2px 2px; box-shadow: inset 0 -4px 0 -2px currentColor; }

/* Tabs */
.tabs { display: flex; gap: 6px; margin: 20px 0; padding: 4px; background: var(--card); border-radius: 999px; width: max-content; max-width: 100%; overflow-x: auto; }
.tabs button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--on-ink); }

/* Month switch */
.month { display: inline-flex; align-items: center; gap: 4px; }
.month button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; }
.month strong { min-width: 150px; text-align: center; font-weight: 600; text-transform: capitalize; }
.month__pick select { min-width: 150px; height: 40px; padding: 0 10px; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 600; text-align: center; text-align-last: center; text-transform: capitalize; cursor: pointer; }
.month__pick select option { background: var(--bg); color: var(--ink); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 16px 0 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.stat b { display: block; font: 400 28px/1.1 var(--display); letter-spacing: -.03em; margin-top: 4px; }
.stat span { font-size: 12px; color: var(--muted); }

/* Admin grid (mirrors the Google Sheet: days down, artists across) */
.legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.legend .grey { background: var(--grey); color: var(--ink); }
.gridwrap { overflow: auto; max-height: calc(100svh - 300px); min-height: 420px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
table.grid { border-collapse: separate; border-spacing: 0; font-size: 12px; }
.grid th, .grid td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; }
.grid thead th { position: sticky; top: 0; z-index: 3; background: var(--card-2); padding: 10px 8px; font-weight: 700; letter-spacing: .04em; min-width: 92px; }
.grid thead th:first-child { left: 0; z-index: 4; min-width: 76px; }
.grid tbody th { position: sticky; left: 0; z-index: 2; background: var(--card-2); padding: 0 10px; text-align: left; font-weight: 500; white-space: nowrap; height: 34px; }
.grid tbody th small { color: var(--muted); margin-right: 6px; display: inline-block; width: 28px; }
.grid tr.weekend th { color: var(--ink); }
.grid tr.weekend th small { color: var(--ink); }
.grid tr.sunday td, .grid tr.sunday th { border-bottom: 2px solid var(--line-2); }
.grid tr.today th { box-shadow: inset 3px 0 0 var(--ink); }
.grid td button { display: block; width: 100%; height: 34px; border: 0; background: transparent; padding: 0 6px; font-size: 11px; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid td button.free:hover { background: rgb(var(--tint) / 0.051); }
.grid td button.free:hover::after { content: '+'; color: var(--muted); font-size: 16px; font-weight: 400; }
.grid td button.na { background: var(--grey); color: #e6e6ea; font-weight: 500; }
.grid td button.pending { outline: 2px dashed #ffffffcc; outline-offset: -4px; }
.grid td button.declined { text-decoration: line-through; opacity: .55; }
.grid tfoot td, .grid tfoot th { position: sticky; bottom: 0; background: var(--card-2); text-align: center; padding: 8px; font-weight: 700; }
.grid tfoot th { left: 0; z-index: 3; text-align: left; font-weight: 500; color: var(--muted); }

/* Invoices table */
.list { display: grid; gap: 8px; }
.line { display: grid; grid-template-columns: 110px 120px minmax(0, 1fr) 80px 110px 330px; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.line > * { justify-self: start; min-width: 0; }
.line > .row { justify-self: end; flex-wrap: nowrap; }
.line .amount { justify-self: end; font-variant-numeric: tabular-nums; font-weight: 600; }
.line .file { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filters button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: 13px; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }

/* DJ portal: phone-first */
.dj { max-width: 560px; margin: 0 auto; }
.hello { display: flex; align-items: flex-end; gap: 12px; }
.hello .title { font-size: clamp(34px, 10vw, 48px); }
.summary { margin-top: 16px; padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.summary b { display: block; font: 400 26px/1.1 var(--display); letter-spacing: -.03em; }
.summary span { font-size: 12px; color: var(--muted); }
.summary .private { grid-column: 1 / -1; }

.cards { display: grid; gap: 12px; margin-top: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; }
.card--pending { border-color: #ffcf7088; }
.card__top { display: flex; align-items: flex-start; gap: 14px; }
.date { width: 56px; flex: none; text-align: center; padding: 8px 0; border-radius: 12px; background: var(--card-2); }
.date small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.date b { display: block; font: 400 26px/1 var(--display); }
.card h3 { font-size: 17px; font-weight: 700; }
.meta { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.meta strong { color: var(--ink); font-weight: 600; }
.fee { margin-left: auto; text-align: right; }
.fee b { display: block; font: 400 24px/1 var(--display); }
.fee span { font-size: 11px; color: var(--faint); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); background: var(--card); border-radius: var(--r); border: 1px dashed var(--line-2); }
.section-title { display: flex; align-items: center; gap: 10px; margin: 26px 0 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.day { margin-top: 14px; }
.day h3 { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.day h3::first-letter { text-transform: uppercase; }
.slot { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-top: 6px; }
.slot .who { margin-left: auto; font-weight: 600; }
.slot.me { border-color: var(--ink); }
.slot .role { color: var(--muted); font-size: 13px; }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; }
.cal .dow { text-align: center; font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; padding-bottom: 2px; }
.cal button { aspect-ratio: 1 / 1.05; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); display: grid; place-content: center; gap: 2px; padding: 2px; font-weight: 600; position: relative; }
.cal button small { font-size: 10px; font-weight: 600; line-height: 1.1; }
.cal button.na { background: var(--grey); border-color: var(--grey); }
.cal button.from { background: linear-gradient(135deg, var(--grey) 50%, var(--card) 50%); }
.cal button.booked { border-color: var(--ink); }
.cal button.booked i { position: absolute; bottom: 5px; left: 50%; width: 14px; height: 4px; margin-left: -7px; border-radius: 2px; }
.cal button:disabled { opacity: .35; cursor: default; }
.cal button.booked:disabled { opacity: 1; }
.cal .today { box-shadow: 0 0 0 2px var(--ink) inset; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.cal-legend span::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; background: var(--card); border: 1px solid var(--line-2); }
.cal-legend .k-na::before { background: var(--grey); }
.cal-legend .k-from::before { background: linear-gradient(135deg, var(--grey) 50%, var(--card) 50%); }
.cal-legend .k-booked::before { border-color: var(--ink); }

.upload { position: relative; overflow: hidden; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); background: #0b0b0df2; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.bottomnav button { min-height: 52px; border: 0; background: transparent; color: var(--faint); font-size: 12px; font-weight: 600; display: grid; justify-items: center; gap: 4px; }
.bottomnav button::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.bottomnav button[aria-current="page"] { color: var(--ink); }
.bottomnav button[aria-current="page"]::before { background: var(--ink); box-shadow: 0 0 10px #fff; }
.bottomnav button > span { position: relative; white-space: nowrap; }
.bottomnav .badge { position: absolute; top: -12px; right: -14px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--warn); color: #000; font-size: 10px; line-height: 16px; text-align: center; }

/* Dialog */
dialog { width: min(480px, calc(100vw - 24px)); max-height: calc(100svh - 24px); border: 1px solid var(--line-2); border-radius: 18px; background: var(--card-2); color: var(--ink); padding: 0; }
dialog::backdrop { background: #000000b3; backdrop-filter: blur(3px); }
dialog form { display: grid; gap: 14px; padding: 20px; }
dialog h2 { font: 400 26px/1.1 var(--display); letter-spacing: -.03em; }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.field input, .field select { min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font-size: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { display: grid; gap: 8px; }
.choice label { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font-size: 15px; }
.choice input { accent-color: #fff; width: 18px; height: 18px; }
.choice select { margin-left: auto; min-height: 36px; border-radius: 8px; background: var(--card); border: 1px solid var(--line-2); padding: 0 8px; }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 600; font-size: 14px; transition: opacity .25s, transform .25s; z-index: 50; max-width: calc(100vw - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.noscript { padding: 40px; text-align: center; }

@media (max-width: 860px) {
  .brand__sub { display: none; }
  .line { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .line > :nth-child(3), .line > .row { grid-column: 1 / -1; justify-self: stretch; }
  .line > .row { flex-wrap: wrap; }
  /* The table keeps its own height on a phone, so the artists' names (top) and the dates (left) stay in sight while moving around in it. */
  .gridwrap { max-height: calc(100svh - 200px); min-height: 320px; overscroll-behavior: contain; }
}
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* Monthly invoices (one per DJ and per month) */
details.line--inv { display: block; padding: 0; }
details.line--inv summary { display: grid; grid-template-columns: 140px 90px 100px 130px minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; }
details.line--inv summary::-webkit-details-marker { display: none; }
details.line--inv summary > * { justify-self: start; min-width: 0; }
details.line--inv summary .amount { justify-self: end; }
details.line--inv summary > .row { justify-self: end; flex-wrap: nowrap; }
details.line--inv[open] summary { border-bottom: 1px solid var(--line); }
.detail { list-style: none; margin: 0; padding: 8px 16px 12px; display: grid; gap: 6px; }
.detail li { display: grid; grid-template-columns: 90px auto 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.detail .amount { font-variant-numeric: tabular-nums; font-weight: 600; }
.card .detail { padding: 0; border-top: 1px solid var(--line); padding-top: 10px; }

/* Clients & DJ management */
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 12px; align-content: start; }
.panel h2 { font: 400 26px/1.1 var(--display); letter-spacing: -.03em; }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.items li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; background: var(--card-2); }
.items li.off { opacity: .5; }
.item__main { display: grid; min-width: 0; flex: 1; }
.item__main small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swatch { position: relative; width: 32px; height: 32px; flex: none; border-radius: 8px; border: 1px solid var(--line-2); cursor: pointer; }
.swatch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-content: center; background: var(--bg); border: 1px solid var(--line-2); font-size: 11px; font-weight: 700; }
input[type="color"] { padding: 2px; }

/* DJ space on a computer: tabs at the top, wider content, cards side by side */
@media (min-width: 900px) {
  .dj { max-width: 1040px; }
  .dj .bottomnav { position: static; display: flex; gap: 6px; width: max-content; margin: 20px 0 4px; padding: 4px; border: 0; border-radius: 999px; background: var(--card); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .dj .bottomnav button { min-height: 40px; padding: 0 18px; border-radius: 999px; display: flex; align-items: center; font-size: 14px; color: var(--muted); }
  .dj .bottomnav button::before { display: none; }
  .dj .bottomnav button[aria-current="page"] { background: var(--ink); color: var(--on-ink); }
  .dj .bottomnav .badge { position: static; margin-left: 6px; display: inline-block; }
  .dj .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .dj .summary { grid-template-columns: 1fr 1fr 2fr; align-items: end; }
  .dj .summary .private { grid-column: auto; justify-self: end; }
  .dj .days { columns: 2; column-gap: 24px; }
  .dj .day { break-inside: avoid; }
  .dj .cal { max-width: 560px; }
  main:has(.dj) { padding-bottom: 60px; }
}
@media (max-width: 860px) {
  details.line--inv summary { grid-template-columns: 1fr auto; gap: 6px 12px; }
  details.line--inv summary > .row { grid-column: 1 / -1; justify-self: stretch; flex-wrap: wrap; }
}

/* Roadmap, reminders, calendar sync, replacements */
.hello { align-items: center; flex-wrap: wrap; }
.road { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.road > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.road dt { color: var(--muted); font-size: 13px; }
.road dd { margin: 0; display: grid; gap: 8px; }
.road dd .row { gap: 6px; }
.notif { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: rgb(var(--tint) / 0.078); border: 1px solid var(--line); }
.notif__icon { width: 36px; height: 36px; flex: none; border-radius: 9px; background: var(--bg); border: 1px solid var(--line-2); display: grid; place-content: center; font: 400 12px/1 var(--display); }
.notif small { display: block; font-size: 12px; color: var(--muted); }
.notif strong { font-size: 14px; }
.copy { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2); }
.copy code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.how { font-size: 14px; color: var(--muted); }
.how summary { cursor: pointer; color: var(--ink); font-weight: 600; min-height: 32px; display: flex; align-items: center; }
dialog .section-title { margin: 6px 0 0; }
.slot { flex-wrap: wrap; }
.slot--swap { border-color: #ffcf7088; }
.slot__swap { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.grid td button.swap { box-shadow: inset 0 0 0 3px var(--warn); }
.swapbox { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: #ffcf7014; border: 1px solid #ffcf7055; }
@media (max-width: 420px) { .road > div { grid-template-columns: 1fr; gap: 4px; } .hello .btn { padding: 0 12px; } }
a.btn { color: inherit; text-decoration: none; }

/* Client space */
.lineup { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.lineup li { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 10px; }
.lineup li .pill { grid-column: 2 / -1; justify-self: start; }
.lineup__time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.lineup strong { display: block; }
.lineup small { color: var(--muted); font-size: 12px; }
.lineup .amount { font-weight: 600; font-variant-numeric: tabular-nums; }
.clientnote { padding: 10px 12px; border-radius: 10px; background: rgb(var(--tint) / 0.051); font-size: 14px; }
.infoform { gap: 12px; }
.field textarea { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; resize: vertical; }
.grid thead th .kind { display: block; font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.road__note dd { color: var(--warn); }
.card > p { font-size: 14px; }

/* Shared table for DJs (read-only) and rate cards */
.grid td .cell { display: block; height: 34px; line-height: 34px; padding: 0 6px; font-size: 11px; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid td .cell.na { background: var(--grey); color: #e6e6ea; font-weight: 500; }
.grid td .cell.pending { outline: 2px dashed #ffffffcc; outline-offset: -4px; }
.grid td .cell.swap { box-shadow: inset 0 0 0 3px var(--warn); }
.grid th.mine, .grid td.mine { background-color: rgb(var(--tint) / 0.071); }
.grid thead th.mine { color: var(--bg); background: var(--ink); }
.gridwrap--dj { max-height: calc(100svh - 260px); }
.rates { width: 100%; border-collapse: collapse; font-size: 14px; }
.rates th, .rates td { padding: 6px 4px; text-align: left; border-bottom: 1px solid var(--line); }
.rates thead th { font-size: 12px; color: var(--muted); font-weight: 500; }
.rates input { width: 100%; min-height: 40px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font-size: 16px; }
.rates .margin { color: var(--ok); font-weight: 600; white-space: nowrap; }
.items li .btn--small { min-height: 34px; padding: 0 12px; }
@media (max-width: 860px) { .gridwrap--dj { max-height: 70svh; min-height: 0; } }
.ratewrap { overflow-x: auto; margin: 0 -4px; }
.ratewrap .rates { min-width: 420px; }
.ratewrap .rates input { min-width: 64px; }
.ratewrap .rates input::placeholder { color: var(--faint); }

/* Client pricing: by weekday and special events */
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: #fff; }
.hint { font-size: 12px; color: var(--muted); margin-top: -4px; }
.specials { display: grid; gap: 8px; }
.special { display: grid; grid-template-columns: 1.2fr 1.3fr 1fr 1fr auto; gap: 6px; align-items: center; }
.special input { min-height: 40px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font-size: 15px; min-width: 0; }
.special-note { padding: 10px 12px; border-radius: 10px; background: #ffcf7014; border: 1px solid #ffcf7055; color: var(--warn); font-size: 13px; font-weight: 600; }
.grid tbody th .sp { display: block; font-size: 9px; font-weight: 700; color: var(--warn); letter-spacing: .02em; line-height: 1; margin-top: -2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80px; }
.grid tr.special-day th { height: 40px; }
dialog { width: min(640px, calc(100vw - 24px)); }
@media (max-width: 560px) { .special { grid-template-columns: 1fr 1fr; } .special .btn { grid-column: 1 / -1; } }
.feelist { display: grid; gap: 6px; }
.feeline { display: grid; grid-template-columns: auto 1fr 110px; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: var(--bg); }
.feeline span { font-size: 14px; }
.feeline input { min-height: 40px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font-size: 16px; width: 100%; }

/* Dispos calendar: today is unmistakable, booked days are tappable */
.cal button.booked { border-color: var(--line-2); border-width: 1px; }
.cal button.booked i { height: 5px; width: 18px; margin-left: -9px; bottom: 6px; }
.cal button.booked:not(.past) { cursor: pointer; }
.cal button.booked:hover { border-color: var(--ink); }
.cal button.past { opacity: .35; }
.cal button.booked.past { opacity: .55; }
.cal .today, .cal button[aria-current="date"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); box-shadow: 0 0 0 3px #ffffff33; opacity: 1; }
.cal .today small.today-label { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.cal-legend .k-today::before { background: var(--ink); border-color: var(--ink); }

/* Dialogs never wider than the screen; on phones they open as a bottom sheet */
dialog { overflow-x: hidden; }
dialog form { grid-template-columns: minmax(0, 1fr); }
dialog form > * { min-width: 0; max-width: 100%; }
dialog .btn { white-space: normal; text-align: center; }
dialog .row > .btn { flex: 1 1 auto; }
dialog .row > .spacer { flex: 0 1 0; }
.copy { min-width: 0; }
.copy .btn { flex: none; }
@media (max-width: 560px) {
  dialog { width: 100vw; max-width: 100vw; max-height: 92svh; margin: auto 0 0; border-radius: 22px 22px 0 0; border-bottom: 0; }
  dialog form { padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
  dialog h2 { font-size: 24px; }
  .road > div { grid-template-columns: 1fr; gap: 4px; }
}

/* Phone: clearer bottom navigation and denser cards */
.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.field input, .field select, .field textarea { min-width: 0; width: 100%; }
.nav-ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 899px) {
  .bottomnav { padding: 8px 10px; padding-bottom: max(10px, env(safe-area-inset-bottom)); background: #141418f7; border-top: 1px solid var(--line-2); box-shadow: 0 -12px 30px #000000b3; gap: 6px; }
  .bottomnav button { min-height: 58px; border-radius: 14px; color: #b9b9c2; font-size: 12px; gap: 3px; align-content: center; }
  .bottomnav button::before { display: none; }
  .bottomnav button[aria-current="page"] { background: var(--ink); color: var(--on-ink); box-shadow: none; }
  .bottomnav .badge { top: -32px; right: -10px; }
  .card { padding: 14px; gap: 10px; }
  .card__top { gap: 12px; }
  .date { width: 50px; padding: 6px 0; }
  .date b { font-size: 22px; }
  .fee b { font-size: 21px; }
  .card h3 { font-size: 16px; }
  .meta { font-size: 13px; gap: 3px; }
  .actions .btn { min-height: 40px; }
  .hello .title { font-size: clamp(30px, 9vw, 44px); }
}
@media (min-width: 900px) { .dj .bottomnav .nav-ico { display: none; } }
.prefs-btn { white-space: nowrap; flex: none; }
@media (max-width: 899px) { .wide-only { display: none; } .hello { gap: 10px; } }
.rates .base-row th, .rates .base-row input { font-weight: 700; }
.rates .base-row td, .rates .base-row th { border-bottom: 2px solid var(--line-2); }
.rates th .venue { font-size: 11px; }

/* Offline bar and simplified view */
.netbar { margin: -8px 0 16px; padding: 10px 14px; border-radius: 12px; background: #ffcf7022; border: 1px solid #ffcf7066; color: var(--warn); font-size: 14px; }
.simple .title { margin-bottom: 12px; }
.simple-card { margin-top: 12px; padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line-2); }
.simple-date { font-size: 13px; color: var(--warn); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.simple-card h2 { font: 400 26px/1.1 var(--display); letter-spacing: -.03em; margin-top: 4px; }
.simple-card h2 span { font: 600 14px/1 var(--sans); color: var(--muted); letter-spacing: 0; }
.simple-card dl { margin: 12px 0 0; display: grid; gap: 6px; }
.simple-card dl div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; font-size: 15px; }
.simple-card dt { color: var(--muted); }
.simple-card dd { margin: 0; font-weight: 600; }
.slot .who small { font-weight: 400; color: var(--muted); }

/* Fee grid: weekday lines for venues priced by day */
.rates th .sub { display: block; font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.rates tr.day-row th { padding-left: 14px; }
.rates tr.day-row th .venue { opacity: .7; }

/* Themed nights and performers */
.grid td button.themed, .grid td .cell.themed { box-shadow: inset 0 -4px 0 #ffffffcc; }
.grid td button.themed.swap, .grid td .cell.themed.swap { box-shadow: inset 0 0 0 3px var(--warn), inset 0 -6px 0 #ffffffcc; }
.theme-pill { display: inline-flex; align-self: start; justify-self: start; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgb(var(--tint) / 0.078); border: 1px solid var(--line-2); font-size: 12px; font-weight: 700; letter-spacing: .02em; width: max-content; max-width: 100%; }
.day .theme-pill { margin: 2px 0 4px; }
.nightbox { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: rgb(var(--tint) / 0.039); border: 1px solid var(--line-2); font-size: 14px; }
.nightbox .btn { justify-self: start; }
.performers { display: grid; gap: 8px; }
.performer { display: grid; grid-template-columns: 1fr 1.4fr .8fr .8fr; gap: 6px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.performer [name=pf-pay] { grid-column: span 1; }
.performer .btn { justify-self: end; }
.performer select { min-height: 40px; padding: 0 6px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font-size: 14px; min-width: 0; }
.performer input { min-height: 40px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font-size: 15px; min-width: 0; }
@media (max-width: 700px) { .performer { grid-template-columns: 1fr 1fr; padding: 8px; border: 1px solid var(--line); border-radius: 10px; } .performer .btn { grid-column: 1 / -1; } }

/* Publishing and notifications */
.inbox { display: grid; gap: 8px; margin-top: 12px; }
.notif--new { border-color: #ffffff55; background: rgb(var(--tint) / 0.102); }
.notif--new > span:nth-child(2) { flex: 1; min-width: 0; }
.notif__body { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.notif--new .btn { flex: none; }
.pubs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pubs li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.pubs span { font-size: 13px; color: var(--muted); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 12px; }
.checks .check { min-height: 40px; font-size: 14px; }

/* "Thème & intervenants" column in the planning tables */
.grid th.nightcol, .grid td.nightcol { min-width: 210px; max-width: 280px; text-align: left; }
.grid td.nightcol { padding: 3px 8px; vertical-align: middle; }
.nightline { display: block; font-size: 11px; line-height: 1.35; font-weight: 600; color: var(--ink); white-space: normal; padding: 2px 0; }
.nightline .venue { font-size: 9px; padding: 1px 5px; vertical-align: 1px; }

/* Accounts & security */
.acc { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.acc__who { display: grid; min-width: 0; }
.acc__who small, .acc__state small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc__state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.acc__actions { flex-wrap: nowrap; }
.accgrid { display: grid; gap: 8px; }
.audit { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.audit time { color: var(--ink); font-weight: 600; margin-right: 6px; }
.viewbar { position: sticky; top: 0; z-index: 25; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; margin: -8px 0 16px; padding: 10px 14px; border-radius: 12px; background: #3b82f6; color: #fff; font-size: 14px; }
.viewbar .btn--light { background: #fff; color: #0b0b0d; }
@media (max-width: 860px) { .acc { grid-template-columns: 1fr; } .acc__actions { flex-wrap: wrap; } }

/* Brand logos */
.brand { align-items: center; }
.brand__logo { display: block; height: 30px; width: auto; aspect-ratio: 825 / 305; }
.picker__logo { display: block; width: min(220px, 60vw); height: auto; aspect-ratio: 825 / 305; margin: 8px 0 18px; }
.hello__logo { display: block; width: min(200px, 55vw); height: auto; aspect-ratio: 1065 / 165; margin: 6px 0 2px; }
/* School: under construction */
.wip { display: grid; justify-items: center; text-align: center; gap: 14px; margin-top: 24px; padding: 32px 20px; border-radius: var(--r); background: var(--card); border: 1px dashed var(--line-2); }
.wip__logo { width: min(260px, 70vw); height: auto; aspect-ratio: 825 / 405; }
.wip h2 { font: 400 clamp(22px, 5vw, 30px)/1.15 var(--display); letter-spacing: -.03em; max-width: 22ch; }
.bottomnav { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 899px) { .bottomnav button { font-size: 11px; } }
[data-mk-mail] { white-space: nowrap; flex: none; }
@media (max-width: 600px) { .grid th.nightcol, .grid td.nightcol { min-width: 150px; } }

/* Elements marked hidden stay hidden, whatever their display style (grid, flex…). */
[hidden] { display: none !important; }
.choice--row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.choice--row label { font-size: 14px; }
.demo { min-width: 0; }
.demo select { max-width: min(280px, 58vw); text-overflow: ellipsis; }

/* Client monthly bill and marketing lines */
.billsum { grid-column: 1 / -1; list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: 13px; }
.billsum li { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.billsum li span:last-child { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.mklines { display: grid; gap: 6px; }
.mkline { display: grid; grid-template-columns: 1fr 110px auto; gap: 6px; align-items: center; }
.mkline input { min-height: 40px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font-size: 15px; min-width: 0; }
.items li { flex-wrap: wrap; }
.items li .item__main { min-width: 140px; }

/* Real version: sign-in screens and account */
.demo { gap: 10px; }
.auth { max-width: 460px; margin: 0 auto; }
.auth .card { display: grid; gap: 12px; }
.formerr { margin: 0; color: #ff8a8a; font-weight: 600; }
.authlinks { margin-top: 14px; justify-content: center; }
.codes { margin: 0; font: 600 18px/1.7 ui-monospace, Menlo, monospace; letter-spacing: .06em; white-space: pre-wrap; }
a.file { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.auth a.btn--light, a.btn--light { color: var(--on-ink); }
#acct { white-space: nowrap; }

/* Password field with its eye */
.pw { position: relative; display: block; }
.pw input { width: 100%; padding-right: 52px; }
.pw__eye { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 46px; height: 42px; padding: 0; border: 0; background: transparent; color: var(--muted, #9a9aa0); cursor: pointer; }
.pw__eye svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pw__eye[aria-pressed="true"] { color: var(--ink); }
.pw__eye[aria-pressed="true"] svg path { stroke-dasharray: none; }
.pw__eye[aria-pressed="true"]::after { content: ''; position: absolute; width: 24px; height: 2px; background: currentColor; transform: rotate(-40deg); border-radius: 2px; }

/* Inputs placed directly in a row (e-mail in "Gérer"): same look as the form fields */
#sheet .row > input { min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font-size: 16px; }
#sheet .row > input::placeholder { color: var(--muted, #9a9aa0); }

/* Practical additions */
.hint--warn { color: #ffcf6b; }
.repeat { display: grid; gap: 6px; }
.startlist { margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 16px; background: rgb(var(--tint) / 0.051); }
.startlist summary { cursor: pointer; font-weight: 700; }
.startlist ul { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 10px; }
.startlist li { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.startlist li span { display: grid; gap: 2px; min-width: 0; }
.startlist small { color: var(--muted, #9a9aa0); }

/* Getting started and guided tour */
.startlist li.done strong { color: var(--muted, #9a9aa0); font-weight: 500; }
dialog.sheet--tour { width: min(440px, calc(100vw - 24px)); }
.tour { display: grid; gap: 18px; }
.tour__bar { height: 3px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.tour__bar i { display: block; height: 100%; background: var(--ink); border-radius: 3px; transition: width .35s ease; }
.tour__step { display: grid; gap: 10px; justify-items: start; animation: tourin .3s ease; }
@keyframes tourin { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.tour__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line-2); margin-bottom: 4px; }
.tour__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tour__icon--logo { width: auto; height: auto; padding: 14px 18px; border-radius: 16px; }
.tour__icon .tour__logo { display: block; width: 120px; height: auto; }
.tour .eyebrow { margin: 0; }
.tour h2 { margin: 0; font: 400 28px/1.1 var(--display); letter-spacing: -.03em; }
.tour__points { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 10px; width: 100%; }
.tour__points li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.45; color: var(--ink); }
.tour__points li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); }
.tour__go { margin-top: 4px; padding: 0; border: 0; background: none; color: var(--ink); font: 600 15px/1.4 var(--sans); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.tour__go span { display: inline-block; transition: transform .2s; }
.tour__go:hover span { transform: translateX(3px); }
.tour__foot { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; padding: 10px 12px; border-radius: 12px; background: rgb(var(--tint) / 0.051); color: var(--muted); font-size: 14px; }
.tour__mini { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); font: 400 14px/1 var(--display); color: var(--ink); }
.tour__nav { display: flex; align-items: center; gap: 10px; padding-top: 4px; border-top: 1px solid var(--line); padding-top: 16px; }
.tour__arrow { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font-size: 18px; }
.tour__dots { display: flex; gap: 6px; flex: 1; min-width: 0; }
.tour__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: var(--line-2); transition: width .25s, background .25s; cursor: pointer; }
.tour__dots button[aria-current] { width: 22px; background: var(--ink); }
.tour__skip { flex: none; }
@media (prefers-reduced-motion: reduce) { .tour__step { animation: none; } .tour__bar i, .tour__dots button { transition: none; } }
.startlist li .btn { flex: none; white-space: nowrap; }

/* Help bubble, bottom right, in the brand's black and white */
.helpfab { position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 25; display: grid; place-items: center; align-content: center; gap: 2px; width: 60px; height: 60px; padding: 0; border-radius: 50%; border: 1px solid var(--line-2); background: #0b0b0df2; color: var(--ink); box-shadow: 0 10px 30px #000000b3; cursor: pointer; transition: transform .2s, background .2s, color .2s; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.helpfab span { font: 400 22px/1 var(--display); }
.helpfab small { font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.helpfab:hover, .helpfab:focus-visible { transform: translateY(-2px); background: var(--ink); color: var(--on-ink); }
.helpfab:hover small, .helpfab:focus-visible small { color: var(--on-ink); }
.helpfab--new::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--ink); animation: helppulse 1.8s ease-out infinite; pointer-events: none; }
@keyframes helppulse { from { opacity: .7; transform: scale(.9); } to { opacity: 0; transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .helpfab--new::after { animation: none; opacity: .5; } }
/* On a phone, above the bottom menu */
@media (max-width: 899px) { body:has(.bottomnav) .helpfab { bottom: calc(84px + env(safe-area-inset-bottom)); width: 52px; height: 52px; } }

/* Readability pass */
.item__main small { white-space: normal; overflow: visible; line-height: 1.4; }
.how summary { list-style: none; gap: 8px; }
.how summary::-webkit-details-marker { display: none; }
.how summary::before { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; flex: none; margin-right: 2px; }
.how[open] summary::before { transform: rotate(45deg); }
.startlist summary { list-style: none; display: flex; align-items: center; gap: 10px; }
.startlist summary::-webkit-details-marker { display: none; }
.startlist summary::before { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; flex: none; }
.startlist[open] summary::before { transform: rotate(45deg); }

/* Unavailable: a clear cross; available from an hour: shaded with the hour */
.grid td button.na.na-full, .grid td .cell.na.na-full, .cal button.na, .legend .venue.na-full {
  background: linear-gradient(to top right, transparent calc(50% - 1px), #ffffffa6 calc(50% - 1px), #ffffffa6 calc(50% + 1px), transparent calc(50% + 1px)),
              linear-gradient(to bottom right, transparent calc(50% - 1px), #ffffffa6 calc(50% - 1px), #ffffffa6 calc(50% + 1px), transparent calc(50% + 1px)), #34343b;
  color: #fff;
}
.grid td button.na.na-from, .grid td .cell.na.na-from, .legend .venue.na-from { background: repeating-linear-gradient(135deg, #34343b 0 6px, #2a2a30 6px 12px); color: #fff; font-weight: 700; }
/* Zoom of the planning */
.zoom { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 8px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.zoom button { min-width: 36px; height: 32px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font-size: 18px; line-height: 1; }
.zoom button:hover:not(:disabled) { background: rgb(var(--tint) / 0.078); }
.zoom button:disabled { opacity: .35; }
.zoom .zoom__val { font-size: 12px; font-weight: 600; min-width: 56px; color: var(--muted); }

/* Leads */
.leadpublic { display: grid; gap: 8px; margin: 16px 0; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 16px; background: rgb(var(--tint) / 0.051); }
.leadpublic span { display: grid; gap: 2px; }
.leadpublic small { color: var(--muted); }
.card.lead .meta { display: grid; gap: 2px; }
.qrows { display: grid; gap: 10px; }
.qrow { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); }
.qrow input, .qrow select { min-height: 42px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font-size: 15px; min-width: 0; }
.qrow__line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.qrow .check { min-height: 32px; font-size: 14px; }
.answers { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.answers > div { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.answers dt { color: var(--muted); font-size: 13px; }
.answers dd { margin: 0; white-space: pre-wrap; }
.auth--wide { max-width: 640px; }
.qfield { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.qfield legend { padding: 0; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.req { color: var(--muted); font-weight: 400; }
.leadform .choice--row { display: flex; flex-wrap: wrap; gap: 8px; }
.leadform .choice--row label { flex: 0 1 auto; }
.auth a:not(.btn) { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
#sheet .lede a, .answers a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Assistant */
dialog.sheet--chat { width: min(560px, calc(100vw - 24px)); }
.chat { display: grid; gap: 12px; }
.chat__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chat__head h2 { margin: 0; }
.chat__log { display: grid; gap: 10px; align-content: start; max-height: min(52vh, 460px); min-height: 140px; overflow-y: auto; padding: 4px 2px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; }
.msg p { margin: 0 0 6px; } .msg p:last-child { margin: 0; }
.msg ul { margin: 4px 0; padding-left: 18px; } .msg li { margin: 2px 0; }
.msg--user { justify-self: end; background: var(--ink); color: var(--on-ink); border-bottom-right-radius: 4px; white-space: pre-wrap; }
.msg--assistant { justify-self: start; background: var(--bg); border: 1px solid var(--line-2); border-bottom-left-radius: 4px; }
.msg--err { color: #ffb4b4; }
.msg--wait { display: flex; gap: 5px; padding: 14px; }
.msg--wait span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: chatdot 1s infinite ease-in-out; }
.msg--wait span:nth-child(2) { animation-delay: .15s; } .msg--wait span:nth-child(3) { animation-delay: .3s; }
@keyframes chatdot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font-size: 14px; cursor: pointer; }
.chip:hover { background: rgb(var(--tint) / 0.078); }
.chat__form { display: flex; gap: 8px; align-items: flex-end; }
.chat__form textarea { flex: 1; min-width: 0; min-height: 46px; max-height: 140px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; resize: none; }
.chat__form .btn { width: 46px; height: 46px; padding: 0; font-size: 20px; flex: none; }
@media (prefers-reduced-motion: reduce) { .msg--wait span { animation: none; } }
#sheet .row > .pw { flex: 1; min-width: 0; }
#sheet .row > .pw input { width: 100%; min-height: 44px; padding: 0 52px 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font-size: 16px; }

/* Person menu (top right): spaces, shortcuts, account */
.demo { position: relative; }
.me-btn { display: flex; align-items: center; gap: 10px; min-height: 44px; max-width: min(300px, 62vw); padding: 4px 12px 4px 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; text-align: left; transition: border-color .2s, background .2s; }
.me-btn:hover, .me-btn[aria-expanded="true"] { border-color: var(--ink); }
.me-av { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font: 400 14px/1 var(--display); letter-spacing: -.02em; }
.me-av--lg { width: 44px; height: 44px; font-size: 17px; }
.me-txt { display: grid; min-width: 0; line-height: 1.2; }
.me-txt strong, .me-txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-txt strong { font-size: 14px; font-weight: 600; }
.me-txt small { font-size: 12px; color: var(--muted); }
.me-chev { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.me-btn[aria-expanded="true"] .me-chev { transform: rotate(180deg); }
@media (max-width: 420px) { .me-txt small { display: none; } .me-btn { max-width: 52vw; } }

.memenu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(340px, calc(100vw - 24px)); max-height: calc(100dvh - 96px); overflow: auto; overscroll-behavior: contain; padding: 8px; border: 1px solid var(--line-2); border-radius: 18px; background: #0f0f12f7; box-shadow: 0 24px 60px #000000c0; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: memenu-in .16s ease-out; }
@keyframes memenu-in { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .memenu { animation: none; } }
.memenu__head { display: flex; align-items: center; gap: 12px; padding: 8px 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.memenu__head div { display: grid; min-width: 0; }
.memenu__head strong { font-size: 16px; }
.memenu__head small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.memenu__title { margin: 10px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.memenu__spaces { display: grid; gap: 6px; padding: 2px 2px 4px; }
.memenu__space { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.memenu__space span { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.memenu__space strong { font-size: 14px; }
.memenu__space small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.memenu__space:hover, .memenu__space:focus-visible { border-color: var(--line-2); background: rgb(var(--tint) / 0.051); }
.memenu__space.is-on { border-color: var(--ink); background: rgb(var(--tint) / 0.071); }
.memenu__item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; font-size: 15px; text-align: left; cursor: pointer; list-style: none; }
.memenu__item::-webkit-details-marker { display: none; }
.memenu__item:hover, .memenu__item:focus-visible { background: rgb(var(--tint) / 0.071); outline: none; }
.memenu__item--danger { color: #ff8a8a; }
.memenu__item--danger .mi { stroke: #ff8a8a; }
.memenu .mi { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.memenu__space .mi:last-child { width: 18px; height: 18px; stroke-width: 2.2; }
.memenu__more summary { position: relative; }
.memenu__more summary::after { content: ''; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.memenu__more[open] summary::after { transform: rotate(-135deg); }
.memenu__more > button { padding-left: 24px; font-size: 14px; }
.memenu__sep { height: 1px; margin: 6px 4px; background: var(--line); }
.memenu { background: #0f0f12; }
.top:has(.memenu:not([hidden])) { z-index: 40; }
body:has(.memenu:not([hidden])) .helpfab { visibility: hidden; }

/* Date form: regular client, private party or one-shot gig */
.evkind { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.evkind__opt { position: relative; display: block; cursor: pointer; }
.evkind__opt input { position: absolute; opacity: 0; pointer-events: none; }
.evkind__opt span { display: grid; gap: 2px; height: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; transition: border-color .15s, background .15s; }
.evkind__opt strong { font-size: 14px; }
.evkind__opt small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.evkind__opt:hover span { border-color: var(--ink); }
.evkind__opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.evkind__opt input:checked + span { border-color: var(--ink); background: rgb(var(--tint) / 0.078); }
.evkind__opt--prive input:checked + span { border-color: #ff4d4d; background: #ff00001f; }
.evkind__opt--oneshot input:checked + span { border-color: #ff9900; background: #ff99001f; }
@media (max-width: 480px) { .evkind small { display: none; } .evkind__opt span { place-items: center; text-align: center; padding: 12px 6px; } }
.evbox { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line-2); border-radius: 14px; background: rgb(var(--tint) / 0.031); }
.evbox__title { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; }
.evbox .mi { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.evbox__part { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.evbox__part[open] { gap: 10px; }
.evbox__part > summary { cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); list-style: none; display: flex; align-items: center; gap: 8px; }
.evbox__part > summary::-webkit-details-marker { display: none; }
.evbox__part > summary::after { content: ''; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.evbox__part[open] > summary::after { transform: rotate(-135deg); }
.evbox small, .field small { font-weight: 400; color: var(--muted); letter-spacing: 0; text-transform: none; }
.evbox textarea { min-height: 64px; }

/* Date form: formula chips, one-line recap of hours and amounts */
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg label { position: relative; flex: 1; min-width: 70px; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: grid; place-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 600; font-size: 15px; transition: background .15s, color .15s, border-color .15s; }
.seg label:hover span { border-color: var(--ink); }
.seg input:checked + span { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.adjust { border: 1px solid var(--line-2); border-radius: 14px; padding: 0 14px; background: rgb(var(--tint) / 0.024); }
.adjust > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; cursor: pointer; list-style: none; font-size: 15px; }
.adjust > summary::-webkit-details-marker { display: none; }
.adjust > summary [data-summary] { flex: 1; min-width: 0; }
.adjust > summary [data-summary] span { color: var(--muted); }
.adjust__btn { flex: none; font-size: 13px; font-weight: 600; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; }
.adjust[open] .adjust__btn { background: var(--ink); color: var(--on-ink); }
.adjust[open] { padding-bottom: 14px; }
.adjust[open] > .two { margin-top: 4px; }
.adjust .two + .two, .adjust .two + .hint { margin-top: 10px; }
.spcheck { align-items: flex-start; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: 12px; }
.spcheck span { font-size: 14px; color: var(--muted); }
.spcheck strong { color: var(--ink); }
.spcheck:has(input:checked) { border-style: solid; border-color: #f5c542; background: #f5c54214; }

/* Venue settings: usual hours */
.hourgrid { display: grid; gap: 8px; }
.hourrow { display: grid; grid-template-columns: 90px minmax(0, 1fr) 16px minmax(0, 1fr); align-items: center; gap: 8px; }
.hourrow span:first-child { font-weight: 600; font-size: 14px; }
.hourrow span[aria-hidden] { color: var(--muted); text-align: center; }
.hourrow input { min-height: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font: inherit; min-width: 0; }

/* Special night line-up */
.lineup { display: grid; gap: 10px; padding: 14px; border: 1px solid #f5c54266; border-radius: 14px; background: #f5c5420a; }
.lineup__head, .lrow { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 32px; gap: 6px; align-items: center; }
.lineup__head span { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lineup__rows { display: grid; gap: 6px; }
.lrow select, .lrow input { min-height: 42px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font: inherit; font-size: 14px; min-width: 0; width: 100%; }
.lrow__del { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.lrow__del:hover { color: #ff8a8a; border-color: #ff8a8a; }
.lineup > .btn { justify-self: start; }
@media (max-width: 640px) {
  .lineup__head { display: none; }
  .lrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
  .lrow select { grid-column: 1 / 3; }
  .lrow__del { grid-column: 3; grid-row: 1; }
}
[data-normal] { display: grid; gap: 14px; }
[data-normal][hidden] { display: none; }
.seg + .hint, [data-group-hint] { margin-top: -4px; }

/* DJ invoices: a deposit on its own */
.freeinv { padding: 0; margin-bottom: 14px; }
.freeinv > summary { display: grid; gap: 2px; padding: 16px 44px 16px 18px; cursor: pointer; list-style: none; position: relative; }
.freeinv > summary::-webkit-details-marker { display: none; }
.freeinv > summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--muted); }
.freeinv[open] > summary::after { content: '–'; }
.freeinv > summary small { color: var(--muted); font-size: 13px; }
.freeinv__body { display: grid; gap: 12px; padding: 0 18px 18px; }
.freeinv__body .upload { justify-self: start; }

/* Invoice drop zones: drag the PDF or click */
.dropzone { position: relative; display: grid; justify-items: center; gap: 4px; width: 100%; padding: 20px 16px; border: 1.5px dashed var(--line-2); border-radius: 14px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.dropzone strong { font-size: 15px; }
.dropzone > span { font-size: 13px; color: var(--muted); }
.dropzone:hover, .dropzone:focus-within { border-color: var(--ink); background: rgb(var(--tint) / 0.031); }
.dropzone.is-over { border-color: var(--ink); border-style: solid; background: rgb(var(--tint) / 0.078); }
.actions .dropzone { flex: 1 1 100%; }
.freeinv__body .dropzone { justify-self: stretch; }
.invcheck dd small { color: var(--muted); }

/* Special night, simplified */
.lineup { gap: 12px; padding: 16px; }
.lineup__top { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 10px; }
.lineup__title { margin: 4px 0 0; font-weight: 600; font-size: 15px; }
.lineup__title small { font-weight: 400; color: var(--muted); font-size: 13px; }
.lineup__head, .lrow { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 32px; }
.lrow__fee { position: relative; display: block; min-width: 0; }
.lrow__fee input { padding-right: 24px !important; width: 100%; }
.lrow__fee > span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; pointer-events: none; }
.lineup__add { justify-self: stretch; min-height: 46px; border: 1.5px dashed var(--line-2); border-radius: 12px; background: transparent; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.lineup__add:hover { border-color: var(--ink); background: rgb(var(--tint) / 0.031); }
.lineup__price { max-width: 260px; }
.lineup__price .lrow__fee input { min-height: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font: inherit; }
.lineup__sum { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.lineup__sum b { color: var(--ink); }
.lineup__sum b.neg { color: #ff8a8a; }
@media (max-width: 640px) {
  .lrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 32px; }
  .lrow select { grid-column: 1 / 4; }
  .lrow__del { grid-column: 4; grid-row: 1; }
  .lineup__top { grid-template-columns: minmax(0, 1fr) 110px; }
}

/* Polish: zoom on the legend line, venue dot on DJ cards, holidays in the calendar, smaller help bubble on phones */
.legend { align-items: center; }
.legend .zoom { margin: 0 0 0 auto; }
@media (max-width: 600px) { .legend .zoom { margin-left: 0; } }
.vdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 2px; box-shadow: 0 0 0 2px #ffffff1a; }
.cal button { position: relative; }
.cal-star { position: absolute; top: 3px; right: 5px; font-size: 10px; line-height: 1; color: #f5c542; }
.cal-legend .k-hol::before { content: '★'; color: #f5c542; margin-right: 4px; }
@media (max-width: 899px) {
  body:has(.bottomnav) .helpfab { width: 46px; height: 46px; right: 12px; }
  body:has(.bottomnav) .helpfab small { display: none; }
  body:has(.bottomnav) .helpfab span { font-size: 20px; }
}
.cal-legend .k-hol::before { content: '★'; width: auto; height: auto; border: 0; background: none; border-radius: 0; color: #f5c542; font-size: 12px; line-height: 1; }
.card .special-note { display: inline-flex; margin: 4px 0 2px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4; }

/* Guest artists: a "+" column at the end of the admin planning */
.grid th.addcol, .grid td.addcol { min-width: 56px; width: 56px; background: transparent; border-right: 0; }
.addcol__btn { width: 36px; height: 36px; border-radius: 50%; border: 1.5px dashed var(--line-2); background: transparent; color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; }
.addcol__btn:hover { border-style: solid; border-color: var(--ink); background: rgb(var(--tint) / 0.071); }
.grid thead th.guest { background: repeating-linear-gradient(135deg, var(--card-2) 0 8px, rgb(var(--tint) / 0.031) 8px 16px); }
.guest__x { margin-left: 2px; padding: 0 4px; border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; }
.guest__x:hover { color: #ff8a8a; }

/* ---------- Sign-in pages: a night scene behind a glass panel ---------- */
body.is-auth::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 30% 35%, transparent 0%, #050506b3 60%, #050506 100%),
    linear-gradient(0deg, #050506 0%, #05050600 45%),
    url('assets/login-bg.webp') center 62% / cover no-repeat;
  animation: authbg 1.4s ease-out both; }
@keyframes authbg { from { opacity: 0; transform: scale(1.04); } }
body.is-auth .top { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.is-auth main { padding-bottom: 48px; }
.authscene { display: grid; gap: 28px; align-items: center; min-height: calc(100svh - 160px); max-width: 1180px; margin: 0 auto; }
.authscene__side { display: none; }
.authscene .auth { position: relative; width: 100%; max-width: 460px; margin: 18vh auto 0; padding: 28px 24px 22px; border-radius: 24px;
  background: #0e0e11c7; border: 1px solid #ffffff1f; box-shadow: 0 30px 80px #000000b3, inset 0 1px 0 #ffffff14;
  -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2); animation: authin .7s .1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes authin { from { opacity: 0; transform: translateY(18px); } }
.authscene .auth .picker__logo { width: 150px; margin: 0 0 18px; }
.authscene .auth .title { font-size: clamp(34px, 6vw, 46px); margin-top: 4px; }
.authscene .auth .card { padding: 0; margin-top: 20px !important; background: none; border: 0; box-shadow: none; }
.authscene .field { font-size: 13px; color: #c9c9cf; }
.authscene .field input, .authscene .field select { min-height: 52px; padding: 0 16px; border-radius: 14px; border-color: #ffffff26; background: #08080acc; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.authscene .field input:focus, .authscene .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px #ffffff1f; }
/* Saved passwords: keep the fields dark instead of the browser's pale blue. */
.authscene input:-webkit-autofill, .authscene input:-webkit-autofill:hover, .authscene input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink); caret-color: var(--ink); -webkit-box-shadow: 0 0 0 100px #0b0b0e inset; transition: background-color 9999s; }
.authscene .auth .actions { margin-top: 4px; }
.authscene .auth .actions .btn--light { flex: 1; min-height: 54px; font-size: 16px; border-radius: 999px; transition: transform .15s, box-shadow .2s; }
.authscene .auth .actions .btn--light:hover { transform: translateY(-1px); box-shadow: 0 10px 30px #ffffff26; }
.authscene .authlinks { gap: 20px; margin-top: 18px; }
.authscene .authlinks .btn { min-height: 0; padding: 4px 0; border: 0; background: none; color: #c9c9cf; font-weight: 500; text-decoration: underline; text-decoration-color: #ffffff40; text-underline-offset: 4px; }
.authscene .authlinks .btn:hover { color: var(--ink); text-decoration-color: var(--ink); }
.authscene__back { margin: 22px 0 0; text-align: center; font-size: 12px; }
.authscene__back a { color: var(--faint, #8a8a92) !important; text-decoration: none !important; letter-spacing: .04em; }
.authscene__back a:hover { color: var(--ink) !important; }
@media (min-width: 960px) {
  .authscene { grid-template-columns: minmax(0, 1fr) 460px; gap: 72px; padding: 0 12px; }
  .authscene__side { display: block; animation: authin .8s cubic-bezier(.2, .7, .2, 1) both; }
  .authscene__logo { display: block; width: min(420px, 100%); height: auto; aspect-ratio: 825 / 305; filter: drop-shadow(0 10px 40px #000000cc); }
  .authscene__tag { margin: 28px 0 0; font: 400 clamp(26px, 2.6vw, 38px)/1.12 var(--display); letter-spacing: -.03em; text-shadow: 0 4px 30px #000; }
  .authscene__where { margin: 18px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #ffffffb3; }
  .authscene .auth { margin: 0; padding: 36px 34px 26px; }
  .authscene .auth .picker__logo { display: none; }
  body.is-auth::before { background:
    linear-gradient(90deg, #05050666 0%, #050506a6 50%, #050506eb 100%),
    linear-gradient(0deg, #050506 0%, #05050600 35%),
    url('assets/login-bg.webp') center 60% / cover no-repeat; }
}
/* The client questionnaire keeps one wide column. */
.authscene:has(.auth--wide) { grid-template-columns: 1fr; }
.authscene:has(.auth--wide) .authscene__side { display: none; }
.authscene .auth.auth--wide { max-width: 680px; margin: 6vh auto 0; }
.authscene:has(.auth--wide) .auth .picker__logo { display: block; }
@media (prefers-reduced-motion: reduce) { body.is-auth::before, .authscene .auth, .authscene__side { animation: none; } }
@media (max-width: 959px) {
  body.is-auth::before { background:
    linear-gradient(0deg, #050506 0%, #050506 42%, #05050600 78%),
    linear-gradient(180deg, #05050699 0%, #05050600 25%),
    url('assets/login-bg.webp') 46% -14svh / auto 86svh no-repeat, #050506; }
  .authscene .auth { margin-top: 30svh; }
  body.is-auth .top .brand { visibility: hidden; }
}

/* ---------- Sign-in, living: slow camera drift, twinkling phone lights, EQ bars ---------- */
body.is-auth::before { animation: authbg 1.4s ease-out both, authdrift 38s ease-in-out 1.4s infinite alternate; transform-origin: 55% 60%; }
@keyframes authdrift { to { transform: scale(1.09) translate3d(-1.6%, -1.2%, 0); } }
.sparks { position: fixed; left: 0; right: 0; top: 34%; height: 42%; z-index: -1; pointer-events: none; }
.sparks i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 2px #ffffffb3, 0 0 14px 4px #9fc3ff40;
  opacity: 0; transform: scale(var(--s, 1)); animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0; } 45% { opacity: .95; } 60% { opacity: .35; } }
@media (max-width: 959px) { .sparks { top: 6svh; height: 34svh; } }
/* Sign-in leaves smoothly, the space fades in */
.authscene--out .auth, .authscene--out .authscene__side { transition: opacity .35s ease, transform .35s ease; opacity: 0; transform: translateY(-12px) scale(.985); }
.app-in { animation: authin .55s cubic-bezier(.2, .7, .2, 1) both; }
.btn.is-loading { position: relative; pointer-events: none; opacity: .85; }
.btn.is-loading::after { content: ''; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Face ID / fingerprint */
.pkbtn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 56px; margin-top: 20px; padding: 0 18px; border-radius: 999px;
  border: 1px solid #ffffff59; background: rgb(var(--tint) / 0.078); color: var(--ink); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.pkbtn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pkbtn:hover { background: #ffffff24; border-color: var(--ink); transform: translateY(-1px); }
.pkbtn.is-loading { opacity: .7; pointer-events: none; }
.pkbtn--quiet { min-height: 46px; margin-top: 12px; border-color: #ffffff2e; background: transparent; font-size: 14px; font-weight: 500; color: #c9c9cf; }
.pkbtn--quiet svg { width: 20px; height: 20px; }
.author { display: flex; align-items: center; gap: 12px; margin: 18px 0 -4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #8a8a92; }
.author::before, .author::after { content: ''; flex: 1; height: 1px; background: #ffffff1f; }
.pklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pklist li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; }
.pklist li > svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pklist li span { display: grid; flex: 1; min-width: 0; }
.pklist small { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .sparks { animation: none; } .sparks i { opacity: .5; } .app-in { animation: none; } }

/* Sign-in, refined: the photo becomes soft bokeh (the lights are the star), no EQ bars */
body.is-auth::before { inset: -40px; filter: blur(9px) saturate(1.25) brightness(.9); }
@media (min-width: 960px) {
  body.is-auth::before { background:
    radial-gradient(40% 55% at 47% 78%, #050506e6 0%, #05050600 70%),
    linear-gradient(90deg, #05050659 0%, #05050699 50%, #050506e6 100%),
    linear-gradient(0deg, #050506 0%, #05050600 35%),
    url('assets/login-bg.webp') center 60% / cover no-repeat; }
}
@media (max-width: 959px) {
  body.is-auth::before { background:
    radial-gradient(60% 30% at 50% 38%, #050506d9 0%, #05050600 75%),
    linear-gradient(0deg, #050506 0%, #050506 42%, #05050600 78%),
    url('assets/login-bg.webp') 46% -14svh / auto 86svh no-repeat, #050506; }
}
.sparks i { width: 2px; height: 2px; box-shadow: 0 0 4px 1px #ffffff99, 0 0 10px 3px #ffffff1f; }
@keyframes twinkle { 0%, 100% { opacity: 0; } 50% { opacity: .7; } }

/* Planning: several dates in one cell, and a small + to add another the same day */
.grid td:has(.cellstack) { position: relative; }
.cellstack { display: grid; gap: 2px; }
.grid td.multi .cellstack > button:not(.addmore), .grid td.multi .cellstack > .cell { height: 26px; display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 10px; }
.grid td .cellstack small { font-weight: 500; opacity: .75; }
.grid td .addmore { position: absolute; right: 3px; bottom: 3px; width: 18px; height: 18px; padding: 0; border-radius: 50%; background: #000000c0; color: #fff; font-size: 12px; font-weight: 400; line-height: 18px; opacity: 0; transition: opacity .15s; z-index: 1; }
.grid td:hover .addmore, .grid td .addmore:focus-visible { opacity: 1; }
@media (hover: none) { .grid td .addmore { opacity: .75; } }

/* ---------- Day mode (Jour): same layout, light surfaces ---------- */
html[data-theme="light"] {
  --bg: #f4f3ef; --card: #ffffff; --card-2: #ffffff; --ink: #121214; --muted: #5b5b64; --faint: #8b8b94;
  --line: #00000017; --line-2: #00000029; --grey: #dcdce1; --ok: #138a4c; --warn: #9a6200; --bad: #c03a3a;
  --on-ink: #ffffff; --tint: 0 0 0; color-scheme: light;
}
html[data-theme="light"] body { background: var(--bg); }
html[data-theme="light"] .top { background: #f4f3efe6; }
html[data-theme="light"] .brand__logo, html[data-theme="light"] .picker__logo, html[data-theme="light"] .hello__logo { filter: invert(1); }
html[data-theme="light"] .bottomnav { background: #fffffff2; box-shadow: 0 -8px 24px #0000001a; border-top-color: var(--line); }
html[data-theme="light"] .helpfab { background: #fffffff2; box-shadow: 0 8px 24px #00000026; }
html[data-theme="light"] .memenu { background: #ffffff; box-shadow: 0 24px 60px #00000033; }
html[data-theme="light"] dialog { box-shadow: 0 30px 80px #00000040; }
html[data-theme="light"] dialog::backdrop { background: #0000004d; }
html[data-theme="light"] .card, html[data-theme="light"] .panel, html[data-theme="light"] .stat { box-shadow: 0 1px 2px #0000000d; }
html[data-theme="light"] .grid td button.na, html[data-theme="light"] .grid td .cell.na { color: #3b3b42; }
html[data-theme="light"] .grid td button.na.na-full, html[data-theme="light"] .grid td .cell.na.na-full, html[data-theme="light"] .legend .venue.na-full {
  background: linear-gradient(to top right, transparent calc(50% - 1px), #00000052 calc(50% - 1px), #00000052 calc(50% + 1px), transparent calc(50% + 1px)),
              linear-gradient(to bottom right, transparent calc(50% - 1px), #00000052 calc(50% - 1px), #00000052 calc(50% + 1px), transparent calc(50% + 1px)), var(--grey); }
html[data-theme="light"] .grid th.mine, html[data-theme="light"] .grid td.mine { background-color: #0000000a; }
html[data-theme="light"] .toast { box-shadow: 0 10px 30px #00000033; }
html[data-theme="light"] .viewbar .btn--light { background: #fff; color: #121214; }
html[data-theme="light"] .cal-star, html[data-theme="light"] .spcheck:has(input:checked) strong { color: #a87b00; }
html[data-theme="light"] .special-note { color: #7a5800; }
/* The sign-in pages stay a night scene whatever the mode. */
html[data-theme="light"] body.is-auth { --bg: #070708; --card: #111114; --card-2: #18181c; --ink: #f3f3f1; --muted: #a6a6ae; --faint: #76767f;
  --line: #ffffff1c; --line-2: #ffffff33; --on-ink: #0b0b0d; --tint: 255 255 255; background: #050506; color: var(--ink); color-scheme: dark; }
html[data-theme="light"] body.is-auth .top .brand__logo { filter: none; }
html[data-theme="light"] body.is-auth .picker__logo { filter: none; }
/* Appearance switch in the person menu */
.memenu__theme { display: flex; gap: 4px; margin: 2px 6px 6px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.memenu__theme button { flex: 1; min-height: 34px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.memenu__theme button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
body.is-auth::before { filter: blur(4px) brightness(1.15) contrast(1.25) saturate(1.35); }
@media (min-width: 960px) {
  body.is-auth::before { background:
    radial-gradient(26% 46% at 47% 80%, #050506f2 0%, #050506b3 45%, #05050600 75%),
    linear-gradient(90deg, #05050640 0%, #0505068c 50%, #050506e6 100%),
    linear-gradient(0deg, #050506 0%, #05050600 30%),
    url('assets/login-bg.webp') center 60% / cover no-repeat; }
}
@media (max-width: 959px) {
  body.is-auth::before { background:
    radial-gradient(42% 26% at 50% 40%, #050506f2 0%, #050506b3 45%, #05050600 80%),
    linear-gradient(0deg, #050506 0%, #050506 42%, #05050600 78%),
    url('assets/login-bg.webp') 46% -14svh / auto 86svh no-repeat, #050506; }
}
/* The DJ sits behind the panel: the crowd's lights take the stage */
body.is-auth::before { inset: 0; filter: brightness(1.08) contrast(1.15) saturate(1.2); }
@media (min-width: 960px) {
  body.is-auth::before { background:
    linear-gradient(90deg, #0505061a 0%, #05050666 45%, #050506f2 72%, #050506 100%),
    linear-gradient(0deg, #050506 0%, #05050600 30%),
    url('assets/login-bg.webp') 6% 46% / auto 170% no-repeat, #050506; }
}
@media (max-width: 959px) {
  body.is-auth::before { background:
    linear-gradient(0deg, #050506 0%, #050506 58%, #05050600 66%),
    url('assets/login-bg.webp') 50% 100% / auto 112svh no-repeat, #050506; }
  .sparks { top: 14svh; height: 22svh; }
}
html[data-theme="light"] .legend .venue.na-full { color: #3b3b42; }
/* Sun / moon switch in the top bar */
.themebtn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); cursor: pointer; transition: border-color .2s, transform .3s; }
.themebtn:hover { border-color: var(--ink); }
.themebtn:active { transform: rotate(-30deg) scale(.94); }
.themebtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.themebtn svg path:only-child { fill: currentColor; stroke: none; }

/* DJ: dates waiting for an answer */
.pendbar { display: flex; align-items: center; gap: 12px; width: 100%; margin: 14px 0 4px; padding: 12px 16px; border: 1px solid #f5c54266; border-radius: 16px; background: #f5c54214; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.pendbar:hover { border-color: #f5c542; background: #f5c54224; }
.pendbar > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.pendbar small { color: var(--muted); font-size: 13px; }
.pendbar__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #f5c542; box-shadow: 0 0 0 0 #f5c54299; animation: pendpulse 2s ease-out infinite; }
@keyframes pendpulse { 70% { box-shadow: 0 0 0 10px #f5c54200; } 100% { box-shadow: 0 0 0 0 #f5c54200; } }
.pendbar__go { flex: none; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--on-ink); }
.pendlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pendlist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 12px; border: 1px solid var(--line-2); border-radius: 14px; transition: opacity .3s, border-color .3s; }
.pendlist .date { display: grid; justify-items: center; min-width: 44px; padding: 4px 6px; border-radius: 10px; background: rgb(var(--tint) / .06); line-height: 1.1; }
.pendlist .date b { font-size: 20px; }
.pendlist .date small { font-size: 10px; text-transform: uppercase; color: var(--muted); }
.pendlist__what { display: grid; min-width: 0; }
.pendlist__what small { color: var(--muted); font-size: 13px; }
.pendlist__fee { font-size: 16px; }
.pendlist__act { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.pendlist li.is-ok { border-color: var(--ok); }
.pendlist li.is-no { opacity: .6; }
html[data-theme="light"] .pendbar { border-color: #c9960066; background: #f5c54226; }
html[data-theme="light"] .pendbar__dot { background: #c99600; }
@media (prefers-reduced-motion: reduce) { .pendbar__dot { animation: none; } }

/* DJ Instagram visual (test phase) */
.beta { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: #f5c542; color: #1a1400; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
h2 .beta { font-size: 11px; vertical-align: 6px; }
.visual { display: grid; place-items: center; min-height: 180px; padding: 10px; border-radius: 16px; background: rgb(var(--tint) / .04); border: 1px solid var(--line); }
.visual img { display: block; max-width: 100%; max-height: 56svh; border-radius: 10px; box-shadow: 0 16px 40px #00000080; }
@media (max-width: 480px) { .insta-btn { padding-inline: 10px; } }

/* Artist profile */
.av { position: relative; flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--ink); color: var(--on-ink); border: 0; padding: 0; font: 400 20px/1 var(--display); }
.av img { width: 100%; height: 100%; object-fit: cover; }
button.av { cursor: pointer; }
button.av i { position: absolute; right: 0; bottom: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--card); color: var(--ink); font-style: normal; font-size: 11px; line-height: 20px; box-shadow: 0 0 0 2px var(--bg); }
.hello { align-items: center; gap: 14px; }
.hello__av { width: 64px; height: 64px; }
.hello__logo--own { display: block; max-width: min(260px, 60vw); max-height: 70px; width: auto; height: auto; margin: 6px 0 4px; object-fit: contain; }
html[data-theme="light"] .hello__logo--own { filter: invert(1); }
.av--lg { width: 72px; height: 72px; font-size: 26px; }
.profmedia { display: grid; gap: 10px; }
.profmedia__item { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 14px; }
.profmedia__item > span:nth-child(2) { display: grid; flex: 1; min-width: 120px; }
.profmedia__item small { color: var(--muted); }
.logoprev { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 12px; background: #050506; overflow: hidden; }
.logoprev img { max-width: 64px; max-height: 64px; object-fit: contain; }
.logoprev em { font-style: normal; font-size: 12px; color: #8a8a92; }
.stylechips { display: flex; flex-wrap: wrap; gap: 6px; }
.stylechip { position: relative; cursor: pointer; }
.stylechip input { position: absolute; opacity: 0; pointer-events: none; }
.stylechip span { display: inline-block; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; transition: background .15s, color .15s; }
.stylechip input:checked + span { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.stylechip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
/* Date exchanges */
.xbox { display: grid; gap: 8px; margin: 14px 0; padding: 14px; border: 1px solid #f5c54266; border-radius: 16px; background: #f5c5420f; }
.xbox .section-title { margin: 0; }
.xcard { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.xcard > span { flex: 1; min-width: 220px; display: grid; gap: 2px; }
.xcard em { font-style: normal; color: var(--muted); }
.xcard small { color: var(--muted); font-style: italic; }

/* ---------- 1. Planning: DJ photos, today, full legend ---------- */
.grid thead th .gav { display: grid; place-items: center; width: 26px; height: 26px; margin: 0 auto 5px; border-radius: 50%; overflow: hidden; background: var(--ink); color: var(--on-ink); font: 400 11px/1 var(--display); letter-spacing: 0; }
.grid thead th .gav img { width: 100%; height: 100%; object-fit: cover; }
.grid tr.today td { background-color: #f5c5420f; }
.grid tr.today th { box-shadow: inset 3px 0 0 #f5c542; }
.aujp { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #f5c542; color: #1a1400; font-size: 9px; font-style: normal; font-weight: 800; letter-spacing: .04em; vertical-align: 1px; }
.lgs { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgb(var(--tint) / .06); color: var(--muted); font-size: 12px; font-weight: 600; }
.lgs .k { width: 16px; height: 12px; border-radius: 3px; background: #9aa0a6; }
.lgs .k--pend { outline: 2px dashed #fff; outline-offset: -3px; }
.lgs .k--thm { box-shadow: inset 0 -3px 0 #fff; }
html[data-theme="light"] .lgs .k--pend { outline-color: #121214; }
html[data-theme="light"] .lgs .k--thm { box-shadow: inset 0 -3px 0 #121214; }
.gridhelp { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- 2. Navigation: icon tabs, phone bar, search ---------- */
.tabs--icons { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: 18px; overflow: visible; }
.tabs--icons button { position: relative; display: grid; justify-items: center; gap: 5px; padding: 10px 4px; border-radius: 14px; font-size: 13px; font-weight: 600; line-height: 1.2; text-align: center; white-space: normal; }
.tabs--icons button[aria-selected="false"] { color: var(--muted); }
.tabs--icons button[aria-selected="false"]:hover { color: var(--ink); background: rgb(var(--tint) / .05); }
.ticon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tabbadge { position: absolute; top: 5px; left: calc(50% + 8px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px; background: #f5c542; color: #1a1400; font-size: 10px; line-height: 17px; }
.adminnav { display: none; }
@media (max-width: 899px) {
  .tabs--icons { display: none; }
  .adminnav { display: grid; grid-template-columns: repeat(5, 1fr); }
  .adminnav button { display: grid; justify-items: center; gap: 3px; }
}
.searchbtn svg { width: 19px; height: 19px; }
.morelist { display: grid; gap: 2px; }
dialog.sheet--search { width: min(560px, calc(100vw - 24px)); margin-top: 12vh; }
dialog.sheet--search form { padding: 0; gap: 0; }
.kpal__in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.kpal__in input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 18px; outline: none; }
.kpal__in kbd { padding: 2px 7px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 11px; color: var(--muted); }
.kpal__list { display: grid; max-height: min(60svh, 460px); overflow: auto; padding: 6px; }
.kitem { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.kitem span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kitem small { flex: none; color: var(--muted); font-size: 12px; }
.kitem.on, .kitem:hover { background: rgb(var(--tint) / .08); }
.kpal__list .empty { margin: 12px; }

/* ---------- 3. Less text: one-line figures, « ? » tips ---------- */
.strip { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 26px; margin: 14px 0 6px; padding: 14px 44px 14px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.strip > div { display: grid; }
.strip b { font: 400 28px/1.05 var(--display); letter-spacing: -.02em; }
.strip span { font-size: 12px; color: var(--muted); }
.strip .warn b { color: #f5c542; }
html[data-theme="light"] .strip .warn b { color: #b07f00; }
.strip > .qmtip { position: absolute; top: 12px; right: 12px; }
.qmtip { position: relative; display: inline-block; }
.qmtip > summary { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; list-style: none; }
.qmtip > summary::-webkit-details-marker { display: none; }
.qmtip[open] > summary { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.qmtip > div { position: absolute; z-index: 15; top: calc(100% + 8px); right: -6px; width: min(300px, 80vw); padding: 12px 14px; border-radius: 12px; background: var(--ink); color: var(--on-ink); font-size: 13px; line-height: 1.45; box-shadow: 0 14px 40px #00000066; }
.gridhelp .qmtip > div { right: auto; left: -6px; top: auto; bottom: calc(100% + 8px); }

/* ---------- 4. Undo and soft transitions ---------- */
.toast.has-undo { display: flex; align-items: center; gap: 16px; pointer-events: auto; padding-right: 14px; }
.toast.has-undo button { border: 0; background: none; color: #b07f00; font: inherit; font-weight: 800; cursor: pointer; padding: 2px 4px; }
.toast__bar { width: 44px; height: 3px; border-radius: 3px; background: #0000001f; overflow: hidden; }
.toast__bar i { display: block; height: 100%; background: #b07f00; transform-origin: left; animation: undobar 6s linear forwards; }
@keyframes undobar { to { transform: scaleX(0); } }
.tabfade { animation: tabfade .16s ease-out; }
@keyframes tabfade { from { opacity: .6; } }
dialog[open] { animation: sheetin .22s cubic-bezier(.2, .7, .2, 1); }
@keyframes sheetin { from { opacity: 0; transform: translateY(10px) scale(.99); } }
@media (prefers-reduced-motion: reduce) { .tabfade, dialog[open], .toast__bar i { animation: none; } }
.tabs--icons { width: 100%; max-width: none; }
.tabs--icons button { min-height: 0; }
html[data-theme="light"] .toast.has-undo button { color: #f5c542; }
html[data-theme="light"] .toast__bar { background: #ffffff33; }
html[data-theme="light"] .toast__bar i { background: #f5c542; }

/* ---------- Dispo requests ---------- */
.dispbox { margin: 12px 0; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--card); }
.dispbox > summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.dispbox > summary::-webkit-details-marker { display: none; }
.dispbox > summary > span:first-child { display: grid; flex: 1; }
.dispbox > summary small { color: var(--muted); font-size: 12px; }
.dispbar { height: 6px; margin: 12px 0; border-radius: 6px; background: rgb(var(--tint) / .08); overflow: hidden; }
.dispbar i { display: block; height: 100%; background: var(--ok); border-radius: 6px; transition: width .4s; }
.displist { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; }
.displist li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.displist b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.av--sm { width: 28px; height: 28px; font-size: 11px; }
.dispcard { flex-wrap: wrap; cursor: default; }
.dispcard__act { display: flex; gap: 6px; }
/* ---------- Suggestions ---------- */
.sugg { display: grid; gap: 6px; margin-top: -4px; }
.sugg__title { margin: 0; font-size: 12px; color: var(--muted); }
.sg { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.sg b { min-width: 0; }
.sg small { margin-left: auto; color: var(--muted); font-size: 12px; text-align: right; }
.sg .chip { padding: 2px 8px; border-radius: 999px; background: rgb(var(--tint) / .07); font-size: 11px; color: var(--muted); }
.sg:hover, .sg.is-on { border-color: var(--ink); }
.sg.best { border-color: #f5c542; background: #f5c5420f; }
.sg.off { opacity: .45; }
@media (max-width: 480px) { .sg .chip { display: none; } }
/* ---------- Filters, view switch ---------- */
.pfilters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 4px; }
.seg--xs { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.seg--xs button { min-height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.seg--xs button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.pfilters__venues { display: flex; flex-wrap: wrap; gap: 4px; }
.pfv { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.pfv i { width: 9px; height: 9px; border-radius: 50%; }
.pfv.is-on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.pffree { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.pffree select { min-height: 34px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: inherit; font-size: 13px; }
.grid td button.dimmed, .grid td .cell.dimmed { opacity: .14; }
/* ---------- Week view ---------- */
.week { display: grid; gap: 10px; margin-top: 10px; }
.week__nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wday { padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.wday.is-today { border-color: #f5c54299; box-shadow: inset 3px 0 0 #f5c542; }
.wday h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 15px; text-transform: capitalize; }
.wday h4 small { margin-left: auto; color: var(--muted); font-weight: 500; font-size: 12px; text-transform: none; }
.wday h4 .sp { font-size: 11px; color: #f5c542; text-transform: none; font-weight: 700; }
.wl { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.wl:hover { background: rgb(var(--tint) / .04); }
.wl .vd { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.wl__txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl em { flex: none; font-style: normal; font-size: 10px; font-weight: 800; color: #f5c542; letter-spacing: .04em; }
.wempty { margin: 4px 0; color: var(--muted); font-size: 13px; }
.wadd { margin-top: 6px; padding: 6px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.wadd:hover { color: var(--ink); }
html[data-theme="light"] .wl em, html[data-theme="light"] .wday h4 .sp { color: #a87b00; }
/* ---------- Drag and drop ---------- */
.grid td [data-edit] { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.grid td [data-edit]:not(.free) { cursor: grab; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; }
.dragghost { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; border-radius: 6px; box-shadow: 0 14px 30px #000a; opacity: .95; }
.grid td .dragging { opacity: .3; }
.grid td.drop-on { background: #f5c54233 !important; box-shadow: inset 0 0 0 2px #f5c542; }
/* ---------- History ---------- */
.hist { display: grid; padding-top: 4px; }
.hi { display: grid; grid-template-columns: 14px 1fr; gap: 10px; font-size: 13px; }
.hi > i { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--ink); }
.hi > div { padding: 0 0 12px 14px; margin-left: -19px; border-left: 1px solid var(--line-2); }
.hi:last-child > div { border-left-color: transparent; }
.hi small { display: block; color: var(--muted); font-size: 11px; }
.wday--empty { padding: 8px 14px; }
.wday--empty h4 { margin: 0; font-size: 14px; color: var(--muted); }
.wday--empty .wadd { margin: 0 0 0 4px; width: 30px; height: 30px; border-radius: 50%; border: 1px dashed var(--line-2); padding: 0; font-size: 15px; }

/* Privacy page */
.auth--legal { max-width: 760px !important; }
.auth--legal .legalsec { margin-top: 26px; }
.auth--legal h2 { margin: 0 0 10px; font: 400 24px/1.15 var(--display); letter-spacing: -.02em; }
.auth--legal p, .auth--legal li { font-size: 15px; line-height: 1.6; color: #d6d6db; }
.auth--legal ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.legalbrief { margin-top: 18px; padding: 16px 18px; border-radius: 16px; border: 1px solid #f5c54266; background: #f5c5420f; }
.legalbrief strong { display: block; margin-bottom: 8px; }
.legaltable { display: grid; gap: 10px; }
.legaltable > div { padding: 12px 14px; border: 1px solid #ffffff1f; border-radius: 14px; background: #ffffff06; }
.legaltable p { margin: 4px 0 0; }
.legaltable .legalmeta { font-size: 13px; color: #a6a6ae; }
.authscene__back { display: flex; justify-content: center; gap: 10px; }

.authscene__legal { margin: 10px auto 0; max-width: 340px; text-align: center; font-size: 10.5px; line-height: 1.5; color: var(--faint, #8a8a92); opacity: .75; }
.ndaform__ok { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; cursor: pointer; }
.ndaform__ok input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: #f5c542; }
.ndaform .actions { margin-top: 14px; }

/* Quick dispos */
.cal--paint { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cal--paint button[data-dpaint] { cursor: pointer; }
.cal .dow { border: 1px dashed var(--line); background: none; border-radius: 8px; padding: 6px 0; aspect-ratio: auto; min-height: 0; font-weight: 500; cursor: pointer; color: var(--faint); }
.cal .dow:hover { color: var(--ink); border-color: var(--ink); }
.dmode { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; align-items: center; }
.dmode button { flex: 1 1 0; min-width: max-content; min-height: 40px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.dmode button[aria-pressed=true] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.dmode select { flex: 0 0 auto; width: auto; min-height: 40px; border-radius: 999px; padding: 0 10px; background: var(--card); color: var(--ink); border: 1px solid var(--ink); font: inherit; font-size: 14px; }
.dquick { margin-top: 12px; flex-wrap: wrap; gap: 8px; align-items: center; }
.dsaved { font-size: 13px; color: var(--ok, #3ecf8e); }

/* What's new */
.news { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; }
.news li { display: flex; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.news li:first-child { border-top: 0; }
.news__ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #f5c5421f; color: #f5c542; font-size: 16px; }
.news strong { display: block; font-size: 15px; }
.news small { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* Messages */
.msgbtn { position: relative; }
.msgbtn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.msgbtn__n { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #f5c542; color: #111; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.msg__top { display: flex; align-items: center; gap: 12px; }
.msg__top h2 { margin: 0; }
.msg__top small { color: var(--muted); font-size: 12.5px; }
.msg__list { display: flex; flex-direction: column; gap: 4px; max-height: min(56vh, 520px); min-height: 180px; overflow-y: auto; padding: 10px 2px; margin-top: 10px; }
.msg__day { align-self: center; font-size: 11.5px; color: var(--faint); margin: 10px 0 4px; text-transform: capitalize; }
.msg__m { max-width: 82%; align-self: flex-start; display: grid; gap: 2px; }
.msg__m p { margin: 0; padding: 9px 13px; border-radius: 16px 16px 16px 5px; background: var(--card-2); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.45; }
.msg__m--me { align-self: flex-end; justify-items: end; }
.msg__m--me p { background: var(--ink); color: var(--bg); border-color: var(--ink); border-radius: 16px 16px 5px 16px; }
.msg__who { font-size: 12px; color: #f5c542; margin: 6px 0 0 6px; }
.msg__at { font-size: 11px; color: var(--faint); padding: 0 6px; }
.msg__del { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.msg__send { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.msg__send textarea { flex: 1; min-width: 0; min-height: 46px; max-height: 140px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; resize: none; }
.msg__send .btn { min-height: 46px; flex: none; }
.msg__convs { display: grid; margin-top: 12px; }
.msg__conv { display: flex; gap: 12px; align-items: center; padding: 12px 6px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; border-radius: 0; }
.msg__conv:first-child { border-top: 0; }
.msg__conv:hover { background: var(--card-2); }
.msg__cv { flex: 1; min-width: 0; display: grid; }
.msg__cv small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg__n { flex: none; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: #f5c542; color: #111; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.msg__when { flex: none; font-size: 11.5px; color: var(--faint); }

/* Admin: to do, holes, summary, phone + */
.todo { margin: 14px 0 18px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--card); }
.todo__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.todo__head strong { font-size: 16px; }
.todo__head small { color: var(--faint); font-size: 12.5px; }
.todo__row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.todo__row:nth-child(2) { border-top: 0; }
.todo__ic { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.todo__ic--bad { background: #ff5c5c24; color: #ff7b7b; }
.todo__ic--warn { background: #f5c54224; color: #f5c542; }
.todo__ic--info { background: #7aa7ff24; color: #9bbcff; }
.todo__tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.todo__tx strong { font-size: 14.5px; font-weight: 600; }
.todo__tx small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo__row .btn { flex: none; }
.todo__done { flex: none; font-size: 12.5px; color: var(--ok); }
.holepick { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 10px; }
.holepick button { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--ink); font: inherit; cursor: pointer; }
.holepick button:hover { border-color: var(--ink); }
.holepick small { color: var(--muted); font-size: 12px; }
.strip__bilan { align-self: center; margin-left: auto; }
.bilan__seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; }
.bilan__seg button { min-height: 34px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.bilan__seg button[aria-pressed=true] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.bilan__bars { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.bilan__bar { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.bilan__bar i { display: block; width: 100%; max-width: 56px; border-radius: 6px 6px 0 0; background: var(--line-2); }
.bilan__bar.is-cur i { background: #f5c542; }
.bilan__bar small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.bilan__bar span { font-size: 11.5px; color: var(--faint); text-transform: capitalize; }
.bilan__tablewrap { max-height: 300px; overflow-y: auto; }
.bilan__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bilan__table th, .bilan__table td { padding: 8px 6px; border-top: 1px solid var(--line); text-align: right; }
.bilan__table th { font-weight: 500; color: var(--muted); font-size: 12.5px; position: sticky; top: 0; background: var(--card); }
.bilan__table th:first-child, .bilan__table td:first-child { text-align: left; }
.bilan__table .is-warn { color: #f5c542; font-weight: 600; }
.fab { display: none; }
@media (max-width: 899px) {
  .fab { display: block; position: fixed; right: 16px; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 25; }
  .fab[hidden] { display: none; }
  .fab__btn { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); font-size: 30px; line-height: 1; box-shadow: 0 8px 24px #0008; cursor: pointer; transition: transform .2s; }
  .fab.is-open .fab__btn { transform: rotate(45deg); }
  .fab__menu { position: absolute; right: 0; bottom: 66px; display: grid; gap: 8px; justify-items: end; }
  .fab__menu[hidden] { display: none; }
  .fab__menu button { white-space: nowrap; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: inherit; font-size: 14.5px; box-shadow: 0 6px 18px #0007; cursor: pointer; }
  body:has(.fab:not([hidden])) .helpfab { bottom: calc(146px + env(safe-area-inset-bottom)); }
  body:has(.fab.is-open) .helpfab { display: none; }
}

/* Media library */
.lib { margin-top: 14px; }
.lib__head { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.lib__chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.lib__chips button { min-height: 34px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.lib__chips button[aria-pressed=true] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.lib__chips--types button { min-height: 30px; font-size: 12.5px; }
.lib__drop { margin: 12px 0 14px; padding: 16px; border: 1.5px dashed var(--line-2); border-radius: 16px; text-align: center; display: grid; gap: 8px; transition: border-color .2s, background .2s; }
.lib__drop.is-over { border-color: #f5c542; background: #f5c54214; }
.lib__drop p { margin: 0; }
.lib__drop small { color: var(--faint); font-size: 12px; }
.lib__pick { text-decoration: underline; cursor: pointer; }
.lib__dest { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.lib__dest select { margin-left: 4px; min-height: 34px; border-radius: 10px; padding: 0 8px; background: var(--card); color: var(--ink); border: 1px solid var(--line-2); font: inherit; font-size: 13.5px; }
.lib__progress { font-size: 13px; color: #f5c542; min-height: 1em; }
.lib__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
@media (max-width: 480px) { .lib__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lib__it { display: grid; padding: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.lib__it:hover { border-color: var(--ink); }
.lib__th { aspect-ratio: 4 / 5; background: var(--card-2); display: grid; place-items: center; overflow: hidden; }
.lib__th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib__ph { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.lib__meta { display: grid; gap: 2px; padding: 8px 10px 10px; min-width: 0; }
.lib__meta strong { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib__meta small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib__empty { padding: 24px 0; text-align: center; }
.lib__dtop { display: flex; align-items: center; gap: 12px; }
.lib__dtop h2 { margin: 0; overflow-wrap: anywhere; }
.lib__big { margin: 14px 0 8px; display: grid; place-items: center; background: var(--card-2); border-radius: 14px; overflow: hidden; min-height: 120px; }
.lib__big img, .lib__big video { max-width: 100%; max-height: 56vh; display: block; }
.lib__edit { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Compta (admin, locked) */
.cplock { max-width: 420px; margin: 30px auto; text-align: center; padding: 28px 22px; border: 1px solid var(--line-2); border-radius: 20px; background: var(--card); }
.cplock__ic { font-size: 30px; }
.cplock h2 { margin: 8px 0 6px; font: 400 26px/1.15 var(--display); }
.cplock__form { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.cplock__form input { width: 170px; height: 50px; text-align: center; font-size: 24px; letter-spacing: .35em; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font-family: inherit; }
.cplock__form .btn { height: 50px; }
.cplock__form .formerr { flex-basis: 100%; }
.cp__bar { margin-top: 6px; flex-wrap: wrap; gap: 8px; }
.cp__kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.cp__kpi > div { padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 2px; }
.cp__kpi span { font-size: 12.5px; color: var(--muted); }
.cp__kpi b { font: 400 24px/1.15 var(--display); }
.cp__kpi .is-ok { color: var(--ok); } .cp__kpi .is-bad { color: var(--bad, #ff6b6b); } .cp__kpi .is-warn { color: #f5c542; }
.cp__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; align-items: start; }
.cp__box { padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.cp__box h3 { margin: 0 0 8px; font-size: 15.5px; font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cp__box h3 small { font-size: 11.5px; font-weight: 400; color: var(--faint); }
.cp__l { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.cp__l span:first-child { color: var(--muted); }
.cp__l em, .cp__table em { font-style: normal; font-size: 11px; color: var(--faint); margin-left: 4px; }
.cp__l.is-total { font-weight: 700; } .cp__l.is-total span:first-child { color: var(--ink); }
.cp__l.is-warn span:last-child { color: #f5c542; }
.cp__sub { margin: 10px 0 2px; font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.cp__row { display: grid; grid-template-columns: minmax(0, 1fr) 100px 26px; gap: 6px; align-items: center; padding: 4px 0; }
.cp__row--alt { grid-template-columns: minmax(0, 1fr) 84px 76px 84px 26px; }
.cp__row--alt b { text-align: right; font-size: 13.5px; }
.cp__row--alt.is-dg { background: #f5c54214; border-radius: 10px; padding: 4px 6px; margin: 0 -6px; }
.cp__row--head { font-size: 11.5px; color: var(--faint); }
.cp__row--head span:nth-child(n+2) { text-align: right; }
.cp__row--cost { grid-template-columns: minmax(0, 1fr) 90px auto 26px; }
.cp__in { width: 100%; min-width: 0; height: 34px; padding: 0 9px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font: inherit; font-size: 14px; }
.cp__in[type=number] { text-align: right; }
.cp__l .cp__in { width: 110px; }
.cp__rec { font-size: 12px; color: var(--muted); display: flex; gap: 4px; align-items: center; white-space: nowrap; }
.cp__del { width: 26px; height: 26px; border-radius: 50%; border: 0; background: none; color: var(--faint); font-size: 18px; cursor: pointer; }
.cp__del:hover { color: var(--bad, #ff6b6b); }
.cp__add, .cp__link { margin: 4px 0 6px; padding: 0; border: 0; background: none; color: #f5c542; font: inherit; font-size: 13.5px; cursor: pointer; }
.cp__chk { margin: 6px 0; font-size: 14px; }
.cp__chk--warn { color: #f5c542; } .cp__chk--ok { color: var(--ok); }
.cp__note { margin: 8px 0 12px; }
.cp__synth { margin-top: 12px; }
.cp__years { display: inline-flex; gap: 4px; }
.cp__years button { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--ink); font: inherit; font-size: 12.5px; cursor: pointer; }
.cp__years button[aria-pressed=true] { background: var(--ink); color: var(--bg); }
.cp__tablewrap { overflow-x: auto; }
.cp__table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px; }
.cp__table th, .cp__table td { padding: 7px 6px; border-top: 1px solid var(--line); text-align: right; white-space: nowrap; }
.cp__table th { font-weight: 500; color: var(--muted); font-size: 12px; }
.cp__table th:first-child, .cp__table td:first-child { text-align: left; text-transform: capitalize; }
.cp__table .is-cur td { background: #f5c54214; }
.cp__table .is-total td { font-weight: 700; }
@media (max-width: 520px) { .cp__grid { grid-template-columns: 1fr; } .cp__row--alt { grid-template-columns: minmax(0, 1fr) 70px 64px 70px 26px; } }

/* Signed quotes, team events, detailed client billing */
.qlist { gap: 0; }
.qrow { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.qrow:first-child { border-top: 0; }
.qrow__tx { flex: 1 1 260px; min-width: 0; display: grid; gap: 2px; }
.qrow__tx strong { font-size: 15px; }
.qrow__tx small { font-size: 12.5px; color: var(--muted); }
.teamhead { margin: 6px 0; }
.teams { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--card); }
.team { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.team:nth-of-type(1) { border-top: 0; }
.team__tx { flex: 1 1 260px; min-width: 0; display: grid; gap: 4px; }
.team__tx small { color: var(--muted); font-size: 12.5px; }
.team__rsvp { display: flex; gap: 6px; flex-wrap: wrap; }
.teamcard { margin: 14px 0; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--card); }
.teamcard--new { border-color: #f5c54299; background: #f5c5420f; }
.teamcard h3 { margin: 4px 0 2px; font-size: 18px; }
.teamcard__when { margin: 0 0 6px; font-weight: 600; font-size: 14px; }
.teamcard__desc { margin: 0 0 6px; font-size: 14px; color: var(--muted); white-space: pre-wrap; }
.teamcard .row { gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.teamcard__n { color: var(--faint); font-size: 12.5px; }
.line--inv .detail li { grid-template-columns: minmax(0, 1fr) 0 auto auto; }
.line--inv .detail__sub { font-size: 12.5px; color: var(--muted); padding-left: 14px; }
.line--inv .detail__sub > span:first-child { overflow-wrap: anywhere; }
.line--inv .detail li.detail__sub:has(> .detail__more) { display: block; }
.detail__more summary { cursor: pointer; color: var(--ink); font-size: 12.5px; text-decoration: underline; }
.detail__more ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.detail__more li { padding-left: 0 !important; }
.detail__cost { color: var(--faint); font-size: 11.5px; white-space: nowrap; }
.line--inv .detail li.detail__actions { display: flex; gap: 8px; justify-content: flex-end; padding-top: 6px; }

/* Team events in the planning: their own striped colour */
.grid .teamev, .teamev { background: repeating-linear-gradient(135deg, #f5c542 0 7px, #ffd76a 7px 14px) !important; color: #2a1f00 !important; border: 1px solid #c99a1a !important; font-weight: 700; }
.k--team, .teamev-dot { background: repeating-linear-gradient(135deg, #f5c542 0 4px, #ffd76a 4px 8px) !important; border: 1px solid #c99a1a; }
.wl--team .wl__txt { white-space: normal; }
.teamcard__who { margin: 10px 0 0; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.teamcard__who strong { color: var(--ink); font-weight: 600; }

/* Public request: venue or event */
.dswitch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 4px; }
@media (max-width: 520px) { .dswitch { grid-template-columns: 1fr; } }
.dswitch a { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink) !important; text-decoration: none !important; }
.dswitch a:hover { border-color: var(--ink); }
.dswitch a.is-on { border-color: #f5c542; background: #f5c54214; }
.dswitch strong { font-size: 16px; }
.dswitch span { font-size: 13px; color: var(--muted); }
.evchips label { white-space: nowrap; }
.askcta { display: grid; gap: 3px; margin-top: 18px; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line-2); text-align: center; text-decoration: none !important; color: var(--ink) !important; font-size: 13px; }
.askcta strong { font-size: 14px; }
.askcta span { color: var(--muted); }
.askcta:hover { border-color: #f5c542; }
.qrow--btn { width: 100%; background: none; border: 0; border-top: 1px solid var(--line); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.qrow--btn:first-child { border-top: 0; }
.qrow--btn:hover { background: var(--card-2); }

/* Pending change e-mails */
.notifybar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 12px 0; padding: 12px 14px; border-radius: 16px; border: 1px solid #f5c54266; background: #f5c5420f; }
.notifybar__tx { flex: 1 1 260px; min-width: 0; display: grid; gap: 2px; }
.notifybar__tx small { color: var(--muted); font-size: 12.5px; }

/* Demonstration copy */
.demobar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; border: 1px solid #f5c54266; background: #f5c5420f; font-size: 13px; }
.demopick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
@media (max-width: 520px) { .demopick { grid-template-columns: 1fr; } }
.demopick__btn { display: grid; gap: 4px; text-align: left; padding: 16px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.demopick__btn:hover { border-color: #f5c542; background: #f5c5420f; }
.demopick__btn strong { font-size: 17px; }
.demopick__btn span { font-size: 13px; color: var(--muted); }

/* Site health */
.health { margin-top: 26px; }
.health__bad { color: var(--bad); font-style: normal; }
.health__list { margin-top: 10px; font-size: 13px; }
.health__list summary { cursor: pointer; color: var(--ink); }
.health__list p { margin: 6px 0; color: var(--muted); overflow-wrap: anywhere; }
.health__list time { color: var(--faint); margin-right: 6px; }

/* Official documents of the artists */
.papneed { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
details.papline { display: block; padding: 0; }
details.papline summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; cursor: pointer; list-style: none; }
details.papline summary::-webkit-details-marker { display: none; }
details.papline .papline__n { color: var(--muted); font-size: 13px; margin-right: auto; }
details.papline[open] summary { border-bottom: 1px solid var(--line); }
.paplist { list-style: none; margin: 0; padding: 6px 16px 10px; display: grid; }
.paplist li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 0; border-top: 1px solid var(--line); }
.paplist li:first-child { border-top: 0; }
.paplist__tx { flex: 1 1 220px; min-width: 0; display: grid; gap: 2px; }
.paplist__tx small { color: var(--muted); font-size: 12px; }
.paplist .row { gap: 6px; flex-wrap: wrap; }
.paperpick { cursor: pointer; }
.paperpick:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.papers { margin: 8px 0 18px; }
.papers__t { font-size: 17px; margin: 0 0 4px; }
.papline__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 0 16px 14px; }
.papline__foot .hint { font-size: 12px; color: var(--muted); }
.paplist--card { border: 1px solid var(--line); border-radius: 14px; margin-top: 10px; }

/* Visual studio (studio.js): a small Canva, full screen */
html.st-open, html.st-open body { overflow: hidden; }
.studio { position: fixed; inset: 0; z-index: 200; display: grid; background: var(--bg); color: var(--ink);
  grid-template: "bar bar bar" auto "tabs panel stage" 1fr / 76px 340px 1fr; }
.st-bar { grid-area: bar; display: flex; align-items: center; gap: 8px; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); }
.st-title { font: 400 20px/1 var(--display); white-space: nowrap; }
.st-title small { font: 600 12px var(--sans); color: var(--muted); margin-left: 6px; }
.st-spacer { flex: 1; }
.st-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: none; font-size: 17px; display: grid; place-items: center; }
.st-btn:disabled { opacity: .35; cursor: default; }
.st-fmt { display: flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; }
.st-fmt button { border: 0; background: none; border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 700; color: var(--muted); }
.st-fmt button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.st-tabs { grid-area: tabs; display: flex; flex-direction: column; gap: 4px; padding: 10px 6px; border-right: 1px solid var(--line); overflow-y: auto; }
.st-tabs button { display: grid; justify-items: center; gap: 3px; padding: 9px 2px; border: 0; border-radius: 12px; background: none; color: var(--muted); font-size: 11px; font-weight: 600; }
.st-tabs button b { font-size: 18px; line-height: 1; }
.st-tabs button[aria-current="true"] { background: rgb(var(--tint) / .09); color: var(--ink); }
.st-tabs button[data-tab="edit"] { color: #a993ff; }
.st-panel { grid-area: panel; overflow-y: auto; padding: 16px 16px 40px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.st-panel > * { flex-shrink: 0; }
.st-text { min-height: 84px; }
.st-cap { min-height: 220px; }
.st-panel h3 { font: 400 22px/1.1 var(--display); }
.st-panel h4 { margin: 8px 0 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.st-hint { font-size: 12.5px; color: var(--muted); }
.st-stage { grid-area: stage; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 40%, rgb(var(--tint) / .05), transparent 70%); min-height: 0; }
.st-stage canvas { display: block; border-radius: 6px; box-shadow: 0 20px 60px #0009; touch-action: none; cursor: default; }
.st-tpls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.st-tpl { display: grid; gap: 5px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: none; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.st-tpl canvas { width: 100%; height: auto; border-radius: 6px; background: #000; aspect-ratio: 9 / 16; object-fit: contain; }
.st-tpl.is-on { border-color: #7c5cff; color: var(--ink); }
.st-field { display: grid; gap: 5px; font-size: 13px; color: var(--muted); }
.st-field select, .st-text, .st-cap { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; resize: vertical; }
.st-adds { display: grid; gap: 7px; }
.st-add { display: block; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-weight: 600; cursor: pointer; }
.st-add:hover { border-color: var(--line-2); }
.st-add--h1 { font: 400 26px/1 var(--display); }
.st-add--h2 { font-size: 18px; font-weight: 700; }
.st-upload { text-align: center; background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.st-presets, .st-badges, .st-stickers, .st-shapes, .st-fonts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.st-presets button, .st-badges button, .st-shapes button, .st-fonts button { min-height: 46px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 15px; color: var(--ink); overflow: hidden; }
.st-fonts button { font-size: 16px; min-height: 40px; }
.st-fonts button[aria-pressed="true"] { border-color: #7c5cff; background: #7c5cff22; }
.st-badges { grid-template-columns: repeat(2, 1fr); }
.st-badges button { font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.st-stickers { grid-template-columns: repeat(5, 1fr); }
.st-stickers button { aspect-ratio: 1; border: 0; border-radius: 10px; background: var(--card); font-size: 26px; }
.st-shapes { grid-template-columns: repeat(5, 1fr); }
.st-shapes button { display: grid; place-items: center; }
.st-shapes i { display: block; width: 26px; height: 26px; background: currentColor; }
.st-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.st-img { display: grid; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: none; font-size: 11px; color: var(--muted); }
.st-img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; background: #000; }
.st-img.is-on { border-color: #7c5cff; color: var(--ink); }
.st-colors, .st-grads { display: flex; flex-wrap: wrap; gap: 7px; }
.st-sw { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); padding: 0; cursor: pointer; }
.st-sw.is-on { outline: 2px solid #7c5cff; outline-offset: 2px; }
.st-sw--pick { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); overflow: hidden; }
.st-sw--pick input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.st-range { display: grid; grid-template-columns: 1fr 52px; align-items: center; gap: 2px 10px; font-size: 12.5px; color: var(--muted); }
.st-range span { grid-column: 1 / -1; }
.st-range input { width: 100%; accent-color: #7c5cff; }
.st-range output { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-size: 12px; }
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.st-chip { padding: 7px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: none; font-size: 12.5px; font-weight: 600; }
.st-chip.is-on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.st-chip--bad { color: var(--bad); border-color: #ff8a8a55; }
.st-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; }
.st-seg button { flex: 1; padding: 7px 8px; border: 0; border-radius: 9px; background: none; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.st-seg button[aria-pressed="true"] { background: rgb(var(--tint) / .12); color: var(--ink); }
.st-layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.st-layers li { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 10px; }
.st-layers li.is-on { border-color: #7c5cff; }
.st-layers button { border: 0; background: none; padding: 9px 10px; text-align: left; font-size: 13px; }
.st-layers button:first-child { flex: 1; display: flex; gap: 10px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.st-layers b { width: 16px; text-align: center; color: var(--muted); }
@media (max-width: 899px) {
  .studio { grid-template: "bar" auto "stage" minmax(0, 1fr) "tabs" auto "panel" 40svh / 1fr; }
  .st-bar { flex-wrap: wrap; row-gap: 8px; padding: 8px 10px; padding-top: max(8px, env(safe-area-inset-top)); }
  .st-title small { display: none; }
  .st-fmt { order: 5; }
  .st-tabs { flex-direction: row; padding: 4px 6px; border-right: 0; border-top: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .st-tabs button { flex: 0 0 auto; min-width: 62px; padding: 6px 4px; }
  .st-panel { border-right: 0; border-top: 1px solid var(--line); padding: 12px 14px calc(24px + env(safe-area-inset-bottom)); }
  .st-tpls { grid-template-columns: repeat(4, 1fr); }
}

/* Phone: the round buttons never hide the page for good.
   With the « + » (admin), the « ? » goes: help stays in the account menu (Aide & assistant).
   Room at the bottom so the last lines can be read above the buttons, and both slide away while scrolling down. */
@media (max-width: 899px) {
  body:has(.fab:not([hidden])) .helpfab { display: none; }
  body:has(.bottomnav) main { padding-bottom: calc(176px + env(safe-area-inset-bottom)); }
  .fab, body:has(.bottomnav) .helpfab { transition: transform .25s ease, opacity .25s ease; }
  body.is-scrolling-down .fab, body.is-scrolling-down .helpfab { transform: translateY(30px) scale(.85); opacity: 0; pointer-events: none; }
}

/* Phone: the sign-in card starts near the top, so the whole form is visible without scrolling (the photo stays behind it). */
@media (max-width: 899px) {
  .authscene { align-items: start; min-height: 0; }
  .authscene .auth { margin-top: 4px; }
}

/* « Tout voir » next to the zoom buttons */
.zoom .zoom__fit { font-size: 12px; font-weight: 600; padding: 0 12px; background: var(--ink); color: var(--on-ink); }
.zoom .zoom__fit:hover:not(:disabled) { background: var(--ink); opacity: .85; }

/* Messaging: avatars, round buttons, bubbles, the artist's next date, quick replies, the minimised bubble */
.msg__top { gap: 10px; }
.msg__title { flex: 1; min-width: 0; }
.msg__title h2 { font-size: 21px; }
.msg__title small { display: block; }
.msg__icon { flex: none; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: rgb(var(--tint) / 0.08); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.msg__icon svg, .msg__go svg, .chathead svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.msg__av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #0b0b10; font-weight: 700; font-size: 13px; letter-spacing: .02em; }
.msg__top .msg__av { width: 36px; height: 36px; }
.msg__ctx { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 9px 12px; border-radius: 12px; background: rgb(var(--tint) / 0.06); color: var(--muted); font-size: 13px; }
.msg__ctx .vd { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.msg__list { gap: 3px; }
.msg__m p { border: 0; border-radius: 19px 19px 19px 6px; background: rgb(var(--tint) / 0.1); padding: 9px 14px; }
.msg__m--me p { border-radius: 19px 19px 6px 19px; background: var(--ink); color: var(--bg); }
.msg__m { cursor: default; }
.msg__at { display: none; }
.msg__m:last-child .msg__at, .msg__m.open .msg__at { display: block; }
@media (hover: hover) { .msg__m:hover .msg__at { display: block; } }
.msg__quick { display: flex; gap: 6px; overflow-x: auto; margin-top: 8px; padding-bottom: 2px; scrollbar-width: none; }
.msg__quick::-webkit-scrollbar { display: none; }
.msg__q { flex: none; border: 1px solid var(--line-2); background: none; color: var(--ink); border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 13px; cursor: pointer; }
.msg__q:hover { background: rgb(var(--tint) / 0.06); }
.msg__send { align-items: flex-end; margin-top: 8px; }
.msg__send textarea { border-radius: 22px; min-height: 44px; padding: 11px 16px; }
.msg__send .msg__go { width: 44px; min-height: 44px; height: 44px; padding: 0; border-radius: 50%; display: grid; place-items: center; }
.chathead { position: fixed; left: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 30; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: var(--on-ink); box-shadow: 0 10px 30px #0007; display: grid; place-items: center; cursor: pointer; animation: chathead .35s cubic-bezier(.3, 1.4, .5, 1); }
.chathead[hidden] { display: none; }
.chathead svg { width: 24px; height: 24px; }
.chathead__n { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #f5c542; color: #111; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.chathead__n[hidden] { display: none; }
@keyframes chathead { from { transform: scale(.2); opacity: 0; } }
@media (min-width: 900px) { .chathead { left: auto; right: 24px; bottom: 96px; } }
/* Phone: the conversation fills the screen from the bottom, with a handle to pull it down */
@media (max-width: 899px) {
  dialog.sheet--msg { height: calc(var(--vvh, 100svh) - 48px); max-height: none; inset: auto 0 auto 0; top: calc(var(--vvt, 0px) + 48px); margin: 0; overscroll-behavior: contain; will-change: transform; }
  dialog.sheet--msg .msg__top, dialog.sheet--msg .msg__ctx { touch-action: none; }
  dialog.sheet--msg::before { content: ''; position: absolute; top: 7px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--line-2); }
  dialog.sheet--msg form { display: flex; flex-direction: column; height: 100%; gap: 0; padding-top: 22px; }
  dialog.sheet--msg .msg__list { flex: 1; min-height: 0; max-height: none; }
  dialog.sheet--msg .msg__convs { overflow-y: auto; flex: 1; min-height: 0; align-content: start; }
}
#sheet .msg__icon:focus { outline: none; }
dialog.sheet--msg[open] { animation: none; }
dialog.sheet--msg::backdrop { opacity: var(--bd, 1); transition: opacity .25s; }
dialog.sheet--msg .msg__list { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.chathead { touch-action: none; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.chathead:active { transform: scale(.94); }
@media (max-width: 899px) { html.kb dialog.sheet--msg form { padding-bottom: 10px; } }
/* App: no double-tap zoom on buttons (the page pinch is blocked in app.js); the planning keeps its own pinch */
html.appmode button, html.appmode a, html.appmode .card { touch-action: manipulation; }
.viewas__q { width: 100%; }
.viewas__item { display: flex; align-items: center; gap: 12px; }
.viewas__item .msg__av { width: 36px; height: 36px; font-size: 13px; flex: none; }
.viewas__item span small { display: block; color: var(--muted); font-size: 12.5px; }
.viewas__item[hidden], .viewas__grp[hidden] { display: none; }
.btn--hold { position: relative; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.btn--hold > i { position: absolute; inset: 0; background: rgb(var(--tint) / .22); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.btn--hold > span { position: relative; }
.btn--hold.is-holding > i { transform: scaleX(1); transition: transform .9s linear; }
.confirmall { align-items: center; margin-top: 18px; }
.confirmall .section-title { margin: 0; }
.teamline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font-size: 14px; }
.teamline > span:first-child { flex: 1 1 auto; min-width: 0; }
/* Tab changes (View Transitions): a short crossfade of the content; the top bar and the bottom tabs don't move */
header.top { view-transition-name: topbar; }
.bottomnav { view-transition-name: bottomnav; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .14s; animation-timing-function: ease-out; }
::view-transition-group(topbar), ::view-transition-group(bottomnav) { animation: none; }
::view-transition-old(topbar), ::view-transition-old(bottomnav) { display: none; }
::view-transition-new(topbar), ::view-transition-new(bottomnav) { animation: none; }
@media (min-width: 900px) { .dj .bottomnav { view-transition-name: none; } }
/* Phone: nothing floats over the content any more: help is in the account menu, « + » sits in the bottom bar */
@media (max-width: 899px) {
  .helpfab { display: none !important; }
  body:has(.adminnav) .fab { display: none; }
  .adminnav { grid-template-columns: repeat(5, 1fr); }
  .adminnav__plus { display: grid; place-items: center; }
  .adminnav__plus::before { display: none; }
  .adminnav__plus b { display: grid; place-items: center; width: 46px; height: 46px; margin-top: -2px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font: 300 30px/1 var(--display); box-shadow: 0 6px 18px #0006; transition: transform .15s; }
  .adminnav__plus:active b { transform: scale(.92); }
}
@media (min-width: 900px) { .adminnav__plus { display: none; } }
/* Phone: the account menu slides up from the bottom over a dimmed page, like the other windows */
@media (max-width: 899px) {
  body:has(.memenu:not([hidden])) .top { z-index: 70; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body:has(.memenu:not([hidden])) .top::after { content: ''; position: fixed; inset: 0; z-index: -1; background: #000000a6; animation: memenu-dim .18s ease-out; }
  .memenu { position: fixed; left: 8px; right: 8px; top: auto; bottom: calc(8px + env(safe-area-inset-bottom)); width: auto; max-height: 84svh; border-radius: 24px; animation: memenu-up .24s cubic-bezier(.2, .9, .25, 1); }
  html[data-theme="light"] body:has(.memenu:not([hidden])) .top::after { background: #0000004d; }
}
@keyframes memenu-up { from { opacity: 0; transform: translateY(40px); } }
@keyframes memenu-dim { from { opacity: 0; } }
.title__phone { display: none; }
@media (max-width: 899px) {
  .title__wide { display: none; }
  .title__phone { display: inline; }
  html body main > .adminnav + * { margin-top: 16px; }
}
/* Phone: a handle on every window and menu that rises from the bottom (pull it down to close) */
@media (max-width: 899px) {
  dialog[open]:not(.sheet--msg)::before, .memenu::before { content: ''; display: block; width: 40px; height: 5px; margin: 0 auto; border-radius: 3px; background: var(--line-2); }
  dialog[open]:not(.sheet--msg)::before { position: absolute; top: 8px; left: 50%; margin-left: -20px; z-index: 2; }
  .memenu::before { margin: 2px auto 8px; }
  dialog[open]:not(.sheet--msg) form { padding-top: 26px; }
}

/* ---------- audience of the public site (admin) ---------- */
.aud__period { margin-top: 14px; }
.aud__since { margin: 4px 0 0; }
.aud__tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.aud__tiles .stat small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.aud__tiles .stat small.aud__up { color: var(--ok, #3fb67a); }
.aud__tiles .stat small.aud__down { color: var(--bad); }
.aud__panel { margin-top: 12px; padding: 14px 16px 16px; }
.aud__panel .section-title { margin: 0 0 12px; }
.aud__cols { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 3px; align-items: end; height: 150px; }
.aud__col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; padding-bottom: 18px; }
.aud__col i { display: block; width: 100%; min-height: 0; border-radius: 3px 3px 1px 1px; background: var(--ink); opacity: .85; transition: height .4s cubic-bezier(.2, .8, .2, 1); }
.aud__col:hover i { opacity: 1; }
.aud__col span { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); font-size: 10.5px; color: var(--faint); white-space: nowrap; }
.aud__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 12px; }
.aud__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.aud__list li { display: grid; grid-template-columns: minmax(0, 9.5em) 1fr auto; align-items: center; gap: 10px; font-size: 13.5px; }
.aud__k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aud__bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.aud__bar i { display: block; height: 100%; border-radius: inherit; background: var(--ink); opacity: .75; }
.aud__list b { font-variant-numeric: tabular-nums; min-width: 2.5em; text-align: right; }
.aud__chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.aud__chip { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 12.5px; color: var(--muted); }
.aud__chip b { font: 400 22px/1.1 var(--display); color: var(--ink); }
.aud__empty { margin-top: 16px; padding: 22px; border: 1px dashed var(--line-2); border-radius: var(--r); text-align: center; }
.aud__empty p { margin: 6px 0 0; color: var(--muted); }
.aud__note { margin-top: 16px; }
@media (max-width: 520px) {
  .aud__tiles { grid-template-columns: 1fr 1fr; }
  .aud__tiles .stat b { font-size: 24px; }
  .aud__chips { grid-template-columns: 1fr 1fr; }
  .aud__cols { height: 120px; gap: 2px; }
}
