/* Digital Hub V153
   1. Opening page: one card in the same frame as the sign-in page — the chair's blue panel with a
      reinforced-concrete cross-section drawn in fine lines, and a white panel with the two ways in
   2. Sign-in page: every step fits the screen at 100% zoom, with a margin above and below the card
   Both share one frame: --frame-m is the outer margin, the card is never taller than the screen. */

:root{--frame-m:clamp(12px,3.6vh,40px);--frame-x:clamp(12px,3vw,40px)}

/* ── 1 · opening page ─────────────────────────────────────────────── */
:is(html,#o153) .x153-landing[hidden]{display:none!important}
:is(html,#o153) .x153-landing{position:fixed;inset:0;z-index:30;display:grid!important;place-items:center;box-sizing:border-box;padding:var(--frame-m) var(--frame-x)!important;overflow:hidden;
  background:var(--h7-soft)!important;color:var(--h7-ink)}
.x153-card{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,1fr);width:min(1120px,100%);height:min(720px,calc(100dvh - 2*var(--frame-m)));max-height:calc(100dvh - 2*var(--frame-m));
  border-radius:24px;overflow:hidden;background:var(--h7-panel);border:1px solid var(--h7-line);box-shadow:0 24px 60px rgba(15,31,51,.10),0 2px 6px rgba(15,31,51,.05)}
html[data-theme="dark"] .x153-card{box-shadow:0 24px 60px rgba(0,0,0,.45)}

/* the blue panel */
.x153-story{position:relative;display:flex;flex-direction:column;gap:clamp(12px,2.4vh,24px);padding:clamp(22px,4.4vh,48px) clamp(22px,3.4vw,52px);min-height:0;overflow:hidden;color:#fff;
  background:linear-gradient(165deg,#0a5fae 0%,#00549f 46%,#00457f 100%)}
html[data-theme="dark"] .x153-story{background:linear-gradient(165deg,#0d3d6b 0%,#0a3157 50%,#08243f 100%)}
.x153-story::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.55;
  background-image:linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px);background-size:28px 28px;
  -webkit-mask-image:radial-gradient(120% 90% at 100% 100%,#000 0%,transparent 70%);mask-image:radial-gradient(120% 90% at 100% 100%,#000 0%,transparent 70%)}
.x153-logo{position:relative;height:clamp(26px,4.4vh,38px);width:auto;align-self:flex-start;filter:brightness(0) invert(1)}
.x153-section{position:absolute;right:clamp(-30px,-1vw,0px);bottom:clamp(-40px,-3vh,-10px);height:min(62%,420px);width:auto;color:rgba(255,255,255,.16);pointer-events:none}
.x153-story-copy{position:relative;margin-top:auto;display:grid;gap:clamp(8px,1.6vh,16px);max-width:30ch}
.x153-kicker{margin:0;font-size:clamp(13px,1.8vh,15px);font-weight:650;letter-spacing:.01em;color:#bcd7f2}
.x153-story h1{margin:0;font-size:clamp(28px,min(4vw,6.2vh),54px);line-height:1.04;letter-spacing:-.025em;font-weight:800;color:#fff;outline:none;text-wrap:balance}
.x153-lead{margin:0;font-size:clamp(14px,1.9vh,16.5px);line-height:1.55;color:#d6e6f6;max-width:40ch}
.x153-assure{position:relative;display:flex;align-items:center;gap:9px;margin:clamp(4px,1.2vh,12px) 0 0;font-size:13.5px;line-height:1.4;color:#d6e6f6}
.x153-assure svg{width:18px;height:18px;flex:0 0 auto;color:#9fe0c3}

/* the white panel */
.x153-panel{display:flex;flex-direction:column;gap:clamp(12px,2.4vh,24px);padding:clamp(18px,3.6vh,40px) clamp(20px,3.2vw,48px);min-height:0;overflow:auto;background:var(--h7-panel)}
.x153-panel-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.x153-domain{font-size:12.5px;color:var(--h7-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.x153-panel h2{margin:clamp(0px,1vh,10px) 0 0;font-size:clamp(22px,3.4vh,30px);font-weight:780;letter-spacing:-.015em;color:var(--h7-ink)}
.x153-choices{display:grid;gap:10px}
.x153-choice{appearance:none;display:grid;grid-template-columns:44px minmax(0,1fr) 22px;gap:14px;align-items:center;width:100%;padding:clamp(12px,1.8vh,16px) 16px;border-radius:16px;border:1px solid var(--h7-line);
  background:var(--h7-panel);color:var(--h7-ink);font:inherit;text-align:left;cursor:pointer;transition:border-color .15s,background-color .15s,box-shadow .15s}
.x153-choice:hover{border-color:color-mix(in srgb,var(--h7-blue) 45%,var(--h7-line));background:var(--h7-soft)}
.x153-choice:focus-visible{outline:3px solid color-mix(in srgb,var(--h7-blue) 45%,transparent);outline-offset:2px}
.x153-choice b{display:block;font-size:16.5px;font-weight:740}
.x153-choice small{display:block;margin-top:2px;font-size:13.5px;color:var(--h7-muted)}
.x153-choice-ic{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:var(--h7-blue-tint);color:var(--h7-blue)}
.x153-choice-ic svg{width:21px;height:21px}
.x153-chev svg{width:20px;height:20px;color:var(--h7-muted)}
.x153-choice.is-primary{background:var(--h7-blue);border-color:var(--h7-blue);color:#fff;box-shadow:0 8px 22px color-mix(in srgb,var(--h7-blue) 28%,transparent)}
.x153-choice.is-primary:hover{background:var(--h7-blue-ink);border-color:var(--h7-blue-ink)}
.x153-choice.is-primary small{color:#d6e6f6}
.x153-choice.is-primary .x153-choice-ic{background:rgba(255,255,255,.16);color:#fff}
.x153-choice.is-primary .x153-chev svg{color:#fff}
html[data-theme="dark"] .x153-choice.is-primary{color:#06121f;box-shadow:none}
html[data-theme="dark"] .x153-choice.is-primary small{color:#0f2a45}
html[data-theme="dark"] .x153-choice.is-primary .x153-choice-ic{background:rgba(6,18,31,.14);color:#06121f}
html[data-theme="dark"] .x153-choice.is-primary .x153-chev svg{color:#06121f}
.x153-block{display:grid;gap:10px;padding-top:clamp(10px,2vh,18px);border-top:1px solid var(--h7-line-soft)}
.x153-block h3{display:flex;align-items:center;gap:8px;margin:0;font-size:14px;font-weight:720;color:var(--h7-ink-2)}
.x153-block .x150-count{font-size:12px;padding:1px 8px}
.x153-apps{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.x153-apps li{display:inline-flex;align-items:center;gap:8px;padding:5px 12px 5px 5px;border-radius:12px;border:1px solid var(--h7-line);background:var(--h7-soft)}
.x153-apps .x150-app-ic{width:32px;height:32px;border-radius:9px;background:var(--h7-panel)}
.x153-apps .x150-app-ic img{width:26px;height:26px}
.x153-apps .x150-app-ic .a149-tile{width:32px!important;height:32px!important;font-size:12px!important;border-radius:9px}
.x153-app-name{font-size:14px;font-weight:650;color:var(--h7-ink)}
.x153-apps .x153-more{padding:5px 12px;background:transparent;border-style:dashed}
.x153-apps .x153-more .x153-app-name{font-weight:600;color:var(--h7-muted)}
.x153-apps .x150-skel{width:180px;height:42px;margin:0;border:0;padding:0}
.x153-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;counter-reset:none}
.x153-steps li{display:grid;grid-template-columns:26px minmax(0,1fr);gap:9px;align-items:start;font-size:13.5px;line-height:1.4;color:var(--h7-ink-2)}
.x153-steps b{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:12.5px;border:1.5px solid var(--h7-blue);color:var(--h7-blue)}

/* tablets in portrait and phones: one column, the blue panel becomes a compact header */
@media (max-width:860px){
  .x153-card{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);width:min(620px,100%);height:auto}
  .x153-story{padding:clamp(18px,3vh,30px) clamp(18px,5vw,30px);gap:clamp(10px,2vh,18px)}
  .x153-story-copy{margin-top:clamp(8px,2.4vh,26px);max-width:none}
  .x153-story h1{font-size:clamp(25px,min(7.2vw,4.6vh),40px)}
  .x153-section{height:min(88%,260px);right:-34px;bottom:-34px}
  .x153-panel{padding:clamp(16px,2.6vh,28px) clamp(16px,5vw,30px)}
}
@media (max-width:520px){
  .x153-card{border-radius:20px}
  .x153-assure{display:none}
  .x153-domain{font-size:12px}
  .x153-steps{grid-template-columns:minmax(0,1fr);gap:7px}
  .x153-steps li{align-items:center}
  .x153-choice{grid-template-columns:40px minmax(0,1fr) 18px;gap:12px;padding:12px 14px}
  .x153-choice-ic{width:40px;height:40px}
}
/* short screens: keep the two ways in, drop secondary lines */
@media (max-height:860px) and (max-width:860px){.x153-lead{display:none}}
@media (max-height:760px) and (max-width:520px){.x153-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.x153-steps li{grid-template-columns:minmax(0,1fr);justify-items:start;font-size:12.5px;gap:4px}}
@media (max-height:700px){.x153-lead{display:none}.x153-domain{display:none}}
@media (max-height:680px) and (max-width:860px){.x153-section{display:none}.x153-kicker{display:none}}
@media (max-height:640px){.x153-block:has(.x153-steps){display:none}}
@media (max-height:560px){.x153-block{display:none}.x153-assure{display:none}}
@media (max-height:520px) and (min-width:560px){
  .x153-card{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:none;width:min(1120px,100%);height:calc(100dvh - 2*var(--frame-m))}
  .x153-story h1{font-size:clamp(20px,6.4vh,30px)}
  .x153-section{display:none}
  .x153-panel h2{display:none}
}

/* ── 2 · sign-in page: the card always fits the screen, with a margin above and below ── */
:is(html,#f153#f153) .login-page:not([hidden]){display:grid!important;place-items:center!important;box-sizing:border-box!important;height:100dvh!important;min-height:0!important;
  padding:var(--frame-m) var(--frame-x)!important;overflow:hidden!important}
:is(html,#f153#f153) .login-page .login-shell{max-height:calc(100dvh - 2*var(--frame-m))!important;height:auto!important;min-height:0!important;margin:0!important;width:min(1080px,100%)!important;
  grid-template-rows:minmax(0,1fr)!important;overflow:hidden!important}
:is(html,#f153#f153) .login-page .login-story{min-height:0!important;overflow:hidden!important;padding:clamp(20px,4vh,40px) clamp(20px,3vw,40px)!important}
:is(html,#f153#f153) .login-page .login-form-panel{min-height:0!important;max-height:calc(100dvh - 2*var(--frame-m) - 2px)!important;overflow-y:auto!important;overscroll-behavior:contain;
  padding:clamp(18px,3.4vh,36px) clamp(20px,2.8vw,36px)!important;gap:clamp(10px,1.8vh,16px)!important}
:is(html,#f153#f153) .login-page .login-story-copy h1{font-size:clamp(28px,min(3.6vw,6vh),48px)!important}
@media (max-height:820px) and (min-width:821px){:is(html,#f153#f153) .login-page .login-flow{display:none!important}}
@media (max-height:640px) and (min-width:821px){:is(html,#f153#f153) .login-page .login-product-lineup,:is(html,#f153#f153) .login-page .login-story-copy p{display:none!important}}
/* phones and narrow tablets: the blue introduction becomes a compact header and the form takes the rest */
@media (max-width:820px){
  :is(html,#f153#f153) .login-page .login-shell{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto minmax(0,1fr)!important;width:min(560px,100%)!important;height:calc(100dvh - 2*var(--frame-m))!important}
  :is(html,#f153#f153) .login-page .login-story{padding:14px 18px!important;gap:8px!important}
  :is(html,#f153#f153) .login-page .login-story>img{height:24px!important;width:auto!important}
  :is(html,#f153#f153) .login-page .login-story-copy .eyebrow,:is(html,#f153#f153) .login-page .login-story-copy p,:is(html,#f153#f153) .login-page .login-flow{display:none!important}
  :is(html,#f153#f153) .login-page .login-story-copy h1{font-size:clamp(20px,5.6vw,26px)!important;margin:2px 0 0!important}
  :is(html,#f153#f153) .login-page .login-product-lineup{margin:2px 0 0!important;padding:0!important;border:0!important;gap:6px!important}
  :is(html,#f153#f153) .login-page .login-form-panel{display:flex!important;flex-direction:column!important;max-height:none!important;padding:16px 18px 20px!important}
  :is(html,#f153#f153) .login-page .x150-authbar.is-top{position:relative!important}
}
@media (max-width:820px) and (max-height:700px){:is(html,#f153#f153) .login-page .login-product-lineup{display:none!important}}

/* contrast on the blue panel always wins over older page-wide heading rules */
:is(html,#o153#o153) .x153-story h1{color:#fff!important}
:is(html,#o153#o153) .x153-story .x153-kicker{color:#bcd7f2!important}
:is(html,#o153#o153) .x153-story .x153-lead,:is(html,#o153#o153) .x153-story .x153-assure{color:#d6e6f6!important}
:is(html,#o153#o153) .x153-choice.is-primary b{color:#fff!important}
:is(html,#o153#o153) .x153-choice.is-primary small{color:#d6e6f6!important}
:is(html,#o153#o153)[data-theme="dark"] .x153-choice.is-primary b{color:#06121f!important}
:is(html,#o153#o153)[data-theme="dark"] .x153-choice.is-primary small{color:#0f2a45!important}
.x153-story-copy{max-width:none}
.x153-story h1{font-size:clamp(28px,min(3.3vw,5.4vh),46px);max-width:13.5ch}
.x153-lead{max-width:34ch}
@media (max-width:860px){
  .x153-story h1{max-width:none;font-size:clamp(23px,min(6.6vw,4.2vh),36px)}
  .x153-story-copy{margin-top:clamp(6px,1.6vh,18px)}
  .x153-kicker{display:none}
}
@media (max-width:520px){
  .x153-story{padding:16px 18px 18px;gap:10px}
  .x153-logo{height:24px}
  .x153-panel{gap:12px;padding:14px 16px 16px}
  .x153-panel-top{position:absolute;right:26px;top:calc(var(--frame-m) + 12px)}
  .x153-domain{display:none}
  .x153-panel h2{margin:0;font-size:21px}
  .x153-block{padding-top:10px;gap:8px}
  .x153-apps{gap:6px}
  .x153-apps li{padding:3px 10px 3px 3px}
  .x153-apps .x150-app-ic{width:28px;height:28px}
  .x153-apps .x150-app-ic img{width:22px;height:22px}
  .x153-apps .x150-app-ic .a149-tile{width:28px!important;height:28px!important;font-size:10px!important}
  .x153-app-name{font-size:13px}
  .x153-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .x153-steps li{grid-template-columns:minmax(0,1fr);gap:4px;font-size:12.5px;line-height:1.35}
  .x153-steps b{width:22px;height:22px;font-size:11.5px}
  .x153-choice small{font-size:12.5px}
  .x153-choice b{font-size:15.5px}
}
@media (max-width:520px) and (max-height:700px){.x153-panel h2{display:none}}
@media (max-width:520px) and (max-height:620px){.x153-block:has(.x153-steps){display:none}}
@media (max-width:860px) and (max-height:1000px){.x153-lead{display:none}}
@media (max-width:860px) and (max-height:660px){.x153-panel h2{display:none}}
/* the drawing sits in the open upper area of the blue panel, never behind the text */
.x153-section{top:clamp(56px,10vh,110px);bottom:auto!important;right:clamp(18px,3vw,48px);height:min(46%,340px)}
.x153-panel>h2{margin-top:auto!important}
.x153-panel>.x153-block:last-child{margin-bottom:auto}
@media (max-width:860px){.x153-section{top:12px;right:14px;height:min(80%,170px)}.x153-panel>h2{margin-top:0!important}.x153-panel>.x153-block:last-child{margin-bottom:0}}
@media (max-width:520px){
  .x153-card{position:relative}
  .x153-panel-top{position:absolute!important;top:12px!important;right:12px!important;z-index:2}
  .x153-panel-top .x150-theme{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.28)}
  .x153-panel-top .x150-theme button{color:#fff}
  .x153-panel-top .x150-theme button[aria-pressed="true"]{background:#fff;color:#00549f}
  .x153-section{display:none}
}
@media (max-width:520px){.x153-steps li{align-items:start!important;align-content:start}}

/* sign-in: give the form the room on smaller screens */
@media (max-width:820px){
  :is(html,#f153#f153) .login-page .login-story{padding:12px 18px 14px!important}
  :is(html,#f153#f153) .login-page .login-story-copy h1{font-size:clamp(19px,5.2vw,24px)!important;line-height:1.15!important}
  :is(html,#f153#f153) .login-page .x150-authbar.is-top{padding:8px 12px!important}
  :is(html,#f153#f153) .login-page .x150-authbar.is-top .x150-back{height:36px!important;font-size:13.5px!important}
  :is(html,#f153#f153) .login-page #loginPanelIntro{display:none!important}
}
@media (max-width:820px) and (max-height:920px){:is(html,#f153#f153) .login-page .login-product-lineup{display:none!important}}
@media (max-height:820px){
  :is(html,#f153#f153) .login-page .hub-auth-steps{display:none!important}
  :is(html,#f153#f153) .login-page #accountDiscoveryHint{display:none!important}
}
@media (max-width:820px) and (max-height:720px){:is(html,#f153#f153) .login-page .login-story{display:none!important}}
@media (min-width:821px) and (max-height:820px){:is(html,#f153#f153) .login-page #loginPanelIntro{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}}
@media (max-height:700px){:is(html,#f153#f153) .login-page .x149-remember small,:is(html,#f153#f153) .login-page .account-create-copy span{display:none!important}}
/* creating a profile: the sign-in extras (keep signed in, passkey, other ways) wait for the next step */
:is(html,#f153#f153) #loginForm:has(#newAccountFields:not([hidden])) .x149-signin-extra{display:none!important}
:is(html,#f153#f153) #loginForm:has(#newAccountFields:not([hidden])) #accountDiscoveryHint{display:none!important}
/* landscape phones: the form uses the whole card */
@media (max-height:480px) and (min-width:560px){
  :is(html,#f153#f153) .login-page .login-shell{grid-template-columns:minmax(0,1fr)!important;width:min(640px,100%)!important}
  :is(html,#f153#f153) .login-page .login-story{display:none!important}
  :is(html,#f153#f153) .login-page .x149-remember small,:is(html,#f153#f153) .login-page .x150-ways{display:none!important}
}
@media (max-height:480px) and (min-width:560px){
  :is(html,#f153#f153) .login-page .login-form-panel .eyebrow{display:none!important}
  :is(html,#f153#f153) .login-page #loginPanelTitle{font-size:20px!important;margin:0!important}
  :is(html,#f153#f153) .login-page #loginPanelIntro{display:none!important}
  :is(html,#f153#f153) .login-page .login-form-panel{padding:12px 20px!important;gap:8px!important}
  :is(html,#f153#f153) .login-page .x150-authbar{margin-bottom:4px!important}
  :is(html,#f153#f153) .login-page .x149-signin-extra{gap:8px!important;margin-top:8px!important}
  :is(html,#f153#f153) .login-page .x149-remember{padding:8px 10px!important}
}
:is(html,#f153#f153) .login-form-panel:has(#codeForm:not([hidden])) #signedOutNotice{display:none!important}
@media (max-height:640px){:is(html,#f153#f153) .login-page #signedOutNotice small{display:none!important}}
@media (max-height:640px){:is(html,#f153#f153) .login-page .login-form-panel{gap:8px!important;padding-top:16px!important;padding-bottom:16px!important}}
/* creating a profile: note and "Use another e-mail" across the full width, the two names side by side */
:is(html,#f153#f153) .login-page #newAccountFields:not([hidden]){display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px 12px!important;align-items:end}
:is(html,#f153#f153) .login-page #newAccountFields>.account-create-copy,:is(html,#f153#f153) .login-page #newAccountFields>.hub-auth-back-inline{grid-column:1/-1!important;justify-self:start}
@media (max-width:360px){:is(html,#f153#f153) .login-page #newAccountFields:not([hidden]){grid-template-columns:minmax(0,1fr)!important}}
@media (max-width:820px){:is(html,#f153#f153#f153) .login-page .login-shell{height:auto!important;max-height:calc(100dvh - 2*var(--frame-m))!important;grid-template-rows:auto auto minmax(0,auto)!important}}
:is(html,#f153#f153#f153) body.x152-landing-on #loginView{display:none!important}

/* V154 · signed-out confirmation on the opening page; create-account form */
.x154-signedout{display:flex;gap:10px;align-items:flex-start;margin:0;padding:10px 14px;border-radius:12px;background:var(--h7-green-tint);border:1px solid color-mix(in srgb,var(--h7-green) 35%,var(--h7-line));font-size:13.5px;line-height:1.45;color:var(--h7-ink-2)}
.x154-signedout svg{width:18px;height:18px;flex:0 0 auto;margin-top:1px;color:var(--h7-green)}
.x154-signedout b{color:var(--h7-ink)}
body.x154-register #newAccountFields .account-create-copy{display:none!important}
body.x154-register #newAccountFields{margin-bottom:4px}
:is(html,#n154) body:not(.x154-register) #accountDiscoveryHint{display:none!important}
.x154-newhint{margin:6px 0 0;text-align:center;font-size:13.5px;color:var(--h7-muted)}
body.x154-register .x154-newhint{display:none}
.x154-link{appearance:none;border:0;background:none;padding:0;font:inherit;font-weight:700;color:var(--h7-blue);cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.x154-link:focus-visible{outline:2px solid var(--h7-blue);outline-offset:2px;border-radius:4px}
@media (max-height:480px){.x154-newhint{display:none}}
