/* Account entry, downloads and access help share the application's navy shell. */
body.entry-page.ek-refresh { background:#eef5fa!important; }
body.entry-page #main-content { padding:112px 24px 36px; min-height:calc(100vh - 70px); }
body.entry-page .pager { display:none; }
.entry-shell { width:min(1120px,100%); margin:0 auto; font:400 14px/1.6 Inter,system-ui,sans-serif; }
body.entry-page.ek-refresh #main-content .entry-shell { padding:0; min-height:0; background:transparent; }
body.entry-page.ek-refresh #main-content .entry-shell > section { min-height:0; background:white; }
body.entry-page.ek-refresh #main-content .terminal-hero { padding:0; }
body.entry-page.ek-refresh #main-content .terminal-tools { padding:26px 30px; }
body.entry-page.ek-refresh #main-content .diagnostics-access { padding:34px; }
.entry-shell *, .entry-shell *::before, .entry-shell *::after { box-sizing:border-box; }
body.entry-page.ek-refresh #main-content .entry-shell h1 { font:600 clamp(30px,3.1vw,44px)/1.13 'Space Grotesk',Inter,sans-serif; letter-spacing:-.04em; color:#102b40; margin:8px 0 16px; }
body.entry-page.ek-refresh #main-content .entry-shell h2 { font:600 24px/1.3 'Space Grotesk',Inter,sans-serif; letter-spacing:-.025em; color:#102b40; margin:0 0 12px; }
body.entry-page.ek-refresh #main-content .entry-shell h3 { font:600 15px/1.5 Inter,sans-serif; color:#102b40; margin:0 0 5px; }
body.entry-page.ek-refresh #main-content .entry-shell p { font:400 14px/1.65 Inter,sans-serif; color:#607588; margin:8px 0 16px; }
body.entry-page.ek-refresh #main-content .entry-shell .entry-eyebrow { font:600 10px/1.5 Inter,sans-serif; text-transform:uppercase; letter-spacing:.13em; color:#607588; margin:0 0 8px; }
.entry-shell a { color:#0f557d; }
.entry-shell :focus-visible { outline:3px solid #5ba9df; outline-offset:4px; }
.entry-shell .entry-actions { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
body.entry-page.ek-refresh #main-content .entry-shell .entry-button { display:inline-flex; gap:14px; justify-content:center; align-items:center; padding:12px 18px; border:1px solid #0f557d; border-radius:7px; background:#0f557d; color:white; font:600 13px/1.5 Inter,sans-serif; text-decoration:none; min-height:46px; }
body.entry-page.ek-refresh #main-content .entry-shell .entry-button:hover { background:#0b4262; }
body.entry-page.ek-refresh #main-content .entry-shell .entry-button-secondary { background:white; border-color:#ccdce8; color:#24465d; }
body.entry-page.ek-refresh #main-content .entry-shell .entry-button-secondary:hover { background:#edf5fb; }
.entry-masthead { display:flex; gap:20px; justify-content:space-between; align-items:center; margin-bottom:24px; }
.entry-meta { display:flex; gap:8px; flex-wrap:wrap; color:#607588; font-size:12px; }
.entry-tag { display:inline-flex; padding:5px 10px; border:1px solid #d4e3ee; border-radius:5px; background:#f6fbff; font:500 11px/1.5 Inter,sans-serif; color:#36566d; }
.entry-surface { border:1px solid #dbe6ee; border-radius:14px; background:white; overflow:hidden; }
.entry-brand { display:flex; align-items:center; gap:10px; font:650 22px/1.4 Inter,sans-serif; text-decoration:none; }
.entry-brand img { object-fit:contain; }
.signin-shell { max-width:1020px; }
.signin-frame { display:grid; grid-template-columns:.9fr 1.1fr; border:1px solid #dbe6ee; border-radius:16px; overflow:hidden; background:white; box-shadow:0 18px 55px -40px #153c5f45; }
.signin-welcome { padding:36px; display:flex; flex-direction:column; background:radial-gradient(ellipse at top right,#173b55 0,transparent 65%),#08182a; color:white; }
body.entry-page.ek-refresh #main-content .signin-welcome .entry-brand { color:white; }
.signin-welcome-copy { margin:50px 0 22px; }
body.entry-page.ek-refresh #main-content .signin-welcome h2 { color:#f3f8fc; font-size:38px; line-height:1.13; letter-spacing:-.04em; margin:8px 0 16px; }
body.entry-page.ek-refresh #main-content .signin-welcome p { color:#b5cbdc; }
body.entry-page.ek-refresh #main-content .signin-welcome .entry-eyebrow { color:#8ebedb; }
.signin-features { display:grid; gap:24px; list-style:none; padding:0; margin:8px 0 36px; }
.signin-features li { display:flex; align-items:flex-start; gap:14px; }
.signin-features li > span { flex:0 0 30px; height:30px; display:grid; place-items:center; border:1px solid #36536b; border-radius:7px; color:#8ebedb; font:500 11px/1 Inter,sans-serif; }
.signin-features strong { font-weight:550; color:#edf5fa; }
body.entry-page.ek-refresh #main-content .signin-features p { font-size:12px; line-height:1.5; margin:4px 0 0; color:#9bb4c8; }
body.entry-page.ek-refresh #main-content .signin-terminal-link { color:#bcd7e8; margin-top:auto; padding-top:24px; border-top:1px solid #284157; text-decoration:none; font-size:12px; display:flex; justify-content:space-between; }
.signin-panel { padding:32px 36px 24px; min-width:0; }
.confirm-panel { display:flex; flex-direction:column; justify-content:center; padding-top:48px; padding-bottom:48px; }
.confirm-panel h1 { overflow-wrap:anywhere; }
.confirm-action { padding:20px; margin-top:12px; border:1px solid #cfe0ec; border-radius:10px; background:#f7fbfe; }
.confirm-action-heading { display:flex; align-items:center; gap:12px; margin-bottom:20px; color:#173a51; }
.confirm-action-heading strong,.confirm-action-heading span:not(.confirm-icon) { display:block; }
.confirm-action-heading strong { font-size:13px; }
.confirm-action-heading span:not(.confirm-icon) { margin-top:3px; color:#60798b; font-size:12px; line-height:1.5; }
.confirm-icon { display:grid; place-items:center; width:40px; height:40px; flex:0 0 40px; border:1px solid #c5dce9; border-radius:10px; background:#e9f5fb; color:#17648b; }
.confirm-icon svg { width:22px; height:22px; }
.confirm-panel .account-primary:disabled { opacity:.55; cursor:not-allowed; }
.confirm-panel [hidden] { display:none!important; }
body.entry-page.ek-refresh #main-content .confirm-panel .confirm-safety { padding-top:16px; margin:16px 0 0; border-top:1px solid #e1ebf1; font-size:12px; color:#607588; }
body.entry-page.ek-refresh #main-content .signin-panel h1 { font-size:25px; line-height:1.3; margin:0 0 12px; letter-spacing:-.025em; }
body.entry-page.ek-refresh #main-content .entry-shell .signin-intro { font-size:13px; margin-bottom:16px; }
.signin-methods { display:grid; gap:10px; }
.signin-method { border:1px solid #dbe6ee; border-radius:9px; overflow:hidden; }
.signin-method[open] { border-color:#b9d1e3; }
.signin-method > summary { display:flex; gap:12px; justify-content:space-between; align-items:center; padding:10px 16px; cursor:pointer; list-style:none; color:#16364d; }
.signin-method > summary::-webkit-details-marker { display:none; }
.signin-method > summary strong { font-size:13px; font-weight:600; }
.signin-method > summary small { display:inline-block; color:#74889a; font-size:11px; margin-left:10px; }
.signin-method[open] > summary { background:#f4f9fd; border-bottom:1px solid #dbe6ee; }
.signin-method-arrow { color:#52748e; font-size:20px; line-height:1; }
.signin-method[open] .signin-method-arrow { transform:rotate(45deg); }
.signin-method-body { padding:16px; }
.signin-panel .account-login-form { margin:0; display:grid; gap:9px; }
.signin-panel .account-login-form > label:not(.account-check) { font-size:12px; font-weight:550; color:#24465d; }
body.entry-page.ek-refresh #main-content .signin-panel input:not([type=checkbox]):not([type=hidden]) { width:100%; min-width:0; height:44px; padding:10px 12px; border:1px solid #cadbe8; border-radius:6px; background:white; color:#102b40; font:400 13px/1.5 Inter,sans-serif; box-shadow:none; }
.signin-panel .account-check { display:flex; gap:9px; align-items:flex-start; margin:7px 0 0; padding:0; border:0; font:400 11px/1.6 Inter,sans-serif; color:#536c80; }
.signin-panel .account-check input { width:15px; height:15px; flex:0 0 15px; margin:2px 0 0; accent-color:#0f557d; }
.signin-panel .account-check small { display:block; margin-top:2px; font-size:11px; }
body.entry-page.ek-refresh #main-content .signin-panel .account-terms-read { font-size:11px; margin:0 0 4px 24px; }
body.entry-page.ek-refresh #main-content .signin-panel .account-primary,
body.entry-page.ek-refresh #main-content .signin-panel .account-secondary { width:100%; display:flex; align-items:center; justify-content:center; gap:8px; min-height:43px; padding:10px 12px; border:1px solid #0f557d; border-radius:6px; background:#0f557d; color:white; font:600 12px/1.5 Inter,sans-serif; cursor:pointer; margin:0; box-shadow:none; }
body.entry-page.ek-refresh #main-content .signin-panel .account-secondary { background:white; color:#24465d; border-color:#cbdce8; }
.signin-panel .account-actions { margin:10px 0 0; }
body.entry-page.ek-refresh #main-content .signin-panel .account-provider-note,
body.entry-page.ek-refresh #main-content .signin-panel .account-note { font-size:11px; line-height:1.6; color:#6c8191; margin:12px 0 0; }
body.entry-page.ek-refresh #main-content .entry-shell .signin-help { font-size:11px; margin:18px 0 0; }
.entry-notice { padding:14px 16px; margin:16px 0; border:1px solid #c2dce8; border-radius:8px; background:#eff8fc; color:#24465d; font-size:13px; }
body.entry-page.ek-refresh #main-content .entry-notice p { margin:5px 0 0; font-size:12px; }
.entry-notice-error { border-color:#edc4bf; background:#fff5f3; color:#953c35; }
.signin-panel .needs-tick { color:#953c35; }
body.entry-page.ek-refresh #main-content .signin-panel .account-terms-hint { font-size:11px; color:#953c35; }
.terminal-hero { display:grid; grid-template-columns:1fr 1fr; align-items:stretch; }
.terminal-intro { padding:32px; }
body.entry-page.ek-refresh #main-content .terminal-intro h2 { font-size:30px; max-width:17ch; }
body.entry-page.ek-refresh #main-content .terminal-intro .terminal-release-note { font-size:11px; margin:15px 0 0; }
.terminal-example { background:#0b1d2e; color:#bed3e3; margin:20px; margin-left:0; border:1px solid #1b3a50; border-radius:10px; min-width:0; }
.terminal-example-header { display:flex; gap:12px; justify-content:space-between; align-items:center; padding:13px 17px; border-bottom:1px solid #294154; font:500 11px/1.5 Inter,sans-serif; }
.terminal-example-header span:last-child { color:#7d9aaf; font-weight:400; }
body.entry-page.ek-refresh #main-content .terminal-example pre { background:transparent; color:#b9d0e1; border:0; box-shadow:none; margin:0; padding:22px 20px; font:400 12px/1.85 ui-monospace,Consolas,monospace; overflow-x:auto; white-space:pre-wrap; }
.terminal-example .prompt { color:#78bce6; }
.terminal-example .result { color:#7ddbb5; }
.terminal-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin:22px 0; padding:0; list-style:none; }
.terminal-steps li { display:flex; align-items:flex-start; gap:13px; padding:20px; border:1px solid #dbe6ee; border-radius:10px; background:white; }
.terminal-step-number { flex:0 0 28px; height:28px; display:grid; place-items:center; background:#edf5fb; color:#3b6b8a; border-radius:6px; font:600 11px/1 Inter,sans-serif; }
body.entry-page.ek-refresh #main-content .terminal-steps p { margin:5px 0 0; font-size:12px; }
.entry-shell code { overflow-wrap:anywhere; font-size:.93em; }
.terminal-tools { display:grid; grid-template-columns:1.3fr 1fr; gap:32px; padding:26px 30px; align-items:center; }
body.entry-page.ek-refresh #main-content .terminal-tools h2 { font-size:21px; }
body.entry-page.ek-refresh #main-content .terminal-tools p { margin-bottom:0; font-size:13px; }
.terminal-tools .entry-actions { justify-content:flex-end; }
.terminal-release-details { margin-top:20px; border:1px solid #dbe6ee; border-radius:10px; background:white; }
.terminal-release-details > summary { padding:17px 20px; cursor:pointer; color:#24465d; font-size:13px; font-weight:550; }
.terminal-release-content { padding:4px 22px 22px; }
.terminal-release-content #check { scroll-margin-top:96px; }
.terminal-sha { display:block; font:400 12px/1.8 ui-monospace,Consolas,monospace; overflow-wrap:anywhere; padding:14px; border-radius:6px; background:#f0f6fb; color:#24465d; }
body.entry-page.ek-refresh #main-content .terminal-release-content pre { white-space:pre-wrap; overflow-wrap:anywhere; background:#f0f6fb; padding:14px; color:#24465d; border:0; border-radius:6px; font-size:12px; }
.terminal-release-links { display:flex; flex-wrap:wrap; gap:20px; font-size:12px; margin-top:16px; }
body.entry-page.ek-refresh #main-content .entry-shell .terminal-boundary { font-size:11px; margin:18px 2px 0; max-width:100%; }
.diagnostics-access { padding:34px; }
.diagnostics-access .entry-actions { margin-top:24px; }
.diagnostics-access-features { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin:28px 0; padding-top:24px; border-top:1px solid #dbe6ee; }
body.entry-page.ek-refresh #main-content .diagnostics-access-features p { font-size:12px; margin:5px 0 0; }
@media (max-width:800px) {
 body.entry-page #main-content { padding:94px 18px 26px; }
 .signin-frame { grid-template-columns:1fr; max-width:560px; margin:auto; }
 .signin-welcome { display:none; }
 .signin-panel { padding:28px 24px; }
 .terminal-hero, .terminal-tools { grid-template-columns:1fr; }
 .terminal-example { display:none; }
 .terminal-steps { grid-template-columns:1fr; gap:10px; }
 body.entry-page.ek-refresh #main-content .terminal-tools { gap:20px; padding:24px; }
 .terminal-tools .entry-actions { justify-content:flex-start; }
 body.entry-page.ek-refresh #main-content .diagnostics-access { padding:26px; }
 .diagnostics-access-features { grid-template-columns:1fr; gap:16px; }
}
@media (max-width:480px) {
 body.entry-page #main-content { padding:86px 14px 24px; }
 .signin-panel { padding:24px 18px; }
 body.entry-page.ek-refresh #main-content .signin-panel input:not([type=checkbox]):not([type=hidden]) { font-size:16px; }
 .signin-welcome { padding:22px; }
 .signin-welcome-copy { margin-top:20px; }
 .entry-masthead { align-items:flex-start; flex-direction:column; gap:8px; }
 .terminal-intro { padding:24px; }
 .terminal-example { margin:0 16px 16px; }
 .terminal-example-header { flex-wrap:wrap; }
 .entry-actions .entry-button { width:100%; }
}

/* Institutional login, using the same white Account panel surface. */
body.entry-login.ek-refresh #main-content .signin-frame {
  background: #fff;
  border: 1px solid #dbe6ee;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(15, 51, 78, .09);
}
body.entry-login.ek-refresh #main-content .signin-panel {
  min-width: 0;
  background: #fff;
  border-left: 1px solid #dbe6ee;
}
body.entry-login.ek-refresh #main-content .signin-method {
  border: 1px solid #dbe6ee;
  background: #fff;
  border-radius: 10px;
  box-shadow: none;
}
body.entry-login.ek-refresh #main-content .signin-method[open] {
  border-color: #b4d1e4;
  box-shadow: 0 4px 12px rgba(24, 58, 81, .05);
}
body.entry-login.ek-refresh #main-content .signin-method[open] > summary {
  background: #f5f9fd;
}
body.entry-login.ek-refresh #main-content .signin-method-aaf .signin-method-body {
  background: #fff;
  padding: 18px 18px 16px;
}
body.entry-login.ek-refresh #main-content .signin-method-aaf > summary {
  min-height: 62px;
}
body.entry-login.ek-refresh #main-content .signin-method-aaf summary > span:first-child {
  min-width: 0;
}
body.entry-login.ek-refresh #main-content .signin-method-aaf summary small {
  display: block;
  margin: 3px 0 0;
  line-height: 1.45;
  color: #637a8c;
  overflow-wrap: anywhere;
}
body.entry-login.ek-refresh #main-content .signin-method-aaf .account-terms {
  padding: 10px 12px;
  background: #f7fafc;
  border: 1px solid #e0e9f0;
  border-radius: 8px;
}
body.entry-login.ek-refresh #main-content .signin-method-aaf .account-terms-read {
  padding: 0;
  margin: 0 0 0 24px;
}
body.entry-login.ek-refresh #main-content .signin-method-aaf .signin-aaf-actions {
  margin-top: 7px;
  padding-top: 14px;
  border-top: 1px solid #e3ebf2;
}
body.entry-login.ek-refresh #main-content .signin-panel .account-primary,
body.entry-login.ek-refresh #main-content .signin-panel .account-secondary {
  min-height: 46px;
  padding: 11px 16px;
  border-radius: 9px;
  font-weight: 600;
  transition: background .15s ease,border-color .15s ease;
}
body.entry-login.ek-refresh #main-content .signin-panel .account-primary:hover {
  background: #0b466a;
  border-color: #0b466a;
}
body.entry-login.ek-refresh #main-content .signin-panel .account-secondary:hover {
  background: #edf5fb;
  border-color: #91bad2;
}
body.entry-login.ek-refresh #main-content .signin-panel .account-aaf-submit {
  border: 1px solid #0f557d;
  background: #0f557d;
  color: #fff;
  font-size: 12px;
  letter-spacing: .01em;
}
body.entry-login.ek-refresh #main-content .signin-panel .account-aaf-submit:hover {
  background: #0b4568;
  color: #fff;
  border-color: #0b4568;
}
body.entry-login.ek-refresh #main-content .signin-method-aaf .account-provider-note {
  padding: 12px 13px;
  background: #f5f9fc;
  border: 1px solid #e1eaf1;
  border-radius: 9px;
  color: #586f80;
}
body.entry-login.ek-refresh #main-content .signin-help {
  padding: 15px 0 0;
  border-top: 1px solid #e5ecf2;
}

/* AAF research account invite hand-off — readable and clearly non-secret. */
body.account-access .account-institution-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 5px 0;
}
body.account-access .account-institution-copy button.account-secondary {
  min-height: 33px;
  width: auto;
  padding: 6px 11px;
  font: 600 11px/1.4 Inter,system-ui,sans-serif;
  border: 1px solid #c5dce9;
  border-radius: 7px;
  background: #f2f8fc;
  color: #18577c;
  cursor: pointer;
}
body.account-access .account-institution-copy button:hover {
  background: #e5f2fa;
}
body.account-access .account-institution-copy [role="status"] {
  color: #24704d;
  font-size: 11px;
}
@media(max-width:800px) {
  body.entry-login.ek-refresh #main-content .signin-panel { border-left: 0; }
}
@media(max-width:480px) {
  body.entry-login.ek-refresh #main-content .signin-method-aaf .signin-method-body {
    padding: 15px 12px;
  }
  body.entry-login.ek-refresh #main-content .signin-method-aaf > summary {
    padding: 12px;
  }
  body.entry-login.ek-refresh #main-content .signin-method-aaf .account-provider-note {
    padding: 10px;
  }
}

/* The global provider-note flex style wraps text nodes into columns.
   AAF's identity explanation must remain a single readable paragraph. */
body.entry-login.ek-refresh #main-content .signin-method-aaf .account-provider-note {
  display: block !important;
  max-width: 100%;
  overflow-wrap: break-word;
  font-size: 11px;
  line-height: 1.65;
}
body.entry-login.ek-refresh #main-content .signin-method-aaf .account-provider-note > span:first-child {
  display: inline-block;
  margin-right: 6px;
  vertical-align: baseline;
}

/* Sign-in, sign-up and password pages use the same blue as Home. */
body.entry-page.ek-refresh, body.entry-page.ek-refresh #main-content { background:#e6f1fb!important; color:#102b40; }
body.entry-page.ek-refresh nav.nav.ek-nav, body.entry-page.ek-refresh nav.nav.ek-nav.scrolled { background:linear-gradient(90deg,#050c18 0%,#08182a 55%,#0b2234 100%)!important; border-bottom:1px solid #14293a!important; box-shadow:none; }
body.entry-page.ek-refresh nav.nav.ek-nav .nav-logo, body.entry-page.ek-refresh nav.nav.ek-nav .nav-logo span { color:#fff!important; }
body.entry-page.ek-refresh nav.nav.ek-nav .nav-link { color:#c7d8e4!important; }
body.entry-page.ek-refresh nav.nav.ek-nav .nav-link:hover, body.entry-page.ek-refresh nav.nav.ek-nav .nav-link.active { color:#fff!important; }
body.entry-page.ek-refresh nav.nav.ek-nav .nav-hamburger span { background:#eef5f8!important; }
body.entry-page.ek-refresh .entry-shell, body.entry-page.ek-refresh .entry-shell label, body.entry-page.ek-refresh .entry-shell summary, body.entry-page.ek-refresh .entry-shell summary strong { color:#102b40; }
body.entry-page.ek-refresh .entry-shell input:not([type=checkbox]), body.entry-page.ek-refresh .entry-shell select { color:#102b40!important; border-color:#c5dce9!important; background:#fff; }
body.entry-page.ek-refresh .entry-shell input:focus-visible, body.entry-page.ek-refresh .entry-shell select:focus-visible, body.entry-page.ek-refresh .entry-shell a:focus-visible, body.entry-page.ek-refresh .entry-shell button:focus-visible { outline:3px solid #2f7fb0; outline-offset:2px; }
body.entry-page.ek-refresh .entry-shell input[type=checkbox] { accent-color:#0f557d; }

/* Error pages share the workspace palette, including a signed-in context bar. */
body.workspace-error-page.ek-refresh, body.workspace-error-page.ek-refresh #main-content { background:#eef5fa!important; color:#142b40; }
body.workspace-error-page.ek-refresh #main-content { padding:104px 24px 36px; }
body.workspace-error-page.ek-refresh:has(.workspace-context-bar) #main-content { padding-top:24px!important; }
body.workspace-error-page.ek-refresh #main-content .error-shell { width:min(1120px,100%); display:grid; gap:18px; }
body.workspace-error-page.ek-refresh #main-content .error-surface { padding:clamp(20px,4vw,36px); background:#fff; border-color:#dbe6ee; }
body.workspace-error-page.ek-refresh #main-content .error-surface p { max-width:74ch; }
body.workspace-error-page.ek-refresh #main-content .error-note { margin-top:22px; border-top:1px solid #dbe6ee; padding-top:16px; font-size:13px; }
.error-link-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
body.workspace-error-page.ek-refresh #main-content .error-link-grid a { display:grid; gap:6px; padding:15px; border:1px solid #dbe6ee; border-radius:8px; color:#0f557d; background:#f4f8fc; text-decoration:none; }
.error-link-grid a:hover { border-color:#8dbcd9; }
.error-link-grid a strong { font-size:14px; }
.error-link-grid a span { color:#607588; font-size:12px; }
@media(max-width:760px) { .error-link-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:420px) { .error-link-grid { grid-template-columns:1fr; } body.workspace-error-page.ek-refresh #main-content .error-shell .entry-button { width:100%; } }
