/* ══════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════ */
:root {
  /* Brand colors */
  --primary:        #431843;
  --primary-dark:   #003c8f;
  --primary-light:  #E3F2FD;
  --secondary:      #00838F;
  --error:          #B00020;
  --error-light:    #FFDAD6;
  --success:        #2E7D32;
  --success-light:  #E8F5E9;
  --warning:        #BF4400;
  --warning-light:  #FFF3E0;
  --surface:        #FFFFFF;
  --surface-var:    #EEF2FF;
  --bg:             #F8F9FF;
  --on-primary:     #FFFFFF;
  --on-surface:     #1A1C2E;
  --on-surface-2:   #5C6070;
  --on-surface-3:   #6A6A6A;
  --divider:        #E2E8F0;
  --border:         #C8D0E0;
  --page-bg:        #E8EAF6;

  /* 8px spacing scale */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;

  /* Typography scale */
  --text-xs:   10px;
  --text-sm:   12px;
  --text-base: 13px;
  --text-md:   14px;
  --text-lg:   16px;
  --text-xl:   18px;
  --text-2xl:  20px;
  --text-3xl:  22px;

  /* Line heights */
  --leading-tight:   1.3;
  --leading-normal:  1.5;
  --leading-relaxed: 1.6;

  /* Font weights */
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  /* Border radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --radius-full: 9999px;

  /* Leading aliases */
  --leading-loose: 1.6;
}

/* ══════════════════════════════════════════
   RESET
══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Roboto', sans-serif;
  background: var(--page-bg);
  padding: 40px;
  padding-right: 276px;
  min-height: 100vh;
  color: var(--on-surface);
  line-height: var(--leading-normal);
}

/* ══════════════════════════════════════════
   SKIP LINK
══════════════════════════════════════════ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-4);
  background: var(--primary);
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: var(--fw-semibold);
  font-size: var(--text-sm);
  z-index: 999;
  text-decoration: none;
}
.skip-link:focus { left: var(--space-4); }

/* ══════════════════════════════════════════
   GLOBAL TYPOGRAPHY CLASSES
══════════════════════════════════════════ */
.h1 { font-size: var(--text-xl);   font-weight: var(--fw-bold);    color: var(--on-surface); line-height: var(--leading-tight); }
.h2 { font-size: var(--text-lg);   font-weight: var(--fw-bold);    color: var(--on-surface); line-height: var(--leading-tight); }
.h3 { font-size: var(--text-md);   font-weight: var(--fw-bold);    color: var(--on-surface); line-height: var(--leading-tight); }

.body-lg   { font-size: var(--text-md);   font-weight: var(--fw-regular); color: var(--on-surface);   line-height: var(--leading-normal); }
.body-base { font-size: var(--text-base); font-weight: var(--fw-regular); color: var(--on-surface);   line-height: var(--leading-normal); }
.body-sm   { font-size: var(--text-sm);   font-weight: var(--fw-regular); color: var(--on-surface-2); line-height: var(--leading-normal); }
.body-xs   { font-size: var(--text-xs);   font-weight: var(--fw-regular); color: var(--on-surface-3); line-height: var(--leading-normal); }

.text-primary   { color: var(--primary); }
.text-secondary { color: var(--on-surface-2); }
.text-muted     { color: var(--on-surface-3); }
.text-error     { color: var(--error); }
.text-success   { color: var(--success); }
.text-bold      { font-weight: var(--fw-bold); }
.text-semibold  { font-weight: var(--fw-semibold); }
.text-medium    { font-weight: var(--fw-medium); }
.text-center    { text-align: center; }

/* Links — global */
.link {
  color: var(--primary);
  font-weight: var(--fw-semibold);
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.link:hover { opacity: 0.8; }
.link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }
.link-sm   { font-size: var(--text-sm); }
.link-muted { color: var(--on-surface-2); font-weight: var(--fw-regular); text-decoration: underline; text-underline-offset: 2px; }

/* Labels / caps */
.label-xs {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--on-surface-3);
}

/* ══════════════════════════════════════════
   GLOBAL BUTTON CLASSES
══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 44px;
  min-height: 44px;
  flex-shrink: 0;
  padding: 0 var(--space-6);
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  width: 100%;
  transition: opacity 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.btn:hover  { opacity: 0.9; }
.btn:active { opacity: 0.8; }

.btn-primary  { background: var(--primary);       color: var(--on-primary); }
.btn-outlined { background: transparent;           color: var(--primary); border: 1.5px solid var(--primary); }
.btn-tonal    { background: var(--primary-light);  color: var(--primary); }
.btn-danger   { background: var(--error-light);    color: var(--error); border: 1px solid var(--error); }

.btn-text {
  background: transparent;
  color: var(--primary);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  height: 36px;
  padding: 0 var(--space-3);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: underline;
  text-underline-offset: 2px;
  border-radius: var(--radius-sm);
}
.btn-text:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ══════════════════════════════════════════
   SPACING UTILITIES
══════════════════════════════════════════ */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }

.p-4  { padding: var(--space-4); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }

.stack-2 { display: flex; flex-direction: column; gap: var(--space-2); }
.stack-3 { display: flex; flex-direction: column; gap: var(--space-3); }
.stack-4 { display: flex; flex-direction: column; gap: var(--space-4); }
.stack-5 { display: flex; flex-direction: column; gap: var(--space-5); }

/* ══════════════════════════════════════════
   LAYOUT UTILITIES
══════════════════════════════════════════ */
.w-full     { width: 100%; }
.text-right { text-align: right; }
.flex-1     { flex: 1; min-width: 0; }
.row-item   { display: flex; align-items: center; gap: var(--space-3); }
.row-between{ display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.meta-row   { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-3); }
.card-padded{ margin: 0 var(--space-3); }
.dimmed     { opacity: 0.45; }
.pos-rel    { position: relative; }
.icon-sm    { font-size: 16px !important; }
.icon-md    { font-size: 20px !important; }
.icon-lg    { font-size: 24px !important; }
.mt-neg     { margin-top: -4px; }

/* Avatar color variants */
.avatar-primary { background: var(--primary);   color: white; }
.avatar-teal    { background: var(--secondary);  color: white; }
.avatar-orange  { background: var(--warning);    color: white; }
.avatar-success { background: var(--success);    color: white; }
.avatar-purple  { background: #7B1FA2;           color: white; }
.avatar-error   { background: var(--error);      color: white; }

/* ── Additional utility classes ── */
.row          { display: flex; align-items: center; }
.text-white   { color: #fff; }
.text-semi    { font-weight: var(--fw-semibold); }
.text-warning { color: var(--warning); }
.border-none  { border: none !important; }
.avatar-40    { width: 40px; height: 40px; }
.avatar-52    { width: 52px; height: 52px; font-size: var(--text-lg); }
.chip-white   { background: rgba(255,255,255,0.2); color: white; border: 1px solid rgba(255,255,255,0.4); }
.icon-sm, .icon-md, .icon-lg { flex-shrink: 0; }
.reg-content-center { align-items: center; }
.reg-content-notop  { padding-top: 0; }
.bg-surface  { background: var(--surface); }
.nav-item-rel { position: relative; }
.leading-loose { line-height: var(--leading-loose); }
.leading-normal { line-height: var(--leading-normal); }
.nav-badge-static { position: static; margin-left: auto; }
.settings-divider { height: 1px; background: var(--divider); margin: var(--space-2) 0; }
.illus-circle-mt  { margin-top: var(--space-1); }

/* ══════════════════════════════════════════
   PAGE HEADER
══════════════════════════════════════════ */
.page-title    { font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 6px; line-height: 1.3; }
.page-subtitle { font-size: 14px; color: var(--on-surface-2); margin-bottom: 20px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 16px; font-size: 12px; font-weight: 500;
  border: 1px solid var(--border); background: var(--surface-var); color: var(--primary);
}
.chip-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ══════════════════════════════════════════
   GRID
══════════════════════════════════════════ */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 20px;
}
.screen-cell  { display: flex; flex-direction: column; gap: 8px; }
.screen-label { font-size: 11px; font-weight: 600; color: var(--on-surface-2); letter-spacing: 0.8px; text-transform: uppercase; }
.screen-title { font-size: 14px; font-weight: 700; color: var(--on-surface); margin-bottom: 4px; line-height: 1.3; }

/* ══════════════════════════════════════════
   PHONE FRAME
══════════════════════════════════════════ */
.phone-frame {
  width: 280px;
  height: 580px;
  overflow: hidden;
  position: relative;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  /* box-shadow: 0 4px 16px rgba(21,101,192,0.12); */
  background: var(--surface);
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: var(--leading-normal);
}

/* ── App Bar ── */
.app-bar {
  height: 56px;
  background: var(--primary);
  display: flex;
  align-items: center;
  padding: 0 var(--space-2) 0 var(--space-1);
  gap: var(--space-1);
  flex-shrink: 0;
}
.app-bar-title {
  color: var(--on-primary);
  font-size: 17px;
  font-weight: var(--fw-medium);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Reset heading defaults */
  line-height: 1;
  margin: 0;
}
.app-bar-title-padded { padding-left: var(--space-3); }
.app-bar .material-icons {
  color: var(--on-primary);
  font-size: 22px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}
.icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0;
  flex-shrink: 0;
  color: var(--on-primary);
}
.icon-btn:focus-visible { outline: 2px solid rgba(255,255,255,0.8); outline-offset: 2px; }
.icon-btn .material-icons { font-size: 22px; color: var(--on-primary); }
.avatar-sm {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  margin: 0 8px;
  color: var(--on-primary);
  font-size: 12px; font-weight: var(--fw-bold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── Screen Content ── */
.screen-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.scrollable { overflow-y: auto; flex: 1; }
.scrollable::-webkit-scrollbar { display: none; }

/* ── Bottom Nav ── */
.bottom-nav {
  height: 56px;
  background: var(--surface);
  border-top: 1px solid var(--divider);
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  padding: 6px 0;
  position: relative;
}
.nav-item:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.nav-item .material-icons { font-size: 22px; color: var(--on-surface-3); }
.nav-item .nav-label { font-size: 10px; font-weight: var(--fw-medium); color: var(--on-surface-3); }
.nav-item.active .material-icons { color: var(--primary); }
.nav-item.active .nav-label { color: var(--primary); font-weight: var(--fw-bold); }
.nav-badge {
  position: absolute; top: 6px; right: calc(50% - 18px);
  background: var(--error); color: white;
  font-size: 9px; font-weight: var(--fw-bold);
  min-width: 16px; height: 16px;
  border-radius: 8px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--divider);
  padding: 14px;
  /* margin: 0; */
}

/* ── Text Fields (display-only wireframe) ── */
.field-group { display: flex; flex-direction: column; gap: 2px; }
.text-field {
  position: relative;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px 8px;
  background: var(--surface);
  width: 100%;
}
.text-field.error { border-color: var(--error); }
.tf-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--on-surface-3);
  margin-bottom: 3px;
}
.text-field.error .tf-label { color: var(--error); }
.tf-value {
  display: block;
  font-size: var(--text-base);
  color: var(--on-surface);
  font-weight: var(--fw-regular);
  line-height: 1.4;
}
.tf-placeholder {
  display: block;
  font-size: var(--text-base);
  color: var(--on-surface-3);
  line-height: 1.4;
}
.tf-icon {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 18px;
  color: var(--on-surface-3);
}
.field-error {
  font-size: 11px;
  color: var(--error);
  margin-top: var(--space-1);
  padding-left: 2px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.field-error .material-icons { font-size: 20px; }

/* ── Divider with label ── */
.divider-label {
  display: flex; align-items: center; gap: 10px;
  color: var(--on-surface-3); font-size: 11px;
  width: 100%;
}
.divider-label::before,
.divider-label::after {
  content: ''; flex: 1; height: 1px; background: var(--divider);
}

/* ── Section headers ── */
.section-header {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0 var(--space-4); margin-bottom: var(--space-2);
}
.section-title { font-size: var(--text-md); font-weight: var(--fw-bold); color: var(--on-surface); margin-top: 16px;}
.section-link  { font-size: var(--text-sm); color: var(--primary); font-weight: var(--fw-medium); cursor: pointer; }
.section-label {
  font-size: var(--text-xs); font-weight: var(--fw-bold); letter-spacing: 0.9px;
  text-transform: uppercase; color: var(--on-surface-3);
  padding: var(--space-3) var(--space-4) 6px;
}

/* ── List items ── */
.list-item {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 14px var(--space-4);
  border-bottom: 1px solid var(--divider);
  background: var(--surface);
  cursor: pointer;
  /* border: none; */
}
.list-item:last-child { border-bottom: none; }
.list-item .item-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.list-item .item-icon .material-icons { font-size: 20px; }
.list-item .item-body { flex: 1; min-width: 0; }
.list-item .item-title    { font-size: var(--text-base); font-weight: var(--fw-medium); color: var(--on-surface); line-height: 1.4; }
.list-item .item-subtitle { font-size: var(--text-sm); color: var(--on-surface-2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .item-meta     { font-size: 11px; color: var(--on-surface-3); text-align: right; flex-shrink: 0; }
.list-item .material-icons.chevron { color: var(--on-surface-3); font-size: 18px; }
.unread-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0;
}

/* Message list reset */
.msg-list { list-style: none; }

/* ── Toggle switch ── */
.toggle {
  width: 40px; height: 22px; border-radius: 11px;
  border: 2px solid var(--on-surface-3);
  position: relative; flex-shrink: 0; cursor: pointer;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
}
.toggle.on { background: var(--primary); border-color: var(--primary); }
.toggle::after {
  content: '';
  position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--on-surface-3);
  transition: transform 0.2s;
}
.toggle.on::after { transform: translateX(18px); background: white; }

/* ── Status chips ── */
.chip-sm {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 12px;
  font-size: 11px; font-weight: var(--fw-semibold);
}
.chip-success { background: var(--success-light); color: var(--success); }
.chip-primary { background: var(--primary-light); color: var(--primary); }
.chip-warning { background: var(--warning-light); color: var(--warning); }
.chip-error   { background: var(--error-light);   color: var(--error); }
.chip-white   { background: rgba(255,255,255,0.2); color: white; border: 1px solid rgba(255,255,255,0.4); }

/* ── Progress bar ── */
.progress-bar-track {
  height: 6px; background: var(--divider); border-radius: 3px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; border-radius: 3px; background: var(--primary);
}
/* Registration progress bar (in app bar strip) */
.reg-progress {
  display: flex;
  background: var(--primary);
}
.reg-progress-seg {
  flex: 1;
  height: 4px;
}
.reg-progress-seg.on  { background: rgb(44, 172, 236); }
.reg-progress-seg.off { background: rgba(255,255,255,0.3); }

/* ── OTP boxes ── */
.otp-row { display: flex; gap: var(--space-2); justify-content: center; }
.otp-box {
  width: 36px; height: 44px; border: 1.5px solid var(--border);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: var(--fw-bold); color: var(--on-surface); background: var(--surface);
}
.otp-box.filled { border-color: var(--primary); color: var(--primary); }

/* ── Step indicator ── */
.step-row   { display: flex; align-items: center; padding: 0 var(--space-4); }
.step-item  { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.step-circle {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: var(--fw-bold); color: var(--on-surface-3); background: var(--surface);
}
.step-circle.done   { background: var(--primary); border-color: var(--primary); color: white; }
.step-circle.active { border-color: var(--primary); color: var(--primary); }
.step-label         { font-size: var(--text-xs); color: var(--on-surface-3); font-weight: var(--fw-medium); }
.step-label.active  { color: var(--primary); font-weight: var(--fw-bold); }
.step-line      { flex: 1; height: 2px; background: var(--border); margin: 0 4px; margin-bottom: 14px; }
.step-line.done { background: var(--primary); }

/* ── Avatar ── */
.avatar {
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: var(--fw-bold); font-size: var(--text-base); flex-shrink: 0;
}

/* ── Tabs ── */
.tabs {
  display: flex; background: var(--surface);
  border-bottom: 1px solid var(--divider);
  flex-shrink: 0;
}
.tab {
  flex: 1; padding: var(--space-3) var(--space-2); text-align: center;
  font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--on-surface-3);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
}
.tab:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: var(--fw-bold); }

/* ── Search bar ── */
.search-bar {
  display: flex; align-items: center; gap: var(--space-2);
  background: var(--surface-var); border-radius: 24px;
  padding: 9px var(--space-4); margin: 10px 14px;
}
.search-bar .material-icons { color: var(--on-surface-3); font-size: 18px; }
.search-placeholder { font-size: var(--text-base); color: var(--on-surface-3); }

/* ── Hero card (home) ── */
.hero-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--on-primary);
  padding: var(--space-4);
  flex-shrink: 0;
}
.hero-greeting { font-size: 17px; font-weight: var(--fw-bold); margin-bottom: 4px; line-height: var(--leading-tight); }
.hero-sub      { font-size: var(--text-sm); opacity: 0.8; }

/* ── Quick action cards ── */
.quick-actions { display: flex; gap: var(--space-2); padding: var(--space-3) var(--space-3) 0; }
.quick-card {
  flex: 1; background: var(--surface); border: 1px solid var(--divider);
  border-radius: 10px; padding: 10px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; position: relative;
}
.quick-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.quick-card .material-icons { font-size: 22px; color: var(--primary); }
.quick-card .q-label { font-size: var(--text-xs); font-weight: var(--fw-semibold); color: var(--on-surface); text-align: center; }

/* ── Stat boxes ── */
.stat-row { display: flex; gap: var(--space-2); padding: 0 var(--space-3); }
.stat-box {
  flex: 1; background: var(--surface); border: 1px solid var(--divider);
  border-radius: var(--radius-md); padding: 10px var(--space-2);
}
.stat-label { font-size: var(--text-xs); color: var(--on-surface-2); font-weight: var(--fw-medium); margin-bottom: 4px; }
.stat-value { font-size: var(--text-md); font-weight: var(--fw-bold); color: var(--primary); }
.stat-total { font-size: var(--text-xs); color: var(--on-surface-3); margin-top: 2px; }

/* ── Insurance card ── */
.insurance-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg); padding: var(--space-4); margin: var(--space-3) var(--space-3) 0; color: white;
}
.ins-plan   { font-size: var(--text-md); font-weight: var(--fw-bold); margin-bottom: 4px; }
.ins-meta   { font-size: 11px; opacity: 0.8; margin-bottom: 2px; }
.ins-footer { display: flex; justify-content: space-between; align-items: center; margin-top: var(--space-3); }
.ins-member { font-size: var(--text-base); font-weight: var(--fw-semibold); }

/* ── Care option cards ── */
.care-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); padding: 10px var(--space-3);
}
.care-card {
  background: var(--surface); border: 1px solid var(--divider);
  border-radius: var(--radius-lg); padding: 14px 10px;
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2);
  cursor: pointer;
}
.care-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.care-icon {
  width: 40px; height: 40px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
}
.care-icon .material-icons { font-size: 22px; }
.care-name { font-size: var(--text-sm); font-weight: var(--fw-bold); color: var(--on-surface); line-height: 1.3; }
.care-sub  { font-size: var(--text-xs); color: var(--on-surface-2); margin-top: 2px; }

/* Care icon color variants */
.care-icon-blue   { background: #E3F2FD; }
.care-icon-blue .material-icons   { color: var(--primary); }
.care-icon-orange { background: #FFF3E0; }
.care-icon-orange .material-icons { color: #E65100; }
.care-icon-green  { background: #E8F5E9; }
.care-icon-green .material-icons  { color: #2E7D32; }
.care-icon-purple { background: #F3E5F5; }
.care-icon-purple .material-icons { color: #7B1FA2; }
.care-icon-teal   { background: #E0F7FA; }
.care-icon-teal .material-icons   { color: #00838F; }
.care-icon-red    { background: #FCE4EC; }
.care-icon-red .material-icons    { color: #C62828; }

/* ── Nav drawer ── */
.drawer-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.45); z-index: 10;
}
.drawer {
  position: absolute; top: 0; left: auto; right: 0; bottom: 0;
  width: 216px; background: var(--surface);
  z-index: 20; display: flex; flex-direction: column;
  box-shadow: -4px 0 20px rgba(0,0,0,0.18);
}
.drawer-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 20px var(--space-4);
  display: flex; flex-direction: column; gap: 6px;
  position: relative;
}
.drawer-close {
  position: absolute;
  top: 8px; right: 8px;
  width: 32px; height: 32px;
  border-radius: 50%; border: none;
  background: rgba(255,255,255,0.15); color: white;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-family: inherit;
}
.drawer-close:hover { background: rgba(255,255,255,0.25); }
.drawer-close .material-icons { font-size: 20px; }
.drawer-edit-link {
  font-size: var(--text-xs); color: rgba(255,255,255,0.7);
  text-decoration: underline; text-underline-offset: 2px;
  cursor: pointer; background: none; border: none;
  font-family: inherit; padding: 0; text-align: left; margin-top: var(--space-1);
}
.drawer-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.25); color: white;
  font-size: var(--text-lg); font-weight: var(--fw-bold);
  display: flex; align-items: center; justify-content: center; margin-bottom: 4px;
}
.drawer-name { color: white; font-size: 15px; font-weight: var(--fw-bold); }
.drawer-plan { color: rgba(255,255,255,0.75); font-size: 11px; }
.drawer-nav-list { list-style: none; flex: 1; overflow-y: auto; }
.drawer-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px var(--space-4);
  font-size: var(--text-base); font-weight: var(--fw-medium); color: var(--on-surface);
  cursor: pointer; position: relative;
  background: none; border: none; width: 100%; font-family: inherit;
  text-align: left; text-decoration: none;
}
.drawer-item:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.drawer-item.active { background: var(--primary-light); color: var(--primary); }
.drawer-item .material-icons { font-size: 20px; color: var(--on-surface-3); }
.drawer-item.active .material-icons { color: var(--primary); }
.drawer-divider { height: 1px; background: var(--divider); margin: 4px 0; }
.drawer-item.danger { color: var(--error); }
.drawer-item.danger .material-icons { color: var(--error); }

/* ── Modal overlay ── */
.modal-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 30; padding: 20px;
}
.modal-card {
  background: var(--surface); border-radius: var(--radius-xl);
  padding: 28px 24px 24px; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}
.modal-icon  { margin-bottom: var(--space-4); }
.modal-icon-circle {
  width: 56px; height: 56px; border-radius: 50%; background: var(--error-light);
  display: flex; align-items: center; justify-content: center;
}
.modal-title   { font-size: var(--text-xl); font-weight: var(--fw-bold); color: var(--on-surface); margin-bottom: 10px; text-align: center; line-height: var(--leading-tight); }
.modal-body    { font-size: var(--text-base); color: var(--on-surface-2); text-align: center; line-height: var(--leading-relaxed); margin-bottom: 24px; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; }

/* ── Toast ── */
.toast {
  position: absolute; bottom: 12px; left: var(--space-3); right: var(--space-3);
  background: #1A1C2E; border-radius: var(--radius-md);
  padding: var(--space-3) 14px; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3); z-index: 50;
}
.toast-text   { flex: 1; font-size: var(--text-sm); color: white; line-height: 1.4; }
.toast-action { font-size: var(--text-sm); font-weight: var(--fw-bold); color: #90CAF9; white-space: nowrap; cursor: pointer; background: none; border: none; font-family: inherit; padding: 0; }
.toast-icon   { color: var(--success); font-size: 20px; flex-shrink: 0; }

/* ── Login screen ── */
.login-hero {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 24px 28px; flex-shrink: 0;
}
.login-logo {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.login-logo .material-icons { font-size: 34px; color: white; }
.login-app-name { color: white; font-size: var(--text-3xl); font-weight: var(--fw-bold); letter-spacing: -0.5px; }
.login-tagline  { color: rgba(255,255,255,0.72); font-size: var(--text-sm); margin-top: 3px; }
.login-card {
  background: var(--surface); border-radius: 20px 20px 0 0;
  padding: var(--space-6) var(--space-4) var(--space-4); flex: 1;
  display: flex; flex-direction: column; gap: var(--space-3);
  overflow: hidden;
}
.login-card-tight { gap: var(--space-3); }
.login-welcome { font-size: var(--text-2xl); font-weight: var(--fw-bold); color: var(--on-surface); line-height: var(--leading-tight); margin: 0; }
.login-sub     { font-size: var(--text-base); color: var(--on-surface-2); margin-top: -4px; margin-bottom: 4px; }

/* ── Error banner ── */
.error-banner {
  background: var(--error-light); border: 1px solid var(--error);
  border-radius: var(--radius-md); padding: 10px var(--space-3);
  display: flex; align-items: flex-start; gap: var(--space-2);
}
.error-banner .material-icons { color: var(--error); font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.error-banner p { font-size: var(--text-sm); color: var(--error); line-height: var(--leading-normal); }

/* ── Illustration circle ── */
.illus-circle {
  width: 72px; height: 72px; border-radius: 50%; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center; margin: var(--space-4) auto 0;
}
.illus-circle .material-icons { font-size: 36px; color: var(--primary); }

/* ── Password strength ── */
.pwd-strength      { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.pwd-strength-bars { display: flex; gap: 4px; }
.pwd-bar            { flex: 1; height: 4px; border-radius: 2px; background: var(--divider); }
.pwd-bar.filled-weak   { background: var(--error); }
.pwd-bar.filled-med    { background: #F57C00; }
.pwd-bar.filled-strong { background: var(--success); }
.pwd-label { font-size: 11px; color: #F57C00; font-weight: var(--fw-medium); }

/* ── Benefits list ── */
.benefit-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px var(--space-4); border-bottom: 1px solid var(--divider);
  background: var(--surface);
}
.benefit-row:last-child { border-bottom: none; }
.benefit-name { font-size: var(--text-base); color: var(--on-surface); font-weight: var(--fw-medium); }
.benefit-val  { font-size: var(--text-sm); color: var(--on-surface-2); }

/* Registration content wrapper */
.reg-content {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Settings profile header */
.settings-profile {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
}
.settings-name { font-size: 15px; font-weight: var(--fw-bold); color: var(--on-surface); }

/* Message list trailing cell */
.msg-trailing {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

/* Alert card */
.alert-card {
  background: var(--warning-light);
  border-color: #FFB300;
}
.alert-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-icon { color: var(--warning); flex-shrink: 0; margin-top: 2px; }

/* ── Control panel ── */
#ctrl-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: 248px;
  background: white; border-left: 1px solid var(--divider);
  box-shadow: -4px 0 20px rgba(21,101,192,0.10);
  overflow-y: auto; z-index: 100; display: flex; flex-direction: column;
  transition: transform 0.25s ease;
}
#ctrl-panel header {
  background: var(--primary); color: white;
  padding: 14px 16px 12px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.3px; flex-shrink: 0;
}
#ctrl-panel header span { font-size: 11px; font-weight: 400; opacity: 0.75; display: block; margin-top: 2px; }
.ctrl-section { padding: 12px 16px 4px; border-bottom: 1px solid #F0F4FF; }
.ctrl-section-label { font-size: 10px; font-weight: 700; letter-spacing: 0.9px; text-transform: uppercase; color: #9CA3AF; margin-bottom: 10px; }
.ctrl-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
.ctrl-row label { font-size: 12px; color: #1A1C2E; font-weight: 500; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctrl-row input[type="color"] { width: 36px; height: 26px; border: 1.5px solid #DEE2F0; border-radius: 4px; cursor: pointer; padding: 1px 2px; background: none; flex-shrink: 0; }
.ctrl-hex { font-size: 10px; color: #9CA3AF; width: 54px; flex-shrink: 0; text-align: right; font-family: monospace; }
.ctrl-range-row { margin-bottom: 12px; }
.ctrl-range-row label { font-size: 12px; color: #1A1C2E; font-weight: 500; display: flex; justify-content: space-between; margin-bottom: 6px; }
.ctrl-range-row label span { color: var(--primary); font-weight: 600; }
input[type="range"] { width: 100%; accent-color: var(--primary); cursor: pointer; }
.ctrl-select-row { margin-bottom: 12px; }
.ctrl-select-row label { font-size: 12px; color: #1A1C2E; font-weight: 500; display: block; margin-bottom: 6px; }
.ctrl-select-row select { width: 100%; padding: 6px 8px; border: 1.5px solid #DEE2F0; border-radius: 4px; font-size: 12px; font-family: inherit; color: #1A1C2E; background: #FAFAFA; cursor: pointer; }
.ctrl-btn { display: block; width: calc(100% - 32px); margin: 12px 16px; padding: 9px; background: #EEF2FF; border: 1.5px solid #C5CAE9; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--primary); cursor: pointer; text-align: center; font-family: inherit; }

/* ── Compose Message ── */
.compose-field { display:flex; align-items:flex-start; gap:var(--space-3); padding:var(--space-3) var(--space-4); border-bottom:1px solid var(--divider); background:var(--surface); }
.compose-field-label { font-size:13px; color:var(--text-secondary); padding-top:2px; flex-shrink:0; /*width:52px;*/ }
.compose-field-value { flex:1; font-size:13px; color:var(--on-surface); line-height:1.8; }
.compose-recipient-chip { display:inline-flex; align-items:center; line-height: 20px; gap:4px; background:var(--primary-light); color:var(--primary); border-radius:16px; padding:2px 8px 2px 4px; font-size:12px; font-weight:var(--fw-medium); }
.compose-body-area { flex:1; padding:var(--space-4); background:var(--surface); overflow-y:auto; }
.compose-body-text { font-size:13px; color:var(--on-surface); line-height:1.6; }
.compose-cursor { display:inline-block; width:1px; height:14px; background:var(--primary); vertical-align:text-bottom; animation:blink 1s step-end infinite; }
@keyframes blink { 50% { opacity:0; } }
.compose-toolbar { display:flex; align-items:center; padding:6px var(--space-3); border-top:1px solid var(--divider); background:var(--surface); gap:var(--space-2); }
.compose-toolbar-btn { display:flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:50%; background:none; border:none; cursor:pointer; color:var(--text-secondary); }
.compose-toolbar-spacer { flex:1; }
.compose-send-btn { display:inline-flex; align-items:center; gap:6px; background:var(--primary); color:white; border:none; border-radius:20px; padding:7px 16px; font-size:13px; font-weight:var(--fw-medium); cursor:pointer; }

/* ── Claims ── */
.claim-row-trailing { display:flex; flex-direction:column; align-items:flex-end; gap:4px; flex-shrink:0; }
.claim-amount { font-size:13px; font-weight:var(--fw-medium); color:var(--on-surface); }
.claim-detail-section { padding:var(--space-4); background:var(--surface); border-bottom:1px solid var(--divider); }
.claim-kv { display:flex; justify-content:space-between; align-items:center; padding:6px 0; border-bottom:1px solid var(--divider); }
.claim-kv:last-child { border-bottom:none; }
.claim-kv-label { font-size:13px; color:var(--text-secondary); }
.claim-kv-value { font-size:13px; color:var(--on-surface); font-weight:var(--fw-medium); }
.claim-total-row { display:flex; justify-content:space-between; align-items:center; padding:10px var(--space-4); background:var(--primary-light); border-top:1px solid var(--divider); border-bottom:1px solid var(--divider); }
.claim-total-label { font-size:14px; font-weight:var(--fw-bold); color:var(--primary); }
.claim-total-value { font-size:16px; font-weight:var(--fw-bold); color:var(--primary); }
.claim-status-banner { display:flex; align-items:center; gap:10px; padding:12px var(--space-4); }
.claim-status-banner-success { background:var(--success-light); color:var(--success); }
.claim-status-banner-warning { background:var(--warning-light); color:var(--warning); }
.claim-status-banner-error { background:var(--error-light); color:var(--error); }
.claim-status-title { font-size:15px; font-weight:var(--fw-bold); }
.claim-status-sub { font-size:12px; opacity:0.85; }

/* ── ID Cards ── */
.id-card-list { display:flex; flex-direction:column; gap:var(--space-3); padding:var(--space-3); }
.id-card-thumb {
  border-radius:var(--radius-lg);
  padding:var(--space-4);
  color:white;
  position:relative;
  overflow:hidden;
  cursor:pointer;
}
.id-card-thumb::after {
  content:'';
  position:absolute;
  right:-20px; top:-20px;
  width:100px; height:100px;
  border-radius:50%;
  background:rgba(255,255,255,0.08);
}
.id-card-thumb-medical  { background:linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }
.id-card-thumb-dental   { background:linear-gradient(135deg, #00838F 0%, #00575F 100%); }
.id-card-thumb-vision   { background:linear-gradient(135deg, #6A1B9A 0%, #4A148C 100%); }
.id-card-thumb-rx       { background:linear-gradient(135deg, #E65100 0%, #BF360C 100%); }
.id-card-thumb-type { font-size:11px; font-weight:600; opacity:0.75; letter-spacing:0.8px; text-transform:uppercase; margin-bottom:6px; }
.id-card-thumb-plan { font-size:14px; font-weight:700; margin-bottom:2px; }
.id-card-thumb-member { font-size:12px; opacity:0.85; }
.id-card-thumb-footer { display:flex; justify-content:space-between; align-items:center; margin-top:var(--space-3); }
.id-card-thumb-id { font-size:11px; opacity:0.75; font-family:monospace; }

/* Full card detail */
.id-card-full {
  border-radius:var(--radius-lg);
  margin:var(--space-3);
  color:white;
  overflow:hidden;
  box-shadow:0 4px 16px rgba(0,0,0,0.2);
}
.id-card-full-front {
  background:linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding:var(--space-4);
}
.id-card-logo-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:var(--space-3); }
.id-card-logo-text { font-size:16px; font-weight:700; letter-spacing:-0.3px; }
.id-card-logo-sub  { font-size:10px; opacity:0.7; }
.id-card-chip-icon { width:32px; height:22px; border-radius:4px; background:rgba(255,255,255,0.25); border:1px solid rgba(255,255,255,0.4); }
.id-card-member-name { font-size:17px; font-weight:700; margin-bottom:2px; }
.id-card-member-dob  { font-size:11px; opacity:0.75; margin-bottom:var(--space-3); }
.id-card-numbers { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.id-card-num-label { font-size:10px; opacity:0.65; text-transform:uppercase; letter-spacing:0.5px; margin-bottom:2px; }
.id-card-num-value { font-size:12px; font-weight:600; font-family:monospace; }
.id-card-full-back {
  background:rgba(0,0,0,0.35);
  padding:var(--space-3) var(--space-4);
}
.id-card-back-row { display:flex; justify-content:space-between; align-items:baseline; padding:4px 0; border-bottom:1px solid rgba(255,255,255,0.12); }
.id-card-back-row:last-child { border-bottom:none; }
.id-card-back-label { font-size:11px; opacity:0.7; }
.id-card-back-value { font-size:12px; font-weight:600; }

.id-card-actions { display:flex; gap:var(--space-2); padding:var(--space-3); justify-content:center; }
.id-card-action-btn {
  display:flex; flex-direction:column; align-items:center; gap:4px;
  flex:1; padding:var(--space-2); border-radius:var(--radius-md);
  background:var(--primary-light); border:none; cursor:pointer; color:var(--primary);
}
.id-card-action-btn span.material-icons { font-size:22px; }
.id-card-action-label { font-size:11px; font-weight:600; }

/* ── Design controls toggle ── */
#ctrl-panel.ctrl-hidden {
  transform: translateX(calc(100% + 1px));
}
body.ctrl-hidden {
  padding-right: 40px;
}
#ctrl-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  margin-bottom: 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: background 0.15s;
}
#ctrl-toggle:hover { background: var(--primary-dark); }
#ctrl-toggle .material-icons { font-size: 16px; }

/* ══════════════════════════════════════════
   MOBILE RESPONSIVE  (<= 700px)
   Hides design controls, stacks cards in
   a single scrollable column.
══════════════════════════════════════════ */
@media (max-width: 700px) {
  /* Remove control-panel offset from body */
  body {
    padding: 24px 16px 40px;
    padding-right: 16px;
  }

  /* Hide the fixed control panel and its toggle */
  #ctrl-panel,
  #ctrl-toggle {
    display: none;
  }

  /* Single-column grid */
  .grid {
    grid-template-columns: 1fr;
    gap: 40px 0;
  }

  /* Shrink cell to phone frame width, then center it with auto margins */
  .screen-cell {
    display: block;
    width: fit-content;
    margin: 0 auto;
  }

  /* Prevent overflow on very narrow viewports */
  .phone-frame {
    max-width: calc(100vw - 32px);
  }

  /* Labels are block children — left-aligned automatically */
  .screen-label,
  .screen-title {
    text-align: left;
    width: 280px;
  }
  .text-field,
  .tf-label {
    text-align: left
  }

  .error-banner p {
    text-align: left;
  }

  .success-body .section-label {
    padding-left: 0;
    padding-right: 0;
  }

  .content-pad .section-label {
    padding-left: 0;
    padding-right: 0;
  }

  .newt.section-label {
    padding-left: 0;
    padding-right: 0;
  }
}


/* ══════════════════════════════════════════
   CHAT / AI ASSISTANT COMPONENTS
══════════════════════════════════════════ */

/* ── Chat hero (AI home top section) ── */
.chat-hero {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 18px 16px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  flex-shrink: 0;
}
.chat-hero-avatar {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 2px;
}
.chat-hero-avatar .material-icons { font-size: 26px; color: white; }
.chat-hero-name   { color: white; font-size: 14px; font-weight: var(--fw-bold); margin: 0; }
.chat-hero-status {
  color: rgba(255,255,255,0.72); font-size: 10px;
  display: flex; align-items: center; gap: 4px; margin: 0;
}
.chat-hero-dot { width: 7px; height: 7px; border-radius: 50%; background: #69F0AE; flex-shrink: 0; }

/* ── Suggestion grid ── */
.chat-suggestion-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 0 12px 10px;
}
.chat-suggestion-card {
  background: var(--surface); border: 1px solid var(--divider);
  border-radius: var(--radius-lg); padding: 10px;
  display: flex; flex-direction: column; gap: 5px; cursor: pointer;
}
.chat-suggestion-card:hover { background: var(--surface-var); }
.chat-suggestion-icon {
  width: 30px; height: 30px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}
.chat-suggestion-icon .material-icons { font-size: 17px; }
.chat-suggestion-label { font-size: 11px; font-weight: var(--fw-bold); color: var(--on-surface); line-height: 1.3; }

/* ── Chat message area ── */
.chat-messages {
  display: flex; flex-direction: column; gap: 3px;
  padding: 10px 10px 6px;
}
.chat-bubble-row {
  display: flex; align-items: flex-end; gap: 5px;
  max-width: 88%;
}
.chat-bubble-row.bot  { align-self: flex-start; }
.chat-bubble-row.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-bot-icon {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1px;
}
.chat-bot-icon .material-icons { font-size: 13px; color: white; }
.chat-bubble {
  padding: 8px 11px; border-radius: 16px;
  font-size: 12px; line-height: 1.5; max-width: 190px;
}
.chat-bubble-bot  { background: var(--surface); border: 1px solid var(--divider); color: var(--on-surface); border-bottom-left-radius: 4px; }
.chat-bubble-user { background: var(--primary); color: white; border-bottom-right-radius: 4px; }
.chat-sender-name {
  font-size: 10px; font-weight: var(--fw-bold); color: var(--on-surface-2);
  margin-left: 29px; margin-bottom: 2px; letter-spacing: 0.3px;
}
.chat-date-divider {
  text-align: center; font-size: 10px; color: var(--on-surface-3);
  margin: 6px 0 4px; letter-spacing: 0.4px; font-weight: var(--fw-medium);
}

/* ── Typing indicator ── */
.chat-typing-bubble {
  background: var(--surface); border: 1px solid var(--divider);
  border-radius: 16px; border-bottom-left-radius: 4px;
  padding: 10px 14px; display: flex; gap: 4px; align-items: center;
}
.chat-typing-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--on-surface-3); }
.chat-typing-dot:nth-child(2) { opacity: 0.55; }
.chat-typing-dot:nth-child(3) { opacity: 0.25; }
.chat-typing-label { font-size: 10px; color: var(--on-surface-3); margin-left: 29px; margin-top: 3px; font-style: italic; }

/* ── Quick reply chips ── */
.chat-quick-replies {
  display: flex; gap: 7px; padding: 6px 10px 8px;
  overflow-x: auto; scrollbar-width: none; flex-shrink: 0;
  background: var(--bg); border-top: 1px solid var(--divider);
}
.chat-quick-reply {
  white-space: nowrap; padding: 6px 12px;
  border: 1.5px solid var(--primary); border-radius: var(--radius-full);
  background: var(--surface); color: var(--primary);
  font-size: 11px; font-weight: var(--fw-medium);
  cursor: pointer; flex-shrink: 0; font-family: inherit;
}

/* ── Rich card embedded in chat ── */
.chat-rich-card {
  background: var(--surface); border: 1px solid var(--divider);
  border-radius: 16px; border-bottom-left-radius: 4px;
  overflow: hidden; max-width: 210px;
}
.chat-rich-card-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 10px 12px; display: flex; align-items: flex-start; gap: 8px;
}
.chat-rich-card-header .material-icons { font-size: 16px; color: rgba(255,255,255,0.85); margin-top: 1px; }
.chat-rich-card-title { color: white; font-size: 12px; font-weight: var(--fw-bold); line-height: 1.2; }
.chat-rich-card-sub   { color: rgba(255,255,255,0.72); font-size: 10px; margin-top: 1px; }
.chat-rich-card-body  { padding: 9px 12px; display: flex; flex-direction: column; gap: 4px; }
.chat-rich-card-row   { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--on-surface-2); }
.chat-rich-card-row .material-icons { font-size: 12px; color: var(--secondary); flex-shrink: 0; }
.chat-rich-card-action {
  padding: 8px 12px; border-top: 1px solid var(--divider);
  text-align: center; font-size: 11px; font-weight: var(--fw-bold);
  color: var(--primary); cursor: pointer; background: var(--surface-var);
}

/* ── Image attachment bubble ── */
.chat-img-bubble {
  width: 140px; height: 88px; border-radius: 14px; border-bottom-right-radius: 4px;
  background: var(--surface-var); border: 1px solid var(--divider);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.chat-img-bubble .material-icons { font-size: 30px; color: var(--on-surface-3); }

/* ── Chat input bar ── */
.chat-input-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px; background: var(--surface);
  border-top: 1px solid var(--divider); flex-shrink: 0;
}
.chat-input {
  flex: 1; height: 34px; border-radius: 17px;
  border: 1px solid var(--border); padding: 0 12px;
  font-size: 12px; color: var(--on-surface-2);
  background: var(--bg); display: flex; align-items: center;
}
.chat-input-btn {
  width: 34px; height: 34px; border-radius: 50%; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; font-family: inherit;
}
.chat-input-btn-ghost { background: transparent; color: var(--on-surface-3); }
.chat-input-btn-ghost .material-icons { font-size: 19px; }
.chat-input-btn-send  { background: var(--primary); color: white; }
.chat-input-btn-send .material-icons { font-size: 17px; }
.chat-input-btn-send:disabled { background: var(--divider); }

/* ── Escalation modal ── */
.chat-escalation-card {
  background: var(--surface); border-radius: var(--radius-xl);
  padding: 22px 20px 18px; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.28);
}
.chat-agent-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--secondary); color: white;
  font-size: 18px; font-weight: var(--fw-bold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.chat-wait-badge {
  background: var(--success-light); color: var(--success);
  border-radius: var(--radius-full); padding: 4px 10px;
  font-size: 11px; font-weight: var(--fw-bold);
  display: flex; align-items: center; gap: 3px; margin-top: 2px;
}
.chat-wait-badge .material-icons { font-size: 12px; }

/* ── Chat feedback / rating ── */
.chat-feedback-wrap {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 24px 16px 14px; text-align: center; flex: 1;
}
.chat-feedback-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.chat-feedback-icon .material-icons { font-size: 28px; color: var(--primary); }
.chat-stars { display: flex; gap: 5px; margin: 8px 0; }
.chat-star       { font-size: 26px; color: #F59E0B; line-height: 1; cursor: pointer; }
.chat-star-empty { font-size: 26px; color: var(--divider);  line-height: 1; cursor: pointer; }

/* ── Chat history list ── */
.chat-history-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-bottom: 1px solid var(--divider);
  background: var(--surface);
}
.chat-history-item:last-child { border-bottom: none; }
.chat-history-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.chat-history-icon .material-icons { font-size: 19px; color: white; }
.chat-history-body    { flex: 1; min-width: 0; }
.chat-history-title   { font-size: 12px; font-weight: var(--fw-medium); color: var(--on-surface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-history-preview { font-size: 11px; color: var(--on-surface-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }

/* ── Chat FAB ── */
.chat-fab {
  position: absolute; bottom: 66px; right: 14px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: white; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(67,24,67,0.45);
  cursor: pointer; z-index: 10;
}
.chat-fab .material-icons { font-size: 22px; }

/* ── Chat screen-label variant ── */
.screen-label-chat { color: #1565C0; }

/* ── Bot identity block in app-bar ── */
.chat-app-bar-identity {
  flex: 1; display: flex; align-items: center; gap: 8px; padding-left: 4px;
}
.chat-app-bar-bot-icon {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-app-bar-bot-icon .material-icons { font-size: 15px; color: white; }
.chat-app-bar-name   { color: white; font-size: 13px; font-weight: var(--fw-bold); line-height: 1.1; margin: 0; }
.chat-app-bar-status { color: rgba(255,255,255,0.72); font-size: 10px; margin: 0; display: flex; align-items: center; gap: 3px; }

/* ── Online status dot (shared: app-bar + hero) ── */
.chat-online-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #69F0AE; flex-shrink: 0; }

/* ── Hero tagline text ── */
.chat-hero-tagline { color: rgba(255,255,255,0.82); font-size: 11px; text-align: center; margin-top: 2px; line-height: 1.5; margin-bottom: 0; }

/* ── Suggestion icon color variants ── */
.chat-si-blue   { background: #E3F2FD; }  .chat-si-blue   .material-icons { color: var(--primary); }
.chat-si-teal   { background: #E0F7FA; }  .chat-si-teal   .material-icons { color: var(--secondary); }
.chat-si-green  { background: #E8F5E9; }  .chat-si-green  .material-icons { color: var(--success); }
.chat-si-purple { background: #F3E5F5; }  .chat-si-purple .material-icons { color: #7B1FA2; }
.chat-si-orange { background: #FFF3E0; }  .chat-si-orange .material-icons { color: #E65100; }
.chat-si-error  { background: var(--error-light); } .chat-si-error .material-icons { color: var(--error); }

/* ── Section / group headers in chat screens ── */
.chat-section-header            { padding: 10px 12px 6px; }
.chat-search-header             { padding: 10px 12px 6px; background: var(--bg); }
.chat-search-header .search-bar { margin: 0; }
.chat-history-group-header      { padding: 8px 12px 4px; background: var(--bg); }
.chat-recent-list   { background: var(--surface); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.chat-history-group { background: var(--surface); border-top: 1px solid var(--divider); }
.chat-history-icon .material-icons { font-size: 18px; color: white; }
.chat-history-icon-agent { background: var(--secondary); }
.chat-disclaimer { text-align: center; padding: 10px 18px; line-height: var(--leading-relaxed); }

/* ── Input placeholder text ── */
.chat-placeholder { color: var(--on-surface-3); font-size: 12px; }

/* ── Message group spacing & states ── */
.chat-gap    { margin-top: 6px; }
.chat-gap-lg { margin-top: 8px; }
.chat-dimmed { opacity: 0.35; }

/* ── Timestamp rows ── */
.chat-timestamp          { font-size: 10px; color: var(--on-surface-3); }
.chat-timestamp-row-bot  { display: flex; justify-content: flex-start; padding-left: 29px; margin-top: 3px; }
.chat-timestamp-row-user { display: flex; justify-content: flex-end; margin-top: 2px; }

/* ── Rich card indent (aligns with bot bubble) ── */
.chat-card-indent                   { margin-left: 29px; margin-bottom: 4px; }
.chat-card-indent .chat-sender-name { margin-left: 0; }
.chat-rich-card-chip                { margin-top: 2px; }

/* ── Escalation bottom sheet ── */
.chat-overlay-bottom     { align-items: flex-end; padding: 0; }
.chat-escalation-sheet   { border-radius: 20px 20px 0 0; }
.chat-sheet-title        { font-size: 16px; margin-bottom: 2px; }
.chat-sheet-body         { text-align: center; color: var(--on-surface-2); line-height: var(--leading-normal); }
.chat-escalation-actions { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.btn-text-muted          { color: var(--on-surface-2); }

/* ── Feedback screen ── */
.chat-topic-summary   { background: var(--surface-var); border: 1px solid var(--divider); border-radius: var(--radius-lg); padding: 10px 14px; width: 100%; margin-top: 6px; }
.chat-topic-label     { color: var(--on-surface-2); margin-bottom: 4px; }
.chat-topic-row       { display: flex; align-items: center; gap: 6px; }
.chat-topic-icon      { font-size: 16px; color: var(--secondary); }
.chat-rating-section  { margin-top: 6px; }
.chat-comment-wrap    { width: 100%; margin-top: 4px; }
.text-field-multiline { min-height: 56px; align-items: flex-start; padding-top: 10px; }

/* ══════════════════════════════════════════
   GLOBAL STYLE ELIMINATION — no inline styles
══════════════════════════════════════════ */

/* ── Spacing additions ── */
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-sm { margin-bottom: 6px; }
.mb-2px { margin-bottom: 2px; }

/* ── Legend chip-dot colors ── */
.chip-dot-primary   { background: var(--primary); }
.chip-dot-secondary { background: var(--secondary); }
.chip-dot-warning   { background: var(--warning); }
.chip-dot-success   { background: var(--success); }
.chip-dot-error     { background: var(--error); }
.chip-dot-chat      { background: #1565C0; }

/* ── App bar spacer ── */
.app-bar-spacer { width: 40px; flex-shrink: 0; }

/* ── Screen content variants ── */
.screen-content-centered { align-items: center; padding: 40px 24px 24px; }
.screen-content-padded   { padding: var(--space-4); gap: var(--space-4); }

/* ── AUTH·03 Biometric Login ── */
.auth-user-name  { font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--on-surface); margin: 8px 0 0; }
.auth-user-email { font-size: var(--text-sm); color: var(--on-surface-2); margin: 2px 0 32px; }
.bio-btn {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--primary-light); border: 2px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; margin-bottom: 16px;
}
.bio-btn .material-icons { font-size: 36px; color: var(--primary); }
.bio-hint { font-size: var(--text-sm); text-align: center; color: var(--on-surface-2); margin-bottom: 32px; }

/* ── ONBOARDING·04 Registration Success ── */
.success-hero {
  background: var(--primary);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 24px 40px; flex: 0 0 auto;
}
.success-icon-wrap {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.success-icon-wrap .material-icons { font-size: 48px; color: #fff; }
.success-title { font-size: var(--text-3xl); font-weight: var(--fw-bold); color: #fff; text-align: center; margin: 0 0 8px; }
.success-sub   { font-size: var(--text-sm); color: rgba(255,255,255,0.85); text-align: center; margin: 0; }
.success-body  { flex: 1; background: var(--surface); padding: 24px; overflow-y: auto; }
.feature-row   { display: flex; align-items: center; gap: 16px; }
.feature-icon  {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature-icon .material-icons { font-size: 22px; color: var(--primary); }
.feature-title { font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--on-surface); margin: 0; }
.feature-sub   { font-size: var(--text-sm); color: var(--on-surface-2); margin: 0; }

/* ── Nav drawer placeholder cards ── */
.placeholder-card { height: 52px; background: var(--surface); border-radius: 10px; border: 1px solid var(--divider); }

/* ── Provider search — filter chips ── */
.filter-chips { display: flex; gap: 8px; padding: 0 var(--space-4) 12px; overflow-x: auto; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chip-active { white-space: nowrap; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.filter-chip-active .material-icons { font-size: 12px; }
.filter-chip { white-space: nowrap; border: 1px solid var(--border); background: var(--surface); cursor: pointer; color: var(--on-surface-2); }
.search-placeholder-active { color: var(--on-surface); }
.btn-clear { background: none; border: none; padding: 0; cursor: pointer; display: flex; align-items: center; }
.btn-clear .material-icons { font-size: 18px; color: var(--on-surface-3); }
.section-label-flush { padding: 0 var(--space-4) 8px; }

/* ── List item top-aligned variant ── */
.list-item-top { align-items: flex-start; padding: 12px var(--space-4); }

/* ── Star rating & review count ── */
.rating-row     { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.star-rating    { color: #F59E0B; font-size: 11px; }
.star-rating-lg { color: #F59E0B; font-size: 13px; }
.review-count   { color: var(--on-surface-2); }

/* ── Provider card action column ── */
.provider-action-col { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

/* ── Compact button sizes ── */
.btn-xs { padding: 4px 12px !important; font-size: 11px !important; height: auto !important; min-height: 0 !important; }
.btn-sm { padding: 6px !important; font-size: 12px !important; height: auto !important; min-height: 0 !important; }

/* ── Provider detail ── */
.provider-hero {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 16px 16px;
  background: var(--surface); border-bottom: 1px solid var(--divider);
}
.avatar-64 { width: 64px; height: 64px; font-size: 22px; margin-bottom: 12px; }
.provider-specialty { font-size: var(--text-sm); color: var(--on-surface-2); margin-bottom: 6px; }
.chip-neutral { background: var(--surface-var); color: var(--on-surface-2); }
.chip-row     { display: flex; gap: 8px; }
.chip-list    { display: flex; flex-wrap: wrap; gap: 6px; }
.stat-row-padded  { padding: 12px var(--space-4); }
.stat-box-center  { flex: 1; text-align: center; }
.stat-box-bordered { border-left: 1px solid var(--divider); border-right: 1px solid var(--divider); }
.stat-value-lg    { font-size: var(--text-xl); }
.content-pad      { padding: var(--space-4); }
.provider-bio     { line-height: var(--leading-relaxed); margin-bottom: var(--space-4); color: var(--on-surface-2); }
.p-action-bottom  { padding: 0 var(--space-4) var(--space-4); margin-top: 8px; }

/* ── Book Appointment ── */
.card-provider-summary { margin: 12px var(--space-4) 0; display: flex; align-items: center; gap: 12px; }
.section-pad { padding: var(--space-4) var(--space-4) 8px; }
.visit-type-group { display: flex; gap: 8px; }
.visit-type-btn {
  flex: 1; padding: 10px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--on-surface-2); font-size: var(--text-base);
  font-weight: var(--fw-medium); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: inherit;
}
.visit-type-btn .material-icons { font-size: 16px; }
.visit-type-btn-active {
  border: 2px solid var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: var(--fw-semibold);
}
.cal-wrapper   { padding: 0 var(--space-4) 8px; }
.calendar-nav  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); text-align: center; gap: 2px; }
.cal-day-header   { color: var(--on-surface-3); padding: 4px 0; font-size: var(--text-xs); }
.cal-day          { padding: 6px 2px; font-size: 12px; color: var(--on-surface-3); }
.cal-day-available { color: var(--on-surface); cursor: pointer; }
.cal-day-selected {
  padding: 4px 2px; font-size: 12px; font-weight: var(--fw-bold);
  color: #fff; background: var(--primary); border-radius: 50%;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  margin: auto;
}
.time-slot-group   { display: flex; flex-wrap: wrap; gap: 8px; }
.time-slot         { border: 1px solid var(--border); background: var(--surface); color: var(--on-surface-2); cursor: pointer; padding: 6px 12px; }
.time-slot-selected { cursor: pointer; padding: 6px 12px; }
.time-slot-disabled { border: 1px solid var(--border); background: var(--surface-var); color: var(--on-surface-3); cursor: not-allowed; pointer-events: none; padding: 6px 12px; }

/* ── Appointments ── */
.card-list-item { margin: 0 var(--space-4) 8px; }
.card-list-item:first-child { margin-top: 16px;}
.appt-actions   { display: flex; gap: 8px; border-top: 1px solid var(--divider); padding-top: 10px; }
.btn-text-danger { color: var(--error); }
.past-appt       { opacity: 0.75; }
.section-header-compact { padding: 12px var(--space-4) 4px; }
.section-title-muted    { color: var(--on-surface-2); }

/* ── Compose message ── */
.avatar-22 { width: 22px; height: 22px; font-size: 9px; }
.compose-send-btn .material-icons    { font-size: 16px; }
.compose-toolbar-btn .material-icons { font-size: 20px; }
.secure-banner {
  display: flex; align-items: center; gap: 6px;
  padding: 6px var(--space-4);
  background: var(--success-light); border-bottom: 1px solid var(--divider);
}
.secure-banner .material-icons { font-size: 14px; color: var(--success); }
.secure-text { font-size: 11px; margin-top: 3px; color: var(--success); font-weight: var(--fw-medium); }

/* ── Claim detail ── */
.claim-status-icon   { font-size: 28px !important; }
.claim-action-section { display: flex; flex-direction: column; gap: 8px; }
.mono-value          { font-size: 11px; font-family: monospace; }
.btn-text-base       { font-size: var(--text-base) !important; }

/* ── Lab Results — icon avatar ── */
.avatar-icon { font-size: 0; }
.avatar-icon .material-icons { font-size: 20px; color: white; }

/* ── Lab Result Detail ── */
.claim-detail-section-flush { padding: 0; }
.section-label-inline       { margin: 0 var(--space-4) 8px; }
.result-row {
  padding: 10px var(--space-4);
  border-bottom: 1px solid var(--divider);
  display: flex; justify-content: space-between; align-items: center;
}
.result-row-last {
  padding: 10px var(--space-4);
  display: flex; justify-content: space-between; align-items: center;
}
.result-row-abnormal {
  padding: 10px var(--space-4);
  border-bottom: 1px solid var(--divider);
  background: var(--error-light);
}
.result-row-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.ref-range         { color: var(--on-surface-2); }
.result-range-bar  {
  position: relative; height: 6px; border-radius: 3px;
  background: linear-gradient(to right, var(--success) 0%, var(--success) 66%, var(--error) 66%, var(--error) 100%);
}
.result-range-dot  {
  position: absolute; top: 50%; transform: translate(-50%,-50%);
  width: 12px; height: 12px;
  background: var(--error); border-radius: 50%;
  border: 2px solid white; box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.result-range-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--on-surface-2); margin-top: 4px; }
.card-flush { margin: 0; }

/* ── Empty state ── */
.empty-state {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px 20px; text-align: center;
  background: var(--surface);
}

/* ── Skeleton loading ── */
.skel-title-bar  { height: 16px; width: 120px; border-radius: 4px; background: var(--divider); }
.skel-avatar-bar { width: 40px; height: 40px; border-radius: 50%; margin-left: -30px; background: var(--divider); }
.skel-hero {
  border-radius: 16px; overflow: hidden; background: var(--divider);
  height: 76px; padding: 16px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
}
.skel-hero-line { height: 10px; width: 60%; border-radius: 3px; background: rgba(255,255,255,0.35); }
.skel-hero-sub  { height: 14px; width: 45%; border-radius: 3px; background: rgba(255,255,255,0.25); }
.skel-row       { display: flex; gap: 12px; }
.skel-action    { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.skel-icon      { width: 44px; height: 44px; border-radius: 50%; background: var(--divider); }
.skel-label     { height: 10px; width: 40px; border-radius: 3px; background: var(--divider); }
.skel-section   { height: 11px; border-radius: 3px; background: var(--divider); }
.skel-card-wrap { border-radius: var(--radius-lg); border: 1px solid var(--border); padding: var(--space-4); display: flex; gap: 12px; }
.skel-avatar-sm { width: 40px; height: 40px; border-radius: 50%; background: var(--divider); flex-shrink: 0; }
.skel-content   { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.skel-line      { border-radius: 3px; background: var(--divider); }
.skel-chip      { height: 22px; width: 72px; border-radius: 20px; background: var(--divider); margin-top: 4px; }

/* ── Additional utilities ── */
.mt-sm { margin-top: 10px; }
.btn-sm-rx { font-size: 12px !important; padding: 8px !important; height: auto !important; min-height: 0 !important; }
.appt-actions > * { flex: 1; }
