  :root {
    color-scheme: light;
    --green: #12885a; --green-dark: #0d6b46; --green-bright: #25d366;
    --green-soft: #e5f5ec; --green-softer: #f0faf4;
    --bg: #eef1ec; --card: #ffffff; --text: #16211c; --muted: #5d6b63;
    --border: #e7ebe5; --border-strong: #d6ddd4;
    --warn-bg: #fef3e2; --warn-fg: #b06d15;
    --shadow-sm: 0 1px 2px rgba(16,40,28,.05);
    --shadow-md: 0 2px 4px rgba(16,40,28,.04), 0 12px 28px -14px rgba(16,40,28,.16);
    --shadow-card: 0 1px 3px rgba(16,40,28,.05), 0 10px 24px -18px rgba(16,40,28,.18);
    --radius: 16px;
    --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  }
  * { box-sizing: border-box; }
  body {
    font-family: var(--font); color: var(--text); margin: 0; min-height: 100vh;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    background:
      radial-gradient(1100px 600px at 100% -10%, #dff0e6 0%, rgba(223,240,230,0) 55%),
      radial-gradient(900px 500px at -10% 110%, #e4efe6 0%, rgba(228,239,230,0) 50%),
      var(--bg);
    background-attachment: fixed;
  }

  /* ---------- signed-out hero ---------- */
  html.has-token #hero { display: none; } /* signed-in visitors never see the landing page flash */
  .hero-foot { margin: 14px 0 0; font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
  .or { display: flex; align-items: center; gap: 12px; margin: 16px 2px; color: var(--muted); font-size: 0.78rem; }
  .or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border-strong); }

  /* ---------- console layout ---------- */
  .console { display: none; min-height: 100vh; }
  .console.active { display: flex; }
  aside {
    width: 244px; flex-shrink: 0; display: flex; flex-direction: column;
    color: #c3dccf; background: linear-gradient(185deg, #0f2c1e 0%, #0b2116 100%);
    position: sticky; top: 0; height: 100vh;
  }
  aside .brand { display: flex; align-items: center; gap: 11px; padding: 22px 20px 18px; color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
  aside .brand .emblem { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; background: linear-gradient(150deg, #1aa565, #0d6b46); box-shadow: 0 6px 14px -6px rgba(37,211,102,.5); }
  aside nav { flex: 1; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
  aside nav a { display: flex; align-items: center; gap: 11px; padding: 11px 13px; color: #b7d2c5; text-decoration: none; font-size: 0.9rem; font-weight: 500; border-radius: 11px; transition: background .15s, color .15s; }
  aside nav a:hover { background: rgba(255,255,255,0.07); color: #eafaf1; }
  aside nav a.active { background: rgba(37,211,102,0.15); color: #fff; font-weight: 600; }
  aside nav a .dot { width: 8px; height: 8px; border-radius: 50%; margin-left: auto; box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
  .dot.warn { background: #f5b74a; } .dot.ok { background: var(--green-bright); }
  aside nav a.soon { opacity: 0.45; }
  aside nav a.soon .tag { margin-left: auto; font-size: 0.6rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: rgba(255,255,255,0.12); border-radius: 999px; padding: 2px 8px; }
  aside .user { padding: 14px 18px; font-size: 0.78rem; color: #9ec2b0; border-top: 1px solid rgba(255,255,255,0.08); word-break: break-all; line-height: 1.6; }
  aside .user a { color: var(--green-bright); cursor: pointer; font-weight: 600; }
  aside .user a:hover { text-decoration: underline; }
  main { flex: 1; padding: 34px 40px 72px; max-width: 1120px; min-width: 0; }
  main h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 20px; }

  .card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; box-shadow: var(--shadow-card); }
  .card h2 { margin: 0 0 4px; font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; }
  .card p.sub, .sub { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
  .card p.sub { margin: 0 0 16px; }
  label { display: block; margin: 15px 0 5px; font-weight: 600; font-size: 0.82rem; color: #33403a; }
  input, select, textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--border-strong); border-radius: 11px; font-size: 0.98rem; font-family: var(--font); background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s; }
  input::placeholder { color: #9aa79f; }
  input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(18,136,90,.13); }
  small { color: var(--muted); font-size: 0.8rem; line-height: 1.5; display: inline-block; margin-top: 4px; }
  button {
    margin-top: 18px; padding: 12px 22px; border: none; border-radius: 11px;
    background: var(--green); color: #fff; font-size: 0.95rem; font-weight: 700; font-family: var(--font);
    cursor: pointer; transition: transform .12s, box-shadow .15s, background .15s;
    box-shadow: 0 6px 16px -8px rgba(18,136,90,.6);
  }
  button:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 10px 20px -10px rgba(18,136,90,.7); }
  button:active { transform: translateY(0); }
  button:disabled { background: #b7c2bb; box-shadow: none; cursor: default; transform: none; }
  button.secondary { background: #fff; color: var(--green-dark); border: 1.5px solid var(--border-strong); box-shadow: var(--shadow-sm); }
  button.secondary:hover { background: var(--green-softer); border-color: var(--green); color: var(--green-dark); }
  button.small { margin-top: 0; padding: 6px 14px; font-size: 0.85rem; border-radius: 8px; box-shadow: none; }
  .btn-block { width: 100%; }
  .chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px 7px 13px; border-radius: 999px;
    background: var(--green-softer); border: 1.5px solid var(--border-strong); color: var(--green-dark);
    font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: background .12s, border-color .12s; }
  .chip:hover { background: #fff; border-color: var(--green); }
  .chip .chip-price { color: var(--muted); font-weight: 500; }
  .chip .chip-x { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px;
    border-radius: 50%; background: rgba(0,0,0,.06); color: var(--muted); font-size: 0.8rem; line-height: 1; }
  .chip .chip-x:hover { background: #e5484d; color: #fff; }
  .daystrip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
  /* Access / billing banner */
  .banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; margin-bottom: 18px; border: 1px solid; font-size: .95rem; line-height: 1.45; }
  .banner .ico { font-size: 1.3rem; line-height: 1.2; }
  .banner b { font-weight: 700; }
  .banner .pay { margin-top: 6px; white-space: pre-line; font-size: .9rem; opacity: .9; }
  .banner.info { background: #eef6ff; border-color: #bcd7f5; color: #143a66; }
  .banner.warn { background: var(--warn-bg); border-color: #f0d9a8; color: var(--warn-fg); }
  .banner.bad { background: #fdecea; border-color: #f0c9c5; color: #8a1f17; }
  .banner.ok { background: var(--green-soft); border-color: #bfe3cd; color: var(--green-dark); }
  /* Admin */
  .pill.bad { background: #fdecea; color: #b3261e; } .pill.info { background: #eef6ff; color: #1d4f8a; } .pill.muted { background: #eef0ee; color: var(--muted); }
  #admin-table td { vertical-align: top; }
  #admin-table .who { font-weight: 700; } #admin-table .who small { display: block; font-weight: 400; color: var(--muted); }
  #admin-table .acts { display: flex; flex-wrap: wrap; gap: 6px; }
  #admin-table .acts button { margin: 0; }
  .badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #f5b74a; color: #3b2a00; font-size: .72rem; font-weight: 800; margin-left: auto; }
  /* Menu editor: the day's items as a tidy list */
  #menu-items { margin-top: 6px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
  #menu-items:empty { display: none; }
  .menu-row { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-top: 1px solid var(--border); background: #fff; }
  .menu-row:first-child { border-top: none; }
  .menu-row .mi-name { flex: 2; margin: 0; border-color: transparent; background: transparent; padding: 8px 6px; font-weight: 600; }
  .menu-row .mi-name:focus, .menu-row .mi-price:focus { border-color: var(--green); background: #fff; }
  .menu-row .mi-del { margin: 0; width: auto; padding: 6px 10px; box-shadow: none; border-color: transparent; color: var(--muted); }
  .menu-row .mi-del:hover { color: #b3261e; border-color: #f0c9c5; background: #fdecea; }
  .price-wrap { position: relative; flex: 0 0 110px; }
  .price-wrap::before { content: "$"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .9rem; pointer-events: none; }
  .price-wrap .mi-price { width: 100%; margin: 0; padding: 8px 8px 8px 22px; }
  /* Type-ahead item picker */
  .dropdown { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: #fff; border: 1px solid var(--border-strong);
    border-radius: 12px; box-shadow: var(--shadow-md); max-height: 300px; overflow: auto; }
  .dropdown .opt { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; font-size: .95rem; }
  .dropdown .opt:hover, .dropdown .opt.active { background: var(--green-softer); }
  .dropdown .opt .cat { color: var(--muted); font-size: .78rem; font-weight: 500; margin-left: 8px; }
  .dropdown .opt .price { color: var(--green-dark); font-weight: 600; white-space: nowrap; }
  .dropdown .opt.added { opacity: .5; cursor: default; }
  .dropdown .opt.new { color: var(--green-dark); font-weight: 600; border-top: 1px dashed var(--border); }
  @media (max-width: 600px) {
    .price-wrap { flex: 0 0 84px; }
    .price-wrap .mi-price { padding-left: 18px; padding-right: 4px; font-size: .9rem; }
    .price-wrap::before { left: 7px; font-size: .8rem; }
    .menu-row { padding: 4px 4px; gap: 4px; }
    .menu-row .mi-name { font-size: .88rem; padding: 8px 4px; }
    .menu-row .mi-del { padding: 6px 6px; }
  }
  #btn-new-menu { white-space: nowrap; }
  .browse-panel { margin-top: 10px; padding: 4px 12px 12px; border: 1px solid var(--border); border-radius: 12px; background: #fafcfb; max-height: 360px; overflow: auto; }
  .daypill { flex: 0 0 auto; min-width: 62px; padding: 9px 6px; border-radius: 12px; text-align: center;
    border: 1.5px solid var(--border-strong); background: #fff; cursor: pointer; transition: all .12s; user-select: none; }
  .daypill:hover { border-color: var(--green); background: var(--green-softer); }
  .daypill .dp-dow { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
  .daypill .dp-num { font-size: 1.15rem; font-weight: 700; color: var(--text); line-height: 1.2; }
  .daypill .dp-mon { font-size: 0.68rem; color: var(--muted); }
  .daypill.today-mark { border-color: var(--green); }
  .daypill.active { background: var(--green); border-color: var(--green); box-shadow: 0 6px 16px -8px rgba(18,136,90,.6); }
  .daypill.active .dp-dow, .daypill.active .dp-num, .daypill.active .dp-mon { color: #fff; }
  .daypill { position: relative; }
  .dp-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: #e5484d; color: #fff; font-size: 0.7rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
  .daypill.active .dp-badge { background: #fff; color: var(--green-dark); }
  /* Google button */
  .btn-google { width: 100%; background: #fff; color: #3c4043; border: 1.5px solid var(--border-strong); box-shadow: var(--shadow-sm); display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
  .btn-google:hover { background: #f7f9f7; border-color: #c4ccc6; color: #3c4043; transform: translateY(-1px); }
  .btn-google svg { width: 18px; height: 18px; }
  /* Facebook connect button */
  .btn-fb { background: #1877f2; box-shadow: 0 6px 16px -8px rgba(24,119,242,.7); display: inline-flex; align-items: center; gap: 9px; }
  .btn-fb:hover { background: #1568d8; box-shadow: 0 10px 20px -10px rgba(24,119,242,.75); }
  .btn-fb svg { width: 17px; height: 17px; }

  .pill { padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; letter-spacing: .01em; display: inline-flex; align-items: center; gap: 5px; }
  .pill.ok { background: var(--green-soft); color: var(--green-dark); } .pill.warn { background: var(--warn-bg); color: var(--warn-fg); }
  .pill.ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
  .pill.warn::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #e0982f; }
  .status-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 0.94rem; }
  .status-row:last-child { border-bottom: none; }
  .status-row > span:first-child { color: var(--muted); }
  .msg { margin-top: 14px; font-size: 0.9rem; font-weight: 500; } .msg.error { color: #c0392b; } .msg.ok { color: var(--green-dark); }
  table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-top: 10px; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #orders-table td.items { min-width: 180px; }
  #orders-table td.customer { min-width: 150px; }
  #orders-table .acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
  #orders-table .acts button, #orders-table .acts a { margin: 0; white-space: nowrap; }
  th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); }
  th { color: var(--muted); font-weight: 600; font-size: 0.76rem; text-transform: uppercase; letter-spacing: .04em; }
  .hidden { display: none !important; }
  .steps { font-size: 0.92rem; line-height: 1.7; color: #33403a; }
  .steps b { color: var(--text); font-weight: 700; }
  ol.steps { padding-left: 20px; } ol.steps li { margin-bottom: 11px; padding-left: 4px; }
  ol.steps li::marker { color: var(--green); font-weight: 700; }
  code { background: #eef3ee; color: #0d6b46; padding: 2px 7px; border-radius: 6px; font-size: 0.84em; font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; }
  .note { background: var(--warn-bg); color: var(--warn-fg); border-radius: 11px; padding: 11px 15px; font-size: 0.87rem; margin-top: 12px; }
  .cta-banner { display: flex; align-items: center; gap: 8px; background: linear-gradient(120deg, var(--green-soft), var(--green-softer)); border: 1px solid #c9e8d5; border-radius: 13px; padding: 14px 18px; font-size: 0.92rem; font-weight: 500; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
  .cta-banner a { color: var(--green-dark); font-weight: 700; cursor: pointer; }
  @media (max-width: 720px) {
    .console.active { flex-direction: column; }
    aside { width: 100%; position: static; height: auto; }
    aside .brand { padding: 16px 18px; }
    aside nav { flex-direction: row; flex-wrap: wrap; padding: 6px 10px 10px; gap: 4px; }
    aside nav a { padding: 8px 12px; font-size: 0.85rem; }
    aside nav a .dot, aside nav a.soon .tag { margin-left: 6px; }
    main { padding: 22px 16px 52px; }
    main h1 { font-size: 1.3rem; }
    .card { padding: 20px; }
  }
  .menu-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 18px; align-items: start; }
  /* minmax(0, …): a plain 1fr track grows to its widest content (a long select option,
     the title row with status pills) and pushed the Menu page past the phone's width. */
  @media (max-width: 960px) { .menu-grid { grid-template-columns: minmax(0, 1fr); } }
  .menu-grid > * { min-width: 0; }
  .menu-grid .status-row { flex-wrap: wrap; gap: 6px 10px; }
  .menu-grid .status-row h2 { min-width: 0; overflow-wrap: anywhere; }
  #schedule-body tr { cursor: pointer; }
  #schedule-body tr:hover td { background: #f4faf6; }
  #schedule-body tr.selected td { background: #e6f5ec; font-weight: 600; }
  #schedule-body td.acts { white-space: nowrap; }
  button.small.danger { color: #b3261e; border-color: #f0c9c5; background: #fff; }
  button.small.danger:hover { background: #fdecea; border-color: #b3261e; color: #b3261e; }

/* Touch targets: 44px minimum on phones for the small controls */
@media (max-width: 600px) {
  .menu-row .mi-del { min-width: 44px; min-height: 44px; padding: 0; font-size: 1.1rem; }
  .chip .chip-x { width: 28px; height: 28px; font-size: .95rem; }
  button.small { min-height: 40px; padding: 8px 14px; }
  .acts button, #admin-table .acts button { min-height: 40px; }
  #schedule-body td.acts button { min-height: 40px; }
  .dropdown .opt { padding: 14px 14px; }
}

/* Menu row: name + (max / sold / sold-out) meta line */
.menu-row .mi-main { flex: 2; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.menu-row .mi-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); padding-left: 6px; }
.menu-row .mi-max-wrap { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-weight: 500; color: var(--muted); }
.menu-row .mi-max { width: 70px; margin: 0; padding: 3px 6px; font-size: .8rem; border-radius: 8px; }
.menu-row .mi-sold { font-weight: 600; color: var(--green-dark); }
.menu-row .mi-soldout-wrap { display: inline-flex; align-items: center; gap: 5px; margin: 0; font-weight: 500; cursor: pointer; }
.menu-row .mi-soldout { width: auto; margin: 0; }
.menu-row.soldout .mi-name { text-decoration: line-through; color: var(--muted); }
/* Orders: paid control */
.paid-pill { cursor: pointer; border: none; margin: 0; padding: 4px 10px; box-shadow: none; }
.paid-select { width: auto; max-width: 190px; padding: 5px 8px; font-size: .82rem; border-radius: 8px; margin: 0; }

/* Reports */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 18px; }
@media (max-width: 600px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .kpi-grid .card { padding: 14px 14px; } .kpi-grid .kpi-v { font-size: 1.35rem; } }
.kpi-v { font-size: 1.7rem; font-weight: 800; margin-top: 4px; }
.trend-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.trend { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 8px; }
.trend .col { flex: 0 0 auto; width: 34px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.trend .col.wide { width: 56px; }
.trend .bar { width: 70%; max-width: 34px; background: var(--green); border-radius: 6px 6px 0 0; }
.trend .lbl { font-size: .68rem; color: var(--muted); white-space: nowrap; }
.prep-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prep-table th { text-align: right; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 8px; font-weight: 700; }
.prep-table th:first-child, .prep-table td:first-child { text-align: left; }
.prep-table td { padding: 10px 8px; border-top: 1px solid var(--border); text-align: right; white-space: nowrap; }
.prep-table td.todo { font-weight: 800; font-size: 1.15rem; color: var(--green-dark); }
.prep-table tr.done td.todo { color: var(--muted); font-weight: 600; }
.prep-table tfoot td { font-weight: 700; border-top: 2px solid var(--border-strong); }

/* Prep sheet as cards on phones: name on top, the four numbers in a row underneath */
@media (max-width: 600px) {
  .prep-table, .prep-table tbody, .prep-table tfoot, .prep-table tr, .prep-table td { display: block; }
  .prep-table thead { display: none; }
  .prep-table tr { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
  .prep-table tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .prep-table td { border: 0; padding: 0; text-align: center; white-space: normal; }
  .prep-table td.nm { grid-column: 1 / -1; text-align: left; font-weight: 700; margin-bottom: 4px; }
  .prep-table td::before { content: attr(data-l); display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
  .prep-table td.nm::before { display: none; }
  .prep-table tfoot tr { background: var(--green-softer); }
}
.prep-table td.nm { font-weight: 600; }

/* ---------- Home ---------- */
.home-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; }
.home-card.home-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.home-kicker { font-size: .74rem; font-weight: 700; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.home-big { display: flex; align-items: baseline; gap: 8px; }
.home-big > span:first-child { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.home-big-sub { font-size: 1rem; font-weight: 600; }
.home-actions { display: flex; gap: 8px; margin-top: 8px; }
.btn-primary, .btn-soft, .btn-outline { flex: 1; text-align: center; padding: 12px 10px; border-radius: 11px; font-size: .92rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--green); color: #fff; }
.btn-soft { background: var(--green-soft); color: var(--green-dark); }
.btn-outline { background: #fff; color: var(--green-dark); border: 1.5px solid var(--border-strong); }
.home-row .btn-soft { flex: 0 0 auto; padding: 10px 14px; }
#view-home { max-width: 560px; }

/* ---------- Phone shell: slim top bar + bottom tabs ---------- */
.topbar, .tabbar, .sheet, .sheet-backdrop { display: none; }
@media (max-width: 720px) {
  aside { display: none; }
  .console.active { flex-direction: column; }
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 8px; background: var(--bg); position: sticky; top: 0; z-index: 20; }
  .topbar-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em; }
  .emblem-sm { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; background: linear-gradient(150deg, #1aa565, #0d6b46); color: #fff; }
  .topbar-date { font-size: .78rem; font-weight: 600; color: var(--muted); }
  main { padding: 6px 16px 96px; }
  main h1 { font-size: 1.25rem; margin: 6px 0 14px; }
  #view-home h1 { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; height: 68px; background: #fff; border-top: 1px solid var(--border); z-index: 30; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .68rem; font-weight: 600; color: var(--muted); text-decoration: none; border-radius: 10px; cursor: pointer; }
  .tabbar a.active { color: var(--green); font-weight: 700; }
  .sheet-backdrop { display: block; position: fixed; inset: 0; background: rgba(10, 24, 16, .35); z-index: 40; }
  .sheet { display: flex; flex-direction: column; position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 18px 18px 0 0; padding: 8px 14px calc(16px + env(safe-area-inset-bottom)); z-index: 50; box-shadow: 0 -10px 30px rgba(0,0,0,.15); }
  .sheet.hidden, .sheet-backdrop.hidden { display: none; }
  .sheet-handle { width: 40px; height: 4px; border-radius: 999px; background: var(--border-strong); margin: 4px auto 10px; }
  .sheet a { display: block; padding: 14px 10px; font-size: 1rem; font-weight: 600; color: var(--text); text-decoration: none; border-radius: 10px; }
  .sheet a:active { background: var(--green-softer); }
  .sheet-user { display: flex; justify-content: space-between; align-items: center; padding: 12px 10px 4px; border-top: 1px solid var(--border); margin-top: 6px; font-size: .82rem; color: var(--muted); word-break: break-all; gap: 10px; }
  .sheet-user a { color: var(--green-dark); font-weight: 700; padding: 6px 0; cursor: pointer; white-space: nowrap; }
}

/* Help & ideas */
.help-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; margin: 0; padding: 16px; background: #fff; color: var(--text); border: 1.5px solid var(--border-strong); border-radius: 14px; box-shadow: none; min-height: 110px; }
.help-choice:hover, .help-choice.on { border-color: var(--green); background: var(--green-softer); }
.help-choice b { font-size: 1rem; }
.req-row { padding: 12px 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.req-row .req-text { white-space: pre-line; }
.req-reply { background: var(--green-softer); border-left: 3px solid var(--green); padding: 8px 12px; border-radius: 0 10px 10px 0; font-size: .92rem; white-space: pre-line; }
.req-meta { font-size: .8rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.adm-req-f.on { background: var(--green); color: #fff; border-color: var(--green); }
.req-msg { padding: 8px 12px; border-radius: 10px; font-size: .92rem; white-space: pre-line; max-width: 92%; }
.req-msg.from-admin { background: var(--green-softer); border-left: 3px solid var(--green); border-radius: 0 10px 10px 0; }
.req-msg.from-seller { background: #f4f2ec; border-left: 3px solid #d9d4c7; border-radius: 0 10px 10px 0; }

/* ---- Orders on phones: one card per customer instead of the wide table ---- */
.order-cards { display: none; }
@media (max-width: 720px) {
  #orders-table-wrap { display: none; }
  .order-cards { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 14px; }
}
.ocard { border: 1px solid var(--border); border-radius: 14px; padding: 14px 14px 12px; background: #fff; box-shadow: var(--shadow-sm); }
.ocard.is-done { background: #fafbfa; }
.ocard.is-cancelled { background: #fafafa; }
.ocard.is-cancelled .ocard-name, .ocard.is-cancelled .ocard-items { color: var(--muted); text-decoration: line-through; }
.ocard-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ocard-name { font-weight: 800; font-size: 1.08rem; min-width: 0; overflow-wrap: anywhere; }
.ocard-num { color: var(--muted); font-size: .85rem; font-weight: 700; white-space: nowrap; }
.ocard-phone { margin-top: 2px; font-size: .88rem; }
.ocard-phone a { color: var(--green-dark); text-decoration: none; font-weight: 600; }
.ocard-items { margin: 10px 0 4px; font-size: 1rem; line-height: 1.55; }
.ocard-items b { font-weight: 800; }
.ocard-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.ocard-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; min-width: 64px; }
.ocard-amount { font-weight: 800; font-size: 1.05rem; }
.ocard-line .paid-select { width: auto; max-width: 100%; margin: 0; padding: 9px 12px; min-height: 44px; }
.ocard-line .paid-pill, .ocard-line button { min-height: 40px; }
.ocard-main { width: 100%; margin: 12px 0 0; padding: 13px; font-size: 1rem; min-height: 48px; }
.ocard-acts { display: flex; gap: 8px; margin-top: 8px; }
.ocard-acts > * { flex: 1; margin: 0; min-height: 44px; display: flex; align-items: center; justify-content: center; text-align: center; }

/* Share state of a day's group message (the order link itself is always live) */
.share-state { border-radius: 10px; padding: 10px 12px; margin: 6px 0 10px; font-size: .92rem; font-weight: 600; line-height: 1.4; }
.share-state.warn { background: #fff3d6; border: 1px solid #f0d58a; color: #6b4a00; }
.share-state.ok { background: var(--green-soft); border: 1px solid #bfe3cd; color: var(--green-dark); font-weight: 500; }

/* "Tell <name> it's ready" — WhatsApp from the seller's phone */
.ocard-tell { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin: 12px 0 0; border-radius: 11px;
  border: 2px solid var(--green); background: var(--green-softer); color: var(--green-dark); font-weight: 800; font-size: 1rem; text-decoration: none; }
.ocard-tell.told { border: 1.5px solid var(--border-strong); background: #fff; color: var(--muted); font-weight: 600; font-size: .92rem; min-height: 40px; }
.tell-small { display: inline-block; text-decoration: none; padding: 6px 10px; border-radius: 8px; border: 1.5px solid var(--green); background: var(--green-softer); color: var(--green-dark); font-weight: 700; }

/* Prepared menus list on phones: one compact row per day instead of a 4-column
   table (the table's minimum width pushed the Menu page to ~404px on phones). */
@media (max-width: 600px) {
  #schedule-table, #schedule-table tbody { display: block; width: 100%; }
  #schedule-table thead { display: none; }
  #schedule-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center;
    padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; background: #fff; }
  #schedule-table tr.selected { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-soft); background: var(--green-softer); }
  #schedule-table tr td, #schedule-table tr.selected td { background: transparent; }
  #schedule-table td { display: block; border: none; padding: 0; min-width: 0; }
  #schedule-table td:nth-child(1) { grid-column: 1; font-weight: 700; }
  #schedule-table td:nth-child(2), #schedule-table td:nth-child(3) { grid-column: 1; color: var(--muted); font-size: .85rem; }
  #schedule-table td.acts { grid-column: 2; grid-row: 1 / span 3; display: flex; gap: 6px; }
  #schedule-table td.acts button { margin: 0 !important; min-height: 40px; }
}


.hero-about { margin: 10px 0 0; text-align: center; font-size: .92rem; }
.hero-about a { color: var(--green-dark); font-weight: 700; text-decoration: none; }
.hero-about a:hover { text-decoration: underline; }

/* ---------------- Party orders ---------------- */
.kind-switch { display: inline-flex; background: #fff; border: 1.5px solid var(--border-strong); border-radius: 12px; padding: 3px; margin: 0 0 12px; gap: 3px; }
.kind-switch a { padding: 8px 14px; border-radius: 9px; font-weight: 700; font-size: .9rem; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.kind-switch a.on { background: var(--green); color: #fff; }
.kind-switch .badge, #party-badge { display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 999px; background: #e0982f; color: #fff; font-size: .72rem; font-weight: 800; text-align: center; margin-left: 4px; }
.seg { display: inline-flex; border: 1.5px solid var(--border-strong); border-radius: 11px; overflow: hidden; background: #fff; }
.seg button { margin: 0; border: none; border-radius: 0; background: #fff; color: var(--muted); box-shadow: none; padding: 9px 18px; font-weight: 700; width: auto; }
.seg button.on { background: var(--green); color: #fff; }
.offer-pick { display: flex; flex-direction: column; gap: 8px; }
.offer-pick label { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--border); border-radius: 12px; padding: 10px 12px; margin: 0; font-weight: 500; cursor: pointer; }
.offer-pick label:has(input:checked) { border-color: var(--green); background: var(--green-softer); }
.offer-pick input { width: auto; margin: 3px 0 0; }
.offer-pick small { display: block; color: var(--muted); font-size: .84rem; margin-top: 1px; }
.party-link code { display: block; background: var(--green-softer); border: 1px dashed var(--green); border-radius: 10px; padding: 10px 12px; font-size: .92rem; overflow-wrap: anywhere; color: var(--green-dark); }
.linkbtn-like { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 8px; border: 1.5px solid var(--border-strong); color: var(--green-dark); font-weight: 600; font-size: .85rem; text-decoration: none; background: #fff; }
.paste-panel { margin-top: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #fafcfb; }
.paste-panel textarea { font-family: inherit; }
.pp-warn { background: var(--warn-bg); color: var(--warn-fg); border: 1px solid #f0d9a8; border-radius: 10px; padding: 10px 12px; font-size: .88rem; margin: 10px 0; }
.pp-warn div + div { margin-top: 4px; }
.pp-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 2px; border-top: 1px solid var(--border); font-size: .92rem; }
.pp-row input { width: auto; margin: 3px 0 0; }
.pp-row .nm { font-weight: 700; }
.pp-row .sz { color: var(--muted); font-size: .85rem; }
.pp-cat { font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 12px 2px 2px; }
.pi-cat { font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 16px 2px 6px; }
.pi { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
.pi.off { opacity: .6; }
.pi.review { border-color: #e0b04f; background: #fffaf0; }
.pi-head { display: flex; align-items: center; gap: 10px; }
.pi-head .nm { flex: 1; min-width: 0; font-weight: 700; }
.pi-head .nm small { display: block; font-weight: 500; color: var(--muted); font-size: .84rem; margin-top: 2px; }
.pi-head button { width: auto; margin: 0; }
.pi-edit { margin-top: 10px; border-top: 1px dashed var(--border); padding-top: 4px; }
.pi-edit label { margin-top: 10px; }
.sz-row { display: grid; grid-template-columns: 1.4fr 1fr .8fr auto; gap: 6px; align-items: center; margin-top: 6px; }
.sz-row input { margin: 0; min-width: 0; }
.sz-row button { margin: 0; width: auto; padding: 6px 10px; }
.sz-head { display: grid; grid-template-columns: 1.4fr 1fr .8fr auto; gap: 6px; font-size: .74rem; color: var(--muted); font-weight: 700; margin-top: 10px; }
.rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.meal-row { display: grid; grid-template-columns: 120px 1fr auto 1fr; gap: 8px; align-items: center; margin-top: 6px; }
.meal-row input[type=time] { margin: 0; }
.meal-row label { margin: 0; display: flex; gap: 8px; align-items: center; font-weight: 700; }
.meal-row label input { width: auto; margin: 0; }
.day-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.day-chips button { width: auto; margin: 0; padding: 7px 12px; border-radius: 999px; background: #fff; color: var(--text); border: 1.5px solid var(--border-strong); box-shadow: none; font-weight: 600; }
.day-chips button.on { background: #fdecea; border-color: #e5a29b; color: #b3261e; text-decoration: line-through; }
.closed-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.closed-list span { display: inline-flex; gap: 6px; align-items: center; background: #fdecea; color: #b3261e; border-radius: 999px; padding: 5px 6px 5px 11px; font-size: .85rem; font-weight: 600; }
.closed-list span button { width: 22px; height: 22px; margin: 0; padding: 0; border-radius: 50%; background: #fff; color: #b3261e; border: none; box-shadow: none; font-size: .8rem; }
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.pcard.is-requested { border: 2px solid #e0b04f; background: #fffcf4; }
.pcard .when { font-weight: 800; color: var(--green-dark); margin-top: 6px; font-size: .98rem; }
.pcard .meta { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.pcard .notes { background: #f6f8f6; border-radius: 10px; padding: 8px 10px; font-size: .9rem; margin-top: 8px; }
.pcard .decline-box { margin-top: 10px; }
.pcard .decline-box input { margin: 6px 0; }
.prep-table td.sz { color: var(--muted); }
@media (max-width: 640px) {
  .rules-grid { grid-template-columns: 1fr; gap: 0; }
  .meal-row { grid-template-columns: 1fr 1fr auto 1fr; }
  .meal-row label { grid-column: 1 / -1; }
  .pcards { grid-template-columns: 1fr; }
  .kind-switch { display: flex; }
  .kind-switch.hidden { display: none; }
  .kind-switch a { flex: 1; justify-content: center; }
}
.pcard a.secondary { display: flex; align-items: center; justify-content: center; text-decoration: none; padding: 8px 12px; border-radius: 10px; border: 1px solid #cfe3d6; background: #f0faf3; color: var(--green-dark); font-weight: 700; font-size: .92rem; }
.pcard .changed-note { background: #fff3d6; color: #6b4a00; border-radius: 10px; padding: 7px 10px; font-size: .86rem; font-weight: 700; margin-top: 8px; }
.pick { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pick select, .pick input { margin: 0; min-width: 0; }
.sz-row .pick select { padding-right: 24px; }
.sz-row, .sz-head { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) minmax(0, .75fr) auto; }
.sz-row .pick select { padding: 10px 22px 10px 10px; font-size: .92rem; }
.sz-row .z-p, .sz-row .z-s { padding: 10px 8px; }

/* ---- Party menu editor: sections nav + compact rows + edit panel ---- */
body.sheet-open { overflow: hidden; }
.pm-body { margin-top: 14px; }
.pm-nav { position: sticky; top: 0; z-index: 3; background: #fff; padding: 8px 0 6px; margin: 0 -4px; }
.pm-search { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--border-strong); border-radius: 12px; padding: 0 10px; background: #fbfdfc; margin: 0 4px 8px; }
.pm-search input { border: none; outline: none; background: transparent; margin: 0; padding: 10px 0; box-shadow: none; flex: 1; min-width: 0; font-size: 16px; }
.pm-secs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 4px 6px; scrollbar-width: none; }
.pm-secs::-webkit-scrollbar { display: none; }
.pm-sec { flex: 0 0 auto; width: auto; margin: 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--border-strong); background: #fff; color: var(--text); font-weight: 700; font-size: .88rem; box-shadow: none; white-space: nowrap; }
.pm-sec .c { background: #eef2ef; color: var(--muted); border-radius: 999px; padding: 1px 7px; font-size: .75rem; }
.pm-sec .hid { color: var(--muted); font-weight: 600; font-size: .74rem; }
.pm-sec .dot.warn { width: 8px; height: 8px; border-radius: 50%; background: #e0982f; display: inline-block; }
.pm-sec.on { background: var(--green); border-color: var(--green); color: #fff; }
.pm-sec.on .c { background: rgba(255,255,255,.25); color: #fff; }
.pm-sec.on .hid { color: #d7f0e3; }
.pm-h { font-size: .98rem; margin: 6px 2px 8px; }
.pm-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.pm-tools button { width: auto; margin: 0; padding: 7px 11px; font-size: .84rem; min-height: 38px; }
.pm-tools button:disabled { opacity: .4; }
.pm-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 12px; padding: 4px 10px 4px 4px; margin-bottom: 6px; background: #fff; }
.pm-row.off { background: #fafbfa; }
.pm-row.off .nm { color: var(--muted); }
.pm-row.review { border-color: #e0b04f; background: #fffaf0; }
.pm-open { flex: 1; min-width: 0; text-align: left; background: none; border: none; box-shadow: none; margin: 0; padding: 8px; color: var(--text); display: flex; flex-direction: column; gap: 2px; border-radius: 9px; width: auto; }
.pm-open:hover { background: var(--green-softer); color: var(--text); }
.pm-open .nm { font-weight: 700; font-size: .97rem; }
.pm-open .sz { color: var(--muted); font-size: .84rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-switch { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0; cursor: pointer; flex: 0 0 auto; font-weight: 600; }
.pm-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pm-switch .tr { width: 40px; height: 24px; border-radius: 999px; background: #cfd8d2; position: relative; transition: background .15s; }
.pm-switch .tr::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s; }
.pm-switch input:checked + .tr { background: var(--green); }
.pm-switch input:checked + .tr::after { left: 19px; }
.pm-switch input:focus-visible + .tr { outline: 2px solid var(--green-dark); outline-offset: 2px; }
.pm-switch .tx { font-size: .7rem; color: var(--muted); }
.pm-add-here { display: block; width: 100%; margin: 6px 0 0; border: 1.5px dashed var(--border-strong); background: var(--green-softer); color: var(--green-dark); font-weight: 800; border-radius: 12px; padding: 12px; box-shadow: none; }
.pm-sheet-back { position: fixed; inset: 0; z-index: 60; background: rgba(20,35,28,.45); display: flex; align-items: flex-end; justify-content: center; }
.pm-sheet { background: #fff; width: 100%; max-width: 560px; max-height: 88vh; border-radius: 18px 18px 0 0; display: flex; flex-direction: column; box-shadow: 0 -10px 30px rgba(0,0,0,.2); }
.pm-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 6px; }
.pm-sheet-head h3 { margin: 0; font-size: 1.15rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-sheet-head button { width: 36px; height: 36px; margin: 0; padding: 0; border-radius: 50%; flex: 0 0 auto; }
.pm-sheet-body { overflow-y: auto; padding: 4px 18px calc(18px + env(safe-area-inset-bottom)); }
.pm-sheet-body .pi-edit { border-top: none; margin-top: 0; }
.pm-sheet-acts { display: flex; gap: 10px; margin-top: 16px; position: sticky; bottom: 0; background: #fff; padding-top: 8px; }
.pm-sheet-acts button { flex: 1; margin: 0; }
.pm-sheet-acts .danger { flex: 0 0 auto; color: #b3261e; border-color: #f0c9c5; }
.sz-row.no-serves, .sz-head.no-serves { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) auto; }
@media (min-width: 900px) {
  .pm-body { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
  .pm-nav { top: 12px; margin: 0; padding: 0; border-right: 1px solid var(--border); padding-right: 14px; }
  .pm-search { margin: 0 0 10px; }
  .pm-secs { flex-direction: column; overflow: visible; padding: 0; gap: 4px; }
  .pm-sec { border-radius: 10px; border-color: transparent; justify-content: flex-start; padding: 9px 10px; }
  .pm-sec .l { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; }
  .pm-sec:hover:not(.on) { background: var(--green-softer); }
  .pm-sheet-back { align-items: center; }
  .pm-sheet { border-radius: 18px; max-height: 84vh; }
  .pm-rows-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
}
/* Daily menu: saved dishes browser — one section at a time */
#catalog-chips { display: block !important; }
.cat-bar { position: sticky; top: 0; z-index: 2; background: #fafcfb; padding: 4px 0 2px; }
.cat-bar .pm-search { margin: 0 0 8px; }
.cat-bar .pm-secs { padding: 2px 0 6px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-sec:hover:not(.on) { background: var(--green-softer); color: var(--text); border-color: var(--border-strong); }
.pm-sec:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 2px; }
@media (min-width: 900px) {
  .cat-bar .pm-secs { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .cat-bar .pm-sec { border-radius: 999px; border-color: var(--border-strong); padding: 7px 12px; }
  .cat-bar .pm-sec .l { flex: none; }
}

/* Help & ideas: quick answers, confirmation, conversations, new-reply badges */
.help-card { max-width: 640px; }
.help-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.qa { border-top: 1px solid var(--border); }
.qa summary { cursor: pointer; list-style: none; padding: 12px 30px 12px 2px; font-weight: 700; position: relative; min-height: 44px; display: flex; align-items: center; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "▾"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.qa[open] summary::after { content: "▴"; }
.qa > div { padding: 0 2px 12px; font-size: .94rem; line-height: 1.5; }
.qa ol { margin: 0 0 6px; padding-left: 22px; }
.qa li { margin: 5px 0; }
.qa p { margin: 6px 0; }
.help-sent { background: var(--green-soft); border: 1px solid #bfe3cd; color: var(--green-dark); border-radius: 12px; padding: 12px 14px; font-weight: 600; margin: 6px 0 10px; line-height: 1.4; }
.msg.warn { color: var(--warn-fg, #8a5a00); }
label.disabled { opacity: .55; pointer-events: none; }
.req-new { background: #e0982f; color: #fff; border-radius: 999px; font-size: .72rem; font-weight: 800; padding: 2px 8px; }
.req-row.has-new { border-left: 3px solid #e0982f; padding-left: 10px; }
.req-row .req-text.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.req-latest { font-size: .9rem; padding: 6px 10px; border-radius: 0 8px 8px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.req-latest.from-admin { background: var(--green-softer); border-left: 3px solid var(--green); }
.req-latest.from-seller { background: #f4f2ec; border-left: 3px solid #d9d4c7; }
button.req-toggle, button.req-resolved-toggle { background: none; border: none; box-shadow: none; color: var(--green-dark); font-weight: 700; padding: 8px 0; margin: 0; width: auto; min-height: 40px; text-align: left; cursor: pointer; font-size: .9rem; }
button.req-resolved-toggle { display: block; width: 100%; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }
.sheet .badge { margin-left: 8px; vertical-align: middle; }
.tabbar a { position: relative; }
.tab-dot { position: absolute; top: 8px; left: calc(50% + 8px); width: 10px; height: 10px; border-radius: 50%; background: #e0982f; border: 2px solid #fff; }
@media (max-width: 420px) { .help-pick { gap: 10px; } .help-choice { min-height: 96px; padding: 14px; } }

/* Help & ideas: vendor guide video */
.help-video .hv-row { display: flex; gap: 14px; align-items: center; }
.hv-thumb { position: relative; flex: 0 0 auto; width: 72px; height: 128px; padding: 0; margin: 0; border: none; border-radius: 12px; overflow: hidden; background: #0b5c3c; box-shadow: 0 4px 14px -6px rgba(0,0,0,.4); cursor: pointer; }
.hv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv-play { position: absolute; inset: 0; margin: auto; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--green-dark); display: grid; place-items: center; font-size: 1rem; padding-left: 3px; }
.hv-link { display: inline-block; margin-top: 6px; font-weight: 700; font-size: .9rem; color: var(--green-dark); text-decoration: none; }
#help-video-wrap { margin-top: 12px; }
#help-video-wrap video { display: block; width: 100%; max-width: 360px; margin: 0 auto; aspect-ratio: 9 / 16; border-radius: 16px; background: #0b5c3c; }

/* ================= signed-out landing (omea.biz) ================= */
.landing { --leaf: #0b5c3c; --leaf-2: #12885a; --turmeric: #e9a23b; --turmeric-soft: #fbefd9; --turmeric-ink: #7a4d05; --chat: #e5ece2; --ink: #14211a;
  --display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  max-width: 1180px; margin: 0 auto; padding: 0 24px; color: var(--ink); }
.landing.hidden { display: none; }
.ld-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0 8px; }
.ld-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.4rem/1 var(--display); letter-spacing: -0.02em; }
.ld-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--leaf-2); display: grid; place-items: center; }
.ld-mark svg { width: 22px; height: 22px; }
.ld-nav { display: flex; gap: 22px; }
.ld-nav a { color: var(--muted); font-weight: 600; font-size: .95rem; text-decoration: none; padding: 8px 0; }
.ld-nav a:hover { color: var(--ink); }

.ld-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(20px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); }
.ld-copy h1 { font: 800 clamp(2.3rem, 4.6vw, 3.7rem)/1.02 var(--display); letter-spacing: -0.03em; margin: 0; max-width: 15ch; text-wrap: balance; }
.ld-lede { margin: 18px 0 0; font-size: 1.1rem; line-height: 1.6; color: var(--muted); max-width: 52ch; }
.ld-signin { margin-top: 26px; max-width: 420px; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 20px 20px 18px; box-shadow: var(--shadow-md); }
.ld-signin h2 { margin: 0 0 14px; font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; }
.ld-signin button { min-height: 50px; font-size: 1rem; }
.ld-video { margin-top: 18px; display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); padding: 8px 18px 8px 8px; border-radius: 16px; border: 1.5px solid var(--border-strong); background: rgba(255,255,255,.6); max-width: 420px; }
.ld-video:hover { border-color: var(--leaf-2); background: #fff; }
.ld-video img { width: 40px; height: 71px; object-fit: cover; border-radius: 8px; flex: none; }
.ld-video b { display: block; font-size: .98rem; }
.ld-video span span { display: block; color: var(--muted); font-size: .86rem; line-height: 1.35; }

/* the signature: a WhatsApp menu turning into an order board */
.ld-demo { position: relative; background: var(--leaf); border-radius: 32px; padding: 28px 26px 200px; overflow: hidden; }
.ld-demo::before { content: ""; position: absolute; inset: auto -80px -120px auto; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(233,162,59,.35), rgba(233,162,59,0) 65%); }
.ld-chat { position: relative; width: min(100%, 320px); background: var(--chat); border-radius: 20px; overflow: hidden; box-shadow: 0 18px 40px -18px rgba(0,0,0,.55); }
.ld-chat-head { display: flex; align-items: center; gap: 10px; background: #1f6f54; color: #fff; padding: 10px 12px; }
.ld-chat-head b { display: block; font-size: .92rem; }
.ld-chat-head small { display: block; font-size: .74rem; color: rgba(255,255,255,.78); }
.ld-av { width: 32px; height: 32px; border-radius: 50%; background: #f4b860; display: grid; place-items: center; font-size: 17px; }
.ld-feed { display: flex; flex-direction: column; gap: 8px; padding: 12px 10px 14px; }
.ld-msg { position: relative; max-width: 88%; background: #fff; border-radius: 4px 12px 12px 12px; padding: 7px 10px 18px; font-size: .84rem; line-height: 1.42; white-space: pre-line; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.ld-who { display: block; color: #c0532e; font-weight: 700; font-size: .78rem; }
.ld-mine { align-self: flex-end; background: #dcf5c6; border-radius: 12px 4px 12px 12px; }
.ld-link { color: #1a73c9; text-decoration: underline; }
.ld-time { position: absolute; right: 8px; bottom: 3px; font-size: .68rem; color: #74847b; white-space: nowrap; }

.ld-board { position: absolute; right: 22px; bottom: 22px; width: min(78%, 330px); background: #fff; border-radius: 18px; padding: 14px 14px 12px; box-shadow: 0 22px 44px -16px rgba(0,0,0,.55); }
.ld-board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.ld-board-head b { font: 800 1.05rem/1.1 var(--display); }
.ld-total { font-size: .8rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.ld-dishes { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 7px; }
.ld-dishes li { display: grid; grid-template-columns: 112px minmax(0, 1fr) 54px; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; }
.ld-bar { height: 8px; border-radius: 99px; background: #edf2ee; overflow: hidden; }
.ld-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--leaf-2); transform-origin: left; }
.ld-n { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .76rem; }
.ld-tickets { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px dashed var(--border-strong); display: grid; gap: 6px; }
.ld-tickets li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: .8rem; background: #f6f9f6; border-radius: 10px; padding: 7px 9px; }
.ld-tickets em { font-style: normal; font-weight: 700; font-size: .7rem; padding: 2px 8px; border-radius: 99px; background: var(--turmeric-soft); color: var(--turmeric-ink); white-space: nowrap; }
.ld-tickets em.ld-paid { background: #e3f3ea; color: var(--leaf); }

/* one orchestrated moment: the menu lands, then orders arrive and the counts fill */
@media (prefers-reduced-motion: no-preference) {
  .ld-mine { animation: ld-pop .5s cubic-bezier(.2,.8,.2,1) .35s both; }
  .ld-board { animation: ld-rise .6s cubic-bezier(.2,.8,.2,1) 1s both; }
  .ld-bar i { animation: ld-fill 1.4s cubic-bezier(.2,.8,.2,1) 1.4s both; }
  .ld-tickets li { animation: ld-pop .45s cubic-bezier(.2,.8,.2,1) both; }
  .ld-tickets li:nth-child(1) { animation-delay: 1.6s; }
  .ld-tickets li:nth-child(2) { animation-delay: 2.2s; }
  .ld-tickets li:nth-child(3) { animation-delay: 2.8s; }
}
@keyframes ld-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ld-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes ld-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.ld-steps { border-top: 1px solid var(--border-strong); padding: clamp(32px, 5vw, 56px) 0; }
.ld-steps h2 { font: 800 clamp(1.5rem, 2.6vw, 2rem)/1.1 var(--display); letter-spacing: -0.02em; margin: 0 0 22px; }
.ld-steps ol { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.ld-steps li { counter-increment: st; display: grid; gap: 6px; align-content: start; }
.ld-steps li::before { content: counter(st); width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--leaf-2); color: #fff; font: 800 1.05rem/1 var(--display); margin-bottom: 4px; }
.ld-steps li b { font-size: 1.08rem; }
.ld-steps li span { color: var(--muted); line-height: 1.55; }
.ld-party { margin: 28px 0 0; padding: 16px 18px; border-radius: 16px; background: var(--turmeric-soft); color: #4d3509; line-height: 1.55; max-width: 820px; }
.ld-party b { color: var(--turmeric-ink); }
.ld-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid var(--border-strong); padding: 22px 0 32px; color: var(--muted); font-size: .88rem; }
.ld-foot a { color: var(--muted); }
.landing a:focus-visible, .landing button:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 3px; }

@media (min-width: 901px) and (max-width: 1180px) { .ld-demo { padding-bottom: 236px; } .ld-board { width: min(84%, 320px); } }
@media (max-width: 900px) {
  .ld-main { grid-template-columns: minmax(0, 1fr); }
  .ld-steps ol { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ld-steps li { grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; }
  .ld-steps li::before { grid-row: 1 / span 2; margin: 0; }
}
@media (max-width: 560px) {
  .landing { padding: 0 16px; }
  .ld-nav a:first-child { display: none; }
  .ld-copy h1 { font-size: 2.2rem; }
  .ld-lede { font-size: 1.02rem; }
  .ld-signin { padding: 18px 16px 16px; }
  .ld-video { max-width: 100%; }
  .ld-demo { padding: 18px 14px 232px; border-radius: 26px; }
  .ld-chat { width: 100%; }
  .ld-board { left: 14px; right: 14px; bottom: 14px; width: auto; }
  .ld-dishes li { grid-template-columns: 116px minmax(0, 1fr) 48px; font-size: .78rem; }
}
