:root {
  --brand: #e8461e; --brand-dark: #c23812; --teal: #1f5a5a; --teal-soft: #e3eeee;
  --bg: #f5f4f1; --card: #fff; --ink: #1e2422; --muted: #6b7471; --line: #e4e2dd;
  --ok: #1d7a46; --ok-bg: #e2f3e8; --warn: #9a6200; --warn-bg: #fdf0d5; --bad: #b3261e; --bad-bg: #fbe4e1; --info-bg: #e5eef8;
  --r: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--teal); }
main { max-width: 640px; margin: 0 auto; padding: 12px 16px 32px; }
main.wide { max-width: 1400px; }
h2 { font-size: 1.05rem; margin: 22px 2px 8px; color: var(--teal); }
h3 { font-size: .95rem; margin: 18px 2px 6px; color: var(--teal); }
small { display: block; color: var(--muted); font-size: .82rem; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; }
.bad-text { color: var(--bad); font-weight: 600; }
.row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 12px; background: var(--teal); color: #fff; }
.top .brand img { height: 34px; width: 44px; object-fit: contain; background: #fff; border-radius: 8px; padding: 2px; display: block; }
.top .back { color: #fff; text-decoration: none; font-size: 2rem; line-height: 1; width: 44px; height: 44px; display: grid; place-items: center; margin-left: -8px; }
.top-title { flex: 1; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu summary { list-style: none; cursor: pointer; font-size: 1.4rem; width: 44px; height: 44px; display: grid; place-items: center; }
.menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 8px; top: 52px; background: #fff; color: var(--ink); border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.18); min-width: 220px; padding: 6px; }
.menu-pop a, .menu-pop button { display: block; width: 100%; text-align: left; padding: 12px; border: 0; background: none; font: inherit; color: var(--ink); text-decoration: none; border-radius: 8px; }
.menu-pop a:active, .menu-pop button:active { background: var(--bg); }
.menu-who { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-weight: 600; }

/* building blocks */
.card { display: block; background: var(--card); border-radius: var(--r); padding: 14px; margin: 10px 0; box-shadow: 0 1px 2px rgba(0,0,0,.05); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.card.list { padding: 0; overflow: hidden; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; min-height: 56px; }
.list-row:first-child { border-top: 0; }
.list-row .right, .list-row .qty { text-align: right; flex-shrink: 0; }
.qty { font-weight: 700; font-size: 1.05rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--brand); color: #fff; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.btn:active { background: var(--brand-dark); }
.btn.ghost { background: #fff; color: var(--teal); border: 1.5px solid var(--teal); }
.btn.big { width: 100%; min-height: 54px; font-size: 1.05rem; }
.btn[disabled] { opacity: .45; }
.small-btn { min-height: 40px; padding: 0 14px; font-size: .92rem; }
.wide-btn { width: 100%; margin-top: 14px; }
.link-btn { background: none; border: 0; color: var(--bad); font: inherit; font-size: .82rem; padding: 4px 0; }
form.inline { display: inline; }
.chip { display: inline-block; font-size: .75rem; font-weight: 650; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); } .chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); } .chip.info { background: var(--info-bg); color: #24507e; }
.chip.muted { background: #eceae5; color: var(--muted); }
.alert { padding: 12px 14px; border-radius: 12px; margin: 10px 0; }
.alert.ok { background: var(--ok-bg); color: #13502e; } .alert.bad { background: var(--bad-bg); color: #7a1a14; }
.alert.warn { background: var(--warn-bg); color: #6b4500; } .alert.info { background: var(--info-bg); color: #1d3f63; }
.empty { color: var(--muted); text-align: center; padding: 24px 8px; }
.hello { font-weight: 650; margin: 6px 2px 0; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.actions .btn { padding: 0 10px; font-size: .92rem; text-align: center; }
.actions .btn:only-child { grid-column: 1 / -1; }

/* forms */
.form label { display: block; font-size: .88rem; font-weight: 600; color: var(--muted); margin: 10px 0; }
.form input, .form select, .form textarea, .site-filter select { display: block; width: 100%; margin-top: 4px; font: inherit; font-size: 16px; color: var(--ink); padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.form label.check { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.form label.check input { width: 22px; height: 22px; margin: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two label { margin: 6px 0; }
.site-filter { margin: 10px 0; }
.tabs { display: flex; gap: 4px; background: #e9e7e2; padding: 4px; border-radius: 12px; margin: 10px 0; overflow-x: auto; }
.tabs a { flex: 1; text-align: center; padding: 10px 8px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap; font-size: .92rem; }
.tabs a.on { background: #fff; color: var(--teal); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.seg { display: flex; gap: 6px; margin: 10px 0; }
.seg a, .seg button { flex: 1; text-align: center; padding: 10px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font: inherit; font-weight: 600; font-size: .92rem; }
.seg .on { border-color: var(--teal); background: var(--teal); color: #fff; }
details.edit { display: block; padding: 0; }
details.edit summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; cursor: pointer; list-style: none; min-height: 52px; }
details.edit summary::-webkit-details-marker { display: none; }
details.edit form { padding: 0 14px 14px; }
details.extra summary { font-weight: 650; color: var(--teal); cursor: pointer; }

/* login */
body.plain { background: linear-gradient(180deg, #fff 0, var(--bg) 320px); }
body.plain .top { display: none; }
.login { text-align: center; padding-top: 18px; }
.login-logo { width: 120px; }
.login h1 { margin: 6px 0 2px; font-size: 1.5rem; color: var(--teal); }
.login form { text-align: left; }

/* cycle cards */
.card.cycle { position: relative; }
.card.cycle .btn { margin-top: 12px; width: 100%; }
.due { margin-top: 6px; }
.progress { height: 8px; background: #ecebe6; border-radius: 99px; overflow: hidden; margin: 10px 0 6px; }
.progress span { display: block; height: 100%; background: var(--ok); }
.stat-row { display: flex; gap: 10px; margin: 12px 0; }
.stat { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; }
.stat b { font-size: 1.6rem; display: block; color: var(--teal); }
.stat span { color: var(--muted); font-size: .85rem; }

/* order form */
body.with-bar main { padding-bottom: 96px; }
.order-head .small-btn { margin-top: 10px; }
.tools { position: sticky; top: 54px; z-index: 10; background: var(--bg); padding: 10px 0 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.tools input[type=search] { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; }
.sections { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; }
.sections::-webkit-scrollbar { display: none; }
.sections button { flex-shrink: 0; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 99px; padding: 7px 13px; font: inherit; font-size: .88rem; font-weight: 600; }
.sections button.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.sec h3 { scroll-margin-top: 170px; }
.item { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 12px; margin: 6px 0; }
.item.has { border-color: var(--brand); background: #fff7f4; box-shadow: inset 4px 0 0 var(--brand); }
.iname { min-width: 0; }
.iname b { font-weight: 600; display: block; }
.unit { font-weight: 600; color: var(--teal); }
.stepper { display: flex; align-items: center; flex-shrink: 0; }
.stepper button { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--teal-soft); color: var(--teal); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.stepper button.plus { background: var(--teal); color: #fff; }
.stepper input { width: 52px; height: 44px; text-align: center; font: inherit; font-size: 17px; font-weight: 700; border: 0; background: transparent; }
.item:not(.has) .stepper .minus { visibility: hidden; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
.bar .btn { flex: 1; max-width: 360px; margin-left: auto; }
.send { margin-top: 10px; }

/* chef delivery check */
.help .small-btn { margin-top: 10px; }
.sline { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.sline:first-child { border-top: 0; }
.sline.received { background: #f1faf4; } .sline.short { background: #fdf1ef; } .sline.pending { background: #fff8e8; }
.sctl { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.sctl .tick { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--ok); background: #fff; color: var(--ok); font-size: 1.2rem; font-weight: 700; }
.sline.received .tick { background: var(--ok); color: #fff; }
.sval { width: 58px; height: 44px; text-align: center; font: inherit; font-size: 17px; font-weight: 700; border: 1.5px solid var(--line); border-radius: 10px; }
.later { display: flex; flex-direction: column; align-items: center; font-size: .72rem; color: var(--muted); }
.later input { width: 22px; height: 22px; margin: 0; }
.manage { margin-top: 24px; }

/* consolidated table */
.matrix-wrap { overflow: auto; max-height: 70vh; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.matrix { border-collapse: separate; border-spacing: 0; font-size: .88rem; }
.matrix th, .matrix td { padding: 7px 8px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; white-space: nowrap; background: #fff; }
.matrix thead th { position: sticky; top: 0; z-index: 2; background: var(--teal-soft); color: var(--teal); }
.matrix .sticky { position: sticky; left: 0; z-index: 1; text-align: left; min-width: 150px; max-width: 190px; white-space: normal; }
.matrix thead .sticky { z-index: 3; }
.matrix .tot { font-weight: 700; background: #fff7f4; }
.matrix .secrow td { background: #fce9e2; font-weight: 700; color: var(--brand-dark); }
.matrix small { font-size: .72rem; }

@media (min-width: 720px) {
  .actions { grid-template-columns: repeat(4, 1fr); }
}
/* Desktop and tablet: wider pages, items in two or three columns */
@media (min-width: 900px) {
  main { max-width: 860px; }
  body.with-bar main { max-width: 1180px; }
  .sec { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .sec h3 { grid-column: 1 / -1; }
  .tools { margin: 0; padding-left: 0; padding-right: 0; }
  .bar { padding-left: max(16px, calc(50% - 574px)); padding-right: max(16px, calc(50% - 574px)); }
  .login { max-width: 440px; margin: 0 auto; padding-top: 48px; }
  .stepper button:hover { filter: brightness(1.1); }
  .btn:hover { filter: brightness(1.06); }
  a.list-row:hover, a.card.cycle:hover { background: #fbfaf8; }
}
@media (min-width: 1300px) {
  .sec { grid-template-columns: 1fr 1fr 1fr; }
}

/* v0.6: PDF downloads, common kitchen card, flats page */
.pdf-links { display: grid; gap: 8px; margin: 8px 0 4px; }
.pdf-links .btn { width: 100%; }
.pdf-btn { display: inline-flex; margin-bottom: 10px; }
.common-card { border: 1.5px solid var(--teal); background: var(--teal-soft); }
.common-card p { margin: 6px 0 0; }
.common-card .actions { margin-bottom: 0; }
details.edit form.other { border-top: 1px dashed var(--line); padding-top: 12px; }

/* v0.7: WhatsApp and sharing */
.btn.wa { background: #1fa855; color: #fff; border: 0; }
.btn.wa:active { background: #178a45; }
.card.share { border: 1.5px solid #1fa855; }
.card.share p { margin: 6px 0 0; }
.card.share .actions { margin-bottom: 0; }
.alert .actions { margin: 10px 0 0; }
.big-pin { font-size: 1.6rem; letter-spacing: .12em; }
.inline-form { display: contents; }
.inline-form .btn { width: 100%; }

/* v0.8 background: kitchen cream with Indian spice drawings (style 4a), darker help text */
:root { --bg: #fbf5ea; --line: #ecdcc8; --muted: #4f4234; }
body, body.plain { background: #fbf5ea url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22320%22%20height%3D%22320%22%20opacity%3D%220.22%22%3E%3Cg%20transform%3D%22translate(20%2020)%20rotate(-10)%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23b4583a%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%208%20C%202%2030%2020%2050%2046%2052%20C%2030%2042%2022%2026%2020%2010%22%2F%3E%3Cpath%20d%3D%22M6%208%20C%2010%202%2018%202%2020%2010%22%2F%3E%3Cpath%20d%3D%22M12%206%20C%2012%200%2016%20-2%2020%200%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(120%2026)%20rotate(0)%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23b4583a%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M24%204%20C%2010%2014%204%2030%2010%2042%20C%2016%2052%2032%2052%2038%2042%20C%2044%2030%2038%2014%2024%204%20Z%22%2F%3E%3Cpath%20d%3D%22M24%204%20C%2018%2020%2018%2036%2024%2050%20M24%204%20C%2030%2020%2030%2036%2024%2050%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(220%2020)%20rotate(15)%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23b4583a%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M26%202%20L%2031%2018%20L%2048%2018%20L%2034%2028%20L%2040%2044%20L%2026%2034%20L%2012%2044%20L%2018%2028%20L%204%2018%20L%2021%2018%20Z%22%2F%3E%3Ccircle%20cx%3D%2226%22%20cy%3D%2224%22%20r%3D%224%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(30%20130)%20rotate(0)%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23b4583a%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%224%22%20y%3D%2218%22%20width%3D%2246%22%20height%3D%228%22%20rx%3D%224%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%2228%22%20width%3D%2242%22%20height%3D%228%22%20rx%3D%224%22%2F%3E%3Cpath%20d%3D%22M10%2018%20c%20-4%204%20-4%204%200%208%20M14%2028%20c%20-4%204%20-4%204%200%208%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(140%20130)%20rotate(0)%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23b4583a%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2024%20L%2048%2024%20C%2046%2042%2034%2048%2026%2048%20C%2018%2048%206%2042%204%2024%20Z%22%2F%3E%3Cpath%20d%3D%22M18%2048%20L%2016%2054%20L%2036%2054%20L%2034%2048%22%2F%3E%3Cpath%20d%3D%22M30%2022%20L%2048%202%22%2F%3E%3Ccircle%20cx%3D%2248%22%20cy%3D%223%22%20r%3D%223%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(240%20140)%20rotate(-20)%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23b4583a%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%2040%20C%2014%2010%2040%204%2052%206%20C%2046%2022%2028%2044%202%2040%20Z%22%2F%3E%3Cpath%20d%3D%22M2%2040%20C%2020%2030%2034%2018%2050%208%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(70%20236)%20rotate(0)%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23b4583a%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2240%22%20r%3D%225%22%2F%3E%3Ccircle%20cx%3D%2224%22%20cy%3D%2244%22%20r%3D%225%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2230%22%20r%3D%225%22%2F%3E%3Ccircle%20cx%3D%2232%22%20cy%3D%2234%22%20r%3D%225%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(190%20232)%20rotate(10)%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23b4583a%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M26%202%20L%2031%2018%20L%2048%2018%20L%2034%2028%20L%2040%2044%20L%2026%2034%20L%2012%2044%20L%2018%2028%20L%204%2018%20L%2021%2018%20Z%22%2F%3E%3Ccircle%20cx%3D%2226%22%20cy%3D%2224%22%20r%3D%224%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E") repeat; background-size: 320px; }
.muted, .small { color: var(--muted); }
.order-head { background: rgba(255,252,246,.96); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; }
.hello, .login p.muted { background: rgba(255,252,246,.9); display: table; padding: 2px 8px; border-radius: 8px; }
.login p.muted { margin-left: auto; margin-right: auto; }
h2, h3, .sec h3 { background: rgba(251,245,234,.9); display: table; padding: 0 6px; border-radius: 6px; }

/* v0.8 delete with a confirm step */
details.edit details.del { margin: 0 14px 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
details.edit details.del summary { display: inline-block; min-height: 0; padding: 6px 0; color: var(--bad); font-weight: 600; font-size: .9rem; }
details.edit details.del form { padding: 0; }
details.edit details.del p { margin: 6px 0 10px; }
.btn.danger { background: var(--bad); }
.btn.danger:active { background: #8f1d17; }
.del-note { margin: 0 14px 14px; }

/* v1.0 save status that stays on screen (head chef's received quantities) */
.save-toast { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 30; padding: 10px 18px; border-radius: 99px; font-weight: 650; font-size: .95rem; background: var(--ink); color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: opacity .2s; }
.save-toast.on { opacity: 1; }
.save-toast[data-kind="ok"] { background: var(--ok); }
.save-toast[data-kind="bad"] { background: var(--bad); }
#supply.locked .sline { opacity: .75; }

/* v1.1: Topaz Annapoorna name card (logo above on phones, logo left on computers) */
.brand-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; background: rgba(255,253,249,.97); border: 1px solid var(--line); border-radius: 18px; padding: 18px 16px 16px; margin: 4px 0 12px; }
.brand-card img { width: 96px; height: auto; display: block; }
.brand-card h1 { margin: 0; font-size: 1.2rem; line-height: 1.3; font-weight: 600; color: var(--teal); background: none; display: block; padding: 0; }
.brand-card .brand-name { display: block; color: var(--brand); font-weight: 650; font-size: 1.35em; }
.brand-card .brand-sub { display: block; color: var(--teal); }
.brand-card .dash { display: none; }
.brand-card p { margin: 4px 0 0; background: none; padding: 0; display: block; }
.brand-card .tagline { font-style: italic; font-weight: 600; color: var(--teal); }
.brand-card .brand-line { color: var(--teal); }
.brand-card.compact { flex-direction: row; text-align: left; gap: 14px; padding: 12px 14px; }
.brand-card.compact img { width: 64px; flex-shrink: 0; }
.brand-card.compact h1 { font-size: 1rem; }
.brand-card.compact p { font-size: .88rem; margin-top: 2px; }
.login .brand-card { margin-bottom: 16px; }
@media (min-width: 720px) {
  .brand-card, .brand-card.compact { flex-direction: row; text-align: left; gap: 22px; padding: 20px 26px; }
  .brand-card img, .brand-card.compact img { width: 104px; flex-shrink: 0; }
  .brand-card h1, .brand-card.compact h1 { font-size: 1.4rem; }
  .brand-card .brand-name { display: inline; font-size: 1.15em; }
  .brand-card .brand-sub { display: inline; white-space: nowrap; }
  .brand-card .dash { display: inline; }
  .brand-card p, .brand-card.compact p { font-size: 1rem; }
  .login { max-width: 760px; }
  .login form, .login .tabs { max-width: 440px; margin-left: auto; margin-right: auto; }
}

/* v1.1: what the family asked for last time, under each item */
.iname small.last { color: var(--ok); font-weight: 600; margin-top: 1px; }

/* v1.1: welcome note after a family logs in */
.welcome { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(20,30,28,.45); }
.welcome-card { width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 20px; padding: 22px 20px 18px; box-shadow: 0 16px 48px rgba(0,0,0,.25); }
.welcome-card h2 { margin: 0 0 10px; font-size: 1.3rem; color: var(--ink); background: none; display: block; padding: 0; }
.welcome-card p { margin: 0 0 12px; line-height: 1.55; color: #24403a; }
.welcome-card .welcome-close:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.welcome-card .welcome-close { width: 100%; margin-top: 6px; background: var(--teal); border-radius: 999px; }
body.welcome-open { overflow: hidden; }
