:root {
  --bg: #f5f6f8; --card: #fff; --text: #17202a; --muted: #5f6b7a; --line: #e3e7ec;
  --brand: #0f766e; --brand-d: #115e59; --brand-l: #ccfbf1; --danger: #b42318; --danger-l: #fee4e2;
  --warn: #b54708; --ok: #067647; --ok-l: #dcfae6; --radius: 14px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --tabbar-h: 64px; --sidebar-w: 236px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); -webkit-text-size-adjust: 100%; }
body { font-size: 16px; line-height: 1.45; }
a { color: var(--brand); text-decoration: none; }
h1 { font-size: 1.5rem; margin: 0; } h2 { font-size: 1.15rem; margin: 0 0 .75rem; } h3 { font-size: 1rem; margin: 0 0 .5rem; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .right { text-align: right; }
.hidden { display: none !important; }

/* layout */
.app { min-height: 100vh; display: flex; }
.sidebar { display: none; }
.main-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; background: var(--brand); color: #fff; padding: calc(env(safe-area-inset-top) + 10px) 14px 10px; display: flex; align-items: center; gap: 10px; min-height: 56px; }
.topbar .brand { font-weight: 700; font-size: 1.05rem; flex: 1; display: flex; align-items: center; gap: 8px; color: #fff; }
.topbar .brand img { width: 26px; height: 26px; }
.topbar .icon-btn { color: #fff; }
.view { padding: 16px 14px calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom)); max-width: 1180px; width: 100%; margin: 0 auto; outline: none; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: .72rem; font-weight: 600; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.active { color: var(--brand); }
.app.auth .tabbar, .app.auth .sidebar, .app.auth .topbar { display: none !important; }

@media (min-width: 900px) {
  .sidebar { display: flex; flex-direction: column; width: var(--sidebar-w); flex-shrink: 0; background: #0b3b38; color: #d7f5f1; position: sticky; top: 0; height: 100vh; padding: 18px 12px; }
  .sidebar .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: #fff; padding: 4px 10px 18px; }
  .sidebar .brand img { width: 32px; height: 32px; }
  .sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: #c8ebe6; font-weight: 600; }
  .sidebar nav a svg { width: 20px; height: 20px; }
  .sidebar nav a:hover { background: rgba(255,255,255,.07); }
  .sidebar nav a.active { background: rgba(255,255,255,.14); color: #fff; }
  .sidebar .side-foot { margin-top: auto; padding: 10px; font-size: .85rem; color: #9fd6cf; }
  .sidebar .side-foot a { color: #fff; }
  .tabbar { display: none; }
  .topbar { display: none; }
  .view { padding: 28px 32px 48px; }
}

/* page header */
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h1 { flex: 1; min-width: 0; }
.back { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; margin-bottom: 8px; min-height: 36px; }

/* cards & lists */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid.cols-3-lg { grid-template-columns: repeat(3, 1fr); } }
.list { list-style: none; margin: 0; padding: 0; }
.list > li > a, .list > li.row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); color: inherit; min-height: 56px; }
.list > li:last-child > a, .list > li.row:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.chev { color: #9aa4b2; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-l); color: var(--brand-d); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.datebox { width: 52px; flex-shrink: 0; text-align: center; border-radius: 10px; background: var(--brand-l); color: var(--brand-d); padding: 4px 0; line-height: 1.1; }
.datebox b { display: block; font-size: 1.3rem; } .datebox span { font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.empty { text-align: center; padding: 28px 10px; color: var(--muted); }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-word; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: #eef2f6; color: #344054; text-transform: capitalize; white-space: nowrap; }
.pill.confirmed { background: var(--ok-l); color: var(--ok); } .pill.planned { background: #eff4ff; color: #3538cd; }
.pill.in-progress { background: #fef0c7; color: var(--warn); } .pill.completed { background: #f2f4f7; color: #475467; } .pill.cancelled { background: var(--danger-l); color: var(--danger); }
.progress { height: 8px; background: #eaecf0; border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .3s; }

/* forms */
label.f { display: block; margin-bottom: 12px; } label.f > span { display: block; font-size: .85rem; font-weight: 600; color: #344054; margin-bottom: 4px; }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid #d0d5dd; border-radius: 10px; background: #fff; color: var(--text); min-height: 46px; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-l); border-color: var(--brand); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; font-size: .95rem; border: 1px solid #d0d5dd; background: #fff; color: #344054;
  padding: 10px 16px; border-radius: 10px; min-height: 44px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #f9fafb; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; } .btn.primary:hover { background: var(--brand-d); }
.btn.danger { color: var(--danger); border-color: #fda29b; } .btn.danger:hover { background: var(--danger-l); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: .85rem; }
.btn:disabled { opacity: .55; cursor: default; }
.btn svg { width: 18px; height: 18px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.icon-btn svg { width: 22px; height: 22px; } .icon-btn:hover { background: rgba(0,0,0,.05); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.err { color: var(--danger); background: var(--danger-l); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: .9rem; }
.search { position: relative; } .search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; color: var(--muted); }
.search input { padding-left: 44px; min-height: 52px; font-size: 17px; border-radius: 12px; }
.seg { display: inline-flex; background: #eaecf0; border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; font: inherit; font-weight: 600; padding: 8px 12px; border-radius: 8px; color: #475467; min-height: 38px; cursor: pointer; font-size: .9rem; }
.seg button.on { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.seg button .cnt { font-size: .75rem; color: var(--muted); margin-left: 4px; }

/* components editor */
.comp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: #fcfcfd; }
.comp-row .c-name { grid-column: 1 / -1; }
.comp-row .c-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.comp-row label.chk { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.comp-row label.chk input { width: 22px; height: 22px; min-height: 0; }
@media (min-width: 760px) { .comp-row { grid-template-columns: 130px 1fr 90px 90px 150px 44px; align-items: center; } .comp-row .c-name { grid-column: auto; } .comp-row .c-foot { display: contents; } }

/* dish picker */
.pick { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); min-height: 52px; cursor: pointer; }
.pick input { width: 24px; height: 24px; min-height: 0; flex-shrink: 0; accent-color: var(--brand); }
.order-row { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.order-row .grow { flex: 1; min-width: 0; font-weight: 600; }

/* checklist */
.check { display: flex; align-items: flex-start; gap: 12px; padding: 12px 6px; border-bottom: 1px solid var(--line); transition: background .6s; }
.check:last-child { border-bottom: 0; }
.check .box { flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; border: 2px solid #98a2b3; background: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; margin-top: 1px; }
.check .box svg { width: 20px; height: 20px; color: #fff; opacity: 0; }
.check.done .box { background: var(--brand); border-color: var(--brand); } .check.done .box svg { opacity: 1; }
.check .body { flex: 1; min-width: 0; cursor: pointer; }
.check .nm { font-weight: 600; } .check.done .nm { text-decoration: line-through; color: var(--muted); }
.check .qty { font-weight: 700; color: var(--brand-d); white-space: nowrap; }
.check .meta { font-size: .8rem; color: var(--muted); }
.check .who { font-size: .8rem; color: var(--ok); font-weight: 600; }
.check.flash { background: #fff7d6; }
.check .del { opacity: .5; } .check .del:hover { opacity: 1; color: var(--danger); }
.add-item { display: grid; grid-template-columns: 1fr 80px 80px auto; gap: 8px; margin-top: 12px; }
@media (max-width: 520px) { .add-item { grid-template-columns: 1fr 1fr; } .add-item input[name=name] { grid-column: 1 / -1; } .add-item .btn { grid-column: 1 / -1; } }
.presence { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.presence .dot { width: 8px; height: 8px; border-radius: 50%; background: #12b76a; display: inline-block; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: #98a2b3; } .live.on .dot { background: #12b76a; }

/* calendar */
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cal-head h2 { flex: 1; margin: 0; text-align: center; font-size: 1.2rem; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--line); gap: 1px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cal .dow { background: #f9fafb; text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); padding: 8px 0; text-transform: uppercase; }
.cal .day { background: #fff; min-height: 58px; padding: 4px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; border: 0; font: inherit; text-align: left; color: inherit; }
.cal .day.other { background: #fafbfc; color: #b0b8c4; }
.cal .day .n { font-size: .85rem; font-weight: 600; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.cal .day.today .n { background: var(--brand); color: #fff; }
.cal .day.sel { box-shadow: inset 0 0 0 2px var(--brand); }
.cal .chip { display: none; font-size: .72rem; background: var(--brand-l); color: var(--brand-d); border-radius: 6px; padding: 2px 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.cal .chip.cancelled { background: var(--danger-l); color: var(--danger); text-decoration: line-through; }
.cal .dots { display: flex; gap: 3px; padding-left: 4px; } .cal .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
@media (min-width: 700px) { .cal .day { min-height: 110px; padding: 6px; } .cal .chip { display: block; } .cal .dots { display: none; } }

/* lookup results */
.result-group { margin-bottom: 18px; }
.result-group h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 4px; }

/* toasts */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
@media (min-width: 900px) { .toasts { bottom: 24px; left: auto; right: 24px; transform: none; } }
.toast { background: #101828; color: #fff; padding: 12px 14px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.2); font-size: .92rem; animation: tin .2s ease-out; }
.toast.error { background: var(--danger); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

/* login */
.login { min-height: 100vh; width: 100%; display: grid; place-items: center; padding: 20px; background: linear-gradient(160deg, #0b3b38, #0f766e); }
.login .card { width: min(100%, 400px); padding: 28px 24px; }
.login .logo { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; } .login .logo img { width: 40px; }

/* sections, tags, chips */
.sec-group { margin-bottom: 6px; }
.sec-h { text-align: center; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; color: var(--brand-d);
  margin: 14px 0 4px; display: flex; align-items: center; gap: 10px; }
.sec-h::before, .sec-h::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.sec-h .cnt { font-weight: 600; color: var(--muted); letter-spacing: 0; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: #f2f4f7; color: #475467; vertical-align: middle; white-space: nowrap; }
.tag.ok { background: var(--brand-l); color: var(--brand-d); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip-btn { border: 1px dashed #98a2b3; background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .82rem; font-weight: 600; color: #344054; cursor: pointer; min-height: 34px; }
.chip-btn:hover { border-color: var(--brand); color: var(--brand); }
.chk-line { display: flex; align-items: center; gap: 8px; font-size: .9rem; margin: 4px 0 8px; }
.chk-line input { width: 20px; height: 20px; min-height: 0; accent-color: var(--brand); }
.seg.tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; scrollbar-width: none; }
.seg.tabs button { flex-shrink: 0; }

/* event header block (two columns) */
.hb { display: grid; gap: 0 28px; }
@media (min-width: 760px) { .hb { grid-template-columns: 1fr 1fr; } }
.hb-col { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; margin: 0 0 6px; }
.hb-col dt { color: var(--muted); font-size: .9rem; } .hb-col dd { margin: 0; font-weight: 600; word-break: break-word; }
@media (max-width: 420px) { .hb-col { grid-template-columns: 1fr; gap: 0; } .hb-col dd { margin-bottom: 8px; } }
.ev-notes { margin-top: 10px; padding: 10px 12px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; font-size: .92rem; }

/* event menu editor */
.msec { border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px 10px; margin-bottom: 12px; }
.msec-h { display: flex; align-items: center; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.msec-h h3 { margin: 0; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-d); }
.msec-h .sp { flex: 1; }
.mitem { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.mitem .mi-main { flex: 1; min-width: 0; } .mi-name { font-weight: 600; } .mi-note { color: #475467; }
.mitem.replaced .mi-name, .mitem.replaced .mi-note { text-decoration: line-through; color: #98a2b3; }
.mi-panel { background: #f9fafb; border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin: 6px 0 8px; }
.mi-fields { display: grid; gap: 0 10px; margin-top: 8px; } @media (min-width: 640px) { .mi-fields { grid-template-columns: 1fr 1fr; } }
.mi-add { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-top: 10px; }
.mi-add input { min-height: 40px; padding: 8px 10px; }
.sec-add { grid-template-columns: 1fr auto; }
@media (max-width: 560px) { .mi-add { grid-template-columns: 1fr; } .sec-add { grid-template-columns: 1fr auto; } }
.add-item { grid-template-columns: 1fr 80px 80px 150px auto; }
@media (max-width: 700px) { .add-item { grid-template-columns: 1fr 1fr; } .add-item input[name=name], .add-item select, .add-item .btn { grid-column: 1 / -1; } }
.hist li.row { min-height: 0; padding: 10px 4px; }

/* menu template editor */
.msec-ed { padding: 12px; }
.msec-ed-h { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.msec-ed-h .sec-name { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-d); }
.mi-ed { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 8px 0; border-top: 1px dashed var(--line); }
.mi-ed input { min-height: 42px; padding: 8px 10px; }
.mi-ed-name { position: relative; } .mi-ed-name .bdg { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.mi-ed-name input { padding-right: 58px; }
.mi-ed-btns { display: flex; justify-content: flex-end; }
@media (min-width: 1000px) { .mi-ed { grid-template-columns: 1.2fr 1fr auto; align-items: center; } }
.menu-grid { grid-template-columns: 1fr; } @media (min-width: 1000px) { .menu-grid { grid-template-columns: 1.6fr 1fr; } }
.sticky-save { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); background: var(--bg); padding: 10px 0; z-index: 5; }
@media (min-width: 900px) { .sticky-save { bottom: 0; } }

/* printable event sheet */
.sheet-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; } .sheet-bar .sp { flex: 1; }
.sheet { background: #fff; color: #000; max-width: 8.5in; margin: 0 auto; padding: .6in .6in .8in; box-shadow: var(--shadow); border-radius: 4px;
  font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.4; }
.sh-biz { text-align: center; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 10px; }
.sh-biz-name { font-size: 1.5rem; font-weight: 700; letter-spacing: .03em; } .sh-biz-line { font-size: .9rem; }
.sh-title { text-align: center; font-weight: 700; font-size: 1.1rem; margin: 6px 0 10px; }
.sh-head { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; border-bottom: 1px solid #000; padding-bottom: 10px; margin-bottom: 10px; }
.sh-col { border-collapse: collapse; width: 100%; } .sh-col th { text-align: left; vertical-align: top; padding: 2px 8px 2px 0; white-space: nowrap; font-weight: 700; width: 1%; }
.sh-col td { padding: 2px 0; vertical-align: top; }
.sh-notes { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid #000; }
.sh-sec { break-inside: avoid; margin: 0 0 12px; }
.sh-sec h2 { text-align: center; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .12em; text-decoration: underline; text-underline-offset: 4px; margin: 14px 0 6px; }
.sh-sec ul { list-style: none; margin: 0; padding: 0; text-align: center; } .sh-sec li { padding: 2px 0; }
.sh-sec li em { font-style: italic; } .sh-sec li.swapped { color: #555; }
.sheet.hide-swapped li.swapped { display: none; }
@media (max-width: 640px) { .sheet { padding: 18px 14px 28px; font-size: 14px; } .sh-head { grid-template-columns: 1fr; } .sh-col th { white-space: normal; width: 42%; } }

@media print {
  @page { margin: .5in; }
  .sidebar, .tabbar, .topbar, .toasts, .no-print, .back { display: none !important; }
  body, .view, .main-wrap { background: #fff !important; padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .sheet { box-shadow: none; padding: 0; max-width: none; }
  .sh-head { grid-template-columns: 1fr 1fr !important; }
}

/* ---- QA / accessibility pass ---- */
:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; border-radius: 6px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 0; }
.sidebar a:focus-visible { outline-color: #fff; }
/* long names / unbroken strings never overflow their cards */
h1, h2, h3, .title, .list .title, .mi-name, .mi-note, .check .nm, .kv dd, .hb-col dd, .sh-col td, .sh-sec li, .card, .toast { overflow-wrap: anywhere; word-break: normal; }
.list .title { white-space: normal; }
.page-head h1 { min-width: 0; }
/* other-month calendar days: readable contrast (was ~2:1) */
.cal .day.other { color: #737d8c; }
/* segmented links (menus/dishes) look like the tab buttons */
.seg a { display: inline-flex; align-items: center; font-weight: 600; padding: 8px 12px; border-radius: 8px; color: #475467; min-height: 38px; font-size: .9rem; }
.seg a.on { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.stale-banner { display: block; width: 100%; margin: 0 0 12px; padding: 12px 14px; border: 1px solid #fcd34d; background: #fffbeb; color: #92400e;
  border-radius: 10px; font: inherit; font-weight: 600; text-align: left; cursor: pointer; min-height: 44px; }
.check[data-pending] { opacity: .7; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* QA round 2 */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.row2 > * { min-width: 0; }
.row2 input, .row2 select { min-width: 0; max-width: 100%; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }
.cal .day.other, .cal .day.other .n { color: #5f6b7a; }
.mitem.replaced .mi-name, .mitem.replaced .mi-note { color: #5d6676; }
h2.h3 { font-size: 1rem; margin: 0 0 .5rem; }
.result-group h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 4px; }
h1.sh-title { text-align: center; font-weight: 700; font-size: 1.1rem; margin: 6px 0 10px; }

/* v2.2: locks, two-step, staff read-only */
.lock-note { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: #fff7e6; border: 1px solid #f5c26b; color: #6b4300; border-radius: 10px; padding: 6px 10px; margin: 6px 0; font-size: .9rem; }
.lock-note.hidden { display: none; }
.lock-note svg, .lock-wait h1 svg { width: 18px; height: 18px; flex: none; }
a.btn.disabled, a.disabled { opacity: .5; cursor: not-allowed; }
.lock-wait h1 { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; }
.qr { display: flex; justify-content: center; margin: 10px 0; }
.qr img { border: 1px solid var(--line, #e4e7ec); border-radius: 8px; background: #fff; }
.secret { display: block; font-size: 1.05rem; letter-spacing: .06em; background: #f2f4f7; padding: 8px 10px; border-radius: 8px; margin: 4px 0 12px; overflow-wrap: anywhere; user-select: all; }
.steps { padding-left: 20px; margin: 6px 0 4px; }
.rec-codes { columns: 2; font-size: 1rem; padding-left: 24px; }
.rec-codes code { letter-spacing: .04em; }
.user-badges, .user-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tag.danger-tag { background: #fde8e8; color: #9b1c1c; }
.read-only-note { align-self: center; }
