/* ==========================================================================
   Batch 8 (2026-11-08) - tenant app: Wi-Fi + PG info card, house rules, emergency
   details, SOS (Profile, bottom), meal rating inside Today's menu. App tokens only,
   so light + dark work; mobile first, nothing fixed-width.
   ========================================================================== */
.sf-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; margin: 16px 0; box-shadow: 0 14px 30px -24px rgba(15, 23, 42, .35); min-width: 0; }
.sf-h { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; min-width: 0; }
.sf-h h3 { margin: 0; font-size: 16.5px; font-weight: 800; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.sf-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; flex: none; background: var(--brand-50); }
.sf-sub { margin: 0 0 10px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.sf-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-soft); min-width: 0; }
.sf-row:first-of-type { border-top: 0; }
.sf-grow { flex: 1 1 auto; min-width: 0; }
.sf-row b { display: block; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.sf-row small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; line-height: 1.4; }
.sf-pw { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; letter-spacing: .03em; color: var(--ink); overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }
.sf-btn { font: inherit; font-size: 13.5px; font-weight: 750; border-radius: 11px; padding: 9px 12px; min-height: 40px; border: 1px solid var(--line); background: var(--card); color: var(--brand-800); cursor: pointer; white-space: nowrap; flex: none;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.sf-btn:focus-visible { outline: 3px solid rgba(59, 99, 232, .45); outline-offset: 2px; }
.sf-btn.is-done { color: #0f7a4f; border-color: #b7ebd3; background: #e9fbf3; }
:root[data-theme="dark"] .sf-btn.is-done { color: #4ade80; border-color: #1c6b56; background: #0f3b31; }
.sf-rules { margin: 0 0 12px 18px; padding: 0; font-size: 14px; line-height: 1.7; color: var(--ink); }
.sf-rules li { overflow-wrap: anywhere; }

/* emergency details form */
.sf-form .sf-lbl { display: block; font-size: 13px; font-weight: 750; margin: 12px 0 6px; color: var(--ink); }
.sf-form .sf-lbl:first-child { margin-top: 0; }
.sf-form .input { width: 100%; box-sizing: border-box; min-width: 0; }
.sf-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
@media (max-width: 340px) { .sf-2 { grid-template-columns: minmax(0, 1fr); } }
.sf-blood { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sf-blood button { font: inherit; font-size: 14.5px; font-weight: 800; padding: 10px 0; min-height: 44px; border-radius: 12px; background: var(--bg); color: var(--ink); border: 1.5px solid var(--line); cursor: pointer; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.sf-blood button[aria-pressed="true"] { background: #fdecec; color: #b42318; border-color: #ef4444; }
:root[data-theme="dark"] .sf-blood button[aria-pressed="true"] { background: #3b1414; color: #fecaca; border-color: #ef4444; }
.sf-private { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; line-height: 1.45; }

/* SOS card at the very bottom of the Profile sheet - small, one short line */
.sf-sos { display: flex; align-items: center; gap: 10px; width: calc(100% - 32px); box-sizing: border-box; margin: 12px 16px 6px; padding: 9px 12px;
  border-radius: 14px; border: 1.5px solid #fecaca; background: #fff5f5; font: inherit; text-align: left; cursor: pointer;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:root[data-theme="dark"] .sf-sos { background: #2a0f17; border-color: #7f1d1d; }
.sf-sos .ring { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #dc2626; color: #fff; font-weight: 900; font-size: 10.5px; letter-spacing: .02em; }
.sf-sos b { display: block; font-size: 14px; color: #991b1b; }
:root[data-theme="dark"] .sf-sos b { color: #fecaca; }
.sf-sos small { display: block; font-size: 12px; color: #7f1d1d; }
:root[data-theme="dark"] .sf-sos small { color: #fca5a5; }

/* SOS sheet: hold ring + cancel */
.sf-hold-wrap { text-align: center; }
.sf-hold { position: relative; width: 132px; height: 132px; margin: 12px auto 10px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: conic-gradient(#dc2626 calc(var(--p, 0) * 1%), #fecaca 0); display: grid; place-items: center;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; -webkit-tap-highlight-color: transparent; }
.sf-hold span { width: 106px; height: 106px; border-radius: 50%; background: #ef4444; color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 15px; line-height: 1.2; }
.sf-hold:focus-visible { outline: 3px solid rgba(220, 38, 38, .5); outline-offset: 4px; }
.sf-kinds { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 4px 0 10px; }
.sf-kinds button { font: inherit; font-size: 13.5px; font-weight: 750; padding: 8px 12px; min-height: 40px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.sf-kinds button[aria-pressed="true"] { border-color: #ef4444; background: #fdecec; color: #b42318; }
:root[data-theme="dark"] .sf-kinds button[aria-pressed="true"] { background: #3b1414; color: #fecaca; }
.sf-sent { text-align: center; }
.sf-sent .big { font-size: 19px; font-weight: 850; color: var(--ink); margin: 8px 0 4px; }
.sf-count { font-size: 13px; color: var(--muted); }
.sf-call { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; text-align: center; }

/* meal rating inside Today's menu tiles */
.fd-rate { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.fd-rate-q { font-size: 13px; font-weight: 750; color: var(--ink); margin: 0 0 8px; }
.fd-rate-btns { display: flex; gap: 8px; }
.fd-rate-btns button { flex: 1 1 0; font: inherit; font-size: 20px; line-height: 1; padding: 9px 0; min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer;
  -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.fd-rate-btns button[aria-pressed="true"] { border-color: #3b63e8; background: var(--brand-50); box-shadow: 0 0 0 3px rgba(59, 99, 232, .18); }
.fd-rate-more { display: flex; gap: 8px; margin-top: 8px; align-items: stretch; }
.fd-rate-more .input { flex: 1 1 auto; min-width: 0; font-size: 14px; }
.fd-rate-more .btn { flex: none; }
.fd-rate-done { font-size: 12.5px; font-weight: 700; color: var(--muted); }

/* Emergency numbers: name in bold, number is a call link */
.sf-calls { display: grid; gap: 8px; margin-top: 8px; }
.sf-call-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 8px 12px; border-radius: 12px;
  border: 1.5px solid #bbf7d0; background: #f0fdf4; color: #14532d; text-decoration: none; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
.sf-call-row b { font-size: 14.5px; color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
.sf-call-row span { flex: none; font-weight: 800; font-size: 14px; color: #15803d; white-space: nowrap; }
.sf-call-row:active { background: #dcfce7; }
.sf-call-row:focus-visible { outline: 2px solid #16a34a; outline-offset: 2px; }
.sf-call-row.is-text { border-color: var(--line-soft); background: transparent; }
:root[data-theme="dark"] .sf-call-row { background: #0f2a1d; border-color: #1c6b56; }
:root[data-theme="dark"] .sf-call-row span { color: #4ade80; }
:root[data-theme="dark"] .sf-call-row.is-text { background: transparent; border-color: #374151; }
@media (max-width: 340px) { .sf-call-row { flex-wrap: wrap; } }

/* Wi-Fi password hidden by default with an eye button (owner 2026-11-16). */
.sf-pwbox { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; max-width: 100%; }
.sf-pwbox .sf-pw { letter-spacing: .08em; }
.sf-pwbox .sf-pw[data-shown="1"] { letter-spacing: .03em; }
.sf-eye { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; margin: -4px 0;
  border: 1px solid var(--line, #e3e8f2); border-radius: 8px; background: var(--card, #fff); color: var(--ink-soft, #5a6687); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sf-eye:active { transform: scale(.94); }
.sf-eye[aria-pressed="true"] { color: #1f55c4; border-color: #b9c7e6; background: #eef3ff; }
:root[data-theme="dark"] .sf-eye { background: transparent; border-color: #36406a; color: #c9d2f0; }
:root[data-theme="dark"] .sf-eye[aria-pressed="true"] { color: #93b4ff; background: rgba(147, 180, 255, .12); }
