/* The Things matrix page (matrix.html, Kevin, November 2, 2026). Same brand as Serena:
   navy bar, Paper White page, Source Sans 3, EB Garamond for headings, rose accent. */
:root {
  --navy: #0E172F; --navy-hover: #25314F; --on-navy: #F4F6F8; --on-navy-muted: #A9B3C4;
  --slate: #4D5B76; --paper: #F4F6F8; --ink: #1A1A1A; --raised: #FFFFFF; --line: #DDE3EE;
  --rose: #BBA49F; --blush: #F6EFED;
  --font-heading: "EB Garamond", Garamond, Georgia, serif;
  --font-ui: "Source Sans 3", Calibri, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html.auth-pending body { visibility: hidden; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--font-ui); background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; }
.hidden { display: none !important; }

.mx-bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left));
  background: var(--navy); color: var(--on-navy); }
.mx-back { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; }
.mx-back:hover { background: var(--navy-hover); }
.mx-back svg { width: 34px; height: 34px; }
.mx-title { margin: 0; font-family: var(--font-heading); font-weight: 600; font-size: 1.6rem; }
.mx-title b { font-weight: 600; color: var(--rose); }
.mx-title span { font-family: var(--font-ui); font-weight: 400; font-size: 0.95rem; color: var(--on-navy-muted); margin-left: 8px; }
.mx-status { margin-left: auto; font-size: 0.9rem; color: var(--on-navy-muted); text-align: right; }
.mx-btn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--navy-hover); background: none; color: var(--on-navy);
  display: grid; place-items: center; cursor: pointer; }
.mx-btn:hover { background: var(--navy-hover); }
.mx-btn svg { width: 22px; height: 22px; }
.mx-btn.spin svg { animation: mx-spin 1s linear infinite; }
@keyframes mx-spin { to { transform: rotate(360deg); } }

.mx-main { padding: 16px max(20px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
.mx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mx-q, .mx-loose { background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-height: 180px;
  display: flex; flex-direction: column; transition: background 0.12s, border-color 0.12s; }
.mx-loose { min-height: 0; margin-bottom: 14px; }
.mx-q.q-a { background: #FBF7F6; border-color: #E6D8D4; }
.mx-q.over, .mx-loose.over { background: var(--blush); border-color: var(--rose); box-shadow: inset 0 0 0 2px var(--rose); }
.mx-q h2, .mx-loose h2 { margin: 0 0 10px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-heading); font-weight: 600; font-size: 1.3rem; color: var(--navy); }
.mx-loose h2 { font-size: 1.1rem; }
.mx-q h2 b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--on-navy);
  font-family: var(--font-ui); font-size: 0.95rem; align-self: center; }
.mx-q.q-a h2 b { background: var(--rose); color: var(--navy); }
.mx-q h2 small { font-family: var(--font-ui); font-weight: 400; font-size: 0.85rem; color: var(--slate); }
.mx-count { margin-left: auto; font-family: var(--font-ui); font-size: 0.85rem; color: var(--slate); }
.mx-cards { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mx-loose .mx-cards { flex-direction: row; flex-wrap: wrap; }
.mx-loose .mx-card { flex: 0 1 260px; }

.mx-card { position: relative; background: var(--raised); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px;
  cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  box-shadow: 0 1px 2px rgba(14, 23, 47, 0.05); }
.mx-card:hover { border-color: var(--rose); }
.mx-card .t { font-size: 1.02rem; line-height: 1.3; color: var(--ink); }
.mx-card .d { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 0.82rem; color: var(--slate); }
.mx-card .d > span:not(.tg):not(:last-child)::after { content: "·"; margin: 0 6px; color: var(--slate); font-weight: 400; }
.mx-card .d .p { font-weight: 600; }
.mx-card .d .due { color: #8A3B2E; font-weight: 600; }
.mx-card .d .none { color: var(--placeholder, #8792A6); }
.mx-card.waiting { border: 1.5px dashed var(--rose); background: #FDFBFA; }
.mx-card.waiting .d::after { content: "updating in Things…"; color: var(--rose); font-weight: 600; }
.mx-card.failed { border-color: #C9898A; }
.mx-card .why { margin-top: 4px; font-size: 0.82rem; color: #8A3B2E; }
.mx-card.lifted { cursor: grabbing; box-shadow: 0 10px 24px rgba(14, 23, 47, 0.25); opacity: 0.95; z-index: 20; }
.mx-ghost { position: fixed; z-index: 30; pointer-events: none; margin: 0; }
.mx-gap { border: 1.5px dashed var(--line); border-radius: 10px; background: transparent; }

.mx-empty { text-align: center; color: var(--slate); margin: 30px 0; }

.mx-menu { position: fixed; z-index: 40; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 10px;
  box-shadow: 0 10px 28px rgba(14, 23, 47, 0.2); width: 260px; }
.mx-menu[hidden] { display: none; }
.mx-menu p { margin: 0 0 8px; font-size: 0.9rem; color: var(--slate); }
.mx-menu .row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mx-menu button, .mx-menu a { font: inherit; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--raised); color: var(--navy);
  font-weight: 600; cursor: pointer; display: grid; place-items: center; text-decoration: none; }
.mx-menu button.on { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.mx-menu a { margin-top: 8px; font-weight: 400; }

.mx-toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50;
  background: var(--navy); color: var(--on-navy); padding: 10px 16px; border-radius: 10px; font-size: 0.95rem; max-width: calc(100% - 32px); }
.mx-toast[hidden] { display: none; }

@media (max-width: 700px) {
  .mx-title b { font-weight: 600; color: var(--rose); }
.mx-title span { display: none; }
  .mx-grid { grid-template-columns: 1fr; }
  .mx-q { min-height: 90px; }
  .mx-loose .mx-card { flex: 1 1 100%; }
  .mx-status { font-size: 0.8rem; }
}

/* Dates in the card's menu (November 2, 2026). */
.mx-menu { width: min(290px, calc(100vw - 16px)); }
.mx-menu .mx-menu-title { color: var(--navy); font-weight: 600; font-size: 0.95rem; }
.mx-date { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 0.9rem; color: var(--slate); }
.mx-date input { font: inherit; font-size: 16px; height: 40px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--navy); background: var(--raised); min-width: 0; flex: 0 1 170px; }
.mx-quick { display: flex; gap: 6px; margin-top: 6px; justify-content: flex-end; }
.mx-menu .mx-quick button { height: 32px; padding: 0 10px; border-radius: 16px; font-size: 0.85rem; font-weight: 400; background: var(--blush); border-color: var(--rose); }

/* Selecting several (Kevin, November 2, 2026): a check on each card, and a bar at the
   bottom that changes all the selected to-dos at once. */
.mx-btn[aria-pressed="true"] { background: var(--rose); color: var(--navy); border-color: var(--rose); }
body.selecting .mx-card { padding-left: 46px; }
.mx-check { display: none; position: absolute; left: 10px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  border: 1.8px solid var(--navy); background: var(--raised); }
body.selecting .mx-check { display: block; }
.mx-card.sel { border-color: var(--navy); box-shadow: 0 0 0 1.5px var(--navy); background: #F7F9FC; }
.mx-card.sel .mx-check { background: var(--navy); }
.mx-card.sel .mx-check::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid var(--on-navy); border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); }
.mx-ghost .mx-count-badge { position: absolute; top: -10px; right: -10px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px;
  background: var(--navy); color: var(--on-navy); font-size: 0.85rem; font-weight: 600; display: grid; place-items: center; }
.mx-selbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45;
  width: min(760px, calc(100vw - 16px)); background: var(--navy); color: var(--on-navy); border-radius: 14px; padding: 10px 12px;
  box-shadow: 0 10px 28px rgba(14, 23, 47, 0.3); display: flex; flex-direction: column; gap: 8px; }
.mx-selbar[hidden] { display: none; }
.mx-selrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mx-selcount { font-weight: 600; min-width: 90px; }
.mx-sel-letters { display: flex; gap: 6px; }
.mx-selbar button { font: inherit; height: 40px; min-width: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--navy-hover);
  background: #16203C; color: var(--on-navy); cursor: pointer; }
.mx-selbar button:hover:not(:disabled) { background: var(--navy-hover); }
.mx-selbar button:disabled { opacity: 0.45; cursor: default; }
.mx-sel-letters button { font-weight: 600; }
.mx-selbar .mx-seldone { margin-left: auto; background: var(--rose); color: var(--navy); border-color: var(--rose); font-weight: 600; }
.mx-seldates label { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--on-navy-muted); }
.mx-seldates input { font: inherit; font-size: 16px; height: 40px; padding: 0 6px; border-radius: 8px; border: 1px solid var(--navy-hover); background: var(--raised); color: var(--navy); }
body.selecting .mx-main { padding-bottom: 170px; }
@media (max-width: 700px) {
  .mx-selcount { min-width: 0; }
  .mx-seldates label { flex: 1 1 140px; }
  .mx-seldates input { flex: 1; min-width: 0; }
}
/* While selecting, notices show at the top so they don't cover the bar. */
body.selecting .mx-toast { bottom: auto; top: calc(76px + env(safe-area-inset-top)); }
@media (max-width: 700px) {
  .mx-selcount { flex: 1; }
  .mx-sel-letters { order: 3; flex-basis: 100%; }
  .mx-sel-letters button { flex: 1; }
  .mx-status { max-width: 40vw; }
}

/* Done checkbox on each card (Kevin, November 2, 2026), like Serena's round checkboxes. */
.mx-card { padding-left: 50px; }
.mx-done { position: absolute; left: 4px; top: 50%; width: 44px; height: 44px; margin-top: -22px; padding: 0; border: 0; background: none;
  display: grid; place-items: center; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.mx-done svg { width: 26px; height: 26px; overflow: visible; }
.mx-done circle { fill: var(--raised); stroke: var(--navy); stroke-width: 1.8; }
.mx-done path { fill: none; stroke: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mx-done:hover circle { stroke: var(--rose); stroke-width: 2.4; }
.mx-done.on circle { fill: var(--navy); }
.mx-done.on path { stroke: var(--on-navy); }
.mx-card.done .t { text-decoration: line-through; color: var(--slate); }
.mx-card.done .d > span { opacity: 0.6; }
body.selecting .mx-done { display: none; }
.mx-ghost .mx-done { pointer-events: none; }
.mx-selbar .mx-selcomplete { margin-left: auto; }
.mx-selbar .mx-selcomplete + .mx-seldone { margin-left: 0; }
/* The title, editable in the card's menu (November 2, 2026). 16px so Safari doesn't zoom. */
.mx-title-input { width: 100%; font: inherit; font-size: 16px; font-weight: 600; color: var(--navy); height: 42px; padding: 0 10px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--raised); }
.mx-title-input:focus { outline: 2px solid var(--rose); outline-offset: 0; border-color: var(--rose); }

/* Close in a frame, back on its own (Kevin, November 2, 2026). */
.mx-back { width: auto; padding: 0 10px 0 4px; gap: 2px; display: flex; align-items: center; color: var(--on-navy); text-decoration: none; font-size: 0.95rem; }
.mx-back .mx-chev { width: 20px; height: 20px; }
.mx-back svg:not(.mx-chev) { width: 30px; height: 30px; }
.mx-close { display: none; }
body.framed .mx-close { display: grid; }
body.framed .mx-back { display: none; }
body.framed .mx-bar { padding-top: 10px; }

/* Serena's calendar (copied from styles.css, datepick.js). */
.dp-pop { position: fixed; z-index: 60; width: 324px; box-sizing: border-box; padding: 12px; background: var(--raised);
  border: 1px solid #DDE3EE; border-radius: 12px; box-shadow: 0 8px 24px rgba(14, 23, 47, 0.16); color: var(--navy); font-family: var(--font-ui); }
.dp-pop[hidden] { display: none; }
.dp-pop.dp-sheet { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); top: auto; width: auto; }
.dp-quick { display: grid; grid-template-columns: repeat(4, auto); gap: 5px; margin-bottom: 10px; }
.dp-chip { font: inherit; font-size: 14px; color: var(--navy); background: var(--blush); border: 1px solid var(--rose); border-radius: 16px; padding: 5px 4px; white-space: nowrap; cursor: pointer; }
.dp-chip:hover { background: #EFE3E0; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.dp-month { display: flex; align-items: center; gap: 2px; }
.dp-title { font-family: var(--font-heading); font-size: 19px; min-width: 112px; text-align: center; }
.dp-nav { font: inherit; font-size: 22px; line-height: 1; width: 40px; height: 40px; border: none; background: none; border-radius: 50%; color: var(--navy); cursor: pointer; }
.dp-nav:hover { background: var(--blush); }
.dp-clear { font: inherit; font-size: 14px; color: var(--navy); background: var(--raised); border: 1px solid var(--rose); border-radius: 16px; padding: 5px 14px; cursor: pointer; }
.dp-clear:hover:not(:disabled) { background: var(--blush); }
.dp-clear:disabled { color: #A9B3C4; border-color: #DDE3EE; cursor: default; }
.dp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.dp-dow span { font-size: 12px; color: var(--slate); height: 22px; line-height: 22px; }
.dp-day { position: relative; font: inherit; font-size: 15px; height: 38px; width: 100%; padding: 0; border: none; background: none;
  border-radius: 50%; color: var(--navy); cursor: pointer; }
.dp-sheet .dp-day { height: 44px; }
.dp-day:hover { background: var(--blush); }
.dp-day.today { box-shadow: inset 0 0 0 1.5px var(--rose); }
.dp-day.picked { background: var(--rose); color: var(--navy); font-weight: 600; }

/* Dates and tags in the card's menu. */
.mx-menu { width: min(320px, calc(100vw - 16px)); max-height: calc(100vh - 16px); overflow-y: auto; }
.mx-date { margin-top: 8px; }
.mx-menu .mx-datebtn { height: 40px; padding: 0 12px; font-weight: 400; font-size: 0.95rem; min-width: 170px; justify-content: end; display: flex; align-items: center; }
.mx-tagpart { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.mx-taghead { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 0.9rem; color: var(--slate); }
.mx-tagchips { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; min-width: 0; }
.mx-notags { color: #8792A6; }
.mx-menu .mx-tagedit { height: 34px; padding: 0 10px; font-size: 0.85rem; font-weight: 400; border-color: var(--rose); background: var(--blush); }
.mx-taglist { margin-top: 6px; max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.mx-taglist[hidden] { display: none; }
.mx-menu .mx-tagrow { width: 100%; height: 38px; display: flex; align-items: center; gap: 10px; justify-content: start; padding: 0 8px;
  border: 0; border-radius: 8px; font-weight: 400; text-align: left; }
.mx-menu .mx-tagrow:hover { background: var(--blush); }
.mx-tagrow .box { width: 18px; height: 18px; border: 1.6px solid var(--navy); border-radius: 4px; flex: none; position: relative; }
.mx-tagrow.on .box { background: var(--navy); }
.mx-tagrow.on .box::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--on-navy); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mx-tagadd { display: flex; gap: 6px; padding: 6px 4px 2px; }
.mx-tagadd input { flex: 1; min-width: 0; font: inherit; font-size: 16px; height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; }
.mx-menu .mx-tagadd button { height: 36px; padding: 0 12px; }
.tg { display: inline-block; padding: 0 6px; border: 1px solid #C3CBD8; border-radius: 8px; font-size: 0.72rem; line-height: 1.35; color: var(--slate); background: rgba(255, 255, 255, 0.7); font-weight: 400; }
.tg.mit { background: #A04A3C; border-color: #A04A3C; color: #FFF; font-weight: 600; }
.mx-card .d .tg { margin-left: 4px; }

/* Selecting: the date buttons open Serena's calendar. */
.mx-seldates button { min-width: 120px; }

/* Compact rows (Kevin, November 2, 2026, like the bot's PDF matrix): title and details on
   one line where they fit; the quadrant gives the colour, rows sit on it without boxes. */
.mx-card { padding: 5px 8px 5px 36px; min-height: 34px; border: 1px solid transparent; border-radius: 7px; background: transparent; box-shadow: none; }
.mx-card:hover { border-color: transparent; background: rgba(255, 255, 255, 0.75); }
.mx-card .t { font-size: 0.95rem; line-height: 1.3; }
.mx-card .d { display: inline; margin: 0 0 0 8px; font-size: 0.78rem; }
.mx-card .d > span { white-space: nowrap; }
.mx-card.waiting { border: 1.5px dashed var(--rose); background: rgba(255, 255, 255, 0.8); }
.mx-card.waiting .d::after { content: " · updating in Things…"; }
.mx-card.sel { background: #F7F9FC; }
.mx-card.lifted { background: var(--raised); border-color: var(--line); }
.mx-done { left: 0; width: 36px; height: 36px; margin-top: -18px; }
.mx-done svg { width: 20px; height: 20px; }
body.selecting .mx-card { padding-left: 36px; }
.mx-check { left: 8px; width: 20px; height: 20px; margin-top: -10px; }
.mx-card.sel .mx-check::after { left: 5.5px; top: 2px; width: 5px; height: 9px; border-width: 0 2.2px 2.2px 0; }
.mx-cards { gap: 1px; }
.mx-cards.two { display: block; columns: 2; column-gap: 18px; column-rule: 1px solid rgba(14, 23, 47, 0.08); }
.mx-cards.two .mx-card { break-inside: avoid; margin-bottom: 1px; }
.mx-loose .mx-card { flex: 0 1 auto; }
.mx-loose { border-style: dashed; }

/* Quadrant colours, as in the bot's PDF. */
.mx-q h2 { font-size: 1.15rem; margin-bottom: 6px; }
.mx-q.q-a { background: #FBF1F0; border-color: #EBD3CE; }
.mx-q.q-b { background: #F0F4FA; border-color: #D3DEEC; }
.mx-q.q-c { background: #FAF5EC; border-color: #E8DCC4; }
.mx-q.q-d { background: #F2F3F5; border-color: #DADDE3; }

/* One screen on an iPad or computer: the quadrants share the window; a long list goes to
   two columns (matrix.js), then scrolls inside its quadrant. */
@media (min-width: 701px) and (min-height: 680px) {
  html, body { height: 100%; }
  body { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
  .mx-bar { position: relative; flex: none; padding-top: calc(8px + env(safe-area-inset-top)); padding-bottom: 8px; }
  .mx-main { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-top: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .mx-loose { flex: none; max-height: 20vh; overflow-y: auto; margin-bottom: 10px; padding: 8px 12px; }
  .mx-grid { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .mx-q { min-height: 0; padding: 10px 12px; }
  .mx-q .mx-cards { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  body.selecting .mx-main { padding-bottom: 150px; }
}
.mx-q.over, .mx-loose.over { background: var(--blush); border-color: var(--rose); }
.mx-cards > .mx-card { flex: none; }
.mx-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.mx-q { min-width: 0; }
@media (max-width: 700px) { .mx-grid { grid-template-columns: minmax(0, 1fr); } }
/* Denser on one screen, so more of a long list fits (Kevin's PDF matrix is the model). */
@media (min-width: 701px) and (min-height: 680px) {
  .mx-card { padding: 3px 6px 3px 32px; min-height: 30px; }
  .mx-card .t { font-size: 0.9rem; line-height: 1.25; }
  .mx-card .d { font-size: 0.74rem; margin-left: 6px; }
  .mx-done { top: 0; margin-top: 0; width: 32px; height: 30px; }
  .mx-done svg { width: 18px; height: 18px; }
  .mx-check { top: 6px; margin-top: 0; left: 7px; width: 18px; height: 18px; }
  .mx-card.sel .mx-check::after { left: 5px; top: 1.5px; }
  body.selecting .mx-card { padding-left: 32px; }
  .mx-q h2 { font-size: 1.05rem; margin-bottom: 4px; }
  .mx-q h2 b { width: 24px; height: 24px; font-size: 0.85rem; }
}
.mx-card .d > span:not(.tg) { white-space: normal; }
.mx-loose .mx-card { max-width: 100%; }
@media (max-width: 700px) { .mx-back span { display: none; } .mx-bar { gap: 8px; } }

/* Below the one-screen size the quadrants grow and the page scrolls (nothing hidden); on
   one screen, a list with more below gets a fade and a "↓ 12 more" tag (matrix.js). */
.mx-q { position: relative; }
.mx-more { display: none; position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 2;
  font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--on-navy); background: var(--navy); border: 0; border-radius: 14px;
  padding: 4px 12px; box-shadow: 0 2px 8px rgba(14, 23, 47, 0.25); cursor: pointer; }
.mx-q.has-more .mx-more { display: block; }
.mx-q.has-more .mx-cards { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent); }
.mx-cards.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 0; align-items: start; align-content: start; columns: auto; }
.mx-col { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mx-col > .mx-card { flex: none; margin-bottom: 0; }
.mx-col:first-child { padding-right: 9px; }
.mx-col + .mx-col { padding-left: 9px; border-left: 1px solid rgba(14, 23, 47, 0.08); align-self: stretch; }

/* MIT to-dos stand out in every list (Kevin, November 3, 2026): a red bar and a light wash. */
.mx-card.mit { background: rgba(160, 74, 60, 0.09); box-shadow: inset 3px 0 0 #A04A3C; }
.mx-card.mit > .t { font-weight: 600; }
.mx-card.mit > .t .d { font-weight: 400; }
.mx-card.mit.sel { background: #F7F9FC; }
/* Tag filter (Kevin, November 3, 2026): the button names the tag while it's on; not on phones. */
.mx-btn.mx-filter { width: auto; min-width: 44px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 0.9rem; font-weight: 600; }
.mx-btn.mx-filter span:empty { display: none; }
.mx-btn.mx-filter span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-filterlist { max-height: min(360px, 60vh); margin-top: 0; }
.mx-menu .mx-radio .box { border-radius: 50%; }
.mx-menu .mx-radio .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-menu .mx-radio .n { color: var(--slate); font-size: 0.85rem; }
@media (max-width: 700px) { .mx-btn.mx-filter { display: none; } }
/* Serena Matrix (November 4, 2026): the + button is a link to Things' new to-do. */
a.mx-btn { text-decoration: none; }
@media (max-width: 700px) {
  .mx-title span { display: none; }
  .mx-title { font-size: 1.35rem; white-space: nowrap; margin-right: auto; }
  /* The status takes its own small line under the buttons, so nothing is squeezed. */
  .mx-bar { flex-wrap: wrap; row-gap: 2px; }
  .mx-status { order: 10; flex-basis: 100%; margin-left: 0; text-align: left; font-size: 0.8rem; }
  .mx-status:empty { display: none; }
}
