/* EternityCare: resident registration. Colours, type and shapes follow the design (390 px phone frames). */
:root {
  --sa-accent: #0F4C5C;
  --sa-accent-ink: #0A3540;
  --sa-accent-soft: #E3EEF0;
  --sa-accent-text: #0F3B47;
  --sa-gold: #E8A33D;
  --sa-bg: #F5F6F3;
  --sa-ink: #14201F;
  --sa-muted: #4A5856;
  --sa-faint: #5B6866;
  --sa-line: #D5DBD9;
  --sa-field: #C9D2D0;
  --sa-track: #DDE3E1;
  --sa-ok: #2E6B3A;
  --sa-ok-soft: #E9F2EA;
  --sa-ok-line: #B9D6BE;
  --sa-warn: #B86E12;
  --sa-warn-soft: #F6EBD9;
  --sa-warn-ink: #7A4A0E;
  --sa-bad: #B42318;
  --sa-bad-soft: #FDECEA;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sa-bg); color: var(--sa-ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.5; }
a { color: var(--sa-accent); }
a:hover { color: var(--sa-accent-ink); }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.sa-app { max-width: 480px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; }
.sa-noscript { padding: 24px; }
.sa-screen { flex: 1; display: flex; flex-direction: column; gap: 20px; padding: calc(20px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom)); }

/* Welcome */
.sa-welcome { padding: 0; gap: 0; }
.sa-hero { background: var(--sa-accent); color: #fff; padding: calc(44px + env(safe-area-inset-top)) 24px 32px;
  display: flex; flex-direction: column; gap: 12px; border-radius: 0 0 28px 28px; }
.sa-brand { display: flex; align-items: center; gap: 10px; }
.sa-society-logo { background: #fff; border-radius: 14px; padding: 8px 12px; display: inline-flex; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.sa-society-logo img { display: block; width: 150px; height: auto; }
.sa-hero h1 { margin: 8px 0 0; font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.sa-hero .sa-care { color: #F7941D; }  /* as in the EternityCare logo */
.sa-hero p { margin: 0; font-size: 15px; color: #DCEBEE; }
.sa-body { padding: 26px 24px 0; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.sa-h2 { margin: 0; font-size: 18px; font-weight: 700; }
.sa-role { text-align: left; background: #fff; border: 1px solid var(--sa-line); border-radius: 18px; padding: 18px;
  display: flex; gap: 14px; align-items: flex-start; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.sa-role:hover, .sa-role:focus-visible { border-color: var(--sa-accent); box-shadow: 0 0 0 1px var(--sa-accent); outline: none; }
.sa-role-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.sa-role-icon.is-owner { background: var(--sa-accent-soft); }
.sa-role-icon.is-tenant { background: var(--sa-warn-soft); }
.sa-role-text { display: flex; flex-direction: column; gap: 4px; }
.sa-role-text strong { font-size: 16px; }
.sa-role-text small { font-size: 13px; line-height: 1.45; color: var(--sa-muted); }
.sa-helpdesk { margin-top: auto; background: #fff; border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px;
  align-items: center; border: 1px dashed var(--sa-field); font-size: 12.5px; line-height: 1.45; color: var(--sa-muted); }
.sa-helpdesk svg { flex: none; }
.sa-helpdesk strong { color: var(--sa-ink); }
.sa-foot { padding: 20px 24px calc(24px + env(safe-area-inset-bottom)); margin: 0; text-align: center; font-size: 12px; color: var(--sa-faint); }
.sa-foot a { font-weight: 600; }

/* Header with back button and progress */
.sa-top { display: flex; align-items: center; gap: 12px; }
.sa-back { width: 44px; height: 44px; flex: none; border-radius: 12px; background: #fff; border: 1px solid var(--sa-line);
  display: flex; align-items: center; justify-content: center; }
.sa-progress { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.sa-progress-text { font-size: 12px; font-weight: 600; color: var(--sa-muted); }
.sa-progress-bar { height: 6px; border-radius: 3px; background: var(--sa-track); overflow: hidden; }
.sa-progress-bar span { display: block; height: 6px; border-radius: 3px; background: var(--sa-accent); transition: width .3s; }
.sa-ref { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--sa-muted); }

.sa-title { display: flex; flex-direction: column; gap: 6px; }
[tabindex="-1"]:focus { outline: none; }  /* headings get focus on each screen change (for screen readers) */
.sa-title h1 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.sa-title p { margin: 0; font-size: 14px; color: var(--sa-muted); }
.sa-big-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--sa-accent-soft); display: flex; align-items: center; justify-content: center; }

/* Forms */
.sa-form { flex: 1; display: flex; flex-direction: column; gap: 18px; }
.sa-field { display: flex; flex-direction: column; gap: 8px; }
.sa-field label { font-size: 13px; font-weight: 600; }
.sa-field select, .sa-field > input { height: 52px; width: 100%; border-radius: 14px; border: 1px solid var(--sa-field);
  background: #fff; padding: 0 14px; font-size: 16px; }
.sa-field select { appearance: none; -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234A5856' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 40px; }
.sa-field input:focus, .sa-field select:focus, .sa-phone:focus-within { outline: 2px solid var(--sa-accent); outline-offset: 0; border-color: var(--sa-accent); }
.sa-field input.is-soft, .sa-phone.is-soft { background: #F9FAF8; }
.sa-phone { display: flex; height: 52px; border-radius: 14px; border: 1px solid var(--sa-field); background: #fff; overflow: hidden; }
.sa-phone span { padding: 0 14px; display: flex; align-items: center; border-right: 1px solid var(--sa-track); font-weight: 600; }
.sa-phone input { flex: 1; min-width: 0; border: 0; padding: 0 14px; background: transparent; font-size: 16px; outline: none; }
.sa-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sa-grid-building { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
.sa-hint { margin: 0; font-size: 12px; color: var(--sa-faint); }
.sa-chip { margin: 0; background: var(--sa-accent-soft); border-radius: 14px; padding: 12px 14px; font-size: 13px; color: var(--sa-accent-text); font-weight: 600; }
.sa-error { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--sa-bad); }
.sa-error:empty { display: none; }
.sa-form-error { background: var(--sa-bad-soft); border-radius: 12px; padding: 10px 12px; }
.is-invalid { border-color: var(--sa-bad) !important; }

.sa-btn { margin-top: auto; min-height: 54px; width: 100%; border-radius: 16px; border: 0; background: var(--sa-accent); color: #fff;
  font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0 16px; }
.sa-btn:hover { background: var(--sa-accent-ink); }
.sa-btn:disabled { opacity: .6; cursor: progress; }
.sa-btn-outline { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--sa-accent); background: #fff;
  font-size: 13px; font-weight: 700; color: var(--sa-accent); cursor: pointer; align-self: flex-start; }
.sa-link { border: 0; background: none; padding: 0; color: var(--sa-accent); font-weight: 700; cursor: pointer; text-decoration: underline; }

/* OTP */
.sa-otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.sa-otp input { height: 56px; min-width: 0; text-align: center; border-radius: 14px; border: 1px solid var(--sa-field); background: #fff;
  font-size: 22px; font-weight: 700; }
.sa-otp input:focus, .sa-otp input.is-filled { border: 2px solid var(--sa-accent); outline: none; }
.sa-resend { margin: 0; font-size: 13px; color: var(--sa-muted); }
.sa-resend strong { color: var(--sa-ink); }
.sa-test-code { margin: 0; background: var(--sa-warn-soft); color: var(--sa-warn-ink); border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 600; }

/* Cards */
.sa-card { background: #fff; border: 1px solid var(--sa-line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.sa-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sa-card-head strong { font-size: 15px; }
.sa-tag { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--sa-warn-soft);
  color: var(--sa-warn-ink); padding: 4px 8px; border-radius: 8px; }
.sa-note { margin: 0; display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--sa-muted); }
.sa-note svg { flex: none; margin-top: 1px; }
.sa-muted { font-weight: 500; color: var(--sa-faint); }

/* Documents */
.sa-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.sa-doc { background: #fff; border: 1px solid var(--sa-line); border-radius: 16px; padding: 14px; display: flex; align-items: center; gap: 12px; }
.sa-doc-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--sa-accent-soft); display: flex; align-items: center; justify-content: center; }
.sa-doc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sa-doc-text strong { font-size: 14px; }
.sa-doc-text small { font-size: 12px; color: var(--sa-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-doc.is-done .sa-doc-text small { color: var(--sa-ok); font-weight: 600; }
.sa-doc-btn { position: relative; min-height: 44px; padding: 0 12px; border-radius: 12px; display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 700; color: var(--sa-accent); cursor: pointer; }
.sa-doc-btn:focus-within, .sa-tile:focus-within { outline: 2px solid var(--sa-accent); outline-offset: 2px; }
.sa-aadhaar { gap: 10px; padding: 14px; }
.sa-aadhaar > strong { font-size: 14px; }
.sa-tile { position: relative; height: 88px; border-radius: 12px; background: #F9FAF8; border: 1.5px dashed #9AA8A5; display: flex;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 700; cursor: pointer; text-align: center; padding: 0 6px; }
.sa-tile .sa-tile-done { display: none; }
.sa-tile.is-done { background: var(--sa-ok-soft); border: 1px solid var(--sa-ok-line); color: var(--sa-ok); }
.sa-tile.is-done .sa-tile-done { display: block; }
.sa-tile.is-done .sa-tile-add { display: none; }
.is-busy { opacity: .6; pointer-events: none; }

/* Selfie */
.sa-selfie { padding: 14px; }
.sa-selfie-row { display: flex; gap: 14px; align-items: center; }
.sa-selfie-frame { width: 76px; height: 76px; flex: none; border-radius: 50%; background: #EEF1EF; border: 2px dashed #9AA8A5;
  display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sa-selfie.is-done .sa-selfie-frame { border: 2px solid var(--sa-ok); }
.sa-selfie-frame img { width: 100%; height: 100%; object-fit: cover; }
.sa-selfie-text { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sa-selfie-text strong { font-size: 14px; }
.sa-selfie-text small { font-size: 12px; line-height: 1.4; color: var(--sa-muted); }
.sa-camera { display: flex; flex-direction: column; gap: 10px; }
.sa-camera video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; background: #000; transform: scaleX(-1); }
.sa-camera-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.sa-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: var(--sa-muted);
  background: #fff; border: 1px solid var(--sa-line); border-radius: 14px; padding: 14px; cursor: pointer; }
.sa-consent input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--sa-accent); }
.sa-consent strong { color: var(--sa-ink); }
.sa-changes { margin: 0; background: var(--sa-warn-soft); color: var(--sa-warn-ink); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; font-weight: 600; }
.sa-changes.is-bad { background: var(--sa-bad-soft); color: var(--sa-bad); }

/* Visit */
.sa-days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sa-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sa-pick { border-radius: 14px; border: 1px solid var(--sa-field); background: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; cursor: pointer; padding: 0 4px; }
.sa-days .sa-pick { height: 64px; }
.sa-slots .sa-pick { height: 44px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.sa-pick small { font-size: 11px; font-weight: 600; color: var(--sa-muted); }
.sa-pick b { font-size: 17px; font-weight: 800; }
.sa-pick[aria-checked="true"] { border: 2px solid var(--sa-accent); background: var(--sa-accent-soft); color: var(--sa-accent-text); font-weight: 700; }
.sa-pick:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }

/* Timeline */
.sa-timeline { padding: 16px 18px; gap: 0; }
.sa-timeline-head { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--sa-muted); }
.sa-timeline ol { list-style: none; margin: 0; padding: 0; }
.sa-timeline li { position: relative; display: flex; gap: 12px; padding-bottom: 22px; }
.sa-timeline li:last-child { padding-bottom: 0; }
.sa-timeline li::after { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--sa-track); }
.sa-timeline li:last-child::after { display: none; }
.sa-timeline li.is-done::after { background: var(--sa-ok); }
.sa-dot { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--sa-field); background: #fff; display: flex; align-items: center; justify-content: center; }
.is-done .sa-dot { background: var(--sa-ok); border-color: var(--sa-ok); }
.is-current .sa-dot { border: 3px solid var(--sa-warn); }
.is-failed .sa-dot { background: var(--sa-bad); border-color: var(--sa-bad); }
.sa-step { font-size: 14px; font-weight: 500; color: var(--sa-muted); padding-top: 1px; }
.is-done .sa-step, .is-current .sa-step, .is-failed .sa-step { font-weight: 600; color: var(--sa-ink); }
.sa-step small { font-weight: 500; color: var(--sa-faint); }
.is-failed .sa-step small { color: var(--sa-bad); }

.sa-status-actions { margin-top: auto; display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.sa-status-actions .sa-btn-outline { align-self: stretch; }
.sa-status-actions .sa-link { align-self: center; }

.sa-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: calc(100% - 32px);
  background: var(--sa-ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.2); z-index: 10; }

@media (min-width: 520px) {
  body { padding: 24px 0; }
  .sa-app { min-height: auto; background: var(--sa-bg); border-radius: 28px; box-shadow: 0 10px 40px rgba(20, 32, 31, .12); overflow: hidden; }
}

/* Home button (top right) on child pages */
.sa-hero { position: relative; }

/* The KanakCare header, as on the company home page (big logo left, Home right). */
.kc-header { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid #e4e7ec; padding: 10px 16px 8px; }
.kc-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1320px; margin: 0 auto; }
.kc-brand img { display: block; height: 52px; width: auto; }
.kc-home { padding: 6px 12px; border-radius: 999px; border: 1px solid #e4e7ec; font-size: .85rem; font-weight: 600; text-decoration: none;
  color: #0f2747; white-space: nowrap; background: #fff; }
.kc-home:hover { background: #f2f4f7; color: #0f2747; }
@media (max-width: 520px) { .kc-brand img { height: 44px; } }
/* EternityCare home: your registration, services, who has joined */
.sa-mine { background: #fff; border: 2px solid var(--sa-accent); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.sa-mine-top { display: flex; align-items: center; gap: 8px; }
.sa-mine-top .sa-ref { margin-left: auto; }
.sa-mine-unit, .sa-mine-status { margin: 0; font-size: 13.5px; color: var(--sa-muted); }
.sa-mine .sa-btn-outline { margin-top: 6px; }
.sa-badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  background: var(--sa-track); color: var(--sa-ink); }
.sa-badge.is-ok { background: var(--sa-ok-soft); color: var(--sa-ok); }
.sa-badge.is-visit { background: var(--sa-accent-soft); color: var(--sa-accent-text); }
.sa-badge.is-review { background: var(--sa-warn-soft); color: var(--sa-warn-ink); }
.sa-badge.is-bad { background: var(--sa-bad-soft); color: var(--sa-bad); }
.sa-services { display: flex; flex-direction: column; gap: 10px; }
.sa-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sa-service { background: #fff; border: 1px solid var(--sa-line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 4px;
  text-decoration: none; color: var(--sa-ink); }
.sa-service-icon { font-size: 24px; }
.sa-service small { font-size: 12px; color: var(--sa-muted); }
.sa-service.is-locked { opacity: .55; }
.sa-register { display: flex; flex-direction: column; gap: 14px; }
.sa-applications { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.sa-app-counts { margin: 0; font-size: 13px; color: var(--sa-muted); font-weight: 600; }
.sa-app-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--sa-line); border-radius: 16px; overflow: hidden; }
.sa-app-list:empty { display: none; }
.sa-app-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 11px 14px; border-bottom: 1px solid #EEF1EF; }
.sa-app-row:last-child { border-bottom: 0; }
.sa-app-unit { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; display: flex; flex-direction: column; }
.sa-app-unit small { font-size: 12px; font-weight: 500; color: var(--sa-faint); }
.sa-app-review { flex-basis: 100%; font-size: 12.5px; font-weight: 700; }
.sa-applications .sa-link { align-self: center; }
.sa-app-item { border-bottom: 1px solid #EEF1EF; }
.sa-app-item:last-child { border-bottom: 0; }
.sa-app-item .sa-app-row { border-bottom: 0; text-decoration: none; color: inherit; }
.sa-app-row.is-link:hover, .sa-app-row.is-link:focus-visible { background: var(--sa-accent-soft); }
.sa-app-review { color: var(--sa-accent); }
.sa-team-link { display: inline-block; margin-top: 8px; font-size: 11.5px; color: var(--sa-faint); }
.sa-changes.is-ok { background: var(--sa-ok-soft); color: var(--sa-ok); }

/* EternityCare home: the society's logo (as on the property pages), the photo with the title, two boxes */
.sa-welcome { gap: 0; }
.sa-logo-row { padding: 12px 24px 10px; background: #fff; }
.sa-logo-row img { display: block; height: 48px; width: auto; }
.sa-photo-hero { position: relative; margin: 0 16px; border-radius: 20px; overflow: hidden; min-height: 210px; display: flex; align-items: flex-end;
  box-shadow: 0 6px 22px rgba(20, 32, 31, .15); }
.sa-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sa-photo-text { position: relative; width: 100%; padding: 60px 18px 16px; color: #fff;
  background: linear-gradient(to top, rgba(10, 35, 42, .88), rgba(10, 35, 42, .55) 55%, rgba(10, 35, 42, 0)); }
.sa-photo-text h1 { margin: 0 0 6px; font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.sa-photo-text p { margin: 0; font-size: 14px; line-height: 1.45; color: #E6F1F3; }
.sa-photo-text .sa-care { color: #F7941D; }
.sa-boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sa-box { position: relative; text-align: left; background: #fff; border: 1px solid var(--sa-line); border-radius: 18px; padding: 16px 14px;
  display: flex; flex-direction: column; gap: 4px; font: inherit; color: var(--sa-ink); cursor: pointer; min-height: 132px;
  transition: border-color .15s, box-shadow .15s; }
button.sa-box:hover, button.sa-box:focus-visible { border-color: var(--sa-accent); box-shadow: 0 0 0 1px var(--sa-accent); outline: none; }
.sa-box-icon { font-size: 26px; line-height: 1; margin-bottom: 4px; }
.sa-box strong { font-size: 15.5px; }
.sa-box small { font-size: 12.5px; color: var(--sa-muted); line-height: 1.4; }
.sa-box.is-soon { cursor: default; opacity: .75; }
.sa-soon { align-self: flex-start; margin-top: auto; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: var(--sa-warn-soft); color: var(--sa-warn-ink); }

/* Who has joined: photos and document ticks (signed-in residents and the team) */
.sa-app-photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #EEF1EF; flex: none; }
.sa-app-docs { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px; }
.sa-chip { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: #F2F4F3; color: var(--sa-faint); }
.sa-chip.is-ok { background: #E6F2E8; color: #2E6B3A; }
.sa-app-item.is-mine, .sa-app-row.is-mine { background: var(--sa-accent-soft); }
.sa-admin-note a { font-weight: 700; }
.sa-mine-details dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 8px 0; font-size: 14px; }
.sa-mine-details dt { color: var(--sa-muted); font-weight: 600; }
.sa-mine-details dd { margin: 0; overflow-wrap: anywhere; }
.sa-mine-docs { list-style: none; margin: 0; padding: 0; font-size: 14px; display: grid; gap: 4px; }
.sa-mine-docs a { font-weight: 700; }

/* Services (design S1–S4) */
.sa-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sa-box.is-locked { opacity: .75; }
.sa-svc { gap: 16px; }
.sa-svc-tabbed { padding-bottom: 0; }
.sa-svc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sa-svc-heading { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.sa-svc-heading h1 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.sa-svc-heading h1.sa-svc-h1-sm { font-size: 22px; letter-spacing: 0; }
.sa-svc-kicker, .sa-svc-sub { margin: 0; font-size: 13px; color: var(--sa-muted); }
.sa-svc-kicker { font-weight: 600; }
.sa-svc-add { height: 44px; padding: 0 16px; border-radius: 14px; border: 0; background: var(--sa-accent); color: #fff; font: inherit;
  font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; flex: none; }
.sa-svc-add:hover { background: var(--sa-accent-ink); }
.sa-svc-search { height: 50px; border-radius: 14px; border: 1px solid var(--sa-field); background: #fff; display: flex; align-items: center; gap: 10px; padding: 0 14px; }
.sa-svc-search:focus-within { outline: 2px solid var(--sa-accent); border-color: var(--sa-accent); }
.sa-svc-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--sa-ink); outline: none; }
.sa-svc-label { margin: 0; font-size: 13px; font-weight: 700; color: var(--sa-muted); letter-spacing: .04em; text-transform: uppercase; }
.sa-svc-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: -4px; }
.sa-svc-cat { background: #fff; border: 1px solid var(--sa-track); border-radius: 16px; padding: 12px 8px; min-height: 96px; display: flex;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px; font: inherit; color: var(--sa-ink); cursor: pointer; text-align: center; }
.sa-svc-cat:hover { border-color: var(--sa-accent); }
.sa-svc-cat strong { font-size: 12.5px; line-height: 1.2; }
.sa-svc-cat span:last-child { font-size: 11.5px; color: var(--sa-muted); }
.sa-svc-code { width: 36px; height: 36px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; }
.sa-svc-code.is-saffron { background: var(--sa-warn-soft); color: var(--sa-warn-ink); }
.sa-svc-code.is-teal { background: var(--sa-accent-soft); color: var(--sa-accent); }
.sa-svc-disclaimer { margin: 0; background: #fff; border: 1px dashed var(--sa-field); border-radius: 14px; padding: 12px 14px; font-size: 12.5px; line-height: 1.45; color: var(--sa-muted); }
.sa-svc-optout { display: block; margin-top: 4px; }
.sa-tabbar { position: sticky; bottom: 0; margin: auto -24px 0; height: calc(72px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: #fff; border-top: 1px solid var(--sa-track); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); z-index: 5; }
.sa-tabbar a { text-decoration: none; color: var(--sa-muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11.5px; font-weight: 600; }
.sa-tabbar a[aria-current="page"] { color: var(--sa-accent); font-weight: 800; }
.sa-svc-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.sa-svc-pill { height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--sa-field); background: #fff; color: var(--sa-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.sa-svc-pill.is-on { border-color: var(--sa-accent); background: var(--sa-accent); color: #fff; font-weight: 700; }
.sa-svc-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sa-svc-card { background: #fff; border: 1px solid var(--sa-track); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.sa-svc-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sa-svc-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sa-svc-who strong { font-size: 16px; }
.sa-svc-who span { font-size: 12.5px; color: var(--sa-muted); }
.sa-svc-recs { flex: none; font-size: 11.5px; font-weight: 700; background: var(--sa-accent-soft); color: var(--sa-accent-text); padding: 4px 8px; border-radius: 8px; }
.sa-svc-note, .sa-svc-said { margin: 0; font-size: 13px; line-height: 1.45; color: #2F3B39; }
.sa-svc-said { color: var(--sa-muted); font-style: italic; }
.sa-svc-call { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sa-svc-btn { height: 44px; border-radius: 12px; border: 1.5px solid var(--sa-accent); color: var(--sa-accent); background: #fff; text-decoration: none;
  font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; }
.sa-svc-btn.is-solid { background: var(--sa-accent); color: #fff; }
.sa-svc-btn.is-solid:hover { background: var(--sa-accent-ink); }
.sa-svc-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12px; color: var(--sa-muted); }
.sa-svc-links span:first-child { margin-right: auto; }
.sa-svc-links .sa-link { font-size: 12px; font-weight: 600; }
.sa-svc-yours { color: var(--sa-ok); font-weight: 700; }
.sa-svc-missing { margin: auto 0 0; text-align: center; font-size: 12.5px; color: var(--sa-muted); }
.sa-svc-missing a { font-weight: 700; color: var(--sa-accent); }
.sa-svc-form { gap: 14px; }
.sa-svc-form .sa-field { gap: 6px; }
.sa-svc-form textarea { border-radius: 14px; border: 1px solid var(--sa-field); background: #fff; padding: 10px 14px; font: inherit; font-size: 14px; line-height: 1.4; color: var(--sa-ink); resize: vertical; }
.sa-svc-form textarea:focus { outline: 2px solid var(--sa-accent); border-color: var(--sa-accent); }
.sa-svc-form :disabled { opacity: .7; }
.sa-svc-listed { margin: 0; font-size: 12px; font-weight: 600; color: var(--sa-warn-ink); background: var(--sa-warn-soft); border-radius: 10px; padding: 8px 10px; }
.sa-svc-listed.is-bad { color: var(--sa-bad); background: var(--sa-bad-soft); }
.sa-svc-lives { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sa-svc-lives legend { padding: 0; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.sa-svc-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sa-svc-choice label { position: relative; }
.sa-svc-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sa-svc-choice span { height: 44px; border-radius: 12px; border: 1px solid var(--sa-field); background: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: var(--sa-ink); }
.sa-svc-choice input:checked + span { border: 2px solid var(--sa-accent); background: var(--sa-accent-soft); color: var(--sa-accent-text); font-weight: 700; }
.sa-svc-choice input:focus-visible + span { outline: 2px solid var(--sa-accent); outline-offset: 2px; }
.sa-svc-remove { align-self: center; color: var(--sa-bad); }
.sa-svc-thanks { background: var(--sa-ok-soft); border: 1px solid var(--sa-ok-line); border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.sa-svc-thanks p { margin: 0; font-size: 13.5px; line-height: 1.4; color: #1E4A27; }
.sa-svc-thanks-tick { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--sa-ok); display: flex; align-items: center; justify-content: center; }
.sa-svc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sa-svc-stats div { background: #fff; border: 1px solid var(--sa-track); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.sa-svc-stats strong { font-size: 24px; font-weight: 800; color: var(--sa-accent); }
.sa-svc-stats span { font-size: 12px; color: var(--sa-muted); }
.sa-svc-mine { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--sa-track); border-radius: 18px; overflow: hidden; }
.sa-svc-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #EEF1EF; min-height: 68px; }
.sa-svc-row:last-child { border-bottom: 0; }
.sa-svc-row .sa-svc-code { font-size: 14px; }
.sa-svc-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sa-svc-row-text strong { font-size: 14.5px; }
.sa-svc-row-text span { font-size: 12px; color: var(--sa-muted); }
.sa-svc-row-text span.is-off { color: var(--sa-bad); }
.sa-svc-edit { width: 44px; height: 44px; flex: none; border: 0; background: transparent; border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sa-svc-edit:hover { background: var(--sa-bg); }
.sa-svc-another { height: 52px; border-radius: 16px; border: 1.5px dashed var(--sa-accent); color: var(--sa-accent); text-decoration: none; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px; }
.sa-svc-form .sa-consent { background: none; border: 0; border-radius: 0; padding: 0; gap: 10px; line-height: 1.45; color: #2F3B39; }
.sa-svc-form .sa-consent input { width: 20px; height: 20px; }
.sa-wip { margin: 0; background: var(--sa-warn-soft); border-radius: 14px; padding: 10px 14px; font-size: 12.5px; line-height: 1.45; color: var(--sa-warn-ink); }
.sa-wip-tag { display: inline-block; margin-right: 4px; padding: 1px 8px; border-radius: 999px; background: var(--sa-warn); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .02em; }

/* Who has joined: Call, WhatsApp, Locate */
.sa-app-item, .sa-app-row { position: relative; }
.sa-app-acts { display: flex; gap: 8px; flex-basis: 100%; justify-content: flex-end; }
.sa-app-item > .sa-app-acts { padding: 0 14px 11px; }
.sa-act { width: 40px; height: 40px; border-radius: 50%; border: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  text-decoration: none; flex: none; }
.sa-act.is-call { background: var(--sa-accent); color: #fff; }
.sa-act.is-whatsapp { background: #25D366; color: #fff; }
.sa-act.is-locate { background: var(--sa-warn-soft); color: var(--sa-warn-ink); }
.sa-act.is-locked { background: #EEF1EF; color: #9AA5A3; }
.sa-act:focus-visible { outline: 2px solid var(--sa-accent); outline-offset: 2px; }
.sa-map { width: min(100vw - 24px, 720px); max-height: calc(100dvh - 24px); padding: 16px; border: 0; border-radius: 20px; background: #fff;
  color: var(--sa-ink); box-shadow: 0 20px 60px rgba(20, 32, 31, .3); }
.sa-map[open] { display: flex; flex-direction: column; gap: 12px; }
.sa-map::backdrop { background: rgba(20, 32, 31, .55); }
.sa-map-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sa-map-head h2 { margin: 0; font-size: 18px; font-weight: 800; }
.sa-map-head p { margin: 2px 0 0; font-size: 13px; color: var(--sa-muted); }
.sa-map-frame { overflow: auto; border-radius: 14px; border: 1px solid var(--sa-track); max-height: 60dvh; -webkit-overflow-scrolling: touch; }
.sa-map-plan { position: relative; width: 760px; max-width: none; }
.sa-map-plan img { display: block; width: 100%; height: auto; }
.sa-map-pin { position: absolute; width: 0; height: 0; }
.sa-map-pin::after { content: ""; position: absolute; left: -14px; top: -38px; width: 28px; height: 28px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); background: #D92D20; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .35); }
.sa-map-pin span { position: absolute; left: -16px; top: -8px; width: 32px; height: 16px; border-radius: 50%; background: rgba(217, 45, 32, .35);
  animation: sa-pulse 1.4s ease-out infinite; }
@keyframes sa-pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sa-map-pin span { animation: none; } }
.sa-map-note { margin: 0; font-size: 12px; color: var(--sa-faint); }
@media (min-width: 760px) { .sa-map-plan { width: 100%; } }
.sa-app-foot { flex-basis: 100%; display: flex; align-items: flex-end; gap: 8px; }
.sa-app-foot .sa-app-docs { flex: 1; min-width: 0; }
.sa-app-foot .sa-app-acts { flex-basis: auto; gap: 6px; }
.sa-app-foot .sa-act { width: 36px; height: 36px; }

/* Shops: register your shop (ShopReg design), status, staff */
.sa-shop-form { gap: 16px; }
.sa-kinds { border: 0; margin: 0; padding: 0; min-width: 0; }
.sa-kinds legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.sa-kind-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sa-kind { position: relative; cursor: pointer; }
.sa-kind input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sa-kind span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px;
  border: 1px solid var(--sa-field); background: #fff; font-size: 14px; font-weight: 600; }
.sa-kind input:checked + span { border: 2px solid var(--sa-accent); background: var(--sa-accent-soft); color: var(--sa-accent-text);
  font-weight: 800; padding: 0 15px; }
.sa-kind input:focus-visible + span { outline: 2px solid var(--sa-accent); outline-offset: 2px; }
.sa-kind input:disabled + span { opacity: .45; cursor: not-allowed; }
.sa-field input[type="time"] { appearance: none; -webkit-appearance: none; }
.sa-next-steps { background: #fff; border: 1px solid var(--sa-track); border-radius: 16px; padding: 12px 14px; display: flex;
  flex-direction: column; gap: 8px; }
.sa-next-steps strong { font-size: 13px; }
.sa-next-steps p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--sa-muted); }
.sa-next-steps b { color: var(--sa-ink); }
.sa-shop-signin { margin: 0; text-align: center; font-size: 13px; color: var(--sa-muted); }
.sa-shop-signin a { font-weight: 700; }

.sa-shop-list, .sa-staff-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sa-shop-item { width: 100%; text-align: left; background: #fff; border: 1px solid var(--sa-line); border-radius: 16px; padding: 14px 16px;
  min-height: 64px; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.sa-shop-item:hover, .sa-shop-item:focus-visible { border-color: var(--sa-accent); outline: none; }
.sa-shop-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sa-shop-item-text strong { font-size: 15px; }
.sa-shop-item-text small { font-size: 12.5px; color: var(--sa-muted); }

.sa-staff { background: #fff; border: 1px solid var(--sa-line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.sa-staff-head { display: flex; align-items: center; gap: 10px; }
.sa-staff-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sa-staff-who strong { font-size: 15px; }
.sa-staff-who small { font-size: 12.5px; color: var(--sa-muted); }
.sa-staff-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.sa-staff-role { height: 44px; border-radius: 12px; border: 1px solid var(--sa-field); background: #fff; padding: 0 10px; font-size: 14px; font-weight: 600; }
.sa-staff-remove { margin-left: auto; font-size: 13px; min-height: 44px; }
.sa-staff-add { gap: 12px; }
.sa-staff-add .sa-btn-outline { align-self: stretch; }
.sa-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; font-weight: 600; cursor: pointer; position: relative; }
.sa-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sa-switch-track { width: 42px; height: 24px; border-radius: 12px; background: var(--sa-track); position: relative; transition: background .15s; flex: none; }
.sa-switch-track::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, .2); transition: transform .15s; }
.sa-switch input:checked + .sa-switch-track { background: var(--sa-ok); }
.sa-switch input:checked + .sa-switch-track::after { transform: translateX(18px); }
.sa-switch input:focus-visible + .sa-switch-track { outline: 2px solid var(--sa-accent); outline-offset: 2px; }
.sa-shop-cta { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px dashed var(--sa-field); border-radius: 16px;
  padding: 12px 14px; min-height: 56px; text-decoration: none; color: var(--sa-ink); }
.sa-shop-cta:hover { border-color: var(--sa-accent); color: var(--sa-ink); }
.sa-shop-cta > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.sa-shop-cta strong { font-size: 14px; }
.sa-shop-cta small { font-size: 12.5px; color: var(--sa-muted); }

/* Food: the owner's menu (ShopMenu) and add / edit item (ShopItem) */
.sa-menu { gap: 16px; }
.sa-menu-head { display: flex; align-items: center; gap: 12px; }
.sa-menu-heading { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sa-menu-heading h1 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 800; }
.sa-menu-add { height: 48px; padding: 0 16px; border-radius: 16px; border: 0; background: var(--sa-accent); color: #fff; font: inherit;
  font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; flex: none; }
.sa-menu-add:hover { background: var(--sa-accent-ink); }
.sa-menu-settings { gap: 12px; padding: 16px; }
.sa-menu-taking { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; cursor: pointer; }
.sa-menu-taking strong { font-size: 15px; }
.sa-menu-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sa-menu-tile { background: #F2F4F3; border-radius: 14px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; cursor: text; }
.sa-menu-tile > span:first-child { font-size: 12px; color: var(--sa-muted); }
.sa-menu-money { display: flex; align-items: baseline; gap: 2px; font-size: 15px; font-weight: 800; }
.sa-menu-money input { width: 100%; min-width: 0; border: 0; background: transparent; padding: 0; font: inherit; font-weight: 800; }
.sa-menu-money input:focus { outline: 2px solid var(--sa-accent); outline-offset: 2px; border-radius: 4px; }
.sa-menu-more summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--sa-accent); min-height: 32px; display: flex; align-items: center; }
.sa-menu-more[open] { display: flex; flex-direction: column; gap: 12px; }
.sa-menu-more .sa-btn-outline { align-self: flex-start; }
/* A square tick, as in the design (taking orders, available) */
.sa-check { position: relative; display: inline-flex; flex: none; }
.sa-check input { position: absolute; opacity: 0; width: 44px; height: 44px; margin: -11px; cursor: pointer; }
.sa-check span { width: 22px; height: 22px; border-radius: 4px; border: 1.5px solid var(--sa-muted); background: #fff; display: block; }
.sa-check input:checked + span { background: var(--sa-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 16px no-repeat; border-color: var(--sa-ok); }
.sa-menu-taking .sa-check span { width: 26px; height: 26px; }
.sa-check input:focus-visible + span { outline: 2px solid var(--sa-accent); outline-offset: 2px; }
.sa-menu-cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.sa-menu-cat-head h2 { margin: 0; font-size: 16px; font-weight: 800; }
.sa-menu-cat-head small { font-weight: 500; font-size: 14px; color: var(--sa-muted); }
.sa-menu-cat-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.sa-menu-cat-form input { flex: 1; min-width: 140px; height: 44px; border-radius: 12px; border: 1px solid var(--sa-field); background: #fff; padding: 0 12px; font-size: 15px; }
.sa-menu-cat-form .sa-error { flex-basis: 100%; }
.sa-danger { color: var(--sa-bad); }
.sa-menu-items { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--sa-line); border-radius: 18px; overflow: hidden; }
.sa-menu-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid #EEF1F0; }
.sa-menu-item:first-child { border-top: 0; }
.sa-menu-item-text { flex: 1; min-width: 0; text-align: left; border: 0; background: none; padding: 0; display: flex; flex-direction: column; gap: 2px; cursor: pointer; font: inherit; color: inherit; min-height: 44px; justify-content: center; }
.sa-menu-item-text strong { font-size: 15px; }
.sa-menu-item-text small { font-size: 12.5px; color: var(--sa-muted); }
.sa-menu-avail { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; cursor: pointer; }
.sa-menu-avail .is-on { color: var(--sa-ok); }
.sa-menu-avail .is-out { color: var(--sa-bad); }
.sa-menu-others { display: flex; flex-direction: column; gap: 10px; }
.sa-menu-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sa-menu-chip { min-height: 40px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--sa-line); background: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--sa-ink); }
.sa-menu-chip:hover { border-color: var(--sa-accent); }
.sa-menu-chip.is-add { border: 1.5px dashed var(--sa-accent); color: var(--sa-accent); font-weight: 700; }
.sa-menu-foot { margin: auto 0 0; text-align: center; font-size: 12.5px; color: var(--sa-muted); }

.sa-item-title { margin: 0; font-size: 24px; font-weight: 800; }
.sa-item-top { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: end; }
.sa-item-photo { position: relative; width: 84px; height: 84px; border-radius: 16px; border: 1.5px dashed var(--sa-field); background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; }
.sa-item-photo span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; color: var(--sa-muted); }
.sa-item-photo img { width: 100%; height: 100%; object-fit: cover; }
.sa-item-photo:focus-within { outline: 2px solid var(--sa-accent); outline-offset: 2px; }
.sa-item-options { gap: 10px; padding: 16px; }
.sa-item-option-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sa-item-option { display: grid; grid-template-columns: 96px minmax(0, 1fr) 64px auto; gap: 6px; align-items: center; }
.sa-item-option select, .sa-item-option input { height: 44px; min-width: 0; border-radius: 12px; border: 1px solid var(--sa-field); background: #fff; padding: 0 8px; font-size: 14px; }
.sa-item-option .sa-link { font-size: 12.5px; min-height: 44px; }
.sa-item-options > .sa-link { align-self: flex-start; min-height: 32px; }
.sa-avail-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sa-avail span { width: 100%; justify-content: center; border-radius: 14px; }
.sa-item-days summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--sa-accent); margin: 8px 0; min-height: 32px; display: flex; align-items: center; }
.sa-item-remove { align-self: center; min-height: 44px; }

/* Food: residents' menu (FMenu), cart (FCart) and tracking (FTrack) */
.sa-food-menu { padding: 0; gap: 0; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.sa-food-hero { background: var(--sa-accent); color: #fff; border-radius: 0 0 28px 28px; padding: calc(20px + env(safe-area-inset-top)) 20px 18px;
  display: flex; flex-direction: column; gap: 12px; }
.sa-food-hero-top { display: flex; gap: 12px; align-items: flex-start; }
.sa-food-hero-back { width: 44px; height: 44px; flex: none; border-radius: 12px; background: rgba(255, 255, 255, .14); display: flex; align-items: center; justify-content: center; }
.sa-food-hero h1 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 800; }
.sa-food-hero p { margin: 2px 0 0; font-size: 13.5px; color: #DCEBEE; }
.sa-food-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.sa-food-pill { font-size: 12.5px; font-weight: 700; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .14); color: #fff; }
.sa-food-pill.is-open { background: var(--sa-ok-soft); color: var(--sa-ok); }
.sa-food-body { padding: 16px 20px 0; display: flex; flex-direction: column; gap: 12px; }
.sa-food-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.sa-food-filter { min-height: 40px; padding: 0 16px; border-radius: 20px; border: 1px solid var(--sa-field); background: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--sa-ink); }
.sa-food-filter.is-on { background: var(--sa-ink); border-color: var(--sa-ink); color: #fff; font-weight: 700; }
.sa-food-tabs { display: flex; gap: 18px; overflow-x: auto; border-bottom: 1px solid var(--sa-track); margin: 0 -20px; padding: 0 20px; scrollbar-width: none; }
.sa-food-tab { border: 0; background: none; padding: 10px 0; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--sa-muted); white-space: nowrap; cursor: pointer;
  border-bottom: 3px solid transparent; min-height: 44px; }
.sa-food-tab.is-on { color: var(--sa-accent); font-weight: 800; border-bottom-color: var(--sa-accent); }
.sa-food-items, .sa-food-history, .sa-food-active { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sa-food-item { background: #fff; border: 1px solid var(--sa-line); border-radius: 18px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.sa-food-item.is-out { background: #FAFAF8; }
.sa-food-item.is-out .sa-food-item-text { opacity: .55; }
.sa-food-item-photo { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.sa-food-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sa-food-item-text p { margin: 0; }
.sa-food-item-name { display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 700; }
.sa-food-item-desc { font-size: 13px; color: var(--sa-muted); line-height: 1.4; }
.sa-food-item-price { font-size: 15px; font-weight: 800; }
.sa-veg-mark { width: 14px; height: 14px; flex: none; border: 1.5px solid var(--sa-ok); border-radius: 3px; position: relative; }
.sa-veg-mark::after { content: ""; position: absolute; inset: 2.5px; border-radius: 50%; background: var(--sa-ok); }
.sa-food-add { min-width: 72px; min-height: 44px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--sa-accent); background: #fff; color: var(--sa-accent);
  font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; flex: none; }
.sa-food-add:disabled { opacity: .45; cursor: not-allowed; }
.sa-food-soldout { flex: none; font-size: 12.5px; font-weight: 700; color: #B04A33; background: #F9E4DE; border-radius: 10px; padding: 8px 10px; }
.sa-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--sa-accent); border-radius: 14px; flex: none; }
.sa-stepper button { width: 40px; height: 40px; border: 0; background: none; font: inherit; font-size: 20px; font-weight: 800; color: var(--sa-accent); cursor: pointer; }
.sa-stepper button:disabled { opacity: .35; }
.sa-stepper span { min-width: 20px; text-align: center; font-weight: 800; color: var(--sa-accent); }
.sa-stepper.is-solid { background: var(--sa-accent); }
.sa-stepper.is-solid button, .sa-stepper.is-solid span { color: #fff; }
.sa-food-cartbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); width: min(440px, calc(100% - 32px));
  min-height: 60px; border: 0; border-radius: 18px; background: var(--sa-ink); color: #fff; display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; font: inherit; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); z-index: 5; }
.sa-food-cartbar > span:first-child { display: flex; flex-direction: column; align-items: flex-start; }
.sa-food-cartbar small { font-size: 12px; opacity: .8; }
.sa-food-cartbar strong { font-size: 17px; }
.sa-food-cartbar-go { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 800; }
.sa-food-active-order { width: 100%; text-align: left; border: 1px solid var(--sa-ok-line); background: var(--sa-ok-soft); border-radius: 14px; padding: 10px 14px;
  display: flex; flex-direction: column; gap: 2px; font: inherit; cursor: pointer; color: var(--sa-ink); min-height: 44px; }
.sa-food-active-order strong { font-size: 14px; }
.sa-food-active-order small { font-size: 12.5px; color: var(--sa-ok); font-weight: 600; }
.sa-food-active-strip { display: flex; flex-direction: column; gap: 8px; }
.sa-food-history-link { align-self: center; min-height: 44px; }

.sa-food-picker { border: 0; border-radius: 20px; padding: 20px; width: min(420px, calc(100% - 32px)); }
.sa-food-picker::backdrop { background: rgba(20, 32, 31, .45); }
.sa-food-picker h2 { margin: 0 0 12px; font-size: 18px; font-weight: 800; }
.sa-food-picker fieldset { border: 0; margin: 0 0 12px; padding: 0; }
.sa-food-picker legend { font-size: 13px; font-weight: 700; margin-bottom: 6px; padding: 0; }
.sa-food-choice { display: flex; align-items: center; gap: 10px; min-height: 44px; border-bottom: 1px solid #EEF1F0; cursor: pointer; }
.sa-food-choice input { width: 20px; height: 20px; accent-color: var(--sa-accent); margin: 0; }
.sa-food-choice span { flex: 1; }
.sa-food-picker-actions { display: flex; gap: 12px; align-items: center; }
.sa-food-picker-actions .sa-btn { margin-top: 0; flex: 1; }

.sa-food-cart { gap: 14px; }
.sa-food-lines { gap: 12px; padding: 16px; }
.sa-food-lines ul { list-style: none; margin: 0; padding: 0; }
.sa-food-line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #EEF1F0; }
.sa-food-line-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sa-food-line-text strong { font-size: 15px; }
.sa-food-line-text small { font-size: 12.5px; color: var(--sa-muted); }
.sa-food-line .sa-stepper button { width: 34px; height: 36px; font-size: 18px; }
.sa-food-line-total { min-width: 52px; text-align: right; font-size: 15px; }
.sa-food-lines .sa-field input { height: 46px; border-radius: 14px; background: #F9FAF8; }
.sa-food-deliver { background: #fff; border: 1px solid var(--sa-line); border-radius: 18px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.sa-food-deliver-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--sa-accent-soft); display: flex; align-items: center; justify-content: center; }
.sa-food-deliver > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.sa-food-deliver small { font-size: 12.5px; color: var(--sa-muted); }
.sa-food-deliver strong { font-size: 15.5px; font-weight: 800; }
.sa-food-pay { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sa-food-pay-option span { width: 100%; justify-content: center; min-height: 48px; border-radius: 14px; }
.sa-food-bill { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; font-size: 14px; color: var(--sa-muted); }
.sa-food-bill dd { margin: 0; text-align: right; color: var(--sa-ink); }
.sa-food-bill dd.is-free { color: var(--sa-ok); font-weight: 700; }
.sa-food-place { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }

.sa-food-eta { background: var(--sa-accent); color: #fff; border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.sa-food-eta p { margin: 0; font-size: 13.5px; color: #DCEBEE; font-weight: 600; }
.sa-food-eta strong { font-size: 26px; line-height: 1.2; font-weight: 800; }
.sa-food-eta small { font-size: 13.5px; color: #DCEBEE; }
.sa-food-steps ol { list-style: none; margin: 0; padding: 0; }
.sa-food-steps li { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.sa-food-steps li:last-child { padding-bottom: 0; }
.sa-food-steps li:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--sa-track); }
.sa-food-steps li.is-done:not(:last-child)::before { background: var(--sa-ok); }
.sa-food-dot { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--sa-field); background: #fff; position: relative; z-index: 1; }
.sa-food-steps .is-done .sa-food-dot { background: var(--sa-ok); border-color: var(--sa-ok); }
.sa-food-steps .is-current .sa-food-dot { border: 4px solid var(--sa-warn); }
.sa-food-step { display: flex; flex-direction: column; gap: 2px; }
.sa-food-step strong { font-size: 15px; font-weight: 600; color: var(--sa-muted); }
.sa-food-steps .is-done strong, .sa-food-steps .is-current strong { color: var(--sa-ink); font-weight: 700; }
.sa-food-step small { font-size: 12.5px; color: var(--sa-muted); }
.sa-food-who { background: #fff; border: 1px solid var(--sa-line); border-radius: 18px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.sa-food-who-initial { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--sa-warn-soft); color: var(--sa-warn-ink); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.sa-food-who > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sa-food-who strong { font-size: 14.5px; }
.sa-food-who small { font-size: 12.5px; color: var(--sa-muted); }
.sa-food-track-actions { margin-top: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sa-food-call { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; min-height: 52px; border-radius: 16px; font-weight: 700; }
.sa-food-cancel { min-height: 52px; border-radius: 16px; }
.sa-food-cancel:disabled { border-color: var(--sa-track); background: #EEF1F0; color: var(--sa-muted); cursor: not-allowed; }
.sa-food-cancel-note { text-align: center; }
.sa-food-past { background: #fff; border: 1px solid var(--sa-line); border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.sa-food-past-text { flex: 1; min-width: 0; text-align: left; border: 0; background: none; padding: 0; font: inherit; color: inherit; display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.sa-food-past-text strong { font-size: 14.5px; }
.sa-food-past-text small { font-size: 12.5px; color: var(--sa-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The cancel-with-a-reason form (kitchen order screen) */
.sa-order-cancel { display: flex; flex-basis: 100%; gap: 8px; }
.sa-order-cancel input { flex: 1; min-width: 0; height: 44px; border-radius: 12px; border: 1px solid var(--sa-field); padding: 0 10px; font-size: 14px; }
.sa-food-cta { border-style: solid; border-color: var(--sa-ok-line); background: var(--sa-ok-soft); }

/* Kitchen: the queue (KQueue) and an order (KOrder) */
.sa-kq { gap: 14px; }
.sa-kq-head { display: flex; align-items: center; gap: 12px; }
.sa-kq-head h1 { margin: 0; font-size: 30px; line-height: 1.1; font-weight: 800; }
.sa-kq-taking { min-height: 44px; padding: 0 14px; border-radius: 16px; border: 1px solid var(--sa-ok-line); background: var(--sa-ok-soft); color: var(--sa-ok);
  font: inherit; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; flex: none; }
.sa-kq-taking:disabled { cursor: default; opacity: 1; }
.sa-kq-taking.is-off { background: var(--sa-warn-soft); border-color: #E7CFA6; color: var(--sa-warn-ink); }
.sa-kq-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.sa-kq-setup { background: #fff; border: 1.5px dashed var(--sa-accent); border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.sa-kq-setup > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sa-kq-setup strong { font-size: 14.5px; }
.sa-kq-setup small { font-size: 12.5px; color: var(--sa-muted); }
.sa-kq-new { background: var(--sa-accent); color: #fff; border-radius: 20px; padding: 16px; display: flex; align-items: center; gap: 12px;
  animation: sa-kq-pulse 1.6s ease-in-out infinite; }
@keyframes sa-kq-pulse { 50% { box-shadow: 0 0 0 6px rgba(232, 163, 61, .35); } }
@media (prefers-reduced-motion: reduce) { .sa-kq-new { animation: none; } }
.sa-kq-bell { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--sa-gold); display: flex; align-items: center; justify-content: center; }
.sa-kq-new-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sa-kq-new-text strong { font-size: 16px; line-height: 1.3; }
.sa-kq-new-text small { font-size: 13px; color: #DCEBEE; }
.sa-kq-accept { min-height: 48px; padding: 0 18px; border-radius: 14px; border: 0; background: #fff; color: var(--sa-accent); font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; flex: none; }
.sa-kq-accept:disabled { opacity: .6; }
.sa-kq-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; background: #E6EBE9; border-radius: 16px; padding: 4px; }
.sa-kq-tabs button { min-height: 44px; border: 0; border-radius: 12px; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--sa-muted); cursor: pointer; white-space: nowrap; }
.sa-kq-tabs button.is-on { background: #fff; color: var(--sa-ink); font-weight: 800; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.sa-kq-tabs b { font-weight: inherit; }
.sa-kq-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sa-kq-card { background: #fff; border: 1px solid var(--sa-line); border-radius: 18px; }
.sa-kq-card.is-late { border: 2px solid #D9806A; }
.sa-kq-card-btn { width: 100%; border: 0; background: none; padding: 14px 16px; display: flex; gap: 12px; align-items: center; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.sa-kq-pos { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--sa-accent-soft); color: var(--sa-accent-text); font-size: 17px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.sa-kq-pos.is-first { background: var(--sa-accent); color: #fff; }
.sa-kq-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sa-kq-card-top { display: flex; justify-content: space-between; gap: 8px; }
.sa-kq-card-top strong { font-size: 15.5px; }
.sa-kq-wait { font-size: 14px; font-weight: 800; flex: none; }
.sa-kq-card.is-late .sa-kq-wait { color: var(--sa-bad); }
.sa-kq-items { font-size: 13.5px; color: var(--sa-muted); }
.sa-kq-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sa-kq-chip { font-size: 12.5px; font-weight: 700; padding: 3px 8px; border-radius: 8px; }
.sa-kq-chip.is-new { background: var(--sa-bad-soft); color: var(--sa-bad); }
.sa-kq-chip.is-accepted { background: var(--sa-accent-soft); color: var(--sa-accent-text); }
.sa-kq-chip.is-preparing { background: var(--sa-warn-soft); color: var(--sa-warn-ink); }
.sa-kq-chip.is-ready, .sa-kq-chip.is-done { background: var(--sa-ok-soft); color: var(--sa-ok); }
.sa-kq-chip.is-onway { background: #E3ECF8; color: #1F3A68; }
.sa-kq-chip.is-cancelled { background: #EEF1F0; color: var(--sa-muted); }
.sa-kq-who { font-size: 13px; color: var(--sa-muted); }
.sa-kq-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--sa-muted); margin-top: auto; }
.sa-kq-foot a { font-weight: 700; }
.sa-kq-bottom { display: flex; justify-content: center; gap: 20px; }
.sa-kq-bottom .sa-link { min-height: 44px; font-size: 13px; }

.sa-ko-call { width: 52px; height: 52px; flex: none; border-radius: 14px; border: 1.5px solid var(--sa-accent); display: flex; align-items: center; justify-content: center; margin-left: auto; }
.sa-ko-items { gap: 10px; padding: 16px; }
.sa-ko-items ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sa-ko-items li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.sa-ko-note { margin: 0; background: var(--sa-warn-soft); color: var(--sa-warn-ink); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; }
.sa-ko-total { margin: 0; padding-top: 10px; border-top: 1px solid #EEF1F0; display: flex; justify-content: space-between; font-weight: 800; font-size: 15px; }
.sa-ko-steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.sa-ko-steps li { display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: center; }
.sa-ko-steps strong { font-size: 15px; font-weight: 600; color: var(--sa-muted); }
.sa-ko-steps .is-done strong, .sa-ko-steps .is-current strong { color: var(--sa-ink); font-weight: 700; }
.sa-ko-steps small { font-size: 12.5px; color: var(--sa-muted); text-align: right; }
.sa-ko-steps .is-done .sa-food-dot { background: var(--sa-ok); border-color: var(--sa-ok); }
.sa-ko-steps .is-current .sa-food-dot { border: 4px solid var(--sa-warn); }
.sa-ko-actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.sa-ko-assigned { margin: 0; text-align: center; font-size: 13.5px; color: var(--sa-muted); }
.sa-ko-assigned b { color: var(--sa-ink); }
.sa-ko-assign { display: flex; gap: 8px; }
.sa-ko-assign select, .sa-ko-actions select { flex: 1; height: 44px; border-radius: 12px; border: 1px solid var(--sa-field); background: #fff; padding: 0 10px; font-size: 14px; }
.sa-ko-actions .sa-link { align-self: center; min-height: 44px; }

/* Kitchen: Staff & alerts (KStaff) and the daily report */
.sa-kq-owner-links { display: inline-flex; gap: 16px; }
.sa-ks-staff { padding: 0; gap: 0; overflow: hidden; }
.sa-ks-staff ul { list-style: none; margin: 0; padding: 0; }
.sa-ks-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #EEF1F0; flex-wrap: wrap; }
.sa-ks-initial { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--sa-accent-soft); color: var(--sa-accent-text); font-weight: 800;
  display: flex; align-items: center; justify-content: center; }
.sa-ks-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sa-ks-who strong { font-size: 15.5px; }
.sa-ks-who small { font-size: 12.5px; color: var(--sa-muted); }
.sa-ks-alerts { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; min-height: 44px; cursor: pointer; }
.sa-ks-alerts .sa-check input:checked + span, .sa-ks-rule .sa-check input:checked + span { background-color: var(--sa-accent); border-color: var(--sa-accent); }
.sa-ks-remove { font-size: 12.5px; min-height: 44px; }
.sa-ks-add-open { width: 100%; min-height: 56px; border: 0; background: none; color: var(--sa-accent); font: inherit; font-size: 15px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.sa-ks-add { padding: 0 16px 16px; gap: 12px; }
.sa-ks-add .sa-btn-outline { align-self: stretch; }
.sa-ks-rules { gap: 12px; padding: 16px; }
.sa-ks-rule { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14.5px; font-weight: 600; min-height: 44px; cursor: pointer; }
.sa-ks-rule > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.sa-ks-rule small { font-size: 12px; font-weight: 500; color: var(--sa-muted); }
.sa-ks-always { flex: none; font-size: 12.5px; font-weight: 700; color: var(--sa-ok); background: var(--sa-ok-soft); border-radius: 10px; padding: 6px 10px; }
.sa-kr-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sa-kr-tiles div { background: #fff; border: 1px solid var(--sa-line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.sa-kr-tiles strong { font-size: 24px; font-weight: 800; }
.sa-kr-tiles span { font-size: 12.5px; color: var(--sa-muted); }
.sa-kr-top { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.sa-kr-top li > span { display: inline-block; min-width: 70%; }

/* EternityCare's own header ("Powered by KanakCare") */
.ec-header { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid var(--sa-track); padding: 10px 16px; }
.ec-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 480px; margin: 0 auto; }
.ec-brand { font-size: 22px; font-weight: 800; color: var(--sa-accent); text-decoration: none; letter-spacing: -.01em; }
.ec-brand span { color: #F7941D; }
.ec-brand:hover { color: var(--sa-accent-ink); }
.ec-powered { font-size: 12px; color: var(--sa-muted); text-decoration: none; }
.ec-powered strong { color: #0f2747; }
.sa-privacy h2 { margin: 12px 0 0; font-size: 18px; font-weight: 800; }
.sa-privacy p, .sa-privacy li { font-size: 14px; line-height: 1.6; color: var(--sa-ink); }
.sa-privacy ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
