/* Company tabs pages: the order page's type and fields on the one cream
   ground. No panels, no rules: space and type do the grouping. */
:root { --field: #f7f0e4; --err: #a12a1c; --ok: #2f5d34; }
main > section { padding: clamp(20px, 4vh, 44px) 0 72px; }
.col { max-width: 760px; }
.narrow { max-width: 34rem; }
h1.page { font-size: clamp(30px, 4.4vw, 42px); line-height: 1.1; font-weight: 700; letter-spacing: -.01em; margin: 0 0 10px; }
h2.sec { font-family: "Lilita One", Georgia, serif; font-weight: 400; font-size: 30px; line-height: 1.05; margin: 0 0 16px; }
h3.sub { font-size: 19px; font-weight: 700; margin: 0 0 6px; }
.lede { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.block + .block { margin-top: 52px; }
.steps { display: grid; gap: 18px; margin: 0 0 8px; padding: 0; list-style: none; }
.steps li { font-size: 17px; line-height: 1.45; }
.steps b { display: block; font-size: 18px; }
.test { display: block; font-size: 13px; font-weight: 700; margin: 0 0 12px; }

.fields { display: grid; gap: 20px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
label.f { display: grid; gap: 6px; font-size: 16px; font-weight: 600; color: var(--ink); }
label.f small { font-size: inherit; font-weight: 400; color: var(--muted); }
input.t, select, textarea.t { font: inherit; font-size: 18px; font-weight: 400; color: var(--ink); background-color: var(--field); border: 0; border-radius: 10px; padding: 14px 16px; width: 100%; min-width: 0; box-sizing: border-box; }
textarea.t { min-height: 96px; resize: vertical; line-height: 1.4; }
select { appearance: none; -webkit-appearance: none; padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
input.t:focus, select:focus, textarea.t:focus { outline: 2px solid var(--ink); outline-offset: 0; }
input[type=file].t { padding: 12px 14px; font-size: 15px; }
.optin { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); line-height: 1.4; cursor: pointer; }
.optin input { width: 20px; height: 20px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--ink); }
.optin a { color: var(--ink); }
.optin b { color: var(--ink); font-weight: 600; }
#dcCardFrame { display: block; width: 100%; height: 190px; border: 0; margin: 0; background: transparent; }
.fine { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.45; }

button.go { font: inherit; font-size: 17px; font-weight: 700; background: var(--ink); color: var(--paper); border: 0; border-radius: 8px; padding: 14px 22px; cursor: pointer; font-variant-numeric: tabular-nums; }
button.go.wide { width: 100%; }
button.go:disabled { opacity: .5; cursor: default; }
button.ghost, a.ghost { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 16px; background: transparent; color: var(--ink); border: 1px solid var(--ink); border-radius: 8px; padding: 9px 14px; cursor: pointer; text-decoration: none; }
button.ghost:hover, a.ghost:hover { background: var(--field); }
button.link { background: none; border: 0; padding: 0; color: var(--ink); font: inherit; font-size: 16px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
button.link.quiet { color: var(--muted); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.msg { min-height: 1.4em; margin: 0; font-size: 16px; }
.msg.err { color: var(--err); }
.msg.ok { color: var(--ok); }
.done { font-size: 18px; }
.done .big { font-size: clamp(28px, 4vw, 38px); font-weight: 700; line-height: 1.1; margin: 0 0 12px; }

/* Lists of things (visits, orders, invoices): spacing, not boxes. */
.list { display: grid; gap: 30px; margin: 0; padding: 0; list-style: none; }
.item-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; }
.item-row .amt { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.meta { color: var(--muted); font-size: 16px; }
.state { font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.state.open { color: var(--ok); }
.mini { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 16px; }
.mini li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.meter { height: 6px; border-radius: 3px; background: var(--field); margin: 10px 0 4px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ink); }
.tabs { display: flex; gap: 22px; flex-wrap: wrap; margin: 0 0 30px; }
.tabs button { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 18px; color: var(--muted); cursor: pointer; }
.tabs button.on { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.editor { display: grid; gap: 18px; margin: 18px 0 0; }

/* Member ordering: the order page's big tap targets. */
.items { display: grid; gap: 26px; margin: 0; padding: 0; list-style: none; }
.nm { display: block; font-size: 19px; font-weight: 700; line-height: 1.25; }
.ds { display: block; font-size: 16px; line-height: 1.4; color: var(--muted); margin-top: 2px; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pick { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 7px 13px; border: 1px solid var(--ink); border-radius: 8px; background: transparent; color: var(--ink);
  cursor: pointer; font: inherit; font-size: 15px; line-height: 1.2; text-transform: capitalize; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pick:hover { background: var(--field); }
.pick.in { background: var(--ink); color: var(--paper); }
.sect + .sect { margin-top: 40px; }
.tray { position: sticky; bottom: 0; background: var(--paper); padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); margin-top: 36px; }
.cart { display: grid; gap: 10px; margin: 0 0 12px; padding: 0; list-style: none; }
.cart li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; font-size: 16px; }
.cart .x { background: none; border: 0; font: inherit; font-size: 20px; line-height: 1; padding: 4px 8px; cursor: pointer; color: var(--ink); }
.sums { display: grid; gap: 3px; font-variant-numeric: tabular-nums; margin: 0 0 12px; }
.sums div { display: flex; justify-content: space-between; color: var(--muted); }
.sums .grand { color: var(--ink); font-weight: 700; font-size: 20px; }
.sheet { display: grid; gap: 14px; margin: 14px 0 0; }
.sheet .grp { display: grid; gap: 8px; }
.sheet .gname { font-weight: 700; }

@media (max-width: 640px) {
  .two, .three { grid-template-columns: 1fr; }
  .item-row { grid-template-columns: 1fr; }
  .item-row .amt { text-align: left; }
}
[hidden] { display: none !important; }

/* Visit: the day and spend on one line, people as a quiet list. */
.visit .state { font-size: inherit; letter-spacing: 0; }
.people { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 16px; }
.people li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.people .tools { display: inline-flex; gap: 6px; align-items: center; }
.people .x { background: none; border: 0; font: inherit; font-size: 20px; line-height: 1; padding: 2px 6px; cursor: pointer; color: var(--muted); }
#topMsg { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20; max-width: min(92vw, 30rem);
  background: var(--ink); color: var(--paper); border-radius: 8px; padding: 10px 16px; min-height: 0; text-align: center; }
#topMsg.err { background: var(--err); color: #fff; }
#topMsg:empty { display: none; }
.invite-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.invite-line .go { padding: 0 22px; }
.visit-when { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
#visitForm { display: grid; gap: 16px; margin: 0 0 34px; }
#visitForm .link { justify-self: start; }
#visitForm input:disabled { opacity: .5; }
@media (max-width: 640px) { .visit-when { grid-template-columns: 1fr 1fr; } .visit-when label:first-child { grid-column: 1 / -1; } }
/* Member order page: a compact menu and one bar at the bottom. */
#items h2.sec { font-size: 24px; margin: 0 0 12px; }
#items .sect + .sect { margin-top: 30px; }
#items .items { gap: 18px; }
#items .nm { font-size: 18px; }
#items .picks { gap: 6px; margin-top: 6px; }
#items .pick { min-height: 38px; padding: 6px 10px; font-size: 15px; gap: 5px; }
.bottom { position: sticky; bottom: 0; background: var(--paper); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); margin-top: 28px; }
#reviewView .cart { margin: 0 0 14px; }

/* Account front page: the dish drawings, a Lilita title, two buttons. */
.hero { text-align: center; padding: clamp(18px, 5vh, 56px) 0 clamp(24px, 5vh, 48px); }
.hero-art { display: flex; justify-content: center; align-items: flex-end; gap: clamp(18px, 4vw, 34px); margin: 0 0 26px; }
.hero-art img { height: auto; display: block; }
.hero-title { font-family: "Lilita One", Georgia, serif; font-weight: 400; font-size: clamp(40px, 7vw, 58px); line-height: 1; margin: 0 0 14px; }
.hero-line { font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 30em; text-wrap: balance; margin: 0 auto 30px; line-height: 1.45; }
.hero-actions { display: flex; justify-content: center; gap: 12px; }
.hero-actions .go, .hero-actions .ghost { min-width: 132px; justify-content: center; font-size: 17px; padding: 13px 22px; }
.hero.compact { padding-bottom: 18px; }
.hero.compact .hero-art { display: none; }
.hero.compact .hero-title { font-size: 40px; }
.hero.compact .hero-line { margin-bottom: 0; }

/* Dashboard: the organization's name in Lilita, quieter tabs. */
.dash-title { font-family: "Lilita One", Georgia, serif; font-weight: 400; font-size: clamp(38px, 6vw, 52px); line-height: 1; margin: 0 0 8px; }
.dash-line { color: var(--muted); font-size: 17px; margin: 0 0 6px; }
.dash-line[hidden] { display: none !important; }
/* Tabs stick under the header so switching tabs never requires scrolling back up. */
#app .tabs { position: sticky; top: 64px; z-index: 5; background: var(--paper); gap: 26px; margin: 0 0 34px; padding: 22px 0 14px; border-bottom: 1px solid var(--line); }
#app .tabs button { font-size: 17px; }
@media (max-width: 860px) { #app .tabs { top: 56px; } }
.need-card { max-width: 34rem; margin: 0 0 34px; }
.need-card-line { font-size: 18px; margin: 0 0 18px; }
.need-card .editor { margin: 0; }

/* New visit: buttons for the day and hours, $ boxes for limits. */
.visit-form { display: grid; gap: 22px; max-width: 34rem; margin: 0 0 40px; }
.vf-title { font-family: "Lilita One", Georgia, serif; font-weight: 400; font-size: 30px; line-height: 1; margin: 0; }
.vf-group { display: grid; gap: 10px; }
.vf-label { font-size: 16px; font-weight: 700; }
.vf-label small { font-weight: 400; color: var(--muted); }
.visit-form .pick small { color: inherit; opacity: .7; font-size: 13px; text-transform: none; }
.visit-form .pick { text-transform: none; }
.visit-form .link { justify-self: start; }
label.money { position: relative; display: block; }
label.money span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--muted); pointer-events: none; }
label.money input { padding-left: 32px; }
/* Visit list: a date block beside each visit. */
.list li.visit { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 18px; align-items: start; }
.vdate { display: grid; justify-items: center; line-height: 1; padding-top: 2px; }
.vdate .vm { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vdate .vd { font-family: "Lilita One", Georgia, serif; font-size: 40px; margin-top: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
