/* Crew Atlas Dynamic Home Premium UI Treatment v1.1.
   Universal neutral shell. Data belongs to profile, AIS and the existing Duty engine. */
#home .dynamic-home-shell[hidden],#home #phaseCHomeIntro[hidden],
#home .dynamic-home-sky[hidden],#dynamicHomeLocationRetry[hidden]{display:none!important}
#home.dynamic-home-onboarding .dynamic-home-shell{display:none}
#home #homeBaseSummary,#home #aisHomeEmployer{display:none!important}
#home .dynamic-home-shell{min-width:0}
#home .phasec-home-intro{
  position:relative;isolation:isolate;overflow:hidden;
  min-height:210px;margin:7px 0 15px;padding:29px 25px;
  border:1px solid #286a89;border-radius:var(--ui-radius-feature);
  background:linear-gradient(115deg,#071626,#14283f 65%,#122b40);
  box-shadow:inset 0 1px 0 #7ed8f021,0 16px 38px #0007;
  color:#f7fbff;
}
#home .dynamic-home-sky{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:-2;pointer-events:none}
#home .phasec-home-intro:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,rgba(5,16,30,.93) 0%,rgba(5,19,34,.78) 34%,rgba(6,24,42,.32) 78%,rgba(7,24,44,.15) 100%)}
#home .phasec-home-intro.dynamic-sky-missing{background:linear-gradient(112deg,#091a2c,#142d43 70%,#153951)}
#home .phasec-intro-main{min-height:145px;align-items:flex-start;justify-content:space-between;gap:18px}
#home .phasec-intro-main>div{max-width:88%;min-width:0;align-self:center}
#home .phasec-home-intro .phasec-kicker{font-size:10px;color:#59d8f2;letter-spacing:.19em;text-shadow:0 2px 8px #000}
#home .phasec-home-intro h2{margin:12px 0 8px;font-size:clamp(25px,4.7vw,40px);font-weight:760;line-height:1.14;letter-spacing:-.035em;color:#fff;text-shadow:0 2px 18px #00182fc0}
#home .phasec-home-intro p{font-size:clamp(12px,1.6vw,15px);line-height:1.48;margin:0;max-width:590px;color:#e5f1fa;text-shadow:0 1px 9px #06182a}
#home .phasec-home-intro .phasec-complete{background:#091e30b5;color:#e7f5fc;border-color:#8ccef077;border-radius:12px;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);position:relative;z-index:2;min-height:44px}
#home .dynamic-home-status{display:flex;gap:13px;align-items:center;flex-wrap:wrap;margin:0 3px 17px;color:#9bb8c9;font-size:var(--ui-meta-size)}
#home .dynamic-home-status .dynamic-home-online{color:#63e4c2;display:flex;align-items:center;gap:7px}
#home .dynamic-home-status .dynamic-home-online:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 9px currentColor}
#home .dynamic-home-status .dynamic-home-divider{opacity:.55}
#home .dynamic-home-airline{
  display:flex;position:relative;overflow:hidden;align-items:center;justify-content:space-between;
  width:100%;min-width:0;min-height:117px;margin:0 0 17px;padding:20px 23px;
  border:1px solid #294d67;border-radius:var(--ui-radius-feature);text-align:left;
  color:#f4f9ff;background:radial-gradient(ellipse at 86% 120%,#14577c66 0%,transparent 51%),linear-gradient(120deg,#10253a,#101f32);
  box-shadow:inset 0 1px 0 #86ccff1c,0 8px 26px #010d1a40;
  font:inherit;cursor:pointer;
}
#home .dynamic-home-airline:after{content:"";position:absolute;right:-12%;bottom:-62px;width:57%;height:105px;pointer-events:none;border-top:1px solid #39bff88c;border-radius:65% 50% 0 0;transform:rotate(-17deg);box-shadow:0 -12px 30px #1ca8e522}
#home .dynamic-home-airline:hover,#home .dynamic-home-airline:focus-visible{border-color:#45d9f7}
#home .dynamic-home-airline-copy{position:relative;z-index:1;display:flex;flex-direction:column;gap:5px;min-width:0}
#home .dynamic-home-airline-copy small{color:#9dbbc9;letter-spacing:.19em;font-size:10px;font-weight:750}
#home .dynamic-home-airline-copy strong{font-size:clamp(19px,2.9vw,25px);line-height:1.25;color:#fff;overflow-wrap:anywhere}
#home .dynamic-home-airline-copy .dynamic-home-airline-note{font-size:12px;color:#b9cedb;letter-spacing:normal}
#home .dynamic-home-chevron{font-size:33px;font-weight:200;color:#dff7ff;line-height:1;position:relative;z-index:1;padding-left:8px}
#home #liveCockpit{
  position:relative;overflow:hidden;isolation:isolate;
  border:1px solid #237799;border-radius:20px;
  background:linear-gradient(125deg,#091727,#0b223a 65%,#102b43);
  box-shadow:inset 0 1px 0 #6ee1ff2e,0 13px 31px #0005;
  padding:23px;
}
#home #liveCockpit:before{content:"";position:absolute;inset:0;z-index:-2;pointer-events:none;background:linear-gradient(90deg,#071525ed 0%,#07182bce 48%,#061b32a8 100%),url('../../assets/app-resources/home/crew-atlas-duty-clouds.webp') right bottom/cover no-repeat}
#home #liveCockpit .sectionhead{gap:10px;align-items:flex-start}
#home #liveCockpit .eyebrow{font-size:10px;letter-spacing:.17em;color:#a9c1d3}
#home #liveCockpit .sectionhead h2{font-size:clamp(27px,5.2vw,42px);margin:9px 0 5px;letter-spacing:-.04em}
#home #liveCockpit .cockpit-phase{border:1px solid #3ddbf4;color:#4bddf2;background:#082837a8;letter-spacing:.12em;font-weight:750}
#home #liveCockpit #cockpitFlight{color:#e4eff7;font-weight:570;line-height:1.45}
#home #liveCockpit #cockpitBase{color:#f4bc71;font-weight:750;letter-spacing:.13em}
#home #liveCockpit .cockpit-clock-row{background:#061b2b59;border-top:1px solid #315c7766;padding:14px 0;margin-top:14px}
#home #liveCockpit .cockpit-countdown{color:#47dff7;font-size:clamp(15px,2.5vw,22px);font-weight:750;letter-spacing:-.02em}
#home #liveCockpit .cockpit-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:8px 0 14px}
#home #liveCockpit .cockpit-metrics>div{min-width:0;display:flex;flex-direction:column;gap:5px;padding:14px;border:1px solid #326484;border-radius:13px;background:#092138ad}
#home #liveCockpit .cockpit-metrics>div:first-child{grid-column:1/-1;border-color:#24546f;background:#091c31a8}
#home #liveCockpit .cockpit-metrics small{font-size:10px;letter-spacing:.12em;color:#a8c8df}
#home #liveCockpit .cockpit-metrics strong{font-size:clamp(18px,3.4vw,30px);color:#fff;overflow-wrap:anywhere}
#home #liveCockpit .cockpit-metrics span{font-size:11px;color:#aac7db;overflow-wrap:anywhere}
#home #liveCockpit .cockpit-detail-grid{border-top:1px solid #335c6e70;padding-top:13px}
#home #liveCockpit .cockpit-detail-grid small{color:#a1bed0}
#home #liveCockpit .actions{margin-top:15px}
#home .dynamic-home-tools{margin:8px 0 14px;border:1px solid #263e53;border-radius:14px;padding:12px 16px;background:#0d1b2c}
#home .dynamic-home-tools>summary{cursor:pointer;color:#b7d3e4;font-size:13px;font-weight:650;padding:2px 0;min-height:28px}
#home .dynamic-home-tools[open]>summary{margin-bottom:14px;color:#4bd6f3}
#home .dynamic-home-tools>.sectionhead{margin-top:16px}
#home .dynamic-home-tools .metric-grid{margin:6px 0 16px}
.dynamic-home-appearance{border:1px solid #32465d;border-radius:14px;padding:16px;background:#122337;margin-bottom:16px;display:flex;flex-direction:column;gap:10px}
.dynamic-home-appearance h3{margin:0;color:#eef8ff;font-size:20px}
.dynamic-home-appearance>label{font-size:13px;color:#c0d5e4;font-weight:700}
.dynamic-home-appearance select{min-height:46px;background:#0b1b2b;border:1px solid #436981;border-radius:9px;color:#f0f9ff;padding:10px 12px;width:100%;font:inherit}
.dynamic-home-appearance #dynamicHomeModeHelp{min-height:1.4em;line-height:1.45;margin:0;font-size:12px;color:#b0c6d5}
.dynamic-home-appearance button{align-self:flex-start;min-height:44px}
body.dynamic-home-active .topbar #pageTitle:after{content:"";display:block;width:44px;height:3px;margin-top:8px;background:linear-gradient(90deg,#32e5f1,#14759d);border-radius:99px}
body.dynamic-home-active .topbar #dynamicHomeProfile{display:inline-flex}
.topbar #dynamicHomeProfile{display:none;min-height:44px;border:1px solid #2c5572;border-radius:10px;background:#13273d;color:#e6f5fa;padding:10px 13px;font-size:12px}
.topbar #dynamicHomeProfile:hover{border-color:#45d9f7}
body.light #home .dynamic-home-airline,body.light #home #liveCockpit,body.light #home .phasec-home-intro{color:#f4f9ff}
body.light #home .dynamic-home-status{color:#47637b}
body.light #home .dynamic-home-tools{background:#e2ecf2}
body.light .dynamic-home-appearance{background:#dcebf2}
body.light .dynamic-home-appearance h3,body.light .dynamic-home-appearance>label{color:#173950}
@media(max-width:640px){
 #home .phasec-home-intro{min-height:190px;padding:24px 18px}
 #home .phasec-intro-main>div{max-width:100%}
 #home .phasec-home-intro h2{font-size:clamp(23px,7vw,30px)}
 #home .phasec-home-intro .phasec-complete{margin-top:8px}
 #home .dynamic-home-airline{padding:17px 18px;min-height:107px}
 #home #liveCockpit{padding:18px 15px}
 #home #liveCockpit .cockpit-metrics{gap:8px}
 #home #liveCockpit .cockpit-metrics>div{padding:12px 10px}
 #home #liveCockpit .cockpit-metrics strong{font-size:clamp(17px,5vw,24px)}
 #home .dynamic-home-status{font-size:11px;gap:9px}
 .topbar #dynamicHomeProfile{padding:8px 10px}
}
@media(prefers-reduced-motion:reduce){
 #home .dynamic-home-sky,#home .phasec-home-intro{transition:none!important;animation:none!important}
}


/* R1: premium Home without duplicate technical copy or redundant profile actions. */
#home>.atlas-profile-context{display:none!important}
body.dynamic-home-active .topbar #connection{display:none!important}
#home #dynamicHomeAirlineHint[hidden]{display:none!important}
.topbar #dynamicHomeProfile{height:46px;width:46px;min-width:46px;padding:0;align-items:center;justify-content:center;line-height:1}
.topbar #dynamicHomeProfile svg{display:block;height:22px;width:22px}
#home .dynamic-home-sky{object-fit:cover;object-position:60% 50%;image-rendering:auto}
#home #liveCockpit:before{background:linear-gradient(90deg,#071525ef,#07182bda 48%,#061b32a3),url('../../assets/app-resources/home/crew-atlas-duty-clouds-zip-v11.webp') center bottom/cover no-repeat}
#settings .dynamic-home-preferences{display:flex;flex-direction:column;margin:0 0 14px;padding:0 19px;border:1px solid #315773;border-radius:18px;background:linear-gradient(142deg,#12263d,#0d1d31);overflow:hidden}
#settings .dynamic-home-preference-section{padding:22px 1px;display:flex;flex-direction:column;gap:12px;min-width:0}
#settings .dynamic-home-preference-section+.dynamic-home-preference-section{border-top:1px solid #355b7388}
#settings .dynamic-home-preference-section h3{font-size:19px;font-weight:750;margin:0;color:#f3f9ff}
#settings .dynamic-home-preference-section>label{font-size:13px;font-weight:700;color:#cbdce8}
#settings .dynamic-home-preference-section select{width:100%;min-height:48px;border:1px solid #426987;border-radius:11px;background:#0b1b2d;color:#f1faff;padding:11px 12px;font:inherit}
#settings .dynamic-home-preference-section #dynamicHomeModeHelp{margin:0;font-size:12px;line-height:1.5;color:#aec5d5}
#settings .dynamic-home-preference-section #dynamicHomeLocationRetry{align-self:flex-start;min-height:44px}
#settings .dynamic-home-preference-row{display:flex;align-items:center;justify-content:space-between;min-height:62px;gap:16px}
#settings .dynamic-home-preference-copy{display:flex;flex-direction:column;gap:5px}
#settings .dynamic-home-preference-copy strong{font-size:14px;color:#eef8fc}
#settings .dynamic-home-preference-copy small{font-size:12px;color:#a6bdcb}
#settings .dynamic-home-preference-row button{min-height:44px;flex-shrink:0}
body.light #settings .dynamic-home-preferences{background:#dceaf2;border-color:#8baac0}
body.light #settings .dynamic-home-preference-section h3,body.light #settings .dynamic-home-preference-copy strong{color:#1a3f56}
body.light #settings .dynamic-home-preference-copy small,body.light #settings .dynamic-home-preference-section>label{color:#426478}
@media(max-width:640px){#home .dynamic-home-sky{object-position:69% 50%}#settings .dynamic-home-preferences{padding:0 15px}#settings .dynamic-home-preference-row{flex-direction:column;align-items:flex-start}#settings .dynamic-home-preference-row button{align-self:flex-start}}
