/* The editorial frame stays geometric; the two touch surfaces stay quiet. */
:root{--oxide:#a63b36;--diagnostic:#4e8ca7;--phone-text:#202823;--phone-secondary:#606c65;--phone-surface:#f3f5f4;--phone-radius:22px}
.intro{border-bottom-color:#34383a}.edition-number{color:var(--oxide)}.brand-icon{border-color:#c7d3cd}.scenario-grid button:nth-child(2):before{color:#80651d}.scenario-grid button:nth-child(3):before{color:var(--oxide)}.family-column .role-number{color:#396b82}.role-heading{border-bottom-color:#bfc6c0}.role-chip{font-family:Consolas,monospace}.connection-line{border-color:var(--diagnostic)}.connection>span{color:#396b82;border-color:#8eabb7}.director{border-left-color:var(--diagnostic)}
.screen{background:var(--phone-surface);color:var(--phone-text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased}
.phone{filter:drop-shadow(0 20px 22px #152d2524)}.phone-scroll{padding:13px 18px 25px;scroll-padding:18px}.statusbar{height:59px;padding-top:20px;font-size:12px;font-weight:700;background:var(--phone-surface)}.homebar{height:4px;margin:9px auto 8px;background:#19251f}
.ui-icon{display:inline-block;width:22px;height:22px;flex-shrink:0;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.older-content .greeting{font-size:26px;font-weight:720;letter-spacing:-.5px;line-height:1.25;margin:5px 0 9px}.greeting .greeting-small{display:block;color:var(--phone-secondary);font-size:20px;line-height:1.5;font-weight:450;letter-spacing:0;margin-bottom:2px}.older-content .date{font-size:20px;color:var(--phone-secondary);margin-bottom:22px;line-height:1.5}
.med-card{background:#fff;border:1px solid #e2e9e4;border-radius:var(--phone-radius);padding:18px;margin-bottom:20px;box-shadow:0 5px 14px #16382905}.card-overline{font-size:20px;font-weight:600;color:#37483d;gap:8px}.pill-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:#e7f1ed;color:var(--green);flex-shrink:0}.pill-icon .ui-icon{width:23px;height:23px}.med-time{font-family:inherit;font-size:49px;line-height:1.18;font-weight:680;letter-spacing:-2px;color:#202e26;margin:18px 0 8px;font-variant-numeric:tabular-nums}.med-time small{font-size:20px;font-weight:450;color:var(--phone-secondary);margin-left:9px}.med-detail{font-size:20px;color:#46564b;line-height:1.5}.med-divider{background:#e8ece9;margin:18px 0 14px}.med-bottom{font-size:20px;color:var(--green);line-height:1.5;font-weight:500}
.elder-button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:68px;padding:18px 10px;border-radius:18px;font-size:24px;line-height:1.35;font-weight:650;letter-spacing:-.3px}.elder-button .ui-icon{width:26px;height:26px}.confirm-button{background:var(--green);box-shadow:0 5px 11px #156b561b,inset 0 1px 0 #ffffff16}.help-button{margin-top:12px;background:#fff;color:#953c35;border:1px solid #dfc6c2;box-shadow:0 2px 4px #622c2003}.elder-button:disabled{opacity:1;background:#e4e9e6;color:#66766b;border-color:#dce3de;box-shadow:none}.elder-hint{font-size:20px;line-height:1.55;color:var(--phone-secondary);text-align:center;margin:20px 0 22px}.elder-contact{font-size:20px;border:0;border-radius:18px;background:white;padding:16px;line-height:1.6}.elder-contact button{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:20px;min-height:44px;color:var(--green)}
.family-top{margin:4px 0 25px;gap:12px}.family-top small{font-size:12px;font-weight:550;letter-spacing:.1px;color:var(--phone-secondary)}.family-top h3{font-size:25px;font-weight:730;letter-spacing:-.65px;line-height:1.3;margin:6px 0 0}.avatar{width:40px;height:40px;flex-shrink:0;border-radius:50%;background:#e2e9e5;border:3px solid white;box-shadow:0 2px 6px #152c250b;color:#40664f;font-size:15px;font-weight:650}
.family-person{gap:11px;margin-bottom:18px}.person-avatar{width:44px;height:44px;flex-shrink:0;border-radius:15px;background:#e6edf2;color:#39677f;border:1px solid #dae4ec;font-weight:650}.family-person strong{font-size:16px;line-height:1.5;color:#2c3930}.family-person small{font-size:12px;line-height:1.5;margin-top:2px;color:var(--phone-secondary)}
.state-card{padding:19px;border:1px solid var(--card-line);border-radius:var(--phone-radius);box-shadow:0 5px 14px #22342604;min-height:166px}.state-top{font-family:inherit;letter-spacing:1.1px;font-weight:650;font-size:11px;gap:8px}.state-symbol{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:#ffffff90;flex-shrink:0}.state-symbol .ui-icon{width:19px;height:19px}.state-card h3{font-size:23px;font-weight:730;line-height:1.3;letter-spacing:-.5px;margin:14px 0 10px}.state-card p{font-size:16px;line-height:1.6;color:#3e4b42}
.family-actions{gap:10px;margin:18px 0 0}.family-actions button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:9px;min-height:82px;padding:13px 6px;background:white;color:var(--green);border:1px solid #e1e8e3;border-radius:17px;font-size:14px;font-weight:600;box-shadow:0 2px 5px #243b3003}.family-actions button .ui-icon{width:23px;height:23px}.family-actions .primary{color:white;background:var(--green);border-color:var(--green);box-shadow:0 4px 10px #156b5614}.family-actions button:disabled{opacity:1;background:#edf0ee;border-color:#e3e7e4;color:#768079;box-shadow:none}.family-actions button:not(:disabled):hover{background:#e4eee8}.family-actions .primary:not(:disabled):hover{background:#105943}
.timeline-head{margin:25px 2px 12px;gap:8px}.timeline-head h4{font-size:17px;font-weight:700;letter-spacing:-.25px}.timeline-head button{color:var(--green);font-size:14px;min-height:44px;padding:6px 0;display:flex;align-items:center;gap:4px}.timeline-head .ui-icon{width:15px;height:15px}.timeline{padding:17px 14px 2px;background:white;border:1px solid #e4e9e5;border-radius:19px}.timeline li{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px;font-size:14px;line-height:1.6;padding-left:13px;padding-bottom:18px}.timeline time{font-size:12px;color:var(--phone-secondary);padding-top:2px;letter-spacing:-.2px}.timeline span{color:#3d5043}.timeline li:before{width:5px;height:5px;background:#76918a;top:9px}.timeline li:first-child:before{background:var(--green)}.timeline li:last-child:after{display:none}.family-foot{font-size:12px;color:var(--phone-secondary);line-height:1.6;margin:15px 5px 0}
.success-panel{border:1px solid #cadfd3;background:#e5f1e9;border-radius:20px;padding:18px;font-size:20px;line-height:1.6;box-shadow:none}.success-panel strong{font-size:24px;line-height:1.4;margin-bottom:7px}.success-panel.help{background:#f8e8e4;border-color:#e8c5bc;color:#8d3730}.notification{border-radius:20px;background:#fffffff5;border:1px solid #e1e7e2;box-shadow:0 6px 24px #172b2326;line-height:1.5;left:9px;right:9px;padding:14px}
dialog{border:1px solid #dbe2dc;border-radius:26px;padding:28px;background:#fafbf9;box-shadow:0 24px 80px #17251e35}dialog h2{font-weight:700;letter-spacing:-.5px}.modal-copy{font-size:16px}dialog textarea{border-radius:15px;background:white;padding:14px;line-height:1.6}dialog .submit{border-radius:14px;min-height:48px;font-weight:600}.modal-close{width:40px;height:40px;border-radius:50%;background:#e9eeea;line-height:1;margin:-10px -10px 10px 10px}
.phone button:focus-visible{outline:3px solid #156b56;outline-offset:4px}.phone .demo-focus-target{outline-width:3px!important;outline-offset:4px!important}.tap-marker b{white-space:nowrap}.screen button{transition:background 160ms,box-shadow 160ms}.screen button:not(:disabled):active{box-shadow:inset 0 0 0 2px #156b5630}
@media(max-width:1200px) and (min-width:1001px){.phone-scroll{padding-left:14px;padding-right:14px}.med-card{padding:15px}.older-content .greeting{font-size:25px}.family-top h3{font-size:23px}.family-person strong{font-size:15px}.state-card{padding:16px}.family-actions button{font-size:14px}.state-card h3{font-size:22px}}
@media(max-width:780px){.phone-scroll{padding:14px 20px 26px}.phone{filter:drop-shadow(0 14px 19px #152d251c)}}
