


.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);
}


.container {
  min-height: 100vh;
  
}


.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; }
.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; }


.membership-hero { padding: 16px 10px 12px; text-align: center; }
.membership-card-premium {
  background: transparent; color: #4B342C;
  border-radius: 18px; padding: 0; display: block;
  width: 100%;
  box-sizing: border-box;
  position: relative; overflow: hidden;
}
.membership-card-art{display:block;width:100%;border-radius:18px}
.membership-card-premium::after {
  display:none;
}
.mcp-badge { font-size: 10px; opacity: .8; display: block; margin-bottom: 5px; }
.mcp-price { font-size: 28px; font-weight: 700; display: block; }
.mcp-unit { font-size: 12px; font-weight: 400; }
.mcp-period { font-size: 11px; opacity: .7; display: block; margin-top: 1px; }
.mcp-btn {
  margin-top: 12px; padding: 8px 0; border-radius: 8px; border: none;
  background: var(--primary); color: #fff; font-size: 12.5px; font-weight: 600;
  width: 100%;
}
.mcp-features { margin-top: 10px; font-size: 10.5px; opacity: .85; }
.mf-li { display: block; padding: 2px 0; }
.membership-page-title { font-size: 17px; font-weight: 700; margin-top: 16px; display: block; }
.membership-page-desc { font-size: 12px; color: var(--text-secondary); margin-top: 3px; display: block; }


.pricing-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 10px 14px;
}
.price-card {
  background: var(--card-bg); border-radius: 9px; padding: 12px 10px;
  text-align: left; border: 1px solid transparent;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  display: flex; align-items: center; gap: 10px;
}
.price-card.featured { border-color: var(--primary); transform: none; }
.pc-name { font-size: 11px; color: var(--text-secondary); }
.pc-primary { color: var(--primary); }
.pc-tier { font-size: 12px; font-weight: 600; }
.pc-amount { font-size: 20px; font-weight: 700; }
.pc-sm { font-size: 12px; font-weight: 400; }
.pc-unit { font-size: 11px; color: var(--text-secondary); }
.price-features { display: none; } 
.price-btn {
  margin: 0; padding: 7px 14px; border-radius: 7px;
  border: none; font-size: 11.5px; font-weight: 600;
  white-space: nowrap; flex-shrink: 0;
}
.price-btn.primary { background: var(--primary); color: #fff; }
.price-btn.outline {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-secondary);
}


.faq-section { padding: 0 10px 14px; }
.faq-title { font-size: 13px; font-weight: 600; margin-bottom: 7px; display: block; }
.faq-item {
  background: var(--card-bg); border-radius: 8px;
  margin-bottom: 5px; box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  overflow: hidden;
}
.faq-q {
  padding: 11px; font-size: 12.5px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-arrow { font-size: 10px; color: var(--text-muted); transition: transform .3s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  padding: 0 11px 10px; font-size: 11.5px; color: var(--text-secondary);
  line-height: 1.65; display: block;
}


.timeout-picker-mask {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.45);
  z-index: 999;
}
.timeout-picker-popup {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-radius: 10px 10px 0 0;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}
.picker-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px;
  border-bottom: 0.5px solid #f0f0f0;
}
.picker-title { font-size: 14.5px; font-weight: 600; }
.picker-close { font-size: 16.5px; color: #999; padding: 3px; }
.picker-scroll { max-height: 250px; }
.picker-grid {
  display: flex; flex-wrap: wrap;
  padding: 8px; gap: 6px;
}
.picker-option {
  width: calc(33.33% - 5px); padding: 8px 0;
  text-align: center; border-radius: 5px;
  background: #f5f5f5; font-size: 12px;
  color: #333; box-sizing: border-box;
}
.picker-option.selected {
  background: rgba(74,144,217,.1); color: #4A90D9;
  font-weight: 600; border: 1px solid #4A90D9;
}


@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}


.vip-status-bar{display:inline-flex;align-items:center;gap:4px;background:linear-gradient(135deg,#FFF3E0,#FFE0B2);border-radius:12px;padding:4px 10px;margin:10px 12px 0}
.vip-status-icon{font-size:12px}.vip-status-text{font-size:11px;color:#E65100;font-weight:600}
.hero-card{margin:10px 12px 0;border-radius:14px;overflow:hidden;position:relative;box-shadow:0 4px 16px rgba(74,144,217,.2)}
.hero-bg{position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(145deg,#1a1a2e,#16213e,#0f3460)}
.hero-bg::after{content:'';position:absolute;top:-40px;right:-20px;width:130px;height:130px;border-radius:50%;background:radial-gradient(circle,rgba(74,144,217,.35) 0%,transparent 70%);pointer-events:none}
.hero-content{position:relative;z-index:1;padding:18px 16px 16px;color:#fff}
.hero-top{display:flex;align-items:center;gap:6px;margin-bottom:8px}.hero-icon{font-size:22px}
.hero-badge-wrap{background:#FF9500;border-radius:4px;padding:2px 7px}.hero-badge{font-size:10px;font-weight:700;color:#fff}
.hero-name{font-size:18px;font-weight:700;display:block;margin-bottom:2px}
.hero-desc{font-size:12px;opacity:.8;display:block;margin-bottom:10px}
.hero-price-row{display:flex;align-items:baseline;gap:2px;margin-bottom:14px}
.hero-price{font-size:36px;font-weight:800;line-height:1}.hero-period{font-size:13px;opacity:.8}
.hero-original{font-size:14px;text-decoration:line-through;opacity:.5;margin-left:6px}
.hero-features{display:flex;flex-wrap:wrap;gap:6px 12px;margin-bottom:16px}
.hero-feat{display:flex;align-items:center;gap:5px;min-width:45%}
.feat-dot{width:4px;height:4px;border-radius:50%;background:#4A90D9;flex-shrink:0}
.feat-text{font-size:11.5px;opacity:.9}
.hero-btn{width:100%;padding:12px 0;border-radius:10px;background:linear-gradient(135deg,#4A90D9,#357ABD);color:#fff;font-size:15px;font-weight:700;text-align:center;box-sizing:border-box;letter-spacing:1px}
.hero-btn-active{opacity:.85;transform:scale(.97)}
.plans-section{padding:18px 12px 0}.section-title-mem{font-size:16px;font-weight:700;color:var(--text-primary);display:block;margin-bottom:10px}
.plans-list{display:flex;flex-direction:column;gap:8px}
.plan-card{background:var(--card-bg);border-radius:12px;padding:14px 12px;border:1.5px solid transparent;box-shadow:0 1px 8px rgba(0,0,0,.06);position:relative;overflow:hidden}
.plan-card-active{border-color:#4A90D9;background:#E8F1FC}
.plan-rec{position:absolute;top:0;right:12px;background:#FF9500;color:#fff;font-size:10px;font-weight:700;padding:3px 8px;border-radius:0 0 6px 6px}
.plan-top{display:flex;align-items:center;gap:8px;margin-bottom:8px}.plan-icon{font-size:22px}.plan-info{flex:1}
.plan-name{font-size:15px;font-weight:700;color:var(--text-primary);display:block}
.plan-desc{font-size:11.5px;color:var(--text-secondary);display:block;margin-top:1px}
.plan-price-row{display:flex;align-items:baseline;gap:2px;margin-bottom:10px}
.plan-price{font-size:26px;font-weight:800;color:var(--text-primary);line-height:1.1}
.plan-price-unit{font-size:12px;color:var(--text-secondary)}
.plan-original{font-size:13px;color:#AEAEB2;text-decoration:line-through;margin-left:6px}
.plan-features{margin-bottom:10px;padding-top:8px;border-top:0.5px solid #E5E5EA}
.plan-feat{display:flex;align-items:center;gap:5px;padding:3.5px 0}
.plan-feat-check{font-size:11px;color:#34C759;font-weight:700;flex-shrink:0}
.plan-feat-text{font-size:12px;color:var(--text-secondary)}
.plan-check{display:flex;align-items:center;gap:4px;margin-bottom:8px}
.plan-check-icon{width:16px;height:16px;border-radius:50%;background:#4A90D9;color:#fff;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center}
.plan-check-text{font-size:12px;color:#4A90D9;font-weight:600}
.plan-action-btn{width:100%;padding:9px 0;border-radius:8px;font-size:13px;font-weight:600;text-align:center;background:#E8F1FC;color:#4A90D9;box-sizing:border-box}
.plan-action-btn-active{background:#4A90D9;color:#fff}.plan-action-btn-hover{opacity:.85;transform:scale(.98)}

.faq-section{padding:18px 12px 0}
.faq-item{background:var(--card-bg);border-radius:10px;margin-bottom:6px;box-shadow:0 1px 8px rgba(0,0,0,.06);overflow:hidden}
.faq-q{padding:14px 12px;display:flex;justify-content:space-between;align-items:center}
.faq-q-text{font-size:13.5px;font-weight:600;color:var(--text-primary);flex:1}
.faq-arrow{font-size:16px;color:#AEAEB2;transition:transform .3s;transform:rotate(90deg)}.faq-arrow-open{transform:rotate(-90deg)}
.faq-a{padding:0 12px 12px}.faq-a-text{font-size:12.5px;color:var(--text-secondary);line-height:1.7}
.footer-safe{padding:20px 16px 10px;text-align:center}.footer-safe-text{font-size:11px;color:#AEAEB2}


.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;
}

.mode-hero-switch{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin:10px 10px 6px;
}

.mode-hero-card{
  position:relative;
  min-height:122px;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 8px 17px rgba(31,41,55,.09);
  transform:translateY(0);
  transition:transform .18s ease,box-shadow .18s ease;
}

.mode-hero-card.active{
  box-shadow:0 10px 19px rgba(31,41,55,.13);
  transform:translateY(-2px);
}

.mode-hero-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

.mode-hero-overlay{
  position:absolute;
  inset:0;
}

.mode-hero-overlay.love{
  background:linear-gradient(180deg,rgba(126,31,68,.04),rgba(142,24,69,.14) 38%,rgba(103,17,56,.48));
}

.mode-hero-overlay.safe{
  background:linear-gradient(180deg,rgba(18,95,160,.04),rgba(19,108,183,.14) 38%,rgba(14,74,129,.5));
}

.mode-hero-copy{
  position:absolute;
  left:9px;
  right:9px;
  bottom:10px;
  z-index:2;
}

.mode-hero-title{
  display:block;
  font-size:15px;
  font-weight:800;
  color:#fff;
  text-shadow:0 2px 6px rgba(0,0,0,.18);
}

.mode-hero-desc{
  display:block;
  margin-top:4px;
  font-size:10.5px;
  line-height:1.55;
  color:rgba(255,255,255,.9);
}

.mode-hero-badge{
  position:absolute;
  top:8px;
  right:8px;
  z-index:2;
  padding:4px 8px;
  border-radius:499.5px;
  background:rgba(255,255,255,.2);
  backdrop-filter:blur(5px);
  color:#fff;
  font-size:10.5px;
  font-weight:700;
  border:0.5px solid rgba(255,255,255,.22);
}

.guardian-hero{
  margin:8px 10px 0;
  padding:12px;
  border-radius:11px;
  background:linear-gradient(135deg,#FFF7E8,#FDE7C7);
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}

.guardian-title{
  display:block;
  font-size:16px;
  font-weight:700;
  color:#1D1D1F;
}

.guardian-desc{
  display:block;
  margin-top:4px;
  font-size:11.5px;
  line-height:1.6;
  color:#7C5A25;
}

.guardian-badge{
  flex-shrink:0;
  padding:4px 9px;
  border-radius:499.5px;
  background:rgba(255,255,255,.8);
  color:#9A6700;
  font-size:11px;
  font-weight:700;
}

.guardian-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:6px;
  padding:8px 10px 0;
}

.guardian-stat-card{
  padding:10px 8px;
  border-radius:9px;
  background:#FFFFFF;
  box-shadow:0 1px 4px rgba(0,0,0,.04);
  text-align:center;
}

.guardian-stat-card.warn{ background:#FFF8E8; }
.guardian-stat-card.alert{ background:#FFF0F0; }

.guardian-stat-value{
  display:block;
  font-size:18px;
  font-weight:800;
  color:#1D1D1F;
}

.guardian-stat-label{
  display:block;
  margin-top:4px;
  font-size:11px;
  color:#6B7280;
}

.guardian-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  padding:8px 10px 0;
}

.guardian-action-card{
  padding:12px 10px;
  border-radius:9px;
  background:#FFFFFF;
  box-shadow:0 1px 4px rgba(0,0,0,.04);
}

.guardian-action-title{
  display:block;
  font-size:13.5px;
  font-weight:700;
  color:#1D1D1F;
}

.guardian-action-desc{
  display:block;
  margin-top:4px;
  font-size:11px;
  line-height:1.5;
  color:#86868B;
}

.guardian-guide{
  margin:8px 10px 0;
  padding:11px 10px;
  border-radius:10px;
  background:#FFFFFF;
  box-shadow:0 1px 5px rgba(0,0,0,.04);
}

.guardian-guide-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.guardian-guide-item{
  display:flex;
  align-items:flex-start;
  gap:7px;
}

.guardian-guide-dot{
  width:20px;
  height:20px;
  line-height:20px;
  text-align:center;
  border-radius:50%;
  background:#EEF3FA;
  color:#4A90D9;
  font-size:11px;
  font-weight:700;
  flex-shrink:0;
}

.guardian-guide-dot.done{
  background:#E8F8ED;
  color:#34C759;
}

.guardian-guide-copy{
  min-width:0;
  flex:1;
}

.guardian-guide-title{
  display:block;
  font-size:12.5px;
  font-weight:700;
  color:#1D1D1F;
}

.guardian-guide-desc{
  display:block;
  margin-top:3px;
  font-size:11px;
  line-height:1.6;
  color:#6B7280;
}

.guardian-list-section{
  margin:8px 10px 12px;
  padding:11px 10px;
  border-radius:10px;
  background:#FFFFFF;
  box-shadow:0 1px 5px rgba(0,0,0,.04);
}

.guardian-person-card{
  padding:9px 0;
  border-top:0.5px solid #EEF2F6;
}

.guardian-person-card:first-child{
  border-top:none;
  padding-top:0;
}

.guardian-person-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}

.guardian-person-head{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  flex:1;
}

.guardian-avatar{
  width:38px;
  height:38px;
  border-radius:50%;
  background:#EEF3FA;
  flex-shrink:0;
}

.guardian-avatar-fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  color:#4A90D9;
  font-size:14px;
  font-weight:800;
}

.guardian-person-copy{
  min-width:0;
  flex:1;
}

.guardian-person-name{
  display:block;
  font-size:13.5px;
  font-weight:700;
  color:#1D1D1F;
}

.guardian-person-meta{
  display:block;
  margin-top:3px;
  font-size:11px;
  color:#86868B;
}

.guardian-status{
  flex-shrink:0;
  padding:4px 8px;
  border-radius:499.5px;
  font-size:10.5px;
  font-weight:700;
}

.guardian-status.ok{
  background:#E8F8ED;
  color:#34C759;
}

.guardian-status.warn{
  background:#FFF5E6;
  color:#FF9500;
}

.guardian-person-detail{
  display:block;
  margin-top:5px;
  font-size:11.5px;
  line-height:1.6;
  color:#5F6B7A;
}

.guardian-tag-row{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-top:7px;
}

.guardian-mini-tag{
  padding:4px 7px;
  border-radius:499.5px;
  background:#F4F6FA;
  color:#6B7280;
  font-size:10.5px;
  line-height:1;
}

.guardian-health-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  margin-top:7px;
}

.guardian-health-item{
  padding:8px 9px;
  border-radius:8px;
  background:#F8FAFD;
}

.guardian-health-item.soft{
  background:#F3F7FC;
}

.guardian-health-item.wide{
  grid-column:1 / -1;
}

.guardian-health-label{
  display:block;
  font-size:10.5px;
  color:#9AA0A6;
}

.guardian-health-value{
  display:block;
  margin-top:4px;
  font-size:12px;
  font-weight:700;
  color:#1D1D1F;
}

.guardian-empty{
  padding:12px 0 4px;
  text-align:center;
}

.guardian-empty-title{
  display:block;
  font-size:14px;
  font-weight:700;
  color:#1D1D1F;
}

.guardian-empty-desc{
  display:block;
  margin-top:5px;
  font-size:11.5px;
  line-height:1.6;
  color:#86868B;
}

.guardian-empty-btn{
  display:inline-block;
  margin-top:9px;
  padding:8px 14px;
  border-radius:499.5px;
  background:#4A90D9;
  color:#FFFFFF;
  font-size:12px;
  font-weight:700;
}

.guardian-empty-actions{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:7px;
}

.guardian-empty-link{
  font-size:11.5px;
  color:#4A90D9;
}


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

.icon-btn text{
  line-height: 1;
}

.membership-card-premium{
  border: none;
  text-align: left;
}


.h5-.h5-page{
  background:
    radial-gradient(circle at top left, rgba(74,144,217,.12), transparent 26%),
    radial-gradient(circle at top right, rgba(175,82,222,.08), transparent 24%),
    #f6f8fc;
}

.container{
  padding-bottom: 18px;
}

.top-bar{
  box-shadow: 0 5px 15px rgba(31,41,55,.06);
  backdrop-filter: blur(7px);
}

.logo-icon{
  box-shadow: 0 5px 12px rgba(74,144,217,.22);
}

.icon-btn{
  background: rgba(244,247,251,.92);
  box-shadow: inset 0 0 0 0.5px rgba(148,163,184,.14);
}

.user-avatar-sm{
  box-shadow: 0 4px 9px rgba(102,126,234,.24);
}

.tab-bar{
  padding-top: 11px;
  padding-bottom: 9px;
}

.tab-item{
  background: rgba(255,255,255,.78);
  box-shadow: 0 3px 9px rgba(15,23,42,.04);
}

.tab-item.active{
  box-shadow: 0 5px 12px rgba(74,144,217,.24);
}

.status-card,
.chart-section,
.alert-setting-row,
.device-status-card,
.guardian-stat-card,
.guardian-action-card,
.guardian-guide,
.guardian-list-section,
.faq-item,
.trial-status-card{
  box-shadow: 0 7px 18px rgba(15,23,42,.06);
}

.status-card,
.chart-section,
.alert-setting-row,
.device-status-card{
  border: 0.5px solid rgba(226,232,240,.75);
}

.status-card{
  border-radius: 11px;
}

.sc-icon{
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,.45);
}

.checkin-btn-big{
  box-shadow: 0 7px 14px rgba(52,199,89,.24);
}

.chart-section{
  border-radius: 12px;
}

.section-title,
.section-title-mem,
.guardian-title,
.membership-page-title,
.monitor-page-title,
.analysis-page-title{
  letter-spacing: 0.3px;
}

.alert-setting-row,
.guardian-action-card,
.plan-card,
.faq-item{
  border: 0.5px solid rgba(226,232,240,.72);
}

.device-status-card{
  min-width: 115px;
  border-radius: 10px;
}

.anomaly-section,
.bottom-stats-row{
  margin-left: 10px;
  margin-right: 10px;
}

.anomaly-section{
  background: rgba(255,255,255,.88);
  border: 0.5px solid rgba(226,232,240,.7);
  border-radius: 12px;
  padding: 12px 11px;
  box-shadow: 0 7px 18px rgba(15,23,42,.06);
}

.aap-item{
  border-radius: 8px;
  background: #f8fbff;
}

.bottom-stat-card{
  box-shadow: 0 7px 15px rgba(15,23,42,.12);
}

.monitor-cards-illustration,
.analysis-chart-preview{
  box-shadow: 0 8px 17px rgba(74,144,217,.10);
}

.membership-card-premium{box-shadow:0 9px 21px rgba(140,84,58,.12)}

.plan-card{
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.plan-card-active{
  box-shadow: 0 9px 18px rgba(74,144,217,.14);
}

.guardian-badge,
.trial-banner-tag,
.plan-rec{
  box-shadow: 0 3px 7px rgba(15,23,42,.10);
}


.trial-banner{
  border: 0.5px solid rgba(255,255,255,.18);
  box-shadow: 0 9px 19px rgba(74,144,217,.24);
}

.top-bar-logo,
.top-bar-actions{
  position: relative;
  z-index: 2;
}

.tab-item{
  font-weight: 600;
}

.status-grid,
.charts-row,
.guardian-stats,
.guardian-actions{
  gap: 8px;
}

.status-card{
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
}

.sc-value{
  letter-spacing: -0.3px;
}

.mini-progress{
  margin-top: 5px;
  background: #eef2f7;
}

.mini-fill{
  background: linear-gradient(90deg, #4A90D9, #69b1ff);
}

.checkin-btn-big{
  transform: translateY(0);
}

.checkin-btn-big:active{
  transform: translateY(1px) scale(.99);
}

.chart-section,
.alert-setting-row,
.guardian-action-card,
.guardian-guide,
.guardian-list-section,
.faq-item{
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,251,253,.98));
}

.section-header{
  margin-bottom: 9px;
}

.section-title{
  font-size: 13.5px;
}

.section-link{
  padding: 3px 7px;
  border-radius: 499.5px;
  background: rgba(74,144,217,.08);
}

.alert-icon-wrap,
.dsc-icon,
.guardian-guide-dot{
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,.5);
}

.dsc-value{
  letter-spacing: -0.4px;
}
.dsc-unit{
  font-size: 12px;
  font-weight: 600;
  color: #34C759;
  margin-left: 2px;
}

.dsc-bar{
  background: #eef2f7;
}

.dsc-bar-fill.blue{
  background: linear-gradient(90deg, #4A90D9, #76bcff);
}

.guardian-hero{
  box-shadow: 0 8px 17px rgba(154,103,0,.10);
}

.guardian-stat-card{
  border: 0.5px solid rgba(226,232,240,.76);
}

.guardian-stat-value{
  letter-spacing: -0.4px;
}

.guardian-action-card{
  position: relative;
  overflow: hidden;
}

.guardian-action-card::after{
  content: '';
  position: absolute;
  right: -12px;
  top: -12px;
  width: 60px;
  height: 60px;
  border-radius: 499.5px;
  background: rgba(74,144,217,.06);
}

.guardian-person-card{
  transition: transform .18s ease;
}

.guardian-person-card:active{
  transform: scale(.992);
}

.guardian-health-item{
  border: 0.5px solid rgba(226,232,240,.72);
}

.guardian-mini-tag{
  background: #eef4fb;
  color: #49617d;
}

.monitor-cards-illustration,
.analysis-chart-preview{
  border: 0.5px solid rgba(226,232,240,.76);
}

.mock-data-card,
.membership-card-premium{
  overflow: hidden;
}

.overview-secondary-entry{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:7px;
  padding:0 10px 13px;
}
.overview-secondary-card{
  padding:11px;
  border-radius:10px;
  background:rgba(255,255,255,.78);
  border:0.5px solid rgba(226,232,240,.72);
}
.overview-secondary-title{display:block;font-size:13px;font-weight:700;color:var(--text-primary);}
.overview-secondary-desc{display:block;margin-top:4px;font-size:11px;color:var(--text-secondary);line-height:1.5;}

.mock-data-card::after,
.membership-card-premium::before{
  display:none;
}


.guardian-hero{
  margin:7px 10px 0;
  padding:13px 14px;
  border-radius:17px;
  background:
    radial-gradient(circle at 88% 8%, rgba(142,214,207,.22), transparent 28%),
    linear-gradient(135deg,#fffdfb,#fff2e7);
  border:0.5px solid rgba(255,255,255,.82);
  box-shadow:0 9px 20px rgba(140,84,58,.10);
}
.guardian-title{
  font-size:21px;
  line-height:1.1;
  font-weight:900;
  color:#2B1E1A;
}
.guardian-desc{
  max-width:215px;
  margin-top:5px;
  font-size:12px;
  line-height:1.55;
  color:#80695F;
}
.guardian-badge{
  background:#fff;
  color:#8E4537;
  box-shadow:0 4px 9px rgba(140,84,58,.10);
}
.guardian-stats{
  padding:7px 10px 0;
  gap:6px;
}
.guardian-stat-card{
  min-height:56px;
  border-radius:13px;
  background:rgba(255,255,255,.88);
  border:0.5px solid #F0DED3;
  box-shadow:0 6px 14px rgba(140,84,58,.06);
}
.guardian-stat-card.warn{background:#FFF8E8;border-color:#F2E1B8;}
.guardian-stat-card.alert{background:#FFF0F2;border-color:#F3CDD3;}
.guardian-stat-value{
  font-size:20px;
  color:#2B1E1A;
}
.guardian-stat-label{
  font-size:11px;
  font-weight:800;
  color:#80695F;
}
.guardian-list-section{
  margin:7px 10px 9px;
  padding:0;
  background:transparent;
  box-shadow:none;
}
.guardian-person-card{
  margin-bottom:8px;
  padding:12px;
  border:0.5px solid #F0DED3;
  border-radius:16px;
  background:rgba(255,255,255,.92);
  box-shadow:0 8px 17px rgba(140,84,58,.08);
}
.guardian-person-card:first-child{padding-top:12px;border-top:0.5px solid #F0DED3;}
.guardian-avatar{
  width:44px;
  height:44px;
  border-radius:22px;
  background:#EEF5FF;
}
.guardian-avatar-fallback{
  color:#5C8AAE;
  font-size:15px;
  font-weight:900;
}
.guardian-person-name{
  font-size:16px;
  color:#2B1E1A;
  font-weight:900;
}
.guardian-person-meta{
  font-size:11px;
  color:#8A746B;
}
.guardian-status{
  padding:4px 8px;
  border-radius:499.5px;
  font-size:11px;
  font-weight:900;
}
.guardian-person-detail{
  margin-top:8px;
  padding:7px 8px;
  border-radius:10px;
  background:#FFF8F2;
  color:#7E6A60;
}
.guardian-health-grid{
  gap:6px;
  margin-top:8px;
}
.guardian-health-item{
  padding:8px 9px;
  border-radius:10px;
  background:#FFF8F2;
  border:0.5px solid #F4E3D9;
}
.guardian-health-label{
  font-size:10.5px;
  color:#9A8378;
  font-weight:800;
}
.guardian-health-value{
  font-size:13px;
  color:#2B1E1A;
  font-weight:900;
}

.guardian-device-card{
  margin:0 10px 9px;
  padding:13px;
  border-radius:17px;
  background:
    radial-gradient(circle at 92% 4%, rgba(142,214,207,.20), transparent 24%),
    linear-gradient(145deg,#FFFDF9,#FFF7EF 54%,#F6FBF8);
  border:0.5px solid #F0DED3;
  box-shadow:0 9px 21px rgba(140,84,58,.09);
}
.self-device-card{
  margin-top:9px;
}
.guardian-device-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:9px;
  margin-bottom:9px;
}
.guardian-device-title{
  display:block;
  font-size:15px;
  line-height:1.25;
  font-weight:900;
  color:#2B1E1A;
}
.guardian-device-desc{
  display:block;
  margin-top:3px;
  font-size:12px;
  line-height:1.45;
  color:#80695F;
}
.guardian-device-badge{
  flex-shrink:0;
  padding:4px 8px;
  border-radius:499.5px;
  background:#EAF8EF;
  color:#2EA66F;
  font-size:11.5px;
  font-weight:900;
}
.guardian-device-group-card{
  margin-top:8px;
  padding:9px;
  border-radius:13px;
  background:rgba(255,255,255,.70);
  border:0.5px solid rgba(240,222,211,.86);
}
.guardian-device-group{
  display:block;
  position:relative;
  margin:0 0 6px;
  padding-left:10px;
  font-size:12px;
  line-height:1.3;
  color:#8E4537;
  font-weight:900;
}
.guardian-device-group::before{
  content:'';
  position:absolute;
  left:0;
  top:4.5px;
  width:5px;
  height:5px;
  border-radius:499.5px;
  background:linear-gradient(135deg,#DF8068,#F3C27A);
}
.guardian-device-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:5px;
}
.guardian-device-item{
  min-height:44px;
  padding:7.5px 8px;
  border-radius:11px;
  background:linear-gradient(180deg,rgba(255,250,246,.98),rgba(255,245,238,.92));
  border:0.5px solid rgba(244,227,217,.96);
}
.guardian-device-item text:first-child{
  display:block;
  font-size:12px;
  font-weight:900;
  color:#2B1E1A;
}
.guardian-device-item text:last-child{
  display:block;
  margin-top:2.5px;
  font-size:11px;
  line-height:1.35;
  color:#8A746B;
}

.threshold-section{
  background: rgba(255,255,255,.92);
  border: 0.5px solid rgba(226,232,240,.7);
  border-radius: 12px;
  margin: 0 10px 14px;
  padding: 12px 11px 14px;
  box-shadow: 0 7px 18px rgba(15,23,42,.06);
}

.radio-item,
.picker-option{
  border-radius: 7px;
}

.pricing-grid,
.plans-list{
  gap: 9px;
}

.plan-card{
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(247,250,253,.99));
}

.plan-price{
  letter-spacing: -0.4px;
}

.plan-action-btn{
  border-radius: 8px;
}

.faq-q{
  background: rgba(255,255,255,.55);
}

.faq-a{
  background: rgba(248,250,252,.78);
}

.bottom-stat-card{
  border: 0.5px solid rgba(255,255,255,.14);
}


.h5-.h5-page{
  --peace-blue:#5b8fdc;
  --peace-cyan:#8ed6cf;
  --care-pink:#f07ca3;
  --care-cream:#fff8ef;
  --glass:rgba(255,255,255,.82);
  background:
    radial-gradient(circle at 12% 6%, rgba(240,124,163,.22), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(142,214,207,.24), transparent 30%),
    linear-gradient(180deg,#fffaf5 0%,#f6fbff 44%,#f7f8fb 100%);
}
.top-bar{
  background:rgba(255,255,255,.86)!important;
  border-bottom:0.5px solid rgba(255,255,255,.7);
}
.logo-icon{
  background:linear-gradient(135deg,#7bd6c4,#43c887);
  color:#fff;
}
.logo-text{color:#213044}
.tab-bar{background:transparent}
.tab-item{
  min-height:27px;
  padding:7px 17px;
  border-color:rgba(226,232,240,.68)!important;
}
.tab-item.active{
  background:linear-gradient(135deg,#5b8fdc,#7bd6c4);
  box-shadow:0 7px 16px rgba(91,143,220,.24);
}
.mode-hero-switch{
  gap:9px;
  margin-top:11px;
}
.mode-hero-card{
  min-height:136px;
  border-radius:17px;
  border:0.5px solid rgba(255,255,255,.62);
}
.mode-hero-card.active::after{
  content:'';
  position:absolute;
  inset:5px;
  border:1px solid rgba(255,255,255,.62);
  border-radius:14px;
  pointer-events:none;
}
.mode-hero-title{font-size:17px}
.mode-hero-desc{font-size:11px}
.overview-focus-card{
  border-radius:17px;
  background:
    radial-gradient(circle at 92% 16%, rgba(240,124,163,.18), transparent 24%),
    linear-gradient(135deg,rgba(255,255,255,.96),rgba(255,248,239,.92));
  border:0.5px solid rgba(255,255,255,.72);
  box-shadow:0 12px 27px rgba(137,91,110,.12);
}
.overview-focus-title{
  font-size:26px;
  letter-spacing:-0.5px;
}
.overview-focus-eyebrow,.overview-focus-label{
  color:#8b7280;
}
.overview-risk-tag.safe{background:#eaf8ef;color:#2aa56f}
.overview-risk-tag.risk{background:#fff2df;color:#bb6b00}
.overview-action-card{
  min-height:75px;
  border-radius:14px;
  background:var(--glass);
  backdrop-filter:blur(9px);
}
.overview-action-card.primary{
  background:linear-gradient(135deg,#f07ca3,#f5a46f);
  box-shadow:0 9px 18px rgba(240,124,163,.24);
}
.overview-action-title{font-size:16px}
.care-message-card,.device-radar-card,.care-task-card{
  border-radius:16px;
  backdrop-filter:blur(9px);
}
.care-message-card{
  background:
    radial-gradient(circle at 90% 4%, rgba(240,124,163,.2), transparent 26%),
    linear-gradient(135deg,#fff,#fff6ee);
}
.device-radar-card{
  background:
    radial-gradient(circle at 88% 8%, rgba(126,214,196,.22), transparent 28%),
    linear-gradient(135deg,#f9fcff,#f1fff8);
}
.care-task-card{
  background:
    radial-gradient(circle at 8% 0%, rgba(255,216,153,.2), transparent 28%),
    linear-gradient(135deg,#fffdf8,#f7fbff);
}
.device-radar-grid view,.overview-focus-item{
  border-radius:11px;
  background:rgba(255,255,255,.74);
}
.status-grid.secondary-grid,.charts-row,.bottom-stats-row,.device-status-row{
  display:grid;
}
.device-status-row{display:flex}
.anomaly-section{display:block}
.alert-settings-section{display:none}
.overview-secondary-card{
  border-radius:13px;
  background:rgba(255,255,255,.74);
  backdrop-filter:blur(7px);
}
.guardian-hero{
  border-radius:16px;
  background:
    radial-gradient(circle at 88% 10%, rgba(126,214,196,.24), transparent 26%),
    linear-gradient(135deg,#f7fbff,#fff8ef);
}
.guardian-stat-card,.guardian-action-card,.guardian-guide,.guardian-list-section{
  border-radius:14px;
  background:rgba(255,255,255,.78);
  backdrop-filter:blur(7px);
}


.container{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue",sans-serif;}
.top-bar{height:auto;min-height:46px}
.logo-text{font-size:15.5px;font-weight:900;letter-spacing:0.2px}
.tab-bar{margin:5px 0 4px;padding-left:10px}
.tab-item{font-size:12.5px;border-radius:499.5px}
.mode-hero-switch{grid-template-columns:1fr;gap:9px}
.mode-hero-card{min-height:113px}
.mode-hero-title{font-size:19px;line-height:1.15}
.mode-hero-desc{font-size:12px;line-height:1.55;max-width:210px}
.mode-hero-badge{font-size:11px;padding:4.5px 9px;background:rgba(255,255,255,.28)}
.overview-focus-card,.care-message-card,.device-radar-card,.care-task-card{margin-left:10px;margin-right:10px}
.overview-focus-card{padding:17px 15px}
.overview-focus-title{font-size:31px;font-weight:900;line-height:1.08}
.overview-focus-eyebrow{font-size:12px;font-weight:800}
.overview-risk-tag{font-size:12px;padding:5px 10px}
.overview-focus-grid{gap:7px;margin-top:14px}
.overview-focus-item{padding:10px}
.overview-focus-label{font-size:11.5px}
.overview-focus-value{font-size:17px}
.overview-focus-sub{font-size:14px;font-weight:800;color:#233044}
.overview-trust-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:11px}
.overview-trust-tags text{padding:5px 9px;border-radius:499.5px;background:rgba(255,255,255,.72);color:#7b6170;font-size:11px;font-weight:700}
.overview-action-grid{padding:0 10px;margin-top:9px}
.overview-action-card{padding:13px;box-shadow:0 8px 17px rgba(15,23,42,.07)}
.overview-action-title{font-size:18px;font-weight:900}
.overview-action-desc{font-size:11.5px;margin-top:5px}
.overview-trend-strip{padding:0 10px;gap:8px}
.overview-trend-card{border-radius:14px;background:rgba(255,255,255,.76);border:0.5px solid rgba(255,255,255,.78);box-shadow:0 7px 16px rgba(15,23,42,.05)}
.overview-trend-label{font-size:11px}
.overview-trend-value{font-size:21px;font-weight:900}
.care-message-title,.section-title{font-size:15px;font-weight:900}
.care-message-text{font-size:15.5px;line-height:1.65}
.care-message-actions{gap:6px}
.care-message-actions button{height:39px;line-height:39px;font-size:11.5px}
.device-radar-grid{grid-template-columns:1fr;gap:7px}
.device-radar-grid view{padding:10px 11px;display:flex;align-items:center;justify-content:space-between}
.device-radar-grid text{font-size:12px}
.device-radar-value{margin-top:0!important;font-size:15px!important}
.care-task-item{padding:11px 0}
.care-task-title{font-size:14.5px;font-weight:900}
.care-task-desc{font-size:11.5px}
.care-task-check{font-size:11.5px;padding:4.5px 8px;border-radius:499.5px;background:#eef8f1;color:#26945f}


.tab-bar{display:none}
.care-mode-segment{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  margin:9px 10px 8px;
  padding:4px;
  border-radius:499.5px;
  background:rgba(255,255,255,.72);
  border:0.5px solid rgba(226,232,240,.72);
}
.care-mode-option{
  height:32px;
  line-height:32px;
  text-align:center;
  border-radius:499.5px;
  color:#607084;
  font-size:12.5px;
  font-weight:900;
}
.care-mode-option.active{
  background:#213044;
  color:#fff;
  box-shadow:0 6px 13px rgba(33,48,68,.18);
}
.safety-state-card{
  margin:0 10px 10px;
  padding:19px 15px 15px;
  border-radius:20px;
  color:#213044;
  border:0.5px solid rgba(255,255,255,.76);
  box-shadow:0 13px 29px rgba(15,23,42,.10);
}
.safety-state-card.safe{
  background:radial-gradient(circle at 88% 8%, rgba(91,214,154,.24), transparent 28%),linear-gradient(135deg,#f8fff9,#f4fbff);
}
.safety-state-card.attention{
  background:radial-gradient(circle at 88% 8%, rgba(255,190,96,.25), transparent 28%),linear-gradient(135deg,#fffaf0,#f5fbff);
}
.safety-state-card.urgent{
  background:radial-gradient(circle at 88% 8%, rgba(217,75,85,.18), transparent 28%),linear-gradient(135deg,#fff7f5,#fffaf8);
}
.safety-state-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.safety-eyebrow{display:block;font-size:12px;font-weight:900;color:#65748a}
.safety-title{display:block;margin-top:5px;font-size:38px;font-weight:950;letter-spacing:-1px;line-height:1}
.safety-desc{display:block;margin-top:9px;font-size:13.5px;line-height:1.65;color:#5f6f82;max-width:260px}
.safety-badge{flex-shrink:0;padding:5px 10px;border-radius:499.5px;font-size:11.5px;font-weight:900}
.safety-badge.safe{background:#e9f8ef;color:#248f5d}
.safety-badge.attention{background:#fff1d8;color:#b76b00}
.safety-badge.urgent{background:#FFE8EA;color:#D94B55}
.safety-core-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:15px}
.safety-core-grid>view{padding:11px;border-radius:13px;background:rgba(255,255,255,.72);border:0.5px solid rgba(255,255,255,.8)}
.safety-core-label{display:block;font-size:11px;color:#748195;font-weight:800}
.safety-core-value{display:block;margin-top:4px;font-size:15.5px;font-weight:950;color:#213044}
.safety-actions,.elder-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.safety-actions button,.elder-action-grid button{
  height:44px;
  line-height:44px;
  width:100%;
  margin:0;
  padding:0 6px;
  box-sizing:border-box;
  border-radius:499.5px;
  background:#213044;
  color:#fff;
  font-size:13.5px;
  font-weight:950;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.safety-actions button.light,.elder-action-grid button.light{background:#eef7fb;color:#326d88}
.elder-action-grid button.sos{background:#e5484d;color:#fff}
.safety-actions button::after,.elder-action-grid button::after{border:0}
.elder-simple-card{
  margin:0 10px 10px;
  padding:15px 13px;
  border-radius:18px;
  background:linear-gradient(135deg,#ffffff,#fff8f2);
  border:0.5px solid rgba(255,255,255,.78);
  box-shadow:0 9px 21px rgba(15,23,42,.07);
}
.elder-simple-title{display:block;font-size:17px;font-weight:950;color:#213044}
.elder-simple-desc{display:block;margin-top:4px;font-size:12px;line-height:1.6;color:#6a7788}
.elder-mode-entry{
  width:100%;
  height:44px;
  line-height:44px;
  margin:9px 0 0;
  border-radius:499.5px;
  background:#5A3B31;
  color:#fff;
  font-size:13.5px;
  font-weight:950;
  box-shadow:0 7px 14px rgba(90,59,49,.14);
}
.elder-mode-entry::after{border:0}
.elder-mode-entry.light{background:#FFF4EA!important;color:#5A3B31!important;box-shadow:none}
.sos-countdown-card,.notice-reliability-card{
  margin:0 10px 10px;
  padding:14px 13px;
  border-radius:17px;
  background:#fff;
  border:0.5px solid #F0DDD2;
  box-shadow:0 8px 17px rgba(140,84,58,.08);
}
.sos-countdown-card{
  background:linear-gradient(135deg,#fff7f5,#fffdf8);
}
.sos-countdown-title{display:block;font-size:17px;font-weight:950;color:#D94B55}
.sos-countdown-desc{display:block;margin-top:5px;font-size:12px;line-height:1.6;color:#8A746B}
.sos-countdown-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}
.sos-countdown-actions button{
  height:39px;
  line-height:39px;
  margin:0;
  border-radius:499.5px;
  background:#D94B55;
  color:#fff;
  font-size:12.5px;
  font-weight:950;
}
.sos-countdown-actions button.cancel{background:#FFF4EA;color:#5A3B31}
.sos-countdown-actions button::after{border:0}
.voice-countdown-mask{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(42,30,25,.18);
  backdrop-filter:blur(3px);
}
.voice-countdown-box{
  width:120px;
  height:120px;
  border-radius:24px;
  background:rgba(255,255,255,.94);
  border:0.5px solid #F0DDD2;
  box-shadow:0 12px 30px rgba(140,84,58,.18);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.voice-countdown-num{font-size:48px;font-weight:950;line-height:1;color:#D9826B}
.voice-countdown-text{margin-top:6px;font-size:14px;font-weight:900;color:#5A3B31}
.notice-reliability-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:9px;
  padding:9px 0;
  border-top:0.5px solid #F2E2D9;
  font-size:13px;
  font-weight:800;
  color:#3B2A25;
}
.notice-reliability-row:first-of-type{border-top:0}
.notice-state{
  flex-shrink:0;
  padding:4px 8px;
  border-radius:499.5px;
  font-size:11px;
  font-weight:950;
}
.notice-state.ok{background:#EAF8EF;color:#24A26B}
.notice-state.warn{background:#FFF4DC;color:#B87825}
.notice-state.running{background:#EAF2FF;color:#3B7BC8}
.notice-state.pending{background:#FFF1EA;color:#C97854}
.notice-state.muted{background:#F2F5F8;color:#667386}
.notice-reliability-tip{display:block;margin-top:5px;font-size:11.5px;line-height:1.6;color:#8A746B}
.notice-retry-btn{
  width:100%;
  height:38px;
  line-height:38px;
  margin:9px 0 0;
  border-radius:499.5px;
  background:#FFF4EA;
  color:#5A3B31;
  font-size:12.5px;
  font-weight:950;
}
.notice-retry-btn::after{border:0}
.mode-hero-switch,.overview-action-grid{display:none}
.overview-trend-strip{grid-template-columns:1fr 1fr}

.health-detail-card{
  margin:8px 10px 0;
  padding:12px;
  border-radius:16px;
  background:rgba(255,255,255,.9);
  border:0.5px solid #F0DDD2;
  box-shadow:0 8px 17px rgba(140,84,58,.08);
}
.health-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.health-detail-grid>view{padding:10px;border-radius:12px;background:#FFF8F1;border:0.5px solid #F0DDD2}
.health-detail-grid text{display:block}
.health-detail-grid text:first-child{font-size:11px;font-weight:900;color:#8A746B}
.health-detail-grid text:nth-child(2){margin-top:4px;font-size:17px;font-weight:950;color:#3B2A25}
.health-detail-grid text:last-child{margin-top:3px;font-size:11px;font-weight:800;color:#C97854}


.h5-.h5-page{
  background:#F7FAFC;
}
.top-bar{background:rgba(255,255,255,.94)!important;border-bottom:0.5px solid #E7EDF4}
.logo-icon{background:#24A26B}
.safety-state-card.safe,.safety-state-card.attention,.safety-state-card.urgent,.elder-simple-card,.care-message-card,.device-radar-card,.care-task-card,.guardian-hero,.guardian-stat-card,.guardian-action-card,.guardian-guide,.guardian-list-section,.overview-trend-card,.overview-secondary-card{
  background:#fff;
  border:0.5px solid #E7EDF4;
  box-shadow:0 6px 15px rgba(15,23,42,.06);
}
.safety-title{color:#172033}
.safety-state-card.safe .safety-badge{background:#EAF8EF;color:#24A26B}
.safety-state-card.attention .safety-badge{background:#FFF4DC;color:#B86B00}
.safety-state-card.urgent .safety-badge{background:#FFE8EA;color:#D94B55}
.safety-actions button,.elder-action-grid button{background:#24A26B}
.elder-action-grid button.sos{background:#D93D42}
.safety-actions button.light,.elder-action-grid button.light{background:#F1F6FA;color:#172033}
.care-mode-option.active{background:#172033}
.care-message-actions button{background:#24A26B}
.care-message-actions button.ghost{background:#FFF4DC;color:#B86B00}
.care-message-actions button.light{background:#F1F6FA;color:#172033}
.device-radar-value,.care-task-title,.overview-trend-value,.guardian-stat-value{color:#172033!important}


.family-safe-card{
  margin:0 10px 10px;
  padding:15px;
  border-radius:19px;
  background:#fff;
  border:0.5px solid #E7EDF4;
  box-shadow:0 6px 15px rgba(15,23,42,.06);
}
.family-safe-head{display:flex;align-items:flex-start;justify-content:space-between;gap:9px}
.family-safe-kicker{display:block;font-size:11px;font-weight:900;color:#667386}
.family-safe-title{display:block;margin-top:4px;font-size:18px;font-weight:950;color:#172033}
.family-safe-live{padding:4.5px 9px;border-radius:499.5px;background:#EAF8EF;color:#24A26B;font-size:11px;font-weight:900}
.family-safe-map{
  position:relative;
  height:115px;
  margin-top:12px;
  border-radius:16px;
  overflow:hidden;
  background:
    linear-gradient(135deg,rgba(36,162,107,.10),rgba(91,143,220,.08)),
    repeating-linear-gradient(45deg,rgba(231,237,244,.75) 0,rgba(231,237,244,.75) 1px,transparent 1px,transparent 14px);
}
.family-safe-map::after{
  content:'';
  position:absolute;
  left:18%;
  right:18%;
  top:50%;
  border-top:3px dashed rgba(36,162,107,.34);
  transform:rotate(-11deg);
}
.family-home-pin,.family-person-pin{
  position:absolute;
  width:38px;
  height:38px;
  line-height:38px;
  text-align:center;
  border-radius:14px;
  color:#fff;
  font-size:14px;
  font-weight:950;
  z-index:2;
  box-shadow:0 7px 14px rgba(15,23,42,.12);
}
.family-home-pin{left:19px;bottom:19px;background:#172033}
.family-person-pin{right:21px;top:19px;background:#24A26B}
.family-route-dot{position:absolute;width:10px;height:10px;border-radius:50%;background:#24A26B;z-index:2}
.family-route-dot.one{left:38%;top:48%}
.family-route-dot.two{left:58%;top:40%}
.family-safe-row{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:8px}
.family-safe-row>view{padding:10px;border-radius:13px;background:#F7FAFC}
.family-safe-label{display:block;font-size:11px;color:#667386;font-weight:800}
.family-safe-value{display:block;margin-top:4px;font-size:14.5px;color:#172033;font-weight:950}
.family-safe-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}
.family-safe-actions button{height:39px;line-height:39px;border-radius:499.5px;background:#172033;color:#fff;font-size:12.5px;font-weight:950}
.family-safe-actions button.light{background:#F1F6FA;color:#172033}
.family-safe-actions button::after{border:0}


.family-safe-actions,.safety-actions,.elder-action-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.family-safe-actions button,.safety-actions button,.elder-action-grid button{
  width:100%;
  margin:0;
  padding:0 8px;
}
.family-safe-actions button.light,.safety-actions button.light,.elder-action-grid button.light{
  background:#F1F6FA!important;
  color:#172033!important;
}
.care-message-actions{grid-template-columns:1fr 1fr}
.care-message-actions button.wide{grid-column:1 / -1}
.care-message-actions button{
  width:100%;
  margin:0;
  padding:0 9px;
  text-align:center;
}
.care-message-actions{
  gap:7px;
}
.care-message-actions button{
  height:38px;
  line-height:38px;
  font-size:12px;
  border-radius:499.5px;
}
.care-message-actions button.wide{
  height:41px;
  line-height:41px;
}
.care-message-actions button.ghost{
  background:#FFF4DC!important;
  color:#B86B00!important;
}
.care-message-actions button.light{
  background:#F1F6FA!important;
  color:#172033!important;
}


.safety-badge,.family-safe-live,.guardian-status,.guardian-mini-tag,.trial-banner-tag,.trial-status-badge,.care-task-check,.overview-risk-tag,.anomaly-tag,.aa-normal-tag,.mcp-badge,.mode-hero-badge,.guardian-badge,.notice-state{
  min-height:22px;
  padding:4px 9px;
  border-radius:499.5px;
  box-sizing:border-box;
  font-size:11px;
  line-height:1.2;
  font-weight:900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.safety-badge.safe,.guardian-status.ok,.trial-status-badge.member,.overview-risk-tag.safe,.care-task-check{background:#EAF8EF;color:#24A26B}
.safety-badge.attention,.guardian-status.warn,.overview-risk-tag.risk,.anomaly-tag,.aa-normal-tag.orange{background:#FFF4DC;color:#B86B00}
.safety-badge.urgent{background:#FFE8EA;color:#D94B55}
.guardian-mini-tag,.trial-banner-tag,.mode-hero-badge,.guardian-badge{background:#F2F5F8;color:#667386}
.guardian-status{flex-shrink:0;max-width:90px}
.guardian-tag-row{align-items:center}


.h5-.h5-page{
  background:
    radial-gradient(circle at 14% 4%, rgba(239,154,130,.18), transparent 30%),
    radial-gradient(circle at 88% 2%, rgba(255,213,154,.22), transparent 28%),
    linear-gradient(180deg,#FFF8F1 0%,#FFFDF8 52%,#F8F3EF 100%);
}
.top-bar{background:rgba(255,250,246,.94)!important;border-bottom:0.5px solid #F0DDD2}
.logo-icon{background:linear-gradient(135deg,#E39176,#D9826B)!important}
.safety-state-card.safe,.safety-state-card.attention,.safety-state-card.urgent,.family-safe-card,.elder-simple-card,.sos-countdown-card,.notice-reliability-card,.care-message-card,.device-radar-card,.care-task-card,.overview-trend-card,.overview-secondary-card{
  background:rgba(255,255,255,.9);
  border-color:#F0DDD2;
  box-shadow:0 8px 17px rgba(140,84,58,.08);
}
.safety-title,.family-safe-title,.elder-simple-title,.care-message-text,.device-radar-value,.care-task-title,.overview-trend-value{color:#3B2A25!important}
.safety-eyebrow,.safety-desc,.family-safe-kicker,.family-safe-label,.elder-simple-desc,.overview-trend-label{color:#8A746B}
.safety-actions button,.elder-action-grid button,.family-safe-actions button,.care-message-actions button{background:linear-gradient(135deg,#E39176,#D9826B)!important}
.elder-action-grid button.sos{background:#D94B55!important}
.safety-actions button.light,.elder-action-grid button.light,.family-safe-actions button.light,.care-message-actions button.light{background:#FFF4EA!important;color:#5A3B31!important}
.care-message-actions button.ghost{background:#FFF5DF!important;color:#B87825!important}
.safety-badge.safe,.family-safe-live,.care-task-check{background:#FFF1EA!important;color:#C97854!important}
.safety-badge.attention{background:#FFF5DF!important;color:#B87825!important}
.safety-badge.urgent{background:#FFE8EA!important;color:#D94B55!important}
.family-person-pin,.family-route-dot{background:#D9826B}
.family-home-pin{background:#5A3B31}
.family-safe-map{background:linear-gradient(135deg,rgba(217,130,107,.1),rgba(255,213,154,.14)),repeating-linear-gradient(45deg,rgba(240,221,210,.78) 0,rgba(240,221,210,.78) 1px,transparent 1px,transparent 14px)}

.home-footer{
  margin-top: 5px;
  padding:17px 12px calc(85px + env(safe-area-inset-bottom));
  text-align:center;
}
.home-footer text{
  display:block;
  font-size:11px;
  line-height:1.8;
  color:#B6A59D;
}
.home-footer-links{
  display:flex;
  justify-content:center;
  gap:5px;
  margin-top:2px;
}
.home-footer-links text{
  display:inline;
  color:#4A90D9;
  font-size:11px;
}

.home-soft-tip{
  margin:0 10px 10px;
  padding:11px 12px;
  border-radius:14px;
  background:rgba(255,255,255,.62);
  border:0.5px solid #F0DDD2;
  box-shadow:0 5px 12px rgba(140,84,58,.04);
}
.home-soft-tip-title{
  display:block;
  font-size:12.5px;
  font-weight:900;
  color:#3B2A25;
}
.home-soft-tip-desc{
  display:block;
  margin-top:3px;
  font-size:11.5px;
  line-height:1.6;
  color:#8A746B;
}
.safety-state-card.safe{background:linear-gradient(135deg,#fff,#F5FFF8)}
.safety-state-card.attention{background:linear-gradient(135deg,#fff,#FFF7EA)}
.safety-state-card.urgent{background:linear-gradient(135deg,#fff,#FFF1F1)}
.safety-badge.attention{background:#FFF5DF!important;color:#B87825!important}
.guardian-person-card{margin-bottom:9px}

.safe-home-.h5-.h5-page{min-height:100vh;background:linear-gradient(180deg,#fff7ef 0%,#fffaf4 58%,#fff 100%)}
.safe-home-hero,.safe-home-sos,.safe-home-note{margin:12px;border-radius:16px;background:rgba(255,255,255,.92);border:0.5px solid rgba(217,130,107,.18);box-shadow:0 7px 18px rgba(92,56,42,.10)}
.safe-home-hero{padding:17px 15px}
.safe-home-kicker,.safe-home-desc,.safe-home-status text:first-child,.safe-home-note text:last-child{color:#8f7d73}
.safe-home-kicker{display:block;font-size:13px;font-weight:700;color:#d9826b}
.safe-home-title{display:block;margin-top:7px;font-size:32px;line-height:1.12;font-weight:900;color:#3d2a25;text-align:center}
.safe-smile-img{display:block;width:84px;height:84px;margin:12px auto 0}
.safe-question-img{display:block;width:84px;height:84px;margin:12px auto 0}
.safe-home-desc{display:block;margin-top:7px;font-size:15px;line-height:1.7}
.safe-home-status{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:13px}
.safe-home-status view{padding:11px;border-radius:12px;background:#fff8f1}
.safe-home-status text{display:block}
.safe-home-status text:first-child{font-size:12px}
.safe-home-status text:last-child{margin-top:4px;font-size:16px;font-weight:800;color:#4d342d}
.safe-home-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin:12px}
.safe-home-actions.two{margin:12px 0 0}
.safe-home-actions button{height:46px;border:0;border-radius:14px;font-size:16px;font-weight:800;color:#fff;box-shadow:0 6px 13px rgba(217,130,107,.22)}
.safe-home-actions .wide{grid-column:1/-1}
.safe-primary{background:#2faa72}
.safe-voice{background:#f2c77a!important;color:#5b392f!important}
.safe-danger,.danger{background:#dd4352!important}
.safe-light,.light{background:#fff1e5!important;color:#5c4037!important;box-shadow:none!important}
.home-setup-card{margin:12px;padding:14px;border-radius:16px;background:linear-gradient(135deg,#fffdf9,#f4faf6);border:0.5px solid rgba(221,230,235,.9);box-shadow:0 9px 23px rgba(48,38,32,.08)}
.home-setup-card.complete{background:linear-gradient(135deg,#f2fff7,#fffdf9)}
.home-setup-head{display:flex;align-items:flex-start;justify-content:space-between;gap:9px}
.home-setup-kicker{display:block;font-size:12px;font-weight:900;color:#2f8a68}
.home-setup-title{display:block;margin-top:4px;font-size:17px;font-weight:900;color:#3d2a25}
.home-setup-count{padding:5px 9px;border-radius:499.5px;background:#fff1e5;color:#8e4537;font-size:12px;font-weight:900}
.home-setup-progress{height:5px;margin:11px 0 7px;border-radius:499.5px;background:#f0e2d8;overflow:hidden}
.home-setup-fill{height:100%;border-radius:499.5px;background:#2f8a68}
.home-setup-step{display:flex;align-items:center;gap:8px;min-height:42px;padding:7px 0;border-top:0.5px solid rgba(221,230,235,.72)}
.home-setup-step:first-of-type{border-top:0}
.home-setup-step view{flex:1;min-width:0}
.home-setup-step view text{display:block}
.home-setup-step view text:first-child{font-size:14px;font-weight:900;color:#3d2a25}
.home-setup-step view text:last-child{margin-top:2px;font-size:11px;color:#8f7d73}
.home-setup-step>text:last-child{font-size:12px;font-weight:900;color:#d9826b}
.home-setup-num{width:21px;height:21px;border-radius:50%;background:#fff1e5;color:#8e4537;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:900}
.home-setup-num.done{background:#2f8a68;color:#fff}
.safe-risk-panel,.safe-home-flow{margin:12px;padding:13px 14px;border-radius:16px;background:rgba(255,255,255,.92);border:0.5px solid rgba(217,130,107,.18);box-shadow:0 7px 18px rgba(92,56,42,.08)}
.safe-risk-head{display:flex;align-items:center;justify-content:space-between;font-size:15px;font-weight:900;color:#3d2a25}
.safe-risk-head .safe{color:#1f9a65}.safe-risk-head .warn{color:#c97854}
.safe-risk-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:10px}
.safe-risk-grid view{padding:9px;border-radius:11px;background:#fff8f1}
.safe-risk-grid text{display:block;text-align:center}
.safe-risk-grid text:first-child{font-size:11px;color:#8f7d73}
.safe-risk-grid text:last-child{margin-top:4px;font-size:14px;font-weight:900;color:#3d2a25}
.safe-home-flow{display:grid;grid-template-columns:1fr;gap:6px}
.safe-home-flow view{display:flex;align-items:center;gap:8px}
.safe-home-flow text:first-child{width:21px;height:21px;border-radius:50%;background:#fff1e5;color:#8e4537;text-align:center;line-height:21px;font-size:12px;font-weight:900}
.safe-home-flow text:last-child{font-size:14px;color:#3d2a25;font-weight:800}
.safe-home-sos{padding:17px;text-align:center}
.safe-home-sos-num{display:block;font-size:48px;font-weight:900;color:#dd4352}
.safe-home-sos-tip{display:block;margin-top:4px;font-size:15px;color:#6f5a51}
.safe-home-note{padding:13px 14px}
.safe-home-note text{display:block}
.safe-home-note text:first-child{font-size:15px;font-weight:800;color:#3d2a25}
.safe-home-note text:last-child{margin-top:5px;font-size:13px;line-height:1.65}
.safe-home-hero.elder-original{padding:20px 17px;margin-top:13px}
.safe-home-hero.elder-original .safe-home-kicker{font-size:14px;font-weight:900}
.safe-home-hero.elder-original .safe-home-title{font-size:36px;margin-top:0}
.safe-home-hero.elder-original .safe-home-desc{font-size:15.5px;font-weight:800}
.elder-original-actions{display:block;margin:12px}
.elder-original-actions button{width:100%;height:53px;margin:0 0 10px;border-radius:15px;font-size:17px}
.elder-original-actions .safe-primary{background:#e28a72!important}
.elder-original-actions .safe-voice{background:#f4c87c!important;color:#56382e!important}
.elder-original-actions .safe-danger{background:#dc4353!important}
.elder-original-actions .safe-contact{background:#5b392f!important;color:#fff!important}
.elder-original-actions .safe-light{height:46px;background:#fff3e8!important;color:#5c4037!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);
}


.container {
  min-height: 100vh;
  
}


.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; }
.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; }


.membership-hero { padding: 16px 10px 12px; text-align: center; }
.membership-card-premium {
  background: transparent; color: #4B342C;
  border-radius: 18px; padding: 0; display: block;
  width: 100%;
  box-sizing: border-box;
  position: relative; overflow: hidden;
}
.membership-card-art{display:block;width:100%;border-radius:18px}
.membership-card-premium::after {
  display:none;
}
.mcp-badge { font-size: 10px; opacity: .8; display: block; margin-bottom: 5px; }
.mcp-price { font-size: 28px; font-weight: 700; display: block; }
.mcp-unit { font-size: 12px; font-weight: 400; }
.mcp-period { font-size: 11px; opacity: .7; display: block; margin-top: 1px; }
.mcp-btn {
  margin-top: 12px; padding: 8px 0; border-radius: 8px; border: none;
  background: var(--primary); color: #fff; font-size: 12.5px; font-weight: 600;
  width: 100%;
}
.mcp-features { margin-top: 10px; font-size: 10.5px; opacity: .85; }
.mf-li { display: block; padding: 2px 0; }
.membership-page-title { font-size: 17px; font-weight: 700; margin-top: 16px; display: block; }
.membership-page-desc { font-size: 12px; color: var(--text-secondary); margin-top: 3px; display: block; }


.pricing-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 10px 14px;
}
.price-card {
  background: var(--card-bg); border-radius: 9px; padding: 12px 10px;
  text-align: left; border: 1px solid transparent;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  display: flex; align-items: center; gap: 10px;
}
.price-card.featured { border-color: var(--primary); transform: none; }
.pc-name { font-size: 11px; color: var(--text-secondary); }
.pc-primary { color: var(--primary); }
.pc-tier { font-size: 12px; font-weight: 600; }
.pc-amount { font-size: 20px; font-weight: 700; }
.pc-sm { font-size: 12px; font-weight: 400; }
.pc-unit { font-size: 11px; color: var(--text-secondary); }
.price-features { display: none; } 
.price-btn {
  margin: 0; padding: 7px 14px; border-radius: 7px;
  border: none; font-size: 11.5px; font-weight: 600;
  white-space: nowrap; flex-shrink: 0;
}
.price-btn.primary { background: var(--primary); color: #fff; }
.price-btn.outline {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-secondary);
}


.faq-section { padding: 0 10px 14px; }
.faq-title { font-size: 13px; font-weight: 600; margin-bottom: 7px; display: block; }
.faq-item {
  background: var(--card-bg); border-radius: 8px;
  margin-bottom: 5px; box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  overflow: hidden;
}
.faq-q {
  padding: 11px; font-size: 12.5px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-arrow { font-size: 10px; color: var(--text-muted); transition: transform .3s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  padding: 0 11px 10px; font-size: 11.5px; color: var(--text-secondary);
  line-height: 1.65; display: block;
}


.timeout-picker-mask {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.45);
  z-index: 999;
}
.timeout-picker-popup {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-radius: 10px 10px 0 0;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}
.picker-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px;
  border-bottom: 0.5px solid #f0f0f0;
}
.picker-title { font-size: 14.5px; font-weight: 600; }
.picker-close { font-size: 16.5px; color: #999; padding: 3px; }
.picker-scroll { max-height: 250px; }
.picker-grid {
  display: flex; flex-wrap: wrap;
  padding: 8px; gap: 6px;
}
.picker-option {
  width: calc(33.33% - 5px); padding: 8px 0;
  text-align: center; border-radius: 5px;
  background: #f5f5f5; font-size: 12px;
  color: #333; box-sizing: border-box;
}
.picker-option.selected {
  background: rgba(74,144,217,.1); color: #4A90D9;
  font-weight: 600; border: 1px solid #4A90D9;
}


@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}


.vip-status-bar{display:inline-flex;align-items:center;gap:4px;background:linear-gradient(135deg,#FFF3E0,#FFE0B2);border-radius:12px;padding:4px 10px;margin:10px 12px 0}
.vip-status-icon{font-size:12px}.vip-status-text{font-size:11px;color:#E65100;font-weight:600}
.hero-card{margin:10px 12px 0;border-radius:14px;overflow:hidden;position:relative;box-shadow:0 4px 16px rgba(74,144,217,.2)}
.hero-bg{position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(145deg,#1a1a2e,#16213e,#0f3460)}
.hero-bg::after{content:'';position:absolute;top:-40px;right:-20px;width:130px;height:130px;border-radius:50%;background:radial-gradient(circle,rgba(74,144,217,.35) 0%,transparent 70%);pointer-events:none}
.hero-content{position:relative;z-index:1;padding:18px 16px 16px;color:#fff}
.hero-top{display:flex;align-items:center;gap:6px;margin-bottom:8px}.hero-icon{font-size:22px}
.hero-badge-wrap{background:#FF9500;border-radius:4px;padding:2px 7px}.hero-badge{font-size:10px;font-weight:700;color:#fff}
.hero-name{font-size:18px;font-weight:700;display:block;margin-bottom:2px}
.hero-desc{font-size:12px;opacity:.8;display:block;margin-bottom:10px}
.hero-price-row{display:flex;align-items:baseline;gap:2px;margin-bottom:14px}
.hero-price{font-size:36px;font-weight:800;line-height:1}.hero-period{font-size:13px;opacity:.8}
.hero-original{font-size:14px;text-decoration:line-through;opacity:.5;margin-left:6px}
.hero-features{display:flex;flex-wrap:wrap;gap:6px 12px;margin-bottom:16px}
.hero-feat{display:flex;align-items:center;gap:5px;min-width:45%}
.feat-dot{width:4px;height:4px;border-radius:50%;background:#4A90D9;flex-shrink:0}
.feat-text{font-size:11.5px;opacity:.9}
.hero-btn{width:100%;padding:12px 0;border-radius:10px;background:linear-gradient(135deg,#4A90D9,#357ABD);color:#fff;font-size:15px;font-weight:700;text-align:center;box-sizing:border-box;letter-spacing:1px}
.hero-btn-active{opacity:.85;transform:scale(.97)}
.plans-section{padding:18px 12px 0}.section-title-mem{font-size:16px;font-weight:700;color:var(--text-primary);display:block;margin-bottom:10px}
.plans-list{display:flex;flex-direction:column;gap:8px}
.plan-card{background:var(--card-bg);border-radius:12px;padding:14px 12px;border:1.5px solid transparent;box-shadow:0 1px 8px rgba(0,0,0,.06);position:relative;overflow:hidden}
.plan-card-active{border-color:#4A90D9;background:#E8F1FC}
.plan-rec{position:absolute;top:0;right:12px;background:#FF9500;color:#fff;font-size:10px;font-weight:700;padding:3px 8px;border-radius:0 0 6px 6px}
.plan-top{display:flex;align-items:center;gap:8px;margin-bottom:8px}.plan-icon{font-size:22px}.plan-info{flex:1}
.plan-name{font-size:15px;font-weight:700;color:var(--text-primary);display:block}
.plan-desc{font-size:11.5px;color:var(--text-secondary);display:block;margin-top:1px}
.plan-price-row{display:flex;align-items:baseline;gap:2px;margin-bottom:10px}
.plan-price{font-size:26px;font-weight:800;color:var(--text-primary);line-height:1.1}
.plan-price-unit{font-size:12px;color:var(--text-secondary)}
.plan-original{font-size:13px;color:#AEAEB2;text-decoration:line-through;margin-left:6px}
.plan-features{margin-bottom:10px;padding-top:8px;border-top:0.5px solid #E5E5EA}
.plan-feat{display:flex;align-items:center;gap:5px;padding:3.5px 0}
.plan-feat-check{font-size:11px;color:#34C759;font-weight:700;flex-shrink:0}
.plan-feat-text{font-size:12px;color:var(--text-secondary)}
.plan-check{display:flex;align-items:center;gap:4px;margin-bottom:8px}
.plan-check-icon{width:16px;height:16px;border-radius:50%;background:#4A90D9;color:#fff;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center}
.plan-check-text{font-size:12px;color:#4A90D9;font-weight:600}
.plan-action-btn{width:100%;padding:9px 0;border-radius:8px;font-size:13px;font-weight:600;text-align:center;background:#E8F1FC;color:#4A90D9;box-sizing:border-box}
.plan-action-btn-active{background:#4A90D9;color:#fff}.plan-action-btn-hover{opacity:.85;transform:scale(.98)}

.faq-section{padding:18px 12px 0}
.faq-item{background:var(--card-bg);border-radius:10px;margin-bottom:6px;box-shadow:0 1px 8px rgba(0,0,0,.06);overflow:hidden}
.faq-q{padding:14px 12px;display:flex;justify-content:space-between;align-items:center}
.faq-q-text{font-size:13.5px;font-weight:600;color:var(--text-primary);flex:1}
.faq-arrow{font-size:16px;color:#AEAEB2;transition:transform .3s;transform:rotate(90deg)}.faq-arrow-open{transform:rotate(-90deg)}
.faq-a{padding:0 12px 12px}.faq-a-text{font-size:12.5px;color:var(--text-secondary);line-height:1.7}
.footer-safe{padding:20px 16px 10px;text-align:center}.footer-safe-text{font-size:11px;color:#AEAEB2}


.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;
}

.mode-hero-switch{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin:10px 10px 6px;
}

.mode-hero-card{
  position:relative;
  min-height:122px;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 8px 17px rgba(31,41,55,.09);
  transform:translateY(0);
  transition:transform .18s ease,box-shadow .18s ease;
}

.mode-hero-card.active{
  box-shadow:0 10px 19px rgba(31,41,55,.13);
  transform:translateY(-2px);
}

.mode-hero-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

.mode-hero-overlay{
  position:absolute;
  inset:0;
}

.mode-hero-overlay.love{
  background:linear-gradient(180deg,rgba(126,31,68,.04),rgba(142,24,69,.14) 38%,rgba(103,17,56,.48));
}

.mode-hero-overlay.safe{
  background:linear-gradient(180deg,rgba(18,95,160,.04),rgba(19,108,183,.14) 38%,rgba(14,74,129,.5));
}

.mode-hero-copy{
  position:absolute;
  left:9px;
  right:9px;
  bottom:10px;
  z-index:2;
}

.mode-hero-title{
  display:block;
  font-size:15px;
  font-weight:800;
  color:#fff;
  text-shadow:0 2px 6px rgba(0,0,0,.18);
}

.mode-hero-desc{
  display:block;
  margin-top:4px;
  font-size:10.5px;
  line-height:1.55;
  color:rgba(255,255,255,.9);
}

.mode-hero-badge{
  position:absolute;
  top:8px;
  right:8px;
  z-index:2;
  padding:4px 8px;
  border-radius:499.5px;
  background:rgba(255,255,255,.2);
  backdrop-filter:blur(5px);
  color:#fff;
  font-size:10.5px;
  font-weight:700;
  border:0.5px solid rgba(255,255,255,.22);
}

.family-risk-hero{
  margin:8px 10px 0;
  padding:12px;
  border-radius:11px;
  background:#FFFFFF;
  border:0.5px solid #F1E6DE;
  box-shadow:0 6px 17px rgba(90,59,49,.08);
  position:relative;
}

.family-risk-hero.warn{ background:#FFF8E8; border-color:#F6D79A; }
.family-risk-hero.alert{ background:#FFF1F1; border-color:#F0B3B3; }

.family-risk-kicker{
  display:block;
  font-size:11px;
  color:#9B928E;
  font-weight:800;
}

.family-risk-title{
  display:flex;
  margin-top:4px;
  font-size:21px;
  line-height:1.18;
  font-weight:900;
  color:#3F2A24;
}

.family-risk-desc{
  display:block;
  margin-top:6px;
  padding-right:66px;
  font-size:12px;
  line-height:1.55;
  color:#6B5A52;
}

.family-risk-badge{
  position:absolute;
  top:12px;
  right:12px;
  padding:5px 9px;
  border-radius:499.5px;
  background:#EAF8EF;
  color:#2F8A4E;
  font-size:11px;
  font-weight:900;
}

.family-risk-hero.warn .family-risk-badge{ background:#FFF0C2; color:#9A6700; }
.family-risk-hero.alert .family-risk-badge{ background:#FFE1E1; color:#B42318; }

.family-risk-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  margin-top:10px;
}

.family-risk-actions button{
  height:38px;
  border:0;
  border-radius:9px;
  background:#D9826B;
  color:#fff;
  font-size:13px;
  font-weight:900;
}

.family-risk-actions button.light{
  background:#FFF4EA;
  color:#5A3B31;
}

.guardian-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:6px;
  padding:8px 10px 0;
}

.setup-card{
  margin:8px 10px 0;
  padding:11px;
  border-radius:11px;
  background:#fff;
  border:0.5px solid #E7EDF4;
  box-shadow:0 6px 15px rgba(15,23,42,.06);
}

.setup-row{
  min-height:39px;
  display:grid;
  grid-template-columns:21px 1fr auto;
  align-items:center;
  gap:7px;
  padding:5px 0;
  border-top:0.5px solid #F0F3F7;
  font-size:12.5px;
  color:#172033;
  font-weight:800;
}

.setup-progress{height:5px;border-radius:499.5px;background:#F1E4DA;overflow:hidden;margin:1px 0 5px;}
.setup-progress-fill{height:5px;border-radius:499.5px;background:#24A26B;}
.setup-row text:last-child{color:#D9826B;font-size:11.5px;font-weight:900}
.setup-num{width:18px;height:18px;line-height:18px;text-align:center;border-radius:499.5px;background:#D9826B;color:#fff;font-size:10.5px;font-weight:900}
.setup-num.done{background:#24A26B}

.auto-safe-card{margin:8px 10px 0;padding:11px;border-radius:11px;background:#fff;border:0.5px solid #E7EDF4;box-shadow:0 6px 15px rgba(15,23,42,.06);}
.auto-safe-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;}
.auto-safe-grid view{min-height:43px;border-radius:9px;background:#FFF8F2;border:0.5px solid #F4E3D9;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:0 4px;}
.auto-safe-grid text:first-child{font-size:11px;font-weight:900;color:#172033;}
.auto-safe-grid text:last-child{margin-top:3px;font-size:10.5px;font-weight:800;color:#D9826B;}
.auto-safe-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:9px;}
.auto-safe-actions button{height:37px;border:0;border-radius:9px;background:#D9826B;color:#fff;font-size:12.5px;font-weight:900;}
.auto-safe-actions button.light{background:#FFF4EA;color:#5A3B31;}

.duty-board-card{margin:8px 10px 0;padding:11px;border-radius:11px;background:#fff;border:0.5px solid #E7EDF4;box-shadow:0 6px 15px rgba(15,23,42,.06);}
.duty-board-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;}
.duty-tile{min-height:46px;border-radius:9px;background:#FFF8F2;border:0.5px solid #F4E3D9;display:flex;flex-direction:column;align-items:center;justify-content:center;}
.duty-tile.warn{background:#FFF8E8;border-color:#F6D79A;}
.duty-tile.alert{background:#FFF1F1;border-color:#F0B3B3;}
.duty-tile.ok{background:#EAF8F0;border-color:#BFE7CF;}
.duty-tile text:first-child{font-size:17px;font-weight:900;color:#172033;}
.duty-tile text:last-child{margin-top:3px;font-size:10.5px;font-weight:900;color:#6B5A52;}

.risk-flow-card{margin:8px 10px 0;padding:11px;border-radius:11px;background:#fff;border:0.5px solid #E7EDF4;box-shadow:0 6px 15px rgba(15,23,42,.06);}
.risk-flow-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;}
.risk-flow-step{min-height:41px;border-radius:9px;background:#FFF8F2;border:0.5px solid #F4E3D9;display:flex;align-items:center;gap:6px;padding:0 9px;font-size:12.5px;font-weight:900;color:#172033;}
.risk-flow-step text:first-child{width:18px;height:18px;line-height:18px;text-align:center;border-radius:499.5px;background:#D9826B;color:#fff;font-size:10.5px;}
.risk-flow-step.done{background:#EAF8F0;border-color:#BFE7CF;color:#168856;}

.guardian-stat-card{
  padding:10px 8px;
  border-radius:9px;
  background:#FFFFFF;
  box-shadow:0 1px 4px rgba(0,0,0,.04);
  text-align:center;
}

.guardian-stat-card.warn{ background:#FFF8E8; }
.guardian-stat-card.alert{ background:#FFF0F0; }

.guardian-stat-value{
  display:block;
  font-size:18px;
  font-weight:800;
  color:#1D1D1F;
}

.guardian-stat-label{
  display:block;
  margin-top:4px;
  font-size:11px;
  color:#6B7280;
}

.guardian-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  padding:8px 10px 0;
}

.guardian-action-card{
  padding:12px 10px;
  border-radius:9px;
  background:#FFFFFF;
  box-shadow:0 1px 4px rgba(0,0,0,.04);
}

.guardian-action-title{
  display:block;
  font-size:13.5px;
  font-weight:700;
  color:#1D1D1F;
}

.guardian-action-desc{
  display:block;
  margin-top:4px;
  font-size:11px;
  line-height:1.5;
  color:#86868B;
}

.guardian-guide{
  margin:8px 10px 0;
  padding:11px 10px;
  border-radius:10px;
  background:#FFFFFF;
  box-shadow:0 1px 5px rgba(0,0,0,.04);
}

.guardian-guide-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.guardian-guide-item{
  display:flex;
  align-items:flex-start;
  gap:7px;
}

.guardian-guide-dot{
  width:20px;
  height:20px;
  line-height:20px;
  text-align:center;
  border-radius:50%;
  background:#EEF3FA;
  color:#4A90D9;
  font-size:11px;
  font-weight:700;
  flex-shrink:0;
}

.guardian-guide-dot.done{
  background:#E8F8ED;
  color:#34C759;
}

.guardian-guide-copy{
  min-width:0;
  flex:1;
}

.guardian-guide-title{
  display:block;
  font-size:12.5px;
  font-weight:700;
  color:#1D1D1F;
}

.guardian-guide-desc{
  display:block;
  margin-top:3px;
  font-size:11px;
  line-height:1.6;
  color:#6B7280;
}

.guardian-list-section{
  margin:8px 10px 12px;
  padding:11px 10px;
  border-radius:10px;
  background:#FFFFFF;
  box-shadow:0 1px 5px rgba(0,0,0,.04);
}

.guardian-person-card{
  padding:9px 0;
  border-top:0.5px solid #EEF2F6;
}

.guardian-person-card:first-child{
  border-top:none;
  padding-top:0;
}

.guardian-person-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}

.guardian-person-head{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  flex:1;
}

.guardian-avatar{
  width:38px;
  height:38px;
  border-radius:50%;
  background:#EEF3FA;
  flex-shrink:0;
}

.guardian-avatar-fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  color:#4A90D9;
  font-size:14px;
  font-weight:800;
}

.guardian-person-copy{
  min-width:0;
  flex:1;
}

.guardian-person-name{
  display:block;
  font-size:13.5px;
  font-weight:700;
  color:#1D1D1F;
}

.guardian-person-meta{
  display:block;
  margin-top:3px;
  font-size:11px;
  color:#86868B;
}

.guardian-status{
  flex-shrink:0;
  padding:4px 8px;
  border-radius:499.5px;
  font-size:10.5px;
  font-weight:700;
}

.guardian-status.ok{
  background:#E8F8ED;
  color:#34C759;
}

.guardian-status.warn{
  background:#FFF5E6;
  color:#FF9500;
}

.guardian-person-detail{
  display:block;
  margin-top:5px;
  font-size:11.5px;
  line-height:1.6;
  color:#5F6B7A;
}

.guardian-tag-row{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-top:7px;
}

.guardian-mini-tag{
  padding:4px 7px;
  border-radius:499.5px;
  background:#F4F6FA;
  color:#6B7280;
  font-size:10.5px;
  line-height:1;
}

.guardian-health-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  margin-top:7px;
}

.guardian-health-item{
  padding:8px 9px;
  border-radius:8px;
  background:#F8FAFD;
}

.guardian-health-item.soft{
  background:#F3F7FC;
}

.guardian-health-item.wide{
  grid-column:1 / -1;
}

.guardian-health-label{
  display:block;
  font-size:10.5px;
  color:#9AA0A6;
}

.guardian-health-value{
  display:block;
  margin-top:4px;
  font-size:12px;
  font-weight:700;
  color:#1D1D1F;
}

.guardian-empty{
  padding:12px 0 4px;
  text-align:center;
}

.guardian-empty-title{
  display:block;
  font-size:14px;
  font-weight:700;
  color:#1D1D1F;
}

.guardian-empty-desc{
  display:block;
  margin-top:5px;
  font-size:11.5px;
  line-height:1.6;
  color:#86868B;
}

.guardian-empty-btn{
  display:inline-block;
  margin-top:9px;
  padding:8px 14px;
  border-radius:499.5px;
  background:#4A90D9;
  color:#FFFFFF;
  font-size:12px;
  font-weight:700;
}

.guardian-empty-actions{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:7px;
}

.guardian-empty-link{
  font-size:11.5px;
  color:#4A90D9;
}


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

.icon-btn text{
  line-height: 1;
}

.membership-card-premium{
  border: none;
  text-align: left;
}


.h5-.h5-page{
  background:
    radial-gradient(circle at top left, rgba(74,144,217,.12), transparent 26%),
    radial-gradient(circle at top right, rgba(175,82,222,.08), transparent 24%),
    #f6f8fc;
}

.container{
  padding-bottom: 18px;
}

.top-bar{
  box-shadow: 0 5px 15px rgba(31,41,55,.06);
  backdrop-filter: blur(7px);
}

.logo-icon{
  box-shadow: 0 5px 12px rgba(74,144,217,.22);
}

.icon-btn{
  background: rgba(244,247,251,.92);
  box-shadow: inset 0 0 0 0.5px rgba(148,163,184,.14);
}

.user-avatar-sm{
  box-shadow: 0 4px 9px rgba(102,126,234,.24);
}

.tab-bar{
  padding-top: 11px;
  padding-bottom: 9px;
}

.tab-item{
  background: rgba(255,255,255,.78);
  box-shadow: 0 3px 9px rgba(15,23,42,.04);
}

.tab-item.active{
  box-shadow: 0 5px 12px rgba(74,144,217,.24);
}

.status-card,
.chart-section,
.alert-setting-row,
.device-status-card,
.guardian-stat-card,
.guardian-action-card,
.guardian-guide,
.guardian-list-section,
.faq-item,
.trial-status-card{
  box-shadow: 0 7px 18px rgba(15,23,42,.06);
}

.status-card,
.chart-section,
.alert-setting-row,
.device-status-card{
  border: 0.5px solid rgba(226,232,240,.75);
}

.status-card{
  border-radius: 11px;
}

.sc-icon{
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,.45);
}

.checkin-btn-big{
  box-shadow: 0 7px 14px rgba(52,199,89,.24);
}

.chart-section{
  border-radius: 12px;
}

.section-title,
.section-title-mem,
.guardian-title,
.membership-page-title,
.monitor-page-title,
.analysis-page-title{
  letter-spacing: 0.3px;
}

.alert-setting-row,
.guardian-action-card,
.plan-card,
.faq-item{
  border: 0.5px solid rgba(226,232,240,.72);
}

.device-status-card{
  min-width: 115px;
  border-radius: 10px;
}

.anomaly-section,
.bottom-stats-row{
  margin-left: 10px;
  margin-right: 10px;
}

.anomaly-section{
  background: rgba(255,255,255,.88);
  border: 0.5px solid rgba(226,232,240,.7);
  border-radius: 12px;
  padding: 12px 11px;
  box-shadow: 0 7px 18px rgba(15,23,42,.06);
}

.aap-item{
  border-radius: 8px;
  background: #f8fbff;
}

.bottom-stat-card{
  box-shadow: 0 7px 15px rgba(15,23,42,.12);
}

.monitor-cards-illustration,
.analysis-chart-preview{
  box-shadow: 0 8px 17px rgba(74,144,217,.10);
}

.membership-card-premium{box-shadow:0 9px 21px rgba(140,84,58,.12)}

.plan-card{
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.plan-card-active{
  box-shadow: 0 9px 18px rgba(74,144,217,.14);
}

.guardian-badge,
.trial-banner-tag,
.plan-rec{
  box-shadow: 0 3px 7px rgba(15,23,42,.10);
}


.trial-banner{
  border: 0.5px solid rgba(255,255,255,.18);
  box-shadow: 0 9px 19px rgba(74,144,217,.24);
}

.top-bar-logo,
.top-bar-actions{
  position: relative;
  z-index: 2;
}

.tab-item{
  font-weight: 600;
}

.status-grid,
.charts-row,
.guardian-stats,
.guardian-actions{
  gap: 8px;
}

.status-card{
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
}

.sc-value{
  letter-spacing: -0.3px;
}

.mini-progress{
  margin-top: 5px;
  background: #eef2f7;
}

.mini-fill{
  background: linear-gradient(90deg, #4A90D9, #69b1ff);
}

.checkin-btn-big{
  transform: translateY(0);
}

.checkin-btn-big:active{
  transform: translateY(1px) scale(.99);
}

.chart-section,
.alert-setting-row,
.guardian-action-card,
.guardian-guide,
.guardian-list-section,
.faq-item{
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,251,253,.98));
}

.section-header{
  margin-bottom: 9px;
}

.section-title{
  font-size: 13.5px;
}

.section-link{
  padding: 3px 7px;
  border-radius: 499.5px;
  background: rgba(74,144,217,.08);
}

.alert-icon-wrap,
.dsc-icon,
.guardian-guide-dot{
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,.5);
}

.dsc-value{
  letter-spacing: -0.4px;
}
.dsc-unit{
  font-size: 12px;
  font-weight: 600;
  color: #34C759;
  margin-left: 2px;
}

.dsc-bar{
  background: #eef2f7;
}

.dsc-bar-fill.blue{
  background: linear-gradient(90deg, #4A90D9, #76bcff);
}

.guardian-hero{
  box-shadow: 0 8px 17px rgba(154,103,0,.10);
}

.guardian-stat-card{
  border: 0.5px solid rgba(226,232,240,.76);
}

.guardian-stat-value{
  letter-spacing: -0.4px;
}

.guardian-action-card{
  position: relative;
  overflow: hidden;
}

.guardian-action-card::after{
  content: '';
  position: absolute;
  right: -12px;
  top: -12px;
  width: 60px;
  height: 60px;
  border-radius: 499.5px;
  background: rgba(74,144,217,.06);
}

.guardian-person-card{
  transition: transform .18s ease;
}

.guardian-person-card:active{
  transform: scale(.992);
}

.guardian-health-item{
  border: 0.5px solid rgba(226,232,240,.72);
}

.guardian-mini-tag{
  background: #eef4fb;
  color: #49617d;
}

.monitor-cards-illustration,
.analysis-chart-preview{
  border: 0.5px solid rgba(226,232,240,.76);
}

.mock-data-card,
.membership-card-premium{
  overflow: hidden;
}

.overview-secondary-entry{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:7px;
  padding:0 10px 13px;
}
.overview-secondary-card{
  padding:11px;
  border-radius:10px;
  background:rgba(255,255,255,.78);
  border:0.5px solid rgba(226,232,240,.72);
}
.overview-secondary-title{display:block;font-size:13px;font-weight:700;color:var(--text-primary);}
.overview-secondary-desc{display:block;margin-top:4px;font-size:11px;color:var(--text-secondary);line-height:1.5;}

.mock-data-card::after,
.membership-card-premium::before{
  display:none;
}


.guardian-hero{
  margin:7px 10px 0;
  padding:13px 14px;
  border-radius:17px;
  background:
    radial-gradient(circle at 88% 8%, rgba(142,214,207,.22), transparent 28%),
    linear-gradient(135deg,#fffdfb,#fff2e7);
  border:0.5px solid rgba(255,255,255,.82);
  box-shadow:0 9px 20px rgba(140,84,58,.10);
}
.guardian-title{
  font-size:21px;
  line-height:1.1;
  font-weight:900;
  color:#2B1E1A;
}
.guardian-desc{
  max-width:215px;
  margin-top:5px;
  font-size:12px;
  line-height:1.55;
  color:#80695F;
}
.guardian-badge{
  background:#fff;
  color:#8E4537;
  box-shadow:0 4px 9px rgba(140,84,58,.10);
}
.guardian-stats{
  padding:7px 10px 0;
  gap:6px;
}
.guardian-stat-card{
  min-height:56px;
  border-radius:13px;
  background:rgba(255,255,255,.88);
  border:0.5px solid #F0DED3;
  box-shadow:0 6px 14px rgba(140,84,58,.06);
}
.guardian-stat-card.warn{background:#FFF8E8;border-color:#F2E1B8;}
.guardian-stat-card.alert{background:#FFF0F2;border-color:#F3CDD3;}
.guardian-stat-value{
  font-size:20px;
  color:#2B1E1A;
}
.guardian-stat-label{
  font-size:11px;
  font-weight:800;
  color:#80695F;
}
.guardian-list-section{
  margin:7px 10px 9px;
  padding:0;
  background:transparent;
  box-shadow:none;
}
.guardian-person-card{
  margin-bottom:8px;
  padding:12px;
  border:0.5px solid #F0DED3;
  border-radius:16px;
  background:rgba(255,255,255,.92);
  box-shadow:0 8px 17px rgba(140,84,58,.08);
}
.guardian-person-card:first-child{padding-top:12px;border-top:0.5px solid #F0DED3;}
.guardian-avatar{
  width:44px;
  height:44px;
  border-radius:22px;
  background:#EEF5FF;
}
.guardian-avatar-fallback{
  color:#5C8AAE;
  font-size:15px;
  font-weight:900;
}
.guardian-person-name{
  font-size:16px;
  color:#2B1E1A;
  font-weight:900;
}
.guardian-person-meta{
  font-size:11px;
  color:#8A746B;
}
.guardian-status{
  padding:4px 8px;
  border-radius:499.5px;
  font-size:11px;
  font-weight:900;
}
.guardian-person-detail{
  margin-top:8px;
  padding:7px 8px;
  border-radius:10px;
  background:#FFF8F2;
  color:#7E6A60;
}
.guardian-health-grid{
  gap:6px;
  margin-top:8px;
}
.guardian-health-item{
  padding:8px 9px;
  border-radius:10px;
  background:#FFF8F2;
  border:0.5px solid #F4E3D9;
}
.guardian-health-label{
  font-size:10.5px;
  color:#9A8378;
  font-weight:800;
}
.guardian-health-value{
  font-size:13px;
  color:#2B1E1A;
  font-weight:900;
}

.guardian-device-card{
  margin:0 10px 9px;
  padding:13px;
  border-radius:17px;
  background:
    radial-gradient(circle at 92% 4%, rgba(142,214,207,.20), transparent 24%),
    linear-gradient(145deg,#FFFDF9,#FFF7EF 54%,#F6FBF8);
  border:0.5px solid #F0DED3;
  box-shadow:0 9px 21px rgba(140,84,58,.09);
}
.self-device-card{
  margin-top:9px;
}
.guardian-device-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:9px;
  margin-bottom:9px;
}
.guardian-device-title{
  display:block;
  font-size:15px;
  line-height:1.25;
  font-weight:900;
  color:#2B1E1A;
}
.guardian-device-desc{
  display:block;
  margin-top:3px;
  font-size:12px;
  line-height:1.45;
  color:#80695F;
}
.guardian-device-badge{
  flex-shrink:0;
  padding:4px 8px;
  border-radius:499.5px;
  background:#EAF8EF;
  color:#2EA66F;
  font-size:11.5px;
  font-weight:900;
}
.guardian-device-group-card{
  margin-top:8px;
  padding:9px;
  border-radius:13px;
  background:rgba(255,255,255,.70);
  border:0.5px solid rgba(240,222,211,.86);
}
.guardian-device-group{
  display:block;
  position:relative;
  margin:0 0 6px;
  padding-left:10px;
  font-size:12px;
  line-height:1.3;
  color:#8E4537;
  font-weight:900;
}
.guardian-device-group::before{
  content:'';
  position:absolute;
  left:0;
  top:4.5px;
  width:5px;
  height:5px;
  border-radius:499.5px;
  background:linear-gradient(135deg,#DF8068,#F3C27A);
}
.guardian-device-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:5px;
}
.guardian-device-item{
  min-height:44px;
  padding:7.5px 8px;
  border-radius:11px;
  background:linear-gradient(180deg,rgba(255,250,246,.98),rgba(255,245,238,.92));
  border:0.5px solid rgba(244,227,217,.96);
}
.guardian-device-item text:first-child{
  display:block;
  font-size:12px;
  font-weight:900;
  color:#2B1E1A;
}
.guardian-device-item text:last-child{
  display:block;
  margin-top:2.5px;
  font-size:11px;
  line-height:1.35;
  color:#8A746B;
}

.threshold-section{
  background: rgba(255,255,255,.92);
  border: 0.5px solid rgba(226,232,240,.7);
  border-radius: 12px;
  margin: 0 10px 14px;
  padding: 12px 11px 14px;
  box-shadow: 0 7px 18px rgba(15,23,42,.06);
}

.radio-item,
.picker-option{
  border-radius: 7px;
}

.pricing-grid,
.plans-list{
  gap: 9px;
}

.plan-card{
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(247,250,253,.99));
}

.plan-price{
  letter-spacing: -0.4px;
}

.plan-action-btn{
  border-radius: 8px;
}

.faq-q{
  background: rgba(255,255,255,.55);
}

.faq-a{
  background: rgba(248,250,252,.78);
}

.bottom-stat-card{
  border: 0.5px solid rgba(255,255,255,.14);
}


.h5-.h5-page{
  --peace-blue:#5b8fdc;
  --peace-cyan:#8ed6cf;
  --care-pink:#f07ca3;
  --care-cream:#fff8ef;
  --glass:rgba(255,255,255,.82);
  background:
    radial-gradient(circle at 12% 6%, rgba(240,124,163,.22), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(142,214,207,.24), transparent 30%),
    linear-gradient(180deg,#fffaf5 0%,#f6fbff 44%,#f7f8fb 100%);
}
.top-bar{
  background:rgba(255,255,255,.86)!important;
  border-bottom:0.5px solid rgba(255,255,255,.7);
}
.logo-icon{
  background:linear-gradient(135deg,#7bd6c4,#43c887);
  color:#fff;
}
.logo-text{color:#213044}
.tab-bar{background:transparent}
.tab-item{
  min-height:27px;
  padding:7px 17px;
  border-color:rgba(226,232,240,.68)!important;
}
.tab-item.active{
  background:linear-gradient(135deg,#5b8fdc,#7bd6c4);
  box-shadow:0 7px 16px rgba(91,143,220,.24);
}
.mode-hero-switch{
  gap:9px;
  margin-top:11px;
}
.mode-hero-card{
  min-height:136px;
  border-radius:17px;
  border:0.5px solid rgba(255,255,255,.62);
}
.mode-hero-card.active::after{
  content:'';
  position:absolute;
  inset:5px;
  border:1px solid rgba(255,255,255,.62);
  border-radius:14px;
  pointer-events:none;
}
.mode-hero-title{font-size:17px}
.mode-hero-desc{font-size:11px}
.overview-focus-card{
  border-radius:17px;
  background:
    radial-gradient(circle at 92% 16%, rgba(240,124,163,.18), transparent 24%),
    linear-gradient(135deg,rgba(255,255,255,.96),rgba(255,248,239,.92));
  border:0.5px solid rgba(255,255,255,.72);
  box-shadow:0 12px 27px rgba(137,91,110,.12);
}
.overview-focus-title{
  font-size:26px;
  letter-spacing:-0.5px;
}
.overview-focus-eyebrow,.overview-focus-label{
  color:#8b7280;
}
.overview-risk-tag.safe{background:#eaf8ef;color:#2aa56f}
.overview-risk-tag.risk{background:#fff2df;color:#bb6b00}
.overview-action-card{
  min-height:75px;
  border-radius:14px;
  background:var(--glass);
  backdrop-filter:blur(9px);
}
.overview-action-card.primary{
  background:linear-gradient(135deg,#f07ca3,#f5a46f);
  box-shadow:0 9px 18px rgba(240,124,163,.24);
}
.overview-action-title{font-size:16px}
.care-message-card,.device-radar-card,.care-task-card{
  border-radius:16px;
  backdrop-filter:blur(9px);
}
.care-message-card{
  background:
    radial-gradient(circle at 90% 4%, rgba(240,124,163,.2), transparent 26%),
    linear-gradient(135deg,#fff,#fff6ee);
}
.device-radar-card{
  background:
    radial-gradient(circle at 88% 8%, rgba(126,214,196,.22), transparent 28%),
    linear-gradient(135deg,#f9fcff,#f1fff8);
}
.care-task-card{
  background:
    radial-gradient(circle at 8% 0%, rgba(255,216,153,.2), transparent 28%),
    linear-gradient(135deg,#fffdf8,#f7fbff);
}
.device-radar-grid view,.overview-focus-item{
  border-radius:11px;
  background:rgba(255,255,255,.74);
}
.status-grid.secondary-grid,.charts-row,.bottom-stats-row,.device-status-row{
  display:grid;
}
.device-status-row{display:flex}
.anomaly-section{display:block}
.alert-settings-section{display:none}
.overview-secondary-card{
  border-radius:13px;
  background:rgba(255,255,255,.74);
  backdrop-filter:blur(7px);
}
.guardian-hero{
  border-radius:16px;
  background:
    radial-gradient(circle at 88% 10%, rgba(126,214,196,.24), transparent 26%),
    linear-gradient(135deg,#f7fbff,#fff8ef);
}
.guardian-stat-card,.guardian-action-card,.guardian-guide,.guardian-list-section{
  border-radius:14px;
  background:rgba(255,255,255,.78);
  backdrop-filter:blur(7px);
}


.container{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue",sans-serif;}
.top-bar{height:auto;min-height:46px}
.logo-text{font-size:15.5px;font-weight:900;letter-spacing:0.2px}
.tab-bar{margin:5px 0 4px;padding-left:10px}
.tab-item{font-size:12.5px;border-radius:499.5px}
.mode-hero-switch{grid-template-columns:1fr;gap:9px}
.mode-hero-card{min-height:113px}
.mode-hero-title{font-size:19px;line-height:1.15}
.mode-hero-desc{font-size:12px;line-height:1.55;max-width:210px}
.mode-hero-badge{font-size:11px;padding:4.5px 9px;background:rgba(255,255,255,.28)}
.overview-focus-card,.care-message-card,.device-radar-card,.care-task-card{margin-left:10px;margin-right:10px}
.overview-focus-card{padding:17px 15px}
.overview-focus-title{font-size:31px;font-weight:900;line-height:1.08}
.overview-focus-eyebrow{font-size:12px;font-weight:800}
.overview-risk-tag{font-size:12px;padding:5px 10px}
.overview-focus-grid{gap:7px;margin-top:14px}
.overview-focus-item{padding:10px}
.overview-focus-label{font-size:11.5px}
.overview-focus-value{font-size:17px}
.overview-focus-sub{font-size:14px;font-weight:800;color:#233044}
.overview-trust-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:11px}
.overview-trust-tags text{padding:5px 9px;border-radius:499.5px;background:rgba(255,255,255,.72);color:#7b6170;font-size:11px;font-weight:700}
.overview-action-grid{padding:0 10px;margin-top:9px}
.overview-action-card{padding:13px;box-shadow:0 8px 17px rgba(15,23,42,.07)}
.overview-action-title{font-size:18px;font-weight:900}
.overview-action-desc{font-size:11.5px;margin-top:5px}
.overview-trend-strip{padding:0 10px;gap:8px}
.overview-trend-card{border-radius:14px;background:rgba(255,255,255,.76);border:0.5px solid rgba(255,255,255,.78);box-shadow:0 7px 16px rgba(15,23,42,.05)}
.overview-trend-label{font-size:11px}
.overview-trend-value{font-size:21px;font-weight:900}
.care-message-title,.section-title{font-size:15px;font-weight:900}
.care-message-text{font-size:15.5px;line-height:1.65}
.care-message-actions{gap:6px}
.care-message-actions button{height:39px;line-height:39px;font-size:11.5px}
.device-radar-grid{grid-template-columns:1fr;gap:7px}
.device-radar-grid view{padding:10px 11px;display:flex;align-items:center;justify-content:space-between}
.device-radar-grid text{font-size:12px}
.device-radar-value{margin-top:0!important;font-size:15px!important}
.care-task-item{padding:11px 0}
.care-task-title{font-size:14.5px;font-weight:900}
.care-task-desc{font-size:11.5px}
.care-task-check{font-size:11.5px;padding:4.5px 8px;border-radius:499.5px;background:#eef8f1;color:#26945f}


.tab-bar{display:none}
.care-mode-segment{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  margin:9px 10px 8px;
  padding:4px;
  border-radius:499.5px;
  background:rgba(255,255,255,.72);
  border:0.5px solid rgba(226,232,240,.72);
}
.care-mode-option{
  height:32px;
  line-height:32px;
  text-align:center;
  border-radius:499.5px;
  color:#607084;
  font-size:12.5px;
  font-weight:900;
}
.care-mode-option.active{
  background:#213044;
  color:#fff;
  box-shadow:0 6px 13px rgba(33,48,68,.18);
}
.safety-state-card{
  margin:0 10px 10px;
  padding:19px 15px 15px;
  border-radius:20px;
  color:#213044;
  border:0.5px solid rgba(255,255,255,.76);
  box-shadow:0 13px 29px rgba(15,23,42,.10);
}
.safety-state-card.safe{
  background:radial-gradient(circle at 88% 8%, rgba(91,214,154,.24), transparent 28%),linear-gradient(135deg,#f8fff9,#f4fbff);
}
.safety-state-card.attention{
  background:radial-gradient(circle at 88% 8%, rgba(255,190,96,.25), transparent 28%),linear-gradient(135deg,#fffaf0,#f5fbff);
}
.safety-state-card.urgent{
  background:radial-gradient(circle at 88% 8%, rgba(217,75,85,.18), transparent 28%),linear-gradient(135deg,#fff7f5,#fffaf8);
}
.safety-state-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.safety-eyebrow{display:block;font-size:12px;font-weight:900;color:#65748a}
.safety-title{display:block;margin-top:5px;font-size:38px;font-weight:950;letter-spacing:-1px;line-height:1}
.safety-desc{display:block;margin-top:9px;font-size:13.5px;line-height:1.65;color:#5f6f82;max-width:260px}
.safety-badge{flex-shrink:0;padding:5px 10px;border-radius:499.5px;font-size:11.5px;font-weight:900}
.safety-badge.safe{background:#e9f8ef;color:#248f5d}
.safety-badge.attention{background:#fff1d8;color:#b76b00}
.safety-badge.urgent{background:#FFE8EA;color:#D94B55}
.safety-core-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:15px}
.safety-core-grid>view{padding:11px;border-radius:13px;background:rgba(255,255,255,.72);border:0.5px solid rgba(255,255,255,.8)}
.safety-core-label{display:block;font-size:11px;color:#748195;font-weight:800}
.safety-core-value{display:block;margin-top:4px;font-size:15.5px;font-weight:950;color:#213044}
.safety-actions,.elder-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.safety-actions button,.elder-action-grid button{
  height:44px;
  line-height:44px;
  width:100%;
  margin:0;
  padding:0 6px;
  box-sizing:border-box;
  border-radius:499.5px;
  background:#213044;
  color:#fff;
  font-size:13.5px;
  font-weight:950;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.safety-actions button.light,.elder-action-grid button.light{background:#eef7fb;color:#326d88}
.elder-action-grid button.sos{background:#e5484d;color:#fff}
.safety-actions button::after,.elder-action-grid button::after{border:0}
.elder-simple-card{
  margin:0 10px 10px;
  padding:15px 13px;
  border-radius:18px;
  background:linear-gradient(135deg,#ffffff,#fff8f2);
  border:0.5px solid rgba(255,255,255,.78);
  box-shadow:0 9px 21px rgba(15,23,42,.07);
}
.elder-simple-title{display:block;font-size:17px;font-weight:950;color:#213044}
.elder-simple-desc{display:block;margin-top:4px;font-size:12px;line-height:1.6;color:#6a7788}
.elder-mode-entry{
  width:100%;
  height:44px;
  line-height:44px;
  margin:9px 0 0;
  border-radius:499.5px;
  background:#5A3B31;
  color:#fff;
  font-size:13.5px;
  font-weight:950;
  box-shadow:0 7px 14px rgba(90,59,49,.14);
}
.elder-mode-entry::after{border:0}
.elder-mode-entry.light{background:#FFF4EA!important;color:#5A3B31!important;box-shadow:none}
.sos-countdown-card,.notice-reliability-card{
  margin:0 10px 10px;
  padding:14px 13px;
  border-radius:17px;
  background:#fff;
  border:0.5px solid #F0DDD2;
  box-shadow:0 8px 17px rgba(140,84,58,.08);
}
.sos-countdown-card{
  background:linear-gradient(135deg,#fff7f5,#fffdf8);
}
.sos-countdown-title{display:block;font-size:17px;font-weight:950;color:#D94B55}
.sos-countdown-desc{display:block;margin-top:5px;font-size:12px;line-height:1.6;color:#8A746B}
.sos-countdown-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}
.sos-countdown-actions button{
  height:39px;
  line-height:39px;
  margin:0;
  border-radius:499.5px;
  background:#D94B55;
  color:#fff;
  font-size:12.5px;
  font-weight:950;
}
.sos-countdown-actions button.cancel{background:#FFF4EA;color:#5A3B31}
.sos-countdown-actions button::after{border:0}
.voice-countdown-mask{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(42,30,25,.18);
  backdrop-filter:blur(3px);
}
.voice-countdown-box{
  width:120px;
  height:120px;
  border-radius:24px;
  background:rgba(255,255,255,.94);
  border:0.5px solid #F0DDD2;
  box-shadow:0 12px 30px rgba(140,84,58,.18);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.voice-countdown-num{font-size:48px;font-weight:950;line-height:1;color:#D9826B}
.voice-countdown-text{margin-top:6px;font-size:14px;font-weight:900;color:#5A3B31}
.notice-reliability-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:9px;
  padding:9px 0;
  border-top:0.5px solid #F2E2D9;
  font-size:13px;
  font-weight:800;
  color:#3B2A25;
}
.notice-reliability-row:first-of-type{border-top:0}
.notice-state{
  flex-shrink:0;
  padding:4px 8px;
  border-radius:499.5px;
  font-size:11px;
  font-weight:950;
}
.notice-state.ok{background:#EAF8EF;color:#24A26B}
.notice-state.warn{background:#FFF4DC;color:#B87825}
.notice-state.running{background:#EAF2FF;color:#3B7BC8}
.notice-state.pending{background:#FFF1EA;color:#C97854}
.notice-state.muted{background:#F2F5F8;color:#667386}
.notice-reliability-tip{display:block;margin-top:5px;font-size:11.5px;line-height:1.6;color:#8A746B}
.notice-retry-btn{
  width:100%;
  height:38px;
  line-height:38px;
  margin:9px 0 0;
  border-radius:499.5px;
  background:#FFF4EA;
  color:#5A3B31;
  font-size:12.5px;
  font-weight:950;
}
.notice-retry-btn::after{border:0}
.mode-hero-switch,.overview-action-grid{display:none}
.overview-trend-strip{grid-template-columns:1fr 1fr}

.health-detail-card{
  margin:8px 10px 0;
  padding:12px;
  border-radius:16px;
  background:rgba(255,255,255,.9);
  border:0.5px solid #F0DDD2;
  box-shadow:0 8px 17px rgba(140,84,58,.08);
}
.health-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.health-detail-grid>view{padding:10px;border-radius:12px;background:#FFF8F1;border:0.5px solid #F0DDD2}
.health-detail-grid text{display:block}
.health-detail-grid text:first-child{font-size:11px;font-weight:900;color:#8A746B}
.health-detail-grid text:nth-child(2){margin-top:4px;font-size:17px;font-weight:950;color:#3B2A25}
.health-detail-grid text:last-child{margin-top:3px;font-size:11px;font-weight:800;color:#C97854}


.h5-.h5-page{
  background:#F7FAFC;
}
.top-bar{background:rgba(255,255,255,.94)!important;border-bottom:0.5px solid #E7EDF4}
.logo-icon{background:#24A26B}
.safety-state-card.safe,.safety-state-card.attention,.safety-state-card.urgent,.elder-simple-card,.care-message-card,.device-radar-card,.care-task-card,.guardian-hero,.guardian-stat-card,.guardian-action-card,.guardian-guide,.guardian-list-section,.overview-trend-card,.overview-secondary-card{
  background:#fff;
  border:0.5px solid #E7EDF4;
  box-shadow:0 6px 15px rgba(15,23,42,.06);
}
.safety-title{color:#172033}
.safety-state-card.safe .safety-badge{background:#EAF8EF;color:#24A26B}
.safety-state-card.attention .safety-badge{background:#FFF4DC;color:#B86B00}
.safety-state-card.urgent .safety-badge{background:#FFE8EA;color:#D94B55}
.safety-actions button,.elder-action-grid button{background:#24A26B}
.elder-action-grid button.sos{background:#D93D42}
.safety-actions button.light,.elder-action-grid button.light{background:#F1F6FA;color:#172033}
.care-mode-option.active{background:#172033}
.care-message-actions button{background:#24A26B}
.care-message-actions button.ghost{background:#FFF4DC;color:#B86B00}
.care-message-actions button.light{background:#F1F6FA;color:#172033}
.device-radar-value,.care-task-title,.overview-trend-value,.guardian-stat-value{color:#172033!important}


.family-safe-card{
  margin:0 10px 10px;
  padding:15px;
  border-radius:19px;
  background:#fff;
  border:0.5px solid #E7EDF4;
  box-shadow:0 6px 15px rgba(15,23,42,.06);
}
.family-safe-head{display:flex;align-items:flex-start;justify-content:space-between;gap:9px}
.family-safe-kicker{display:block;font-size:11px;font-weight:900;color:#667386}
.family-safe-title{display:block;margin-top:4px;font-size:18px;font-weight:950;color:#172033}
.family-safe-live{padding:4.5px 9px;border-radius:499.5px;background:#EAF8EF;color:#24A26B;font-size:11px;font-weight:900}
.family-safe-map{
  position:relative;
  height:115px;
  margin-top:12px;
  border-radius:16px;
  overflow:hidden;
  background:
    linear-gradient(135deg,rgba(36,162,107,.10),rgba(91,143,220,.08)),
    repeating-linear-gradient(45deg,rgba(231,237,244,.75) 0,rgba(231,237,244,.75) 1px,transparent 1px,transparent 14px);
}
.family-safe-map::after{
  content:'';
  position:absolute;
  left:18%;
  right:18%;
  top:50%;
  border-top:3px dashed rgba(36,162,107,.34);
  transform:rotate(-11deg);
}
.family-home-pin,.family-person-pin{
  position:absolute;
  width:38px;
  height:38px;
  line-height:38px;
  text-align:center;
  border-radius:14px;
  color:#fff;
  font-size:14px;
  font-weight:950;
  z-index:2;
  box-shadow:0 7px 14px rgba(15,23,42,.12);
}
.family-home-pin{left:19px;bottom:19px;background:#172033}
.family-person-pin{right:21px;top:19px;background:#24A26B}
.family-route-dot{position:absolute;width:10px;height:10px;border-radius:50%;background:#24A26B;z-index:2}
.family-route-dot.one{left:38%;top:48%}
.family-route-dot.two{left:58%;top:40%}
.family-safe-row{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:8px}
.family-safe-row>view{padding:10px;border-radius:13px;background:#F7FAFC}
.family-safe-label{display:block;font-size:11px;color:#667386;font-weight:800}
.family-safe-value{display:block;margin-top:4px;font-size:14.5px;color:#172033;font-weight:950}
.family-safe-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}
.family-safe-actions button{height:39px;line-height:39px;border-radius:499.5px;background:#172033;color:#fff;font-size:12.5px;font-weight:950}
.family-safe-actions button.light{background:#F1F6FA;color:#172033}
.family-safe-actions button::after{border:0}


.family-safe-actions,.safety-actions,.elder-action-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.family-safe-actions button,.safety-actions button,.elder-action-grid button{
  width:100%;
  margin:0;
  padding:0 8px;
}
.family-safe-actions button.light,.safety-actions button.light,.elder-action-grid button.light{
  background:#F1F6FA!important;
  color:#172033!important;
}
.care-message-actions{grid-template-columns:1fr 1fr}
.care-message-actions button.wide{grid-column:1 / -1}
.care-message-actions button{
  width:100%;
  margin:0;
  padding:0 9px;
  text-align:center;
}
.care-message-actions{
  gap:7px;
}
.care-message-actions button{
  height:38px;
  line-height:38px;
  font-size:12px;
  border-radius:499.5px;
}
.care-message-actions button.wide{
  height:41px;
  line-height:41px;
}
.care-message-actions button.ghost{
  background:#FFF4DC!important;
  color:#B86B00!important;
}
.care-message-actions button.light{
  background:#F1F6FA!important;
  color:#172033!important;
}


.safety-badge,.family-safe-live,.guardian-status,.guardian-mini-tag,.trial-banner-tag,.trial-status-badge,.care-task-check,.overview-risk-tag,.anomaly-tag,.aa-normal-tag,.mcp-badge,.mode-hero-badge,.guardian-badge,.notice-state{
  min-height:22px;
  padding:4px 9px;
  border-radius:499.5px;
  box-sizing:border-box;
  font-size:11px;
  line-height:1.2;
  font-weight:900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.safety-badge.safe,.guardian-status.ok,.trial-status-badge.member,.overview-risk-tag.safe,.care-task-check{background:#EAF8EF;color:#24A26B}
.safety-badge.attention,.guardian-status.warn,.overview-risk-tag.risk,.anomaly-tag,.aa-normal-tag.orange{background:#FFF4DC;color:#B86B00}
.safety-badge.urgent{background:#FFE8EA;color:#D94B55}
.guardian-mini-tag,.trial-banner-tag,.mode-hero-badge,.guardian-badge{background:#F2F5F8;color:#667386}
.guardian-status{flex-shrink:0;max-width:90px}
.guardian-tag-row{align-items:center}


.h5-.h5-page{
  background:
    radial-gradient(circle at 14% 4%, rgba(239,154,130,.18), transparent 30%),
    radial-gradient(circle at 88% 2%, rgba(255,213,154,.22), transparent 28%),
    linear-gradient(180deg,#FFF8F1 0%,#FFFDF8 52%,#F8F3EF 100%);
}
.top-bar{background:rgba(255,250,246,.94)!important;border-bottom:0.5px solid #F0DDD2}
.logo-icon{background:linear-gradient(135deg,#E39176,#D9826B)!important}
.safety-state-card.safe,.safety-state-card.attention,.safety-state-card.urgent,.family-safe-card,.elder-simple-card,.sos-countdown-card,.notice-reliability-card,.care-message-card,.device-radar-card,.care-task-card,.overview-trend-card,.overview-secondary-card{
  background:rgba(255,255,255,.9);
  border-color:#F0DDD2;
  box-shadow:0 8px 17px rgba(140,84,58,.08);
}
.safety-title,.family-safe-title,.elder-simple-title,.care-message-text,.device-radar-value,.care-task-title,.overview-trend-value{color:#3B2A25!important}
.safety-eyebrow,.safety-desc,.family-safe-kicker,.family-safe-label,.elder-simple-desc,.overview-trend-label{color:#8A746B}
.safety-actions button,.elder-action-grid button,.family-safe-actions button,.care-message-actions button{background:linear-gradient(135deg,#E39176,#D9826B)!important}
.elder-action-grid button.sos{background:#D94B55!important}
.safety-actions button.light,.elder-action-grid button.light,.family-safe-actions button.light,.care-message-actions button.light{background:#FFF4EA!important;color:#5A3B31!important}
.care-message-actions button.ghost{background:#FFF5DF!important;color:#B87825!important}
.safety-badge.safe,.family-safe-live,.care-task-check{background:#FFF1EA!important;color:#C97854!important}
.safety-badge.attention{background:#FFF5DF!important;color:#B87825!important}
.safety-badge.urgent{background:#FFE8EA!important;color:#D94B55!important}
.family-person-pin,.family-route-dot{background:#D9826B}
.family-home-pin{background:#5A3B31}
.family-safe-map{background:linear-gradient(135deg,rgba(217,130,107,.1),rgba(255,213,154,.14)),repeating-linear-gradient(45deg,rgba(240,221,210,.78) 0,rgba(240,221,210,.78) 1px,transparent 1px,transparent 14px)}

.home-footer{
  margin-top: 5px;
  padding:17px 12px calc(85px + env(safe-area-inset-bottom));
  text-align:center;
}
.home-footer text{
  display:block;
  font-size:11px;
  line-height:1.8;
  color:#B6A59D;
}
.home-footer-links{
  display:flex;
  justify-content:center;
  gap:5px;
  margin-top:2px;
}
.home-footer-links text{
  display:inline;
  color:#4A90D9;
  font-size:11px;
}

.home-soft-tip{
  margin:0 10px 10px;
  padding:11px 12px;
  border-radius:14px;
  background:rgba(255,255,255,.62);
  border:0.5px solid #F0DDD2;
  box-shadow:0 5px 12px rgba(140,84,58,.04);
}
.home-soft-tip-title{
  display:block;
  font-size:12.5px;
  font-weight:900;
  color:#3B2A25;
}
.home-soft-tip-desc{
  display:block;
  margin-top:3px;
  font-size:11.5px;
  line-height:1.6;
  color:#8A746B;
}
.safety-state-card.safe{background:linear-gradient(135deg,#fff,#F5FFF8)}
.safety-state-card.attention{background:linear-gradient(135deg,#fff,#FFF7EA)}
.safety-state-card.urgent{background:linear-gradient(135deg,#fff,#FFF1F1)}
.safety-badge.attention{background:#FFF5DF!important;color:#B87825!important}
.guardian-person-card{margin-bottom:9px}

.h5-.h5-page{background:#F6F7F5}
.top-bar{background:rgba(255,255,255,.9)!important;border-bottom:0.5px solid #DDE6EB}
.logo-icon{background:#3B2A25!important;box-shadow:none}
.care-mode-segment{background:rgba(255,255,255,.82);border-color:#DDE6EB;box-shadow:0 5px 13px rgba(23,32,51,.06)}
.care-mode-option.active{background:#172033;color:#fff}
.family-risk-hero{background:#172033!important;border-color:#172033!important;box-shadow:0 11px 24px rgba(23,32,51,.18)}
.family-risk-kicker{color:#B8C2CC}
.family-risk-title{color:#fff}
.family-risk-desc{color:#DDE6EB}
.family-risk-badge{background:#EAF5EF!important;color:#2F8A68!important}
.family-risk-hero.warn .family-risk-badge{background:#FFF4DC!important;color:#B86B00!important}
.family-risk-hero.alert .family-risk-badge{background:#FFF0F2!important;color:#D93D42!important}
.family-risk-actions button{background:#D9826B;border-radius:499.5px}
.family-risk-actions button.light{background:rgba(255,255,255,.12);color:#fff;border:0.5px solid rgba(255,255,255,.18)}
.guardian-stats{margin:8px 10px 0}
.guardian-stat-card,.duty-board-card,.risk-flow-card,.guardian-person-card,.guardian-list-section,.guardian-device-card{
  background:#fff!important;
  border:0.5px solid #DDE6EB!important;
  box-shadow:0 6px 15px rgba(23,32,51,.06)!important;
  border-radius:12px!important;
}
.duty-board-grid{display:flex;gap:6px;overflow-x:auto;padding-bottom:1px}
.duty-board-grid::-webkit-scrollbar{display:none}
.duty-tile{flex:0 0 64px;min-height:54px;border-radius:9px;background:#F6F7F5;border-color:#DDE6EB}
.duty-tile.warn{background:#FFF4DC;border-color:#F3D79B}
.duty-tile.alert{background:#FFF0F2;border-color:#F1B8BF}
.duty-tile.ok{background:#EAF5EF;border-color:#B9DDCA}
.risk-flow-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}
.risk-flow-step{min-height:55px;flex-direction:column;justify-content:center;padding:6px 4px;background:#F6F7F5;border-color:#DDE6EB;text-align:center;font-size:11px}
.risk-flow-step text:first-child{background:#172033}
.risk-flow-step.done{background:#EAF5EF;border-color:#B9DDCA;color:#2F8A68}
.guardian-device-card{background:#fff!important}
.guardian-device-desc{color:#667386}
.guardian-device-badge{background:#EAF5EF;color:#2F8A68}
.guardian-device-group-card{background:#F8FAFB;border-color:#DDE6EB;border-radius:9px}
.guardian-device-group{color:#3B2A25}
.guardian-device-group::before{background:#D9826B}
.guardian-device-item{background:#fff;border-color:#DDE6EB;border-radius:8px}
.guardian-device-item text:last-child{color:#667386}



.h5-.h5-page{
  --primary: #4A90D9; --primary-light: #E8F1FC;
  --success: #34C759; --success-light: #E8F8ED;
  --warning: #FF9500; --danger: #FF3B30;
  --purple: #AF52DE; --purple-light: #F3E8FB;
  --text-primary: #1D1D1F;
  --text-secondary: #86868B;
  --text-muted: #AEAEB2;
  --bg: #F5F5F7; --card-bg: #FFFFFF;
  --border: #E5E5EA;
}


.monitor-hero { padding: 24px 12px 20px; text-align: center; }
.monitor-hero.simple { padding-bottom: 10px; }
.monitor-cards-illustration {
  background: linear-gradient(135deg, #E8F1FC, #F3E8FB);
  border-radius: 16px; padding: 18px 12px; display: inline-block;
}
.mock-data-card {
  background: linear-gradient(135deg, #4A90D9, #67B7FF); color: #fff;
  border-radius: 10px; padding: 10px 14px; margin-bottom: 8px;
  min-width: 180px; text-align: left;
}
.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: 12px; opacity: .8; }
.mdc-emoji { font-size: 14px; }
.mdc-value { font-size: 17px; font-weight: 700; display: block; margin-top: 3px; }
.mdc-bar {
  height: 5px; background: rgba(255,255,255,.3); border-radius: 2.5px;
  margin-top: 7px; overflow: hidden;
}
.mdc-fill { height: 100%; background: #34C759; border-radius: 2.5px; }
.purple-fill { background: #AF52DE; }
.heart-wave { margin-top: 5px; font-size: 11px; opacity: .7; letter-spacing: 1px; }

.monitor-page-title { font-size: 20px; font-weight: 700; margin-top: 14px; display: block; }
.monitor-page-desc { font-size: 13px; color: var(--text-secondary); margin-top: 6px; display: block; max-width: 260px; margin-inline: auto; }

.monitor-metric-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  padding:0 12px 12px;
}
.monitor-metric-card{
  background:#fff;
  border-radius:12px;
  padding:12px;
  box-shadow:0 4px 10px rgba(15,23,42,.06);
  border:0.5px solid rgba(226,232,240,.72);
}
.monitor-metric-top{display:flex;align-items:center;justify-content:space-between;gap:6px;}
.monitor-metric-name{font-size:12px;font-weight:600;color:var(--text-primary);}
.monitor-metric-tag{padding:3px 7px;border-radius:499.5px;font-size:10px;font-weight:700;}
.monitor-metric-tag.ok{background:rgba(52,199,89,.12);color:#34C759;}
.monitor-metric-tag.warn{background:rgba(255,149,0,.12);color:#FF9500;}
.monitor-metric-value{display:block;margin-top:8px;font-size:19px;font-weight:800;color:var(--text-primary);}
.monitor-metric-sub{display:block;margin-top:4px;font-size:12px;color:var(--text-secondary);line-height:1.5;min-height:33px;}
.monitor-metric-action{margin-top:8px;font-size:12px;font-weight:600;color:#4A90D9;}

.radar-card{margin:0 12px 12px;padding:14px;border-radius:14px;background:linear-gradient(135deg,#f7fbff,#fff8f0);box-shadow:0 5px 13px rgba(15,23,42,.06);border:0.5px solid rgba(226,232,240,.8)}
.radar-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.radar-title{display:block;font-size:15px;font-weight:800;color:var(--text-primary)}
.radar-desc{display:block;margin-top:4px;font-size:11.5px;color:var(--text-secondary)}
.radar-score{width:64px;height:64px;border-radius:50%;background:linear-gradient(135deg,#4A90D9,#34C759);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 6px 12px rgba(74,144,217,.22)}
.radar-score text:first-child{font-size:18px;font-weight:900}
.radar-score text:last-child{font-size:9.5px;margin-top:1px}
.radar-row{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:9px 0;border-top:0.5px solid rgba(226,232,240,.9)}
.radar-name{display:block;font-size:13px;font-weight:700;color:var(--text-primary)}
.radar-advice{display:block;margin-top:3px;font-size:12px;color:var(--text-secondary)}
.radar-dot{width:11px;height:11px;border-radius:50%;background:#cbd5e1}
.radar-dot.ok{background:#34C759}.radar-dot.warn{background:#FF9500}.radar-dot.unknown{background:#AEAEB2}
.location-window{margin-top:9px;padding:9px;border-radius:10px;background:#fff7e8;border:0.5px solid #ffe2ad;color:#a46400}
.location-window text{display:block;font-size:11.5px;line-height:1.5}
.location-window text:first-child{font-weight:800;color:#8a4f00}


.feature-cards-row { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 0 12px 16px; }
.feature-card {
  background: var(--card-bg); border-radius: 11px; padding: 14px 12px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.04);
  display: flex; justify-content: space-between; align-items: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:active { transform: scale(.985); box-shadow: 0 5px 13px rgba(0,0,0,0.08); }
.fc-left {}
.fc-h4 { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.dot {
  width: 19px; height: 19px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px;
}
.dot.on { background: var(--success-light); color: var(--success); }
.fc-p { font-size: 12px; color: var(--text-secondary); margin-top: 4px; display: block; }
.fc-right { text-align: right; }
.meta-label { font-size: 12px; color: var(--text-muted); display: block; }
.feature-action { font-size: 12px; color: var(--primary); font-weight: 500; display: block; margin-top: 4px; }


.threshold-section { padding: 0 12px 18px; }
.threshold-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-bg);
  border-radius: 11px;
  padding: 12px;
  margin-bottom: 9px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.04);
}
.section-header { margin-bottom: 8px; }
.section-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.ts-left { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ts-icon { font-size: 16px; }
.ts-label { font-size: 13.5px; color: var(--text-primary); }
.radio-group { display: flex; gap: 14px; flex-wrap: wrap; padding-left: 27px; }
.radio-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--text-secondary);
}


.alert-toggle-list { margin-top: 16px; }
.alert-setting-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card-bg); border-radius: 11px; padding: 14px;
  margin-bottom: 8px; box-shadow: 0 1px 5px rgba(0,0,0,0.04);
}
.alert-left { display: flex; align-items: center; gap: 10px; }
.alert-icon-wrap {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.alert-icon-wrap.red { background: #FFF0F0; }
.alert-icon-wrap.blue { background: var(--primary-light); }
.ai-h4 { font-size: 13.5px; font-weight: 500; display: block; color: var(--text-primary); }
.ai-p { font-size: 12px; color: var(--text-secondary); margin-top: 2px; display: block; }


.ts-right {
  display: flex;
  align-items: center;
}

.threshold-text-custom {
  color: #4A90D9;
  font-weight: 500;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 8px;
  background: rgba(74,144,217,.06);
  border-radius: 499.5px;
}

.timeout-picker-mask {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.5);
  z-index: 999;
}

.timeout-picker-popup {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-radius: 12px 12px 0 0;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}

.picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 0.5px solid #f0f0f0;
}

.picker-title {
  font-size: 16px;
  font-weight: 600;
}

.picker-close {
  font-size: 18px;
  color: #999;
  padding: 4px;
}

.picker-scroll {
  max-height: 300px;
}

.picker-grid {
  display: flex;
  flex-wrap: wrap;
  padding: 10px;
  gap: 8px;
}

.picker-option {
  width: calc(33.33% - 6px);
  padding: 10px 0;
  text-align: center;
  border-radius: 6px;
  background: #f5f5f5;
  font-size: 13px;
  color: #333;
  box-sizing: border-box;
}

.picker-option.selected {
  background: rgba(74,144,217,.1);
  color: #4A90D9;
  font-weight: 600;
  border: 1px solid #4A90D9;
}


.h5-.h5-page{
  background:
    radial-gradient(circle at 12% 6%, rgba(91,143,220,.16), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(126,214,196,.18), transparent 28%),
    linear-gradient(180deg,#f7fbff 0%,#fffaf5 100%);
}
.monitor-hero.simple{
  margin:10px 12px;
  padding:17px 14px;
  border-radius:17px;
  text-align:left;
  background:
    radial-gradient(circle at 88% 8%, rgba(126,214,196,.24), transparent 28%),
    linear-gradient(135deg,#ffffff,#f1fbff);
  box-shadow:0 10px 23px rgba(91,143,220,.12);
}
.monitor-page-title{font-size:22px;color:#213044}
.monitor-page-desc{margin-inline:0;line-height:1.65}
.monitor-metric-card,.radar-card,.feature-card,.threshold-setting-row,.alert-setting-row,.threshold-section{
  border-radius:15px;
  background:rgba(255,255,255,.8);
  backdrop-filter:blur(8px);
  box-shadow:0 9px 21px rgba(15,23,42,.07);
}
.monitor-metric-value{font-size:22px}
.monitor-metric-action{font-weight:800}
.radar-card{
  background:
    radial-gradient(circle at 90% 4%, rgba(126,214,196,.24), transparent 28%),
    linear-gradient(135deg,#fff,#f5fff9);
}
.radar-score{
  background:linear-gradient(135deg,#5b8fdc,#7bd6c4);
}
.feature-card{border:0.5px solid rgba(226,232,240,.7)}
.alert-icon-wrap.red{background:#fff0f3;color:#d6557a}
.alert-icon-wrap.blue{background:#eaf4ff;color:#3b7bc8}


.radar-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin:11px 12px 9px;
  padding:19px 15px;
  border-radius:19px;
  background:
    radial-gradient(circle at 88% 10%, rgba(126,214,196,.26), transparent 28%),
    linear-gradient(135deg,#ffffff,#eefaff);
  box-shadow:0 11px 26px rgba(91,143,220,.14);
  border:0.5px solid rgba(255,255,255,.74);
}
.radar-hero.warn{background:radial-gradient(circle at 88% 10%, rgba(255,211,143,.28), transparent 28%),linear-gradient(135deg,#fffaf0,#f2fbff)}
.radar-hero.danger{background:radial-gradient(circle at 88% 10%, rgba(240,124,163,.22), transparent 28%),linear-gradient(135deg,#fff6f8,#f4fbff)}
.radar-hero .monitor-page-title{margin-top:0;font-size:29px;font-weight:950;line-height:1.1}
.radar-hero .monitor-page-desc{font-size:12.5px;line-height:1.65;margin-top:7px;color:#5f6f82}
.hero-mini-stack{flex:0 0 95px;display:flex;flex-direction:column;gap:5px}
.hero-mini-stack text{padding:5px 7px;border-radius:499.5px;background:rgba(255,255,255,.68);font-size:10.5px;font-weight:800;color:#49617d;text-align:center}
.radar-pill-card,.permission-card,.hardware-card,.exception-card,.privacy-card,.task-progress-card{
  margin:0 12px 10px;
  padding:14px;
  border-radius:17px;
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(9px);
  box-shadow:0 9px 21px rgba(15,23,42,.07);
  border:0.5px solid rgba(255,255,255,.72);
}
.section-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}
.section-title{font-size:16px;font-weight:950;color:#213044}
.section-sub{padding:4px 8px;border-radius:499.5px;background:#eef7fb;color:#4d7890;font-size:10.5px;font-weight:800}
.radar-pill-grid{display:grid;grid-template-columns:1fr;gap:7px}
.radar-pill{display:flex;align-items:center;gap:8px;padding:10px;border-radius:13px;background:#f6fafc;border:0.5px solid rgba(226,232,240,.72)}
.radar-pill.ok{background:#f0fbf5}.radar-pill.warn{background:#fff7e8}.radar-pill.unknown{background:#f5f7fa}
.radar-pill-icon{width:26px;height:26px;line-height:26px;text-align:center;border-radius:9px;background:#fff;font-size:11px;font-weight:950;color:#5b8fdc}
.radar-pill-label{display:block;font-size:11px;color:#6c7a8f}
.radar-pill-value{display:block;margin-top:2px;font-size:15px;font-weight:900;color:#213044}
.exception-card{background:linear-gradient(135deg,#fff7e8,#f7fbff)}
.exception-card.danger{background:linear-gradient(135deg,#fff2f5,#f7fbff)}
.exception-title{display:block;font-size:17px;font-weight:950;color:#213044}
.exception-desc{display:block;margin-top:5px;font-size:12px;line-height:1.6;color:#65748a}
.exception-actions,.privacy-actions,.quick-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}
.exception-actions button,.privacy-actions button,.quick-action-grid button{
  height:39px;line-height:39px;border-radius:499.5px;background:linear-gradient(135deg,#5b8fdc,#7bd6c4);color:#fff;font-size:12.5px;font-weight:900
}
.exception-actions button.light,.privacy-actions button.light{background:#eef7fb;color:#3f7894}
.exception-actions button::after,.privacy-actions button::after,.quick-action-grid button::after{border:0}
.privacy-card{background:radial-gradient(circle at 88% 8%, rgba(126,214,196,.2), transparent 28%),linear-gradient(135deg,#fff,#f6fffb)}
.privacy-title{display:block;font-size:16px;font-weight:950;color:#213044}
.privacy-desc{display:block;margin-top:5px;font-size:12px;line-height:1.65;color:#65748a}
.task-progress-row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-top:0.5px solid rgba(226,232,240,.7)}
.task-progress-row:first-of-type{border-top:0}
.task-progress-title{font-size:14.5px;font-weight:900;color:#213044}
.task-progress-status{padding:4px 8px;border-radius:499.5px;background:#fff7e8;color:#a46400;font-size:11px;font-weight:800}
.task-progress-row.done .task-progress-status{background:#eaf8ef;color:#2aa56f}
.quick-action-grid{margin:0 12px 12px}
.auto-rule-box{padding:11px;border-radius:12px;background:#FFF8F2;border:0.5px solid #F4E3D9;margin-bottom:6px;}
.auto-rule-box text{display:block}
.auto-rule-box text:first-child{font-size:14px;font-weight:950;color:#172033}
.auto-rule-box text:nth-child(2){margin-top:4px;font-size:11.5px;line-height:1.55;color:#6B5A52}
.auto-rule-box button{margin-top:8px;height:35px;border:0;border-radius:499.5px;background:#24A26B;color:#fff;font-size:12.5px;font-weight:900}
.device-ready-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;margin-top:9px}
.device-ready-grid view{min-height:43px;border-radius:10px;background:#FFF8F2;border:0.5px solid #F4E3D9;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:0 4px}
.device-ready-grid text:first-child{font-size:11.5px;font-weight:900;color:#172033}
.device-ready-grid text:last-child{margin-top:3px;font-size:10.5px;font-weight:800;color:#D9826B}
.hardware-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.hardware-link{font-size:11px;font-weight:900;color:#2F8A68}
.hardware-link.danger{color:#B9453D}
.device-form{margin-top:9px;padding:9px;border-radius:11px;background:#FFF8F2;border:0.5px solid #F4E3D9}
.device-form-picker,.device-form-input{min-height:38px;border-radius:8px;background:#fff;border:0.5px solid #F0DDD2;padding:0 10px;margin-bottom:6px;font-size:13px;color:#172033;display:flex;align-items:center}
.device-form-input{box-sizing:border-box;width:100%}
.device-form-switch{min-height:37px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:#3B2A25;font-size:13px;font-weight:800}
.device-form-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:7px}
.device-form-actions button{height:37px;line-height:37px;border-radius:499.5px;background:#D9826B;color:#fff;font-size:13px;font-weight:900}
.device-form-actions button.light{background:#fff;border:0.5px solid #F0DDD2;color:#A75443}
.threshold-section{margin:0 12px 18px;padding:14px}
.monitor-metric-grid,.feature-cards-row,.radar-card{display:none}


.h5-.h5-page{background:#F7FAFC}
.radar-hero,.radar-hero.warn,.radar-hero.danger,.radar-pill-card,.permission-card,.hardware-card,.exception-card,.privacy-card,.task-progress-card,.threshold-section,.alert-setting-row,.threshold-setting-row{
  background:#fff;
  border:0.5px solid #E7EDF4;
  box-shadow:0 6px 15px rgba(15,23,42,.06);
}
.radar-hero .monitor-page-title{color:#172033}
.section-title,.privacy-title,.exception-title,.task-progress-title,.radar-pill-value{color:#172033}
.section-sub{background:#F1F6FA;color:#667386}
.radar-pill{background:#F7FAFC;border-color:#E7EDF4}
.radar-pill.ok{background:#EAF8EF}
.radar-pill.warn{background:#FFF4DC}
.radar-pill.unknown{background:#F2F5F8}
.radar-pill-icon{color:#24A26B}
.exception-actions button,.privacy-actions button,.quick-action-grid button{background:#24A26B}
.exception-actions button.light,.privacy-actions button.light{background:#F1F6FA;color:#172033}
.task-progress-row.done .task-progress-status{background:#EAF8EF;color:#24A26B}
.task-progress-status{background:#FFF4DC;color:#B86B00}

.place-safe-card{
  margin:0 12px 10px;
  padding:14px;
  border-radius:17px;
  background:#fff;
  border:0.5px solid #E7EDF4;
  box-shadow:0 6px 15px rgba(15,23,42,.06);
}
.place-safe-map{
  position:relative;
  height:110px;
  border-radius:15px;
  overflow:hidden;
  background:
    linear-gradient(135deg,rgba(91,143,220,.08),rgba(36,162,107,.10)),
    repeating-linear-gradient(90deg,rgba(231,237,244,.8) 0,rgba(231,237,244,.8) 1px,transparent 1px,transparent 17px);
}
.place-path{
  position:absolute;
  left:45px;
  right:45px;
  top:54px;
  border-top:3px dashed rgba(36,162,107,.35);
  transform:rotate(-8deg);
}
.place-bubble{
  position:absolute;
  width:35px;
  height:35px;
  line-height:35px;
  text-align:center;
  border-radius:13px;
  color:#fff;
  font-size:13px;
  font-weight:950;
  z-index:2;
  box-shadow:0 7px 14px rgba(15,23,42,.12);
}
.place-bubble.home{left:17px;bottom:17px;background:#172033}
.place-bubble.hospital{right:21px;top:17px;background:#D93D42}
.place-bubble.park{left:45%;top:39px;background:#24A26B}
.place-safe-list{margin-top:8px}
.place-safe-list>view{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:9px 0;border-top:0.5px solid #E7EDF4}
.place-safe-list>view:first-child{border-top:0}
.place-guard-row>view{display:flex;flex-direction:column;gap:4px;min-width:0}
.place-safe-list text:first-child{font-size:13.5px;font-weight:900;color:#172033}
.place-safe-list text:last-child{font-size:11.5px;font-weight:800;color:#667386}


.exception-actions,.privacy-actions,.quick-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.exception-actions button,.privacy-actions button,.quick-action-grid button{width:100%;margin:0;padding:0 8px}
.exception-actions button.light,.privacy-actions button.light{background:#F1F6FA!important;color:#172033!important}


.section-sub,.monitor-metric-tag,.task-progress-status,.radar-pill-label{
  min-height:22px;
  padding:4px 9px;
  border-radius:499.5px;
  box-sizing:border-box;
  font-size:11px;
  line-height:1.2;
  font-weight:900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.section-sub{background:#F2F5F8;color:#667386}
.monitor-metric-tag.ok{background:#EAF8EF;color:#24A26B}
.monitor-metric-tag.warn,.task-progress-status{background:#FFF4DC;color:#B86B00}
.task-progress-row.done .task-progress-status{background:#EAF8EF;color:#24A26B}
.radar-pill-label{min-height:auto;padding:0;background:transparent;color:#667386;justify-content:flex-start}


.h5-.h5-page{
  background:
    radial-gradient(circle at 12% 4%, rgba(239,154,130,.16), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(255,213,154,.2), transparent 28%),
    linear-gradient(180deg,#FFF8F1 0%,#FFFDF8 100%);
}
.radar-hero,.radar-hero.warn,.radar-hero.danger,.radar-pill-card,.permission-card,.hardware-card,.exception-card,.privacy-card,.task-progress-card,.place-safe-card,.threshold-section,.alert-setting-row,.threshold-setting-row{
  background:rgba(255,255,255,.9);
  border-color:#F0DDD2;
  box-shadow:0 8px 17px rgba(140,84,58,.08);
}
.radar-hero .monitor-page-title,.section-title,.privacy-title,.exception-title,.task-progress-title,.radar-pill-value,.place-safe-list text:first-child{color:#3B2A25}
.radar-hero .monitor-page-desc,.section-sub,.radar-pill-label,.privacy-desc,.exception-desc,.place-safe-list text:last-child{color:#8A746B}
.radar-pill{background:#FFF8F1;border-color:#F0DDD2}
.radar-pill.ok{background:#FFF1EA}
.radar-pill.warn,.task-progress-status{background:#FFF5DF;color:#B87825}
.radar-pill-icon{color:#D9826B}
.exception-actions button,.privacy-actions button,.quick-action-grid button{background:linear-gradient(135deg,#E39176,#D9826B)!important}
.exception-actions button.light,.privacy-actions button.light{background:#FFF4EA!important;color:#5A3B31!important}
.task-progress-row.done .task-progress-status{background:#FFF1EA;color:#C97854}
.place-bubble.home{background:#5A3B31}.place-bubble.park{background:#D9826B}.place-bubble.hospital{background:#D94B55}
.place-safe-map{background:linear-gradient(135deg,rgba(217,130,107,.08),rgba(255,213,154,.12)),repeating-linear-gradient(90deg,rgba(240,221,210,.78) 0,rgba(240,221,210,.78) 1px,transparent 1px,transparent 17px)}

.care-med-card{background:rgba(255,255,255,.92);border:0.5px solid #f1ded2;border-radius:14px;padding:14px;margin:11px 0;box-shadow:0 9px 22px rgba(111,72,47,.07)}
.med-row,.note-row{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:10px 0;border-bottom:0.5px solid #f3e6dc}
.med-name,.note-content{display:block;color:#2b1e1a;font-size:15px;font-weight:800;line-height:1.45}
.med-meta,.note-meta{display:block;color:#8a7970;font-size:12px;margin-top:3px;line-height:1.4}
.mini-action{margin:0;min-width:52px;height:29px;line-height:29px;border-radius:499.5px;background:#2fa56d;color:#fff;font-size:12px;font-weight:800;padding:0 12px}
.note-row{justify-content:flex-start;align-items:flex-start}
.note-dot{width:8px;height:8px;border-radius:50%;background:#d9826b;margin-top:6px;flex:0 0 auto}
.soft-full-btn{margin-top:10px;height:38px;line-height:38px;border-radius:499.5px;background:#fff1e8;color:#a94f42;font-size:14px;font-weight:800}

.phone-context{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:9px}
.phone-context>view{padding:9px;border-radius:11px;background:#FFF8F1;border:0.5px solid #F0DDD2}
.phone-context-label{display:block;font-size:11px;color:#8A746B;font-weight:800}
.phone-context-value{display:block;margin-top:4px;font-size:14px;color:#3B2A25;font-weight:950;word-break:break-all}
.permission-list{display:grid;gap:6px}
.permission-row{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:10px;border-radius:12px;background:#FFF8F1;border:0.5px solid #F0DDD2}
.permission-row.ok{background:#FFF1EA}.permission-row.warn{background:#FFF5DF}
.permission-title{display:block;font-size:14px;font-weight:950;color:#3B2A25}
.permission-tip{display:block;margin-top:3px;font-size:11.5px;color:#8A746B;line-height:1.45}
.permission-state{flex:0 0 auto;min-width:56px;text-align:center;padding:4px 8px;border-radius:499.5px;background:#fff;color:#B87825;font-size:11px;font-weight:950}
.permission-row.ok .permission-state{color:#C97854}
.bp-summary{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:11px;border-radius:13px;background:#FFF8F1;border:0.5px solid #F0DDD2;margin-bottom:7px}
.bp-summary.ok{background:#FFF1EA}.bp-summary.warn{background:#FFF5DF}
.bp-title{display:block;font-size:14px;font-weight:950;color:#3B2A25}
.bp-desc{display:block;margin-top:3px;font-size:11.5px;color:#8A746B}
.bp-value{font-size:15px;font-weight:950;color:#B87825;white-space:nowrap}
.hardware-row{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:10px 0;border-top:0.5px solid #F0DDD2}
.hardware-row:first-of-type{border-top:0}
.hardware-name{display:block;font-size:14px;font-weight:950;color:#3B2A25}
.hardware-meta{display:block;margin-top:3px;font-size:11.5px;color:#8A746B;line-height:1.45}
.hardware-type{flex:0 0 auto;padding:4px 8px;border-radius:499.5px;background:#FFF1EA;color:#C97854;font-size:11px;font-weight:950}

.h5-.h5-page{background:#F6F7F5}
.radar-hero,.radar-pill-card,.permission-card,.hardware-card,.exception-card,.privacy-card,.task-progress-card,.place-safe-card,.care-med-card,.threshold-section,.alert-setting-row,.threshold-setting-row{
  background:#fff!important;border:0.5px solid #DDE6EB!important;box-shadow:0 6px 15px rgba(23,32,51,.06)!important;border-radius:12px!important;
}
.radar-hero .monitor-page-title,.section-title,.privacy-title,.exception-title,.task-progress-title,.radar-pill-value,.hardware-name,.bp-title{color:#172033!important}
.radar-hero .monitor-page-desc,.section-sub,.radar-pill-label,.privacy-desc,.exception-desc,.hardware-meta,.bp-desc{color:#667386!important}
.section-sub{background:#F1F6FA!important;color:#667386!important}
.radar-pill{background:#F8FAFB!important;border-color:#DDE6EB!important;border-radius:9px!important}
.radar-pill.ok{background:#EAF5EF!important}
.radar-pill.warn{background:#FFF4DC!important}
.radar-pill.unknown{background:#F2F5F8!important}
.radar-pill-icon{background:#fff!important;color:#2F8A68!important}
.hardware-card{position:relative;overflow:hidden}
.hardware-card::before{content:'设备登记台';display:block;margin-bottom:8px;color:#172033;font-size:18px;font-weight:950}
.bp-summary,.phone-context>view,.permission-row{background:#F8FAFB!important;border-color:#DDE6EB!important;border-radius:9px!important}
.device-ready-grid{grid-template-columns:repeat(4,1fr);gap:5px}
.device-ready-grid view{min-height:50px;background:#F8FAFB;border-color:#DDE6EB;border-radius:8px}
.device-ready-grid text:first-child{font-size:11px;color:#172033}
.device-ready-grid text:last-child{font-size:10px;color:#2F8A68}
@media (max-width:360px){.device-ready-grid{grid-template-columns:repeat(2,1fr)}}
.exception-actions button,.privacy-actions button,.quick-action-grid button{background:#2F8A68!important}
.exception-actions button.light,.privacy-actions button.light{background:#F1F6FA!important;color:#172033!important}


.h5-.h5-page{
  --blue: #2f80ed;
  --green: #21a67a;
  --orange: #f59f00;
  --red: #e5484d;
  --ink: #192235;
  --muted: #7d8797;
  --line: #e8eef7;
  --bg: #f5f7fb;
  background: var(--bg);
}

.container {
  min-height: 100vh;
  padding: 12px 12px 130px;
  box-sizing: border-box;
}

.loading-card,
.card,
.metric-card {
  background: #fff;
  border: 0.5px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 5px 14px rgba(31, 49, 77, 0.05);
}

.loading-card {
  padding: 22px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.error-card {
  padding: 24px 15px;
  background: #fff;
  border: 0.5px solid var(--line);
  border-radius: 11px;
  box-shadow: 0 5px 14px rgba(31, 49, 77, 0.05);
  text-align: center;
}

.error-title {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.error-desc {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.retry-btn {
  margin: 14px auto 0;
  width: 130px;
  height: 38px;
  line-height: 38px;
  border-radius: 499.5px;
  background: var(--blue);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
}

.retry-btn::after {
  border: 0;
}

.report-hero {
  min-height: 130px;
  border-radius: 12px;
  padding: 17px;
  color: #fff;
  background: linear-gradient(135deg, #1f7a8c 0%, #2f80ed 62%, #6c9f43 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 9px 20px rgba(47, 128, 237, 0.22);
}

.eyebrow {
  display: block;
  font-size: 11.5px;
  opacity: 0.82;
}

.hero-title {
  display: block;
  margin-top: 4px;
  font-size: 23px;
  font-weight: 800;
}

.hero-desc {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.95;
}

.score-ring {
  flex: 0 0 78px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 5px solid rgba(255,255,255,0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.16);
}

.score-num {
  font-size: 22px;
  font-weight: 900;
}

.score-label {
  margin-top: 1px;
  font-size: 12px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 11px;
}

.metric-card {
  padding: 12px;
}

.metric-label,
.metric-sub,
.section-note,
.alert-time,
.view-row text:last-child {
  color: var(--muted);
}

.metric-label {
  display: block;
  font-size: 11.5px;
}

.metric-value {
  display: block;
  margin-top: 6px;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
}

.metric-value.ok { color: var(--green); }
.metric-value.warn { color: var(--orange); }
.metric-value.danger { color: var(--red); }

.metric-sub {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.card {
  margin-top: 11px;
  padding: 13px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.section-note {
  font-size: 12px;
}

.week-chart {
  width: 100%;
  height: 180px;
  display: block;
  margin-bottom: 9px;
}

.empty {
  padding: 14px 0;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
}

.alert-row,
.view-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 10px 0;
  border-top: 0.5px solid var(--line);
}

.alert-row:first-of-type,
.view-row:first-of-type {
  border-top: 0;
}

.alert-title {
  display: block;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.45;
}

.alert-time {
  display: block;
  margin-top: 3px;
  font-size: 12px;
}

.status-pill {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 499.5px;
  background: #edf4ff;
  color: var(--blue);
  font-size: 12px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 5px;
}

.contact-btn {
  margin: 0;
  min-height: 31px;
  padding: 0 10px;
  border-radius: 499.5px;
  background: #f3f8ff;
  color: #1d5fbf;
  font-size: 11.5px;
  line-height: 31px;
}

.contact-btn::after {
  border: 0;
}

.view-row text {
  font-size: 12px;
}

.tip-card {
  margin-bottom: 9px;
}

.tip-row {
  padding: 9px 0;
  border-top: 0.5px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
}

.tip-row:first-of-type {
  border-top: 0;
}

.chart-card{
  background:linear-gradient(180deg,#ffffff,#f7fbff);
}
.insight-card{
  background:#f8fbff;
  border-color:#dce9fb;
}
.insight-row{
  display:flex;
  gap:7px;
  align-items:flex-start;
  padding:9px 0;
  border-top:0.5px solid var(--line);
}
.insight-row:first-of-type{border-top:0;}
.insight-badge{
  flex:0 0 auto;
  padding:4px 7px;
  border-radius:499.5px;
  background:#e9f2ff;
  color:var(--blue);
  font-size:10.5px;
  font-weight:700;
}
.insight-text{
  flex:1;
  color:var(--ink);
  font-size:12.5px;
  line-height:1.6;
}
.secondary-card{
  background:#fff;
}

.weekly-card{background:linear-gradient(135deg,#fff8f0,#f4fbff)}
.weekly-summary{display:block;font-size:14px;font-weight:800;line-height:1.7;color:var(--ink)}
.weekly-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:10px}
.weekly-grid>view{padding:8px 6px;border-radius:9px;background:rgba(255,255,255,.78);border:0.5px solid var(--line)}

.monthly-card{background:linear-gradient(180deg,#fffdf8,#f7fbff)}
.monthly-score{display:flex;align-items:flex-end;justify-content:space-between;gap:9px;margin-bottom:10px}
.monthly-score-num{font-size:29px;font-weight:950;color:#1f7a8c}
.monthly-score-label{margin-left:6px;font-size:12.5px;font-weight:800;color:#21a67a}
.monthly-period{font-size:11px;color:var(--muted)}
.monthly-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;margin-bottom:9px}
.monthly-grid>view{padding:9px;border-radius:9px;background:#fff;border:0.5px solid var(--line)}
.m-label{display:block;font-size:11px;color:var(--muted)}
.m-value{display:block;margin-top:4px;font-size:14.5px;font-weight:900;color:var(--ink)}
.care-calendar{display:grid;grid-template-columns:repeat(10,1fr);gap:4px;margin:9px 0}
.care-day{height:21px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:9.5px;background:#eef2f7;color:#8a95a7}
.care-day.ok{background:#e9f8ef;color:#21a67a}
.care-day.warn{background:#fff4df;color:#c47700}
.calendar-legend{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:7px;color:var(--muted);font-size:11px}
.dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:3px;background:#eef2f7}.dot.ok{background:#21a67a}.dot.warn{background:#f59f00}.dot.empty{background:#cbd5e1}
.dot.danger{background:#e5484d}
.report-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:10px}
.report-actions button{height:36px;line-height:36px;border-radius:10px;background:#e9f2ff;color:#1d5fbf;font-size:12px;font-weight:800}
.report-actions button::after{border:0}

.calendar-card{background:linear-gradient(135deg,#fff8f0,#f6fbff)}
.calendar-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:6px}
.calendar-summary>view{padding:9px;border-radius:10px;background:rgba(255,255,255,.78);border:0.5px solid var(--line)}
.care-day.danger{background:#ffe8ea;color:#e5484d}
.task-card{background:linear-gradient(180deg,#fff,#fff9fb)}
.task-create{display:grid;grid-template-columns:1fr 66px 56px;gap:6px;margin-bottom:7px}
.task-create input{height:34px;padding:0 9px;border-radius:9px;background:#fff;border:0.5px solid var(--line);font-size:12px;box-sizing:border-box}
.task-create button{height:34px;line-height:34px;border-radius:9px;background:#f06f9c;color:#fff;font-size:11.5px;font-weight:800}
.task-create button::after{border:0}
.task-row{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:10px 0;border-top:0.5px solid var(--line)}
.task-row:first-of-type{border-top:0}
.task-row.done{opacity:.62}
.task-title{display:block;font-size:13.5px;font-weight:800;color:var(--ink)}
.task-time{display:block;margin-top:3px;font-size:11px;color:var(--muted)}
.task-actions{display:flex;gap:4px;flex:0 0 auto}
.task-row button{margin:0;width:52px;height:31px;line-height:31px;border-radius:499.5px;background:#f06f9c;color:#fff;font-size:11.5px;font-weight:800}
.task-row button.light{background:#e9f2ff;color:#1d5fbf}
.task-row button.danger{width:36px;background:#fff0f0;color:#e5484d}
.task-row button::after{border:0}
.alert-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.alert-actions button{margin:0;height:26px;line-height:26px;padding:0 8px;border-radius:499.5px;background:#f3f8ff;color:#1d5fbf;font-size:10.5px}
.alert-actions button::after{border:0}
.alert-flow{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin-top:6px}
.alert-flow text{height:20px;line-height:20px;text-align:center;border-radius:499.5px;background:#F1F5F9;color:#7A8797;font-size:10px;font-weight:800}
.alert-flow text.active{background:#EAF8EF;color:#228A50}


.h5-.h5-page{
  background:
    radial-gradient(circle at 12% 4%, rgba(91,143,220,.15), transparent 30%),
    radial-gradient(circle at 86% 0%, rgba(240,124,163,.12), transparent 28%),
    linear-gradient(180deg,#f7fbff 0%,#fffaf7 100%);
}
.report-hero{
  border-radius:18px;
  background:
    radial-gradient(circle at 82% 12%, rgba(255,255,255,.22), transparent 28%),
    linear-gradient(135deg,#5b8fdc,#7bd6c4);
  box-shadow:0 12px 27px rgba(91,143,220,.22);
}
.score-ring{
  border-color:rgba(255,255,255,.72);
}
.metric-card,.card{
  border-radius:15px;
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(8px);
  box-shadow:0 9px 21px rgba(15,23,42,.07);
}
.weekly-card,.calendar-card,.task-card,.monthly-card{
  border:0.5px solid rgba(255,255,255,.72);
}
.weekly-card{
  background:
    radial-gradient(circle at 88% 4%, rgba(255,211,143,.22), transparent 28%),
    linear-gradient(135deg,#fffaf2,#f5fbff);
}
.calendar-card{
  background:
    radial-gradient(circle at 8% 4%, rgba(126,214,196,.18), transparent 28%),
    linear-gradient(135deg,#f7fbff,#fffaf2);
}
.task-card{
  background:
    radial-gradient(circle at 90% 6%, rgba(240,124,163,.18), transparent 28%),
    linear-gradient(135deg,#fff,#fff7fa);
}
.monthly-card{
  background:
    radial-gradient(circle at 8% 2%, rgba(255,211,143,.18), transparent 28%),
    linear-gradient(135deg,#fffdf8,#f7fbff);
}
.care-day{
  height:24px;
  border-radius:8px;
  font-weight:800;
}
.task-create input,.task-create button,.task-row button,.alert-actions button,.report-actions button{
  border-radius:499.5px;
}

.container{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue",sans-serif}
.eyebrow{font-size:12px;font-weight:800}
.hero-title{font-size:27px;font-weight:950;line-height:1.12}
.hero-desc{font-size:14px;line-height:1.65}
.hero-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}
.hero-tags text{padding:4.5px 8px;border-radius:499.5px;background:rgba(255,255,255,.22);font-size:10.5px;font-weight:800;color:#fff}
.score-ring{width:84px;height:84px;flex-basis:84px;background:rgba(255,255,255,.2);backdrop-filter:blur(6px)}
.score-num{font-size:25px}
.score-label{font-size:10.5px;font-weight:800}
.metric-grid{grid-template-columns:1fr;gap:8px}
.metric-card{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px 14px}
.metric-label{font-size:12px;font-weight:800}
.metric-value{font-size:18px;margin-top:0;text-align:right}
.metric-sub{font-size:11px;text-align:right}
.priority-card{padding:15px}
.section-title{font-size:16px;font-weight:950}
.section-note{padding:3.5px 7px;border-radius:499.5px;background:#f3f7fb;font-size:10.5px;font-weight:700}
.weekly-summary{font-size:15.5px}
.weekly-grid{grid-template-columns:repeat(2,1fr)}
.weekly-grid>view,.calendar-summary>view,.monthly-grid>view{border-radius:12px;padding:10px;background:rgba(255,255,255,.76)}
.m-label{font-size:11.5px}
.m-value{font-size:16px}
.care-calendar{grid-template-columns:repeat(7,1fr);gap:5px}
.care-day{height:28px;font-size:10.5px}
.task-card{margin-top:13px}
.task-create{grid-template-columns:1fr 66px;grid-template-areas:"title time" "btn btn"}
.task-create input:first-child{grid-area:title}
.task-time-input{grid-area:time}
.task-create button{grid-area:btn;width:100%;font-size:12.5px}
.task-row{padding:12px 0}
.task-title{font-size:15px}
.task-time{font-size:11.5px}
.chart-card{padding-bottom:13px;margin-bottom:11px}
.week-chart{height:150px;margin-bottom:0}
.report-actions button{height:39px;line-height:39px;font-size:12.5px}


.h5-.h5-page{background:#F7FAFC}
.report-hero{
  background:#172033;
  box-shadow:0 8px 18px rgba(23,32,51,.18);
}
.metric-card,.card,.weekly-card,.calendar-card,.task-card,.monthly-card{
  background:#fff;
  border:0.5px solid #E7EDF4;
  box-shadow:0 6px 15px rgba(15,23,42,.06);
}
.section-title,.metric-value,.weekly-summary,.m-value,.task-title,.insight-text{color:#172033}
.section-note{background:#F1F6FA;color:#667386}
.metric-value.ok,.care-day.ok{color:#24A26B}
.metric-value.warn,.care-day.warn{color:#B86B00}
.metric-value.danger,.care-day.danger{color:#D93D42}
.task-create button,.task-row button{background:#24A26B}
.task-row button.danger{background:#FFF0F2;color:#D93D42}
.report-actions button{background:#F1F6FA;color:#172033}


.section-note,.status-pill,.insight-badge,.hero-tags text,.score-label,.monthly-score-label{
  min-height:22px;
  padding:4px 9px;
  border-radius:499.5px;
  box-sizing:border-box;
  font-size:11px;
  line-height:1.2;
  font-weight:900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.section-note,.status-pill,.insight-badge{background:#F2F5F8;color:#667386}
.hero-tags text{background:rgba(255,255,255,.18);color:#fff}
.score-label,.monthly-score-label{background:#EAF8EF;color:#24A26B}


.task-create button,.report-actions button,.task-row button,.alert-actions button{
  width:100%;
  margin:0;
  padding:0 8px;
  box-sizing:border-box;
}
.task-actions{display:grid;grid-template-columns:46px 36px;gap:5px}
.task-row button{height:29px;line-height:29px}
.task-row button.danger{background:#FFF0F2!important;color:#D93D42!important}


.h5-.h5-page{
  background:
    radial-gradient(circle at 12% 4%, rgba(239,154,130,.16), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(255,213,154,.22), transparent 28%),
    linear-gradient(180deg,#FFF8F1 0%,#FFFDF8 100%);
}
.report-hero{background:linear-gradient(135deg,#8A5A44,#D9826B);box-shadow:0 9px 19px rgba(140,84,58,.18)}
.metric-card,.card,.weekly-card,.calendar-card,.task-card,.monthly-card{
  background:rgba(255,255,255,.9);
  border-color:#F0DDD2;
  box-shadow:0 8px 17px rgba(140,84,58,.08);
}
.section-title,.metric-value,.weekly-summary,.m-value,.task-title,.insight-text{color:#3B2A25}
.metric-label,.metric-sub,.section-note,.m-label,.task-time{color:#8A746B}
.section-note,.status-pill,.insight-badge{background:#FFF4EA;color:#8A746B}
.metric-value.ok,.care-day.ok{color:#C97854}
.metric-value.warn,.care-day.warn{color:#B87825}
.task-create button,.task-row button{background:linear-gradient(135deg,#E39176,#D9826B)!important}
.task-row button.light,.report-actions button{background:#FFF4EA!important;color:#5A3B31!important}
.care-day.ok,.score-label,.monthly-score-label{background:#FFF1EA!important;color:#C97854!important}
.care-day.warn{background:#FFF5DF;color:#B87825}

.h5-.h5-page{background:#F6F7F5}
.report-hero{background:#172033!important;border-radius:14px!important;box-shadow:0 11px 24px rgba(23,32,51,.18)!important}
.hero-tags text{background:rgba(255,255,255,.12);border:0.5px solid rgba(255,255,255,.18);color:#fff}
.score-ring{background:#fff!important;border-color:#2F8A68!important}
.score-num{color:#172033}
.score-label{background:#EAF5EF!important;color:#2F8A68!important}
.metric-card,.card,.weekly-card,.calendar-card,.task-card,.monthly-card,.chart-card,.insight-card{
  background:#fff!important;border:0.5px solid #DDE6EB!important;box-shadow:0 6px 15px rgba(23,32,51,.06)!important;border-radius:12px!important;
}
.section-note,.status-pill,.insight-badge{background:#F1F6FA!important;color:#667386!important}
.weekly-grid>view,.calendar-summary>view,.monthly-grid>view{background:#F8FAFB!important;border-color:#DDE6EB!important}
.week-chart{height:170px}
.chart-card{position:relative}
.chart-card::before{content:'周趋势';display:block;margin-bottom:9px;color:#172033;font-size:17px;font-weight:950}
.monthly-card{position:relative;overflow:hidden}
.monthly-card::before{content:'近30天资料包';display:block;margin-bottom:9px;color:#172033;font-size:17px;font-weight:950}
.alert-flow text{background:#F1F6FA;color:#667386}
.alert-flow text.active{background:#EAF5EF;color:#2F8A68}
.report-actions button,.task-create button,.task-row button{background:#D9826B!important}
.report-actions button.light,.task-row button.light{background:#F1F6FA!important;color:#172033!important}


.container{min-height:100vh;padding-bottom:30px;background:linear-gradient(180deg,#fff8f1 0%,#f7fbf7 48%,#f6f8fb 100%)}
.membership-header{padding:25px 17px 18px;background:radial-gradient(circle at 15% 18%,rgba(255,214,190,.85),transparent 32%),linear-gradient(135deg,#fff3e6,#edf8ff)}
.membership-header-art{display:block;width:100%;border-radius:18px;margin-bottom:12px;box-shadow:0 9px 21px rgba(154,112,82,.12)}
.header-title{display:block;color:#4d3b31;font-size:22px;font-weight:900}.header-desc{display:block;margin-top:5px;color:#8f786a;font-size:13px;line-height:1.6}
.status-card-top,.plan-card,.faq-item{background:rgba(255,255,255,.82);border:0.5px solid rgba(255,255,255,.76);box-shadow:0 9px 23px rgba(154,112,82,.1);backdrop-filter:blur(7px)}
.status-card-top{display:flex;justify-content:space-between;gap:8px;margin:12px;padding:14px;border-radius:16px}.status-copy{flex:1}.status-eyebrow{display:block;color:#9a8272;font-size:11px}.status-title{display:block;margin-top:4px;color:#4d3b31;font-size:17px;font-weight:900}.status-desc{display:block;margin-top:5px;color:#8d7669;font-size:12px;line-height:1.6}.status-tag{padding:4px 8px;border-radius:499.5px;font-size:11px;font-weight:800}.status-tag.active{background:rgba(105,169,132,.13);color:#5f9c7d}.status-tag.idle{background:rgba(217,106,114,.12);color:#d96a72}
.hero-card{position:relative;margin:0 12px;border-radius:18px;overflow:hidden;box-shadow:0 10px 25px rgba(80,91,120,.18)}.hero-bg{position:absolute;inset:0;background:radial-gradient(circle at 85% 18%,rgba(255,224,166,.32),transparent 30%),linear-gradient(135deg,#d98774,#76aaa2)}.hero-content{position:relative;z-index:1;padding:18px 16px;color:#fff}.hero-top{display:flex;align-items:center;gap:6px;margin-bottom:8px}.hero-icon{font-size:16px;font-weight:900}.hero-badge-wrap{padding:2.5px 7px;border-radius:499.5px;background:rgba(255,255,255,.22)}.hero-badge{font-size:10px;font-weight:800}.hero-name{display:block;font-size:19px;font-weight:900}.hero-desc{display:block;margin-top:4px;font-size:12px;opacity:.86}.hero-price-row{display:flex;align-items:baseline;gap:3px;margin:12px 0}.hero-price{font-size:35px;font-weight:950}.hero-period{font-size:13px;opacity:.86}.hero-original{margin-left:6px;font-size:13.5px;text-decoration:line-through;opacity:.58}.hero-features{display:flex;flex-wrap:wrap;gap:6px 12px;margin-bottom:15px}.hero-feat{display:flex;align-items:center;gap:5px;min-width:44%}.feat-dot{width:4px;height:4px;border-radius:50%;background:#fff}.feat-text{font-size:11.5px}.hero-btn{height:41px;line-height:41px;border-radius:12px;text-align:center;background:rgba(255,255,255,.22);font-size:15px;font-weight:900}
.plans-section,.faq-section{padding:18px 12px 0}.section-title{display:block;margin-bottom:10px;color:#4d3b31;font-size:16px;font-weight:900}.plans-list{display:flex;flex-direction:column;gap:9px}.plan-card{position:relative;padding:14px 12px;border-radius:15px}.plan-card-active{border-color:#d96a72;background:rgba(255,248,246,.9)}.plan-rec{position:absolute;top:0;right:12px;padding:3px 8px;border-radius:0 0 7px 7px;background:#d96a72;color:#fff;font-size:10px;font-weight:800}.plan-top{display:flex;align-items:center;gap:8px;margin-bottom:8px}.plan-icon{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,#ffe6dc,#eef9ef);color:#c9675e;font-size:11px;font-weight:900}.plan-info{flex:1}.plan-name{display:block;color:#4d3b31;font-size:15px;font-weight:900}.plan-desc{display:block;margin-top:2px;color:#8d7669;font-size:11.5px}.plan-price-row{display:flex;align-items:baseline;gap:3px;margin-bottom:9px}.plan-price{color:#4d3b31;font-size:26px;font-weight:950}.plan-price-unit,.plan-original{color:#9a8272;font-size:12px}.plan-original{text-decoration:line-through;margin-left:5px}.plan-features{padding-top:8px;border-top:0.5px solid rgba(154,130,114,.12);margin-bottom:9px}.plan-feat{display:flex;gap:5px;padding:3.5px 0}.plan-feat-check{color:#69a984;font-weight:900}.plan-feat-text{color:#7d6b60;font-size:12px}.plan-check{display:flex;gap:4px;margin-bottom:7px;color:#d96a72;font-size:12px;font-weight:800}.plan-action-btn{height:36px;line-height:36px;border-radius:11px;text-align:center;background:rgba(217,106,114,.1);color:#d96a72;font-size:13px;font-weight:850}.plan-action-btn-active{background:linear-gradient(135deg,#ec9a82,#d96a72);color:#fff}
.faq-item{margin-bottom:7px;border-radius:13px;overflow:hidden}.faq-q{display:flex;justify-content:space-between;align-items:center;padding:13px 12px}.faq-q-text{flex:1;color:#4d3b31;font-size:13.5px;font-weight:850}.faq-arrow{color:#9a8272;font-size:18px;transition:.25s}.faq-arrow-open{transform:rotate(90deg)}.faq-a{padding:0 12px 12px}.faq-a-text{color:#8d7669;font-size:12.5px;line-height:1.7}.footer-safe{padding:19px 16px 10px;text-align:center}.footer-safe-text{color:#a08d82;font-size:11px}
.monthly-service-card{margin:18px 12px 0;padding:15px 13px;border-radius:16px;background:linear-gradient(135deg,#fffaf0,#eefaf4);border:0.5px solid rgba(255,224,188,.9);box-shadow:0 9px 23px rgba(154,112,82,.1)}
.monthly-service-head{display:flex;justify-content:space-between;align-items:center;gap:7px;margin-bottom:7px}
.monthly-service-badge{padding:3.5px 8px;border-radius:499.5px;background:#fff;color:#c27145;font-size:10.5px;font-weight:900}
.monthly-service-price{color:#6b8f74;font-size:11.5px;font-weight:900}
.monthly-service-title{display:block;color:#4d3b31;font-size:18px;font-weight:950}
.monthly-service-desc{display:block;margin-top:6px;color:#7d6b60;font-size:12.5px;line-height:1.7}
.monthly-service-list{margin-top:9px;display:grid;gap:5px}
.monthly-service-item{display:flex;gap:5px;color:#6f6258;font-size:12px;line-height:1.55}
.monthly-service-check{color:#69a984;font-weight:900}
.monthly-service-btn{height:38px;line-height:38px;margin-top:11px;border-radius:12px;background:linear-gradient(135deg,#ec9a82,#d96a72);color:#fff;text-align:center;font-size:13.5px;font-weight:900}
.monthly-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:8px}
.monthly-actions button{height:34px;line-height:34px;border-radius:499.5px;background:#fff;color:#6b4b3e;font-size:11.5px;font-weight:900;padding:0}
.monthly-actions button::after{border:0}
.service-section,.orders-section{padding:18px 12px 0}
.service-card,.orders-section{background:rgba(255,255,255,.82);border:0.5px solid rgba(255,255,255,.76);box-shadow:0 9px 23px rgba(154,112,82,.1);backdrop-filter:blur(7px)}
.service-card{display:block;margin-bottom:7px;padding:13px 12px;border-radius:14px}
.service-card-title{display:block;color:#4d3b31;font-size:14px;font-weight:900}
.service-card-desc{display:block;margin-top:4px;color:#8d7669;font-size:12px;line-height:1.6}
.orders-section{margin:18px 12px 0;padding:14px 12px;border-radius:16px}
.order-row{display:flex;justify-content:space-between;gap:9px;padding:11px 0;border-bottom:0.5px solid rgba(154,130,114,.12)}
.order-row:last-child{border-bottom:0}
.order-title{display:block;color:#4d3b31;font-size:13.5px;font-weight:900}
.order-desc{display:block;margin-top:3px;color:#8d7669;font-size:11.5px}
.order-price{color:#d96a72;font-size:14px;font-weight:900}
.empty-order{padding:14px 0;color:#8d7669;font-size:12px;line-height:1.7}


.status-tag,.hero-badge-wrap,.plan-rec,.monthly-service-badge{min-height:22px;padding:4px 9px;border-radius:499.5px;font-size:11px;font-weight:900;box-sizing:border-box}
.status-tag.active{background:#EAF8EF;color:#24A26B}
.status-tag.idle{background:#F2F5F8;color:#667386}
.plan-action-btn,.plan-action-btn-active,.hero-btn,.monthly-service-btn{border-radius:499.5px!important;background:#24A26B!important;color:#fff!important;box-shadow:none!important}
.plan-card-active{border-color:#24A26B;background:#fff}
.plan-check{color:#24A26B}



.container{
  min-height:100vh;
  background:
    radial-gradient(circle at 12% 6%, rgba(239,154,130,.18), transparent 30%),
    radial-gradient(circle at 88% 2%, rgba(255,213,154,.24), transparent 28%),
    linear-gradient(180deg,#FFF8F1 0%,#FFFDF8 52%,#F8F3EF 100%);
}

.subpage-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:15px;
  position:sticky;
  top:0;
  z-index:10;
  background:rgba(255,250,246,.94);
  border-bottom:0.5px solid #F0DDD2;
  backdrop-filter:blur(10px);
}
.back-btn{font-size:15px;color:#D9826B;font-weight:800;}
.sp-title{font-size:16px;font-weight:800;color:#3B2A25;}

.profile-warm-hero,
.profile-status-card,
.trial-status-card,
.profile-facts-card,
.quick-entry-card,
.edit-form{
  background:rgba(255,255,255,.9);
  border:0.5px solid #F0DDD2;
  box-shadow:0 8px 17px rgba(140,84,58,.08);
}

.profile-warm-hero{
  position:relative;
  min-height:190px;
  margin:10px 12px 8px;
  border-radius:21px;
  overflow:hidden;
  background:
    radial-gradient(circle at 84% 12%, rgba(240,124,163,.24), transparent 28%),
    radial-gradient(circle at 8% 92%, rgba(255,214,145,.32), transparent 30%),
    linear-gradient(135deg,#fff7f8,#fff4ea);
}
.profile-warm-glow{position:absolute;border-radius:50%;filter:blur(4px);}
.profile-warm-glow.one{width:110px;height:110px;top:-25px;right:-15px;background:rgba(255,171,196,.34);}
.profile-warm-glow.two{width:90px;height:90px;left:-20px;bottom:-25px;background:rgba(255,223,172,.36);}

.profile-detail-header{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:27px 15px 20px;
}
.pdh-avatar,
.avatar-btn{
  width:82px;
  height:82px;
  border-radius:50%;
  background:linear-gradient(135deg,#E39176,#D9826B)!important;
  color:#fff;
  font-size:26px;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 11px 22px rgba(217,130,107,.24);
}
.pdh-avatar-img,
.avatar-preview{
  width:82px;
  height:82px;
  border-radius:50%;
  box-shadow:0 11px 22px rgba(217,130,107,.22);
  border:3px solid #fff;
}
.avatar-edit{display:flex;justify-content:center;margin-bottom:13px;}
.avatar-btn{padding:0;overflow:hidden;font-size:13px;}
.avatar-btn::after{border:none;}

.pdh-name{margin-top:10px;font-size:21px;font-weight:900;color:#3B2A25;}
.pdh-role{
  margin-top:5px;
  min-height:22px;
  padding:4px 9px;
  border-radius:499.5px;
  background:#FFF1EA;
  color:#C97854;
  font-size:11px;
  font-weight:900;
  box-sizing:border-box;
}
.profile-hero-note{
  max-width:260px;
  margin-top:8px;
  text-align:center;
  font-size:11px;
  line-height:1.6;
  color:#8A746B;
}
.profile-care-tags{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:11px}
.profile-care-tags text{
  min-height:22px;
  padding:4px 9px;
  border-radius:499.5px;
  background:#FFF1EA;
  color:#C97854;
  font-size:11px;
  font-weight:900;
  box-sizing:border-box;
}

.profile-status-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:7px;
  margin:0 12px 7px;
}
.profile-status-card{
  padding:12px;
  border-radius:15px;
}
.profile-status-label{display:block;font-size:12px;color:#8A746B;}
.profile-status-value{display:block;margin-top:5px;font-size:17px;font-weight:900;color:#3B2A25;}
.profile-status-card.secondary{opacity:.78;}

.trial-status-card{
  margin:12px;
  padding:12px;
  border-radius:15px;
}
.trial-status-head{display:flex;align-items:center;justify-content:space-between;gap:6px;}
.trial-status-title{font-size:14px;font-weight:900;color:#3B2A25;}
.trial-status-badge{
  min-height:22px;
  padding:4px 9px;
  border-radius:499.5px;
  font-size:11px;
  font-weight:900;
  box-sizing:border-box;
}
.trial-status-badge.free{background:#F7F0EC;color:#927C73;}
.trial-status-badge.trial{background:#FFF5DF;color:#B87825;}
.trial-status-badge.member{background:#FFF1EA;color:#C97854;}
.trial-status-meta{
  margin-top:8px;
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:11.5px;
  line-height:1.6;
  color:#8A746B;
}

.profile-facts-card{
  margin:5px 12px 12px;
  padding:12px;
  border-radius:15px;
}
.profile-facts-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.profile-facts-copy{display:flex;flex-direction:column;gap:4px;}
.profile-facts-title{font-size:15px;font-weight:900;color:#3B2A25;}
.profile-facts-note{font-size:12px;line-height:1.5;color:#8A746B;}
.profile-facts-edit{
  min-width:56px;
  height:28px;
  padding:0 11px;
  border-radius:499.5px;
  background:#FFF4EA;
  color:#C97854;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:800;
  box-sizing:border-box;
}
.profile-facts-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px;
  margin-top:10px;
}
.profile-fact{
  min-height:66px;
  padding:11px;
  border-radius:12px;
  background:linear-gradient(180deg,#FFFDFC 0%,#FFF6F0 100%);
  border:0.5px solid #F6E5DB;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.profile-fact-label{font-size:12px;color:#A1887D;font-weight:700;}
.profile-fact-value{
  margin-top:9px;
  font-size:15px;
  line-height:1.35;
  color:#3B2A25;
  font-weight:900;
  word-break:break-all;
}
.profile-fact-value.muted{color:#7B675E;}

.edit-form{
  margin:0 12px 17px;
  padding:15px 13px;
  border-radius:17px;
}
.form-title{font-size:16px;font-weight:900;color:#3B2A25;text-align:center;margin-bottom:15px;}
.form-group{margin-bottom:13px;}
.form-label{display:block;margin-bottom:6px;padding-left:2px;font-size:13.5px;font-weight:800;color:#8A746B;}
.form-input{
  background:#FFFDF8;
  border:1px solid #F0DDD2;
  border-radius:10px;
  padding:11px 12px;
  font-size:14px;
  color:#3B2A25;
}
.gender-picker{display:flex;gap:10px;}
.gender-opt{
  flex:1;
  text-align:center;
  padding:9px 0;
  border-radius:9px;
  font-size:14px;
  color:#7A6670;
  background:#FFFDF8;
  border:1px solid transparent;
}
.gender-opt.active{background:#FFF1EA;color:#C97854;border-color:#E8B09B;font-weight:800;}

.save-btn{
  width:100%;
  background:linear-gradient(135deg,#E39176,#D9826B)!important;
  color:#fff;
  box-shadow:0 6px 15px rgba(217,130,107,.22);
}
.cancel-btn{
  width:100%;
  margin-top:8px;
  background:#FFF4EA;
  color:#5A3B31;
}

.quick-entry-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:7px;
  margin:0 12px 20px;
}
.quick-entry-card{
  position:relative;
  min-height:58px;
  padding:11px 11px 11px 41px;
  border-radius:15px;
}
.quick-entry-card.secondary{opacity:.78;}
.quick-entry-icon{
  position:absolute;
  left:11px;
  top:12px;
  width:22px;
  height:22px;
  line-height:22px;
  text-align:center;
  border-radius:8px;
  background:#FFF4EA;
  color:#5A3B31;
  font-size:11.5px;
  font-weight:900;
}
.quick-entry-title{display:block;font-size:15px;font-weight:900;color:#3B2A25;}
.quick-entry-desc{display:block;margin-top:4px;font-size:11.5px;line-height:1.6;color:#8A746B;}


.h5-.h5-page{background:linear-gradient(180deg,#FFF8F1,#FFFDF8 48%,#F8F3EF);color:#3B2A25}
.elder-.h5-.h5-page{min-height:100vh;padding:18px 14px calc(20px + env(safe-area-inset-bottom));box-sizing:border-box}
.elder-hero{padding:21px 17px;border-radius:20px;background:#fff;border:0.5px solid #F0DDD2;box-shadow:0 9px 21px rgba(140,84,58,.08)}
.elder-kicker{display:block;font-size:13px;font-weight:900;color:#C97854}
.elder-title{display:block;margin-top:0;font-size:32px;font-weight:950;line-height:1.12;text-align:center}
.safe-smile-img{display:block;width:84px;height:84px;margin:12px auto 0}
.safe-question-img{display:block;width:84px;height:84px;margin:12px auto 0}
.elder-desc{display:block;margin-top:9px;font-size:15px;line-height:1.6;color:#8A746B}
.elder-actions{display:grid;grid-template-columns:1fr;gap:12px;margin-top:14px}
.elder-actions button,.sos-panel button{width:100%;height:66px;line-height:66px;margin:0;border-radius:18px;color:#fff;font-size:19px;font-weight:950}
.elder-actions button::after,.sos-panel button::after{border:0}
.elder-actions .safe{background:linear-gradient(135deg,#E39176,#D9826B)}
.elder-actions .voice{background:#F3C27A;color:#5A3B31}
.elder-actions .sos{background:#D94B55}
.elder-actions .contact{background:#5A3B31}
.elder-status,.elder-timeline{margin-top:12px;padding:14px;border-radius:15px;background:rgba(255,255,255,.86);border:0.5px solid #F0DDD2;box-shadow:0 6px 16px rgba(140,84,58,.06)}
.elder-status-head{display:flex;align-items:center;justify-content:space-between;font-size:15px;font-weight:950;color:#3B2A25}
.elder-status-head .ok{color:#1F9A65}.elder-status-head .warn{color:#C97854}
.elder-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:11px}
.elder-mini-grid view{padding:11px;border-radius:12px;background:#FFF8F1}
.elder-mini-grid text{display:block}
.elder-mini-grid text:first-child{font-size:12px;color:#8A746B;font-weight:800}
.elder-mini-grid text:last-child{margin-top:4px;font-size:15px;color:#3B2A25;font-weight:950}
.elder-timeline text{display:block;font-size:14px;line-height:1.6;color:#8A746B;font-weight:800}
.elder-timeline text:first-child{font-size:15px;font-weight:950;color:#3B2A25}
.sos-panel{margin-top:14px;padding:18px;border-radius:20px;background:#fff;border:0.5px solid #F0DDD2;text-align:center;box-shadow:0 9px 21px rgba(140,84,58,.08)}
.sos-num{display:block;font-size:60px;font-weight:950;color:#D94B55;line-height:1}
.sos-tip{display:block;margin:5px 0 14px;font-size:16px;font-weight:900;color:#8A746B}
.sos-panel button{height:52px;line-height:52px;margin-top:9px;background:#D94B55}
.sos-panel button.cancel{background:#FFF4EA;color:#5A3B31}
.privacy-note{margin-top:14px;padding:14px;border-radius:15px;background:rgba(255,255,255,.76);border:0.5px solid #F0DDD2}
.privacy-note text{display:block;font-size:13px;line-height:1.65;color:#8A746B}
.privacy-note text:first-child{font-size:15px;font-weight:950;color:#3B2A25}
.voice-countdown-mask{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background:rgba(42,30,25,.18);backdrop-filter:blur(3px)}
.voice-countdown-box{width:130px;height:130px;border-radius:26px;background:rgba(255,255,255,.95);border:0.5px solid #F0DDD2;box-shadow:0 12px 30px rgba(140,84,58,.18);display:flex;flex-direction:column;align-items:center;justify-content:center}
.voice-countdown-num{font-size:54px;font-weight:950;line-height:1;color:#D9826B}
.voice-countdown-text{margin-top:6px;font-size:15px;font-weight:900;color:#5A3B31}


.h5-.h5-page{background:linear-gradient(180deg,#FFF8F1,#FFFDF8 55%,#F8F3EF);color:#3B2A25}
..h5-.h5-page{min-height:100vh;padding:14px 12px calc(20px + env(safe-area-inset-bottom));box-sizing:border-box}
.hero,.card,.empty{background:rgba(255,255,255,.92);border:0.5px solid #F0DDD2;border-radius:17px;box-shadow:0 8px 17px rgba(140,84,58,.08)}
.hero{padding:17px 15px;margin-bottom:11px}
.title{display:block;font-size:21px;font-weight:950}
.sub{display:block;margin-top:5px;font-size:12.5px;line-height:1.6;color:#8A746B}
.empty{padding:39px 15px;text-align:center}
.empty-title{display:block;font-size:16px;font-weight:950}
.empty-sub{display:block;margin-top:6px;font-size:12.5px;color:#8A746B}
.list{display:flex;flex-direction:column;gap:9px}
.card{padding:13px}
.meta{display:flex;align-items:flex-start;justify-content:space-between;gap:9px}
.name{display:block;font-size:15px;font-weight:950}
.time{display:block;margin-top:4px;font-size:11.5px;color:#8A746B}
.badge{flex-shrink:0;padding:4px 9px;border-radius:499.5px;background:#FFF5DF;color:#B87825;font-size:11px;font-weight:900}
.badge.played{background:#EAF8EF;color:#24A26B}
.message{display:block;margin-top:10px;font-size:13.5px;line-height:1.6}
.play{height:41px;line-height:41px;margin:11px 0 0;border-radius:499.5px;background:linear-gradient(135deg,#E39176,#D9826B);color:#fff;font-size:14px;font-weight:950}
.play::after{border:0}


.container{min-height:100vh;background:linear-gradient(180deg,#e8f4fd 0%,#fff 45%);padding:0 20px}.header{text-align:center;padding-top:80px;padding-bottom:35px}.logo-wrap{width:70px;height:70px;margin:0 auto 12px;background:linear-gradient(135deg,#007aff,#5856d6);border-radius:18px;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 24px rgba(0,122,255,.3)}.logo-icon{font-size:34px}.title{font-size:22px;font-weight:700;color:#1a1a2e;letter-spacing:2px;display:block}.subtitle{font-size:13px;color:#8e8e93;margin-top:5px}.login-card{background:#fff;border-radius:16px;padding:24px 18px;box-shadow:0 10px 30px rgba(0,0,0,.06);text-align:center}.wx-title{font-size:17px;font-weight:700;color:#1a1a2e;display:block}.wx-desc{font-size:12.5px;color:#8e8e93;margin-top:5px;display:block}.btn-login{width:100%;height:50px;line-height:50px;background:linear-gradient(135deg,#07c160,#10b981)!important;color:#fff!important;font-size:16px;font-weight:700;border-radius:25px!important;margin-top:19px}.link{display:block;margin-top:16px;color:#4a90d9;font-size:13px}



.container { min-height: 100vh; background: linear-gradient(180deg, #e8f4fd 0%, #fff 40%); padding: 0 20px; }
.header { text-align: center; padding-top: 50px; padding-bottom: 20px; }
.title { font-size: 22px; font-weight: bold; color: #1a1a2e; display: block; }
.subtitle { font-size: 13px; color: #8e8e93; margin-top: 5px; }

.form-section { margin-bottom: 10px; }
.form-group { margin-bottom: 11px; position: relative; }
.field-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 17px; z-index: 1; }
.input-field { width: 100%; height: 48px; background: rgba(255,255,255,0.9); border-radius: 12px; border: 1.5px solid #e5e9f0; padding: 0 14px 0 44px; font-size: 14.5px; box-sizing: border-box; }
.code-row .input-field { flex: 1; padding-right: 6px; }
.code-row { display: flex; gap: 8px; align-items: center; }
.btn-code { width: 110px !important; height: 46px !important; line-height: 46px; background: linear-gradient(135deg, #007AFF, #5856D6) !important; color: #fff !important; font-size: 12.5px; border-radius: 12px !important; white-space: nowrap; padding: 0 !important; margin: 0 !important; }
.btn-code.disabled { opacity: 0.5; }

.btn-register {
  width: 100%; height: 50px; line-height: 50px;
  background: linear-gradient(135deg, #007AFF, #5856D6) !important;
  color: #fff !important; font-size: 16px; font-weight: bold;
  border-radius: 25px !important; margin-top: 8px;
}
.form-footer { text-align: center; margin-top: 14px; font-size: 13px; color: #999; }
.link { color: var(--primary); font-weight: 500; }

.agreement-row { display: flex; align-items: center; justify-content: center; margin-top: 15px; }
.checkbox { width: 18px; height: 18px; border: 1.5px solid #ccc; border-radius: 5px; display: flex; align-items: center; justify-content: center; margin-right: 5px; font-size: 12px; color: #fff; }
.checkbox.checked { background: var(--primary); border-color: var(--primary); }
.check-mark { font-size: 12px; color: #fff; }
.agree-text { font-size: 12px; color: #666; }
.register-redirect { display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.redirect-card { width: 100%; background: rgba(255,255,255,0.92); border: 0.5px solid #F2DDD3; border-radius: 18px; padding: 28px 18px; box-shadow: 0 9px 24px rgba(121,77,55,0.12); }
.redirect-title { display: block; font-size: 21px; font-weight: 800; color: #2B211D; }
.redirect-desc { display: block; margin: 9px 0 17px; font-size: 14px; line-height: 1.7; color: #7B6A60; }



.h5-.h5-page{
  background: var(--bg);
}

.container {
  min-height: 100vh;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0));
}


.user-header {
  display: flex; align-items: center;
  gap: 12px;
  padding: 24px 16px 18px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.uh-avatar-circle {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.4);
  overflow: hidden;
}
.uh-avatar-img { width: 100%; height: 100%; border-radius: 50%; }
.uh-avatar-char {
  font-size: 19px; font-weight: 700; color: #fff;
}
.uh-info { flex: 1; }
.uh-name {
  display: block; font-size: 17px; font-weight: 700;
  color: #fff; letter-spacing: -0.3px;
}
.uh-hint {
  display: block; font-size: 12px; color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

.settings-status-strip{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:7px;
  padding:9px 10px 0;
}
.settings-status-card{
  padding:10px;
  border-radius:9px;
  background:#fff;
  box-shadow:0 4px 10px rgba(15,23,42,.05);
}
.settings-status-label{display:block;font-size:11px;color:var(--text-muted);}
.settings-status-value{display:block;margin-top:5px;font-size:14px;font-weight:800;color:var(--text-primary);}


.settings-section-title {
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  padding: 14px 16px 6px;
  letter-spacing: 0.5px;
}


.settings-list {
  margin: 0 10px;
  background: #fff;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0,0,0,0.04);
}

.si-item {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
  border-bottom: 0.5px solid rgba(0,0,0,0.04);
  position: relative;
  transition: background .18s ease, transform .18s ease;
}
.si-item:active { background: #F8FAFD; transform: scale(.995); }
.si-item:last-child { border-bottom: none; }
.si-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }


.si-icon-box {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.si-icon-box.blue    { background: #E3F2FD; }
.si-icon-box.green   { background: #E8F8ED; }
.si-icon-box.purple  { background: #F3E8FB; }
.si-icon-box.red     { background: #FFEBEE; }
.si-icon-box.orange  { background: #FFF3E0; }
.si-icon-box.info-blue{ background: #E1F5FE; }
.si-icon-box.vip-purple { background: linear-gradient(135deg, #F3E8FB, #EDE7F6); }
.si-emoji { font-size: 16px; line-height: 1; }

.si-text { flex: 1; min-width: 0; overflow: hidden; }
.si-h4 {
  display: block; font-size: 14.5px; font-weight: 600;
  color: var(--text-primary); letter-spacing: -0.2px;
}
.si-p {
  display: block; font-size: 11.5px; color: var(--text-muted);
  margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.si-arrow {
  font-size: 16px; color: #c7c7cc; font-weight: 300;
  flex-shrink: 0; margin-left: 6px;
}
.si-right-extra { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.si-badge {
  font-size: 10px; color: #fff; background: #FF9500;
  padding: 1px 7px; border-radius: 8px; font-weight: 500;
}


.back-home-area {
  padding: 15px 12px 0;
}
.back-home-btn {
  width: 100%; height: 46px; border-radius: 11px;
  background: linear-gradient(135deg, #4A90D9, #67B7FF);
  color: #fff; font-size: 15.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  gap: 5px; border: none; box-shadow: 0 3px 10px rgba(74,144,217,0.35);
  letter-spacing: 0.5px;
}
.back-home-btn:active { transform: scale(.985); }
.bh-icon { font-size: 16px; }


.logout-area { padding: 12px 12px 30px; }
.logout-btn {
  width: 100%; height: 44px; border-radius: 11px;
  background: transparent; color: #FF3B30;
  font-size: 14.5px; font-weight: 500; border: 0.5px solid #FFCDD2;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.5px;
}
.logout-btn:active { background: rgba(255,59,48,0.05); }
.secondary-service-strip{opacity:.78}
.secondary-service-title{color:#9aa3af}
.secondary-service-item{opacity:.72}


.container{background:#F7FAFC}
.user-header,.settings-list,.settings-status-card{
  background:#fff;
  border:0.5px solid #E7EDF4;
  box-shadow:0 6px 15px rgba(15,23,42,.06);
}
.uh-avatar-circle,.back-home-btn{background:#24A26B!important}
.si-h4,.uh-name,.settings-status-value{color:#172033}
.si-p,.settings-status-label,.uh-hint{color:#667386}
.si-icon-box.blue,.si-icon-box.green,.si-icon-box.purple,.si-icon-box.red,.si-icon-box.orange,.si-icon-box.info-blue,.si-icon-box.vip-purple{background:#F1F6FA;color:#172033}

.si-badge,.settings-status-value{
  min-height:22px;
  padding:4px 9px;
  border-radius:499.5px;
  box-sizing:border-box;
  font-size:11px;
  line-height:1.2;
  font-weight:900;
  white-space:nowrap;
}
.si-badge{background:#FFF4DC;color:#B86B00}


.container{
  background:
    radial-gradient(circle at 12% 4%, rgba(239,154,130,.16), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(255,213,154,.2), transparent 28%),
    linear-gradient(180deg,#FFF8F1 0%,#FFFDF8 100%);
}
.user-header,.settings-list,.settings-status-card{
  background:rgba(255,255,255,.9);
  border-color:#F0DDD2;
  box-shadow:0 8px 17px rgba(140,84,58,.08);
}
.uh-avatar-circle,.back-home-btn{background:linear-gradient(135deg,#E39176,#D9826B)!important}
.si-h4,.uh-name,.settings-status-value{color:#3B2A25}
.si-p,.settings-status-label,.uh-hint,.settings-section-title{color:#8A746B}
.si-icon-box.blue,.si-icon-box.green,.si-icon-box.purple,.si-icon-box.red,.si-icon-box.orange,.si-icon-box.info-blue,.si-icon-box.vip-purple{background:#FFF4EA;color:#5A3B31}
.si-badge{background:#FFF5DF;color:#B87825}
.logout-btn{color:#D94B55;border-color:#F2C7C9}


.container { min-height: 100vh; background: var(--bg, #F5F5F7); padding-bottom: calc(14px + env(safe-area-inset-bottom, 0)); }
.header { background: linear-gradient(135deg, #FF9F43, #EE5A24); padding: 14px 16px 19px; }
.header-title { color: #FFFFFF; font-size: 19px; font-weight: 700; display: block; }
.header-sub { color: rgba(255,255,255,0.82); font-size: 12px; margin-top: 4px; display: block; line-height: 1.6; }

.summary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px 12px 0;
}

.summary-card {
  background: #FFFFFF;
  border-radius: 9px;
  padding: 11px 6px;
  text-align: center;
  box-shadow: 0 1px 5px rgba(0,0,0,0.04);
}

.summary-value { display: block; font-size: 17px; font-weight: 800; color: #1D1D1F; }
.summary-label { display: block; margin-top: 4px; font-size: 11px; color: #86868B; }

.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px 0;
}

.updated-text { font-size: 11px; color: #9AA0A6; }
.mark-all-btn {
  padding: 6px 10px;
  border-radius: 499.5px;
  background: rgba(74,144,217,0.1);
  color: #4A90D9;
  font-size: 11.5px;
  font-weight: 600;
}

.tab-bar {
  display: flex;
  background: #FFFFFF;
  margin: 9px 12px 0;
  border-radius: 9px;
  padding: 4px;
  gap: 4px;
  flex-wrap: wrap;
}

.tab-item {
  flex: 1 1 calc(50% - 4px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 9px 0;
  font-size: 13px;
  color: #6B7280;
  border-radius: 7px;
  font-weight: 600;
}

.tab-item.active {
  background: #4A90D9;
  color: #FFFFFF;
}

.tab-count {
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  border-radius: 499.5px;
  background: rgba(255,255,255,0.22);
  font-size: 10px;
  text-align: center;
}

.notif-list { padding: 10px 12px 14px; }

.notif-card {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.04);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.notif-card:active { transform: scale(.99); box-shadow: 0 6px 14px rgba(0,0,0,0.08); }

.notif-card.read { opacity: 0.72; }
.notif-card.alert-card{border:0.5px solid rgba(255,107,107,0.24);box-shadow:0 6px 13px rgba(255,107,107,0.08);}

.notif-header { display: flex; align-items: flex-start; gap: 8px; }

.notif-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.notif-icon-wrap.alert { background: rgba(255,107,107,0.12); }
.notif-icon-wrap.system { background: rgba(74,144,217,0.12); }

.notif-info { flex: 1; min-width: 0; }

.notif-title-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.notif-title { font-size: 14.5px; font-weight: 700; color: #1D1D1F; }
.notif-time { display: block; margin-top: 4px; font-size: 11px; color: #9AA0A6; }

.unread-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FF6B6B;
  flex-shrink: 0;
}

.notif-desc {
  display: block;
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #5F6B7A;
}

.notif-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 9px;
}

.notif-actions button {
  margin: 0;
  min-height: 32px;
  line-height: 32px;
  border-radius: 7px;
  background: #FFF7ED;
  color: #B45309;
  font-size: 12px;
  font-weight: 700;
}

.notif-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
}

.notif-type {
  padding: 4px 8px;
  border-radius: 499.5px;
  font-size: 10.5px;
  font-weight: 700;
}

.notif-type.alert {
  background: rgba(255,107,107,0.12);
  color: #FF6B6B;
}

.notif-type.system {
  background: rgba(74,144,217,0.12);
  color: #4A90D9;
}

.notif-read { font-size: 11px; color: #9AA0A6; }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.empty-icon { font-size: 44px; opacity: 0.45; display: block; }
.empty-text { margin-top: 8px; font-size: 14px; color: #6B7280; display: block; }
.empty-sub { margin-top: 5px; font-size: 11.5px; color: #A0A7B4; display: block; text-align: center; }



.container { min-height: 100vh; background: #F5F5F7; }


.subpage-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  background: #fff; border-bottom: 1px solid #E5E5EA;
  position: sticky; top: 0; z-index: 10;
}
.back-btn { color: #4A90D9; font-size: 15px; font-weight: 500; }
.sp-title { font-size: 17px; font-weight: 700; color: #1D1D1F; letter-spacing: -0.3px; }


.toggle-setting-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 12px; background: #fff;
  border-bottom: 1px solid #F5F5F7;
}
.ts-left { flex: 1; margin-right: 8px; }
.ts-h4 { font-size: 15px; font-weight: 600; color: #1D1D1F; display: block; margin-bottom: 2px; }
.ts-p { font-size: 12px; color: #86868B; }
.ts-value { font-size: 14px; font-weight: 800; color: #D9826B; }


.notif-tip-card {
  display: flex; align-items: center; gap: 7px;
  margin: 16px 12px; padding: 11px 12px;
  background: rgba(74,144,217,0.06); border-radius: 8px;
}
.tip-icon { font-size: 15px; flex-shrink: 0; }
.tip-text { font-size: 12.5px; color: #86868B; line-height: 1.6; }


.container{min-height:100vh;background:linear-gradient(180deg,#FFF8F1,#F8F3EF)}
.subpage-header{display:flex;align-items:center;justify-content:space-between;padding:15px;background:rgba(255,250,246,.96);position:sticky;top:0;z-index:10;border-bottom:0.5px solid #F0DDD2}
.back-btn{font-size:14px;color:#D9826B;font-weight:800}
.sp-title{font-size:16px;font-weight:900;color:#3B2A25}
.content-card{margin:10px 12px 24px;padding:17px 14px;border-radius:17px;background:#fff;border:0.5px solid #F0DDD2;box-shadow:0 8px 17px rgba(140,84,58,.08)}
.card-title{display:block;margin-bottom:15px;text-align:center;font-size:20px;font-weight:950;color:#3B2A25}
.sec{margin-bottom:15px}
.sec-title{display:flex;align-items:center;margin-bottom:6px;font-size:15px;font-weight:950;color:#3B2A25}
.num{width:22px;height:22px;line-height:22px;margin-right:7px;text-align:center;border-radius:50%;background:#D9826B;color:#fff;font-size:11px;font-weight:900}
.sec-text{display:block;font-size:13.5px;line-height:1.85;color:#5A3B31}
.contact-box{margin-top:17px;padding:14px;border-radius:14px;background:#FFF8F1;border:0.5px solid #F0DDD2}
.cb-title{display:block;font-size:15px;font-weight:950;color:#3B2A25}
.cb-desc{display:block;margin-top:5px;font-size:12.5px;line-height:1.6;color:#8A746B}
.cb-row{margin-top:6px;font-size:12.5px;color:#5A3B31}



.container { min-height: 100vh; background: #F5F5F7; }


.subpage-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  background: #fff; border-bottom: 1px solid #E5E5EA;
  position: sticky; top: 0; z-index: 10;
}
.back-btn { color: #4A90D9; font-size: 15px; font-weight: 500; }
.sp-title { font-size: 17px; font-weight: 700; color: #1D1D1F; letter-spacing: -0.3px; }


.toggle-setting-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 12px; background: #fff;
  border-bottom: 1px solid #F5F5F7;
}
.ts-left {
  display: flex; align-items: center; gap: 8px;
  flex: 1; margin-right: 8px;
}
.ts-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.ts-icon.blue { background: rgba(74,144,217,0.10); }
.ts-icon.green { background: rgba(74,222,128,0.10); }
.ts-icon.purple { background: rgba(175,82,222,0.10); }
.ts-text { flex: 1; }
.ts-h4 { font-size: 15px; font-weight: 600; color: #1D1D1F; display: block; margin-bottom: 1px; }
.ts-p { font-size: 12px; color: #86868B; }


.privacy-notice {
  margin: 16px 12px; padding: 14px 12px;
  background: linear-gradient(135deg, rgba(102,126,234,0.06), rgba(118,75,162,0.06));
  border-radius: 10px; border: 1px solid rgba(102,126,234,0.08);
}
.pn-title { font-size: 14px; font-weight: 700; color: #667eea; display: block; margin-bottom: 6px; }
.pn-text { font-size: 12.5px; color: #86868B; line-height: 1.75; }


.clear-cache-btn {
  display: block; margin: 16px 12px; width: auto; height: 42px; line-height: 42px;
  border: 1px solid #E5E5EA; border-radius: 10px;
  background: transparent; color: #86868B; font-size: 14.5px; text-align: center;
}
.clear-cache-btn::after { border: none; }
.clear-cache-btn:active { background: #F5F5F7; }



.container { min-height: 100vh; background: #f5f6fa; }


.search-wrap { padding: 10px 15px; }
.search-box {
  display: flex; align-items: center;
  background: #fff; border-radius: 8px;
  padding: 9px 12px; box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.search-icon { font-size: 14px; margin-right: 7px; }
.search-input { flex: 1; font-size: 14px; color: #333; }


.help-categories { display: flex; padding: 5px 10px 10px; overflow-x: auto; white-space: nowrap; }
.cat-item {
  display: inline-flex; flex-direction: column; align-items: center;
  width: 70px; padding: 10px 5px; margin-right: 8px;
  background: #fff; border-radius: 8px; flex-shrink: 0;
}
.cat-icon { font-size: 22px; margin-bottom: 4px; }
.cat-name { font-size: 12px; color: #333; font-weight: 500; }
.cat-count { font-size: 10px; color: #999; margin-top: 2px; }


.article-list { padding: 0 15px; }
.article-item {
  background: #fff; border-radius: 8px; padding: 14px;
  margin-bottom: 10px; box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.article-tag {
  display: inline-block; font-size: 10px; color: #fff;
  padding: 2px 7px; border-radius: 3px; margin-bottom: 6px;
}
.article-tag.blue { background: linear-gradient(135deg, #667eea, #764ba2); }
.article-tag.green { background: linear-gradient(135deg, #11998e, #38ef7d); }
.article-tag.orange { background: linear-gradient(135deg, #f093fb, #f5576c); }
.article-tag.purple { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.article-title { font-size: 15px; font-weight: 600; color: #1a1a2e; display: block; margin-bottom: 4px; }
.article-desc { font-size: 12.5px; color: #666; display: block; line-height: 1.5; margin-bottom: 6px; }
.article-meta { display: flex; justify-content: space-between; font-size: 11px; color: #bbb; }


.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 40px; display: block; margin-bottom: 10px; }
.empty-text { font-size: 15px; color: #999; display: block; margin-bottom: 4px; }
.empty-hint { font-size: 12px; color: #ccc; display: block; }
.loading-tip { text-align: center; padding: 30px; color: #999; font-size: 13px; }


.subpage-header { display: flex; align-items: center; justify-content: space-between; padding: 15px; background: #fff; position: sticky; top: 0; z-index: 10; border-bottom: 0.5px solid #f0f0f0; }
.back-btn { font-size: 17px; color: #667eea; font-weight: bold; }
.sp-title { font-size: 16px; font-weight: 600; color: #1a1a2e; }



.container { min-height: 100vh; background: #F5F5F7; padding-bottom: 24px; }


.subpage-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  background: #fff; border-bottom: 1px solid #E5E5EA;
  position: sticky; top: 0; z-index: 10;
}
.back-btn { color: #4A90D9; font-size: 15px; font-weight: 500; }
.sp-title { font-size: 17px; font-weight: 700; color: #1D1D1F; letter-spacing: -0.3px; }


.search-wrap { padding: 12px; }
.search-box {
  display: flex; align-items: center;
  background: #fff; border-radius: 22px;
  padding: 10px 14px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.04);
}
.search-icon { font-size: 16px; margin-right: 8px; }
.search-input { flex: 1; font-size: 14px; color: #1D1D1F; }


.quick-grid { display: flex; padding: 0 12px 14px; gap: 9px; }
.quick-item {
  flex: 1; background: #fff; border-radius: 10px;
  padding: 14px 6px; text-align: center;
  box-shadow: 0 1px 5px rgba(0,0,0,0.04);
}
.quick-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 7px; font-size: 17px;
}
.quick-icon.blue { background: rgba(0,122,255,0.10); }
.quick-icon.green { background: rgba(74,222,128,0.10); }
.quick-icon.orange { background: rgba(255,159,0,0.10); }
.quick-icon.purple { background: rgba(102,126,234,0.10); }
.quick-name { font-size: 12.5px; font-weight: 600; color: #1D1D1F; }


.faq-section { padding: 0 12px; }
.section-title { font-size: 16px; font-weight: 700; color: #1D1D1F; margin-bottom: 8px; display: block; }
.faq-list { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 5px rgba(0,0,0,0.04); }
.faq-item { border-bottom: 0.5px solid #f5f5f7; }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 14px;
}
.faq-q-text { flex: 1; font-size: 14.5px; font-weight: 600; color: #1D1D1F; margin-right: 8px; line-height: 1.4; }
.faq-arrow { font-size: 11px; color: #CCC; transition: transform .3s; flex-shrink: 0; }
.faq-arrow.expanded { transform: rotate(180deg); }
.faq-answer { padding: 0 14px 13px; font-size: 12.5px; color: #86868B; line-height: 1.75; }


.device-sec { padding: 14px 12px 0; }
.device-list { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 5px rgba(0,0,0,0.04); }
.dev-item {
  display: flex; align-items: center; gap: 9px;
  padding: 13px 14px; border-bottom: 1px solid #f5f5f7;
}
.dev-icon { font-size: 20px; width: 32px; text-align: center; }
.dev-info { flex: 1; }
.dev-name { font-size: 14px; font-weight: 600; color: #1D1D1F; display: block; }
.dev-feats { font-size: 11.5px; color: #86868B; margin-top: 2px; display: block; }
.dev-more {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: #FAFAFA;
  border-radius: 0 0 10px 10px;
}
.dev-more-icon { font-size: 15px; }
.dev-more-text { font-size: 12.5px; color: #86868B; }


.contact-section { padding: 4px 12px 0; }
.contact-card {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 12px; padding: 18px 14px; color: #fff;
}
.contact-title { font-size: 17px; font-weight: 800; display: block; margin-bottom: 3px; }
.contact-desc { font-size: 12.5px; opacity: 0.85; margin-bottom: 12px; display: block; }
.contact-list { margin-bottom: 12px; }
.cl-row { display: flex; align-items: center; gap: 7px; padding: 6px 0; }
.cl-icon { font-size: 14px; width: 18px; text-align: center; }
.cl-text { font-size: 13px; }
.contact-btn {
  display: inline-block; background: rgba(255,255,255,0.2);
  padding: 9px 26px; border-radius: 16px;
  font-size: 13.5px; font-weight: 600; text-align: center;
}



.container { min-height: 100vh; background: #F5F5F7; padding-bottom: 24px; }


.subpage-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  background: #fff; border-bottom: 1px solid #E5E5EA;
  position: sticky; top: 0; z-index: 10;
}
.back-btn { color: #4A90D9; font-size: 15px; font-weight: 500; }
.sp-title { font-size: 17px; font-weight: 700; color: #1D1D1F; letter-spacing: -0.3px; }


.logo-area {
  text-align: center; padding: 28px 12px 20px;
  background: linear-gradient(180deg, #E8F1FC, #F5F5F7);
}
.logo-icon { font-size: 40px; display: block; margin-bottom: 8px; }
.app-name { font-size: 22px; font-weight: 800; color: #1D1D1F; display: block; letter-spacing: 2px; }
.app-slogan { font-size: 13px; color: #86868B; margin-top: 4px; display: block; }
.version-tag {
  display: inline-block; margin-top: 8px;
  padding: 3px 12px; border-radius: 10px;
  background: rgba(74,144,217,0.08); color: #4A90D9;
  font-size: 11px; font-weight: 600;
}


.feature-section { padding: 0 12px; }
.sec-title { font-size: 16px; font-weight: 700; color: #1D1D1F; margin-bottom: 7px; display: block; padding-top: 2px; }
.feature-list { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 5px rgba(0,0,0,0.04); }
.feature-item {
  display: flex; align-items: flex-start; gap: 9px;
  background: #fff; border-radius: 0; padding: 12px 14px;
  border-bottom: 0.5px solid #f5f5f7;
}
.feature-item:last-child { border-bottom: none; }
.fi-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
  background: rgba(74,144,217,0.08);
}
.fi-content { flex: 1; min-width: 0; }
.fi-name { font-size: 14px; font-weight: 600; color: #1D1D1F; display: block; margin-bottom: 3px; }
.fi-desc { font-size: 12px; color: #86868B; line-height: 1.65; display: block; }


.info-section, .contact-section { padding: 14px 12px 0; }
.info-card, .contact-card {
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 5px rgba(0,0,0,0.04);
}
.info-row, .cc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-bottom: 1px solid #f5f5f7;
}
.info-lbl, .cc-label { font-size: 13.5px; color: #86868B; flex-shrink: 0; }
.info-val, .cc-val { font-size: 13.5px; color: #1D1D1F; text-align: right; flex: 1; margin-left: 8px; word-break: break-all; }


.footer-area { text-align: center; padding: 20px 12px 18px; }
.footer-text { font-size: 12px; color: #AEAEB2; display: block; }
.footer-sub { font-size: 10.5px; color: #CCC; margin-top: 3px; display: block; }
.footer-links { display: flex; justify-content: center; align-items: center; gap: 2px; margin-top: 6px; }
.footer-link { font-size: 11.5px; color: #4A90D9; }
.footer-divider { color: #CCC; font-size: 11px; }


.container{min-height:100vh;padding-bottom:calc(14px + env(safe-area-inset-bottom,0));background:linear-gradient(180deg,#fff9f2 0%,#f4faf6 48%,#f6f8fb 100%)}
.header{padding:24px 17px 33px;background:radial-gradient(circle at 18% 15%,rgba(255,208,184,.8),transparent 34%),linear-gradient(135deg,#fff0e2,#eef9f2)}
.header-title{display:block;color:#4d3b31;font-size:21px;font-weight:900}
.header-sub{display:block;margin-top:6px;max-width:310px;color:#8f786a;font-size:12.5px;line-height:1.7}
.tip-card,.contact-card,.modal-body{border:0.5px solid rgba(255,255,255,.75);background:rgba(255,255,255,.82);box-shadow:0 9px 23px rgba(154,112,82,.1);backdrop-filter:blur(7px)}
.tip-card{margin:-17px 12px 11px;padding:12px;border-radius:15px}
.tip-title{display:block;color:#c16d61;font-size:13.5px;font-weight:850}
.tip-text{display:block;margin-top:4px;color:#8d7669;font-size:12px;line-height:1.6}
.contact-list{padding:0 12px}
.contact-card{margin-bottom:9px;padding:13px;border-radius:15px}
.contact-main{display:flex;gap:9px}
.contact-avatar{display:flex;align-items:center;justify-content:center;width:39px;height:39px;border-radius:50%;background:linear-gradient(135deg,#f4b39f,#8ec9b9);color:#fff;font-size:15px;font-weight:900;flex-shrink:0}
.contact-info{flex:1;min-width:0}
.row-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.c-name{font-size:15px;font-weight:850;color:#4d3b31}
.c-phone{display:block;margin-top:3px;color:#a08d82;font-size:12px}
.c-summary{display:block;margin-top:4px;color:#7b8f88;font-size:11.5px;line-height:1.5}
.priority-badge{padding:2.5px 7px;border-radius:499.5px;font-size:10px}
.priority-badge.primary{background:rgba(217,106,114,.12);color:#d96a72}
.priority-badge.secondary{background:rgba(126,180,163,.14);color:#6aa38f}
.contact-extra{margin-top:8px;padding:7px 8px;border-radius:9px;background:rgba(246,248,251,.86);font-size:11px;line-height:1.6}
.extra-label{color:#9a8272}.extra-value{color:#4d3b31;word-break:break-all}
.contact-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.btn-action{padding:5.5px 11px;border-radius:499.5px;font-size:11.5px}
.btn-action.call{background:rgba(105,169,132,.12);color:#5f9c7d}
.btn-action.copy{background:rgba(113,155,190,.12);color:#668ca9}
.btn-action.primary{background:rgba(217,106,114,.12);color:#d96a72}
.btn-action.edit{background:rgba(154,130,114,.12);color:#8d7669}
.btn-action.del{background:rgba(255,59,48,.1);color:#e25850}
.empty-state{margin:18px 12px;padding:35px 14px;border-radius:16px;background:rgba(255,255,255,.68);text-align:center}
.empty-text{display:block;color:#4d3b31;font-size:15.5px;font-weight:850}.empty-hint{display:block;margin-top:5px;color:#9a8272;font-size:12px}
.add-area{padding:5px 12px 12px}.btn-add{height:44px;line-height:44px;border-radius:499.5px;background:linear-gradient(135deg,#ec9a82,#d96a72);color:#fff;font-size:14.5px;font-weight:850;box-shadow:0 7px 17px rgba(216,106,114,.26)}button::after{border:0}
.modal-mask{position:fixed;inset:0;background:rgba(37,31,28,.42);z-index:998}
.modal-body{position:fixed;left:0;right:0;bottom:0;z-index:999;max-height:86vh;border-radius:18px 18px 0 0;overflow:hidden;transform:translateY(100%);transition:.28s ease}
.modal-body.show{transform:translateY(0)}
.modal-header{display:flex;justify-content:space-between;align-items:center;padding:15px 17px;border-bottom:0.5px solid rgba(154,130,114,.12)}
.modal-title{font-size:16px;font-weight:900;color:#4d3b31}.modal-close{font-size:21px;color:#9a8272;padding:0 4px}
.form-area{padding:14px 17px;max-height:56vh;overflow-y:auto}.form-group{margin-bottom:13px}.form-label{display:block;margin-bottom:5.5px;color:#8d7669;font-size:12.5px;font-weight:750}
.form-input,.form-picker{height:42px;line-height:42px;border-radius:11px;padding:0 12px;background:rgba(246,248,251,.9);font-size:14px;color:#4d3b31;box-sizing:border-box}
.channel-switches{display:flex;flex-direction:column;gap:7px}.switch-item{display:flex;align-items:center;gap:7px;padding:10px 11px;border-radius:11px;background:rgba(246,248,251,.9);color:#9a8272}
.switch-item.on{background:rgba(237,154,130,.13);color:#4d3b31}.switch-dot{width:17px;height:17px;border-radius:50%;background:#d7d1ca;flex-shrink:0}.switch-item.on .switch-dot{background:#d96a72;box-shadow:0 0 0 4px rgba(217,106,114,.1)}
.switch-copy{display:flex;flex-direction:column;gap:2.5px}.switch-desc{font-size:11px;color:#9a8272}
.wxid-row{display:flex;gap:7px;align-items:center}.flex-1{flex:1}.scan-btn{width:70px;height:42px;line-height:42px;border-radius:11px;background:linear-gradient(135deg,#91cfa6,#5fb19e);color:#fff;font-size:13px}
.modal-footer{display:flex;gap:8px;padding:10px 17px 24px;border-top:0.5px solid rgba(154,130,114,.12)}.modal-cancel,.modal-confirm{flex:1;height:41px;line-height:41px;border-radius:12px;font-size:14.5px;font-weight:850}
.modal-cancel{background:rgba(246,248,251,.9);color:#8d7669}.modal-confirm{background:linear-gradient(135deg,#ec9a82,#d96a72);color:#fff}


.container{background:#F7FAFC}
.header{background:#fff;border-bottom:0.5px solid #E7EDF4}
.header-title{color:#172033}.header-sub{color:#667386}
.tip-card,.contact-card,.modal-body{background:#fff;border:0.5px solid #E7EDF4;box-shadow:0 6px 15px rgba(15,23,42,.06)}
.priority-badge{min-height:22px;padding:4px 9px;border-radius:499.5px;font-size:11px;font-weight:900}
.priority-badge.primary{background:#EAF8EF;color:#24A26B}
.priority-badge.secondary{background:#F2F5F8;color:#667386}
.btn-action{min-height:26px;line-height:26px;padding:0 11px;border-radius:499.5px;font-weight:800}
.btn-action.call,.btn-action.primary{background:#EAF8EF;color:#24A26B}
.btn-action.copy,.btn-action.edit{background:#F1F6FA;color:#172033}
.btn-action.del{background:#FFF0F2;color:#D93D42}
.empty-state{padding:48px 20px 36px;background:#fff;border:0.5px solid #E7EDF4}
.empty-text{color:#172033}.empty-hint{color:#667386}
.add-area{padding:8px 36px 17px;text-align:center}
.add-area .btn-add{width:100%!important;max-width:250px!important;height:41px!important;line-height:41px!important;margin:0 auto!important;font-size:14px!important}
.btn-add,.scan-btn,.modal-confirm{background:#24A26B!important;color:#fff;border-radius:499.5px;box-shadow:none}
.modal-cancel{background:#F1F6FA!important;color:#172033!important;border-radius:499.5px}
.modal-footer{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;padding:10px 16px calc(17px + env(safe-area-inset-bottom,0))}
.modal-cancel,.modal-confirm{width:100%!important;max-width:none;margin:0!important;height:40px;line-height:40px}
.switch-item{background:#F7FAFC!important;border:0.5px solid #E7EDF4;color:#667386}
.switch-item.on{background:#EAF8EF!important;border-color:#CBEBD7;color:#172033}
.switch-item.on .switch-dot{background:#24A26B;box-shadow:0 0 0 4px rgba(36,162,107,.10)}


.container{
  background:
    radial-gradient(circle at 12% 4%, rgba(239,154,130,.16), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(255,213,154,.2), transparent 28%),
    linear-gradient(180deg,#FFF8F1 0%,#FFFDF8 100%);
}
.header,.tip-card,.contact-card,.modal-body,.empty-state{
  background:rgba(255,255,255,.9);
  border-color:#F0DDD2;
  box-shadow:0 8px 17px rgba(140,84,58,.08);
}
.header-title,.c-name,.empty-text,.extra-value,.modal-title{color:#3B2A25}
.header-sub,.tip-text,.c-phone,.c-summary,.empty-hint,.form-label,.switch-desc{color:#8A746B}
.priority-badge.primary,.btn-action.call,.btn-action.primary{background:#FFF1EA;color:#C97854}
.priority-badge.secondary,.btn-action.copy,.btn-action.edit,.modal-cancel{background:#FFF4EA!important;color:#5A3B31!important}
.btn-add,.scan-btn,.modal-confirm{background:linear-gradient(135deg,#E39176,#D9826B)!important}
.switch-item{background:#FFF8F1!important;border-color:#F0DDD2;color:#8A746B}
.switch-item.on{background:#FFF1EA!important;border-color:#E8B09B;color:#3B2A25}
.switch-item.on .switch-dot{background:#D9826B;box-shadow:0 0 0 4px rgba(217,130,107,.12)}


.container { min-height: 100vh; background: #F5F5F7; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0)); }
.header { background: linear-gradient(135deg, #FFB64D, #FF8A3D); padding: 14px 16px 19px; }
.header-title { display: block; font-size: 19px; font-weight: 700; color: #FFFFFF; }
.header-sub { display: block; margin-top: 4px; font-size: 12px; line-height: 1.6; color: rgba(255,255,255,0.82); }

.summary-card {
  margin: 10px 12px 0;
  padding: 11px 12px;
  border-radius: 9px;
  background: #FFFFFF;
  box-shadow: 0 1px 5px rgba(0,0,0,0.04);
}

.summary-title { display: block; font-size: 14px; font-weight: 700; color: #1D1D1F; }
.summary-desc { display: block; margin-top: 4px; font-size: 11.5px; line-height: 1.6; color: #6B7280; }

.object-list { padding: 8px 12px 0; }
.object-card {
  margin-bottom: 8px;
  padding: 12px;
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: 0 1px 5px rgba(0,0,0,0.04);
  border: 0.5px solid rgba(255,255,255,0.75);
}

.object-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.object-name { display: block; font-size: 15px; font-weight: 700; color: #1D1D1F; }
.object-meta { display: block; margin-top: 4px; font-size: 11.5px; color: #86868B; }

.object-status {
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 499.5px;
  font-size: 10.5px;
  font-weight: 700;
}

.object-status.ok { background: rgba(52,199,89,0.12); color: #34C759; }
.object-status.warn { background: rgba(255,149,0,0.14); color: #FF9500; }

.object-bind-status {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 499.5px;
  font-size: 10.5px;
  font-weight: 700;
}

.object-bind-status.ok { background: rgba(52,199,89,0.12); color: #34C759; }
.object-bind-status.warn { background: rgba(255,149,0,0.14); color: #FF9500; }

.object-contact {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: #6B7280;
  line-height: 1.6;
  word-break: break-all;
}

.object-notes {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.6;
  color: #5F6B7A;
}

.object-summary {
  margin-top: 7px;
  font-size: 11px;
  color: #9AA0A6;
}

.object-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.btn-action {
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 11.5px;
  transition: transform .18s ease, opacity .18s ease;
}
.btn-action:active { transform: scale(.96); opacity: .86; }

.btn-action.primary { background: rgba(74,144,217,0.1); color: #4A90D9; }
.btn-action.info { background: rgba(52,199,89,0.1); color: #34C759; }
.btn-action.share {
  background: rgba(255,182,77,0.16);
  color: #D97706;
  border: none;
  line-height: normal;
}
.btn-action.copy { background: rgba(90,103,216,0.08); color: #5A67D8; }
.btn-action.edit { background: rgba(90,103,216,0.08); color: #5A67D8; }
.btn-action.del { background: rgba(255,59,48,0.08); color: #FF3B30; }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px 40px;
}

.empty-icon { font-size: 48px; opacity: 0.42; display: block; }
.empty-title { display: block; margin-top: 9px; font-size: 15px; font-weight: 700; color: #1D1D1F; }
.empty-desc { display: block; margin-top: 5px; font-size: 12px; line-height: 1.6; color: #8A94A6; text-align: center; }

.add-area { padding: 0 12px 14px; }
.btn-add {
  width: 100%;
  height: 44px;
  line-height: 44px;
  border-radius: 22px;
  background: linear-gradient(135deg, #FFB64D, #FF8A3D);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
}
.btn-add:active { transform: scale(.985); }

.btn-add::after { border: none; }

.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 998; }
.modal-body {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: #FFFFFF;
  border-radius: 16px 16px 0 0;
  max-height: 85vh;
  transform: translateY(100%);
  transition: .35s ease;
}

.modal-body.show { transform: translateY(0); }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #F2F4F7;
}

.modal-title { font-size: 17px; font-weight: 700; color: #1D1D1F; }
.modal-close { font-size: 20px; color: #C4C8D0; padding: 0 4px; }

.form-area { padding: 14px 16px; max-height: 56vh; overflow-y: auto; }
.form-group { margin-bottom: 14px; }
.form-label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 500; color: #6B7280; }
.form-input,
.form-picker,
.form-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #E5E7EB;
  border-radius: 9px;
  background: #F7F8FA;
  font-size: 14px;
  color: #1D1D1F;
}

.form-input,
.form-picker {
  height: 42px;
  line-height: 42px;
  padding: 0 12px;
}

.form-textarea {
  min-height: 90px;
  padding: 10px 12px;
  line-height: 1.6;
}

.wxid-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.wxid-row .form-input { flex: 1; }

.scan-btn {
  width: 75px;
  height: 42px;
  line-height: 42px;
  border-radius: 9px;
  background: linear-gradient(135deg, #4A90D9, #5BA3F0);
  color: #FFFFFF !important;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.scan-btn::after { border: none; }

.openid-hint {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-top: 6px;
  padding: 7px 8px;
  background: rgba(255,149,0,0.06);
  border-radius: 6px;
}

.hint-icon {
  font-size: 12px;
  flex-shrink: 0;
  line-height: 1.6;
}

.hint-text {
  font-size: 11px;
  color: #9AA0A6;
  line-height: 1.6;
}

.modal-footer {
  display: flex;
  gap: 8px;
  padding: 10px 16px 24px;
  border-top: 1px solid #F2F4F7;
}

.modal-cancel,
.modal-confirm {
  flex: 1;
  height: 41px;
  line-height: 41px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
}

.modal-cancel::after,
.modal-confirm::after { border: none; }
.modal-cancel { background: transparent; border: 1px solid #E5E7EB; color: #6B7280; }
.modal-confirm { background: #4A90D9; color: #FFFFFF; }


.container{background:#F7FAFC}
.header{background:#fff;border-bottom:0.5px solid #E7EDF4}
.header-title{color:#172033;font-weight:900}
.header-sub{color:#667386}
.summary-card,.object-card{border-radius:15px;border:0.5px solid #E7EDF4;box-shadow:0 6px 15px rgba(15,23,42,.06)}
.object-status,.object-bind-status{min-height:22px;padding:4px 9px;border-radius:499.5px;font-size:11px;font-weight:900;line-height:1.2}
.object-status.ok,.object-bind-status.ok{background:#EAF8EF;color:#24A26B}
.object-status.warn,.object-bind-status.warn{background:#FFF4DC;color:#B86B00}
.btn-action{min-height:26px;line-height:26px;padding:0 11px;border-radius:499.5px;font-weight:800;box-sizing:border-box}
.btn-action.primary,.btn-action.info{background:#EAF8EF;color:#24A26B}
.btn-action.share{background:#FFF4DC;color:#B86B00}
.btn-action.copy,.btn-action.edit{background:#F1F6FA;color:#172033}
.btn-action.del{background:#FFF0F2;color:#D93D42}
.empty-state{padding:48px 20px 36px}
.empty-icon{color:#A6AFBA;opacity:.72}
.empty-title{color:#172033;font-weight:900}
.empty-desc{color:#667386}
.add-area{padding:8px 36px 17px;text-align:center}
.add-area .btn-add{width:100%!important;max-width:250px!important;height:41px!important;line-height:41px!important;margin:0 auto!important;font-size:14px!important}
.btn-add,.scan-btn,.modal-confirm{background:#24A26B!important;color:#fff;border-radius:499.5px;box-shadow:none}
.modal-cancel{background:#F1F6FA!important;color:#172033!important;border:0!important;border-radius:499.5px}
.modal-footer{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;padding:10px 16px calc(17px + env(safe-area-inset-bottom,0))}
.modal-cancel,.modal-confirm{width:100%!important;max-width:none;margin:0!important;height:40px;line-height:40px}


.container{
  background:
    radial-gradient(circle at 12% 4%, rgba(239,154,130,.16), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(255,213,154,.2), transparent 28%),
    linear-gradient(180deg,#FFF8F1 0%,#FFFDF8 100%);
}
.header,.summary-card,.object-card,.modal-body,.empty-state{
  background:rgba(255,255,255,.9);
  border-color:#F0DDD2;
  box-shadow:0 8px 17px rgba(140,84,58,.08);
}
.header-title,.summary-title,.object-name,.empty-title,.modal-title{color:#3B2A25}
.header-sub,.summary-desc,.object-meta,.object-contact,.object-notes,.empty-desc,.form-label{color:#8A746B}
.object-status.ok,.object-bind-status.ok,.btn-action.primary,.btn-action.info{background:#FFF1EA!important;color:#C97854!important}
.object-status.warn,.object-bind-status.warn,.btn-action.share{background:#FFF5DF!important;color:#B87825!important}
.btn-action.copy,.btn-action.edit,.modal-cancel{background:#FFF4EA!important;color:#5A3B31!important}
.btn-add,.scan-btn,.modal-confirm{background:linear-gradient(135deg,#E39176,#D9826B)!important}


.container {
  min-height: 100vh;
  background: #F5F5F7;
  padding: 12px;
  box-sizing: border-box;
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 12px;
  border-radius: 11px;
  background: linear-gradient(135deg, #FFF7E8, #FDE7C7);
}
.hero.ok{background:linear-gradient(135deg,#F5FFF8,#FFF8F1)}
.hero.warn{background:linear-gradient(135deg,#FFF8EA,#FFFDF8)}
.hero.alert{background:linear-gradient(135deg,#FFF1F1,#FFF8F1)}

.hero-title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #1D1D1F;
}

.hero-sub {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #7C5A25;
}

.hero-badge {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 499.5px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,.86);
}

.hero-badge.ok { color: #34C759; }
.hero-badge.warn { color: #FF9500; }
.hero-badge.alert { color: #D94B55; }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.summary-card,
.section {
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.04);
}

.summary-card {
  padding: 10px 9px;
}

.summary-label {
  display: block;
  font-size: 11px;
  color: #9AA0A6;
}

.summary-value {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  font-weight: 700;
}

.summary-value.ok { color: #34C759; }
.summary-value.warn { color: #FF9500; }
.summary-value.alert { color: #D94B55; }

.section {
  margin-top: 8px;
  padding: 11px 10px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.section-title {
  font-size: 14px;
  font-weight: 700;
  color: #1D1D1F;
}

.section-link {
  font-size: 11px;
  color: #4A90D9;
}

.info-list {
  margin-top: 7px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-top: 0.5px solid #EEF2F6;
}

.info-row:first-child { border-top: none; padding-top: 0; }
.info-row.notes { align-items: flex-start; }

.info-label {
  flex-shrink: 0;
  font-size: 11.5px;
  color: #9AA0A6;
}

.info-value {
  flex: 1;
  text-align: right;
  font-size: 12px;
  line-height: 1.6;
  color: #374151;
  word-break: break-all;
}

.contact-card {
  padding: 8px 0;
  border-top: 0.5px solid #EEF2F6;
}

.contact-card:first-child {
  border-top: none;
  padding-top: 7px;
}

.contact-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1D1D1F;
}

.contact-meta {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: #6B7280;
}

.alert-list {
  margin-top: 7px;
}

.alert-item {
  padding: 9px 0;
  border-top: 0.5px solid #EEF2F6;
}

.alert-item:first-child {
  border-top: none;
  padding-top: 7px;
}

.alert-item.warn .alert-title {
  color: #D97706;
}

.alert-item.alert .alert-title {
  color: #E11D48;
}

.alert-item.ok .alert-title {
  color: #16A34A;
}

.alert-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.alert-title {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  color: #1D1D1F;
}

.alert-time {
  flex-shrink: 0;
  font-size: 11px;
  color: #9AA0A6;
}

.alert-desc {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.7;
  color: #6B7280;
}

.timeline {
  margin-top: 7px;
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 0 0 10px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:last-child .timeline-body {
  padding-bottom: 0;
}

.timeline-item:last-child .timeline-body::after {
  display: none;
}

.timeline-marker {
  position: relative;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 3px;
  border-radius: 50%;
  background: #4A90D9;
  box-shadow: 0 0 0 3px rgba(74,144,217,0.12);
}
.timeline-marker.ok{background:#24A26B;box-shadow:0 0 0 3px rgba(36,162,107,.12)}
.timeline-marker.warn{background:#D9826B;box-shadow:0 0 0 3px rgba(217,130,107,.14)}
.timeline-marker.alert{background:#D94B55;box-shadow:0 0 0 3px rgba(217,75,85,.14)}

.closure-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  margin-top:9px;
}
.closure-actions button{
  height:38px;
  line-height:38px;
  border-radius:499.5px;
  background:#D9826B;
  color:#fff;
  font-size:12.5px;
  font-weight:900;
}
.closure-actions button.light{
  background:#FFF4EA;
  color:#5A3B31;
}
.closure-actions button::after{border:0}

.timeline-body {
  position: relative;
  flex: 1;
  padding-bottom: 10px;
}

.timeline-body::after {
  content: '';
  position: absolute;
  left: -13px;
  top: 13px;
  bottom: -3px;
  width: 1px;
  background: #DCE7F5;
}

.timeline-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.timeline-title {
  flex: 1;
  font-size: 12.5px;
  font-weight: 700;
  color: #1D1D1F;
}

.timeline-time {
  flex-shrink: 0;
  font-size: 11px;
  color: #9AA0A6;
}

.timeline-desc {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.7;
  color: #6B7280;
}

.empty-mini {
  margin-top: 7px;
  padding: 12px 0 4px;
  text-align: center;
}

.empty-mini-text {
  font-size: 11.5px;
  color: #86868B;
}

.actions {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}

.primary-btn,
.ghost-btn {
  flex: 1;
  height: 42px;
  line-height: 42px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}

.primary-btn {
  background: #4A90D9;
  color: #FFFFFF;
}

.ghost-btn {
  background: #FFFFFF;
  color: #4A90D9;
  border: 1px solid rgba(74,144,217,0.18);
}

.primary-btn::after,
.ghost-btn::after {
  border: none;
}

.bind-actions {
  display: flex;
  gap: 7px;
  margin-top: 7px;
}

.bind-btn {
  flex: 1;
  height: 40px;
  line-height: 40px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
}

.bind-btn.share {
  background: rgba(255,182,77,0.18);
  color: #D97706;
}

.bind-btn.copy {
  background: #FFFFFF;
  color: #5A67D8;
  border: 1px solid rgba(90,103,216,0.14);
}

.bind-btn::after {
  border: none;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
}

.empty-title {
  font-size: 15px;
  font-weight: 700;
  color: #1D1D1F;
}

.empty-link {
  margin-top: 9px;
  font-size: 12px;
  color: #4A90D9;
}


.primary-btn{background:#24A26B!important;color:#fff!important;border-radius:499.5px}
.ghost-btn{background:#F1F6FA!important;color:#172033!important;border:0!important;border-radius:499.5px}
.bind-btn{border-radius:499.5px;font-weight:900}
.bind-btn.share{background:#24A26B;color:#fff}
.bind-btn.copy{background:#F1F6FA;color:#172033;border:0}
.empty-state{padding:48px 20px 36px}
.empty-title{color:#172033;font-weight:900}
.empty-link{color:#24A26B}


.container {
  min-height: 100vh;
  background: #F5F5F7;
  padding: 16px 12px;
}

.hero {
  padding: 20px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4A90D9, #5BA3F0);
}

.hero-title {
  display: block;
  font-size: 19px;
  font-weight: 700;
  color: #FFFFFF;
}

.hero-sub {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,0.86);
}

.card {
  margin-top: 12px;
  padding: 14px 12px;
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: 0 1px 5px rgba(0,0,0,0.04);
}

.card-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #1D1D1F;
}

.card-line {
  display: block;
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #5F6B7A;
}

.form-input {
  width: 100%;
  height: 42px;
  margin-top: 9px;
  padding: 0 11px;
  border-radius: 9px;
  background: #F7FAFF;
  border: 1px solid #E7EEF7;
  color: #1D1D1F;
  font-size: 13px;
}

.confirm-btn {
  margin-top: 14px;
  height: 44px;
  line-height: 44px;
  border-radius: 22px;
  background: #4A90D9;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
}

.confirm-btn::after { border: none; }
.success { border: 1px solid rgba(52,199,89,0.18); }
.invalid { border: 1px solid rgba(255,149,0,0.18); }


.container{min-height:100vh;padding-bottom:24px;background:linear-gradient(180deg,#fff8f1 0%,#f7fbf7 46%,#f6f8fb 100%)}
.header{position:relative;margin:0 0 9px;padding:27px 17px 46px;overflow:hidden;background:radial-gradient(circle at 18% 18%,rgba(255,214,190,.9),transparent 32%),linear-gradient(135deg,#fff3e6 0%,#f4fbf2 56%,#edf8ff 100%)}
.header::after{content:'';position:absolute;right:-35px;bottom:-45px;width:130px;height:130px;border-radius:50%;background:rgba(255,184,178,.28)}
.header-kicker{display:inline-block;padding:5px 10px;border-radius:499.5px;background:rgba(255,255,255,.68);color:#b97855;font-size:11.5px;font-weight:700}
.header-title{display:block;margin-top:12px;color:#4d3b31;font-size:21px;font-weight:900;letter-spacing:0.5px}
.header-sub{display:block;margin-top:7px;max-width:280px;color:#8f786a;font-size:13px;line-height:1.7}
.login-tip-card,.not-promoter,.promoter-card,.withdraw-status-card,.invite-card,.record-list,.customer-list{margin:0 12px;border:0.5px solid rgba(255,255,255,.75);border-radius:16px;background:rgba(255,255,255,.78);box-shadow:0 9px 24px rgba(154,112,82,.12);backdrop-filter:blur(8px)}
.login-tip-card{padding:15px 13px}
.login-tip-title{display:block;color:#4d3b31;font-size:15.5px;font-weight:850}
.login-tip-desc{display:block;margin-top:5px;color:#927b6d;font-size:12px;line-height:1.6}
.login-tip-btn{margin:12px 0 0;width:105px;height:38px;line-height:38px;border-radius:499.5px;background:linear-gradient(135deg,#e98e80,#d96b70);color:#fff;font-size:13px;font-weight:800;box-shadow:0 6px 14px rgba(217,107,112,.28)}
button::after{border:0}
.not-promoter{margin-top:-23px;padding:18px 14px 17px;text-align:center}
.promoter-visual{position:relative;margin:0 auto 11px;width:105px;height:76px;border-radius:22px;background:linear-gradient(135deg,#ffe6dc,#fff7df 58%,#eef9ef);box-shadow:inset 0 0 0 1px rgba(255,255,255,.7),0 10px 20px rgba(224,139,116,.16)}
.promoter-icon{position:relative;z-index:2;display:block;padding-top:24px;color:#cf6b60;font-size:23px;font-weight:900}
.heart{position:absolute;border-radius:50%;background:rgba(232,126,119,.32)}
.heart-a{left:17px;top:15px;width:21px;height:21px}
.heart-b{right:15px;bottom:13px;width:28px;height:28px;background:rgba(172,207,160,.32)}
.promoter-title{display:block;color:#4d3b31;font-size:19px;font-weight:900}
.promoter-desc{display:block;margin:7px auto 15px;max-width:270px;color:#8d7669;font-size:13px;line-height:1.7}
.benefit-list{display:flex;gap:7px;margin-bottom:17px}
.ben-item{flex:1;padding:11px 5px;border-radius:13px;background:linear-gradient(180deg,rgba(255,255,255,.78),rgba(255,248,239,.82))}
.ben-val{display:block;color:#c9675e;font-size:17px;font-weight:900}
.ben-lbl{display:block;margin-top:3px;color:#9a8272;font-size:11px}
.btn-apply{display:flex;align-items:center;justify-content:center;margin:0 auto;width:210px;height:44px;border-radius:499.5px;background:linear-gradient(135deg,#ec9a82,#d86a72);color:#fff;font-size:14.5px;font-weight:850;box-shadow:0 8px 18px rgba(216,106,114,.3)}
.income-top-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:-23px;padding:0 12px}
.income-top-card{padding:12px 8px;border-radius:14px;background:rgba(255,255,255,.78);box-shadow:0 7px 17px rgba(113,142,126,.1)}
.income-top-card.green{background:linear-gradient(180deg,#f2fff4,#fff)}
.income-top-card.mint{background:linear-gradient(180deg,#f1fbff,#fff)}
.income-top-label{display:block;color:#8c7a6f;font-size:11px}
.income-top-value{display:block;margin-top:5px;color:#4b3c34;font-size:15.5px;font-weight:900}
.promoter-card{position:relative;margin-top:10px;padding:16px 14px;overflow:hidden;color:#fff;background:radial-gradient(circle at 85% 18%,rgba(255,224,166,.32),transparent 30%),linear-gradient(135deg,#d98774,#76aaa2)}
.pc-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.pc-level-badge{padding:4px 10px;border-radius:499.5px;background:rgba(255,255,255,.2);font-size:11.5px;font-weight:800}
.pc-level-text{font-size:12.5px;opacity:.86}
.pc-stats-row{display:flex;gap:7px}
.pcs-item{flex:1;padding:9px 4px;border-radius:12px;background:rgba(255,255,255,.16);text-align:center}
.pcs-val{display:block;font-size:17px;font-weight:900}
.pcs-lbl{display:block;margin-top:4px;font-size:11px;opacity:.76}
.withdraw-status-card{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-top:10px;padding:13px}
.withdraw-status-title{display:block;color:#4d3b31;font-size:14.5px;font-weight:850}
.withdraw-status-desc{display:block;margin-top:4px;color:#8d7669;font-size:11.5px;line-height:1.6}
.withdraw-status-btn{flex-shrink:0;margin:0;height:37px;line-height:37px;padding:0 14px;border-radius:499.5px;background:linear-gradient(135deg,#91cfa6,#5fb19e);color:#fff;font-size:12px;font-weight:800}
.section{padding:14px 12px 0}
.sec-title{display:block;margin-bottom:8px;color:#4d3b31;font-size:15px;font-weight:850}
.invite-card{margin:0;padding:14px;background:linear-gradient(135deg,rgba(255,248,240,.9),rgba(242,251,247,.9))}
.ic-label{display:block;margin-bottom:5px;color:#9a8272;font-size:11.5px}
.ic-code{display:block;color:#c9675e;font-size:23px;font-weight:950;letter-spacing:3.5px}
.ic-code.empty{color:#b5a69a;font-size:14px;letter-spacing:0}
.ic-actions,.action-row{display:flex;gap:7px;margin-top:11px}
.ic-btn,.action-btn{flex:1;height:38px;line-height:38px;border-radius:11px;font-size:13px;font-weight:800}
.ic-btn.copy,.action-btn.outline{background:rgba(255,255,255,.72);color:#7c938e}
.ic-btn.share,.action-btn.primary{background:linear-gradient(135deg,#ed9a82,#d96a72);color:#fff;box-shadow:0 6px 14px rgba(216,106,114,.22)}
.action-row{padding:0 12px;margin-bottom:2px}
.record-list,.customer-list{margin:0;overflow:hidden}
.rec-item,.cust-item{display:flex;align-items:center;padding:12px 13px;border-bottom:0.5px solid rgba(154,130,114,.12)}
.rec-item:last-child,.cust-item:last-child{border-bottom:0}
.rec-left,.cust-info{flex:1}
.rec-user,.cust-name{display:block;color:#4d3b31;font-size:14px;font-weight:800}
.rec-time,.cust-phone,.cust-date{display:block;margin-top:3px;color:#a08d82;font-size:11px}
.rec-right,.cust-meta{text-align:right}
.rec-amount{display:block;color:#69a984;font-size:15.5px;font-weight:900}
.rec-status{display:block;margin-top:2.5px;color:#a08d82;font-size:10.5px}
.rec-status.pending{color:#d9a35d}
.rec-status.settled{color:#69a984}
.cust-avatar{display:flex;align-items:center;justify-content:center;margin-right:9px;width:35px;height:35px;border-radius:50%;background:linear-gradient(135deg,#f4b39f,#8ec9b9);color:#fff;font-size:14px;font-weight:900}
.cust-status{display:block;margin-top:2.5px;color:#69a984;font-size:10.5px}
.empty-state{padding:29px 12px;text-align:center}
.empty-text{color:#a08d82;font-size:13px}


.btn-apply,.login-tip-btn,.withdraw-status-btn,.ic-btn.share,.action-btn.primary{border-radius:499.5px!important;background:#24A26B!important;color:#fff!important;box-shadow:none!important}
.ic-btn.copy,.action-btn.outline{border-radius:499.5px!important;background:#F1F6FA!important;color:#172033!important}
.pc-level-badge,.rec-status,.cust-status{min-height:22px;padding:4px 9px;border-radius:499.5px;font-size:11px;font-weight:900}
.rec-status.pending{background:#FFF4DC;color:#B86B00}
.rec-status.settled,.cust-status{background:#EAF8EF;color:#24A26B}
.empty-state{padding:48px 20px 36px}
.empty-text{color:#667386}


.container { min-height: 100vh; background: #f6f8fb; padding: 12px; box-sizing: border-box; }
.form-card { background: #fff; border-radius: 12px; padding: 12px; box-shadow: 0 4px 12px rgba(47,128,237,0.08); }
.form-item { margin-bottom: 12px; }
.label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }
.input { height: 42px; background: #f7f8fa; border-radius: 8px; padding: 0 12px; font-size: 14px; }
.switch-item { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-top: 0.5px solid #f0f0f0; }
.action-area { margin-top: 16px; }
.btn-save { height: 44px; line-height: 44px; background: linear-gradient(135deg,#2F80ED,#56CCF2); color: #fff; border-radius: 22px; font-size: 15px; }
