/* Clinical Quest v6.3 — dedicated small-screen dashboard. Game layout, state machine and desktop are unchanged. */
.cq-mhome{display:none}
@media (max-width:840px){
 .content.route-dashboard{overflow:hidden!important;overscroll-behavior:none!important;padding:8px 10px max(7px,env(safe-area-inset-bottom))!important;min-height:0!important;}
 .content.route-dashboard .dashboard-layout.cq-dashboard{display:none!important}
 .content.route-dashboard .footer-note{display:none!important}
 .cq-mhome{display:grid!important;height:100%;min-height:0;max-width:570px;margin:0 auto;width:100%;grid-template-rows:minmax(148px,1.43fr) minmax(60px,.53fr) minmax(181px,1.55fr) minmax(96px,.79fr) minmax(62px,.53fr);gap:8px;overflow:hidden;direction:rtl}
 .cq-mhome>*{min-width:0;min-height:0}
 .cq-mhome button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
 .cq-mhome-hero{position:relative;overflow:hidden;border:1px solid #3bdddf7c;border-radius:18px;isolation:isolate;box-shadow:0 0 19px #28dce61a,0 12px 29px #0008;background:#071d32}
 .cq-mhome-photo{position:absolute;inset:0;background:url('assets/resuscitation-room.webp') center/cover no-repeat;opacity:.76;z-index:-2}
 .cq-mhome-vignette{position:absolute;inset:0;background:linear-gradient(90deg,#0419299e 0%,#051e34d0 38%,#041f34f6 100%),linear-gradient(0deg,#01162460,transparent 60%);z-index:-1}
 .cq-mhome-hero-info{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:16px 16px 13px;max-width:95%;height:100%;justify-content:center}
 .cq-mhome-kicker{font:700 8px 'Vazirmatn',sans-serif;color:#5affed;letter-spacing:.045em;display:flex;align-items:center;gap:6px;direction:ltr;align-self:flex-end;white-space:nowrap}
 .cq-mhome-online{width:6px;height:6px;border-radius:50%;background:#5cffe0;box-shadow:0 0 10px #48fff0;flex-shrink:0}
 .cq-mhome-hero h1{font:900 clamp(15px,4.6vw,21px) 'Vazirmatn',sans-serif;color:#f2fdff;line-height:1.46;margin:1px 0 0;letter-spacing:-.025em}
 .cq-mhome-hero h1 span{color:#51f5e9}
 .cq-mhome-hero p{margin:0;line-height:1.65;color:#b5d9e4;font-size:clamp(9px,2.55vw,11px);max-width:315px}
 .cq-mhome-hero-button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:35px;border:1px solid #69fff4!important;border-radius:9px;color:#072c39!important;background:linear-gradient(110deg,#41f5df,#19b8d2)!important;font-size:11px!important;font-weight:900!important;padding:7px 12px;box-shadow:0 0 17px #33e0e164;margin-top:3px}
 .cq-mhome-hero-button>span{display:inline-flex;transform:scaleX(-1)}
 .cq-mhome-hero-corner{position:absolute;left:12px;bottom:12px;display:flex;align-items:center;justify-content:center;gap:5px;padding:5px 8px;background:#071e35c9;border:1px solid #52e4e971;border-radius:9px;font:700 8px 'Vazirmatn',sans-serif;color:#72f6f4;direction:ltr;pointer-events:none}
 .cq-mhome-hero-corner svg{width:14px!important;height:14px!important}.cq-mhome-hero-corner small{color:#9bc2cf;font-size:7px}
 .cq-mhome-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;min-height:0}
 .cq-mhome-metric{min-width:0;min-height:0;border:1px solid #285979a8;border-radius:13px;background:linear-gradient(150deg,#10314c,#081e35);box-shadow:inset 0 1px #81fbff13;display:grid;grid-template-columns:25px 1fr;grid-template-rows:1fr 1fr;column-gap:3px;align-items:center;padding:7px 8px}
 .cq-mhome-metric-icon{grid-row:1/3;display:grid;place-items:center;width:25px;height:25px;border-radius:9px;background:#154d6380;color:#4dfbe8}
 .cq-mhome-metric-icon svg{width:17px!important;height:17px!important}.cq-mhome-metric-icon.c-purple{color:#ad9aff;background:#35356a88}.cq-mhome-metric-icon.c-gold{color:#ffdf77;background:#50431e80}
 .cq-mhome-metric strong{font:900 clamp(14px,4vw,20px) 'Vazirmatn',sans-serif;line-height:1.2;color:#eafffc;white-space:nowrap;letter-spacing:-.03em}.cq-mhome-metric strong em{font-size:9px;font-style:normal;font-weight:600;color:#7eb9c8}
 .cq-mhome-metric small{font-size:clamp(8px,2.1vw,9px);line-height:1.1;color:#9ac0cf;white-space:nowrap}
 .cq-mhome-road{min-width:0;min-height:0;border:1px solid #285d7ac7;border-radius:16px;background:linear-gradient(150deg,#0f304d,#071d32);display:flex;flex-direction:column;gap:6px;padding:10px 10px 9px;box-shadow:0 12px 27px #0003}
 .cq-mhome-section-head{display:flex;justify-content:space-between;align-items:center;gap:6px;flex:0 0 auto}
 .cq-mhome-overline{display:block;color:#57e8ec;font-size:7px;letter-spacing:.03em;font-weight:800;line-height:1.1}
 .cq-mhome-section-head h2{font-size:clamp(12px,3.7vw,15px);line-height:1.25;font-weight:900;color:#f0fbfe;margin:3px 0 0}
 .cq-mhome-road-count{font-size:9px;color:#46f9df;background:#0b3b50;border:1px solid #226d79;border-radius:40px;padding:5px 7px;white-space:nowrap}
 .cq-mhome-road-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:6px;flex:1;min-height:0;width:100%}
 .cq-mhome-station{min-width:0;min-height:0;display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center;border:1px solid #244b6b!important;border-radius:11px;background:linear-gradient(140deg,#0d2b45,#0a2035);color:#8fbacc!important;padding:5px 3px!important;transition:background .2s,border-color .2s}
 .cq-mhome-station-icon{display:grid;place-items:center;width:26px;height:26px;flex-shrink:0;border-radius:9px;color:#82b7d2;background:#19425c80}
 .cq-mhome-station-icon svg{width:18px!important;height:18px!important}
 .cq-mhome-station-name{font-size:clamp(8px,2.2vw,10px);font-weight:800;line-height:1.1;text-align:center;max-width:100%;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:0}
 .cq-mhome-station-number{font-size:7px;color:#64889e;display:flex;align-items:center;justify-content:center;gap:4px;white-space:nowrap}
 .cq-mhome-station.is-unlocked{border-color:#48efe5!important;background:linear-gradient(155deg,#10576a,#094151);box-shadow:inset 0 0 12px #2cf4e625,0 0 13px #11d3c42a;color:#f4fffc!important}
 .cq-mhome-station.is-unlocked .cq-mhome-station-icon{background:#1388899c;color:#63ffee;filter:drop-shadow(0 0 8px #38effd86)}
 .cq-mhome-station.is-unlocked .cq-mhome-station-number{color:#55ffe0}
 .cq-mhome-feature{width:100%;min-width:0;min-height:0;display:flex;align-items:center;gap:10px;text-align:right;border:1px solid #25a7b2a6!important;border-radius:15px;background:linear-gradient(110deg,#10374f,#072338)!important;padding:10px!important;color:#ecfbfd!important;box-shadow:0 0 20px #12e1d51c}
 .cq-mhome-feature-emblem{display:grid;place-items:center;flex:0 0 47px;height:47px;border-radius:14px;background:linear-gradient(150deg,#166d7b,#10374b);border:1px solid #49d5d57b;color:#50ffdf}
 .cq-mhome-feature-copy{display:flex;flex-direction:column;min-width:0;flex:1;gap:3px}.cq-mhome-feature-copy span{font-size:8px;color:#59efd8;white-space:nowrap}.cq-mhome-feature-copy span b{font-size:7px;color:#9ccdd2}
 .cq-mhome-feature-copy strong{font-size:clamp(10px,3vw,13px);font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cq-mhome-feature-copy small{font-size:clamp(8px,2vw,10px);color:#a4c7d6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .cq-mhome-feature-arrow{display:grid;place-items:center;color:#3ff7df;transform:rotate(180deg)}
 .cq-mhome-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-height:0}
 .cq-mhome-shortcut{display:flex;align-items:center;gap:8px;text-align:right;min-width:0;min-height:0;border:1px solid #235d7ab8!important;border-radius:12px;background:#0e2b45!important;color:#e9faff!important;padding:7px 9px!important}
 .cq-mhome-shortcut-icon{width:31px;height:31px;flex:0 0 31px;border-radius:10px;display:grid;place-items:center;color:#58f3e0;background:#1552668c}
 .cq-mhome-shortcut>span:nth-child(2){min-width:0;flex:1;display:flex;flex-direction:column;gap:1px}
 .cq-mhome-shortcut b{font-size:10px;font-weight:800;white-space:nowrap}.cq-mhome-shortcut small{font-size:8px;color:#84b4c8;white-space:nowrap}
 .cq-mhome-shortcut>svg{color:#80ccd9;flex-shrink:0;width:12px!important;height:12px!important}
}
@media(max-width:380px){.cq-mhome{gap:6px;grid-template-rows:minmax(140px,1.38fr) minmax(55px,.48fr) minmax(171px,1.55fr) minmax(86px,.79fr) minmax(56px,.53fr)}.cq-mhome-road{padding:8px}.cq-mhome-road-grid{gap:4px}.cq-mhome-hero-info{padding:12px}.cq-mhome-hero-corner{left:6px;bottom:6px}.cq-mhome-metric{padding:5px}.cq-mhome-feature{padding:8px!important}}
@media(max-width:840px) and (max-height:700px){.cq-mhome{grid-template-rows:minmax(122px,1.28fr) minmax(51px,.46fr) minmax(153px,1.49fr) minmax(76px,.7fr) minmax(49px,.46fr);gap:5px}.cq-mhome-hero-info{gap:3px;padding:10px 12px}.cq-mhome-hero-button{min-height:31px;margin-top:1px;padding:5px 10px}.cq-mhome-road{gap:3px;padding:7px}.cq-mhome-station{gap:2px;padding:2px!important}.cq-mhome-station-icon{width:23px;height:23px}.cq-mhome-feature-emblem{width:38px;flex-basis:38px;height:38px}.cq-mhome-shortcut-icon{width:25px;height:25px;flex-basis:25px}}
@media(max-width:840px) and (max-height:545px){.content.route-dashboard{overflow-y:auto!important}.cq-mhome{height:580px;grid-template-rows:135px 58px 178px 95px 61px}}
@media(min-width:841px){.cq-mhome{display:none!important}}
@media(prefers-reduced-motion:reduce){.cq-mhome *{animation:none!important;transition:none!important}}
