/* The client area: Automaton Services' colours (automatonservices.net), system fonts, phone first. */
:root {
  --bg0: #060a10; --bg1: #0a0f17; --panel: #0d1522; --panel2: #111b2b;
  --line: rgba(148, 178, 220, .13); --line-strong: rgba(148, 178, 220, .28);
  --ink: #dde8f5; --ink-dim: #9fb2ca; --ink-faint: #66788f;
  --blue: #4ea1ff; --blue-deep: #1c5fd6; --blue-ghost: rgba(78, 161, 255, .13);
  --amber: #ffb454; --amber-ghost: rgba(255, 180, 84, .12);
  --green: #41d98d; --green-ghost: rgba(65, 217, 141, .12); --red: #ff7a76; --red-ghost: rgba(255, 122, 118, .12);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Khmer", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  --r: 4px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(28, 95, 214, .18), transparent 60%), var(--bg1);
  color: var(--ink); font: 15px/1.5 var(--sans);
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 26px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
p { margin: 0; }
[hidden] { display: none !important; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(18px, env(safe-area-inset-left)); border-bottom: 1px solid var(--line);
  background: rgba(10, 15, 23, .85); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(8px);
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; }
.logo:hover { text-decoration: none; }
.logo svg { width: 28px; height: 28px; }
.logo em { font-style: normal; color: var(--ink-dim); font-weight: 450; }
/* the icons under the logo (0.15.0): alerts with a red count, your venues, help, you */
.brand { position: relative; display: flex; flex-direction: column; gap: 8px; }
.tools { display: flex; gap: 6px; align-items: center; }
.tool, button.tool {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; min-height: 0; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); color: var(--ink-dim); cursor: pointer;
}
.tool:hover { color: var(--ink); border-color: var(--blue); text-decoration: none; }
.tool svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tool .badge {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #e5484d; color: #fff; font: 700 11px/18px var(--sans); text-align: center;
}
.pop {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 20; width: min(360px, calc(100vw - 36px)); max-height: 70vh; overflow: auto;
  background: var(--panel2); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 14px; box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
  display: flex; flex-direction: column; gap: 10px;
}
.pop h2 { font-size: 15px; margin: 0; }
.pop .sub { color: var(--ink-dim); font-size: 13px; }
.alerts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.alerts li { border-left: 3px solid var(--line-strong); border-radius: 2px; }
.alerts li.bad { border-left-color: var(--red); }
.alerts li.warn { border-left-color: var(--amber); }
.alerts li.info { border-left-color: var(--blue); }
.alerts li.new { background: var(--blue-ghost); }
.alerts a { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; color: var(--ink); font-size: 14px; }
.alerts a:hover { text-decoration: none; background: var(--blue-ghost); }
.alerts strong { font-weight: 600; }
.pop-menu { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14px; }

main { width: 100%; max-width: 920px; margin: 0 auto; padding: 22px 18px 40px; flex: 1; display: flex; flex-direction: column; gap: 18px; }
.foot { text-align: center; color: var(--ink-faint); font-size: 13px; padding: 18px; border-top: 1px solid var(--line); }
.foot a { color: var(--ink-dim); }
.loading, .note { color: var(--ink-dim); }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; display: flex; flex-direction: column; gap: 14px;
}
.card.narrow { max-width: 440px; width: 100%; margin: 6vh auto 0; }
.card header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card .sub { color: var(--ink-dim); font-size: 14px; }
.eyebrow { font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.hint { color: var(--ink-faint); font-size: 13px; }

form { display: flex; flex-direction: column; gap: 12px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-dim); }
input[type=text], input[type=email], input[type=password], input[type=time] {
  font: inherit; color: var(--ink); background: var(--bg0); border: 1px solid var(--line-strong);
  border-radius: var(--r); padding: 11px 12px; min-height: 44px; width: 100%;
}
input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.check { flex-direction: row; align-items: center; gap: 10px; color: var(--ink); font-size: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--blue); }
.row { display: flex; flex-direction: row; gap: 10px; flex-wrap: wrap; align-items: center; }
form.row { align-items: flex-end; }
.row > label { flex: 1 1 180px; }

button, .btn {
  font: 600 14px/1 var(--sans); border-radius: var(--r); border: 1px solid var(--line-strong);
  background: var(--panel2); color: var(--ink); padding: 0 16px; min-height: 44px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
button:hover { border-color: var(--blue); }
button:disabled { opacity: .55; cursor: default; }
button.primary { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
button.primary:hover { background: #2a6fe6; }
button.danger { color: var(--red); }
button.danger:hover { border-color: var(--red); }
button.small { min-height: 34px; padding: 0 12px; font-size: 13px; }
button.link { background: none; border: 0; padding: 0; min-height: 0; font-weight: 450; color: var(--blue); }
button.link.danger { color: var(--red); }
input.secret { -webkit-text-security: disc; }

.msg { border-radius: var(--r); padding: 10px 12px; font-size: 14px; }
.msg.err { background: var(--red-ghost); color: var(--red); }
.msg.ok { background: var(--green-ghost); color: var(--green); }
.msg.info { background: var(--blue-ghost); color: var(--ink); }

.chip { font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 7px; border-radius: 3px;
        background: var(--blue-ghost); color: var(--blue); white-space: nowrap; }
.chip.green { background: var(--green-ghost); color: var(--green); }
.chip.amber { background: var(--amber-ghost); color: var(--amber); }
.chip.red { background: var(--red-ghost); color: var(--red); }
.chip.dim { background: rgba(148, 178, 220, .08); color: var(--ink-faint); }

.venues { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.venue-link { display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.venue-link:hover { text-decoration: none; border-color: var(--blue); }
.venue-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.venue-head .code { font: 600 13px var(--mono); color: var(--ink-faint); }

.stat { display: flex; gap: 22px; flex-wrap: wrap; }
.stat div { display: flex; flex-direction: column; }
.stat b { font-size: 24px; font-weight: 650; }
.stat span { color: var(--ink-faint); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
pre.brief { margin: 0; white-space: pre-wrap; font: 13px/1.55 var(--mono); color: var(--ink-dim);
            background: var(--bg0); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; max-height: 420px; overflow: auto; }
details summary { cursor: pointer; color: var(--blue); font-size: 14px; }
pre.code { margin: 0; white-space: pre; overflow-x: auto; font: 12.5px/1.6 var(--mono); color: var(--ink-dim);
           background: var(--bg0); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
dl.endpoints { margin: 0; display: flex; flex-direction: column; gap: 10px; }
dl.endpoints dt { font: 13px var(--mono); color: var(--ink); word-break: break-all; }
dl.endpoints dd { margin: 2px 0 0; color: var(--ink-dim); font-size: 13px; }

ul.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
ul.list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
ul.list li:first-child { border-top: 0; }
ul.list .what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
ul.list .what small { color: var(--ink-faint); font-size: 12px; }
ul.list .end { display: flex; align-items: center; gap: 10px; }

.code-box { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px; border: 1px dashed var(--amber);
            border-radius: var(--r); background: var(--amber-ghost); text-align: center; }
.code-box b { font: 700 30px/1.1 var(--mono); letter-spacing: .06em; color: var(--amber); word-break: break-all; }
.secret { font: 13px var(--mono); background: var(--bg0); border: 1px solid var(--line-strong); border-radius: var(--r);
          padding: 10px 12px; word-break: break-all; user-select: all; }

.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.app { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--panel2); }
.app .price { color: var(--ink-dim); font-size: 13px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 6px; border-top: 1px solid var(--line); }
th { color: var(--ink-faint); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; border-top: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 10px 12px; color: var(--ink-dim); border-bottom: 2px solid transparent; font-size: 14px; white-space: nowrap; flex: none; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--blue); }
.tabs a:hover { text-decoration: none; color: var(--ink); }

@media (max-width: 560px) {
  h1 { font-size: 22px; }
  .logo span { display: none; }
  .card { padding: 14px; }
}

/* reports */
.presets { gap: 8px; }
table.bars td { border-top: 1px solid var(--line); padding: 7px 6px; vertical-align: middle; }
table.bars tr:first-child td { border-top: 0; }
table.bars td.wide { width: 45%; }
table.bars td.dim { color: var(--ink-faint); width: 1%; white-space: nowrap; }
.bar { display: block; height: 8px; border-radius: 4px; background: rgba(148, 178, 220, .08); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--blue-deep), var(--blue)); }
.report { display: flex; flex-direction: column; gap: 18px; }
input[type=date] { font: inherit; color: var(--ink); background: var(--bg0); border: 1px solid var(--line-strong);
                   border-radius: var(--r); padding: 10px 12px; min-height: 44px; width: 100%; color-scheme: dark; }

/* billing (0.6.0): apps, invoices, KHQR */
.msg.warn { background: var(--amber-ghost); color: var(--amber); }
.msg a { color: inherit; text-decoration: underline; font-weight: 600; }
a.btn { text-decoration: none; }
a.btn.primary { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.app .hint { margin-top: -2px; }
.app .row { margin-top: auto; }
table.invoices td a { font: 600 13px var(--mono); white-space: nowrap; }
.invoice-wrap { display: flex; flex-direction: column; gap: 18px; }
.inv-no { font: 650 22px/1.2 var(--mono); margin-top: 6px; }
.parties { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.parties div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.parties small, .inv-dates dt { color: var(--ink-faint); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.parties span { color: var(--ink-dim); }
.inv-dates { display: flex; gap: 26px; flex-wrap: wrap; margin: 0; }
.inv-dates dd { margin: 2px 0 0; }
table.lines td { vertical-align: top; }
table.lines td small { display: block; color: var(--ink-faint); font-size: 12px; margin-top: 2px; }
table.lines tr.total td { font-weight: 700; font-size: 16px; border-top: 1px solid var(--line-strong); }
.pay-area { display: flex; flex-direction: column; gap: 12px; }
.khqr { width: 100%; max-width: 300px; border-radius: 14px; overflow: hidden; background: #fff; color: #111; box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
.khqr-band { background: #e1232e; color: #fff; font: 800 18px/1 var(--sans); letter-spacing: .12em; text-align: center; padding: 12px; }
.khqr-body { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 18px 16px; }
.khqr-to { font-size: 13px; color: #555; }
.khqr-amount { font-size: 26px; font-weight: 750; color: #111; }
.khqr .qr { width: 100%; max-width: 250px; height: auto; display: block; margin: 6px 0; }
.khqr .hint { color: #666; }
.khqr-test { background: #fff3cd; color: #7a5600; font: 700 12px/1.3 var(--sans); text-align: center; padding: 8px; margin: 0; }
@media (max-width: 560px) { .parties { grid-template-columns: 1fr; } }
@media print {
  body { background: #fff; color: #000; }
  .top, .foot, .tabs, .no-print, .pay-area, main > .venue-head, main > .msg { display: none !important; }
  .card { border: 0; background: #fff; padding: 0; }
  .parties span, .parties small, .inv-dates dt, table.lines td small, th { color: #444; }
  a { color: #000; }
}

/* the Event manager (0.7.0) */
textarea, select, input[type=number], input[type=file] {
  font: inherit; color: var(--ink); background: var(--bg0); border: 1px solid var(--line-strong);
  border-radius: var(--r); padding: 10px 12px; width: 100%;
}
textarea { line-height: 1.5; resize: vertical; min-height: 88px; }
textarea[lang=km] { font-size: 16px; line-height: 1.7; }
select, input[type=number] { min-height: 44px; }
input[type=file] { padding: 8px; color: var(--ink-dim); }
textarea:focus, select:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.events { display: flex; flex-direction: column; gap: 18px; }
.posts { display: flex; flex-direction: column; gap: 14px; }
.post { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel2); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
details.post { display: block; }
details.post > summary { list-style: none; cursor: pointer; }
details.post > summary::-webkit-details-marker { display: none; }
details.post[open] > summary { margin-bottom: 10px; }
details.post > *:not(summary) + * { margin-top: 10px; }
details.post label { margin-bottom: 10px; }
.post-head, .ev-head { display: flex; gap: 12px; align-items: flex-start; }
.post-head > div, .ev-head .what { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.post-head small, .ev-head small { color: var(--ink-dim); font-size: 13px; }
small.dim, .dim { color: var(--ink-faint); }
small.err { color: var(--red); }
.thumb { width: 56px; height: 70px; object-fit: cover; border-radius: 3px; flex: none; background: var(--bg0); border: 1px solid var(--line); }
.thumb.none { display: inline-flex; align-items: center; justify-content: center; font-size: 10px; color: var(--ink-faint); text-align: center; padding: 4px; }
.events-list > li.ev { display: block; padding: 10px 0; }
.events-list details > summary { list-style: none; cursor: pointer; color: var(--ink); }
.events-list details > summary::-webkit-details-marker { display: none; }
.events-list details[open] > summary { margin-bottom: 10px; }
.events-list details > summary:hover b { color: var(--blue); }
ul.posts-of { margin: 0 0 12px; padding-left: 68px; }
ul.posts-of li { padding: 8px 0; }
.ev-form { border-top: 1px solid var(--line); padding-top: 12px; margin: 4px 0 10px; }
.weekdays { gap: 14px; }
.weekdays .check { font-size: 13px; }
ol.steps { margin: 0; padding-left: 20px; color: var(--ink); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
fieldset.plain > legend { padding: 0; margin-bottom: 6px; font-size: 13px; color: var(--ink-dim); }
.sample-box:empty { display: none; }
video.sample { display: block; width: 100%; max-width: 300px; aspect-ratio: 9 / 16; margin-top: 8px; background: #000; border-radius: var(--r); border: 1px solid var(--line); }
@media (max-width: 560px) {
  ul.posts-of { padding-left: 0; }
  .thumb { width: 48px; height: 60px; }
}

/* the back office (31 Oct): Today and Money. This year's bars in one hue over last year's in gray (the context),
   checked together against the panel (#0d1522) with the dataviz validator: the blue inside the lightness band, both
   apart by more than the colour-blind and normal-vision floors, both 3:1 on the panel */
.back { display: flex; flex-direction: column; gap: 18px; }
.stat b.big { font-size: 30px; }
label.inline { flex-direction: row; align-items: center; gap: 8px; }
label.inline select { min-height: 34px; padding: 4px 8px; width: auto; }
ul.list.compact li { padding: 7px 0; }
ul.list li.flag > .what > span:first-child { color: var(--amber); }
ul.list .end b { font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--ink-dim); margin: -4px 0 0; }
.legend i { display: inline-block; width: 14px; height: 8px; border-radius: 0 3px 3px 0; margin-right: 6px; vertical-align: middle; }
.legend i.ty, .bar2 .ty { background: #3987e5; }
.legend i.ly, .bar2 .ly { background: #5d6b80; }
.bar2 { display: flex; flex-direction: column; gap: 2px; }
.bar2 span { display: block; height: 9px; border-radius: 0 4px 4px 0; }
.bar2 span.ly { height: 5px; }
table.bars.money td { padding: 8px 6px; }
table.bars.money td:first-child, table.bars.money td.num { white-space: nowrap; }
table.bars tr.period:hover, table.bars tr.period:focus-visible { background: rgba(78, 161, 255, .07); outline: none; }
td .ly-val { display: block; color: var(--ink-faint); font-size: 12px; }
.card.rel { position: relative; }
.tip { position: absolute; z-index: 3; pointer-events: none; display: flex; flex-direction: column; gap: 2px; max-width: 300px;
       background: var(--panel2); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 8px 10px; font-size: 13px;
       color: var(--ink-dim); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.tip b { color: var(--ink); font-size: 14px; }
button[aria-pressed=true] { border-color: var(--blue); background: var(--blue-ghost); }
.day-report { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.day-report header h2 { font-size: 15px; }
/* the back office's thirteen tabs: on a wide screen they wrap rather than hide behind a scroll */
@media (min-width: 761px) { .tabs { flex-wrap: wrap; overflow-x: visible; } }
@media (max-width: 560px) {
  .stat b.big { font-size: 26px; }
  table.bars.money td { padding: 7px 3px; }
  table.bars.money td:first-child { white-space: normal; }
  table.bars.money td.wide { width: 30%; }
}

/* the Calendar and Communications (1 Nov). Each kind of date has its colour (--k), and never only its colour: its name
   is beside it in the legend and in the day's list. */
.k-booking { --k: #4ea1ff; } .k-event { --k: #ffb454; } .k-private { --k: #c792ff; } .k-staff { --k: #41d98d; }
.k-delivery { --k: #8fb3d9; } .k-reminder { --k: #ff7a76; } .k-closed { --k: #9aa5b1; } .k-other { --k: #5fd3e8; }
.cal-nav { gap: 8px; align-items: center; flex-wrap: wrap; }
.cal-nav .cal-month { min-width: 9.5em; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
.cal-grid .wd { font: 600 11px/1 var(--mono); color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; padding: 4px 2px; }
.cal-day { display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-height: 84px; min-width: 0; padding: 5px;
           text-align: left; background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink);
           font: inherit; cursor: pointer; }
.cal-day .n { font: 600 12px/1 var(--mono); color: var(--ink-dim); margin-bottom: 2px; }
.cal-day.other { opacity: .45; }
.cal-day.today { border-color: var(--amber); }
.cal-day.today .n { color: var(--amber); }
.cal-day .it { font-size: 11.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-day .it i, .legend.cal-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px;
                                        vertical-align: middle; background: var(--k); }
.cal-day .more { font-size: 11px; color: var(--ink-faint); }
.legend.cal-legend { margin-top: 10px; gap: 12px; }
.chip[class*="k-"] { background: rgba(148, 178, 220, .08); color: var(--k); }
ul.list li.off { opacity: .6; }
ul.list li.off .what b { text-decoration: line-through; }
ul.list .what small.note { white-space: pre-wrap; color: var(--ink-dim); }
.cal-list .acts, ul.list .acts { gap: 14px; }
.hist { width: 100%; }
.msg-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 0; background: none;
           border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.msg-row .num { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.msg-row small.note { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
ul.list.msgs li.done .what b { color: var(--ink-dim); font-weight: 500; }
ul.list.inboxes .num { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-dim); }
.mail-text { white-space: pre-wrap; word-break: break-word; font: 13px/1.5 var(--mono); background: var(--panel2); border: 1px solid var(--line);
             border-radius: var(--r); padding: 12px; max-height: 420px; overflow: auto; margin: 10px 0; color: var(--ink); }
@media (max-width: 760px) {
  .cal-grid { gap: 2px; }
  .cal-day { min-height: 46px; padding: 4px 3px; flex-direction: row; flex-wrap: wrap; align-content: flex-start; gap: 3px; }
  .cal-day .n { width: 100%; }
  .cal-day .it { font-size: 0; }
  .cal-day .it i { margin: 0; }
  .cal-day .more { font-size: 10px; }
  .msg-row { flex-direction: column; align-items: flex-start; }
  .msg-row .num { flex-direction: row; align-items: center; }
}
ul.list .what > .chip { align-self: flex-start; }
