


.h5-page{
  font-family: -apple-system, 'SF Pro Display', 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  font-size: 14px; 
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}


.h5-page{
  
  --primary: #D9826B;
  --primary-light: #FFF1E8;
  --primary-dark: #8E4537;

  
  --success: #34C759;
  --success-light: #E8F8ED;
  --warning: #FF9500;
  --warning-light: #FFF5E6;
  --danger: #FF3B30;
  --danger-light: #FFF0F0;
  --purple: #AF52DE;
  --purple-light: #F3E8FB;

  
  --text-primary: #1D1D1F;
  --text-secondary: #86868B;
  --text-muted: #AEAEB2;

  
  --bg: #FFF8F1;
  --card-bg: #FFFFFF;
  --border: #E5E5EA;

  
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;

  
  --shadow-sm: 0 8px 24px rgba(140,84,58,0.08);
  --shadow-md: 0 14px 34px rgba(140,84,58,0.12);
}


.h5-page{
  --safe-green: #24A26B;
  --safe-green-bg: #EAF8EF;
  --care-yellow: #B86B00;
  --care-yellow-bg: #FFF4DC;
  --urgent-red: #D93D42;
  --urgent-red-bg: #FFF0F2;
  --unknown-gray: #7C8797;
  --unknown-gray-bg: #F2F5F8;
  --app-ink: #172033;
  --app-muted: #667386;
  --app-soft: #F7FAFC;
  --app-line: #E7EDF4;
  --app-card: rgba(255,255,255,.92);
  background:
    radial-gradient(circle at 86% 0%, rgba(255,216,190,.38), transparent 28%),
    radial-gradient(circle at 8% 12%, rgba(232,246,234,.65), transparent 32%),
    #FFF8F1;
  color: var(--app-ink);
}

button {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 499.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

button::after { border: 0; }

.tabbar-.h5-page{
  padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
}

.state-ok { color: var(--safe-green); background: var(--safe-green-bg); }
.state-warn { color: var(--care-yellow); background: var(--care-yellow-bg); }
.state-danger { color: var(--urgent-red); background: var(--urgent-red-bg); }
.state-unknown { color: var(--unknown-gray); background: var(--unknown-gray-bg); }


.container { min-height: 100vh; }

..h5-page{
  min-height: 100vh;
  animation: fadeUp .35s ease-out;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}


.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-purple { color: var(--purple); }
.text-muted { color: var(--text-muted); }

.font-bold { font-weight: bold; }
.font-600 { font-weight: 600; }
.font-lg { font-size: 18px; }
.font-xl { font-size: 22px; }


.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { justify-content: space-between; }
.flex-around { justify-content: space-around; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.self-center { align-self: center; }


.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-sm {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s ease;
  width: auto;
  padding: 0 20px;
}
.btn::after { border: none; }
.btn-primary {
  background: linear-gradient(135deg, #D9826B, #EFA186);
  color: #fff;
}
.btn-primary:active {
  transform: scale(0.98);
  opacity: 0.9;
}
.btn-success {
  background: linear-gradient(135deg, var(--success), #30D158);
  color: #fff;
}
.btn-danger-outline {
  background: transparent;
  border: 1.5px solid #FFCCD0;
  color: var(--danger);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
}
.btn-block { width: 100%; display: block; }


.btn-sm {
  height: 32px;
  font-size: 13px;
  padding: 0 12px;
  border-radius: 9px;
}


.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-input {
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 16px;
  font-size: 15px;
  outline: none;
  background: var(--bg);
  box-sizing: border-box;
}
.form-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 6px rgba(74,144,217,0.12);
}


.h5-page{
  --primary: #D9826B;
  --primary-dark: #3B2A25;
  --safe-green: #2F8A68;
  --safe-green-bg: #EAF5EF;
  --app-ink: #172033;
  --app-muted: #667386;
  --app-line: #DDE6EB;
  --bg: #F6F7F5;
  --card-bg: #FFFFFF;
  background: #F6F7F5;
  color: #172033;
}
.card,
.card-sm {
  border: 0.5px solid var(--app-line);
  box-shadow: 0 6px 15px rgba(23,32,51,.06);
}


.toggle-switch {
  position: relative;
  width: 48px;
  height: 28px;
}


.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}
.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-info { background: var(--primary-light); color: var(--primary); }
.badge-purple { background: var(--purple-light); color: var(--purple); }

.status-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
}
.tag-normal { background: #E8F1FC; color: #4A90D9; }
.tag-warning { background: #FFF5E6; color: #FF9500; }
.tag-info { background: #F3E8FB; color: #AF52DE; }


.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
}
.avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
}
.avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}


.icon-box {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.icon-box-blue { background: var(--primary-light); }
.icon-box-green { background: var(--success-light); }
.icon-box-orange { background: var(--warning-light); }
.icon-box-red { background: var(--danger-light); }
.icon-box-purple { background: var(--purple-light); }
.icon-box-grey { background: #F2F2F7; }

.icon-box-sm {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 14px;
}


.data-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.data-label {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}
.data-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.progress-bar {
  height: 6px;
  background: #EDEEF0;
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}
.progress-fill-blue { background: linear-gradient(90deg, #4A90D9, #67B7FF); }
.progress-fill-green { background: linear-gradient(90deg, #34C759, #30D158); }
.progress-fill-orange { background: linear-gradient(90deg, #FF9500, #FFB340); }


.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}
.empty-icon { font-size: 60px; opacity: 0.35; margin-bottom: 8px; }
.empty-text { font-size: 14px; color: #999; }
.empty-hint { font-size: 12px; color: #BBB; margin-top: 4px; }


.subpage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--card-bg);
  position: sticky;
  top: 0;
  z-index: 99;
  border-bottom: 1px solid var(--border);
}
.back-btn {
  color: var(--primary);
  font-size: 15px;
  font-weight: 500;
}
.sp-title { font-size: 16px; font-weight: 600; }
.sp-close {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  font-size: 18px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}


.list-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--bg);
}
.list-item:last-child { border-bottom: none; }
.list-item:active { background: var(--bg); }

.list-left { display: flex; align-items: center; gap: 11px; flex: 1; }
.list-text-title { font-size: 15px; font-weight: 500; color: var(--text-primary); }
.list-text-sub { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.list-arrow { color: var(--text-muted); font-size: 14px; flex-shrink: 0; }


.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--bg);
}
.setting-row:last-child { border-bottom: none; }
.setting-row h4 { font-size: 15px; font-weight: 500; display: block; }
.setting-row p { font-size: 12px; color: var(--text-secondary); margin-top: 3px; display: block; }


.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 14px 12px 8px;
  display: block;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.section-link {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}


.price-big { font-size: 28px; font-weight: 700; }
.price-unit { font-size: 13px; color: var(--text-secondary); }


.radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--text-secondary);
}


.safe-area-bottom {
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
}


.gradient-primary { background: linear-gradient(135deg, var(--primary), #67B7FF); }
.gradient-success { background: linear-gradient(135deg, var(--success), #30D158); }
.gradient-purple { background: linear-gradient(135deg, #667eea, #764ba2); }
.gradient-dark { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.gradient-warm { background: linear-gradient(135deg, #FF9F43, #ee5a24); }


.mt-s { margin-top: 8px; }
.mt-m { margin-top: 12px; }
.mt-l { margin-top: 16px; }
.mb-s { margin-bottom: 8px; }
.mb-m { margin-bottom: 12px; }
.mb-l { margin-bottom: 16px; }
.p-24 { padding: 12px; }
.p-32 { padding: 16px; }
.gap-sm { gap: 6px; }
.gap-md { gap: 10px; }


.tabbar-.h5-page{
  padding-bottom: calc(55px + env(safe-area-inset-bottom, 0));
}


.ui-tag,
.badge,
.status-pill,
.section-note,
.section-sub,
.trial-banner-tag,
.trial-status-badge,
.monitor-metric-tag,
.safety-badge,
.family-safe-live,
.guardian-status,
.guardian-mini-tag,
.object-status,
.object-bind-status,
.priority-badge,
.article-tag,
.hero-badge,
.pc-level-badge,
.rec-status,
.cust-status,
.task-progress-status,
.care-task-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 22px;
  padding: 4px 9px;
  border-radius: 499.5px;
  box-sizing: border-box;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  border: 0;
}

.ui-tag.ok,
.badge.ok,
.status-pill.ok,
.monitor-metric-tag.ok,
.safety-badge.safe,
.guardian-status.ok,
.object-status.ok,
.object-bind-status.ok,
.priority-badge.primary,
.article-tag.green,
.rec-status.settled,
.task-progress-row.done .task-progress-status {
  background: var(--safe-green-bg);
  color: var(--safe-green);
}

.ui-tag.warn,
.badge.warn,
.status-pill.warn,
.monitor-metric-tag.warn,
.safety-badge.attention,
.guardian-status.warn,
.object-status.warn,
.object-bind-status.warn,
.article-tag.orange,
.rec-status.pending,
.task-progress-status {
  background: var(--care-yellow-bg);
  color: var(--care-yellow);
}

.ui-tag.danger,
.badge.danger,
.status-pill.danger,
.article-tag.red,
.cust-status.danger {
  background: var(--urgent-red-bg);
  color: var(--urgent-red);
}

.ui-tag.muted,
.badge.muted,
.section-note,
.section-sub,
.guardian-mini-tag,
.priority-badge.secondary,
.article-tag.blue,
.article-tag.purple,
.pc-level-badge,
.cust-status {
  background: var(--unknown-gray-bg);
  color: var(--unknown-gray);
}


.safety-actions,
.elder-action-grid,
.family-safe-actions,
.exception-actions,
.privacy-actions,
.quick-action-grid,
.report-actions,
.task-actions,
.modal-footer,
.bind-actions,
.object-actions,
.contact-actions {
  gap: 10px;
  align-items: stretch;
}

.safety-actions button,
.elder-action-grid button,
.family-safe-actions button,
.exception-actions button,
.privacy-actions button,
.quick-action-grid button,
.report-actions button,
.task-create button,
.task-row button,
.primary-btn,
.ghost-btn,
.bind-btn,
.btn-add,
.btn-action,
.modal-cancel,
.modal-confirm,
.scan-btn,
.save-btn,
.cancel-btn {
  box-sizing: border-box;
  border-radius: 499.5px;
  min-height: 44px !important;
  padding: 0 15px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-add,
.primary-btn,
.modal-confirm,
.save-btn,
.scan-btn {
  background: var(--safe-green) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.ghost-btn,
.modal-cancel,
.cancel-btn,
.family-safe-actions button.light,
.exception-actions button.light,
.privacy-actions button.light,
.report-actions button,
.task-row button.light {
  background: #F1F6FA !important;
  color: var(--app-ink) !important;
  border: 0 !important;
}

.task-row button.danger,
.btn-action.del {
  background: var(--urgent-red-bg) !important;
  color: var(--urgent-red) !important;
}

.btn-add {
  width: 70% !important;
  min-width: 180px;
  max-width: 260px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.modal-footer {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.modal-footer .modal-cancel,
.modal-footer .modal-confirm {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}


.add-area {
  text-align: center;
}

.add-area .btn-add {
  display: block !important;
  width: 100% !important;
  max-width: 260px !important;
  min-width: 0 !important;
  min-height: 44px !important;
  margin: 0 auto !important;
  padding: 0 15px !important;
  border-radius: 499.5px !important;
  font-size: 14px !important;
}

.modal-footer {
  align-items: center;
  padding-left: 16px !important;
  padding-right: 16px !important;
  padding-bottom: calc(17px + env(safe-area-inset-bottom, 0)) !important;
}

.modal-footer button,
.modal-footer .modal-cancel,
.modal-footer .modal-confirm {
  min-height: 44px !important;
  font-size: 14px !important;
  border-radius: 499.5px !important;
  padding: 0 12px !important;
}


.h5-page{
  --safe-green: #D9826B;
  --safe-green-bg: #FFF1EA;
  --care-yellow: #B87825;
  --care-yellow-bg: #FFF5DF;
  --urgent-red: #D94B55;
  --urgent-red-bg: #FFF0F2;
  --unknown-gray: #927C73;
  --unknown-gray-bg: #F7F0EC;
  --app-ink: #3B2A25;
  --app-muted: #8A746B;
  --app-soft: #FFF8F1;
  --app-line: #F0DDD2;
  --app-card: rgba(255,255,255,.9);
  --primary: #D9826B;
  --primary-light: #FFF1EA;
  --primary-dark: #B8654F;
  --success: #C97854;
  --success-light: #FFF1EA;
  --warning: #D99A3D;
  --warning-light: #FFF5DF;
  --bg: #FFF8F1;
  --card-bg: #FFFFFF;
  --border: #F0DDD2;
  background:
    radial-gradient(circle at 12% 4%, rgba(239,154,130,.18), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(255,213,154,.22), transparent 26%),
    linear-gradient(180deg,#FFF8F1 0%,#FFFDF8 48%,#F8F3EF 100%);
  color: var(--app-ink);
}

.card,
.card-sm,
.list-item,
.setting-row,
.modal-body,
.empty-state {
  border-color: var(--app-line) !important;
}

.btn-add,
.primary-btn,
.modal-confirm,
.save-btn,
.scan-btn,
.task-create button,
.task-row button,
.safety-actions button,
.elder-action-grid button,
.family-safe-actions button,
.exception-actions button,
.privacy-actions button,
.quick-action-grid button {
  background: linear-gradient(135deg,#E39176,#D9826B) !important;
  color: #fff !important;
}

.ghost-btn,
.modal-cancel,
.cancel-btn,
.family-safe-actions button.light,
.exception-actions button.light,
.privacy-actions button.light,
.report-actions button,
.task-row button.light {
  background: #FFF4EA !important;
  color: #5A3B31 !important;
}

.ui-tag.ok,
.badge.ok,
.status-pill.ok,
.monitor-metric-tag.ok,
.safety-badge.safe,
.guardian-status.ok,
.object-status.ok,
.object-bind-status.ok,
.priority-badge.primary,
.article-tag.green,
.rec-status.settled,
.task-progress-row.done .task-progress-status {
  background: #FFF1EA !important;
  color: #C97854 !important;
}

.ui-tag.warn,
.badge.warn,
.status-pill.warn,
.monitor-metric-tag.warn,
.safety-badge.attention,
.guardian-status.warn,
.object-status.warn,
.object-bind-status.warn,
.article-tag.orange,
.rec-status.pending,
.task-progress-status {
  background: #FFF5DF !important;
  color: #B87825 !important;
}





.h5-.h5-page{
  --primary: #D9826B;
  --primary-light: #FFF1E8;
  --primary-dark: #8E4537;
  --success: #34C759;
  --success-light: #E8F8ED;
  --warning: #FF9500;
  --warning-light: #FFF5E6;
  --danger: #FF3B30;
  --danger-light: #FFF0F0;
  --purple: #AF52DE;
  --purple-light: #F3E8FB;
  --text-primary: #1D1D1F;
  --text-secondary: #86868B;
  --text-muted: #AEAEB2;
  --bg: #FFF8F1;
  --card-bg: #FFFFFF;
  --border: #E5E5EA;

  
  --status-bar-height: env(safe-area-inset-top, 44px);
  background:
    radial-gradient(circle at 90% 0%, rgba(255,216,190,.38), transparent 28%),
    radial-gradient(circle at 8% 10%, rgba(232,246,234,.58), transparent 34%),
    var(--bg);
}


.top-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding-left: 14px;
  padding-bottom: 5px;
  background: var(--card-bg);
  position: relative;
  z-index: 10;
  
}
.top-bar-logo { 
  display: flex; align-items: center; gap: 6px; 
}
.logo-icon {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, #D9826B, #F0B08D);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(217,130,107,0.24);
  overflow: hidden;
}
.logo-img{width:100%;height:100%;display:block}
.logo-text { 
  font-size: 15px; font-weight: 700; 
  color: var(--text-primary); 
  letter-spacing: 0.5px;
}
.top-bar-actions { display: flex; align-items: center; gap: 6px; }
.h5-lang-switch{position:relative}
.h5-lang-select{height:38px;min-width:98px;padding:0 30px 0 12px;border-radius:999px;border:1px solid rgba(234,216,207,.95);background:rgba(255,255,255,.86);box-shadow:0 8px 22px rgba(95,65,45,.08);display:flex;align-items:center;justify-content:flex-start;gap:7px;color:#172033;font-size:13px;font-weight:900}
.h5-lang-current-flag,.h5-lang-flag{width:18px;height:12px;flex:0 0 18px;border-radius:2px;background-size:cover;background-position:center;box-shadow:0 0 0 1px rgba(17,24,39,.12)}
.h5-lang-arrow{position:absolute;right:12px;top:50%;width:7px;height:7px;border-right:2px solid #172033;border-bottom:2px solid #172033;transform:translateY(-65%) rotate(45deg);font-size:0;line-height:1}
.h5-lang-menu{display:block;position:absolute;right:0;top:calc(100% + 8px);width:174px;padding:8px;border-radius:16px;background:#fff;border:1px solid #ead8cf;box-shadow:0 18px 42px rgba(38,28,20,.16);z-index:1001;opacity:0;transform:translateY(-6px);pointer-events:none;transition:.16s ease}
.h5-lang-switch.open .h5-lang-menu{opacity:1;transform:translateY(0);pointer-events:auto}
.h5-lang-option{width:100%;min-height:38px;border:0;background:transparent;border-radius:11px;display:flex;align-items:center;gap:9px;padding:0 10px;color:#172033;font-size:13px;font-weight:850;text-align:left}
.h5-lang-option.active{background:#fff4ea;color:#c96d53}
.h5-lang-option span{flex:0 0 22px;width:22px;height:15px}
.icon-btn {
  width: 28px; height: 28px; border-radius: 50%; border: none;
  background: transparent; display: flex; align-items: center; justify-content: center;
  font-size: 14px; position: relative;
}
.badge {
  position: absolute; top: 2px; right: 2px;
  width: 6px; height: 6px;
  background: var(--danger); border-radius: 50%;
  border: 1px solid var(--card-bg);
}
.user-avatar-sm {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; flex-shrink: 0;
}


.tab-bar {
  display: flex;
  padding: 8px 10px 6px;
  gap: 7px;
  background: var(--bg);
  white-space: nowrap;
  overflow-x: auto;
  
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tab-bar::-webkit-scrollbar { display: none; }

.tab-item {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 14px;
  background: rgba(255,255,255,0.85);
  transition: all 0.25s ease;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}


.tab-item:not(.active) {
  border: 0.8px solid var(--border);
}


.tab-item.active {
  background: linear-gradient(135deg, #2B1E1A, #4A342C);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 5px 12px rgba(43,30,26,0.20);
  border: none;
  transform: scale(1.02);
}

.overview-focus-card{
  margin:10px 10px 0;
  padding:14px 12px;
  border-radius:13px;
  background:linear-gradient(135deg,#fffdfb,#fff1e8);
  box-shadow:0 9px 21px rgba(140,84,58,.12);
}
.overview-focus-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}
.overview-focus-eyebrow{display:block;font-size:11px;color:var(--text-secondary);}
.overview-focus-title{display:block;margin-top:4px;font-size:22px;font-weight:800;color:var(--text-primary);}
.overview-risk-tag{
  padding:5px 9px;
  border-radius:499.5px;
  font-size:11px;
  font-weight:700;
}
.overview-risk-tag.safe{background:#E8F8ED;color:#34C759;}
.overview-risk-tag.risk{background:#FFF5E6;color:#FF9500;}
.overview-focus-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:7px;
  margin-top:11px;
}
.overview-focus-item{
  padding:9px;
  border-radius:9px;
  background:rgba(255,255,255,.82);
}
.overview-focus-item.full{grid-column:1 / -1;}
.overview-focus-label{display:block;font-size:10.5px;color:var(--text-secondary);}
.overview-focus-value{display:block;margin-top:4px;font-size:15px;font-weight:700;color:var(--text-primary);}
.overview-focus-sub{display:block;margin-top:4px;font-size:11px;color:var(--text-muted);}

.overview-action-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:7px;
  padding:8px 10px 0;
}
.overview-action-card{
  min-height:67px;
  padding:11px;
  border-radius:11px;
  background:#fff;
  box-shadow:0 6px 13px rgba(15,23,42,.06);
  border:0.5px solid rgba(226,232,240,.72);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  box-sizing:border-box;
}
.overview-action-card.primary{
  background:linear-gradient(135deg,#D9826B,#EFA186);
  color:#fff;
  border:none;
}
.overview-action-card.primary.disabled{
  background:linear-gradient(135deg,#dfe5ec,#cfd7e2);
  color:#6b7280;
}
.overview-action-title{display:block;font-size:15px;font-weight:700;}
.overview-action-desc{display:block;margin-top:5px;font-size:11px;opacity:.82;}

.overview-trend-strip{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:7px;
  padding:8px 10px 0;
}
.overview-trend-card{
  padding:10px;
  border-radius:10px;
  background:#fff;
  border:0.5px solid rgba(226,232,240,.72);
  box-shadow:0 4px 10px rgba(15,23,42,.05);
}
.overview-trend-label{display:block;font-size:10.5px;color:var(--text-secondary);}
.overview-trend-value{display:block;margin-top:5px;font-size:17px;font-weight:800;color:var(--text-primary);}
.overview-trend-sub{display:block;margin-top:4px;font-size:10.5px;color:var(--text-muted);}

.care-message-card,
.device-radar-card,
.care-task-card{
  margin:8px 10px 0;
  padding:12px;
  border-radius:13px;
  background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(255,247,241,.92));
  border:0.5px solid rgba(226,232,240,.72);
  box-shadow:0 7px 17px rgba(153,75,83,.08);
}
.care-message-title{display:block;font-size:12px;font-weight:800;color:#9b5360}
.care-message-text{display:block;margin-top:5px;font-size:14px;font-weight:800;line-height:1.6;color:#1D1D1F}
.care-message-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:10px}
.care-message-actions button{height:36px;line-height:36px;border-radius:499.5px;background:#F26D9A;color:#fff;font-size:12px;font-weight:800}
.care-message-actions button.ghost{background:#fff1f5;color:#B44768}
.care-message-actions button.light{background:#f8fbff;color:#4A90D9}
.care-message-actions button::after{border:0}
.device-radar-card{background:linear-gradient(135deg,#f7fbff,#f1fff8)}
.device-radar-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}
.device-radar-grid view{padding:8px;border-radius:9px;background:rgba(255,255,255,.82);border:0.5px solid rgba(226,232,240,.7)}
.device-radar-grid text{display:block;font-size:10.5px;color:#6B7280}
.device-radar-value{display:block!important;margin-top:4px!important;font-size:13.5px!important;color:#1D1D1F!important;font-weight:800}
.device-radar-tip{display:block;margin-top:8px;font-size:11.5px;line-height:1.55;color:#5F6B7A}
.care-task-card{background:linear-gradient(135deg,#fffdf7,#f6fbff)}
.care-task-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 0;border-top:0.5px solid rgba(226,232,240,.72)}
.care-task-item:first-of-type{border-top:0}
.care-task-title{display:block;font-size:13.5px;font-weight:800;color:#1D1D1F}
.care-task-desc{display:block;margin-top:3px;font-size:11px;color:#86868B}
.care-task-check{flex-shrink:0;padding:4px 8px;border-radius:499.5px;background:#e9f2ff;color:#4A90D9;font-size:10.5px;font-weight:800}
.care-task-item.done .care-task-title{color:#34C759}
.care-task-item.done .care-task-check{background:#E8F8ED;color:#34C759}

.secondary-grid{padding-top:8px;}


.status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  padding: 10px 10px 0;
}
.status-card {
  background: rgba(255,250,246,.92);
  backdrop-filter: blur(10px);
  border-radius: 9px;
  padding: 10px 8px 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  text-align: center;
}
.status-card:active { transform: scale(.992); }
.sc-icon {
  width: 26px; height: 26px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; margin-bottom: 5px;
}
.sc-icon.green { background: var(--success-light); }
.sc-icon.blue { background: var(--primary-light); }
.sc-icon.orange { background: var(--warning-light); }
.sc-icon.purple { background: var(--purple-light); }
.sc-label { display: block; font-size: 9.5px; color: var(--text-secondary); margin-bottom: 2px; }
.sc-value { display: block; font-size: 16px; font-weight: 700; line-height: 1.2; }
.sc-value.green { color: var(--success); }
.sc-value.blue { color: var(--primary); }
.sc-value.orange { color: var(--warning); }
.sc-value.purple { color: var(--purple); }
.sc-detail { display: block; font-size: 8.5px; color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}

.mini-progress {
  height: 2.5px; background: #E5E5EA; border-radius: 1.5px; margin-top: 4px; overflow: hidden;
}
.mini-fill { height: 100%; background: var(--primary); border-radius: 1.5px; }


.checkin-section { text-align: center; padding: 15px 10px 10px; }
.checkin-btn-big {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 11px 36px; border: none; border-radius: 22px;
  cursor: pointer; border-style: none;
  background: linear-gradient(135deg, #34C759, #30D158); color: #fff;
  font-size: 13.5px; font-weight: 600;
  box-shadow: 0 3px 14px rgba(52,199,89,.3);
}
.checkin-btn-big.checked {
  background: linear-gradient(135deg, #E5E5EA, #D1D1D6);
  color: var(--text-secondary);
  box-shadow: none;
}
.btn-icon { font-size: 16px; }
.btn-text { font-size: 13.5px; }
.checkin-subtitle {
  display: block; font-size: 10.5px; color: var(--text-muted); margin-top: 4px;
}


.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 0 10px;
}
.chart-section {
  background: var(--card-bg); border-radius: 10px;
  padding: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.section-title { font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.section-link { font-size: 11.5px; color: var(--primary); font-weight: 500; }
.chart-canvas { width: 100%; height: 130px; }
.chart-canvas-full { width: 100%; height: 150px; }
.full-width { margin: 0 10px 10px; }


.alert-settings-section { padding: 0 10px 14px; }
.alert-setting-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card-bg); border-radius: 9px; padding: 12px;
  margin-bottom: 6px; box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.alert-left { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.alert-icon-wrap {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  flex-shrink: 0;
}
.alert-icon-wrap.red { background: #FFF0F0; }
.alert-icon-wrap.green { background: #E8F8ED; }
.alert-icon-wrap.blue { background: var(--primary-light); }
.ai-h4 { font-size: 12.5px; font-weight: 500; display: block; color: var(--text-primary); }
.ai-p { font-size: 10px; color: var(--text-secondary); margin-top: 1px; display: block; }
.alert-right {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--text-secondary);
  flex-shrink: 0;
}
.threshold-text { margin-right: 2px; white-space: nowrap; }


.device-status-row {
  display: flex;
  gap: 6px;
  padding: 8px 10px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.device-status-row::-webkit-scrollbar { display: none; }
.device-status-card {
  background: var(--card-bg); border-radius: 8px;
  padding: 9px 7px 7px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  min-width: 105px;
  flex-shrink: 0;
}
.dsc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.dsc-title { font-size: 10.5px; font-weight: 600; color: var(--text-secondary); letter-spacing: -0.1px; }
.dsc-icon {
  font-size: 12px; width: 18px; height: 18px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light);
}
.dsc-icon.green { background: #E8F8ED; }
.online-pulse { font-size: 11px; color: var(--success); background: transparent; animation: pulse-dot 2s ease-in-out infinite; }
.dsc-value {
  font-size: 18px; font-weight: 800; color: var(--text-primary);
  letter-spacing: -0.3px; line-height: 1.2; margin-bottom: 1px;
}
.dsc-value.dsc-location { font-size: 14px; }
.dsc-sub { font-size: 9.5px; color: var(--text-muted); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsc-bar-wrap { display: flex; align-items: center; gap: 4px; }
.dsc-bar { flex: 1; height: 4px; background: #EDEEF0; border-radius: 2px; overflow: hidden; }
.dsc-bar-fill { height: 100%; border-radius: 2px; transition: width 0.6s ease; }
.dsc-bar-fill.blue { background: linear-gradient(90deg, #4A90D9, #67B7FF); }
.dsc-bar-fill.green { background: linear-gradient(90deg, #34C759, #30D158); }
.dsc-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 4px; border-top: 0.5px solid var(--bg); padding-top: 4px;
}
.dsc-foot-label { font-size: 9px; color: var(--text-muted); }
.dsc-foot-val { font-size: 9px; color: var(--text-primary); font-weight: 500; }


.anomaly-section {
  margin: 8px 10px; padding: 10px 9px;
  background: var(--card-bg); border-radius: 9px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.anomaly-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 5px;
}
.anomaly-title { font-size: 13.5px; font-weight: 700; letter-spacing: -0.1px; }
.anomaly-tag {
  font-size: 10px; font-weight: 600; color: var(--success);
  background: var(--success-light); padding: 2px 8px; border-radius: 10px;
}
.anomaly-desc {
  font-size: 11px; color: var(--text-secondary); line-height: 1.55; margin-bottom: 7px;
}

.aap-item { padding: 7px 8px; }
.aap-item-left { gap: 6px; }
.aa-dot { width: 8px; height: 8px; }
.aa-item-name { font-size: 11px; }
.aa-item-detail { font-size: 13px; }
.aa-normal-tag { font-size: 9.5px; padding: 2px 6px; border-radius: 5px; }

.detect-card { border-radius: 8px; padding: 9px; margin-bottom: 6px; }
.detect-card.last { margin-bottom: 0; }
.dc-name { font-size: 12px; font-weight: 600; }
.dc-val { font-size: 12px; font-weight: 600; }
.dc-body { gap: 6px; }
.dc-emoji { font-size: 15px; }
.dc-sub { font-size: 10px; }
.dc-status { font-size: 10px; }
.dc-bar { height: 4px; border-radius: 2px; margin-top: 4px; }
.dc-fill { height: 100%; border-radius: 2px; }
.success-bg { background: var(--success); }
.purple-bg { background: var(--purple); }


.bottom-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 8px 10px 16px;
}
.bottom-stat-card {
  padding: 10px 7px 9px; border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  text-align: left;
}
.steps-card { background: linear-gradient(145deg, #7EC8FA, #4A90D9); }
.heart-card { background: linear-gradient(145deg, #6FE8C6, #34C759); }
.active-card { background: linear-gradient(145deg, #B39DDB, #7C4DFF); }
.bsc-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.bsc-label {
  font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.95);
  letter-spacing: -0.1px;
}
.bsc-icon-right { font-size: 11px; opacity: 0.7; }
.bsc-icon-red { font-size: 12px; }
.bsc-value {
  font-size: 16px; font-weight: 800; letter-spacing: -0.3px;
  line-height: 1.2; color: #fff; display: block;
}
.heart-big { font-size: 20px; font-weight: 800; color: #fff; }
.heart-unit { font-size: 10px; font-weight: 500; color: rgba(255,255,255,0.85); }
.bsc-wave {
  font-family: monospace; font-size: 8px; color: rgba(255,59,30,0.5);
  margin-top: 1px; letter-spacing: -0.5px; display: block;
}
.bsc-bar { height: 3px; background: rgba(255,255,255,0.3); border-radius: 1.5px; margin-top: 4px; overflow: hidden; }
.bsc-bar-fill { height: 100%; border-radius: 1.5px; background: rgba(255,255,255,0.85); }


.monitor-hero { padding: 16px 10px 14px; text-align: center; }
.monitor-cards-illustration {
  background: linear-gradient(135deg, #E8F1FC, #F3E8FB);
  border-radius: 12px; padding: 14px 10px; display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
}
.mock-data-card {
  background: linear-gradient(135deg, #4A90D9, #67B7FF); color: #fff;
  border-radius: 8px; padding: 9px 11px; margin-bottom: 6px;
  width: 100%;
  box-sizing: border-box;
  min-width: unset;
}
.mock-data-card:last-child { margin-bottom: 0; }
.mock-data-card.heart { background: linear-gradient(135deg, #5AC8FA, #34C759); }
.mock-data-card.purple-card { background: linear-gradient(135deg, #5856D6, #AF52DE); }
.mdc-top { display: flex; justify-content: space-between; align-items: center; }
.mdc-label { font-size: 10px; opacity: .8; }
.mdc-emoji { font-size: 12px; }
.mdc-value { font-size: 15px; font-weight: 700; display: block; margin-top: 2px; }
.mdc-bar { height: 4px; border-radius: 2px; margin-top: 5px; overflow: hidden; }
.mdc-fill { height: 100%; background: #34C759; border-radius: 2px; }
.heart-wave { margin-top: 4px; font-size: 10px; opacity: .7; letter-spacing: 1px; }
.monitor-page-title { font-size: 17px; font-weight: 700; margin-top: 12px; display: block; }
.monitor-page-desc { font-size: 12px; color: var(--text-secondary); margin-top: 5px; display: block; }


.feature-cards-row { display: flex; flex-direction: column; gap: 7px; padding: 0 10px 14px; }
.feature-card {
  background: var(--card-bg); border-radius: 9px; padding: 11px 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  display: flex; justify-content: space-between; align-items: center;
}
.feature-card:active { transform: scale(.992); box-shadow: 0 6px 12px rgba(15,23,42,.08); }
.fc-h4 { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.dot { width: 17px; height: 17px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; }
.dot.on { background: var(--success-light); color: var(--success); }
.fc-p { font-size: 11px; color: var(--text-secondary); margin-top: 3px; display: block; }
.fc-right { text-align: right; flex-shrink: 0; }
.meta-label { font-size: 10px; color: var(--text-muted); display: block; }
.feature-action { font-size: 11.5px; color: var(--primary); font-weight: 500; display: block; margin-top: 3px; }


.threshold-section { padding: 0 10px 14px; }
.ts-left { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.ts-icon { font-size: 14px; }
.ts-label { font-size: 12.5px; }
.radio-group { display: flex; gap: 10px; flex-wrap: wrap; padding-left: 24px; }
.radio-item { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-secondary); }


.analysis-hero { padding: 16px 10px 12px; text-align: center; }
.analysis-chart-preview {
  display: inline-block; background: #FAFAFA;
  border-radius: 9px; padding: 10px; border: 0.5px solid var(--border);
  max-width: 100%;
  box-sizing: border-box;
}
.preview-canvas { width: 100%; height: 110px; }
.analysis-page-title { font-size: 17px; font-weight: 700; margin-top: 12px; display: block; }
.analysis-page-desc { font-size: 12px; color: var(--text-secondary); margin-top: 4px; display: block; }




.top-bar { pointer-events: auto; }
.tab-bar, .tab-item { position: relative; z-index: 20; }
.checkin-section { position: relative; z-index: 1; }
.checkin-btn-big { position: relative; z-index: 1; }


.trial-banner{
  margin:12px;
  padding:12px;
  border-radius:10px;
  background:linear-gradient(135deg,#4A90D9,#5BA3F0);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.trial-banner-left{flex:1;display:flex;flex-direction:column;gap:4px}
.trial-banner-title{font-size:15px;font-weight:700}
.trial-banner-desc{font-size:11.5px;line-height:1.6;color:rgba(255,255,255,.88)}
.trial-banner-tag{
  flex-shrink:0;
  padding:4px 9px;
  border-radius:499.5px;
  background:rgba(255,255,255,.18);
  font-size:11px;
}
.trial-status-card{
  margin:12px;
  padding:12px;
  border-radius:10px;
  background:#fff;
  box-shadow:0 1px 5px rgba(0,0,0,.04);
}
.trial-status-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
}
.trial-status-title{font-size:14px;font-weight:700;color:#1D1D1F}
.trial-status-badge{
  padding:3px 8px;
  border-radius:499.5px;
  font-size:11px;
}
.trial-status-badge.trial{background:rgba(74,144,217,.12);color:#4A90D9}
.trial-status-badge.free{background:rgba(174,174,178,.15);color:#86868B}
.trial-status-badge.member{background:rgba(52,199,89,.12);color:#34C759}
.trial-status-meta{
  margin-top:8px;
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:11.5px;
  color:#6B7280;
  line-height:1.6;
}


