/* Unified patient web visual system: compact editorial layout, responsive and RTL. */
:root{--ink:#142d44;--muted:#748392;--line:#e3eaf0;--bg:#f3f6fa;--primary:#087f8c;--accent:#57c6ad;--dark:#123044;font-family:Tahoma,Arial,sans-serif}html{scroll-behavior:smooth}body{background:radial-gradient(ellipse at 90% 0%,#dbf3ee70,transparent 42%),#f3f6fa;color:var(--ink)}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{transition:background .18s,box-shadow .18s,transform .18s}button:active{transform:scale(.97)}button:focus-visible,a:focus-visible{outline:3px solid #6ccdc0;outline-offset:3px}.designed-action{display:inline-flex;align-items:center;justify-content:center;gap:10px}.designed-action svg{width:21px;height:21px;flex-shrink:0}.icon-action{position:relative;min-width:44px;min-height:44px}.icon-action .action-label{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.request-meter{position:fixed;inset:0 0 auto;height:3px;z-index:10000;overflow:hidden;background:#d8efed}.request-meter:after{content:'';position:absolute;width:36%;height:100%;background:linear-gradient(90deg,#087f8c,#77e2c4);animation:request-travel 1s ease-in-out infinite}button[aria-busy=true]{position:relative;opacity:.75;pointer-events:none}button[aria-busy=true] svg{visibility:hidden}button[aria-busy=true]:after{content:'';position:absolute;width:18px;height:18px;border:2px solid currentColor;border-inline-end-color:transparent;border-radius:50%;animation:upload-spin .8s linear infinite}.wrap{width:min(1240px,calc(100% - 64px))}.topbar{padding:23px 0;margin-bottom:10px}.brand-icon{border-radius:17px;background:var(--primary);box-shadow:0 7px 18px #087f8c22}.topbar nav{position:static;transform:none;box-shadow:none;background:transparent;border:0;width:auto;display:flex;gap:10px;padding:0}.topbar .outline-button{background:#fff;border:1px solid #d9e6e7;border-radius:16px}.topbar .text-button{border-radius:16px;background:#e8eeF3}.hero{position:relative;overflow:hidden;border-radius:36px;min-height:440px;background:linear-gradient(115deg,#123246 0%,#174c58 65%,#1f6c70 100%);border:0;padding:54px;box-shadow:0 25px 60px #163b4b16}.hero-content{max-width:620px;position:relative;z-index:2}.hero h1{font-size:clamp(32px,4.4vw,60px);line-height:1.35;letter-spacing:-1.8px;font-weight:600;color:#fff}.hero p{color:#c0d7dc;max-width:430px;font-size:15px;line-height:1.9}.hero .eyebrow{color:#82d9c4;background:#ffffff0c;border:1px solid #ffffff16;padding:8px 14px;border-radius:30px;font-size:11px}.hero-actions{gap:14px;align-items:center}.primary-button{border-radius:18px;background:var(--primary);box-shadow:0 6px 18px #087f8c15}.hero .primary-button{background:#78ddc2;color:#123d3d;box-shadow:0 10px 25px #0002;padding:16px 24px}.hero-link{color:#d4ecea}.hero-note{color:#9abcc0;font-size:11px}.hero-art{border-radius:50%;background:radial-gradient(circle,#72d4bb20,transparent 65%);width:330px;height:330px}.medical-cross{color:#78d9c1;background:transparent;border-radius:32px;box-shadow:none;transform:rotate(-8deg)}.orbit{border-color:#75d8c02b}.art-card{background:#ffffff12;color:white;border:1px solid #ffffff30;border-radius:20px;box-shadow:0 15px 40px #0002;backdrop-filter:blur(18px)}.benefits{margin:22px 0 34px;padding:22px 26px;background:#fff;border:1px solid #e2eaf0;border-radius:22px;box-shadow:0 8px 30px #122d4403}.benefits .number{border-radius:14px;background:#edf6f4;color:#158271}.benefits strong{font-size:13px;color:#23414e}.benefits small{font-size:11px;color:#8b9ca4}.section-heading{margin:26px 0 20px}.section-heading h2{font-size:26px;font-weight:500;letter-spacing:-.8px}.posts-grid{gap:20px}.post{border:1px solid #e1e9ee;border-radius:24px;box-shadow:0 8px 25px #18334704;overflow:hidden}.post img{height:235px;object-fit:cover}.invitation{background:linear-gradient(110deg,#e2f2ed,#edf3fa);border:1px solid #d7e8e2;border-radius:26px;box-shadow:none;margin:35px 0;padding:32px}.invitation h2{font-size:25px;color:#214b4a}.footer{padding-block:24px;color:#8c9ba6;border-top:1px solid #e3eaf0}.booking-heading h1{font-size:34px;font-weight:500;letter-spacing:-1px}.booking-card{background:#fff;border-radius:28px;border:1px solid #e1e8ee;box-shadow:0 12px 40px #17364a06;padding:32px}.steps{background:#f2f6f8;padding:15px;border-radius:18px}.steps li{font-size:12px}.service-option{border-radius:18px;border-color:#e0e9ed;background:#fafcfd}.service-option[aria-pressed=true]{background:#e5f5ee;border-color:#60bba7}.field input,.field select{background:#f7f9fc;border-color:#dfe7ee;border-radius:15px;min-height:50px}.summary-card{background:#173c4c;color:white;border:0;border-radius:26px;box-shadow:none}.summary-card h2,.summary-card dd{color:white}.summary-card dt{color:#99bec5}.summary-decoration{color:#ffffff15}.notice{background:#eaf5f0;color:#426b5b}.success{background:#fff;border:1px solid #e1e9ed;border-radius:32px;box-shadow:0 24px 75px #16354c08}.success-icon{background:#dff4e9;border-radius:25px}.auth-layout{grid-template-columns:1fr 1fr;border:1px solid #dce6ed;box-shadow:0 28px 80px #16354c0c;background:#fff}.auth-art{background:linear-gradient(145deg,#123246,#1d5e68);color:white}.auth-art h2{color:#fff;font-size:42px}.auth-art h2 em{color:#8ae2c7}.auth-art p{color:#abcbd1}.auth-kicker{color:#82bbbd}.auth-caption{color:#a7d5cf}.auth-orbit{background:#ffffff05;border-color:#ffffff12;box-shadow:0 0 0 40px #ffffff04,0 0 0 90px #ffffff03}.auth-orbit span{color:#79d1b67a}.login.card{padding:50px;max-width:480px}.login h1{font-size:32px;letter-spacing:-1px}.login input{background:#f5f8fb;border-color:#e0e7ef;border-radius:15px}.login .primary{border-radius:16px;background:#153d4c;box-shadow:0 8px 20px #153d4c1c}.doctor-discovery{padding-top:0}.discovery-caption{margin:0 2px 16px}.doctor-slide{display:grid;grid-template-columns:1.1fr .9fr;min-height:0;height:390px;aspect-ratio:auto;border-radius:28px;background:linear-gradient(110deg,#e4f5ee,#eaf1f9);border-color:#d9e9e6}.doctor-copy{padding:32px 38px}.doctor-copy h1{font-size:34px;line-height:1.3;white-space:normal;margin:20px 0 16px;max-width:360px}.doctor-copy h2{font-size:23px}.doctor-copy>p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;margin:10px 0 22px}.doctor-actions{position:static;flex-wrap:nowrap}.doctor-actions button{font-size:11px;padding:12px 19px;border-radius:16px;white-space:nowrap}.doctor-art:before{width:330px;height:330px;bottom:-32%;left:calc(50% - 165px);background:linear-gradient(150deg,#97d9c0,#51b49b)}.doctor-art img{width:95%;left:2.5%;height:100%}.portrait-note{top:14%;left:9%;font-size:14px}.care-seal{bottom:18px;left:14px;border-radius:16px;font-size:10px;padding:9px 13px}.care-benefits{justify-content:flex-start;gap:30px;padding:20px 6px;font-size:11px}.care-benefits>span{padding:9px 14px;background:#fff;border:1px solid #e2eaf0;border-radius:12px}.carousel-controls{padding:15px 4px}.carousel-arrow{border-radius:12px;background:#fff}.carousel-dots button.active{background:#184e59}.document-card{border-radius:23px;border-color:#e0e8ee;padding:24px;box-shadow:0 10px 28px #16354c04}.document-tag{background:#e7f2f0;color:#4a887e;border-radius:12px;font-size:10px}.document-card h2{font-size:24px;letter-spacing:.5px}.document-card .row{padding:13px 0}.document-print{width:46px;height:46px;border-radius:15px;background:#174954;color:#fff;margin-top:16px;border:0}.document-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}body:not(.chat-mode)>header{background:#ffffffed;border-bottom:1px solid #e3eaf0;padding-block:16px}.brand{color:#164b55;font-size:23px}#nav{padding:8px 12px;gap:12px;border-radius:23px;background:#153747;border:0;box-shadow:0 14px 40px #14384825}#nav button{color:#a5c0c9;background:transparent;width:49px;height:46px;border-radius:15px;min-width:0;padding:10px}#nav button.active{background:#82dec4;color:#143c3b;box-shadow:none}#nav button:hover{background:#ffffff16}#nav button.active:hover{background:#82dec4}#nav .designed-action svg{width:23px;height:23px}#push,#logout{border:1px solid #e1e9ef;background:#fff;border-radius:14px;width:43px;height:43px;padding:10px}body:not(.chat-mode) main{padding-bottom:115px}.loading{min-height:180px;display:grid;place-content:center;gap:16px;font-size:12px}.loading:before{content:'';display:block;justify-self:center;width:27px;height:27px;border:2px solid #cce6df;border-top-color:#087f8c;border-radius:50%;animation:upload-spin .8s linear infinite}dialog{border-radius:26px;padding:28px;border-color:#dce7eb;box-shadow:0 25px 90px #12324925}dialog::backdrop{background:#0f2f4580;backdrop-filter:blur(8px)}dialog h2{font-size:23px;letter-spacing:-.6px}dialog .primary{background:#194d57;border-radius:15px}dialog input,dialog select{background:#f5f8fb;border-radius:14px}.chat-mode{background:#eef2f7}.chat-mode main{max-width:1200px;background:#eef2f7;border-color:#e0e7ee}.chat-header{padding:17px 24px;background:#173b4c;color:white;border:0}.chat-identity h2{color:#fff;font-size:17px}.chat-identity small{color:#a5c5cd}.chat-avatar{background:#81d8be;color:#164f48;width:46px;height:46px;border-radius:16px}.chat-header button{background:#ffffff0e;color:#c6e2e4;border-radius:14px}.chat-mode .chat{background:#eff3f8;background-image:radial-gradient(#7893a10c 1px,transparent 1px);background-size:18px 18px;padding:26px 32px;gap:16px}.chat-mode .message{border:1px solid #e2e8f0;border-radius:20px 20px 4px 20px;box-shadow:0 3px 12px #17374905;padding:14px 17px 10px;max-width:min(75%,560px);transition:transform .15s,box-shadow .15s;touch-action:pan-y}.chat-mode .message.mine{background:#d9eee6;border-color:#cce4d9;border-radius:20px 20px 20px 4px}.message>strong{font-size:11px;color:#4e7d85}.message>p{font-size:14px;line-height:1.9}.message>small{font-size:10px;color:#7d9099}.message-menu summary{color:#8ca1aa}.message-menu .actions{border-radius:17px;border-color:#e0e8ee;box-shadow:0 14px 40px #14354820;padding:6px}.message-menu button{border-radius:11px}.message.swipe-ready{box-shadow:0 0 0 2px #51aa93}.message.swipe-ready:after{content:'↩';position:absolute;inset-inline-end:-35px;top:35%;font-size:25px;color:#147f6e}.chat-mode .composer{border-top:1px solid #e0e7ee;background:#fff;padding:16px 22px;gap:12px}.chat-mode .composer input{border:1px solid #e1e9ee;border-radius:18px;background:#f3f6fa;min-height:52px}.chat-mode .composer>button{background:#174b58;border-radius:17px}.composer-tools button{background:#eef4f7;border-radius:15px;color:#527f88;width:43px;height:43px}.voice-composer{background:#eef6f4;border-radius:19px;border-color:#dbe9e3;height:56px}.voice-send{background:#194d57;border-radius:15px}.voice-delete{background:#fce9eb;border-radius:14px}.voice-clock{font-size:12px}.voice-wave i{background:#58a68d}.upload-status{background:#e3f2eb;color:#2a7661;padding:12px 22px}.reply-preview{display:flex;align-items:center;gap:12px;padding:12px 20px;background:#e4f0ed;border-inline-start:3px solid #5ba991;font-size:12px;flex-shrink:0}.reply-preview p{flex:1;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#446f69}.reply-preview button{border:0;background:#ffffff8a;border-radius:50%;width:30px;height:30px;padding:0}.message audio{border-radius:15px}.message a img{border-radius:15px;max-height:320px}.row{border-color:#e8edf1}.card{animation:card-reveal .3s ease both}#posts:empty:before{content:'';display:block;height:150px;border-radius:22px;background:linear-gradient(90deg,#edf2f5,#f9fbfc,#edf2f5);animation:request-travel 1.2s infinite}.print-frame{pointer-events:none}@keyframes request-travel{from{transform:translateX(-110%)}to{transform:translateX(390%)}}@keyframes card-reveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:760px){.wrap{width:calc(100% - 28px)}.topbar{padding-block:15px}.brand-icon{width:37px;height:37px;font-size:29px;border-radius:12px}.brand strong{font-size:14px}.topbar .outline-button,.topbar .text-button{padding:10px;font-size:11px;border-radius:13px}.hero{padding:28px;min-height:320px;border-radius:26px}.hero h1{font-size:35px;letter-spacing:-1px}.hero p{font-size:12px}.hero .eyebrow{font-size:10px}.hero .primary-button{font-size:12px;padding:13px 16px}.hero-note{font-size:10px}.benefits{padding:18px 14px;gap:10px;border-radius:19px;margin:15px 0 24px}.benefits>div{gap:8px}.benefits strong{font-size:11px}.benefits small{font-size:9px}.benefits .number{width:30px;height:30px;border-radius:10px;font-size:11px}.section-heading h2{font-size:23px}.invitation{padding:24px;margin-top:24px;border-radius:23px}.invitation h2{font-size:22px}.post img{height:200px}.booking-heading h1{font-size:25px}.booking-card{padding:22px 17px;border-radius:23px}.steps{padding:12px 4px}.steps li{font-size:10px}.form-actions .primary-button{min-width:120px}.auth-layout{border-radius:25px;grid-template-columns:1fr}.auth-art{min-height:180px;padding:24px 28px}.auth-art h2{font-size:28px;line-height:1.35}.auth-art p{font-size:11px}.auth-layout .login{padding:28px}.login h1{font-size:27px}.doctor-slide{height:300px;min-height:0;grid-template-columns:1.12fr .88fr;display:grid;border-radius:24px}.doctor-copy{padding:22px 18px;min-height:0}.doctor-copy h1{font-size:23px;margin:14px 0 12px;letter-spacing:-.8px;max-width:190px}.doctor-copy h2{font-size:17px;line-height:1.5}.specialty-label{font-size:9px;padding:5px 9px}.doctor-copy>p{font-size:10px;margin:8px 0 12px;-webkit-line-clamp:2;line-height:1.7}.doctor-actions{position:static;gap:6px;flex-wrap:wrap}.doctor-actions button{font-size:9px;padding:9px 10px;flex:initial;min-height:35px;border-radius:12px}.doctor-actions .primary{flex:initial}.doctor-art{min-height:0;height:100%}.doctor-art img{width:125%;left:-12%;max-width:none}.doctor-art:before{width:220px;height:220px;left:calc(50% - 110px);bottom:-32%}.portrait-note{font-size:11px;left:5%;top:10%}.medical-plus{font-size:30px;right:5%;top:30%}.care-seal{bottom:13px;left:0;padding:7px 9px;font-size:8px;gap:5px;border-radius:12px}.care-seal>span:first-child{font-size:15px}.care-benefits{gap:7px;padding:13px 0;justify-content:space-between}.care-benefits>span{padding:7px 9px;font-size:9px;white-space:nowrap}.swipe-hint{font-size:9px}.carousel-controls{padding:12px 0}.carousel-arrow{width:30px;height:30px}.carousel-count{font-size:10px}.document-card{padding:21px}.hero h1{color:white}.patient-page .hero h1{color:var(--ink)}body:not(.chat-mode)>header{padding:14px 16px}.brand{font-size:20px}#push,#logout{width:37px;height:37px;min-width:37px;min-height:37px;padding:8px}#connection{font-size:9px}#nav{width:auto;max-width:calc(100% - 22px);gap:7px;padding:7px 10px;border-radius:20px}#nav button{width:42px;height:43px;padding:10px;border-radius:13px}#nav .designed-action svg{width:21px;height:21px}.hero:not(#landing .hero){padding:5px 0 18px;background:transparent;box-shadow:none;min-height:0}.hero:not(#landing .hero) h1{font-size:27px;color:var(--ink)}.chat-header{padding:13px 12px;gap:9px}.chat-avatar{width:38px;height:38px;border-radius:13px}.chat-identity h2{font-size:15px}.chat-identity small{font-size:10px}.chat-header .chat-icon{width:35px;height:35px;border-radius:12px}.chat-mode .chat{padding:18px 12px;gap:13px}.chat-mode .message{max-width:86%;padding:12px 14px 8px}.message>p{font-size:13px}.chat-mode .composer{padding:12px 10px max(12px,env(safe-area-inset-bottom));gap:7px}.chat-mode .composer input{min-height:47px;border-radius:16px;font-size:13px}.chat-mode .composer>button{border-radius:15px}.composer-tools button{width:34px;height:40px;border-radius:12px}.reply-preview{padding:10px 14px}.voice-composer{gap:6px}.voice-control{width:34px;height:36px;flex-basis:34px}}@media(max-width:370px){.doctor-slide{height:278px;grid-template-columns:1.15fr .85fr}.doctor-copy{padding:17px 14px}.doctor-copy h1{font-size:20px}.doctor-copy h2{font-size:15px}.doctor-copy>p{-webkit-line-clamp:1}.portrait-note{display:none}.care-benefits>span{font-size:8px;padding:7px}#nav{gap:4px}#nav button{width:38px}.doctor-actions button{font-size:8px;padding:8px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
.patient-page .hero{background:transparent;min-height:0;padding:8px 0 22px;box-shadow:none;border:0;overflow:visible}.patient-page .hero h1{color:#17364a;font-size:30px;margin:10px 0;font-weight:500}.patient-page .hero p{color:#7b8d9a;font-size:12px;max-width:none}.patient-page .hero .eyebrow{color:var(--primary)}
.pagination-more{grid-column:1/-1;justify-self:center;min-width:190px;background:#fff;border:1px solid #dce7ed;border-radius:17px;padding:14px 24px;margin-top:12px;color:#3d6774;font-size:12px;box-shadow:0 7px 20px #12354805}.hero-cover{opacity:.12;mix-blend-mode:screen}
.auth-layout{min-height:560px}@media(max-width:760px){.auth-layout{min-height:0}}
#nav{width:min(540px,calc(100% - 24px));gap:6px;justify-content:space-between}#nav button{display:flex;flex-direction:column;gap:5px;flex:1;width:auto;height:58px;padding:8px 10px}#nav .icon-action .action-label{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto;white-space:nowrap;font-size:10px;line-height:1.2}#nav button svg{width:21px;height:21px}.home-bookings{margin-top:18px}.home-bookings>h2{font-size:23px;font-weight:500}.booking-tabs{display:flex;gap:8px;margin:17px 0}.booking-tabs button{border:1px solid #dae6e9;background:white;border-radius:14px;font-size:11px;padding:11px 16px}.booking-tabs button.active{background:#174854;color:white;border-color:#174854}.booking-summary strong{color:var(--primary);font-size:14px}@media(max-width:760px){#nav{gap:2px;padding:6px}#nav button{height:55px;padding:7px 5px}#nav .icon-action .action-label{font-size:9px}.doctor-copy h1{font-size:25px;line-height:1.55;margin-top:22px}.home-bookings{margin-top:12px}}
.doctor-copy h1{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.brand{display:flex;flex-direction:column;gap:5px;line-height:1.2}.brand strong{font-size:20px;letter-spacing:-.6px}.brand small{font-size:10px;font-weight:400;color:#82969f;letter-spacing:0}.booking-summary{padding:22px;border:1px solid #e1e9ed;box-shadow:0 7px 24px #153c4b04;border-radius:24px;background:white}.visit-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.visit-symbol{display:grid;place-items:center;width:40px;height:40px;border-radius:14px;background:#edf5f3;color:#408778;font-size:25px}.booking-summary .visit-date{font-size:12px;color:#718b94;margin:0 0 8px}.booking-summary h2{font-size:20px;margin:7px 0}.booking-summary .visit-doctor{font-size:12px;color:#7c939d;margin-bottom:17px}.visit-queue{display:flex;align-items:center;justify-content:space-between;border-top:1px dashed #dce8e9;padding-top:15px;color:#91a2aa;font-size:11px}.visit-queue strong{font-size:27px!important;color:#247e6a}.booking-summary[data-status=cancelled]{opacity:.65}.visit-notes{font-size:11px}.document-header{display:flex;align-items:center;gap:12px;padding-bottom:15px;border-bottom:1px solid #e9eef2}.document-header h2{flex:1;margin:0;font-size:17px;direction:rtl;text-align:start;letter-spacing:0}.document-actions{display:flex;gap:7px}.document-actions button{width:37px;height:37px;min-height:37px;min-width:37px;border:1px solid #dfe9ed;border-radius:12px;margin:0;padding:8px;background:#f2f7f7;color:#3b7a7a;display:grid}.document-actions button svg{width:19px;height:19px}.document-date{font-size:11px;color:#79909a;margin:16px 0 6px}.document-doctor{font-size:11px!important}.document-card .row strong{font-size:14px}.document-card .row p{font-size:11px;color:#8a9ca4}.document-card{padding:22px}@media(max-width:600px){.brand strong{font-size:17px}.brand small{font-size:9px}.document-header h2{font-size:16px}.document-actions button{width:35px;height:35px;min-width:35px;min-height:35px}.booking-summary{padding:20px}}
