/* ===== VARIABLES ===== */
:root {
  --green: #1D9E75;
  --green-light: #E1F5EE;
  --green-dark: #085041;
  --blue: #378ADD;
  --blue-light: #E6F1FB;
  --blue-dark: #0C447C;
  --warning: #EF9F27;
  --warning-light: #FEF3E2;
  --danger: #E74C3C;
  --danger-light: #FDECEA;
  --bg: #F4F5F9;
  --card: #FFFFFF;
  --sidebar-bg: #16162A;
  --sidebar-text: #8888AA;
  --sidebar-hover: rgba(255,255,255,0.06);
  --sidebar-active-bg: rgba(29,158,117,0.15);
  --sidebar-active-text: #1D9E75;
  --border: #E8E8F0;
  --text-1: #1A1A2E;
  --text-2: #4A4A6A;
  --text-3: #9999BB;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --sidebar-w: 220px;
  --topbar-h: 60px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text-1); font-size: 14px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4 { font-weight: 600; }

/* ===== LAYOUT ===== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform 0.25s ease;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-logo-icon {
  width: 30px; height: 30px;
  background: var(--green);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-logo-text { font-size: 16px; font-weight: 700; color: #fff; }
.sidebar-logo-sub { font-size: 10px; color: var(--sidebar-text); letter-spacing: 0.5px; }
.sidebar-patient {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-patient-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 12px;
  flex-shrink: 0;
}
.sidebar-patient-name { font-size: 13px; font-weight: 500; color: #fff; line-height: 1.3; }
.sidebar-patient-sub { font-size: 11px; color: var(--sidebar-text); }
.sidebar-nav { flex: 1; padding: 12px 10px; overflow-y: auto; }
.nav-section-label {
  font-size: 10px; font-weight: 600; color: var(--sidebar-text);
  text-transform: uppercase; letter-spacing: 0.8px;
  padding: 10px 10px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  margin-bottom: 2px;
}
.nav-item:hover { background: var(--sidebar-hover); color: #fff; }
.nav-item.active { background: var(--sidebar-active-bg); color: var(--sidebar-active-text); }
.nav-item .nav-icon { width: 16px; height: 16px; flex-shrink: 0; }
.nav-item .nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}
.sidebar-footer {
  padding: 14px 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sidebar-footer .nav-item { margin: 0; }
.sidebar-close { display: none; }

/* ===== MAIN ===== */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: var(--topbar-h);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 12px;
  position: sticky; top: 0; z-index: 50;
}
.topbar-title { font-size: 15px; font-weight: 600; color: var(--text-1); }
.topbar-subtitle { font-size: 12px; color: var(--text-3); }
.topbar-spacer { flex: 1; }
.topbar-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px;
  background: var(--green-light);
  color: var(--green-dark);
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 500;
}
.topbar-status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.topbar-back {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-2);
  background: none; border: 1px solid var(--border);
  padding: 5px 12px; border-radius: var(--radius-sm);
}
.topbar-back:hover { border-color: var(--green); color: var(--green); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }

/* ===== PAGE CONTENT ===== */
.page-content { padding: 24px; max-width: 1100px; }

/* ===== CARDS ===== */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.card-body { padding: 20px; }
.card-title { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 14px; }

/* ===== STAT GRID ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.stat-label {
  font-size: 11px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.stat-value { font-size: 22px; font-weight: 700; color: var(--text-1); line-height: 1.2; }
.stat-value span { font-size: 13px; font-weight: 400; color: var(--text-2); }
.stat-sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.stat-bar { height: 3px; background: var(--border); border-radius: 2px; margin-top: 10px; }
.stat-bar-fill { height: 3px; background: var(--green); border-radius: 2px; transition: width 0.5s ease; }
.stat-badge {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  padding: 4px 0;
}
.stat-badge.green { color: var(--green-dark); }
.stat-badge.warning { color: var(--warning); }
.stat-badge.danger { color: var(--danger); }

/* ===== PATIENT HEADER CARD ===== */
.patient-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}
.patient-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue-light); color: var(--blue-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; flex-shrink: 0;
}
.patient-name { font-size: 18px; font-weight: 700; color: var(--text-1); }
.patient-meta { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.patient-status {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  background: var(--green-light);
  color: var(--green-dark);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px; font-weight: 500;
}
.patient-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.patient-status-detail { font-size: 11px; color: var(--green); margin-top: 2px; }

/* ===== TIMELINE ===== */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: flex; gap: 12px; }
.timeline-left {
  display: flex; flex-direction: column; align-items: center;
  width: 48px; flex-shrink: 0;
}
.timeline-time { font-size: 11px; color: var(--text-3); margin-bottom: 6px; white-space: nowrap; }
.timeline-line { flex: 1; width: 1px; background: var(--border); min-height: 20px; }
.timeline-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.timeline-dot.green { background: var(--green); }
.timeline-dot.blue { background: var(--blue); }
.timeline-dot.warning { background: var(--warning); }
.timeline-dot.danger { background: var(--danger); }
.timeline-dot.grey { background: var(--text-3); }
.timeline-right { padding-bottom: 16px; flex: 1; }
.timeline-title { font-size: 13px; font-weight: 600; color: var(--text-1); margin-bottom: 2px; }
.timeline-body { font-size: 12px; color: var(--text-2); }
.timeline-tag {
  display: inline-block; margin-top: 5px;
  font-size: 11px; padding: 2px 10px;
  border-radius: 10px; font-weight: 500;
}
.timeline-tag.green { background: var(--green-light); color: var(--green-dark); }
.timeline-tag.blue { background: var(--blue-light); color: var(--blue-dark); }
.timeline-tag.warning { background: var(--warning-light); color: #7A4F00; }

/* ===== ADHERENCE CHART ===== */
.adherence-chart { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 8px; }
.adherence-bar-wrap { flex: 1; text-align: center; }
.adherence-bar-container { height: 40px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 4px; }
.adherence-bar {
  width: 28px; border-radius: 4px 4px 0 0;
  transition: height 0.5s ease;
}
.adherence-bar.full { background: var(--green); }
.adherence-bar.partial { background: var(--warning); }
.adherence-bar.empty { background: var(--danger); opacity: 0.7; }
.adherence-bar.today { opacity: 0.5; }
.adherence-day { font-size: 10px; color: var(--text-3); font-weight: 500; }
.adherence-day.today { color: var(--text-1); font-weight: 600; }

/* ===== COGNITIVE METRICS ===== */
.metric-row { margin-bottom: 12px; }
.metric-row:last-child { margin-bottom: 0; }
.metric-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.metric-name { font-size: 12px; color: var(--text-2); }
.metric-value { font-size: 12px; font-weight: 600; }
.metric-value.normal { color: var(--green-dark); }
.metric-value.warning { color: var(--warning); }
.metric-value.alert { color: var(--danger); }
.metric-value.na { color: var(--text-3); }
.metric-bar { height: 5px; background: var(--border); border-radius: 3px; }
.metric-bar-fill { height: 5px; border-radius: 3px; transition: width 0.6s ease; }
.metric-bar-fill.normal { background: var(--green); }
.metric-bar-fill.warning { background: var(--warning); }
.metric-bar-fill.alert { background: var(--danger); }

/* ===== CONVERSATION VIEW ===== */
.chat-thread { display: flex; flex-direction: column; gap: 10px; }
.chat-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
}
.chat-bubble.user {
  align-self: flex-end;
  background: var(--blue-light);
  color: var(--text-1);
  border-bottom-right-radius: 4px;
}
.chat-bubble.assistant {
  align-self: flex-start;
  background: var(--border);
  color: var(--text-1);
  border-bottom-left-radius: 4px;
}
.chat-meta { font-size: 10px; color: var(--text-3); margin-top: 3px; }
.chat-meta.user { text-align: right; }
.chat-voice-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; color: var(--blue-dark);
  background: var(--blue-light); padding: 2px 8px; border-radius: 10px;
  margin-right: 6px;
}

/* ===== MEDICATION CARDS ===== */
.med-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
}
.med-card:last-child { margin-bottom: 0; }
.med-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.med-name { font-size: 14px; font-weight: 600; color: var(--text-1); }
.med-times { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.med-badge {
  font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px;
}
.med-badge.active { background: var(--green-light); color: var(--green-dark); }
.med-badge.inactive { background: var(--border); color: var(--text-3); }
.med-note {
  font-size: 12px; color: var(--text-3);
  padding-top: 8px; border-top: 1px solid var(--border);
}
.med-schedule { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.med-time-chip {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; padding: 4px 10px; border-radius: 20px;
  border: 1px solid var(--border);
}
.med-time-chip.taken { background: var(--green-light); border-color: var(--green); color: var(--green-dark); }
.med-time-chip.pending { background: var(--warning-light); border-color: var(--warning); color: #7A4F00; }
.med-time-chip.future { background: var(--border); color: var(--text-3); }

/* ===== ALERTS ===== */
.alert-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.alert-item:last-child { border-bottom: none; }
.alert-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.alert-icon.danger { background: var(--danger-light); color: var(--danger); }
.alert-icon.warning { background: var(--warning-light); color: var(--warning); }
.alert-icon.info { background: var(--blue-light); color: var(--blue); }
.alert-title { font-size: 13px; font-weight: 600; color: var(--text-1); }
.alert-body { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.alert-meta { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.alert-status {
  margin-left: auto; flex-shrink: 0;
  font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px;
}
.alert-status.sent { background: var(--blue-light); color: var(--blue-dark); }
.alert-status.acknowledged { background: var(--green-light); color: var(--green-dark); }
.alert-status.false_positive { background: var(--border); color: var(--text-3); }

/* ===== SETTINGS TABS ===== */
.tabs { display: flex; gap: 6px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 4px; }
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 500;
  white-space: nowrap; border: 1px solid var(--border);
  color: var(--text-2); background: var(--card);
  transition: all 0.15s;
}
.tab-btn:hover { border-color: var(--green); color: var(--green); }
.tab-btn.active { background: var(--text-1); color: #fff; border-color: var(--text-1); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 5px; font-weight: 500; }
.form-label .hint { color: var(--text-3); font-weight: 400; }
.form-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-1);
  background: var(--card);
  transition: border-color 0.15s;
  outline: none;
}
.form-input:focus { border-color: var(--green); }
.form-input::placeholder { color: var(--text-3); }
textarea.form-input { min-height: 80px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row { display: flex; gap: 10px; align-items: flex-end; }
.form-row .form-group { flex: 1; margin-bottom: 0; }

/* ===== TAGS ===== */
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; padding: 4px 12px; border-radius: 20px;
  background: var(--blue-light); color: var(--blue-dark);
}
.tag.purple { background: #EEEDFE; color: #3C3489; }
.tag-remove { cursor: pointer; opacity: 0.5; font-size: 14px; line-height: 1; }
.tag-remove:hover { opacity: 1; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: all 0.15s;
}
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: #189165; }
.btn-secondary { background: var(--card); color: var(--text-1); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--green); color: var(--green); }
.btn-danger { background: var(--danger-light); color: var(--danger); border-color: var(--danger); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-link { background: none; border: none; color: var(--blue); font-size: 12px; font-weight: 600; padding: 0; }
.btn-icon { padding: 7px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.btn-block { width: 100%; justify-content: center; }

/* ===== GRID LAYOUTS ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.section { margin-bottom: 28px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title { font-size: 15px; font-weight: 700; color: var(--text-1); }
.section-link { font-size: 12px; color: var(--blue); font-weight: 600; }
.section-anchor { padding-top: 24px; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center; padding: 40px 20px; color: var(--text-3);
}
.empty-state svg { opacity: 0.3; margin-bottom: 10px; }
.empty-state p { font-size: 13px; }

/* ===== LOADING ===== */
.skeleton { background: linear-gradient(90deg, #f0f0f5 25%, #e0e0ea 50%, #f0f0f5 75%); background-size: 200%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.spinner {
  width: 32px; height: 32px; border: 3px solid var(--border);
  border-top-color: var(--green); border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  position: fixed; inset: 0; background: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center; z-index: 999;
}

/* ===== ERROR / INFO BANNERS ===== */
.banner {
  padding: 12px 16px; border-radius: var(--radius-md); margin-bottom: 16px;
  font-size: 13px; display: flex; align-items: flex-start; gap: 10px;
}
.banner.info { background: var(--blue-light); color: var(--blue-dark); border: 1px solid #C0D8F5; }
.banner.warning { background: var(--warning-light); color: #7A4F00; border: 1px solid #F5D88A; }
.banner.error { background: var(--danger-light); color: var(--danger); border: 1px solid #F5C0BB; }
.banner.success { background: var(--green-light); color: var(--green-dark); border: 1px solid #A8E6CF; }

/* ===== INDEX PAGE ===== */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg); padding: 20px;
}
.login-card {
  background: var(--card); border-radius: var(--radius-lg); border: 1px solid var(--border);
  padding: 40px; max-width: 420px; width: 100%;
  box-shadow: var(--shadow-md);
}
.login-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.login-logo-icon {
  width: 40px; height: 40px; background: var(--green); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.login-logo-text { font-size: 20px; font-weight: 700; color: var(--text-1); }
.login-title { font-size: 20px; font-weight: 700; color: var(--text-1); margin-bottom: 6px; }
.login-subtitle { font-size: 14px; color: var(--text-3); margin-bottom: 28px; }
.login-note {
  margin-top: 20px; padding: 12px; background: var(--bg); border-radius: var(--radius-sm);
  font-size: 12px; color: var(--text-3); text-align: center;
}

/* ===== CONTACT CARDS ===== */
.contact-card {
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
}
.contact-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue-light); color: var(--blue-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.contact-name { font-size: 14px; font-weight: 600; color: var(--text-1); }
.contact-meta { font-size: 12px; color: var(--text-2); }
.contact-badges { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.contact-badge {
  font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: 600;
  background: var(--blue-light); color: var(--blue-dark);
}
.contact-badge.primary { background: var(--green-light); color: var(--green-dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-md);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: rgba(255,255,255,0.1); border-radius: 50%; border: none; cursor: pointer; color: #fff; margin-left: auto; }
  .main { margin-left: 0; }
  .hamburger { display: block; }
  .topbar { padding: 0 16px; }
  .page-content { padding: 16px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .patient-status { display: none; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .login-card { padding: 28px 20px; }
  .form-grid-2 { grid-template-columns: 1fr; }
}

/* ===== OVERLAY ===== */
.sidebar-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 99;
}
.sidebar-overlay.show { display: block; }

/* ===== DIVIDERS ===== */
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ===== ROUTINE LIST ===== */
.routine-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.routine-item:last-child { border-bottom: none; }
.routine-label { font-size: 13px; color: var(--text-2); }
.routine-value { font-size: 13px; font-weight: 600; color: var(--text-1); }

/* ===== SAVE INDICATOR ===== */
.save-bar {
  position: fixed; bottom: 0; left: var(--sidebar-w); right: 0;
  background: var(--card); border-top: 1px solid var(--border);
  padding: 14px 24px; display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06); z-index: 50;
  transform: translateY(100%); transition: transform 0.2s ease;
}
.save-bar.visible { transform: translateY(0); }
@media (max-width: 768px) { .save-bar { left: 0; } }

/* ===== TOOLTIP / helper text ===== */
.help-text { font-size: 11px; color: var(--text-3); margin-top: 4px; }
