/* =========================================================
   Karpagam Care — Modern Health-Tech Clinic UI
   Light clinical theme · brand green from logo
   ========================================================= */

:root {
  --g50:  #effaf3;
  --g100: #dcf3e4;
  --g200: #b6e5c6;
  --g400: #4cc27a;
  --g500: #22a35a;
  --g600: #178a4a;
  --g700: #116e3b;
  --g900: #0a3a22;
  --lime: #8cc63f;

  --ink:   #0f1f17;
  --ink-2: #4b5b53;
  --ink-3: #8a9690;
  --line:  #e6ebe8;
  --bg:    #f3f6f4;
  --card:  #ffffff;

  --red:   #e5484d;  --red-bg:   #fdecec;
  --amber: #e8930c;  --amber-bg: #fff4e0;
  --blue:  #3b7cf6;  --blue-bg:  #e9f1ff;
  --wa:    #1fa855;

  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --sh-1: 0 1px 2px rgba(16,40,28,.04), 0 1px 3px rgba(16,40,28,.06);
  --sh-2: 0 4px 14px rgba(16,40,28,.07);
  --sh-3: 0 12px 32px rgba(16,40,28,.12);
  --sh-g: 0 10px 24px rgba(23,138,74,.35);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #dfe8e3;
  -webkit-font-smoothing: antialiased;
  display: flex; justify-content: center;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
.hidden { display: none !important; }

/* ---------- Icons ---------- */
i[data-i], .ic { display: inline-flex; align-items: center; justify-content: center; font-style: normal; flex-shrink: 0; }
i[data-i] svg, .ic svg { width: 18px; height: 18px; }

/* ---------- Full Responsive Container (Mobile-First) ---------- */
.login, .app {
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  box-sizing: border-box;
}

@media (min-width: 600px) {
  body {
    align-items: center;
    padding: 16px;
    background: radial-gradient(circle at 20% 10%, #e9f5ee, #cfdcd5);
    min-height: 100vh;
  }
  .login, .app {
    max-width: 660px;
    height: min(940px, calc(100dvh - 32px));
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(10,58,34,.16), 0 2px 10px rgba(0,0,0,.04);
  }
}

@media (min-width: 1024px) {
  .login, .app {
    max-width: 740px;
    height: min(960px, calc(100dvh - 40px));
  }
}

/* =================== LOGIN =================== */
.login { display: flex; flex-direction: column; background: var(--g600); }
.login-hero {
  position: relative; flex: 0 0 auto;
  padding: 56px 24px 64px; text-align: center; color: #fff; overflow: hidden;
  background: linear-gradient(160deg, var(--g500) 0%, var(--g700) 100%);
}
.hero-orb { position: absolute; border-radius: 50%; background: rgba(255,255,255,.09); }
.orb-1 { width: 260px; height: 260px; top: -120px; right: -80px; }
.orb-2 { width: 180px; height: 180px; bottom: -90px; left: -60px; background: rgba(140,198,63,.22); }
.login-logo {
  width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 28px; background: #fff;
  padding: 6px; box-shadow: 0 12px 30px rgba(0,0,0,.18); position: relative;
}
.login-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.login-brand { font-size: 26px; font-weight: 800; letter-spacing: -.5px; position: relative; }
.login-tag { font-size: 14px; opacity: .85; margin-top: 2px; position: relative; }

.login-sheet {
  flex: 1; background: #fff; margin-top: -28px; border-radius: 28px 28px 0 0;
  padding: 28px 24px calc(24px + var(--safe-b)); overflow-y: auto; position: relative;
  animation: rise .45s cubic-bezier(.16,1,.3,1);
}
.login-title { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.login-sub { color: var(--ink-3); font-size: 14px; margin: 4px 0 20px; }
.login-foot { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 18px; font-size: 12px; color: var(--ink-3); }
.login-foot svg { width: 14px; height: 14px; }

/* segmented control */
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); padding: 4px; border-radius: var(--r-md); margin-bottom: 18px; }
.seg.seg-roles { grid-template-columns: repeat(3, 1fr); gap: 4px; }
.seg-item input { display: none; }
.seg-item span {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px; border-radius: 11px; font-size: 14px; font-weight: 700; color: var(--ink-2); cursor: pointer; transition: .2s;
}
.seg.seg-roles .seg-item span {
  padding: 9px 4px;
  font-size: 11.5px;
  gap: 5px;
  flex-direction: column;
  text-align: center;
  line-height: 1.25;
}
.seg.seg-roles .seg-item span svg { width: 16px; height: 16px; }
.seg-item input:checked + span { background: #fff; color: var(--g700); box-shadow: var(--sh-1); }

/* =================== FORM FIELDS =================== */
.field { display: block; margin-bottom: 14px; }
.field-label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; }
.field-label em { font-style: normal; font-weight: 500; color: var(--ink-3); }
.field-label svg { width: 15px; height: 15px; }
.field-box {
  display: flex; align-items: center; gap: 10px; padding: 0 14px;
  background: var(--bg); border: 1.5px solid transparent; border-radius: var(--r-md); transition: .2s;
  min-width: 0; width: 100%; box-sizing: border-box; overflow: hidden;
}
.field-box > i { color: var(--ink-3); flex-shrink: 0; }
.field-box:focus-within { background: #fff; border-color: var(--g500); box-shadow: 0 0 0 4px rgba(34,163,90,.12); }
.field-box:focus-within > i { color: var(--g600); }
.field-box input, .field-box select {
  flex: 1; min-width: 0; width: 100%; border: none; outline: none; background: transparent;
  padding: 13px 0; font-size: 14px; color: var(--ink); font-weight: 600;
  text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
}
.field-box select { appearance: none; cursor: pointer; text-overflow: ellipsis; }
textarea {
  width: 100%; border: 1.5px solid transparent; background: var(--bg); border-radius: var(--r-md);
  padding: 12px 14px; font-size: 14px; color: var(--ink); outline: none; resize: none; transition: .2s; box-sizing: border-box;
}
textarea:focus { background: #fff; border-color: var(--g500); box-shadow: 0 0 0 4px rgba(34,163,90,.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-width: 0; width: 100%; }
.field-row .field { min-width: 0; }
.hint { display: block; font-size: 12px; color: var(--g700); margin-top: 6px; }

/* =================== BUTTONS =================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 14px; border-radius: var(--r-md); padding: 11px 16px; transition: transform .12s, box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn-lg { padding: 15px 18px; font-size: 15px; }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--g500), var(--g600)); color: #fff; box-shadow: var(--sh-g); }
.btn-white { background: #fff; color: var(--g700); }
.btn-soft { background: var(--g50); color: var(--g700); }
.btn svg { width: 17px; height: 17px; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; position: relative; color: var(--ink-2); transition: .15s;
}
.icon-btn:active { transform: scale(.92); }
.icon-btn.sm { width: 34px; height: 34px; border-radius: 11px; background: var(--bg); border: none; }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }

/* =================== APP SHELL =================== */
.app { display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: rgba(243,246,244,.92); backdrop-filter: blur(10px); z-index: 5;
}
.topbar-brand { display: flex; align-items: center; gap: 10px; }
.topbar-logo { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; background: #fff; box-shadow: var(--sh-1); }
.topbar-title { font-size: 15px; font-weight: 800; letter-spacing: -.2px; }
.topbar-sub { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.avatar-btn {
  width: 42px; height: 42px; border-radius: 14px; font-weight: 800; font-size: 14px;
  background: linear-gradient(135deg, var(--g400), var(--g600)); color: #fff;
}

.main { flex: 1; overflow-y: auto; padding: 4px 18px 24px; scroll-behavior: smooth; }
.main::-webkit-scrollbar { width: 0; }
.view { display: none; }
.view.active { display: block; animation: fade .3s ease; }

/* greeting */
.greet { margin: 6px 0 16px; }
.greet-hi { color: var(--ink-3); font-size: 14px; font-weight: 600; }
.greet-name { font-size: 26px; font-weight: 800; letter-spacing: -.6px; line-height: 1.15; }
.greet-date { font-size: 13px; color: var(--ink-2); margin-top: 4px; font-weight: 500; }

/* hero progress */
.hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px; border-radius: var(--r-xl); color: #fff;
  background: linear-gradient(135deg, var(--g500) 0%, var(--g700) 100%);
  box-shadow: var(--sh-g);
}
.hero::after { content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%; right: -70px; top: -90px; background: rgba(255,255,255,.08); }
.hero-text { position: relative; z-index: 1; }
.hero-kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; opacity: .85; }
.hero-big { font-size: 34px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; margin-top: 4px; }
.hero-big small { font-size: 15px; font-weight: 600; opacity: .85; letter-spacing: 0; }
.hero-note { font-size: 13px; opacity: .9; margin: 4px 0 14px; }
.ring { position: relative; width: 104px; height: 104px; flex-shrink: 0; z-index: 1; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-track { stroke: rgba(255,255,255,.2); }
.ring-fill { stroke: #fff; stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset 1s cubic-bezier(.16,1,.3,1); }
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-label span { font-size: 22px; font-weight: 800; }
.ring-label small { font-size: 10.5px; opacity: .85; font-weight: 600; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 22px; }
.tile {
  background: var(--card); border-radius: var(--r-lg); padding: 14px 12px; text-align: left;
  display: flex; flex-direction: column; gap: 2px; box-shadow: var(--sh-1); transition: .15s;
}
.tile:active { transform: scale(.96); }
.tile-ic { width: 34px; height: 34px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.tile-num { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.tile-lbl { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.ic-red   { background: var(--red-bg);   color: var(--red); }
.ic-amber { background: var(--amber-bg); color: var(--amber); }
.ic-blue  { background: var(--blue-bg);  color: var(--blue); }
.ic-green { background: var(--g50);      color: var(--g600); }

/* section header */
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sec-head h2 { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.link { color: var(--g600); font-weight: 700; font-size: 13.5px; }

/* day strip */
.days { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px 16px; padding: 2px 18px 4px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: 0 0 56px; padding: 10px 0 8px; border-radius: 18px; background: var(--card); box-shadow: var(--sh-1);
  display: flex; flex-direction: column; align-items: center; gap: 2px; transition: .2s;
}
.day-w { font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; }
.day-n { font-size: 18px; font-weight: 800; }
.day-c { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; background: var(--g50); color: var(--g700); margin-top: 2px; }
.day-c.zero { background: transparent; color: transparent; }
.day.active { background: var(--g600); box-shadow: var(--sh-g); }
.day.active .day-w, .day.active .day-n { color: #fff; }
.day.active .day-c { background: rgba(255,255,255,.25); color: #fff; }
.day.active .day-c.zero { background: transparent; color: transparent; }

/* page head */
.page-head { margin: 6px 0 16px; }
.page-head.row { display: flex; align-items: center; justify-content: space-between; }
.page-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.6px; }
.page-head p { color: var(--ink-3); font-size: 13.5px; margin-top: 2px; font-weight: 500; }

/* search */
.search {
  display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: var(--r-md);
  padding: 0 14px; box-shadow: var(--sh-1); margin-bottom: 12px; border: 1.5px solid transparent; transition: .2s;
}
.search:focus-within { border-color: var(--g500); }
.search > i { color: var(--ink-3); }
.search input { flex: 1; border: none; outline: none; background: transparent; padding: 14px 0; font-size: 15px; color: var(--ink); }

/* chips */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px 16px; padding: 0 18px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 999px; background: var(--card); box-shadow: var(--sh-1);
  font-size: 13.5px; font-weight: 700; color: var(--ink-2); transition: .2s;
}
.chip b { font-size: 11.5px; min-width: 20px; padding: 2px 6px; border-radius: 999px; background: var(--bg); color: var(--ink-2); }
.chip.active { background: var(--ink); color: #fff; }
.chip.active b { background: rgba(255,255,255,.2); color: #fff; }

/* =================== PATIENT CARD =================== */
.list { display: flex; flex-direction: column; gap: 12px; }
.pcard { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; animation: fade .3s ease both; }
.pcard-main { display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer; }
.avatar {
  width: 48px; height: 48px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; letter-spacing: .3px;
}
.avatar-lg { width: 64px; height: 64px; border-radius: 20px; font-size: 20px; }
.avatar-xl { width: 76px; height: 76px; border-radius: 24px; font-size: 24px; }
.pinfo { flex: 1; min-width: 0; }
.pname { font-size: 15.5px; font-weight: 800; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmeta { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; font-weight: 500; }
.pmeta svg { width: 13px; height: 13px; }
.tag { display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 8px; background: var(--g50); color: var(--g700); font-size: 11.5px; font-weight: 700; }

.when { text-align: right; flex-shrink: 0; }
.when-lbl { display: inline-block; padding: 4px 9px; border-radius: 8px; font-size: 11.5px; font-weight: 800; }
.when-date { display: block; font-size: 12px; color: var(--ink-3); margin-top: 4px; font-weight: 600; }
.w-today   { background: var(--g50);      color: var(--g700); }
.w-overdue { background: var(--red-bg);   color: var(--red); }
.w-soon    { background: var(--amber-bg); color: var(--amber); }
.w-later   { background: var(--bg);       color: var(--ink-2); }
.w-done    { background: var(--blue-bg);  color: var(--blue); }

.pnote {
  margin: 0 14px; padding: 10px 12px; background: var(--bg); border-radius: 12px;
  font-size: 13px; color: var(--ink-2); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pactions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 12px 14px 14px; }
.act {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 9px 4px; border-radius: 12px; font-size: 11.5px; font-weight: 700; transition: .12s;
}
.act:active { transform: scale(.95); }
.act svg { width: 15px; height: 15px; }
.act-call { background: var(--blue-bg); color: var(--blue); }
.act-wa   { background: #e6f7ec; color: var(--wa); }
.act-sms  { background: #f0f4ff; color: #4361ee; }
.act-log  { background: var(--g600); color: #fff; }

.pcard.compact .pcard-main { padding: 12px 14px; }
.mini-acts { display: flex; gap: 6px; }
.mini-acts button { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.mini-acts svg { width: 17px; height: 17px; }

/* empty state */
.empty { text-align: center; padding: 34px 20px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.empty-ic { width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 20px; background: var(--g50); color: var(--g600); display: flex; align-items: center; justify-content: center; }
.empty-ic svg { width: 28px; height: 28px; }
.empty h4 { font-size: 16px; font-weight: 800; }
.empty p { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* =================== SETTINGS =================== */
.profile-card { display: flex; align-items: center; gap: 14px; background: var(--card); padding: 16px; border-radius: var(--r-lg); box-shadow: var(--sh-1); margin-bottom: 16px; }
.profile-card .avatar { background: linear-gradient(135deg, var(--g400), var(--g600)); color: #fff; }
.profile-name { font-size: 17px; font-weight: 800; }
.profile-mail { font-size: 13px; color: var(--ink-3); }
.menu { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.menu-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.menu-row:last-child { border-bottom: none; }
.menu-row:active { background: var(--bg); }
.menu-ic { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.menu-txt { flex: 1; display: flex; flex-direction: column; }
.menu-txt b { font-size: 14.5px; }
.menu-txt small { font-size: 12px; color: var(--ink-3); }
.menu-row > i:last-child { color: var(--ink-3); }
.version { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 18px; }

/* =================== TAB BAR =================== */
.tabbar {
  display: grid; grid-template-columns: 1fr 1fr 72px 1fr 1fr; align-items: center;
  background: #fff; padding: 8px 8px calc(10px + var(--safe-b));
  box-shadow: 0 -6px 24px rgba(16,40,28,.07); border-radius: 24px 24px 0 0; position: relative; z-index: 5;
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--ink-3); position: relative; transition: .2s; }
.tab span { font-size: 11px; font-weight: 700; }
.tab svg { width: 22px; height: 22px; }
.tab.active { color: var(--g600); }
.tab.active::before { content: ''; position: absolute; top: -8px; width: 22px; height: 3px; border-radius: 0 0 3px 3px; background: var(--g600); }
.tab-badge { position: absolute; top: 0; left: 55%; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; font-style: normal; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.fab {
  width: 58px; height: 58px; margin: -30px auto 0; border-radius: 20px;
  background: linear-gradient(135deg, var(--g500), var(--g700)); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-g); border: 4px solid var(--bg); transition: .15s;
}
.fab:active { transform: scale(.92); }
.fab svg { width: 26px; height: 26px; }

/* =================== BOTTOM SHEETS =================== */
.sheet-wrap {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(10,30,20,.45); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.sheet-wrap.open { opacity: 1; pointer-events: auto; }
.sheet {
  width: 100%; max-width: 500px; max-height: 92dvh; overflow-y: auto; overflow-x: hidden; background: #fff;
  border-radius: 28px 28px 0 0; padding: 12px 18px calc(24px + var(--safe-b)); box-sizing: border-box;
  transform: translateY(100%); transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.sheet::-webkit-scrollbar { width: 0; }
.sheet-wrap.open .sheet { transform: translateY(0); }
.sheet-tall { min-height: 70dvh; }
.grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 10px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sheet-head h3 { font-size: 19px; font-weight: 800; letter-spacing: -.3px; }

/* quick date pills */
.quick { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 8px; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.quick button, .suggest button {
  flex-shrink: 0; padding: 8px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: var(--bg); color: var(--ink-2); transition: .15s;
}
.quick button.on { background: var(--g600); color: #fff; }
.suggest { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 8px; scrollbar-width: none; }
.suggest::-webkit-scrollbar { display: none; }
.suggest button { background: var(--g50); color: var(--g700); }
.suggest button::before { content: '+ '; }
.suggest button:active, .quick button:active { transform: scale(.94); }

.next-box { background: var(--g50); border-radius: var(--r-lg); padding: 14px; }
.next-box .field-label { color: var(--g700); }
.next-box .field-box { background: #fff; }
.next-box .quick button:not(.on) { background: #fff; }

/* outcomes */
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.outcomes input, .steps input { display: none; }
.outcomes span {
  display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: var(--r-md);
  background: var(--bg); border: 1.5px solid transparent; font-size: 13.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; transition: .15s;
}
.outcomes input:checked + span { background: var(--g50); border-color: var(--g500); color: var(--g700); }

/* recovery steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.steps span { display: block; text-align: center; padding: 11px 0; border-radius: 12px; background: var(--bg); font-size: 13px; font-weight: 800; color: var(--ink-2); cursor: pointer; transition: .15s; }
.steps input:checked + span { background: var(--g600); color: #fff; box-shadow: var(--sh-g); }

.mini-patient { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg); border-radius: var(--r-lg); margin-bottom: 16px; }
.mini-patient .avatar { width: 44px; height: 44px; border-radius: 14px; }

/* =================== PROFILE =================== */
.prof-top { text-align: center; padding-bottom: 6px; }
.prof-top .avatar { margin: 0 auto 10px; }
.prof-name { font-size: 21px; font-weight: 800; letter-spacing: -.4px; }
.prof-meta { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; font-weight: 500; }
.prof-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.prof-act { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0; border-radius: var(--r-lg); font-size: 12.5px; font-weight: 700; transition: .12s; }
.prof-act:active { transform: scale(.95); }
.prof-act .ic { width: 42px; height: 42px; border-radius: 14px; }
.prof-act .ic svg { width: 20px; height: 20px; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.info { background: var(--bg); border-radius: var(--r-lg); padding: 12px 14px; }
.info small { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.info b { display: block; font-size: 16px; font-weight: 800; margin-top: 4px; }
.info .sub { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.info.wide { grid-column: span 2; }
.bar { height: 8px; background: #fff; border-radius: 4px; overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--lime), var(--g500)); border-radius: 4px; }

.tl-head { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl { position: relative; margin-bottom: 14px; }
.tl::before { content: ''; position: absolute; left: -24px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--g500); }
.tl:first-child::before { background: var(--g500); box-shadow: 0 0 0 4px var(--g100); }
.tl-card { background: var(--bg); border-radius: var(--r-md); padding: 12px 14px; }
.tl-row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.tl-title { font-size: 13.5px; font-weight: 800; }
.tl-date { font-size: 12px; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.tl-note { font-size: 13px; color: var(--ink-2); line-height: 1.45; margin-top: 4px; }
.tl-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tl-tags span { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 7px; background: #fff; color: var(--g700); }

/* =================== TOAST =================== */
.toast {
  position: fixed; left: 50%; bottom: calc(100px + var(--safe-b)); transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 13.5px; font-weight: 600;
  box-shadow: var(--sh-3); opacity: 0; pointer-events: none; transition: .3s cubic-bezier(.16,1,.3,1); z-index: 80; max-width: 88%; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =================== BRANCH SELECTOR BAR =================== */
.branch-nav-wrap {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 8px 16px 10px;
  position: relative;
  z-index: 3;
}
.branch-nav-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.branch-nav-title span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.branch-nav-title svg { width: 13px; height: 13px; }
.cloud-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  background: rgba(34,163,90,.12);
  color: var(--g700);
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
  text-transform: none;
  letter-spacing: normal;
}
.cloud-pill svg { width: 12px; height: 12px; }
.cloud-pill:hover { background: rgba(34,163,90,.22); }
.cloud-pill.syncing svg { animation: spin 0.8s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.branch-help-btn {
  font-size: 11px;
  color: var(--g600);
  font-weight: 700;
  text-decoration: underline;
  padding: 0;
}
.branch-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.branch-scroll::-webkit-scrollbar { display: none; }
.branch-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  transition: .15s;
}
.branch-chip.active {
  background: var(--g600);
  color: #fff;
  border-color: var(--g600);
  box-shadow: 0 4px 12px rgba(23,138,74,.25);
}
.branch-chip .bc-count {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(0,0,0,.08);
}
.branch-chip.active .bc-count {
  background: rgba(255,255,255,.25);
  color: #fff;
}
.branch-chip.is-online {
  border-color: #d1d5db;
}
.branch-chip.is-online.active {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border-color: #0284c7;
}

/* =================== AUTO REMINDERS HUB =================== */
.auto-remind-box {
  background: linear-gradient(145deg, #ffffff 0%, #f4fbf7 100%);
  border: 1px solid var(--g200);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(34,163,90,.08);
}
.arb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.arb-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 800;
  color: var(--g700);
}
.arb-badge svg { width: 15px; height: 15px; color: var(--g500); }
.arb-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--g600);
  background: var(--g50);
  padding: 2px 8px;
  border-radius: 10px;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--g500);
  display: inline-block;
  box-shadow: 0 0 6px var(--g500);
}
.arb-cfg-btn {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}
.arb-text {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.4;
  margin-bottom: 12px;
}
.arb-counts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.arb-c-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 6px;
  text-align: center;
  cursor: pointer;
  transition: .15s;
}
.arb-c-item:active { transform: scale(.96); }
.arb-c-item.highlight {
  background: #fdf4ff;
  border-color: #f0abfc;
}
.arb-c-val {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}
.arb-c-item.highlight .arb-c-val { color: #a21caf; }
.arb-c-lbl {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-3);
  margin-top: 1px;
  display: block;
}
.arb-actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 8px;
}
.arb-btn {
  padding: 9px 8px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 12px;
}
.arb-btn svg { width: 14px; height: 14px; }

/* Tag Badges */
.tags-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 6px;
  align-items: center;
}
.tag-branch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
}
.tag-branch.tag-online {
  background: #e0f2fe;
  color: #0369a1;
}
.tag-source {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
}
.tag-source.tag-insta {
  background: #fdf2f8;
  color: #be185d;
  border: 1px solid #fbcfe8;
}
.tag-source.tag-fb {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.tag-source.tag-walkin {
  background: #f0fdf4;
  color: #15803d;
}

/* Reminder status indicators */
.remind-flags {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 8px;
  background: #fafcfb;
  border-radius: 8px;
  font-size: 11px;
}
.rf-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}
.rf-item.wa-ok { color: var(--wa); }
.rf-item.sms-ok { color: #3b82f6; }
.rf-item.pending { color: var(--ink-3); opacity: .7; }

/* Filter chips enhancements */
.chip-ads {
  background: #fdf2f8 !important;
  color: #9d174d !important;
  border-color: #fbcfe8 !important;
}
.chip-ads.active {
  background: #be185d !important;
  color: #fff !important;
  border-color: #be185d !important;
}

/* =================== GATEWAY & MODAL STYLES =================== */
.gw-card {
  background: var(--bg);
  border-radius: var(--r-md);
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
}
.gw-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.gw-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 800;
}
.gw-badge.wa { color: var(--wa); }
.gw-badge.sms { color: #3b82f6; }
.gw-badge.rule { color: var(--ink); }
.gw-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
}
.gw-pill.connected { background: #dcfce7; color: #15803d; }
.gw-desc {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.4;
  margin-bottom: 10px;
}
.gw-box {
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
}
.gw-num-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 10px;
}
.gw-num-row span { color: var(--ink-3); }
.gw-num-row b { color: var(--ink); }
.gw-actions {
  display: flex;
  gap: 8px;
}
.btn-outline-sm {
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn-soft-sm {
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--g50);
  color: var(--g700);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.gw-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.gw-toggle-row:last-child { border-bottom: none; }
.gw-toggle-row b { display: block; font-size: 13px; font-weight: 700; }
.gw-toggle-row small { display: block; font-size: 11.5px; color: var(--ink-3); }
.gw-toggle-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--g600);
  cursor: pointer;
}

/* Template sheet */
.tmpl-chips {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.tmpl-chip {
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--bg);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}
.tmpl-chip.active {
  background: var(--ink);
  color: #fff;
}
.tags-hint {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.tags-hint code {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--g700);
  font-weight: 700;
}

/* Branch Guide Grid */
.branch-grid-guide {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 20px;
}
.bgg-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: .15s;
}
.bgg-item:active { transform: scale(.98); }
.bgg-item.highlight {
  background: #f0fdf4;
  border-color: var(--g400);
}
.bgg-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
}
.bgg-title svg { width: 15px; height: 15px; }
.bgg-item p {
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 3px;
  line-height: 1.35;
}

/* QR Simulator */
.qr-sheet { text-align: center; }
.qr-box { padding: 14px 10px 10px; }
.qr-canvas {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  border: 2px dashed var(--g400);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-image: 
    radial-gradient(#111 25%, transparent 25%),
    radial-gradient(#111 25%, transparent 25%);
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
}
.qr-center-logo {
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.qr-center-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.qr-instructions { font-size: 13px; color: var(--ink-2); line-height: 1.45; margin-bottom: 8px; }
.qr-timer { font-size: 11.5px; color: var(--g600); font-weight: 700; margin-bottom: 16px; }

/* =================== ANIMATIONS =================== */
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* =================== COMPREHENSIVE RESPONSIVE ENHANCEMENTS =================== */

/* Mobile Phones (Edge-to-Edge Fluid Mobile App Mode) */
@media (max-width: 599px) {
  html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: var(--bg);
    overflow: hidden;
  }
  .app, .login {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }
  .main {
    padding: 6px 14px calc(80px + var(--safe-b));
    -webkit-overflow-scrolling: touch;
  }
  .topbar {
    padding: 10px 14px;
  }
  .branch-nav-wrap {
    padding: 8px 14px 10px;
  }
}

/* Medium Mobile / Standard Mobile (361px - 440px) */
@media (max-width: 440px) {
  .hero {
    padding: 16px;
    gap: 10px;
  }
  .hero-big {
    font-size: 28px;
  }
  .ring {
    width: 88px;
    height: 88px;
  }
  .ring-label span {
    font-size: 20px;
  }
  .pactions {
    gap: 4px;
    padding: 10px 10px 12px;
  }
  .act {
    padding: 8px 2px;
    font-size: 11px;
    gap: 3px;
  }
  .act svg {
    width: 14px;
    height: 14px;
  }
}

/* Small Mobile Screens (<= 360px) - e.g. iPhone SE, budget Androids */
@media (max-width: 360px) {
  .hero {
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
  }
  .hero .ring {
    align-self: center;
    margin-top: 6px;
  }
  .tiles {
    gap: 6px;
  }
  .tile {
    padding: 10px 8px;
  }
  .tile-num {
    font-size: 18px;
  }
  .tile-lbl {
    font-size: 10px;
  }
  .arb-counts {
    gap: 5px;
  }
  .arb-c-val {
    font-size: 15px;
  }
  .arb-c-lbl {
    font-size: 9.5px;
  }
  .arb-actions {
    grid-template-columns: 1fr;
  }
  .pactions {
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 6px 10px;
    gap: 3px;
  }
  .act {
    font-size: 10px;
    padding: 7px 2px;
  }
  .act svg {
    width: 12px;
    height: 12px;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Tablet & Desktop Layouts (>= 600px) */
@media (min-width: 600px) {
  .sheet-wrap {
    align-items: center;
    padding: 24px;
  }
  .sheet {
    max-width: 540px;
    max-height: 85vh;
    border-radius: 28px;
    box-shadow: 0 25px 70px rgba(0,0,0,.25);
    transform: translateY(20px) scale(0.96);
    opacity: 0;
  }
  .sheet-wrap.open .sheet {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  .grabber {
    display: none;
  }
  .pcard {
    transition: transform .15s ease, box-shadow .15s ease;
  }
  .pcard:hover {
    box-shadow: 0 6px 20px rgba(16,40,28,.09);
    transform: translateY(-1px);
  }
}

/* ========================================================
   DEVICE ACTIVATION LOCK SCREEN (FOR UNVERIFIED APK / DEVICES)
   ======================================================== */
.activation-lock-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at 50% 20%, #1e4530, #0a1f14);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.activation-lock-screen.hidden {
  display: none !important;
}
.als-card {
  background: #ffffff;
  width: 100%;
  max-width: 420px;
  border-radius: 28px;
  padding: 32px 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  text-align: center;
}
.als-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16,40,28,0.15);
}
.als-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.als-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 4px;
}
.als-sub {
  font-size: 14px;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 20px;
}
.als-alert {
  background: #fef3c7;
  color: #92400e;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 20px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}
.als-alert svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.als-foot {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 20px;
  line-height: 1.5;
}

/* ========================================================
   SUPER ADMIN CONTROLS (CAPTAIN OF THE SHIP)
   ======================================================== */
.sa-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 16px;
}
.sa-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.sa-card-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sa-card-header h4 svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}
.sa-desc {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 12px;
  line-height: 1.4;
}
.sa-limit-form {
  display: flex;
  gap: 10px;
  align-items: center;
}
.sa-limit-form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid #d1d5db;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}
.sa-users-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sa-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}
.sa-user-name {
  font-weight: 700;
  font-size: 13px;
  color: #111827;
}
.sa-user-pin {
  font-family: monospace;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #065f46;
  background: #d1fae5;
  padding: 4px 10px;
  border-radius: 8px;
}
.sa-pin-gen-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sa-pin-gen-box input {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid #d1d5db;
  font-size: 14px;
}
.sa-pin-display {
  background: #ecfdf5;
  border: 1.5px dashed #059669;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  margin-top: 12px;
}
.sa-pin-display.hidden {
  display: none !important;
}
.sa-pin-lbl {
  display: block;
  font-size: 12px;
  color: #065f46;
  font-weight: 600;
  margin-bottom: 6px;
}
.sa-pin-code {
  display: block;
  font-size: 32px;
  letter-spacing: 6px;
  font-weight: 900;
  color: #047857;
  margin-bottom: 4px;
}
.sa-pin-note {
  font-size: 11px;
  color: #6b7280;
}
.sa-devices-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}
.sa-dev-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 12px;
}
.sa-dev-info b {
  display: block;
  color: #111827;
}
.sa-dev-info small {
  color: #6b7280;
}
