:root {
  --navy: #27358e;
  --navy-2: #18236d;
  --cyan: #55c5ed;
  --red: #d92c28;
  --bg: #f4f8fb;
  --card: #ffffff;
  --text: #18233a;
  --muted: #667085;
  --line: #e7edf3;
  --success: #168a58;
  --warning: #a86108;
  --shadow: 0 10px 30px rgba(30, 52, 91, .09);
}
*{box-sizing:border-box} html,body{margin:0;min-height:100%;background:#e9eef4;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--text)}
button,input,select,textarea{font:inherit} button{cursor:pointer}
.app-shell{max-width:520px;margin:0 auto;min-height:100vh;background:var(--bg);box-shadow:0 0 40px rgba(22,35,60,.12);padding-bottom:88px;position:relative}
.topbar{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:11px;padding:10px 14px}
.logo{width:44px;height:44px;border-radius:50%;object-fit:cover;border:1px solid #d9e3f0}.brand{min-width:0}.brand strong{font-size:15px;display:block;color:var(--navy);line-height:1.25}.brand span{font-size:12px;color:var(--red);font-weight:700}
.content{padding:14px}.hero{background:linear-gradient(135deg,var(--navy),#344bb6);color:#fff;border-radius:24px;padding:18px;box-shadow:var(--shadow);position:relative;overflow:hidden}.hero:after{content:"";position:absolute;width:170px;height:170px;background:rgba(92,202,241,.25);border-radius:50%;right:-70px;top:-70px}.hero h1{font-size:22px;line-height:1.2;margin:0 0 6px;max-width:340px}.hero p{margin:0;color:#e7efff;font-size:14px;line-height:1.5;max-width:330px}.hero .primary{margin-top:15px;background:#fff;color:var(--navy);border:0;padding:12px 16px;border-radius:14px;font-weight:800}
.quick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:14px}.quick{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:14px;box-shadow:0 4px 15px rgba(30,52,91,.05);text-align:left;min-height:104px}.quick .ico{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#edf3ff;font-size:21px;margin-bottom:9px}.quick.red .ico{background:#fff0ef}.quick.cyan .ico{background:#e9f9ff}.quick strong{display:block;font-size:15px}.quick span{display:block;color:var(--muted);font-size:12.5px;margin-top:3px;line-height:1.35}
.section-title{display:flex;align-items:center;justify-content:space-between;margin:20px 2px 10px}.section-title h2{font-size:17px;margin:0}.section-title button{border:0;background:transparent;color:var(--navy);font-weight:700;font-size:13px}
.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:15px;box-shadow:0 4px 15px rgba(30,52,91,.04);margin-bottom:10px}.notice{background:#eef9ff;border-color:#d5f1fc}.notice strong{color:var(--navy)}.muted{color:var(--muted)}
.screen-head{display:flex;align-items:center;gap:10px;margin:2px 0 14px}.back{width:40px;height:40px;border-radius:13px;border:1px solid var(--line);background:#fff}.screen-head h2{margin:0;font-size:20px}.screen-head p{margin:2px 0 0;font-size:12.5px;color:var(--muted)}
label{display:block;font-size:13px;font-weight:700;margin:12px 0 6px}.field{width:100%;border:1px solid #d8e1ea;border-radius:13px;padding:12px 13px;background:white;outline:none;color:var(--text)}.field:focus{border-color:#8294dc;box-shadow:0 0 0 3px rgba(74,92,180,.10)}textarea.field{min-height:96px;resize:vertical}.row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.btn{border:0;border-radius:14px;padding:12px 15px;font-weight:800}.btn-primary{background:var(--navy);color:#fff}.btn-secondary{background:#edf1ff;color:var(--navy)}.btn-red{background:var(--red);color:#fff}.btn-full{width:100%;margin-top:14px}.pill{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:800;background:#edf3ff;color:var(--navy)}
.appt{display:flex;gap:12px}.datebox{width:58px;height:64px;border-radius:15px;background:#eef3ff;color:var(--navy);display:grid;place-items:center;text-align:center;flex:none}.datebox b{font-size:18px}.datebox span{font-size:10px;font-weight:800}.appt h3{margin:2px 0 4px;font-size:15px}.appt p{margin:2px 0;font-size:12.5px;color:var(--muted)}
.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(520px,100%);height:74px;background:rgba(255,255,255,.97);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);z-index:30;padding-bottom:max(6px,env(safe-area-inset-bottom))}.navbtn{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#7c879a;font-size:11px}.navbtn .nicon{font-size:20px}.navbtn.active{color:var(--navy);font-weight:800}
.ai-wrap{display:flex;flex-direction:column;height:calc(100vh - 155px)}.ai-banner{background:linear-gradient(135deg,#e9f9ff,#eef0ff);border:1px solid #d7e5f1;border-radius:18px;padding:13px;margin-bottom:10px;font-size:12.5px;line-height:1.45}.ai-banner strong{color:var(--navy)}.messages{flex:1;overflow:auto;padding:2px 0 10px}.msg{max-width:88%;border-radius:16px;padding:11px 12px;margin:8px 0;font-size:14px;line-height:1.55;white-space:pre-wrap}.msg.user{margin-left:auto;background:var(--navy);color:white;border-bottom-right-radius:5px}.msg.bot{background:white;border:1px solid var(--line);border-bottom-left-radius:5px}.msg.warn{background:#fff4e5;border:1px solid #ffdfad}.composer{display:flex;gap:8px;position:sticky;bottom:75px;background:linear-gradient(transparent,var(--bg) 22%);padding-top:13px}.composer textarea{min-height:50px;max-height:100px}.send{width:52px;flex:none;background:var(--navy);color:#fff;border:0;border-radius:14px;font-size:18px}.suggestions{display:flex;gap:7px;overflow:auto;padding:2px 0 8px;scrollbar-width:none}.suggestions button{white-space:nowrap;border:1px solid #d8e1ea;background:white;border-radius:999px;padding:8px 10px;font-size:12px;color:var(--navy)}
.profile-head{text-align:center;padding:10px}.avatar{width:76px;height:76px;border-radius:50%;object-fit:cover;border:3px solid white;box-shadow:0 4px 15px rgba(0,0,0,.1)}.profile-head h2{margin:8px 0 2px;font-size:19px}.profile-head p{margin:0;color:var(--muted);font-size:13px}.list-item{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.list-item:last-child{border-bottom:0}.list-icon{width:38px;height:38px;border-radius:12px;background:#edf3ff;display:grid;place-items:center}.list-item strong{font-size:14px}.list-item span{display:block;font-size:12px;color:var(--muted);margin-top:2px}.chev{margin-left:auto;color:#98a2b3}.success{background:#eaf8f1;color:var(--success);border-radius:14px;padding:12px;font-size:13px;margin-top:12px;border:1px solid #cdebdc}.error{background:#fff0f0;color:#9a1d1d;border-radius:14px;padding:12px;font-size:13px;margin-top:12px;border:1px solid #f0caca}
@media (min-width:521px){body{padding:18px 0}.app-shell{border-radius:28px;overflow:hidden;min-height:calc(100vh - 36px)}.bottom-nav{bottom:18px;border-radius:0 0 28px 28px}}
