@media screen {
  :root {
    --launch-red: #c8102e;
    --launch-red-dark: #8f0d24;
    --launch-ink: #171c24;
    --launch-muted: #667085;
    --launch-canvas: #f2f4f7;
    --launch-line: #e4e7ec;
    --launch-panel: #ffffff;
    --launch-dark: #151a22;
    --launch-dark-soft: #202631;
    --bg: var(--launch-canvas);
    --panel: var(--launch-panel);
    --panel-strong: #fff;
    --ink: var(--launch-ink);
    --muted: var(--launch-muted);
    --line: var(--launch-line);
    --accent: var(--launch-red);
    --accent-dark: var(--launch-red-dark);
    --gold: var(--launch-red);
    --shadow: 0 20px 55px rgba(16, 24, 40, 0.08);
  }

  html {
    background: var(--launch-canvas);
  }

  body {
    color: var(--launch-ink);
    background:
      radial-gradient(circle at 10% -10%, rgba(200, 16, 46, 0.06), transparent 28%),
      var(--launch-canvas);
  }

  button,
  .file-button {
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(143, 13, 36, 0.16);
  }

  button:focus-visible,
  .file-button:focus-visible,
  input:focus-visible,
  select:focus-visible {
    outline: 3px solid rgba(200, 16, 46, 0.2);
    outline-offset: 3px;
  }

  select,
  input[type="text"],
  input[type="password"],
  input[type="month"],
  input[type="file"] {
    min-height: 48px;
    border-color: #d0d5dd;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition: border-color 160ms ease, box-shadow 160ms ease;
  }

  select:focus,
  input[type="text"]:focus,
  input[type="password"]:focus,
  input[type="month"]:focus {
    border-color: rgba(200, 16, 46, 0.58);
    box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.08);
  }

  .shell:not(.auth-experience-shell) {
    gap: 1.15rem;
    padding: 1.15rem;
  }

  .auth-shell:not(.auth-experience-shell) {
    background:
      radial-gradient(circle at 15% 10%, rgba(200, 16, 46, 0.08), transparent 28%),
      var(--launch-canvas);
  }

  .auth-shell:not(.auth-experience-shell) .auth-panel {
    width: min(560px, 100%);
    padding: clamp(1.4rem, 4vw, 2.25rem);
  }

  .auth-hidden-username {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .page-header,
  .hero,
  .card,
  .panel {
    border: 1px solid var(--launch-line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 36px rgba(16, 24, 40, 0.065);
    backdrop-filter: none;
  }

  .page-header {
    position: relative;
    z-index: 20;
    overflow: visible;
    border: 0;
    color: #fff;
    background:
      radial-gradient(circle at 85% -30%, rgba(200, 16, 46, 0.36), transparent 38%),
      linear-gradient(135deg, #171c24 0%, #222936 100%);
    box-shadow: 0 20px 45px rgba(16, 24, 40, 0.18);
  }

  .page-header::after {
    position: absolute;
    top: -80px;
    right: 18%;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    content: "";
    pointer-events: none;
  }

  .page-header-main {
    position: relative;
    z-index: 1;
    align-items: center;
    padding: 1.25rem 1.5rem;
  }

  .page-brand-lockup {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .page-brand-mark,
  .brand-monogram {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(145deg, #d7193f, #a70f2c);
    box-shadow: 0 14px 26px rgba(143, 13, 36, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: -0.04em;
  }

  .page-brand {
    gap: 0.18rem;
  }

  .page-brand .eyebrow {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.66rem;
    letter-spacing: 0.18em;
  }

  .page-brand h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.18rem, 2vw, 1.55rem);
    letter-spacing: 0.01em;
  }

  .page-brand-context {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
  }

  .workspace-status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.52rem 0.78rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    font-weight: 700;
  }

  .workspace-status span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #32d583;
    box-shadow: 0 0 0 4px rgba(50, 213, 131, 0.12);
  }

  .workspace-status strong {
    color: inherit;
    font-size: inherit;
    font-weight: 700;
  }

  .workspace-status.is-disconnected {
    color: #fecdd6;
    border-color: rgba(240, 68, 97, 0.24);
    background: rgba(200, 16, 46, 0.12);
  }

  .workspace-status.is-disconnected span {
    background: #f04461;
    box-shadow: 0 0 0 4px rgba(240, 68, 97, 0.12);
  }

  .workspace-status.is-checking span {
    background: #fdb022;
    box-shadow: 0 0 0 4px rgba(253, 176, 34, 0.12);
    animation: connection-status-pulse 1.2s ease-in-out infinite;
  }

  .page-nav-shell {
    position: relative;
    z-index: 1;
    gap: 0.75rem;
    padding: 0 1.15rem;
    border-top-color: rgba(255, 255, 255, 0.08);
    background: rgba(9, 12, 17, 0.3);
  }

  .page-nav {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .page-nav::-webkit-scrollbar {
    display: none;
  }

  .page-nav-link {
    min-height: 58px;
    flex: 0 0 auto;
    padding: 0.85rem 1rem;
    border: 0;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.62);
    background: transparent;
    box-shadow: none;
    font-size: 0.84rem;
  }

  .page-nav-link.frequent,
  .page-nav-link.frequent:hover,
  .page-nav-link.frequent.active {
    background: transparent;
  }

  .page-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.045);
  }

  .page-nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 -3px 0 var(--launch-red);
  }

  .team-switch-nav {
    flex: 0 0 auto;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.055);
  }

  .team-switch-nav .team-toggle {
    min-height: 38px;
    padding: 0.55rem 0.8rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
  }

  .team-switch-nav .team-toggle.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
    box-shadow: none;
  }

  .auth-user-chip {
    flex: 0 0 auto;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
  }

  .auth-user-role {
    color: #fda4b6;
    background: rgba(200, 16, 46, 0.18);
  }

  .content-tabbed {
    gap: 1rem;
  }

  .content-tabbed > .panel:first-of-type {
    min-height: 240px;
  }

  .panel {
    padding: clamp(1.15rem, 2.3vw, 1.75rem);
  }

  .eyebrow {
    color: var(--launch-red);
    letter-spacing: 0.13em;
  }

  .section-title h1,
  .section-title h2,
  .section-title h3 {
    letter-spacing: -0.025em;
  }

  .summary-grid div,
  .summary-grid-3 div {
    border: 1px solid #eaecf0;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff, #fafafa);
    box-shadow: none;
  }

  .summary-grid strong,
  .summary-grid-3 strong {
    color: #101828;
    font-size: clamp(1.35rem, 2.3vw, 1.9rem);
    letter-spacing: -0.04em;
  }

  .summary-grid span,
  .summary-grid-3 span {
    color: #667085;
    font-size: 0.78rem;
  }

  .ghost {
    border: 1px solid #d0d5dd;
    color: #344054;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  }

  .ghost:hover {
    border-color: #98a2b3;
    background: #f9fafb;
  }

  .backup-card {
    border-color: rgba(200, 16, 46, 0.16);
    background:
      radial-gradient(circle at 92% 12%, rgba(200, 16, 46, 0.08), transparent 34%),
      linear-gradient(135deg, #fff, #fcfcfd);
    box-shadow: 0 18px 42px rgba(16, 24, 40, 0.07);
  }

  /* Login */
  .auth-experience-shell {
    position: relative;
    display: block;
    min-height: 100svh;
    padding: 0;
    overflow: hidden;
    background: #10141b;
  }

  .auth-cinematic-transition,
  .workspace-cinematic-curtain {
    position: fixed;
    z-index: 1000;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
  }

  .auth-curtain,
  .workspace-curtain {
    position: absolute;
    top: 0;
    bottom: 0;
    width: calc(50% + 1px);
    will-change: transform;
  }

  .auth-curtain-left,
  .workspace-curtain-left {
    left: 0;
    background:
      radial-gradient(circle at 82% 50%, rgba(200, 16, 46, 0.42), transparent 42%),
      linear-gradient(135deg, #10141b 0%, #1b1c24 58%, #630d21 100%);
  }

  .auth-curtain-right,
  .workspace-curtain-right {
    right: 0;
    background:
      radial-gradient(circle at 18% 50%, rgba(200, 16, 46, 0.42), transparent 42%),
      linear-gradient(225deg, #10141b 0%, #1b1c24 58%, #630d21 100%);
  }

  .auth-light-seam,
  .workspace-light-seam {
    position: absolute;
    z-index: 2;
    inset: 0 auto 0 50%;
    width: 2px;
    opacity: 0;
    transform: translateX(-50%);
    background: linear-gradient(180deg, transparent 4%, rgba(255, 255, 255, 0.92) 36%, #fff 50%, rgba(232, 27, 65, 0.82) 64%, transparent 96%);
    box-shadow: 0 0 22px rgba(255, 255, 255, 0.64), 0 0 52px rgba(200, 16, 46, 0.46);
  }

  .auth-cinematic-core {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    display: grid;
    width: 104px;
    height: 104px;
    place-items: center;
    color: #fff;
    transform: translate(-50%, -50%);
    will-change: opacity, transform;
  }

  .auth-core-mark {
    position: relative;
    z-index: 1;
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(145deg, #d7193f, #8f0d24);
    box-shadow: 0 18px 48px rgba(200, 16, 46, 0.42);
    font-weight: 900;
    letter-spacing: -0.04em;
  }

  .auth-core-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.54);
    border-radius: 50%;
    box-shadow: 0 0 38px rgba(255, 255, 255, 0.22);
  }

  .is-success-transition .auth-cinematic-core {
    animation: auth-core-converge 560ms cubic-bezier(.2,.85,.2,1) both;
  }

  .is-success-transition .auth-curtain-left {
    animation: auth-curtain-close-left 380ms 180ms cubic-bezier(.65,0,.35,1) both;
  }

  .is-success-transition .auth-curtain-right {
    animation: auth-curtain-close-right 380ms 180ms cubic-bezier(.65,0,.35,1) both;
  }

  .is-success-transition .auth-light-seam {
    animation: auth-light-seam-close 380ms 180ms cubic-bezier(.65,0,.35,1) both;
  }

  .is-success-transition .auth-story,
  .is-success-transition .auth-form-stage {
    animation: auth-pane-converge 560ms cubic-bezier(.22,.8,.24,1) both;
    will-change: filter, opacity, transform;
  }

  .is-success-transition .auth-network {
    transform-origin: 100% 50%;
    animation: auth-network-converge 520ms cubic-bezier(.22,.8,.24,1) both;
  }

  .is-success-transition .auth-form-heading,
  .is-success-transition .auth-form-fields,
  .is-success-transition .auth-security-note {
    animation: auth-success-content-exit 380ms 100ms ease-in both;
  }

  .is-success-preparing .auth-form-heading,
  .is-success-preparing .auth-form-fields,
  .is-success-preparing .auth-security-note {
    opacity: 0;
    transform: translateY(-8px);
  }

  .auth-success-status {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    display: grid;
    justify-items: center;
    gap: 0.35rem;
    width: min(300px, calc(100% - 2rem));
    color: #101828;
    text-align: center;
    transform: translate(-50%, -50%);
    animation: auth-success-status-in 440ms 90ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .is-success-preparing .auth-success-status {
    animation: auth-success-status-confirmed 320ms cubic-bezier(.2,.8,.2,1) both;
  }

  .auth-success-status > span:first-child {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin-bottom: 0.55rem;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #12b76a, #078348);
    box-shadow: 0 16px 34px rgba(7, 131, 72, 0.26);
    font-size: 1.65rem;
    font-weight: 900;
  }

  .auth-success-status strong {
    font-size: 1.45rem;
  }

  .auth-success-status small {
    color: #667085;
    font-size: 0.82rem;
    font-weight: 700;
  }

  .auth-submit.is-success {
    background: linear-gradient(135deg, #12b76a, #078348);
    box-shadow: 0 14px 28px rgba(7, 131, 72, 0.2);
  }

  .auth-success-check {
    display: inline-grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    margin-right: 0.35rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
  }

  .workspace-cinematic-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1.15rem;
    min-width: 0;
  }

  .workspace-entering {
    overflow: hidden;
  }

  .workspace-entering .workspace-cinematic-content {
    animation: workspace-depth-enter 490ms cubic-bezier(.16,.84,.24,1) both;
    transform-origin: 50% 50%;
    will-change: filter, opacity, transform;
  }

  .workspace-entering .workspace-curtain-left {
    animation: workspace-curtain-open-left 490ms cubic-bezier(.65,0,.2,1) both;
  }

  .workspace-entering .workspace-curtain-right {
    animation: workspace-curtain-open-right 490ms cubic-bezier(.65,0,.2,1) both;
  }

  .workspace-entering .workspace-light-seam {
    animation: workspace-light-seam-open 490ms cubic-bezier(.65,0,.2,1) both;
  }

  .workspace-entering .page-header {
    animation: workspace-header-settle 360ms 90ms both;
  }

  .workspace-entering main > * {
    animation: workspace-section-rise 240ms both;
  }

  .workspace-entering main > :nth-child(1) {
    animation-delay: 150ms;
  }

  .workspace-entering main > :nth-child(2) {
    animation-delay: 200ms;
  }

  .workspace-entering main > :nth-child(3) {
    animation-delay: 250ms;
  }

  .auth-experience {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1.08fr) minmax(480px, 0.92fr);
    min-height: 100svh;
  }

  .auth-story {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    min-height: 100svh;
    padding: clamp(2rem, 5vw, 5rem);
    overflow: hidden;
    color: #fff;
    background:
      radial-gradient(circle at 15% 95%, rgba(200, 16, 46, 0.28), transparent 34%),
      radial-gradient(circle at 95% 10%, rgba(200, 16, 46, 0.18), transparent 25%),
      linear-gradient(145deg, #10141b 0%, #1a202a 65%, #151922 100%);
  }

  .auth-story::after {
    position: absolute;
    right: -1px;
    top: 7%;
    bottom: 7%;
    width: 1px;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.13), transparent);
    content: "";
  }

  .auth-network {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.45;
    animation: auth-network-drift 16s ease-in-out infinite alternate;
  }

  .auth-network svg {
    width: 100%;
    height: 100%;
  }

  .auth-network path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.11);
    stroke-width: 1;
    stroke-dasharray: 5 10;
    animation: auth-network-line 22s linear infinite;
  }

  .auth-network circle {
    fill: rgba(200, 16, 46, 0.72);
    stroke: rgba(255, 255, 255, 0.45);
    stroke-width: 1;
    transform-box: fill-box;
    transform-origin: center;
    animation: auth-node-pulse 4.8s ease-in-out infinite;
  }

  .auth-network circle:nth-of-type(2n) {
    animation-delay: -2.1s;
  }

  .auth-network circle:nth-of-type(3n) {
    animation-delay: -3.4s;
  }

  .auth-story-header,
  .auth-story-copy,
  .auth-story-proof {
    position: relative;
    z-index: 1;
  }

  .auth-story-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    animation: auth-content-in 620ms ease-out both;
  }

  .auth-story-header > div:last-child {
    display: grid;
    gap: 0.18rem;
  }

  .auth-story-header strong {
    font-size: 0.95rem;
    letter-spacing: 0.06em;
  }

  .auth-story-header span {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .auth-story-copy {
    width: min(680px, 92%);
    margin: auto 0;
    padding: clamp(3rem, 8vh, 7rem) 0;
    animation: auth-content-in 700ms 80ms ease-out both;
  }

  .auth-kicker {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 1.4rem;
    color: #fda4b6;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
  }

  .auth-kicker::before {
    width: 32px;
    height: 2px;
    background: var(--launch-red);
    content: "";
  }

  .auth-story-copy h1 {
    max-width: 720px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.5rem, 4.4vw, 4rem);
    font-weight: 820;
    line-height: 1.12;
    letter-spacing: -0.055em;
  }

  .auth-story-copy h1 span {
    display: block;
    white-space: nowrap;
  }

  .auth-story-copy > p:last-child {
    max-width: 590px;
    margin: 1.7rem 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: clamp(0.96rem, 1.4vw, 1.1rem);
    line-height: 1.8;
  }

  .auth-story-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
    font-weight: 700;
    animation: auth-content-in 760ms 150ms ease-out both;
  }

  .auth-story-proof span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .auth-story-proof i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f04461;
    box-shadow: 0 0 0 4px rgba(240, 68, 97, 0.1);
  }

  .auth-form-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    padding: clamp(2rem, 5vw, 5.5rem);
    background:
      radial-gradient(circle at 100% 0, rgba(200, 16, 46, 0.055), transparent 27%),
      #f8f9fb;
  }

  .auth-panel-premium {
    width: min(470px, 100%);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    animation: auth-panel-in 600ms 80ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .auth-mobile-brand {
    display: none;
  }

  .auth-form-heading {
    margin-bottom: 2rem;
  }

  .auth-form-heading .eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.66rem;
    letter-spacing: 0.2em;
  }

  .auth-form-heading h2 {
    margin: 0;
    color: #101828;
    font-size: clamp(2rem, 3.2vw, 2.65rem);
    line-height: 1.16;
    letter-spacing: -0.045em;
  }

  .auth-form-heading > p:last-child {
    margin: 0.85rem 0 0;
    color: #667085;
    line-height: 1.7;
  }

  .auth-form-fields {
    display: grid;
    gap: 1.15rem;
  }

  .auth-field {
    display: grid;
    gap: 0.55rem;
    color: #344054;
    font-size: 0.84rem;
    font-weight: 750;
  }

  .auth-field input {
    min-height: 54px;
    padding: 0 1rem;
    font-size: 0.95rem;
  }

  .password-field {
    position: relative;
    display: block;
  }

  .password-field input {
    padding-right: 4.8rem;
  }

  .password-toggle {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    min-height: 38px;
    padding: 0.45rem 0.7rem;
    border: 0;
    border-radius: 8px;
    color: #475467;
    background: transparent;
    box-shadow: none;
    font-size: 0.76rem;
  }

  .password-toggle:hover {
    color: #101828;
    background: #f2f4f7;
    transform: translateY(-50%);
  }

  .password-toggle,
  .password-toggle:hover {
    transform: translateY(-50%);
  }

  .caps-lock-status {
    min-height: 1.1em;
    color: #b54708;
    font-size: 0.72rem;
    font-weight: 700;
  }

  .auth-submit {
    width: 100%;
    min-height: 54px;
    margin-top: 0.2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #d31539, #a50e2c);
    box-shadow: 0 14px 28px rgba(143, 13, 36, 0.2);
  }

  .auth-security-note {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-top: 1.5rem;
    padding-top: 1.35rem;
    border-top: 1px solid #e4e7ec;
    color: #7a8495;
    font-size: 0.73rem;
    line-height: 1.6;
  }

  .auth-security-note svg {
    width: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: #98a2b3;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .auth-panel-premium .action-feedback {
    margin-bottom: 1.2rem;
    border-radius: 12px;
    background: #fff;
  }

  @keyframes auth-content-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes auth-panel-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes auth-network-drift {
    from { transform: scale(1) translate3d(0, 0, 0); }
    to { transform: scale(1.035) translate3d(-1%, 1%, 0); }
  }

  @keyframes auth-network-line {
    to { stroke-dashoffset: -180; }
  }

  @keyframes auth-node-pulse {
    0%, 100% { opacity: 0.45; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.2); }
  }

  @keyframes auth-core-converge {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(1.35); }
    24% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    72% { opacity: 1; transform: translate(-50%, -50%) scale(0.94); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.68); }
  }

  @keyframes auth-curtain-close-left {
    from { transform: translateX(-100%); }
    88%, 100% { transform: translateX(0); }
  }

  @keyframes auth-curtain-close-right {
    from { transform: translateX(100%); }
    88%, 100% { transform: translateX(0); }
  }

  @keyframes auth-light-seam-close {
    0%, 58% { opacity: 0; }
    82% { opacity: 1; }
    100% { opacity: 0; }
  }

  @keyframes auth-pane-converge {
    0%, 24% { opacity: 1; filter: none; transform: scale(1); }
    100% { opacity: 0.18; filter: brightness(0.72) saturate(0.72) blur(2px); transform: scale(.96); }
  }

  @keyframes auth-network-converge {
    0%, 18% { opacity: 0.45; transform: scale(1) translate3d(0, 0, 0); }
    100% { opacity: 0; transform: scale(.16) translate3d(38%, 0, 0); }
  }

  @keyframes auth-success-content-exit {
    to { opacity: 0; transform: translateY(-10px); }
  }

  @keyframes auth-success-status-in {
    from { opacity: 0; transform: translate(-50%, calc(-50% + 18px)) scale(0.94); }
    45%, 82% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    to { opacity: 0; transform: translate(-50%, calc(-50% - 8px)) scale(0.99); }
  }

  @keyframes auth-success-status-confirmed {
    from { opacity: 0; transform: translate(-50%, calc(-50% + 14px)) scale(.96); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  }

  @keyframes workspace-curtain-open-left {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
  }

  @keyframes workspace-curtain-open-right {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
  }

  @keyframes workspace-light-seam-open {
    0% { opacity: 0; }
    18% { opacity: 1; }
    52%, 100% { opacity: 0; }
  }

  @keyframes workspace-depth-enter {
    from { opacity: 0.86; filter: blur(3px) brightness(0.9); transform: scale(.94) translateY(12px); }
    to { opacity: 1; filter: none; transform: scale(1) translateY(0); }
  }

  @keyframes workspace-header-settle {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes workspace-section-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes auth-curtain-close-top {
    from { transform: translateY(-100%); }
    88%, 100% { transform: translateY(0); }
  }

  @keyframes auth-curtain-close-bottom {
    from { transform: translateY(100%); }
    88%, 100% { transform: translateY(0); }
  }

  @keyframes workspace-curtain-open-top {
    from { transform: translateY(0); }
    to { transform: translateY(-100%); }
  }

  @keyframes workspace-curtain-open-bottom {
    from { transform: translateY(0); }
    to { transform: translateY(100%); }
  }

  @keyframes auth-reduced-fade {
    from { opacity: 1; }
    to { opacity: 0; }
  }

  @keyframes workspace-reduced-fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes connection-status-pulse {
    50% { opacity: 0.45; }
  }

  @media (max-width: 1180px) {
    .auth-experience {
      grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
    }

    .auth-story-copy h1 {
      font-size: clamp(2.35rem, 4.15vw, 3.35rem);
    }

    .page-nav-shell {
      flex-wrap: wrap;
      padding-bottom: 0.75rem;
    }

    .page-nav {
      flex-basis: 100%;
      order: 3;
    }
  }

  @media (min-width: 1181px) {
    .page-nav-link {
      padding-right: 0.6rem;
      padding-left: 0.6rem;
      font-size: 0.8rem;
    }
  }

  @media (max-width: 820px) {
    .auth-experience {
      grid-template-columns: 1fr;
      background: #f8f9fb;
    }

    .auth-story {
      min-height: auto;
      padding: 1.35rem 1.35rem 2.2rem;
    }

    .auth-network,
    .auth-story-proof,
    .auth-story-header > div:last-child span {
      display: none;
    }

    .auth-story-header .brand-monogram {
      width: 46px;
      height: 46px;
      border-radius: 14px;
    }

    .auth-story-copy {
      width: 100%;
      margin: 0;
      padding: 2.5rem 0 0;
    }

    .auth-story-copy h1 {
      font-size: clamp(2rem, 8.4vw, 3.15rem);
      line-height: 1.14;
    }

    .auth-story-copy h1 span {
      white-space: normal;
    }

    .auth-story-copy > p:last-child {
      margin-top: 1rem;
      font-size: 0.9rem;
      line-height: 1.65;
    }

    .auth-kicker {
      margin-bottom: 0.9rem;
      font-size: 0.67rem;
    }

    .auth-form-stage {
      place-items: start stretch;
      padding: 2rem 1.35rem 3rem;
    }

    .auth-panel-premium {
      width: 100%;
      max-width: 520px;
      margin: 0 auto;
    }

    .page-header-main {
      align-items: flex-start;
    }

    .workspace-status {
      display: none;
    }

    .page-nav-shell {
      align-items: stretch;
    }

    .page-nav-link {
      width: auto;
      min-width: max-content;
      min-height: 48px;
      justify-content: center;
      padding: 0.75rem 1rem;
    }

    .team-switch-nav,
    .auth-user-chip {
      max-width: 100%;
    }
  }

  @media (max-width: 560px) {
    .auth-curtain,
    .workspace-curtain {
      right: auto;
      left: 0;
      width: 100%;
      height: calc(50% + 1px);
    }

    .auth-curtain-left,
    .workspace-curtain-left {
      top: 0;
      bottom: auto;
    }

    .auth-curtain-right,
    .workspace-curtain-right {
      top: auto;
      bottom: 0;
    }

    .auth-light-seam,
    .workspace-light-seam {
      inset: 50% 0 auto;
      width: 100%;
      height: 2px;
      transform: translateY(-50%);
      background: linear-gradient(90deg, transparent 4%, rgba(255, 255, 255, 0.92) 36%, #fff 50%, rgba(232, 27, 65, 0.82) 64%, transparent 96%);
    }

    .is-success-transition .auth-curtain-left {
      animation-name: auth-curtain-close-top;
    }

    .is-success-transition .auth-curtain-right {
      animation-name: auth-curtain-close-bottom;
    }

    .workspace-entering .workspace-curtain-left {
      animation-name: workspace-curtain-open-top;
    }

    .workspace-entering .workspace-curtain-right {
      animation-name: workspace-curtain-open-bottom;
    }

    .shell:not(.auth-experience-shell) {
      padding: 0.65rem;
    }

    .auth-story {
      padding: 1.1rem 1rem 1.75rem;
    }

    .auth-story-copy {
      padding-top: 1.85rem;
    }

    .auth-story-copy h1 {
      font-size: clamp(1.9rem, 9vw, 2.45rem);
    }

    .auth-story-copy > p:last-child {
      display: none;
    }

    .auth-form-stage {
      padding: 1.7rem 1rem 2.5rem;
    }

    .auth-form-heading {
      margin-bottom: 1.45rem;
    }

    .auth-form-heading h2 {
      font-size: 1.85rem;
    }

    .page-header-main {
      padding: 1rem;
    }

    .page-brand-mark {
      width: 46px;
      height: 46px;
      border-radius: 14px;
    }

    .page-brand-context {
      display: none;
    }

    .page-nav-shell {
      padding: 0 0.7rem 0.7rem;
    }

    .auth-user-chip {
      width: 100%;
      margin-left: 0;
      justify-content: space-between;
    }

    .auth-user-name {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .panel {
      padding: 1rem;
      border-radius: 16px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .is-success-transition .auth-story,
    .is-success-transition .auth-form-stage,
    .is-success-transition .auth-form-heading,
    .is-success-transition .auth-form-fields,
    .is-success-transition .auth-security-note,
    .auth-success-status,
    .is-success-transition .auth-cinematic-core,
    .is-success-transition .auth-curtain,
    .is-success-transition .auth-light-seam,
    .workspace-entering .workspace-curtain,
    .workspace-entering .workspace-light-seam,
    .workspace-entering .workspace-cinematic-content,
    .workspace-entering .page-header,
    .workspace-entering main > *,
    .auth-network,
    .auth-network path,
    .auth-network circle,
    .auth-story-header,
    .auth-story-copy,
    .auth-story-proof,
    .auth-panel-premium {
      animation: none !important;
    }

    .auth-cinematic-transition,
    .workspace-cinematic-curtain {
      display: none;
    }

    .is-success-transition .auth-experience {
      animation: auth-reduced-fade 40ms linear both !important;
    }

    .workspace-entering {
      animation: workspace-reduced-fade 40ms linear both !important;
    }

    .workspace-status.is-checking span {
      animation: none !important;
    }
  }
}
