/* Fresh market. STYLE.md is the guide to this file: read it before changing
   anything here. Every color is a token below, in two sets (light is the
   default, dark is chosen with the switch in the top bar). Nothing else in
   this file, in a template or in a script names a color. */
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  /* The deep green ground: top bar, page band, sign-in page. */
  --deep: #173d2b;
  --deep-raised: #255540;
  --deep-text: #f2f6ea;
  --deep-muted: #b9cdbd;
  --deep-line: #3d6a53;
  --deep-danger: #f6b3aa;
  /* Lime: the current page and the one main action. Only ever on deep green. */
  --lime: #c8ec6a;
  --lime-text: #173d2b;
  /* The page and what sits on it. */
  --bg: #e9eee0;
  --surface: #fbfbf5;
  --surface-2: #eef1e6;
  --field: #ffffff;
  --text: #17261d;
  --muted: #55645a;
  --line: #d9dfcf;
  --accent: #1c6e43;
  --accent-soft: #dcefdf;
  --primary: #173d2b;
  --primary-text: #f2f6ea;
  --warn: #855600;
  --warn-soft: #f8ecc9;
  --bad: #a3342a;
  --bad-soft: #f8e1dc;
  --info-soft: #e2edf0;
  /* Kinds of thing in the preference graph. */
  --kind-person: #c2703d;
  --kind-household: #8a5cc2;
  --kind-brand: #2f8f6b;
  --kind-product: #3f7fbf;
  --kind-ingredient: #a8922a;
  --kind-recipe: #bf4f7a;
  --kind-store: #5f6f7f;
  --kind-occasion: #1f8a99;
  --kind-topic: #7f7f7f;
  --radius: 18px;
  --radius-field: 12px;
  /* One height for every field and button, and for the head line of a card,
     so things beside each other sit on the same line. */
  --control: 2.5rem;
  --control-small: 1.75rem;
  --font: "Figtree", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --deep: #12241a;
  --deep-raised: #1f3a2c;
  --deep-text: #f2f6ea;
  --deep-muted: #a9bfae;
  --deep-line: #34584a;
  --deep-danger: #f6b3aa;
  --lime: #c8ec6a;
  --lime-text: #173d2b;
  --bg: #1c2a23;
  --surface: #25362d;
  --surface-2: #2f4338;
  --field: #18251e;
  --text: #eef3e6;
  --muted: #b5c4b7;
  --line: #3a5244;
  --accent: #9ee0b8;
  --accent-soft: #2f5a41;
  --primary: #c8ec6a;
  --primary-text: #173d2b;
  --warn: #f5d78a;
  --warn-soft: #5a4a1f;
  --bad: #f6b3aa;
  --bad-soft: #5e2f29;
  --info-soft: #2d3d4c;
  --kind-person: #e0915f;
  --kind-household: #b08ae0;
  --kind-brand: #5fc79b;
  --kind-product: #6fa8e0;
  --kind-ingredient: #d4bd4f;
  --kind-recipe: #e07fa3;
  --kind-store: #9aa9b8;
  --kind-occasion: #5cc4d4;
  --kind-topic: #aaaaaa;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; margin: 0 0 .75rem; }
h2 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; margin: 0 0 .6rem; }
h3 { font-size: 1rem; font-weight: 600; margin: 1rem 0 .4rem; }
p { margin: 0 0 .7rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
/* Spacing has names, so no template needs a style attribute (the content
   policy allows none). `note` is the quiet line under a form or a list.
   `gap` sets a row, field or form off from what is above it in the same card.
   `toolbar` is a line of buttons or filters above the first card. */
.note { font-size: .85rem; color: var(--muted); margin: .6rem 0 0; }
.gap { margin-top: .7rem; }
.toolbar { margin-bottom: .8rem; }
.nowrap { white-space: nowrap; }
/* Nothing here yet: says what is missing and what to do next. */
.empty { color: var(--muted); margin: 0; }

/* Top bar and band: one deep green ground that carries the page's name. */
.topbar { background: var(--deep); color: var(--deep-text); position: sticky; top: 0; z-index: 5; }
.topbar-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 1.2rem; padding: .6rem 1rem; }
.brand { font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; color: var(--deep-text); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: .15rem; align-items: center; overflow-x: auto; flex: 1; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: .35rem .7rem; line-height: 1.5; color: var(--deep-muted); white-space: nowrap; border-radius: 999px; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--deep-text); background: var(--deep-raised); text-decoration: none; }
.nav a.on { color: var(--lime-text); background: var(--lime); font-weight: 600; }
.badge { background: var(--lime); color: var(--lime-text); border-radius: 999px; font-size: .7rem; font-weight: 700; padding: .05rem .4rem; margin-left: .3rem; }
.nav a.on .badge { background: var(--deep); color: var(--deep-text); }
.who { font-size: .85rem; color: var(--deep-muted); white-space: nowrap; display: flex; align-items: center; gap: .8rem; }
.who form { display: inline; }
.who button.link { color: var(--deep-muted); }
.who button.link:hover { color: var(--deep-text); }

.band { background: var(--deep); color: var(--deep-text); }
.band-inner { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem 1.7rem; }
/* When the page opens with a card, the card rises into the band. */
.band:has(+ main > .flashes:empty + :is(.card, .grid, .week)) .band-inner { padding-bottom: 4.9rem; }
main > .flashes:empty + :is(.card, .grid, .week) { margin-top: -4.6rem; }
.head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; }
.head h1 { margin: 0; font-size: 2.5rem; line-height: 1.1; letter-spacing: -.025em; }
.band .muted { color: var(--deep-muted); }
.band a:not(.button) { color: var(--lime); }
.band button, .band .button { background: transparent; color: var(--deep-text); border-color: var(--deep-line); }
.band button:hover, .band .button:hover { background: var(--deep-raised); border-color: var(--deep-muted); }
.band button.primary, .band .button.primary { background: var(--lime); border-color: var(--lime); color: var(--lime-text); font-weight: 700; }
.band button.danger { color: var(--deep-danger); }
.band input, .band select { background: var(--deep-raised); color: var(--deep-text); border-color: var(--deep-line); }
.band label { color: var(--deep-muted); }
.band .tabs { border-color: var(--deep-line); }
.band .tabs a { background: transparent; color: var(--deep-muted); }
.band .tabs a.on { background: var(--lime); color: var(--lime-text); }
.topbar :focus-visible, .band :focus-visible { outline-color: var(--lime); }

main { max-width: 1100px; margin: 0 auto; padding: 1.4rem 1rem 4rem; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.35rem; margin-bottom: 1.1rem; }
.grid > .card { margin-bottom: 0; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
main > .grid { margin-bottom: 1.1rem; }

/* Shared lines (STYLE.md, Alignment). Cards side by side have equal columns
   and equal heights. Every card opens with a head line of one fixed height,
   so headings, and any control beside a heading, sit on one line across the
   row, and what follows starts at the same distance below it. */
.card > h2, .card-head { min-height: var(--control); margin: 0 0 .6rem; }
.card > h2, .card-head h2 { line-height: var(--control); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card-head h2 { margin: 0; }
.inline-field { display: flex; align-items: center; gap: .5rem; }
.inline-field label { margin: 0; }
.inline-field input { width: 4.5rem; }
.card > h3, .card form > h3 { margin: 1.1rem 0 .3rem; }
.card-foot { margin: .9rem 0 0; }
.card > :last-child, .card > form > :last-child { margin-bottom: 0; }
/* Cards in a row are equal heights, and the last line of each (a footer link, a note) sits at the bottom. */
.grid > .card { display: flex; flex-direction: column; }
.grid > .card > button, .grid > .card > .button { align-self: flex-start; }
.grid > .card > .card-foot { margin-top: auto; padding-top: .9rem; }
.facts { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .35rem .8rem; margin: 0 0 .2rem; }
.facts dt { color: var(--muted); font-size: .85rem; line-height: 1.5rem; }
.facts dd { margin: 0; }
table.even { table-layout: fixed; }
.picture-note { margin-top: auto; padding-top: .8rem; }

.flash { border-radius: 14px; padding: .65rem 1rem; margin-bottom: .8rem; background: var(--info-soft); }
.flash.success { background: var(--accent-soft); }
.flash.error { background: var(--bad-soft); color: var(--bad); }

/* Buttons are pills. The filled one is the action the page is for. */
button, .button { font: inherit; font-weight: 500; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: 999px; padding: 0 1rem; min-height: var(--control); display: inline-flex; align-items: center; justify-content: center;
  line-height: 1.3; white-space: nowrap; vertical-align: middle; }
button:hover, .button:hover { background: var(--accent-soft); border-color: var(--accent); text-decoration: none; }
button:disabled { cursor: default; }
button.primary, .button.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-text); font-weight: 700; }
button.primary:hover, .button.primary:hover { filter: brightness(1.12); }
button.danger { color: var(--bad); }
button.link { border: 0; background: none; padding: 0; color: var(--accent); border-radius: 4px; min-height: 0; display: inline; white-space: normal; vertical-align: baseline; }
button.link:hover { background: none; text-decoration: underline; }
button.tiny, .button.tiny { min-height: var(--control-small); padding: 0 .7rem; font-size: .85rem; }

input, select, textarea { font: inherit; color: var(--text); background: var(--field); border: 1px solid var(--line);
  border-radius: var(--radius-field); padding: .42rem .65rem; max-width: 100%; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select { height: var(--control); padding-top: 0; padding-bottom: 0; }
textarea { width: 100%; min-height: 7rem; }
textarea.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .15rem; }
/* A form row: a label above each field, on one line, and everything in the row ends on the same line. */
.row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.row label:not(.check) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .check { min-height: var(--control); margin: 0; }
.row > div { flex: 1 1 140px; }
.row > div.grow { flex: 3 1 260px; }
.row > div.fit { flex: 0 0 auto; }
.row > div.slim { flex: 1 1 4.5rem; }
.row > div.label { flex: 0 0 8rem; min-height: var(--control); display: flex; align-items: center; }
input.narrow { width: 7rem; }
.row input:not([type=checkbox]), .row select { width: 100%; }
.field { margin-bottom: .7rem; }
.field input:not([type=checkbox]), .field select { width: 100%; }
.check { display: flex; align-items: center; gap: .4rem; color: var(--text); font-size: .95rem; margin: .2rem 0; }
form.inline { display: inline; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .85rem; white-space: nowrap; padding-top: .3rem; }
th[data-sort] { cursor: pointer; user-select: none; }
th[data-sort]:hover { color: var(--text); }
th.sorted::after { content: " \25BE"; }
th.sorted.asc::after { content: " \25B4"; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
/* An ingredient table reads left to right like a line of the recipe: the box
   to tick, the amount with its unit, the ingredient, the prep. The first two
   columns are only as wide as what is in them, so nothing floats off to the
   right of an empty space. The amount keeps one width from table to table. */
table.ingredients th:first-child, table.ingredients td:first-child { width: 1%; padding-right: .3rem; }
table.ingredients th:nth-child(2), table.ingredients td.amount { width: 1%; min-width: 7.5rem; white-space: nowrap;
  padding-right: 1.6rem; font-variant-numeric: tabular-nums; }
table.ingredients th:nth-child(3), table.ingredients td:nth-child(3) { width: 45%; }
tfoot td { font-weight: 700; border-top: 2px solid var(--line); }

.tag { display: inline-block; border-radius: 999px; padding: .08rem .65rem; font-size: .8rem; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.tag.good { background: var(--accent-soft); color: var(--accent); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.match { background: var(--info-soft); color: var(--text); white-space: normal; }
.head .tag { font-size: .9rem; vertical-align: middle; letter-spacing: 0; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .main { flex: 1 1 220px; }
.list.deals li { align-items: flex-start; }
.list.deals .main { line-height: 1.7; }
.old { opacity: .6; }
.old .statement { text-decoration: line-through; }
.was { color: var(--muted); text-decoration: line-through; font-size: .85rem; }

.tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.tabs a { padding: 0 .9rem; min-height: calc(var(--control) - 2px); display: inline-flex; align-items: center; color: var(--muted); background: var(--surface); font-weight: 500; }
.tabs a.on { background: var(--primary); color: var(--primary-text); }
.tabs a:hover { text-decoration: none; }

.carousel-wrap { position: relative; }
.carousel { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .2rem .1rem 1rem; scroll-behavior: smooth; }
.slide { scroll-snap-align: start; flex: 0 0 min(88vw, 360px); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.15rem 1.35rem; display: flex; flex-direction: column; gap: .5rem; }
.slide h2 { margin: 0; }
.slide ul { margin: 0; padding-left: 1.1rem; font-size: .9rem; }
.slide .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.carousel-nav { display: flex; gap: .4rem; justify-content: flex-end; margin-bottom: .5rem; }
.macros { display: flex; flex-wrap: wrap; gap: .35rem; }
.macro { background: var(--surface-2); border-radius: 999px; padding: .2rem .7rem; font-size: .82rem; }
.macro b { font-variant-numeric: tabular-nums; }

.week { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-bottom: 1.1rem; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .7rem; min-height: 6rem; }
.day.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.day h3 { margin: 0 0 .4rem; font-size: .85rem; color: var(--muted); }
.meal { font-size: .9rem; padding: .3rem 0; border-top: 1px dashed var(--line); }
.meal:first-of-type { border-top: 0; }

.steps { margin: 0; padding: .3rem 0 0 1.3rem; max-width: 46rem; }
.steps li { margin-bottom: .5rem; }
pre.copy { background: var(--surface-2); border-radius: 12px; padding: .8rem; overflow-x: auto; font-size: .82rem; white-space: pre-wrap; margin: 0; }
details summary { cursor: pointer; color: var(--accent); font-weight: 500; margin-bottom: .5rem; }
code { background: var(--surface-2); border-radius: 6px; padding: 0 .3rem; font-size: .88em; word-break: break-all; }
.notice { border-radius: 14px; padding: .7rem 1rem; margin: 0 0 1rem; background: var(--surface-2); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }

.chat { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1rem; }
.bubble { max-width: 46rem; border-radius: var(--radius); padding: .65rem 1rem; background: var(--surface); border: 1px solid var(--line); }
.bubble.user { align-self: flex-end; background: var(--accent-soft); border-color: transparent; }
.bubble p:last-child { margin-bottom: 0; }
.bubble table { margin: .4rem 0; }
.toolcall { font-size: .8rem; color: var(--muted); }
.composer { display: flex; align-items: flex-end; gap: .5rem; position: sticky; bottom: 0; background: var(--bg); padding: .6rem 0; }
.composer textarea { min-height: 3rem; }

#graph-detail { min-height: 1.5rem; margin-top: .5rem; }
#graph { width: 100%; height: 70vh; min-height: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); touch-action: none; }
.legend { display: flex; flex-wrap: wrap; gap: .8rem; font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .3rem; vertical-align: middle; }
.dot.kind-person { background: var(--kind-person); }
.dot.kind-household { background: var(--kind-household); }
.dot.kind-brand { background: var(--kind-brand); }
.dot.kind-product { background: var(--kind-product); }
.dot.kind-ingredient { background: var(--kind-ingredient); }
.dot.kind-recipe { background: var(--kind-recipe); }
.dot.kind-store { background: var(--kind-store); }
.dot.kind-occasion { background: var(--kind-occasion); }
.dot.kind-topic { background: var(--kind-topic); }

table.status th { text-align: left; font-weight: 600; width: 14rem; vertical-align: top; padding-top: .7rem; line-height: 1.6rem; }
tbody tr:last-child th { border-bottom: 0; }
table.status td { vertical-align: top; }
table.status td:nth-child(2) { width: 6.5rem; }

/* Order status: one pill per status on the order page, a select in the orders table. */
.status-switch { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 1rem; }
.status-switch .choices { display: inline-flex; flex-wrap: wrap; gap: .35rem; }
.status-switch .choices button.on { background: var(--primary); border-color: var(--primary); color: var(--primary-text); opacity: 1; }
.status-switch .choices button.on.draft { background: var(--warn); border-color: var(--warn); color: var(--bg); }
.status-switch .choices button.on.cancelled { background: var(--bad); border-color: var(--bad); color: var(--bg); }
select.status { width: auto; height: var(--control-small); padding: 0 .5rem; font-size: .85rem; font-weight: 600; border-radius: 999px; }
select.status.draft { background: var(--warn-soft); color: var(--warn); }
select.status.placed { background: var(--accent-soft); color: var(--accent); }
select.status.cancelled { background: var(--bad-soft); color: var(--bad); }

/* Recipe pictures. Always 4:3 and cut to fill, whatever was uploaded, so a
   recipe looks the same on its page and in every list. */
.photo { margin: 0; position: relative; align-self: start; }
.photo img, .photo-empty { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--deep); }
.photo-empty, .thumb.empty { background:
  radial-gradient(circle at 50% 47%, var(--surface) 0 26%, var(--bg) 26.5% 32%, var(--deep-raised) 32.5% 35%, transparent 35.5%), var(--deep); }
.photo-empty { display: flex; align-items: flex-end; padding: .9rem 1.1rem; color: var(--deep-muted); font-size: .9rem; }
/* The pill sits on the same line as the heading of the card beside the picture. */
.photo-change { position: absolute; top: 1.15rem; right: 1.15rem; height: var(--control); display: flex; align-items: center; }
.photo-change label { margin: 0; color: var(--text); font-size: .85rem; }
.photo-change label:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.photo-edit { max-width: 26rem; }
.thumb { display: block; flex: none; width: 4.5rem; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--deep); }
.with-thumb { display: flex; align-items: center; gap: .8rem; }
.slide .thumb { width: 100%; border-radius: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Edit in place: a small button that opens a form across the full width of
   the row it belongs to. One pattern for a list row, a table row and the band
   (STYLE.md, Components). The button stays put and shows it is open. */
details.edit > summary { list-style: none; margin: 0; }
details.edit > summary::-webkit-details-marker { display: none; }
details.edit[open] > summary { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
details.edit[open] > summary { margin-bottom: .6rem; }
details.edit > form + form { margin-top: .6rem; }
.actions > details.edit[open] { flex-basis: 100%; }
.list li:has(details.edit[open]) > .actions { flex-basis: 100%; }
/* In a table the form is the next row, shown while the button is open. */
tr.edit-row { display: none; }
tr:has(details.edit[open]) + tr.edit-row { display: table-row; }
tr:has(details.edit[open]) > td { border-bottom-color: transparent; }
tr.edit-row > td { background: var(--surface-2); border-radius: var(--radius-field); padding: .8rem; }
tr.edit-row form + form { margin-top: .6rem; }
td details.edit[open] > summary { margin-bottom: 0; }
/* In the band. */
.band details.edit > summary { color: var(--deep-text); }
.band details.edit[open] > summary { background: var(--deep-raised); border-color: var(--deep-muted); }
.band details.edit[open] { flex-basis: 100%; order: 9; }
.band details.edit[open] > form { max-width: 34rem; }
.head:has(details.edit[open]) .actions { flex-basis: 100%; }

/* Asking before something is taken away: one dialog for every destructive
   button (data-confirm), and the same card in the assistant's chat. */
dialog.confirm { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text);
  padding: 1.15rem 1.35rem; width: min(26rem, calc(100vw - 2rem)); }
dialog.confirm::backdrop { background: var(--deep); opacity: .6; }
dialog.confirm p { margin: 0 0 1rem; }
dialog.confirm .actions { justify-content: flex-end; }
.bubble.ask { border-color: var(--warn); }
.bubble.ask ul { margin: .3rem 0 .8rem; padding-left: 1.2rem; }
.bubble.ask .actions { margin-top: .2rem; }

/* Sign-in and the other pages with no top bar: one cream card on the deep green. */
body.signed-out { background: var(--deep); }
.login { max-width: 400px; margin: 12vh auto 0; }
body.signed-out main > .flashes + .login { margin-top: 12vh; }
.login h1 { font-size: 2.2rem; letter-spacing: -.025em; }
.login .button, .login button { width: 100%; text-align: center; margin-top: .5rem; }
.login details { margin-top: 1rem; }

@media (max-width: 640px) {
  .who .name { display: none; }
  .head h1 { font-size: 1.9rem; }
  .band-inner { padding-top: 1.1rem; }
  table.status th { width: auto; }
  /* A table scrolls sideways on a phone. Its edit form stays in view. */
  tr.edit-row form { position: sticky; left: .8rem; max-width: calc(100vw - 6.5rem); }
}
