.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,.safe-home-actions .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}

.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;
}

.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;}

.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}
