/* Meeting Ground members portal – neutral white-label palette (each client sets its own colours in js/corp.js), large readable type, mobile first. */
:root {
  /* Brand colours. These defaults are Meeting Ground's; the portal replaces them with CORP.theme from js/corp.js.
     Text colours are tuned for WCAG AA contrast with white and sand backgrounds (at least 4.5:1). */
  --brand: #1f4a43;
  --brand-dark: #163631;
  --accent: #8a5713;
  --accent-dark: #734810;
  --accent-bright: #d4953f; /* decorative only: dots, borders, focus rings */
  --on-brand: #e6efea;      /* text on the side menu and header art */
  --sand: #f4f1ea;
  --sand-2: #faf8f4;
  --tint: #ece9df;          /* soft panels: cultural notices, veils */
  --line: #dedacd;
  --ink: #1d2422;
  --muted: #55605b;
  --green: #2f6b3a;
  --green-bg: #e5f0e6;
  --amber-bg: #fff4e0;
  --danger: #a3271b;
  --danger-bg: #fbe7e4;
  --blue: #2c5d7c;
  --blue-bg: #e3eef5;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 30, 28, .06), 0 4px 14px rgba(20, 30, 28, .06);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 1rem; line-height: 1.5; color: var(--ink); background: var(--sand); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; margin: 0 0 .5em; color: var(--brand-dark); }
h1 { font-size: 1.75rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.1rem; }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: var(--brand-dark); color: var(--on-brand); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 18px; color: #fff; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.logo-slot { display: inline-flex; flex: none; }
.brand-logo { height: 46px; width: auto; max-width: 120px; background: #fff; border-radius: 8px; padding: 3px; }
.logo-slot.has-logo .brand-mark { display: none; }
.eyebrow { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--accent-dark); margin-bottom: 4px; }
.auth-art .eyebrow { color: var(--accent-bright); margin-top: 28px; }
.welcome { border-left: 5px solid var(--accent-bright); padding-left: 14px; margin-bottom: 18px; }
.welcome h1 { margin: 0; }
.brand b { display: block; font-family: var(--serif); font-size: 1.15rem; letter-spacing: .02em; }
.brand small { display: block; font-size: .72rem; opacity: .8; line-height: 1.2; }
.nav a { display: flex; align-items: center; gap: 10px; color: var(--on-brand); text-decoration: none; padding: 9px 12px; border-radius: 8px; font-size: .97rem; }
.nav a:hover { background: rgba(255, 255, 255, .08); }
.nav a.on { background: var(--accent); color: #fff; font-weight: 600; }
.nav .sec { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; opacity: .6; padding: 14px 12px 4px; }
.nav .ico { width: 20px; text-align: center; }
.nav .pill { margin-left: auto; background: #fff; color: var(--brand); border-radius: 99px; font-size: .72rem; padding: 0 7px; font-weight: 700; }
.side-foot { margin-top: auto; font-size: .75rem; opacity: .7; padding: 12px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 12px; padding: 12px 24px; background: var(--sand-2); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top .title { font-weight: 600; font-size: 1.05rem; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { position: relative; background: none; border: 0; padding: 8px; border-radius: 50%; cursor: pointer; font-size: 1.25rem; line-height: 1; color: var(--brand-dark); text-decoration: none; }
.icon-btn:hover { background: var(--line); }
.badge { position: absolute; top: 2px; right: 0; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 700; border-radius: 99px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; flex: none; object-fit: cover; }
.avatar.sm { width: 30px; height: 30px; font-size: .78rem; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.4rem; }
.content { padding: 24px; max-width: 1100px; width: 100%; }
.demo-bar { background: #1d2422; color: var(--on-brand); font-size: .85rem; padding: 6px 24px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.demo-bar select { background: #34413d; color: #fff; border: 0; border-radius: 6px; padding: 2px 6px; }
.bottom-nav { display: none; }

/* ---------- components ---------- */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 8px; padding: 10px 18px; font-weight: 600; cursor: pointer; background: var(--accent); color: #fff; text-decoration: none; font-size: .95rem; min-height: 42px; }
.btn:hover { background: var(--accent-dark); }
.btn.secondary { background: #fff; color: var(--brand); border: 1.5px solid var(--line); }
.btn.secondary:hover { background: var(--sand-2); }
.btn.green { background: var(--green); } .btn.green:hover { background: #24552d; }
.btn.danger { background: var(--danger); }
.btn.ghost { background: none; color: var(--brand); padding: 6px 10px; min-height: 0; }
.btn.ghost:hover { background: var(--sand); }
.btn.sm { padding: 6px 12px; min-height: 34px; font-size: .85rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.block { width: 100%; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 99px; background: var(--sand); color: var(--brand); }
.tag.agm { background: var(--brand); color: #fff; }
.tag.meeting { background: var(--blue-bg); color: var(--blue); }
.tag.urgent { background: var(--danger); color: #fff; }
.tag.project { background: var(--green-bg); color: var(--green); }
.tag.employment { background: #efe6f7; color: #5b3a7a; }
.tag.nativetitle { background: #e8eef0; color: #24525e; }
.tag.cultural { background: var(--tint); color: var(--brand-dark); }
.tag.directors { background: #1d2422; color: var(--on-brand); }
.tag.draft { background: #ddd; color: #444; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; }
.status.ok { color: var(--green); } .status.warn { color: var(--accent-dark); } .status.bad { color: var(--danger); } .status.none { color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.alert { border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; font-size: .95rem; border-left: 4px solid; }
.alert.info { background: var(--blue-bg); border-color: var(--blue); }
.alert.warn { background: var(--amber-bg); border-color: var(--accent); }
.alert.ok { background: var(--green-bg); border-color: var(--green); }
.alert.bad { background: var(--danger-bg); border-color: var(--danger); }
.alert.culture { background: var(--tint); border-color: var(--brand); }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { border-bottom: 1px solid var(--line); padding: 14px 0; }
.list > li:last-child { border-bottom: 0; }
.notice-item { display: flex; gap: 14px; text-decoration: none; color: inherit; }
.notice-item:hover h3 { text-decoration: underline; }
.notice-item h3 { margin: 4px 0; font-family: var(--font); font-size: 1.05rem; color: var(--ink); }
.unread-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-bright); flex: none; margin-top: 8px; }
.unread-dot.read { background: transparent; }
.date-tile { flex: none; align-self: flex-start; width: 58px; text-align: center; background: var(--brand); color: #fff; border-radius: 10px; padding: 6px 0; line-height: 1.1; }
.date-tile .m { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.date-tile .d { font-size: 1.5rem; font-weight: 700; font-family: var(--serif); }
.stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.stat .n { font-size: 1.9rem; font-weight: 700; font-family: var(--serif); color: var(--brand-dark); line-height: 1.1; }
.stat .l { font-size: .85rem; color: var(--muted); }
.meter { height: 8px; background: var(--sand); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.meter > span { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.meter.ochre > span { background: var(--accent); }
.body-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 14px; cursor: pointer; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs button.on { color: var(--brand); border-color: var(--accent-bright); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 12px; cursor: pointer; font-size: .88rem; }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* forms */
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.field { margin-bottom: 14px; }
.field .hint { font-weight: 400; font-size: .82rem; color: var(--muted); }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=datetime-local], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; min-height: 44px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(200, 118, 43, .2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.form-err { color: var(--danger); font-size: .9rem; min-height: 1.2em; }

/* tables */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.t th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
table.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:hover td { background: var(--sand-2); }

/* community */
.post-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.post-head .who { font-weight: 600; }
.post-img { max-width: 100%; border-radius: 10px; margin: 8px 0; display: block; }
.post-actions { display: flex; gap: 4px; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 6px; }
.post-actions .btn.ghost.on { color: var(--danger); }
.comment { display: flex; gap: 10px; padding: 8px 0; }
.comment .bubble { background: var(--sand-2); border-radius: 12px; padding: 8px 12px; flex: 1; }
.veil { background: var(--tint); border-radius: 10px; padding: 14px; text-align: center; }

/* messages */
.msgs { display: grid; grid-template-columns: 320px 1fr; gap: 16px; min-height: 60vh; }
.conv-list a { display: flex; gap: 10px; padding: 12px; text-decoration: none; color: inherit; border-radius: 10px; }
.conv-list a:hover { background: var(--sand-2); }
.conv-list a.on { background: var(--sand); }
.conv-list .t { font-weight: 600; }
.conv-list .unread .t::after { content: " •"; color: var(--accent); }
.thread { display: flex; flex-direction: column; height: 100%; }
.thread-msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 8px 0; max-height: 55vh; }
.msg { max-width: 75%; padding: 10px 14px; border-radius: 14px; background: var(--sand); align-self: flex-start; }
.msg.me { align-self: flex-end; background: var(--brand); color: #fff; }
.msg .meta { font-size: .72rem; opacity: .75; margin-top: 4px; }
.composer { display: flex; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.composer textarea { min-height: 44px; height: 44px; }
.lock-note { font-size: .78rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }

/* toast + modal */
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 50; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow); max-width: 90vw; animation: up .2s ease; }
.toast.ok { background: var(--green); } .toast.bad { background: var(--danger); }
@keyframes up { from { transform: translateY(10px); opacity: 0; } }
.modal-bg { position: fixed; inset: 0; background: rgba(20, 30, 28, .5); z-index: 40; display: grid; place-items: center; padding: 16px; }
.modal { background: #fff; border-radius: var(--radius); padding: 22px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; }

/* auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 55%, #0d211e 100%); color: var(--on-brand); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-art h1 { color: #fff; font-size: 2.2rem; max-width: 14ch; }
.auth-art svg.dunes { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; opacity: .5; }
.auth-art .ack { font-size: .85rem; max-width: 46ch; position: relative; }
.auth-form { display: grid; place-items: center; padding: 32px 20px; }
.auth-form .card { width: 100%; max-width: 420px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin: 14px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .content { padding: 16px 14px 96px; }
  .top { padding: 10px 14px; }
  .bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); z-index: 20; padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav a { flex: 1; text-align: center; padding: 8px 2px 6px; font-size: .7rem; color: var(--muted); text-decoration: none; position: relative; }
  .bottom-nav a .ico { display: block; font-size: 1.3rem; line-height: 1.2; }
  .bottom-nav a.on { color: var(--brand); font-weight: 700; }
  .bottom-nav .badge { top: 2px; right: calc(50% - 22px); }
  .msgs { grid-template-columns: 1fr; }
  .msgs.has-thread .conv-pane { display: none; }
  .msgs:not(.has-thread) .thread-pane { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: 28px 22px 80px; min-height: 0; }
  .auth-art h1 { font-size: 1.6rem; }
  .msg { max-width: 88%; }
}
@media print {
  .side, .top, .bottom-nav, .demo-bar, .btn, .no-print { display: none !important; }
  .app { display: block; } .content { padding: 0; max-width: none; } .card { box-shadow: none; padding: 0; }
  body { background: #fff; }
}
#view:focus { outline: none; } /* focused programmatically after navigation for screen readers; no visible ring needed */
.demo-badge { display: inline-block; background: var(--brand); color: #fff; font-weight: 800; letter-spacing: .14em; font-size: .78rem; padding: 4px 10px; border-radius: 6px; margin-bottom: 10px; }
/* Demo landing page */
.landing .choice h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 18px 0 4px; color: var(--accent-dark); }
.landing .choice h3 svg { flex: none; }
.landing .choice .field { margin-bottom: 10px; }
.landing input:disabled { background: #efede6; cursor: not-allowed; }
/* Help & training */
.nav a.help b { font-weight: 700; }
.help-tips summary { cursor: pointer; }
.help-tips ol { margin: 10px 0 0; padding-left: 20px; }
.help-group { margin-top: 22px; }
.help-group h2 { margin: 0 0 2px; font-size: 1.15rem; }
.help-group > p { margin: 0 0 10px; }
.help-items { display: grid; gap: 10px; }
.help-item { padding: 0; }
.help-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.help-item summary::-webkit-details-marker { display: none; }
.help-item summary:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: -3px; border-radius: 10px; }
.help-ico { color: var(--accent); display: inline-flex; flex: none; }
.help-title { flex: 1; font-weight: 600; }
.help-meta { display: inline-flex; gap: 10px; align-items: center; flex: none; }
.help-item[open] summary { border-bottom: 1px solid var(--line); }
.help-body { padding: 14px 16px 16px; }
.help-video { position: relative; padding-top: 56.25%; border-radius: 8px; overflow: hidden; background: #111816; margin-bottom: 12px; }
.help-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.help-novideo { display: flex; align-items: center; gap: 8px; background: var(--sand); border: 1px dashed var(--line); border-radius: 8px; padding: 12px; color: var(--muted); margin-bottom: 12px; }
.help-steps { margin: 0 0 14px; padding-left: 22px; }
.help-steps li + li { margin-top: 6px; }
/* Members table: keep the member column readable on laptop screens */
#mt td:first-child { min-width: 250px; }
.help-video video { position: absolute; inset: 0; width: 100%; height: 100%; background: #111816; }
/* Grouped options in forms */
fieldset.field { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
fieldset.field legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; padding: 0; }
fieldset.field .check { margin-bottom: 6px; }
/* Keep the first column of admin tables readable */
.table-wrap .t td:first-child { min-width: 190px; }
/* Guided tour */
.tour { position: fixed; inset: 0; z-index: 2000; }
.tour-shade { position: absolute; inset: 0; background: transparent; }
.tour.tour-center .tour-shade { background: rgba(29, 22, 18, .55); }
.tour-ring { position: fixed; border-radius: 12px; box-shadow: 0 0 0 4px var(--accent-bright), 0 0 0 9999px rgba(29, 22, 18, .55); transition: all .25s ease; pointer-events: none; }
.tour-card { position: fixed; background: #fff; color: var(--ink, #1d2422); border-radius: 14px; padding: 18px 18px 14px; box-shadow: 0 18px 50px rgba(0,0,0,.35); border-top: 5px solid var(--accent); outline: none; transition: top .25s ease, left .25s ease; }
.tour-card h2 { margin: 6px 0 6px; font-size: 1.15rem; }
.tour-card p { margin: 0 0 14px; line-height: 1.5; }
.tour-prog { height: 4px; background: var(--tint); border-radius: 4px; overflow: hidden; }
.tour-prog span { display: block; height: 100%; background: var(--accent); transition: width .25s ease; }
.tour-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tour-count { font-size: .85rem; color: var(--muted); }
.tour-btns { display: inline-flex; gap: 6px; }
@media (prefers-reduced-motion: reduce) { .tour-ring, .tour-card, .tour-prog span { transition: none; } }

/* ---------- white-label: "Powered by" mark ---------- */
.powered { margin-top: 10px; font-size: .78rem; letter-spacing: .02em; }
.auth-art .powered { margin-top: 6px; position: relative; z-index: 1; }

/* ---------- reach: spoken notices, plain words, read aloud, shared phone, offline (js/reach.js) ---------- */
.listen { background: var(--sand-2); border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: 10px; padding: 14px 16px; margin: 14px 0; }
.listen h2 { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; margin: 0 0 4px; }
.rec-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; }
.rec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 6px; }
.rec-head strong { font-size: 1.05rem; }
.rec audio { width: 100%; max-width: 520px; display: block; }
.rec video { width: 100%; max-width: 640px; display: block; border-radius: 8px; background: #111816; }
.say-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.plain-words { background: var(--green-bg); border-left: 5px solid var(--green); border-radius: 10px; padding: 14px 18px; margin: 14px 0; }
.plain-words h2 { font-family: var(--font); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--green); margin: 0 0 6px; }
.plain-words p { font-size: 1.25rem; line-height: 1.55; margin: 0; overflow-wrap: anywhere; }
.list > li > .say-item { margin: 6px 0 0 auto; display: flex; }
#reach-say { position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px; z-index: 40; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px;
  background: var(--brand-dark); color: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, .25); width: max-content; max-width: calc(100vw - 32px); }
#reach-say .say-status { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
#reach-say .btn.secondary { background: #fff; }
.offline-note, .shared-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 24px; font-size: .9rem; }
.offline-note { background: var(--amber-bg); color: var(--ink); border-bottom: 1px solid var(--line); font-weight: 600; }
.shared-note { background: var(--blue-bg); color: var(--ink); border-bottom: 1px solid var(--line); }
.shared-note .btn { margin-left: auto; }
.shared-toggle .check { align-items: flex-start; }
.rec-edit { background: var(--sand-2); border-radius: 8px; padding: 10px 12px !important; margin-bottom: 8px; border: 1px solid var(--line) !important; }
.rec-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.rec-fields input { width: 100%; min-width: 0; }
.tap-img { margin-top: 10px; }
@media (max-width: 860px) {
  .offline-note, .shared-note { padding: 6px 14px; }
  #reach-say { bottom: calc(70px + env(safe-area-inset-bottom)); }
}
@media print { .listen, #reach-say, #reach-bar { display: none !important; } }
