
  :root { color-scheme: light; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --blue: #3C55F6; --blue-hover: #2D43D1; --ink: #14213C; --paper: #F7F9FD; --muted: #53627B; --line: #D8E1F0; }
  * { box-sizing: border-box; }
  [hidden] { display: none !important; }
  body { margin: 0; background: var(--paper); color: var(--ink); }
  button, input { font: inherit; }
  button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
  .access-shell { min-height: 100vh; }
  .access-hero { position: relative; overflow: hidden; padding: 27px 22px 57px; background: var(--blue); color: #fff; text-align: center; }
  .hero-art { position: absolute; top: -55px; left: 50%; width: 460px; height: 260px; transform: translateX(-50%); opacity: .82; pointer-events: none; }
  .hero-art .orbit { transform-origin: 50% 50%; animation: orbit 24s linear infinite; }
  .hero-art .orbit.reverse { animation-direction: reverse; animation-duration: 32s; }
  .hero-art .trace { stroke-dasharray: 14 20; animation: trace 10s linear infinite; }
  .hero-art .spark { animation: breathe 3.6s ease-in-out infinite alternate; }
  @keyframes orbit { to { transform: rotate(360deg); } }
  @keyframes trace { to { stroke-dashoffset: -340; } }
  @keyframes breathe { to { opacity: .28; transform: scale(.84); } }
  .brand, .hero-copy { position: relative; z-index: 1; }
  .brand { display: flex; justify-content: center; }
  .brand img { display: block; width: 200px; height: auto; }
  .eyebrow { margin: 30px 0 9px; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 800; }
  .hero-copy h1 { margin: 0; font-size: clamp(28px, 8vw, 36px); line-height: 1.12; letter-spacing: -.045em; }
  .subtitle { max-width: 29rem; margin: 10px auto 0; font-size: 14px; line-height: 1.5; }
  .access-main { position: relative; padding: 0 17px 35px; margin: -26px auto 0; max-width: 760px; }
  .access-card { padding: clamp(22px, 4vw, 38px); border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 16px 45px #0D183012; }
  .access-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
  .kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
  .kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3DE4BD; box-shadow: 0 0 0 4px #EAF9F5; }
  .access-card h2 { margin: 0 0 8px; font-size: clamp(23px, 5vw, 29px); line-height: 1.2; letter-spacing: -.035em; }
  .intro, .supporting { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.55; }
  .access-card form { display: grid; gap: 13px; margin: 20px 0 0; }
  .access-card label { display: grid; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 700; }
  .access-card input { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid #B9C5DB; border-radius: 12px; background: #fff; color: var(--ink); }
  .access-card input::placeholder { color: #7886A0; }
  .access-card button { min-height: 45px; padding: 10px 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 740; cursor: pointer; }
  .access-card button:hover:not(:disabled) { background: #EEF1FF; }
  .access-card button:disabled { opacity: .6; cursor: not-allowed; }
  .access-card .primary { border-color: var(--blue); background: var(--blue); color: #fff; }
  .access-card .primary:hover:not(:disabled) { background: var(--blue-hover); }
  .access-card form .primary { width: 100%; min-height: 49px; }
  .action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
  .action-row button { flex: 1 1 160px; }
  .access-section { padding-top: 24px; margin-top: 25px; border-top: 1px solid var(--line); }
  .access-section h2 { font-size: 21px; }
  .access-section h3 { margin: 0 0 10px; font-size: 17px; }
  .access-section p, .access-section li { font-size: 13px; line-height: 1.55; }
  .access-section ul:not(.grant-list) { padding-left: 20px; }
  #client { padding: 12px 14px; border-radius: 12px; background: #EEF1FF; overflow-wrap: anywhere; }
  #permissions { margin: 16px 0; }
  #status:not(:empty) { padding: 12px 14px; margin: 18px 0 0; border-radius: 12px; background: #EAF0FF; color: #263E89; font-size: 13px; line-height: 1.5; }
  .access-card #logout { min-height: 36px; flex: none; padding: 7px 12px; font-size: 12px; }
  #grant-more { width: 100%; margin-top: 12px; }
  .grant-list { display: grid; gap: 11px; padding: 0; margin: 16px 0 0; list-style: none; }
  .grant-list > li { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #FCFDFF; }
  .grant-list > li p { margin: 0 0 7px; }
  .grant-list > li p:nth-of-type(2) { display: inline-block; padding: 4px 9px; border-radius: 999px; background: #EAF9F5; color: #17634F; font-size: 11px; font-weight: 750; }
  .grant-list code, #grant-review-id { display: block; margin-bottom: 9px; overflow-wrap: anywhere; color: #384867; font-size: 11px; line-height: 1.5; }
  .grant-list ul { margin: 8px 0 12px; }
  #grant-review { padding: 18px; border: 1px solid #A9B9EF; border-radius: 15px; background: #F3F6FF; }
  #grant-review-id { margin-top: 8px; }
  .access-foot { padding: 16px 6px 0; color: var(--muted); text-align: center; font-size: 11px; line-height: 1.5; }
  .site { display: flex; align-items: center; gap: 11px; padding: 13px 14px; margin: 17px 0 20px; border: 1px solid var(--line); border-radius: 15px; background: #F7F9FD; }
  .site-mark { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; background: #EAF0FF; }
  .site-mark img { width: 25px; height: 25px; }
  .site small { display: block; color: var(--muted); font-size: 11px; }
  .site strong { display: block; margin-top: 2px; overflow-wrap: anywhere; font-size: 13px; }
  .detail-list { display: grid; gap: 0; margin: 0; }
  .detail-list div { display: grid; gap: 3px; padding: 11px 0; border-bottom: 1px solid var(--line); }
  .detail-list dt { color: var(--muted); font-size: 12px; }
  .detail-list dd { margin: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 700; }
  .change { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 17px 0; padding: 15px; border-radius: 14px; background: #EEF1FF; font-size: 13px; }
  .change strong { overflow-wrap: anywhere; }
  .change .arrow { color: var(--blue); font-size: 18px; font-weight: 800; }
  .notice { margin: 15px 0; padding: 13px; border-radius: 13px; background: #EAF9F5; color: #214D48; font-size: 13px; line-height: 1.5; }
  .expiry { margin: 17px 0; color: var(--muted); font-size: 13px; }
  @media (max-width: 899px) {
    .is-authenticated .access-hero { position: sticky; top: 0; z-index: 5; padding: 12px 18px; box-shadow: 0 4px 18px #172E8430; }
    .is-authenticated .access-hero .brand { justify-content: flex-start; }
    .is-authenticated .access-hero .brand img { width: 150px; }
    .is-authenticated .access-hero .hero-copy, .is-authenticated .access-hero .hero-art { display: none; }
    .is-authenticated .access-main { margin-top: 0; padding-top: 16px; }
  }
  @media (min-width: 900px) {
    .access-shell { display: grid; grid-template-columns: minmax(400px, 42%) minmax(0, 1fr); }
    .access-hero { position: sticky; top: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: start; height: 100vh; min-height: 100vh; padding: 56px clamp(32px, 4vw, 80px); }
    .hero-art { top: auto; bottom: -60px; width: min(100%, 60vh, 600px); height: auto; opacity: .72; }
    .brand img { width: clamp(250px, 24vw, 330px); }
    .eyebrow { margin-top: 42px; font-size: 12px; }
    .hero-copy h1 { font-size: clamp(42px, 3.6vw, 62px); }
    .subtitle { font-size: 16px; }
    .access-main { align-self: center; width: min(100%, 760px); max-width: none; margin: 0 auto; padding: 42px clamp(30px, 4vw, 64px); }
    .access-card { padding: clamp(30px, 3vw, 44px); }
    .detail-list div { grid-template-columns: minmax(135px, 33%) 1fr; align-items: baseline; gap: 18px; }
  }
  @media (prefers-reduced-motion: reduce) { .hero-art .orbit, .hero-art .trace, .hero-art .spark { animation: none; } }
