/* Staff meetings (meetings.js, 27 Oct 2026). On app.css's tokens; nothing new
   in the palette. The Home card is the one loud thing: it is the top of Home
   by request ("it should be the top thing on the home page"), so it is filled
   plum like the coordinators' My list door rather than another white card. */

/* ---------- Home ---------- */

.mt-slot:empty { display: none; }
.mt-slot { margin: 0 0 18px; }
.mt-hero {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--accent); color: #fff; border-radius: var(--r);
  padding: 18px 20px; box-shadow: var(--shadow);
}
.mt-hero:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.mt-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mt-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.88);
}
.mt-all { color: #fff; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.mt-hero-title { font-size: 22px; font-weight: 650; margin: 8px 0 4px; line-height: 1.25; overflow-wrap: anywhere; }
.mt-hero-when { font-size: 15px; color: rgba(255,255,255,.95); }
.mt-hero-where { font-size: 14.5px; margin-top: 4px; color: rgba(255,255,255,.95); overflow-wrap: anywhere; }
.mt-hero .mt-hero-where a, .mt-hero a.mt-where { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.mt-hero-meta { font-size: 13px; color: rgba(255,255,255,.8); margin-top: 6px; }
.mt-kind { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.mt-hero .mt-answer { margin-top: 14px; }
.mt-hero .mt-ask { color: rgba(255,255,255,.9); }
.mt-hero .mt-answer .btn { background: rgba(255,255,255,.16); color: #fff; }
.mt-hero .mt-answer .btn[aria-pressed="true"] { background: #fff; color: var(--accent); }
.mt-home-rest { margin-top: 10px; }
.mt-home-fail { margin: 0; }

@media (prefers-color-scheme: dark) {
  /* The dark accent is a pale plum; white text on it would not read. */
  .mt-hero { color: #1a1520; }
  .mt-eyebrow, .mt-hero-when, .mt-hero-where, .mt-hero-meta, .mt-hero .mt-ask { color: rgba(26,21,32,.85); }
  .mt-all, .mt-hero .mt-hero-where a, .mt-hero a.mt-where { color: #1a1520; }
  .mt-hero .mt-answer .btn { background: rgba(26,21,32,.12); color: #1a1520; }
  .mt-hero .mt-answer .btn[aria-pressed="true"] { background: #1a1520; color: var(--accent); }
}

/* ---------- Yes / No ---------- */

.mt-answer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.mt-answer:empty { display: none; }
.mt-ask { font-size: 14px; font-weight: 600; margin-right: 4px; }
.mt-answer .btn[aria-pressed="true"] { background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .mt-answer .btn[aria-pressed="true"] { color: #1a1520; } }
.mt-answer.compact .btn { padding: 7px 11px; font-size: 13px; }
.mt-answer.compact { flex-wrap: nowrap; }

/* ---------- Lists ---------- */

/* The buttons go under the title on a phone rather than past the edge. */
@media (max-width: 600px) {
  .mt-head.screen-head { flex-wrap: wrap; gap: 10px; }
  .mt-head .head-actions { flex-wrap: wrap; }
}

.mt-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.mt-row { cursor: pointer; }
.mt-row.off .title { text-decoration: line-through; color: var(--ink-2); }
/* On a phone the row keeps the time and the answer; who was invited is one tap away. */
@media (max-width: 600px) { .mt-row .grow .meta + .meta { display: none; } }
.mt-date {
  display: grid; place-items: center; flex: none; width: 46px; height: 50px;
  border-radius: var(--r-xs); background: var(--accent-soft); color: var(--accent);
  line-height: 1.05;
}
.mt-date.off { background: var(--fill); color: var(--ink-3); }
.mt-date-m { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mt-date-d { font-size: 19px; font-weight: 700; }

/* ---------- Detail ---------- */

.mt-detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 860px) { .mt-detail { grid-template-columns: minmax(0, 1fr); } }
.mt-mine { margin-bottom: 14px; }
/* A comment beside an answer, and the sheet that writes one. */
.mt-comment { margin-top: 10px; font-size: 14px; overflow-wrap: anywhere; }
.mt-comment-k { color: var(--ink-2); }
.mt-link {
  background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.mt-hero .mt-comment, .mt-hero .mt-comment-k, .mt-hero .mt-link { color: #fff; }
@media (prefers-color-scheme: dark) { .mt-hero .mt-comment, .mt-hero .mt-comment-k, .mt-hero .mt-link { color: #1a1520; } }
.mt-note-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 12px; }
.mt-note-chips .chip { white-space: normal; text-align: left; }
.mt-note-field {
  display: block; width: 100%; min-height: 96px; resize: vertical; font: inherit; font-size: 16px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-xs);
  background: var(--card); color: var(--ink); box-sizing: border-box;
}
.mt-note-field:focus { outline: none; border-color: var(--accent); }
.mt-note-count { text-align: right; margin: 4px 0 14px; font-size: 12.5px; }
.mt-note-actions { display: flex; gap: 10px; justify-content: flex-end; }
.mt-note-actions .btn { min-width: 96px; justify-content: center; }
.mt-their-note { font-size: 14px; color: var(--ink); margin-top: 2px; overflow-wrap: anywhere; white-space: pre-wrap; }
.mt-facts .kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
.mt-facts .k { color: var(--ink-2); font-size: 13.5px; }
.mt-facts .v { overflow-wrap: anywhere; }
.mt-where { overflow-wrap: anywhere; }
a.mt-where { color: var(--accent); }
.mt-desc { white-space: pre-wrap; overflow-wrap: anywhere; }
.mt-cal { margin-top: 14px; }
/* After a Yes (case 602): the calendar offered, and the reminders to come. */
.mt-coming { margin-top: 12px; font-size: 14.5px; overflow-wrap: anywhere; }
.mt-coming-card { margin-bottom: 12px; }
.mt-coming-card .mt-coming { margin-top: 0; }
.mt-coming-lead { font-weight: 600; }
.mt-coming-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.mt-coming-remind { margin-top: 8px; font-size: 13px; }
.mt-cancelled { margin-bottom: 14px; border-color: var(--stop-soft); background: var(--stop-soft); color: var(--stop); }
.mt-cancelled p { margin: 6px 0 0; color: var(--ink); }
.mt-pile-head { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 14px 0 6px; }
.mt-pile .row { padding-top: 9px; padding-bottom: 9px; }

/* ---------- The form ---------- */

.mt-sheet .sheet-body { padding-bottom: 28px; }
.mt-form .seg { flex-wrap: wrap; }
.mt-who-head { display: flex; align-items: baseline; justify-content: space-between; margin: 20px 0 8px; }
.mt-who-head h3, .mt-sub { font-size: 15px; font-weight: 600; margin: 0; }
.mt-sub { margin: 20px 0 8px; }
.mt-count { font-size: 14px; font-weight: 600; color: var(--accent); }
.mt-groups { padding-bottom: 6px; }
/* Two to a row, always: app.css's .field-row goes to three on a wide screen,
   which left an empty third column beside date and time. */
.mt-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.mt-form > .input, .mt-sheet .sheet-body > .input { width: 100%; margin: 4px 0 8px; }
.mt-people { max-height: 320px; overflow-y: auto; box-shadow: none; }
.mt-person { gap: 10px; cursor: default; }
.mt-person.on .title { font-weight: 600; }
.mt-person.out .title { text-decoration: line-through; color: var(--ink-2); }
label.mt-person { cursor: pointer; }
label.mt-person input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.mt-warn { color: var(--wait); }
.mt-error { color: var(--stop); font-size: 14px; margin: 12px 0 0; }
.mt-form .btn.block { margin-top: 18px; }

/* ---------- What it is for, and asking for one (case 586) ---------- */

.mt-focus { font-size: 13px; font-weight: 600; color: var(--accent); margin: 1px 0 2px; overflow-wrap: anywhere; }
.mt-hero-focus { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.95); margin: -2px 0 4px; overflow-wrap: anywhere; }
@media (prefers-color-scheme: dark) { .mt-hero-focus { color: rgba(26,21,32,.9); } }
.mt-focus-pick .seg { flex-wrap: wrap; }
.mt-topics { padding-bottom: 4px; }
.mt-focus-pick > .input { width: 100%; margin: 0 0 8px; }
.mt-from-req { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--r-xs); background: var(--accent-soft); color: var(--ink); }
.mt-waiting { margin: 0 0 14px; }
.mt-reqs { display: grid; gap: 12px; }
.mt-req.closed { opacity: .85; }
.mt-req-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mt-req-top .title { font-weight: 650; overflow-wrap: anywhere; }
.mt-req .meta { margin-top: 3px; }
.mt-req .mt-their-note { margin-top: 8px; }
.mt-want { font-size: 14px; margin-top: 8px; color: var(--ink); overflow-wrap: anywhere; }
.mt-req .mt-link { margin-top: 8px; text-align: left; }
.mt-req-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mt-req-actions .btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }

/* ==========================================================================
   Meetings in the ds- look (Sam, 4 November: "Lets redesign the meetings
   screen next"). Scoped to `.mt-ds`, so Home's card and the forms keep their
   own styles. One primary button; Upcoming / Past / Requests as a segmented
   control with the waiting requests counted on their tab; meetings in
   hairline groups with a quiet date tile; the page as two hairline panels,
   the facts with plain grey icons and who is coming as three counts.
   ========================================================================== */
.mt-ds .mt-ds-head { align-items: flex-start; margin-bottom: 20px; }
.mt-ds .mt-ds-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.mt-ds .ds-btn.quiet { border-color: transparent; background: none; color: var(--ink-2); }
.mt-ds .ds-btn.quiet:hover { background: var(--fill); color: var(--ink); }
.mt-ds .ds-btn.quiet.danger { color: var(--stop); }
.mt-ds .ds-btn[aria-pressed="true"] { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.mt-ds .ds-seg-btn { display: inline-flex; align-items: center; gap: 6px; }
.mt-ds .ds-seg-btn .ds-count[hidden] { display: none; }
.mt-ds .ds-chip[hidden] { display: none; }
.mt-ds-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 22px; }

/* The list. */
.mt-ds-group-head { margin: 0 0 8px 2px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.mt-ds-card + .mt-ds-group-head { margin-top: 22px; }
.mt-ds-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(24, 20, 26, .04); overflow: hidden;
}
.mt-ds-row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  width: 100%; padding: 14px 18px; background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer;
  transition: background .12s;
}
.mt-ds-row + .mt-ds-row { border-top: 1px solid var(--line); }
.mt-ds-row:hover { background: var(--fill); }
.mt-ds-date {
  display: grid; justify-items: center; align-content: center; width: 52px; height: 56px; border-radius: 12px;
  background: var(--fill); line-height: 1; gap: 3px;
}
.mt-ds-date-w, .mt-ds-date-m { font-size: 10.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.mt-ds-date-d { font-size: 20px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mt-ds-main { min-width: 0; }
.mt-ds-title { display: flex; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.mt-ds-soon { flex: none; font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 2px 7px; border-radius: 999px; }
.mt-ds-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 3px; font-size: 13px; color: var(--ink-2); }
.mt-ds-where { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.mt-ds-where svg { flex: none; color: var(--ink-3); }
.mt-ds-focus { margin-top: 4px; font-size: 12.5px; font-weight: 500; color: var(--accent); }
.mt-ds-side { display: flex; align-items: center; gap: 12px; }
.mt-ds-going { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mt-ds .badge { white-space: nowrap; font-size: 12px; }
.mt-ds-row.off .mt-ds-title > span:first-child { text-decoration: line-through; color: var(--ink-3); }
.mt-ds-row.off .mt-ds-date-d { color: var(--ink-3); }

/* Requests. */
.mt-ds .mt-reqs { gap: 10px; }
.mt-ds .mt-req {
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  box-shadow: 0 1px 2px rgba(24, 20, 26, .04);
}
.mt-ds .mt-req-top .title { font-size: 15px; font-weight: 600; }
.mt-ds .mt-req .meta { font-size: 12.5px; color: var(--ink-3); }
.mt-ds .mt-req .mt-their-note { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }
.mt-ds .mt-want { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.mt-ds .mt-req-actions { margin-top: 12px; gap: 6px; }
.mt-ds .mt-req-actions .ds-btn { height: 32px; font-size: 12.5px; padding: 0 12px; }

/* One meeting. */
.mt-ds-back {
  display: inline-flex; align-items: center; gap: 4px; margin: 0 0 10px -2px; padding: 4px 6px; border-radius: 8px;
  border: 0; background: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer;
}
.mt-ds-back:hover { background: var(--fill); color: var(--ink); }
.mt-ds-when { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.mt-ds-headline .mt-ds-focus { margin-top: 6px; }
.mt-ds .mt-detail { gap: 20px; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); }
.mt-ds .mt-detail-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mt-ds-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(24, 20, 26, .04);
}
.mt-ds .mt-mine { padding: 14px 18px; margin: 0; }
.mt-ds .mt-answer .btn {
  height: 34px; padding: 0 14px; border-radius: 10px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.mt-ds .mt-answer .btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.mt-ds .mt-ask { font-size: 13px; font-weight: 600; color: var(--ink); margin-right: 6px; }
.mt-ds .mt-comment { font-size: 13px; }
.mt-ds .mt-link { font-size: 13px; font-weight: 500; text-decoration: none; }
.mt-ds .mt-link:hover { text-decoration: underline; }
.mt-ds-facts { padding: 4px 0; }
.mt-ds-fact { display: grid; grid-template-columns: 20px 104px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 11px 18px; font-size: 14px; }
.mt-ds-fact + .mt-ds-fact { border-top: 1px solid var(--line); }
.mt-ds-fact-icon { color: var(--ink-3); display: inline-flex; align-self: center; }
.mt-ds-fact-k { font-size: 13px; color: var(--ink-2); }
.mt-ds-fact-v { color: var(--ink); overflow-wrap: anywhere; }
.mt-ds-fact-v a { color: var(--accent); }
.mt-ds-agenda { padding: 14px 18px; }
.mt-ds-panel-head { font-size: 12px; font-weight: 600; color: var(--ink-3); margin-bottom: 6px; }
.mt-ds .mt-desc { font-size: 14px; line-height: 1.55; color: var(--ink); }
.mt-ds .mt-cal { align-self: flex-start; margin: 0; text-decoration: none; }
.mt-ds-people { padding: 6px 6px 8px; }
.mt-ds-tally { padding: 10px 12px 12px; }
.mt-ds-tally-head { font-size: 15px; font-weight: 600; color: var(--ink); }
.mt-ds-tally-sub { margin-top: 2px; font-size: 12.5px; color: var(--ink-2); }
.mt-ds-tally-bar { display: flex; height: 4px; margin-top: 10px; border-radius: 999px; background: var(--fill); overflow: hidden; }
.mt-ds-tally-bar .yes { background: var(--accent); }
.mt-ds-tally-bar .no { background: var(--ink-3); }
.mt-ds-commented { margin: 8px 12px 0; font-size: 12px; color: var(--accent); }
.mt-ds .mt-pile-head { margin: 12px 12px 4px; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.mt-ds-person { display: flex; align-items: flex-start; gap: 10px; padding: 7px 12px; border-radius: 10px; }
.mt-ds-person .avatar.xs { flex: none; margin-top: 1px; }
.mt-ds-person-name { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink); }
.mt-ds-tag { font-size: 11px; font-weight: 500; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; }
.mt-ds-person .mt-their-note { font-size: 13px; color: var(--ink-2); }
.mt-ds-cancelled { margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; border: 0; }

@media (max-width: 700px) {
  .mt-ds .mt-ds-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .mt-ds .mt-ds-actions { justify-content: flex-start; }
  .mt-ds-row { grid-template-columns: 46px minmax(0, 1fr); gap: 12px; padding: 12px 14px; }
  .mt-ds-date { width: 46px; height: 50px; }
  .mt-ds-side { grid-column: 2; justify-content: flex-start; }
  .mt-ds .mt-detail { grid-template-columns: minmax(0, 1fr); }
  .mt-ds-fact { grid-template-columns: 20px minmax(0, 1fr); padding: 10px 14px; }
  .mt-ds-fact-k { display: none; }
  /* Three buttons on one line at phone width, without their plus signs. */
  .mt-ds .mt-ds-actions { flex-wrap: nowrap; gap: 6px; }
  .mt-ds .mt-ds-actions .ds-btn { height: 34px; padding: 0 11px; font-size: 12.5px; white-space: nowrap; }
  .mt-ds .mt-ds-actions .ds-btn > svg { display: none; }
  /* The question on its own line, the two answers side by side under it. */
  .mt-ds .mt-answer .mt-ask { flex-basis: 100%; margin: 0 0 2px; }
  .mt-ds-side { gap: 10px; }
}
@media (prefers-color-scheme: dark) {
  .mt-ds .mt-answer .btn[aria-pressed="true"] { color: #1a1520; }
}

/* Forms as pages, short questions as a dialog in the middle (Sam: "I hate
   the side segmented view", of the schedule form docked down the right). */
.mt-ds-formpage .mt-ds-head { margin-bottom: 16px; }
.mt-ds-formbody {
  max-width: 720px; padding: 22px 24px 20px; box-sizing: border-box;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(24, 20, 26, .04);
}
.mt-ds-formbody .field > span, .mt-ds-formbody label > span:first-child { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.mt-ds-formbody .mt-sub, .mt-ds-formbody .mt-who-head h3 { font-size: 14px; }
.mt-ds-formbody .btn.block { margin-top: 20px; }
.mt-ds-formfoot { display: flex; justify-content: center; margin-top: 8px; }
.mt-ds-formfoot:first-child { display: none; }
@media (max-width: 700px) { .mt-ds-formbody { padding: 16px 14px; border-radius: 14px; } }

@media (min-width: 880px) {
  .sheet-backdrop:has(> .sheet.mt-dialog) {
    justify-content: center; align-items: center; pointer-events: auto;
    background: rgba(20, 17, 22, .32); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  }
  .sheet.mt-dialog {
    width: min(480px, 92vw); max-width: 480px; height: auto; max-height: 86vh;
    border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(20, 10, 25, .22);
  }
  .sheet.mt-dialog .sheet-head { border-radius: 18px 18px 0 0; }
}

/* Skeletons while a list, a meeting or a form loads (Sam: "so we dont look
   like its blank"). The shapes of the real rows, in the fill colour. */
.mt-sk-bar { display: block; border-radius: 6px; }
.mt-sk-row { cursor: default; }
.mt-sk-row:hover { background: none; }
.mt-sk-tile { width: 52px; height: 56px; border-radius: 12px; }
.mt-sk-lines { display: grid; gap: 9px; }
.mt-sk-panel { display: grid; gap: 12px; padding: 18px; }
.mt-detail-main .mt-sk-panel + .mt-sk-panel { margin-top: 0; }
.mt-sk-head { display: grid; gap: 10px; margin: 6px 0 22px; }
.mt-sk-form { display: grid; gap: 18px; }
.mt-sk-field { display: grid; gap: 8px; }
.mt-sk-input { display: block; border-radius: 12px; }
@media (max-width: 700px) { .mt-sk-tile { width: 46px; height: 50px; } }
