@font-face{font-family:Noto;src:url('./assets/NotoSans-Regular.ttf')}@font-face{font-family:Noto;src:url('./assets/NotoSans-Bold.ttf');font-weight:700}
:root{--ink:#293630;--muted:#6b7972;--accent:#006d68;--pale:#e8f3ef;--linen:#faf9f6;--rose:#f0dfe6;--truffle:#5a3735;--danger:#a45651;--shadow:0 8px 32px #29363005}*{box-sizing:border-box}body{margin:0;color:var(--ink);font:14px/1.6 Noto,system-ui,sans-serif;background-color:var(--linen);background-image:repeating-linear-gradient(0deg,#887a5d03 0 1px,transparent 1px 4px),repeating-linear-gradient(90deg,#887a5d03 0 1px,transparent 1px 4px)}button,input,select,textarea{font:inherit}a{color:var(--accent);text-decoration:none}button,a,input,select,textarea{touch-action:manipulation}button,a.btn{cursor:pointer}button{border:0}button:disabled{opacity:.45;cursor:not-allowed}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #b5845b;outline-offset:4px}h1,h2,h3,p{margin:0}h1{font-size:32px;line-height:1.3;letter-spacing:-1px}h2{font-size:20px;line-height:1.4;letter-spacing:-.3px}h3{font-size:15px}p+p{margin-top:12px}small,.muted{color:var(--muted)}small{font-size:12px}.icon{width:22px;height:22px;flex-shrink:0;display:inline-block;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.sidebar{position:fixed;inset:0 auto 0 0;width:224px;padding:26px 20px;background:#fbf7f8eb;display:flex;flex-direction:column;gap:28px;z-index:10}.logo img{width:110px;height:56px;object-fit:contain}.nav{display:flex;flex-direction:column;gap:5px}.nav a{display:flex;gap:14px;align-items:center;color:#78686f;padding:12px 14px;border-radius:14px;min-height:48px}.nav a.active{background:var(--rose);color:var(--accent);font-weight:bold}.nav a:hover{background:#eee9e9}.side-bottom{margin-top:auto;display:grid;gap:12px}.mini-plan{background:#eee8e4;border-radius:18px;padding:18px;color:var(--truffle)}.mini-plan strong{display:block;font-size:17px;margin:5px 0}.mini-plan small{display:block;color:inherit}.mini-plan a{display:block;margin-top:12px}.main-shell{margin-left:224px}.topbar{height:82px;padding:16px 40px;display:flex;justify-content:space-between;align-items:center;gap:16px}.top-actions{display:flex;gap:10px;align-items:center}.topbar .logo{display:none}.iconbtn{width:44px;height:44px;border-radius:14px;display:inline-grid;place-items:center;background:#e8eeea;color:var(--accent)}.top-account{display:flex;align-items:center;gap:10px;color:var(--ink)}.avatar{width:46px;height:46px;border-radius:50%;object-fit:cover;background:var(--rose);display:inline-grid;place-items:center;color:var(--truffle);font-size:20px;font-weight:700;flex-shrink:0}.avatar.large{width:88px;height:88px;font-size:34px}.avatar.xlarge{width:132px;height:132px;font-size:42px}main{max-width:1370px;margin:0 auto;padding:20px 40px 64px;min-height:calc(100vh - 110px)}.page-head{margin:12px 0 28px;display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.eyebrow{text-transform:uppercase;letter-spacing:1.5px;font-size:10px;font-weight:700;color:var(--muted);margin-bottom:8px}.page-head p{margin-top:9px;color:var(--muted)}.btn{display:inline-flex;min-height:46px;align-items:center;justify-content:center;gap:9px;background:#e8eeea;color:var(--accent);padding:11px 18px;border-radius:12px;font-weight:700;line-height:1.4;text-align:center}.btn:hover{filter:brightness(.96)}.btn.primary{background:var(--accent);color:#fff}.btn.rose{background:var(--rose);color:var(--truffle)}.btn.danger{background:#f7e9e6;color:var(--danger)}.btn.plain{background:transparent}.btn.small{font-size:12px;padding:8px 12px;min-height:38px}.btn.wide{width:100%}.card{background:#fff;border-radius:22px;padding:26px;box-shadow:var(--shadow);min-width:0}.card.pale{background:#eef5f1}.card.rose{background:#f7eef0}.card+.card{margin-top:18px}.grid{display:grid;gap:22px}.two{grid-template-columns:minmax(0,1fr) 324px}.equal{grid-template-columns:repeat(2,minmax(0,1fr))}.three{grid-template-columns:repeat(3,minmax(0,1fr))}.stack{display:grid;gap:18px}.stack>.card{margin:0}.row{display:flex;gap:14px;align-items:center}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.gap-top{margin-top:22px}.badge{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:8px;font-size:11px;font-weight:700;line-height:1.5;background:var(--pale);color:var(--accent)}.badge.rose{background:var(--rose);color:var(--truffle)}.badge.gold{background:#faf0da;color:#9d6926}.subtle{font-size:12px;color:var(--muted)}.hero{background:#eaf2eb;overflow:hidden;position:relative}.hero h1{font-size:34px;max-width:530px}.hero p{max-width:520px;margin-top:12px}.hero .row{margin-top:22px}.family-strip{display:flex;gap:10px;flex-wrap:wrap}.person-chip{display:flex;align-items:center;gap:10px;padding:9px 14px 9px 9px;border-radius:16px;background:#f5f4f0;color:var(--ink)}.person-chip .avatar{width:34px;height:34px;font-size:14px}.journey{display:flex;align-items:center;padding:24px 0 32px;position:relative;justify-content:space-between;gap:0}.month{position:relative;flex:1;display:flex;justify-content:center}.month:before{content:'';height:2px;background:#e1e5df;position:absolute;left:-50%;right:50%;top:22px}.month:first-child:before{display:none}.month.passed:before,.month.now:before{background:#91bcb2}.month button{border:0;position:relative;z-index:1;width:36px;height:36px;margin-top:4px;border-radius:50%;background:#f1f2ed;color:var(--muted);font-weight:bold}.month.passed button{background:#d8ebe4;color:var(--accent)}.month.now button{width:46px;height:46px;margin:0;background:var(--accent);color:#fff}.month button[aria-pressed=true]{box-shadow:0 5px 0 -1px #c4b095;transform:scale(1.12)}.month label{position:absolute;top:55px;font-size:10px;white-space:nowrap;color:var(--accent)}.event{display:flex;align-items:flex-start;gap:14px;padding:18px 0;color:var(--ink)}.event+.event{border-top:1px solid #f0f1ed}.event-icon{height:46px;width:46px;display:grid;place-items:center;border-radius:14px;flex-shrink:0;background:#e5f1ec;color:#006d68}.event-icon.home{background:#faf0dc;color:#9f6724}.event-icon.document{background:#eee8f4;color:#78628c}.event-icon.family{background:#f6e8e8;color:#a3646a}.event small{display:block;margin-top:5px}.event-arrow{margin-left:auto;color:var(--muted)}.event strong{font-size:14px}.metric{font-size:28px;font-weight:bold;letter-spacing:-1px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.action-list{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.action-list .btn{flex:1 1 160px}.notice{border-radius:16px;background:#eef5f1;padding:20px}.notice.rose,.notice.error{background:#f7e9e6}.notice p{color:var(--muted);margin-top:8px}.details{margin:0}.details>div{display:flex;justify-content:space-between;gap:24px;padding:12px 0}.details>div+div{border-top:1px solid #e4ebe5}.details dt{color:var(--muted);flex:1}.details dd{margin:0;flex:1;font-weight:700;overflow-wrap:anywhere}.field{display:grid;gap:8px;color:var(--muted);font-size:12px;margin-bottom:18px}.field input,.field select,.field textarea,.search{width:100%;border:0;border-radius:12px;background:#f2f4ef;padding:14px 16px;color:var(--ink);min-height:48px;font-size:14px}.field textarea{min-height:110px;resize:vertical}.field input[aria-invalid=true]{outline:2px solid var(--danger)}.choices,.tabs{display:flex;gap:8px;flex-wrap:wrap}.choices button,.tabs button{background:#eeeee8;color:var(--muted);padding:11px 15px;border-radius:12px;min-height:44px}.choices button.selected,.tabs button.selected{background:var(--pale);color:var(--accent);font-weight:bold}.steps{display:flex;gap:12px;margin-bottom:26px}.steps span{flex:1;font-size:11px;padding-top:10px;border-top:3px solid #e8ebe4;color:var(--muted)}.steps span.active{border-color:var(--accent);color:var(--accent)}.back{display:inline-flex;gap:8px;align-items:center;font-size:12px;margin-bottom:15px}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.weekday{text-align:center;padding:6px;font-size:12px;color:var(--muted)}.day{height:63px;border-radius:12px;background:#f7f8f4;color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.day.selected{background:var(--accent);color:#fff}.day i{display:flex;gap:3px;height:4px}.day b{width:4px;height:4px;border-radius:50%;background:#b4844b}.day b.clinic{background:#5aa597}.day b.family{background:#b26f7d}.gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.photo{position:relative;padding:0;background:#f2eee9;color:var(--ink);border-radius:16px;overflow:hidden;text-align:left}.photo img{width:100%;height:210px;object-fit:cover;display:block}.photo span{display:block;padding:12px;font-size:12px}.dropzone{padding:34px;text-align:center;background:#eef5f1;border-radius:18px}.dropzone.drag{background:#d3e9df}.dropzone p{margin:12px 0 18px}.file-input{position:absolute;opacity:0;width:1px;height:1px}.photo-view{max-height:65vh;max-width:100%;object-fit:contain;display:block;margin:auto;border-radius:16px}.product img{width:100%;height:175px;object-fit:contain;background:#f6f3ee;border-radius:16px;margin-bottom:16px}.product h3{min-height:45px}.product .price{font-size:18px;font-weight:700;margin:10px 0}.doctor-photo{height:80px;width:80px;border-radius:20px;object-fit:cover}.document-page{background:#fff;box-shadow:0 8px 30px #00000008;padding:42px;min-height:420px;max-width:700px;margin:auto;line-height:1.9}.document-page h2{margin:20px 0}.document-page p{margin:18px 0}.premium{background:#efe6e0;color:var(--truffle)}.premium .metric{font-size:38px}.benefits{padding:0;list-style:none}.benefits li{display:flex;gap:10px;padding:10px 0}.auth{max-width:650px;margin:20px auto}.avatar-edit{display:grid;place-items:center;gap:22px}.crop-window{position:relative;width:260px;height:260px;overflow:hidden;border-radius:50%;background:#eeeee8}.crop-window img{width:100%;height:100%;object-fit:cover;transform:translate(var(--x),var(--y)) scale(var(--zoom))}.crop-controls{width:100%;max-width:360px}.crop-controls input{width:100%;accent-color:var(--accent)}.empty{text-align:center;padding:50px 25px}.empty .event-icon{margin:0 auto 18px;width:64px;height:64px}.empty p{max-width:430px;margin:12px auto 20px;color:var(--muted)}.bottomnav{display:none}.preview-bar{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:12px;flex-wrap:wrap}.preview-bar button{font-size:11px;background:#e8eeea;color:var(--accent);padding:6px 9px;border-radius:8px}.preview-footer{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-top:38px;font-size:11px;color:var(--muted)}.preview-footer button{font:inherit}.skip{position:fixed;top:-60px;left:20px;padding:10px;background:white;z-index:100}.skip:focus{top:10px}dialog{width:min(820px,94vw);max-height:88vh;border:0;border-radius:24px;padding:28px;background:var(--linen);color:var(--ink)}dialog::backdrop{background:#15292288;backdrop-filter:blur(4px)}.close{float:right;width:40px;height:40px;font-size:26px;background:#e8eeea;color:var(--accent);border-radius:12px}.route-list{display:grid;gap:5px;margin-top:18px;max-height:55vh;overflow:auto}.route-list a{padding:10px;border-radius:8px;background:white}.route-list small{display:block}.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);z-index:100;background:#293630;color:white;padding:14px 22px;border-radius:14px;box-shadow:0 8px 20px #0002;max-width:90vw}.chat-bubble{padding:16px 20px;border-radius:18px;background:#eef5f1;margin:14px 0;max-width:85%;white-space:pre-wrap}.chat-bubble.mine{background:var(--rose);margin-left:auto}.hidden{display:none!important}.error-text{color:var(--danger);font-size:12px}.loading{width:42px;height:42px;border:3px solid #d8ebe4;border-top-color:var(--accent);border-radius:50%;animation:spin .9s linear infinite;margin:0 auto 20px}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}
@media(min-width:1600px){main{padding-top:32px}.topbar{max-width:1370px;margin:auto}}
@media(max-width:1150px){.sidebar{width:200px;padding:22px 14px}.main-shell{margin-left:200px}.topbar{padding:16px 24px}main{padding:14px 24px 60px}.two{grid-template-columns:minmax(0,1fr) 280px}.three{grid-template-columns:repeat(2,minmax(0,1fr))}.card{padding:22px}.hero h1{font-size:28px}}
@media(max-width:900px){.two{grid-template-columns:1fr}.topbar .preview-bar>span{display:none}.gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar{width:180px}.main-shell{margin-left:180px}.nav a{padding:11px 9px;gap:10px}.mini-plan{padding:14px}h1{font-size:28px}}
@media(max-width:650px){.sidebar{display:none}.main-shell{margin:0}.topbar{height:74px;padding:12px 20px}.topbar .logo{display:block}.topbar .logo img{width:85px;height:43px}.topbar>.preview-bar{display:none}.top-account span{display:none}.top-actions{gap:8px}.top-account .avatar{height:38px;width:38px}.top-actions>.help-link{display:none}main{padding:12px 16px 110px}.page-head{margin:12px 2px 22px;align-items:flex-start;flex-wrap:wrap}h1{font-size:27px}.hero h1{font-size:26px}h2{font-size:18px}.card{padding:20px;border-radius:20px}.equal,.three{grid-template-columns:1fr}.grid{gap:16px}.hero .row{flex-wrap:wrap}.row.wrap-mobile{flex-wrap:wrap}.family-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.person-chip{flex-direction:column;gap:6px;padding:10px 5px;font-size:12px}.family-strip small{display:none}.journey{margin:0 -8px}.month button{width:29px;height:29px;font-size:12px;margin-top:7px}.month.now button{width:40px;height:40px}.month label{top:49px;font-size:9px}.month:before{top:20px}.bottomnav{position:fixed;bottom:0;left:0;right:0;padding:7px 7px max(8px,env(safe-area-inset-bottom));display:flex;justify-content:space-around;background:#fffcf8f5;backdrop-filter:blur(15px);box-shadow:0 -5px 20px #29363006;z-index:20}.bottomnav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px 10px;border-radius:13px;font-size:9px;color:#78686f;min-width:56px;min-height:48px}.bottomnav a.active{background:var(--rose);color:var(--accent)}.preview-footer{align-items:flex-start;flex-direction:column;gap:12px}.gallery{gap:10px}.photo img{height:165px}.photo span{padding:10px}.details>div{gap:16px}.details dt,.details dd{font-size:12px}.action-list{gap:9px}.action-list .btn{flex-basis:100%}.day{height:49px;border-radius:10px}.calendar{gap:4px}.event-icon{width:40px;height:40px;border-radius:12px}.event{gap:11px}.document-page{padding:24px;min-height:370px}.btn{min-height:46px}.btn.small{min-height:44px}.toast{bottom:85px}.auth{margin-top:0}.crop-window{width:230px;height:230px}.steps{gap:8px}.steps span{font-size:10px}.product img{height:220px}.back{min-height:36px}.page-head .btn{font-size:12px}.preview-footer .preview-bar{width:100%}}
.hero-title{font-size:34px;line-height:1.3;letter-spacing:-1px;max-width:530px}@media(max-width:650px){.hero-title{font-size:26px}.month button::after{content:'';position:absolute;inset:-6px;border-radius:50%}}
.photo-view.expanded{max-height:none;width:100%;max-width:none}
/* Shared audit corrections: stable profile composition and consistent form actions. */
.family-person{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;height:100%;padding:8px 0}.family-person .avatar{width:108px;height:108px}.family-person .btn{margin-top:auto}.family-person p{margin-bottom:16px}.family-cards>.card{margin-top:0;min-height:330px}.avatar-group{gap:4px}.avatar-group .avatar{width:34px;height:34px}.profile-header{display:flex;align-items:center;gap:24px}.profile-identity{flex:1;min-width:0}.profile-identity h2{font-size:30px;line-height:1.35;overflow-wrap:anywhere;margin:12px 0 8px}.profile-identity .btn{margin-top:12px}.profile-status{flex-shrink:0}.profile-header>.avatar{width:132px;height:132px}.avatar-flow{max-width:1120px}.avatar-edit{text-align:center;gap:22px}.avatar-edit>.row:first-child{text-align:left;justify-self:start}.avatar-edit .action-list{width:100%;margin-top:0}.avatar-aside{align-self:start}.crop-stage{background:#64716b;padding:18px;border-radius:18px;position:relative}.crop-window{width:280px;height:280px}.crop-window img{transform:translate(var(--x),var(--y)) rotate(var(--rotation,0deg)) scale(var(--zoom))}.crop-grid{pointer-events:none;position:absolute;inset:33% 0;border-top:1px solid #fff5;border-bottom:1px solid #fff5}.generic-grid{align-items:start}.generic-form{display:grid;gap:20px}.generic-form>.action-list{margin:0;display:grid;grid-template-columns:1fr}.generic-form>.action-list .btn{width:100%}.generic-form .details{background:#f0f6f2;border-radius:16px;padding:16px}.generic-form .details dt{flex:0 0 34%;font-size:13px}.generic-form .details dd{font-size:14px}.cart-item{align-items:center}.notification-read{opacity:.75}.notification-unread:before{content:'';width:6px;height:6px;flex-shrink:0;border-radius:50%;background:var(--accent);margin-top:18px}.title-with-context{display:flex;gap:12px;align-items:center}.preview-footer{align-items:start}.topbar .preview-bar{font-size:10px}
@media(max-width:650px){.profile-header{display:grid;grid-template-columns:88px minmax(0,1fr);gap:16px;align-items:start}.profile-header>.avatar{width:88px;height:88px}.profile-identity h2{font-size:25px;margin:8px 0}.profile-identity p{font-size:12px}.profile-status{grid-column:1/-1;justify-self:start}.family-cards>.card{min-height:0}.family-person{display:grid;grid-template-columns:80px minmax(0,1fr);text-align:left;gap:8px 18px}.family-person>.avatar{grid-row:1/4;width:80px;height:80px}.family-person h2,.family-person>.badge,.family-person>p{grid-column:2;margin:0}.family-person>.badge{justify-self:start}.family-person small,.family-person>.btn{grid-column:1/-1}.family-person>.btn{margin-top:10px}.avatar-flow .grid{gap:16px}.crop-stage{padding:12px}.crop-window{width:230px;height:230px}.avatar-edit{gap:18px}.crop-controls{max-width:290px}.avatar-aside{order:2}.cart-item{flex-wrap:wrap}.cart-item>.row{margin-left:auto}.generic-form .details{padding:14px}.generic-form .details>div{flex-direction:column;gap:4px}.generic-form .details dt,.generic-form .details dd{flex:auto}.avatar-edit .action-list .btn{flex-basis:calc(50% - 8px)}}
