/* Indulgence HQ. World: the baggage routing tag, in her logo's teal and warm charcoal.
   Every card leads with a stub that says when the traveller leaves; urgency is always a
   word as well as a colour. Barlow Condensed caps echo her wordmark; Barlow does the work. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4; }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("fonts/barlow-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("fonts/barlow-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4; }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url("fonts/barlow-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url("fonts/barlow-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4; }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4; }

:root {
  --teal: #03989E;        /* her logo */
  --teal-ink: #036F73;    /* teal text on white, 5.5:1 */
  --teal-wash: #E3F2F2;
  --teal-fill: #037F84;   /* teal behind white text: 4.8:1 (logo teal is kept for the mark and accents) */
  --char: #524C4B;        /* her wordmark */
  --char-deep: #3A3534;
  --ink: #26211F;
  --mid: #635C5A;         /* secondary text, 6:1 on white */
  --line: #D9D4D2;
  --line-strong: #A9A2A0;
  --ground: #F2F5F5;      /* cool pale ground: the tags are the white things */
  --paper: #FFFFFF;
  --red: #C4361F;         /* urgent, 5.2:1 with white */
  --red-wash: #FBEAE6;
  --focus: #03989E;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --r: 6px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 15px; line-height: 1.45; color: var(--ink); background: var(--ground);
  font-variant-numeric: tabular-nums; accent-color: var(--teal); }
::selection { background: #BFE5E6; color: var(--ink); }
a { color: var(--teal-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--char-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1 { margin: 0; font-family: var(--cond); font-weight: 700; font-size: 34px; line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; color: var(--char-deep); text-wrap: balance; }
h2 { margin: 0; font-family: var(--cond); font-weight: 700; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; color: var(--char); }
p { margin: 0; }
.mut { color: var(--mid); font-size: 14px; }
.sr { position: absolute; left: -9999px; }

/* Shell: charcoal top bar with her mark */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
header.top { background: var(--char); color: #fff; display: flex; align-items: stretch; gap: 4px; padding: 0 20px; min-height: 60px; position: sticky; top: 0; z-index: 5; }
header.top .brand { display: flex; align-items: center; gap: 10px; margin-right: 18px; color: #fff; text-decoration: none; font-family: var(--cond); font-weight: 700; font-size: 20px; letter-spacing: .14em; white-space: nowrap; }
header.top .brand img { width: 34px; height: auto; background: #fff; border-radius: 50%; padding: 5px; }
header.top .brand b { color: #7FD3D6; font-weight: 700; }
nav.sections { display: flex; align-items: stretch; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
nav.sections::-webkit-scrollbar { display: none; }
.nv { display: flex; align-items: center; gap: 6px; padding: 0 12px; color: #EDE9E8; text-decoration: none; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; border-top: 3px solid transparent; }
.nv:hover { color: #fff; background: var(--char-deep); }
.nv.on { color: #fff; border-bottom-color: #7FD3D6; }
.nv .n { font-family: var(--cond); font-weight: 700; font-size: 14px; background: rgba(255,255,255,.14); border-radius: 10px; padding: 0 7px; line-height: 20px; }
.nv .n.hot { background: var(--red); }
.nv:focus-visible { outline-color: #7FD3D6; outline-offset: -3px; }
header.top .me { display: flex; align-items: center; gap: 10px; color: #EDE9E8; font-size: 14px; white-space: nowrap; margin-left: 12px; }
header.top .me a { color: #fff; }
header.top .me button { height: 32px; min-height: 32px; padding: 0 10px; background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
header.top .me button:hover { background: var(--char-deep); }
main.page { width: 100%; max-width: 1480px; margin: 0 auto; padding: 24px 28px 40px; display: flex; flex-direction: column; gap: 20px; }
.lead { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: flex-end; }
.lead p { margin-top: 6px; }
@media (max-width: 760px) {
  header.top { flex-wrap: wrap; padding: 0 14px; gap: 0; }
  header.top .brand { min-height: 52px; }
  header.top .me { margin-left: auto; }
  header.top .me .who { display: none; }
  nav.sections { order: 3; flex-basis: 100%; min-height: 46px; margin: 0 -14px; padding: 0 6px; background: var(--char-deep); }
  main.page { padding: 16px 16px 32px; }
  h1 { font-size: 28px; }
}

/* Page header with its routing tag (card page) */
.headtag { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: stretch; }
.headtag .stub { border-radius: 8px; background: var(--teal-fill); }
.headtag .stub::after { display: none; }
.headtag.t-urgent .stub { background: var(--red); }
.headtag.t-done .stub { background: var(--char); }
.headtag > div:last-child { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
h3.subj { margin: 0; font-size: 16.5px; font-weight: 700; line-height: 1.35; }
h3.subj .mut { font-weight: 400; font-size: 14.5px; }

/* Panels and rows */
.box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.box.strong { border: 2px solid var(--char); }
.box.alert { border: 2px solid var(--red); background: var(--red-wash); }
.box.alert h2 { color: var(--red); }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: baseline; flex-wrap: wrap; }
.row:last-child { border-bottom: 0; }
.grid { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; } .grid > * { flex: 1 1 340px; }
.off { background: var(--teal-wash); border: 1px solid #A8D8DA; border-radius: var(--r); padding: 10px 12px; font-size: 14px; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; } dl.kv dt { color: var(--mid); } dl.kv dd { margin: 0; }
.messages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.messages li { background: var(--teal-wash); border: 1px solid #A8D8DA; border-radius: var(--r); padding: 10px 12px; }
.messages li.warning, .messages li.error { background: var(--red-wash); border-color: #E7B2A7; font-weight: 600; }

/* Controls */
.btn, button { min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); background: var(--paper); border-radius: var(--r); font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: background-color .15s ease-out, border-color .15s ease-out; }
.btn:hover, button:hover { border-color: var(--char); background: #F7F5F5; color: var(--ink); }
.btn.pri, button.pri { border-color: var(--teal-fill); background: var(--teal-fill); color: #fff; }
.btn.pri:hover, button.pri:hover { background: #035F63; border-color: #035F63; color: #fff; }
.btn.on { border-color: var(--char); background: var(--char); color: #fff; }
button[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }
input[type=text], input[type=url], input[type=email], input[type=number], input[type=date], input[type=search], input[type=password], select, textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--paper); color: var(--ink); min-height: 40px; caret-color: var(--teal); }
input:hover, select:hover, textarea:hover { border-color: var(--char); }
/* One control height everywhere; selects drawn in the HQ's own style, not the browser's. */
input[type=text], input[type=url], input[type=email], input[type=number], input[type=date], input[type=search], input[type=password], select, .btn, button:not(.linkish) { height: 40px; min-height: 40px; }
input[type=date] { padding-top: 0; padding-bottom: 0; line-height: 38px; }
input[type=date]::-webkit-datetime-edit { padding: 0; }
input[type=date]::-webkit-calendar-picker-indicator { opacity: .7; cursor: pointer; }
select { -webkit-appearance: none; appearance: none; padding: 0 34px 0 10px; line-height: 38px; font-weight: 600; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23524C4B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px; }
select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--teal-ink); }
select:disabled, input:disabled { background-color: #EEF1F1; color: var(--mid); cursor: not-allowed; }
select::-ms-expand { display: none; }
textarea { width: 100%; min-height: 200px; line-height: 1.5; }
::placeholder { color: #6F6866; }
.tag { font-family: var(--cond); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--char); }
.tag.hot { color: var(--red); }

/* The board: columns of routing tags */
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 1180px) { .board { grid-template-columns: repeat(2, minmax(240px, 1fr)); } }
@media (max-width: 640px) { .board { grid-template-columns: 1fr; } }
.col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.col > h2 { display: flex; justify-content: space-between; align-items: baseline; padding: 0 2px 8px; border-bottom: 2px solid var(--char); font-size: 19px; }
.col > h2 .n { color: var(--teal-ink); }
.col .empty { color: var(--mid); font-size: 14px; padding: 14px 4px; }
.card { display: grid; grid-template-columns: 84px minmax(0, 1fr); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: border-color .15s ease-out, box-shadow .15s ease-out; }
.card:hover { border-color: var(--line-strong); box-shadow: 0 2px 8px rgba(38, 33, 31, .08); }
.card:focus-within { border-color: var(--teal); }
.stub { position: relative; background: var(--teal-fill); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px 10px 10px 6px; gap: 1px; }
.stub::after { content: ""; position: absolute; right: 10px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--ground); box-shadow: inset 0 1px 2px rgba(0,0,0,.25); } /* the tag's punched eyelet */
.stub .w { font-family: var(--cond); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.stub .b { font-family: var(--cond); font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: .03em; text-transform: uppercase; }
.stub .b.long { font-size: 23px; letter-spacing: .02em; }
.stub .b.longer { font-size: 20px; }
.stub .s { font-family: var(--cond); font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.card.t-urgent .stub { background: var(--red); }
.card.t-done .stub { background: var(--char); }
.card.t-done { opacity: .78; }
.card .body { border-left: 2px dashed var(--line-strong); padding: 10px 12px 11px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card a.title { font-weight: 700; font-size: 15.5px; line-height: 1.3; color: var(--ink); text-decoration: none; }
.card a.title:hover { text-decoration: underline; }
.card a.title::before { content: ""; position: absolute; inset: 0; } /* the whole tag opens the card */
.card { position: relative; }
.card .meta { color: var(--mid); font-size: 13.5px; }
.card .next { font-size: 14px; }
.card .flags { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--mid); }
.card .flags .hot { color: var(--red); font-weight: 700; }
.card .flags .new { color: var(--teal-ink); font-weight: 700; }
.urgent-card { border: 2px solid var(--red); }

/* Dragging tags between columns (desktop only; board.js) */
.board.draggable { align-items: stretch; }
.board.draggable .col { min-height: calc(100vh - 260px); padding-bottom: 12px; }
.board.draggable .card { cursor: grab; }
.board.draggable .card:active { cursor: grabbing; }
.card.dragging { opacity: .35; }
.col { border-radius: 8px; transition: background-color .15s ease-out, box-shadow .15s ease-out; }
.col.over { background: var(--teal-wash); box-shadow: 0 0 0 2px var(--teal) inset; }
.card.saving { opacity: .6; }
.card.moved { box-shadow: 0 0 0 2px var(--teal); }
.card.failed { box-shadow: 0 0 0 2px var(--red); }
.ask { background: var(--paper); border: 2px solid var(--char); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.ask button.quiet { border-color: transparent; color: var(--mid); }

/* Counts as tags (morning summary) */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.start { display: flex; flex-direction: column; gap: 12px; }
.start > h2 { font-size: 19px; padding-bottom: 8px; border-bottom: 2px solid var(--char); }
.startlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.controls fieldset { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); padding: 10px 12px; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.controls label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.controls label.overdue input { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.controls label.overdue span { color: var(--red); font-weight: 700; }
@media (max-width: 520px) { .controls label { width: 100%; justify-content: space-between; } .controls select, .controls input { flex: 1; max-width: 220px; } }
.count { display: grid; grid-template-columns: 84px minmax(0, 1fr); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.count .stub .b { font-size: 34px; }
.count.c-hot .stub { background: var(--red); }
.count.c-char .stub { background: var(--char); }
.count.c-zero .stub { background: var(--teal-wash); color: var(--teal-ink); }
.count.c-zero .body strong { color: var(--mid); font-weight: 600; }
.count .body { border-left: 2px dashed var(--line-strong); padding: 10px 12px 10px 14px; display: flex; flex-direction: column; gap: 2px; justify-content: center; }
.count .body strong { font-size: 16px; }
.stat { font-family: var(--cond); font-size: 34px; font-weight: 700; line-height: 1; }

@media (max-width: 520px) {
  .stats { gap: 8px; }
  .count { grid-template-columns: 40px minmax(0, 1fr); }
  .count .stub { padding: 8px 2px; }
  .count .stub::after { display: none; }
  .count .stub .b { font-size: 22px; }
  .count .body { padding: 8px 8px 8px 10px; }
  .count .body .mut { display: none; }
  .count .body strong { font-size: 13.5px; line-height: 1.2; }
}

/* Tables */
table { border-collapse: collapse; width: 100%; background: var(--paper); }
th { text-align: left; padding: 9px 10px; border-bottom: 2px solid var(--char); font-family: var(--cond); font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--char); }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:hover td { background: #F7FAFA; }
.scroll { overflow-x: auto; }
.bar { display: grid; grid-template-columns: 170px minmax(0, 1fr) 76px; gap: 10px; align-items: center; }
.track { height: 14px; background: var(--teal-wash); border-radius: 3px; } .fill { height: 14px; background: var(--teal); border-radius: 3px; }
.val { text-align: right; font-weight: 700; }

/* Sign-in */
.signin { max-width: 400px; margin: 8vh auto 0; align-items: stretch; }
.signin img { width: 180px; align-self: center; margin-bottom: 6px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Sign-in steps: the code page, setup, backup codes */
.signin.wide { max-width: 520px; }
.signin-h { text-align: center; font-family: var(--cond); font-size: 26px; margin: 0; }
.signin-p { margin: 0; color: var(--mid); }
.signin-p strong { color: var(--ink); }
.signin-form { display: flex; flex-direction: column; gap: 10px; }
.signin-err { margin: 0; padding: 8px 10px; background: var(--red-wash); border: 1px solid #E7B2A7; border-radius: var(--r); font-weight: 600; }
.code-in { width: 100%; font-size: 22px; letter-spacing: .2em; text-align: center; }
.signin-help summary { cursor: pointer; color: var(--teal-ink); font-weight: 600; }
.signin-help p { margin: 6px 0 0; color: var(--mid); }
.signin-out { align-self: center; }
.signin-out button { border: 0; background: none; color: var(--mid); min-height: 32px; }
.signin-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.qr { margin: 8px 0 4px; }
.qr svg { display: block; width: 200px; height: 200px; }
.key { font-size: 15px; letter-spacing: .05em; word-break: break-word; }
.backup-codes { list-style: none; margin: 0; padding: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; border: 1px dashed var(--line-strong); border-radius: var(--r); }
.backup-codes code { font-size: 16px; letter-spacing: .08em; }
.signin.wide > .btn { align-self: flex-start; }

/* Notion preview on a card */
.preview-field { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.preview-field p { margin: 0; overflow-wrap: anywhere; }
.preview-field .tag { align-self: flex-start; }
.verdict { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.verdict input[type=text] { flex: 1 1 200px; min-width: 0; }

/* Mid-size screens (laptops up to 1500px): the section tabs get their own row, so none is hidden. */
@media (min-width: 761px) and (max-width: 1500px) {
  header.top { flex-wrap: wrap; }
  nav.sections { order: 3; flex-basis: 100%; min-height: 44px; margin: 0 -20px; padding: 0 14px; background: var(--char-deep); }
  header.top .me { margin-left: auto; }
}

/* Set aside on phone: the buttons go under the sender, full width */
@media (max-width: 760px) {
  .aside-table td .actions { flex-direction: column; align-items: stretch; }
  .aside-table td .actions button { white-space: normal; }
}

/* To check: one question, labelled answers */
.why { margin: 0; padding: 8px 12px; background: var(--red-wash); border-left: 3px solid var(--red); border-radius: var(--r); }
h4.question { margin: 4px 0 0; font-size: 15px; }
.decide { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.decide .opt { display: grid; grid-template-columns: 220px 1fr; gap: 6px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.decide .lbl { font-weight: 700; padding-top: 9px; }
.decide .lbl small { display: block; font-weight: 400; color: var(--mid); font-size: 13.5px; margin-top: 2px; }
.decide .ctl { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.decide select.grow { flex: 1 1 260px; min-width: 0; max-width: 520px; }
label.inline { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 760px) { .decide .opt { grid-template-columns: 1fr; } .decide .lbl { padding-top: 0; } }
button.linkish { background: none; border: 0; padding: 0 4px; color: var(--teal-ink); text-decoration: underline; cursor: pointer; font: inherit; }
.time-entry { align-items: center; }
.sticky-head { max-height: 72vh; overflow: auto; }
.sticky-head thead th { position: sticky; top: 0; background: var(--paper); z-index: 1; }
.change { border-left: 4px solid var(--teal); padding: 4px 0 4px 12px; display: flex; flex-direction: column; gap: 6px; }
.change.hit { border-left-color: var(--red); }
.change .warn { margin: 0; padding: 8px 10px; background: var(--red-wash); color: var(--red); font-weight: 700; border-radius: 6px; }
.change td.now { font-weight: 700; color: var(--teal-ink); }
.filters fieldset.trips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.filters fieldset.trips legend { font-weight: 700; margin-bottom: 4px; }
/* Information and cautions (Nov 24: "make them pop out a bit more") */
p.note { margin: 0; padding: 9px 12px 9px 38px; position: relative; background: var(--teal-wash); color: var(--ink);
  border-left: 4px solid var(--teal); border-radius: 6px; font-size: 14.5px; }
p.note::before { content: "i"; position: absolute; left: 12px; top: 9px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal-fill); color: #fff; font: 700 12px/18px var(--body); text-align: center; font-style: italic; }
p.note.caution { background: var(--red-wash); border-left-color: var(--red); }
p.note.caution::before { content: "!"; background: var(--red); font-style: normal; }
main.page { position: relative; }
details.help { position: absolute; top: 0; right: 0; z-index: 5; }
details.help summary { list-style: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--teal);
  color: var(--teal-ink); font-weight: 800; display: grid; place-items: center; cursor: pointer; background: var(--paper); }
details.help summary::-webkit-details-marker { display: none; }
details.help > div { position: absolute; right: 0; top: 36px; width: min(340px, calc(100vw - 32px)); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
details.help > div p { margin: 6px 0 0; }
details.trash { position: relative; }
details.trash summary { list-style: none; cursor: pointer; }
details.trash summary::-webkit-details-marker { display: none; }
details.trash form { position: absolute; right: 0; top: 46px; z-index: 4; width: min(300px, 80vw); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r); padding: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
details.trash form p { margin: 0 0 8px; }
