      :root {
        /* Color system — Archive + Lightbox */
        --bg-0: #f6f6f1;
        --bg-1: #f0f0ea;
        --paper-0: rgba(252, 252, 248, 0.92);
        --paper-1: rgba(250, 250, 245, 0.82);
        --paper-2: rgba(248, 248, 241, 0.64);
        --ink-0: #0e1116;
        --ink-1: rgba(14, 17, 22, 0.72);
        --ink-2: rgba(14, 17, 22, 0.22);
        --ink-3: rgba(14, 17, 22, 0.12);
        --stage-0: #0b0f15;
        --stage-1: #101a26;
        --blue: #214dff;
        --cyan: #16c6ff;
        --red: #df2a2a;
        --amber: #ffb020;
        --leaf: #0f8a55;

        --shadow-1: 0 24px 70px rgba(8, 10, 14, 0.16);
        --shadow-2: 0 14px 30px rgba(8, 10, 14, 0.12);
        --shadow-3: 0 10px 18px rgba(8, 10, 14, 0.1);
        --stroke: 1px solid rgba(14, 17, 22, 0.12);
        --stroke-strong: 1px solid rgba(14, 17, 22, 0.18);

        --radius-xl: 24px;
        --radius-lg: 20px;
        --radius-md: 14px;
        --radius-sm: 10px;
        --radius-xs: 8px;
        --ease-out: cubic-bezier(0.2, 0.9, 0.1, 1);

        --mono: ui-monospace, "SF Mono", "Menlo", "Monaco", "Cascadia Mono", "Consolas", monospace;
        --body: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI",
          sans-serif;
        --display: "Avenir Next", "Avenir", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;

        /* Weight tuning — elegant, not heavy */
        --w-body: 400;
        --w-ui: 500;
        --w-strong: 600;
        --w-display: 620;
        --w-mono: 540;

        --ls-ui: 0.004em;
        --ls-display: 0.002em;
      }

      * {
        box-sizing: border-box;
      }

      html,
      body {
        height: 100%;
      }

      body {
        margin: 0;
        color: var(--ink-0);
        font-family: var(--body);
        font-weight: var(--w-body);
        line-height: 1.52;
        letter-spacing: 0.001em;
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        background:
          radial-gradient(1200px 900px at 12% 16%, rgba(33, 77, 255, 0.12), transparent 60%),
          radial-gradient(1000px 900px at 82% 28%, rgba(22, 198, 255, 0.11), transparent 58%),
          radial-gradient(1200px 1000px at 55% 100%, rgba(255, 176, 32, 0.12), transparent 62%),
          linear-gradient(180deg, var(--bg-0), var(--bg-1));
        overflow-x: hidden;
      }

      body::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        opacity: 0.55;
        mix-blend-mode: multiply;
        background:
          linear-gradient(90deg, rgba(14, 17, 22, 0.05) 1px, transparent 1px),
          linear-gradient(0deg, rgba(14, 17, 22, 0.05) 1px, transparent 1px);
        background-size: 26px 26px;
      }

      body::after {
        content: "";
        position: fixed;
        inset: -60px;
        pointer-events: none;
        opacity: 0.16;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='280' height='280' filter='url(%23n)' opacity='.95'/%3E%3C/svg%3E");
        background-size: 280px 280px;
        mix-blend-mode: overlay;
        transform: rotate(-0.6deg);
      }

      a {
        color: inherit;
        text-decoration-thickness: 1px;
        text-underline-offset: 3px;
      }

      strong {
        font-weight: var(--w-strong);
      }

      .mono {
        font-family: var(--mono);
        font-weight: var(--w-mono);
        font-variant-numeric: tabular-nums;
        font-feature-settings: "tnum" 1;
      }

      .shell {
        min-height: 100%;
        display: grid;
        grid-template-rows: auto 1fr;
      }

      .topbar {
        position: sticky;
        top: 0;
        z-index: 30;
        padding: 14px 18px 10px;
        background: linear-gradient(180deg, rgba(246, 246, 241, 0.92), rgba(246, 246, 241, 0.72));
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(14, 17, 22, 0.1);
      }

      .topbar-inner {
        max-width: 1240px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        grid-template-areas: "brand nav actions";
        align-items: center;
        gap: 12px;
      }

      .brand {
        grid-area: brand;
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
      }

      .mark {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background:
          radial-gradient(70% 70% at 30% 30%, rgba(255, 255, 255, 0.7), transparent 60%),
          linear-gradient(145deg, rgba(33, 77, 255, 0.18), rgba(22, 198, 255, 0.1)),
          linear-gradient(180deg, rgba(252, 252, 248, 0.9), rgba(248, 248, 241, 0.6));
        border: 1px solid rgba(14, 17, 22, 0.14);
        box-shadow: 0 16px 34px rgba(8, 10, 14, 0.12);
        display: grid;
        place-items: center;
        position: relative;
        overflow: hidden;
      }

      .mark svg {
        width: 28px;
        height: 28px;
      }

      .mark::after {
        content: "";
        position: absolute;
        inset: 10px;
        border-radius: 8px;
        border: 1px dashed rgba(14, 17, 22, 0.18);
        opacity: 0.75;
        pointer-events: none;
      }

      .wordmark {
        display: grid;
        line-height: 1.05;
      }

      .wordmark strong {
        font-family: var(--display);
        font-weight: var(--w-display);
        font-size: 17px;
        letter-spacing: var(--ls-display);
      }

      .wordmark span {
        font-family: var(--mono);
        font-size: 12px;
        color: var(--ink-1);
      }

      .nav {
        grid-area: nav;
        justify-self: center;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px;
        border: 1px solid rgba(14, 17, 22, 0.14);
        border-radius: 999px;
        background: rgba(252, 252, 248, 0.7);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
        max-width: 100%;
      }

      .nav button {
        position: relative;
        border: 0;
        background: transparent;
        padding: 10px 12px;
        border-radius: 999px;
        color: var(--ink-1);
        cursor: pointer;
        font-weight: var(--w-ui);
        letter-spacing: var(--ls-ui);
        transition: transform 160ms var(--ease-out), background 160ms var(--ease-out), color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
        display: inline-flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
      }

      .nav button svg {
        width: 16px;
        height: 16px;
        opacity: 0.75;
      }

      .nav button:hover {
        transform: translateY(-1px);
        background: rgba(14, 17, 22, 0.06);
        color: var(--ink-0);
      }

      .nav button[aria-current="page"] {
        background: linear-gradient(165deg, rgba(33, 77, 255, 0.18), rgba(22, 198, 255, 0.1));
        color: var(--ink-0);
        box-shadow: 0 16px 34px rgba(33, 77, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
      }

      html[data-authed="0"] .nav button[data-requires="auth"] {
        color: rgba(14, 17, 22, 0.52);
        opacity: 0.78;
      }

      html[data-authed="0"] .nav button[data-requires="auth"]::after {
        content: "";
        position: absolute;
        top: 6px;
        right: 8px;
        width: 12px;
        height: 12px;
        opacity: 0.52;
        pointer-events: none;
        background: center / 12px 12px no-repeat
          url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230e1116' d='M17 10V8a5 5 0 0 0-10 0v2h10Zm-12 0V8a7 7 0 0 1 14 0v2h1a1 1 0 0 1 1 1v9a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3v-9a1 1 0 0 1 1-1h1Zm0 2v8a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-8H5Z'/%3E%3C/svg%3E");
      }

      html[data-authed="0"] .nav button[data-requires="auth"]:hover::after {
        opacity: 0.78;
      }

      html[data-authed="0"] .nav button[data-requires="auth"]:hover {
        transform: translateY(0);
        background: rgba(14, 17, 22, 0.04);
      }

      .top-actions {
        grid-area: actions;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 12px;
        min-width: 0;
        flex-wrap: nowrap;
      }

      .menu {
        position: relative;
        display: inline-flex;
        align-items: center;
      }

      .menu-pop {
        position: absolute;
        right: 0;
        top: calc(100% + 10px);
        min-width: 210px;
        padding: 8px;
        border-radius: 16px;
        border: 1px solid rgba(14, 17, 22, 0.14);
        background:
          radial-gradient(900px 340px at 20% 10%, rgba(33, 77, 255, 0.12), transparent 62%),
          radial-gradient(800px 380px at 90% 26%, rgba(255, 176, 32, 0.1), transparent 60%),
          linear-gradient(180deg, rgba(252, 252, 248, 0.98), rgba(248, 248, 241, 0.86));
        box-shadow: var(--shadow-2);
        transform: translateY(-6px) scale(0.98);
        opacity: 0;
        pointer-events: none;
        transition: transform 160ms var(--ease-out), opacity 160ms var(--ease-out);
        z-index: 60;
      }

      /* Hover bridge: prevents the menu from collapsing when moving the cursor
         from the trigger button to the floating panel. */
      .menu-pop::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -12px;
        height: 12px;
        background: transparent;
      }

      html[data-authed="1"] .menu:hover .menu-pop,
      html[data-authed="1"] .menu:focus-within .menu-pop,
      html[data-authed="1"] .menu.is-open .menu-pop {
        transform: translateY(0) scale(1);
        opacity: 1;
        pointer-events: auto;
      }

      html[data-authed="0"] #creditsMenu .menu-pop,
      html[data-authed="0"] #accountMenu .menu-pop {
        display: none;
      }

      .menu-item {
        width: 100%;
        border: 1px solid rgba(14, 17, 22, 0.1);
        background: rgba(252, 252, 248, 0.7);
        border-radius: 12px;
        padding: 10px 10px;
        cursor: pointer;
        text-align: left;
        font-weight: var(--w-strong);
        letter-spacing: var(--ls-ui);
        transition: transform 160ms var(--ease-out), background 160ms var(--ease-out), border-color 160ms var(--ease-out);
      }

      .menu-item + .menu-item {
        margin-top: 8px;
      }

      .menu-item:hover {
        transform: translateY(-1px);
        background: rgba(14, 17, 22, 0.05);
        border-color: rgba(14, 17, 22, 0.14);
      }

      .menu-item.danger {
        border-color: rgba(223, 42, 42, 0.18);
        background: rgba(223, 42, 42, 0.06);
      }

      .menu-item.danger:hover {
        border-color: rgba(223, 42, 42, 0.28);
        background: rgba(223, 42, 42, 0.09);
      }

      .badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
        border-radius: 999px;
        border: 1px solid rgba(14, 17, 22, 0.12);
        background: rgba(252, 252, 248, 0.64);
        font-family: var(--mono);
        font-size: 11px;
        color: var(--ink-1);
      }

      .badge strong {
        font-family: var(--mono);
        font-weight: var(--w-mono);
        color: var(--ink-0);
      }

      .member-card {
        appearance: none;
        -webkit-appearance: none;
        text-align: left;
        font: inherit;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 999px;
        border: 1px solid rgba(14, 17, 22, 0.14);
        background:
          radial-gradient(70% 110% at 20% 20%, rgba(33, 77, 255, 0.12), transparent 55%),
          linear-gradient(180deg, rgba(252, 252, 248, 0.86), rgba(248, 248, 241, 0.68));
        box-shadow: 0 14px 30px rgba(8, 10, 14, 0.1);
        cursor: pointer;
        min-width: 0;
        justify-content: space-between;
        transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), border-color 160ms var(--ease-out);
      }

      .member-card:hover {
        transform: translateY(-1px);
      }

      .member-card:active {
        transform: translateY(0);
      }

      .member-card:focus-visible,
      .credits-pill:focus-visible {
        outline: none;
        box-shadow: 0 0 0 4px rgba(33, 77, 255, 0.14), var(--shadow-3);
      }

      .account-pill .account-meta {
        min-width: 0;
        flex: 1 1 auto;
        display: grid;
        gap: 4px;
        line-height: 1.1;
      }

      .account-pill .account-top {
        display: inline-flex;
        align-items: center;
        gap: 8px;
      }

      html[data-authed="0"] .account-pill .account-top {
        display: none;
      }

      .account-role {
        padding: 3px 7px;
        border-radius: 999px;
        border: 1px solid rgba(14, 17, 22, 0.12);
        background: rgba(252, 252, 248, 0.68);
        color: rgba(14, 17, 22, 0.68);
        font-size: 11px;
        letter-spacing: 0.08em;
      }

      .account-role[data-role="admin"] {
        border-color: rgba(223, 42, 42, 0.22);
        background: rgba(223, 42, 42, 0.06);
        color: rgba(223, 42, 42, 0.84);
      }

      .member-card .label {
        font-size: 12px;
        color: var(--ink-1);
      }

      .member-card .id {
        font-family: var(--mono);
        font-weight: var(--w-mono);
        letter-spacing: 0.08em;
        max-width: 20ch;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: rgba(14, 17, 22, 0.86);
      }

      .member-card .barcode {
        width: 42px;
        height: 18px;
        flex: 0 0 auto;
        border-radius: 6px;
        border: 1px solid rgba(14, 17, 22, 0.14);
        background: repeating-linear-gradient(90deg, rgba(14, 17, 22, 0.7) 0px, rgba(14, 17, 22, 0.7) 2px, transparent 2px, transparent 4px);
        opacity: 0.6;
      }

      .btn {
        border: 0;
        border-radius: 12px;
        padding: 10px 12px;
        cursor: pointer;
        font-weight: var(--w-strong);
        letter-spacing: var(--ls-ui);
        transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background 160ms var(--ease-out);
        white-space: nowrap;
      }

      @media (max-width: 1040px) {
        .topbar-inner {
          grid-template-columns: minmax(0, 1fr) auto;
          grid-template-areas:
            "brand actions"
            "nav nav";
          align-items: center;
        }

        .nav {
          justify-self: start;
          overflow-x: auto;
          -webkit-overflow-scrolling: touch;
          scrollbar-width: none;
        }

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

      @media (max-width: 680px) {
        .wordmark span {
          display: none;
        }

        .member-card .label,
        .member-card .barcode,
        .credits-label {
          display: none;
        }

        .credits-pill {
          min-width: 74px;
          padding: 8px 10px;
        }
      }

      .credits-pill {
        cursor: pointer;
        user-select: none;
        white-space: nowrap;
        min-width: 104px;
        justify-content: space-between;
      }

      .credits-label {
        white-space: nowrap;
      }

      html[data-authed="0"] .credits-pill {
        cursor: pointer;
        opacity: 0.88;
      }

      .view[data-view="credits"].is-recharge .preset[data-buy] {
        box-shadow: 0 0 0 6px rgba(255, 176, 32, 0.14), 0 24px 70px rgba(255, 176, 32, 0.12);
        transform: translateY(-2px);
      }

      /* Profile */
      .profile-hero {
        align-items: stretch;
      }

      .profile-idcard {
        display: grid;
        grid-template-columns: 92px 1fr;
        gap: 14px;
        align-items: start;
        min-width: 0;
      }

      .profile-avatar {
        width: 92px;
        height: 92px;
        border-radius: 26px;
        border: 1px solid rgba(14, 17, 22, 0.14);
        background:
          radial-gradient(70% 70% at 30% 30%, rgba(255, 255, 255, 0.7), transparent 60%),
          linear-gradient(145deg, rgba(33, 77, 255, 0.22), rgba(22, 198, 255, 0.14)),
          linear-gradient(180deg, rgba(252, 252, 248, 0.9), rgba(248, 248, 241, 0.64));
        box-shadow: 0 18px 38px rgba(8, 10, 14, 0.12);
        display: grid;
        place-items: center;
        font-family: var(--display);
        font-weight: 760;
        letter-spacing: var(--ls-display);
        color: rgba(14, 17, 22, 0.86);
        font-size: 34px;
        position: relative;
        overflow: hidden;
      }

      .profile-avatar::after {
        content: "";
        position: absolute;
        inset: 14px;
        border-radius: 16px;
        border: 1px dashed rgba(14, 17, 22, 0.18);
        opacity: 0.72;
        pointer-events: none;
      }

      .profile-idmeta {
        min-width: 0;
      }

      .profile-lines {
        margin-top: 14px;
        display: grid;
        gap: 10px;
      }

      .profile-role {
        display: inline-flex;
        align-items: center;
        padding: 4px 8px;
        border-radius: 999px;
        border: 1px solid rgba(14, 17, 22, 0.12);
        background: rgba(252, 252, 248, 0.72);
        color: rgba(14, 17, 22, 0.68);
        letter-spacing: 0.08em;
        font-size: 11px;
      }

      .profile-role.is-admin {
        border-color: rgba(223, 42, 42, 0.22);
        background: rgba(223, 42, 42, 0.06);
        color: rgba(223, 42, 42, 0.84);
      }

      .profile-side {
        min-width: 0;
      }

      @media (max-width: 860px) {
        .profile-hero {
          grid-template-columns: 1fr;
        }

        .profile-idcard {
          grid-template-columns: 74px 1fr;
        }

        .profile-avatar {
          width: 74px;
          height: 74px;
          border-radius: 22px;
          font-size: 28px;
        }
      }

      .btn:hover {
        transform: translateY(-1px);
      }

      .btn:active {
        transform: translateY(0);
      }

      .btn-ghost {
        background: rgba(14, 17, 22, 0.05);
        border: 1px solid rgba(14, 17, 22, 0.12);
      }

      .btn-ghost:hover {
        background: rgba(14, 17, 22, 0.08);
      }

      .btn-primary {
        color: rgba(252, 252, 248, 0.98);
        border: 1px solid rgba(33, 77, 255, 0.34);
        background:
          radial-gradient(120px 90px at 22% 18%, rgba(33, 77, 255, 0.22), transparent 60%),
          radial-gradient(180px 120px at 80% 28%, rgba(22, 198, 255, 0.14), transparent 62%),
          linear-gradient(180deg, rgba(16, 26, 38, 0.98), rgba(11, 15, 21, 0.98));
        box-shadow: 0 18px 44px rgba(11, 15, 21, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
        position: relative;
        overflow: hidden;
        transition:
          transform 160ms var(--ease-out),
          box-shadow 160ms var(--ease-out),
          background 160ms var(--ease-out),
          border-color 160ms var(--ease-out);
      }

      .btn-primary::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        opacity: 0.9;
        background:
          linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.12) 50%, transparent 62%),
          radial-gradient(260px 160px at 18% 0%, rgba(33, 77, 255, 0.16), transparent 60%);
        transform: translateX(-26%);
        transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out);
      }

      .btn-primary::after {
        content: "";
        position: absolute;
        left: 12px;
        bottom: 10px;
        width: 28px;
        height: 2px;
        border-radius: 999px;
        background: linear-gradient(90deg, rgba(33, 77, 255, 0.9), rgba(22, 198, 255, 0.42));
        opacity: 0.85;
        pointer-events: none;
      }

      .btn-primary:hover {
        border-color: rgba(33, 77, 255, 0.52);
        box-shadow: 0 22px 54px rgba(11, 15, 21, 0.26), 0 14px 34px rgba(33, 77, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.1);
      }

      .btn-primary:hover::before {
        transform: translateX(-10%);
        opacity: 0.98;
      }

      .btn-primary:active {
        box-shadow: 0 14px 34px rgba(11, 15, 21, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
      }

      .views {
        max-width: 1240px;
        width: 100%;
        margin: 0 auto;
        padding: 18px 18px 60px;
      }

      .view {
        display: none;
        animation: viewIn 420ms var(--ease-out) both;
      }

      .view.is-active {
        display: block;
      }

      @keyframes viewIn {
        from {
          opacity: 0;
          transform: translateY(10px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .hero {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 24px;
        align-items: start;
        padding: 22px;
        border-radius: var(--radius-xl);
        border: 1px solid rgba(14, 17, 22, 0.14);
        background:
          radial-gradient(900px 520px at 16% 18%, rgba(33, 77, 255, 0.14), transparent 60%),
          radial-gradient(800px 520px at 82% 26%, rgba(22, 198, 255, 0.12), transparent 62%),
          linear-gradient(180deg, rgba(252, 252, 248, 0.86), rgba(248, 248, 241, 0.66));
        box-shadow: var(--shadow-1);
        position: relative;
        overflow: hidden;
      }

      .hero::after {
        content: "";
        position: absolute;
        right: 18px;
        bottom: 18px;
        width: 220px;
        height: 220px;
        border-radius: 999px;
        border: 2px solid rgba(223, 42, 42, 0.22);
        background: radial-gradient(circle at 30% 30%, rgba(223, 42, 42, 0.08), transparent 60%);
        transform: rotate(-10deg);
        pointer-events: none;
      }

      .hero > * {
        position: relative;
        z-index: 1;
      }

      h1 {
        margin: 0;
        font-family: var(--display);
        font-weight: var(--w-display);
        font-size: 44px;
        letter-spacing: var(--ls-display);
        line-height: 1.05;
      }

      .lede {
        margin: 14px 0 18px;
        color: var(--ink-1);
        font-size: 15px;
        max-width: 62ch;
      }

      .pill-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin: 14px 0 20px;
      }

      .pill {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 9px 10px;
        border-radius: 999px;
        border: 1px dashed rgba(14, 17, 22, 0.22);
        background: rgba(252, 252, 248, 0.7);
        font-size: 12px;
        color: var(--ink-1);
      }

      .pill i {
        font-family: var(--mono);
        font-style: normal;
        color: var(--ink-0);
        letter-spacing: 0.02em;
      }

      .hero-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
      }

      .kbd {
        font-family: var(--mono);
        font-size: 11px;
        font-weight: var(--w-mono);
        padding: 7px 9px;
        border-radius: 9px;
        border: 1px solid rgba(14, 17, 22, 0.14);
        background: rgba(252, 252, 248, 0.76);
        font-variant-numeric: tabular-nums;
        font-feature-settings: "tnum" 1;
      }

      .mock {
        border-radius: 20px;
        border: 1px solid rgba(14, 17, 22, 0.14);
        background: rgba(252, 252, 248, 0.74);
        box-shadow: var(--shadow-2);
        overflow: hidden;
      }

      .mock-header {
        padding: 10px 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid rgba(14, 17, 22, 0.1);
        background: linear-gradient(180deg, rgba(252, 252, 248, 0.88), rgba(248, 248, 241, 0.68));
        font-family: var(--mono);
        font-size: 12px;
        color: var(--ink-1);
      }

      .mock-body {
        aspect-ratio: 4 / 3;
        padding: 14px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
      }

      .mock-card {
        border-radius: 14px;
        border: 1px solid rgba(14, 17, 22, 0.14);
        background:
          radial-gradient(70% 70% at 30% 25%, rgba(255, 255, 255, 0.3), transparent 60%),
          linear-gradient(165deg, rgba(33, 77, 255, 0.12), rgba(22, 198, 255, 0.08));
        position: relative;
        overflow: hidden;
      }

      .mock-card::after {
        content: "";
        position: absolute;
        inset: 10px;
        border-radius: 10px;
        border: 1px dashed rgba(14, 17, 22, 0.22);
        opacity: 0.9;
      }

      .section-grid {
        margin-top: 18px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
      }

      .feature {
        padding: 16px 16px 14px;
        border-radius: 16px;
        border: 1px solid rgba(14, 17, 22, 0.12);
        background: rgba(252, 252, 248, 0.72);
        box-shadow: 0 16px 34px rgba(8, 10, 14, 0.08);
        position: relative;
        overflow: hidden;
      }

      .feature h3 {
        margin: 0 0 8px;
        font-family: var(--display);
        font-weight: var(--w-strong);
        font-size: 16px;
        letter-spacing: var(--ls-display);
      }

      .feature p {
        margin: 0;
        font-size: 13px;
        color: var(--ink-1);
      }

      .feature .tag {
        font-family: var(--mono);
        font-size: 11px;
        color: rgba(33, 77, 255, 0.95);
        margin-top: 10px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
      }

      .studio-frame {
        margin-top: 22px;
        border-radius: var(--radius-xl);
        border: 1px solid rgba(14, 17, 22, 0.14);
        background: rgba(252, 252, 248, 0.72);
        box-shadow: var(--shadow-1);
        overflow: hidden;
      }

      .studio-top {
        padding: 12px 14px;
        border-bottom: 1px solid rgba(14, 17, 22, 0.1);
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        background: linear-gradient(180deg, rgba(252, 252, 248, 0.9), rgba(248, 248, 241, 0.72));
      }

      .studio-top strong {
        font-family: var(--display);
        letter-spacing: var(--ls-display);
        font-weight: var(--w-display);
      }

      .subtle {
        color: var(--ink-1);
        font-size: 12px;
      }

      .studio-layout {
        display: grid;
        grid-template-columns: 340px 1fr 360px;
        min-height: 660px;
      }

      .panel {
        padding: 14px;
        border-right: 1px solid rgba(14, 17, 22, 0.1);
      }

      .panel-right {
        border-right: 0;
        border-left: 1px solid rgba(14, 17, 22, 0.1);
      }

      .panel h2 {
        margin: 0 0 10px;
        font-family: var(--display);
        font-weight: var(--w-strong);
        font-size: 14px;
        letter-spacing: var(--ls-display);
      }

      .workflow-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
      }

      .workflow-tabs button {
        border: 1px solid rgba(14, 17, 22, 0.12);
        background: rgba(252, 252, 248, 0.74);
        border-radius: 14px;
        padding: 10px 10px;
        cursor: pointer;
        text-align: left;
        transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), border-color 160ms var(--ease-out);
        position: relative;
        overflow: hidden;
      }

      .workflow-tabs button:hover {
        transform: translateY(-1px);
        box-shadow: 0 16px 30px rgba(8, 10, 14, 0.08);
        border-color: rgba(14, 17, 22, 0.18);
      }

      .workflow-tabs button[aria-pressed="true"] {
        background:
          radial-gradient(70% 90% at 20% 10%, rgba(33, 77, 255, 0.14), transparent 60%),
          linear-gradient(165deg, rgba(33, 77, 255, 0.12), rgba(22, 198, 255, 0.08));
        border-color: rgba(33, 77, 255, 0.34);
        box-shadow: 0 18px 34px rgba(33, 77, 255, 0.14);
      }

      .workflow-title {
        font-weight: var(--w-strong);
        font-size: 13px;
        letter-spacing: var(--ls-ui);
        margin-bottom: 3px;
      }

      .workflow-hint {
        color: var(--ink-1);
        font-size: 11px;
      }

      .field {
        margin-top: 12px;
      }

      .field label {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 8px;
        font-size: 12px;
        color: var(--ink-1);
      }

      .field label strong {
        font-family: var(--display);
        font-weight: var(--w-strong);
        letter-spacing: var(--ls-display);
        color: var(--ink-0);
        font-size: 13px;
      }

      .field textarea,
      .field input[type="text"],
      .field select {
        width: 100%;
        border-radius: 14px;
        border: 1px solid rgba(14, 17, 22, 0.14);
        background: rgba(252, 252, 248, 0.82);
        padding: 12px 12px;
        font-family: var(--body);
        color: var(--ink-0);
        outline: none;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
        transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out), transform 160ms var(--ease-out);
      }

      .field textarea:focus,
      .field input[type="text"]:focus,
      .field select:focus {
        border-color: rgba(33, 77, 255, 0.42);
        box-shadow: 0 0 0 4px rgba(33, 77, 255, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
      }

      textarea {
        resize: vertical;
        min-height: 112px;
      }

      .prompt-tools {
        margin-top: 10px;
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
      }

      .chip {
        border: 1px solid rgba(14, 17, 22, 0.12);
        background: rgba(252, 252, 248, 0.66);
        border-radius: 999px;
        padding: 8px 10px;
        cursor: pointer;
        font-size: 12px;
        font-weight: var(--w-strong);
        letter-spacing: var(--ls-ui);
        transition: background 160ms var(--ease-out), transform 160ms var(--ease-out), border-color 160ms var(--ease-out);
      }

      .chip:hover {
        transform: translateY(-1px);
        background: rgba(14, 17, 22, 0.06);
      }

      .chip:active {
        transform: translateY(0);
      }

      .chip.primary {
        border-color: rgba(33, 77, 255, 0.28);
        background: rgba(33, 77, 255, 0.08);
        color: rgba(33, 77, 255, 0.92);
      }

      .chip.danger {
        border-color: rgba(223, 42, 42, 0.28);
        background: rgba(223, 42, 42, 0.06);
        color: rgba(223, 42, 42, 0.92);
      }

      .preset-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
      }

      .preset {
        border-radius: 16px;
        border: 1px solid rgba(14, 17, 22, 0.12);
        background: rgba(252, 252, 248, 0.74);
        padding: 10px 10px 9px;
        cursor: pointer;
        text-align: left;
        transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), border-color 160ms var(--ease-out);
        position: relative;
        overflow: hidden;
      }

      .preset:hover {
        transform: translateY(-1px);
        box-shadow: 0 18px 34px rgba(8, 10, 14, 0.08);
      }

      .preset[aria-pressed="true"] {
        border-color: rgba(33, 77, 255, 0.28);
        box-shadow: 0 18px 34px rgba(33, 77, 255, 0.12);
      }

      .swatch {
        width: 100%;
        height: 42px;
        border-radius: 12px;
        border: 1px solid rgba(14, 17, 22, 0.12);
        background: var(--swatch, linear-gradient(135deg, rgba(33, 77, 255, 0.18), rgba(22, 198, 255, 0.1)));
        position: relative;
        overflow: hidden;
      }

      .swatch::after {
        content: "";
        position: absolute;
        inset: 10px 14px;
        border: 1px dashed rgba(14, 17, 22, 0.18);
        border-radius: 999px;
        opacity: 0.85;
      }

      .preset .name {
        margin-top: 8px;
        font-weight: var(--w-strong);
        font-size: 12px;
        letter-spacing: var(--ls-ui);
      }

      .preset .desc {
        margin-top: 4px;
        font-size: 11px;
        color: var(--ink-1);
      }

      .dropzone {
        border-radius: 16px;
        border: 1px dashed rgba(14, 17, 22, 0.24);
        padding: 12px;
        background: rgba(252, 252, 248, 0.7);
        display: grid;
        gap: 10px;
      }

      .dropzone .row {
        display: flex;
        gap: 10px;
        align-items: center;
        justify-content: space-between;
      }

      .dropzone .file {
        font-family: var(--mono);
        font-size: 12px;
        color: var(--ink-1);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
      }

      details {
        margin-top: 12px;
        border-radius: 16px;
        border: 1px solid rgba(14, 17, 22, 0.12);
        background: rgba(252, 252, 248, 0.66);
        overflow: hidden;
      }

      summary {
        cursor: pointer;
        padding: 12px 12px;
        font-family: var(--display);
        font-weight: var(--w-strong);
        letter-spacing: var(--ls-display);
        font-size: 13px;
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
      }

      summary::-webkit-details-marker {
        display: none;
      }

      summary .hint {
        font-family: var(--mono);
        font-weight: var(--w-mono);
        font-size: 11px;
        color: var(--ink-1);
      }

      .advanced {
        padding: 0 12px 12px;
        display: grid;
        gap: 10px;
      }

      .row-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
      }

      .toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 14px;
        border: 1px solid rgba(14, 17, 22, 0.12);
        background: rgba(252, 252, 248, 0.72);
      }

      .toggle span {
        font-size: 12px;
        color: var(--ink-1);
      }

      .toggle input {
        width: 38px;
        height: 22px;
        appearance: none;
        border-radius: 999px;
        background: rgba(14, 17, 22, 0.16);
        position: relative;
        outline: none;
        cursor: pointer;
        transition: background 160ms var(--ease-out);
      }

      .toggle input::after {
        content: "";
        width: 18px;
        height: 18px;
        border-radius: 999px;
        background: rgba(252, 252, 248, 0.96);
        position: absolute;
        top: 2px;
        left: 2px;
        box-shadow: 0 8px 16px rgba(8, 10, 14, 0.16);
        transition: transform 160ms var(--ease-out);
      }

      .toggle input:checked {
        background: rgba(33, 77, 255, 0.62);
      }

      .toggle input:checked::after {
        transform: translateX(16px);
      }

      .kv {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 10px;
        align-items: center;
        padding: 10px 12px;
        border-radius: 16px;
        border: 1px solid rgba(14, 17, 22, 0.12);
        background: rgba(252, 252, 248, 0.74);
      }

      .kv strong {
        font-family: var(--display);
        font-weight: var(--w-strong);
        letter-spacing: var(--ls-display);
        font-size: 12px;
      }

      .kv span {
        font-family: var(--mono);
        font-weight: var(--w-mono);
      }

      .generate-bar {
        margin-top: 12px;
        display: grid;
        gap: 10px;
      }

      .generate-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        font-size: 12px;
        color: var(--ink-1);
      }

      .generate-meta .quote {
        font-family: var(--mono);
        font-weight: var(--w-display);
        color: rgba(33, 77, 255, 0.9);
      }

      .canvas {
        padding: 14px;
        display: grid;
        gap: 12px;
      }

      .stage {
        border-radius: 22px;
        border: 1px solid rgba(14, 17, 22, 0.16);
        background:
          radial-gradient(900px 520px at 20% 15%, rgba(33, 77, 255, 0.18), transparent 60%),
          radial-gradient(800px 520px at 82% 20%, rgba(22, 198, 255, 0.14), transparent 64%),
          linear-gradient(165deg, var(--stage-0), var(--stage-1));
        box-shadow: var(--shadow-2);
        overflow: hidden;
        position: relative;
        min-height: 440px;
        display: grid;
        place-items: center;
      }

      .stage::before {
        content: "";
        position: absolute;
        inset: 0;
        opacity: 0.22;
        background:
          linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
          linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
        background-size: 30px 30px;
        pointer-events: none;
      }

      .stage.flash {
        animation: flash 240ms var(--ease-out) both;
      }

      @keyframes flash {
        from {
          box-shadow: 0 0 0 rgba(33, 77, 255, 0), var(--shadow-2);
        }
        60% {
          box-shadow: 0 0 0 8px rgba(33, 77, 255, 0.16), var(--shadow-2);
        }
        to {
          box-shadow: 0 0 0 rgba(33, 77, 255, 0), var(--shadow-2);
        }
      }

      .empty {
        text-align: center;
        padding: 34px 22px;
        max-width: 56ch;
        color: rgba(252, 252, 248, 0.92);
      }

      .empty strong {
        font-family: var(--display);
        font-weight: var(--w-display);
        letter-spacing: var(--ls-display);
        display: block;
        margin-bottom: 10px;
        font-size: 18px;
      }

      .empty p {
        margin: 0;
        color: rgba(252, 252, 248, 0.72);
        font-size: 13px;
      }

      .preview {
        width: 100%;
        height: 100%;
        display: grid;
        place-items: center;
        padding: 14px;
      }

      .preview img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.02);
      }

      .canvas-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
      }

      .action-row {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
      }

      .queue {
        display: grid;
        gap: 10px;
      }

      .job {
        border-radius: 16px;
        border: 1px solid rgba(14, 17, 22, 0.12);
        background: rgba(252, 252, 248, 0.74);
        padding: 12px;
        box-shadow: 0 18px 34px rgba(8, 10, 14, 0.06);
        position: relative;
        overflow: hidden;
      }

      .job::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent, rgba(33, 77, 255, 0.12), transparent);
        transform: translateX(-70%);
        opacity: 0;
      }

      .job.is-running::before {
        opacity: 1;
        animation: shimmer 1.4s linear infinite;
      }

      @keyframes shimmer {
        from {
          transform: translateX(-70%);
        }
        to {
          transform: translateX(70%);
        }
      }

      .job-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
      }

      .job-header strong {
        font-family: var(--display);
        font-weight: var(--w-strong);
        letter-spacing: var(--ls-display);
        font-size: 13px;
      }

      .job-header .meta {
        color: var(--ink-1);
        font-size: 11px;
        margin-top: 2px;
      }

      .job-header .cost {
        font-family: var(--mono);
        font-weight: var(--w-mono);
        font-size: 11px;
        padding: 6px 8px;
        border-radius: 999px;
        border: 1px solid rgba(33, 77, 255, 0.2);
        background: rgba(33, 77, 255, 0.07);
      }

      .progress {
        margin-top: 10px;
        height: 9px;
        border-radius: 999px;
        border: 1px solid rgba(14, 17, 22, 0.12);
        background: rgba(14, 17, 22, 0.06);
        overflow: hidden;
      }

      .progress > div {
        height: 100%;
        width: 0%;
        background: linear-gradient(90deg, rgba(33, 77, 255, 0.9), rgba(22, 198, 255, 0.75));
        border-radius: 999px;
        transition: width 220ms var(--ease-out);
      }

      .job-actions {
        margin-top: 10px;
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
      }

      .library-rail {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(14, 17, 22, 0.1);
      }

      .rail {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 150px;
        gap: 12px;
        overflow-x: auto;
        padding: 8px 2px 10px;
        scroll-snap-type: x proximity;
      }

      .rail::-webkit-scrollbar {
        height: 10px;
      }

      .rail::-webkit-scrollbar-thumb {
        background: rgba(14, 17, 22, 0.18);
        border-radius: 999px;
      }

      .shot {
        scroll-snap-align: start;
        border-radius: 16px;
        border: 1px solid rgba(14, 17, 22, 0.16);
        background:
          linear-gradient(180deg, rgba(14, 17, 22, 0.92), rgba(14, 17, 22, 0.82)),
          radial-gradient(70% 70% at 30% 20%, rgba(33, 77, 255, 0.18), transparent 60%);
        box-shadow: 0 22px 44px rgba(8, 10, 14, 0.16);
        overflow: hidden;
        cursor: pointer;
        position: relative;
        padding: 10px 12px 12px;
      }

      .shot::before,
      .shot::after {
        content: "";
        position: absolute;
        top: 10px;
        bottom: 46px;
        width: 10px;
        border-radius: 999px;
        background: repeating-linear-gradient(
          180deg,
          rgba(252, 252, 248, 0.32) 0px,
          rgba(252, 252, 248, 0.32) 7px,
          transparent 7px,
          transparent 16px
        );
        opacity: 0.9;
        pointer-events: none;
      }

      .shot::before {
        left: 6px;
      }

      .shot::after {
        right: 6px;
      }

      .shot img {
        width: 100%;
        height: 104px;
        object-fit: cover;
        display: block;
        border-radius: 12px;
        border: 1px solid rgba(252, 252, 248, 0.12);
        filter: saturate(1.03) contrast(1.03);
      }

      .shot .tc {
        position: absolute;
        top: 16px;
        right: 16px;
        font-family: var(--mono);
        font-weight: var(--w-mono);
        font-size: 10px;
        letter-spacing: 0.08em;
        padding: 6px 8px;
        border-radius: 999px;
        border: 1px solid rgba(252, 252, 248, 0.14);
        background: rgba(0, 0, 0, 0.38);
        color: rgba(252, 252, 248, 0.92);
        box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
        backdrop-filter: blur(8px);
        font-variant-numeric: tabular-nums;
        font-feature-settings: "tnum" 1;
      }

      .shot .caption {
        padding: 10px 4px 0;
        font-size: 11px;
        color: rgba(252, 252, 248, 0.78);
      }

      .shot-hint {
        color: rgba(252, 252, 248, 0.92);
      }

      .shot-hint .badge {
        border-color: rgba(252, 252, 248, 0.16);
        background: rgba(0, 0, 0, 0.28);
        color: rgba(252, 252, 248, 0.84);
      }

      .shot-hint .muted {
        color: rgba(252, 252, 248, 0.72);
      }

      .two-col {
        display: grid;
        grid-template-columns: 0.9fr 1.1fr;
        gap: 16px;
      }

      .card {
        padding: 16px;
        border-radius: 20px;
        border: 1px solid rgba(14, 17, 22, 0.12);
        background: rgba(252, 252, 248, 0.72);
        box-shadow: 0 18px 34px rgba(8, 10, 14, 0.06);
      }

      .card h2 {
        margin: 0 0 10px;
        font-family: var(--display);
        font-weight: var(--w-strong);
        letter-spacing: var(--ls-display);
        font-size: 18px;
      }

      .muted {
        color: var(--ink-1);
      }

      .table {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
      }

      .table th,
      .table td {
        text-align: left;
        border-bottom: 1px solid rgba(14, 17, 22, 0.1);
        padding: 10px 8px;
        vertical-align: top;
      }

      .table th {
        font-family: var(--mono);
        font-weight: var(--w-mono);
        color: var(--ink-1);
        font-size: 12px;
      }

      .toast {
        position: fixed;
        left: 50%;
        bottom: 18px;
        transform: translateX(-50%);
        z-index: 60;
        min-width: min(560px, calc(100% - 28px));
        border-radius: 18px;
        border: 1px solid rgba(14, 17, 22, 0.14);
        background: rgba(14, 17, 22, 0.92);
        color: rgba(252, 252, 248, 0.95);
        padding: 12px 14px;
        box-shadow: 0 24px 60px rgba(8, 10, 14, 0.26);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
      }

      .toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(-4px);
      }

      .toast strong {
        font-family: var(--display);
        font-weight: var(--w-strong);
        letter-spacing: var(--ls-display);
      }

      .admin-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 16px;
      }

      @media (max-width: 1100px) {
        .hero {
          grid-template-columns: 1fr;
        }

        .section-grid {
          grid-template-columns: 1fr;
        }

        .studio-layout {
          grid-template-columns: 1fr;
        }

        .panel {
          border-right: 0;
          border-bottom: 1px solid rgba(14, 17, 22, 0.1);
        }

        .panel-right {
          border-left: 0;
        }

        .two-col {
          grid-template-columns: 1fr;
        }
      }

      @media (prefers-reduced-motion: reduce) {
        * {
          animation: none !important;
          transition: none !important;
          scroll-behavior: auto !important;
        }
      }

      html[data-reduce-motion="1"] * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
      }

	      /* Auth + admin */
	      .admin-only {
	        display: none;
	      }

	      /* .nav button has higher specificity; ensure admin-only stays hidden by default. */
	      .nav .admin-only {
	        display: none;
	      }

	      .admin-only.is-visible,
	      .nav .admin-only.is-visible {
	        display: inline-flex;
	      }

	      .dev-only {
	        display: none;
	      }

	      html[data-dev="1"] .dev-only {
	        display: block;
	      }

	      .modal {
	        position: fixed;
	        inset: 0;
	        z-index: 80;
	        display: grid;
	        place-items: center;
	        padding: 18px;
	      }

	      .modal[hidden] {
	        display: none !important;
	      }

	      .modal-backdrop {
	        position: absolute;
	        inset: 0;
	        background: rgba(11, 15, 21, 0.54);
	        backdrop-filter: blur(10px);
	      }

	      .modal-card {
	        position: relative;
	        width: min(540px, 92vw);
	        border-radius: var(--radius-lg);
	        border: 1px solid rgba(252, 252, 248, 0.14);
	        background:
	          radial-gradient(900px 380px at 18% 18%, rgba(33, 77, 255, 0.18), transparent 60%),
	          radial-gradient(900px 420px at 85% 22%, rgba(22, 198, 255, 0.14), transparent 62%),
	          linear-gradient(180deg, rgba(16, 26, 38, 0.92), rgba(11, 15, 21, 0.92));
	        box-shadow: var(--shadow-1);
	        overflow: hidden;
	        transform: translateY(10px) scale(0.99);
	        animation: authIn 260ms var(--ease-out) forwards;
	      }

	      @keyframes authIn {
	        from {
	          opacity: 0;
	          transform: translateY(18px) scale(0.985);
	        }
	        to {
	          opacity: 1;
	          transform: translateY(0) scale(1);
	        }
	      }

	      .auth-card {
	        width: min(920px, 94vw);
	        border-radius: 22px;
	        border: 1px solid rgba(252, 252, 248, 0.14);
	      }

	      .auth-grid {
	        display: grid;
	        grid-template-columns: 0.92fr 1.08fr;
	        min-height: 460px;
	      }

	      .auth-visual {
	        position: relative;
	        color: rgba(255, 255, 255, 0.9);
	        background:
	          radial-gradient(1200px 480px at 30% 16%, rgba(33, 77, 255, 0.26), transparent 60%),
	          radial-gradient(1100px 520px at 80% 24%, rgba(22, 198, 255, 0.2), transparent 62%),
	          radial-gradient(900px 560px at 20% 100%, rgba(255, 176, 32, 0.16), transparent 64%),
	          linear-gradient(180deg, rgba(11, 15, 21, 0.94), rgba(16, 26, 38, 0.92));
	        border-right: 1px solid rgba(255, 255, 255, 0.08);
	        overflow: hidden;
	      }

	      .auth-visual::before {
	        content: "";
	        position: absolute;
	        inset: -80px;
	        pointer-events: none;
	        opacity: 0.2;
	        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='360' height='360' filter='url(%23n)' opacity='.95'/%3E%3C/svg%3E");
	        background-size: 360px 360px;
	        mix-blend-mode: overlay;
	        transform: rotate(-0.9deg);
	      }

	      .auth-visual-inner {
	        position: relative;
	        height: 100%;
	        padding: 18px 18px 16px;
	        display: grid;
	        grid-template-rows: auto 1fr;
	        gap: 14px;
	      }

	      .auth-logo {
	        display: flex;
	        align-items: center;
	        gap: 10px;
	      }

	      .auth-logo-mark {
	        width: 38px;
	        height: 38px;
	        border-radius: 14px;
	        display: grid;
	        place-items: center;
	        background: rgba(255, 255, 255, 0.06);
	        border: 1px solid rgba(255, 255, 255, 0.14);
	      }

	      .auth-logo-mark svg {
	        width: 22px;
	        height: 22px;
	        color: rgba(255, 255, 255, 0.92);
	      }

	      .auth-logo-title {
	        font-family: var(--display);
	        font-weight: 720;
	        letter-spacing: var(--ls-display);
	        font-size: 14px;
	        line-height: 1.2;
	      }

	      .auth-logo-sub {
	        font-size: 12px;
	        opacity: 0.78;
	      }

	      .auth-pass {
	        border-radius: 18px;
	        border: 1px solid rgba(255, 255, 255, 0.14);
	        background: rgba(255, 255, 255, 0.06);
	        box-shadow: 0 26px 70px rgba(0, 0, 0, 0.26);
	        padding: 14px 14px 12px;
	        display: grid;
	        gap: 10px;
	        align-content: start;
	      }

	      .auth-pass-chip {
	        display: inline-flex;
	        width: fit-content;
	        border-radius: 999px;
	        padding: 7px 10px;
	        border: 1px solid rgba(255, 255, 255, 0.16);
	        background: rgba(11, 15, 21, 0.42);
	        font-size: 12px;
	        letter-spacing: 0.02em;
	        opacity: 0.92;
	      }

	      .auth-pass-big {
	        font-family: var(--display);
	        font-size: 22px;
	        line-height: 1.18;
	        letter-spacing: var(--ls-display);
	        font-weight: 740;
	        color: rgba(255, 255, 255, 0.94);
	      }

	      .auth-pass-meta {
	        display: grid;
	        gap: 8px;
	      }

	      .auth-pass-row {
	        display: flex;
	        justify-content: space-between;
	        gap: 10px;
	        padding-top: 8px;
	        border-top: 1px dashed rgba(255, 255, 255, 0.14);
	        font-size: 12px;
	      }

	      .auth-pass-row .k {
	        opacity: 0.64;
	      }

	      .auth-pass-row .v {
	        font-family: var(--mono);
	        font-variant-numeric: tabular-nums;
	        opacity: 0.9;
	      }

	      .auth-scan {
	        position: absolute;
	        left: 12px;
	        right: 12px;
	        top: 70px;
	        height: 1px;
	        background: linear-gradient(90deg, transparent, rgba(22, 198, 255, 0.8), transparent);
	        box-shadow: 0 0 0 1px rgba(22, 198, 255, 0.18), 0 0 18px rgba(22, 198, 255, 0.22);
	        opacity: 0.8;
	        animation: scan 3.4s ease-in-out infinite;
	      }

	      @keyframes scan {
	        0% {
	          transform: translateY(0);
	          opacity: 0.2;
	        }
	        18% {
	          opacity: 0.8;
	        }
	        50% {
	          transform: translateY(296px);
	          opacity: 0.55;
	        }
	        72% {
	          opacity: 0.85;
	        }
	        100% {
	          transform: translateY(0);
	          opacity: 0.2;
	        }
	      }

	      .auth-perf {
	        position: absolute;
	        top: 0;
	        right: -1px;
	        bottom: 0;
	        width: 22px;
	        pointer-events: none;
	        background:
	          radial-gradient(circle at 50% 16px, rgba(11, 15, 21, 0.92) 6px, transparent 7px) 50% 0 / 22px 30px repeat-y,
	          linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
	      }

	      .auth-main {
	        background:
	          radial-gradient(1200px 460px at 20% 12%, rgba(33, 77, 255, 0.1), transparent 60%),
	          radial-gradient(1100px 520px at 78% 18%, rgba(255, 176, 32, 0.08), transparent 62%),
	          linear-gradient(180deg, rgba(252, 252, 248, 0.98), rgba(248, 248, 241, 0.88));
	        color: var(--ink-0);
	      }

	      .auth-head {
	        display: flex;
	        justify-content: space-between;
	        align-items: flex-start;
	        gap: 14px;
	        padding: 16px 16px 12px;
	        border-bottom: 1px solid rgba(14, 17, 22, 0.1);
	      }

	      .auth-head h2 {
	        margin: 10px 0 0;
	        font-family: var(--display);
	        font-size: 20px;
	        letter-spacing: var(--ls-display);
	        line-height: 1.2;
	      }

	      .auth-body {
	        padding: 16px;
	      }

	      .auth-body .field label strong {
	        color: var(--ink-0);
	      }

	      .auth-body .field input[type="email"],
	      .auth-body .field input[type="password"] {
	        width: 100%;
	        border-radius: 14px;
	        border: 1px solid rgba(14, 17, 22, 0.14);
	        background: rgba(252, 252, 248, 0.88);
	        padding: 12px 12px;
	        font-family: var(--body);
	        color: var(--ink-0);
	        outline: none;
	        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
	        transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out), transform 160ms var(--ease-out);
	      }

	      .auth-body .field input[type="email"]:focus,
	      .auth-body .field input[type="password"]:focus {
	        border-color: rgba(33, 77, 255, 0.42);
	        box-shadow: 0 0 0 4px rgba(33, 77, 255, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
	      }

	      .auth-body .field input::placeholder {
	        color: rgba(14, 17, 22, 0.45);
	      }

	      .auth-dev {
	        margin-top: 14px;
	        border-radius: 16px;
	        border: 1px solid rgba(14, 17, 22, 0.12);
	        background: rgba(252, 252, 248, 0.7);
	        padding: 12px;
	      }

	      .auth-dev-title {
	        display: flex;
	        align-items: baseline;
	        justify-content: space-between;
	        gap: 10px;
	        margin-bottom: 10px;
	      }

	      .auth-dev-actions {
	        display: flex;
	        gap: 10px;
	        flex-wrap: wrap;
	        margin-bottom: 8px;
	      }

	      .auth-footer {
	        display: flex;
	        justify-content: space-between;
	        align-items: center;
	        gap: 12px;
	        margin-top: 12px;
	      }

	      @media (max-width: 860px) {
	        .auth-card {
	          width: min(620px, 94vw);
	        }

	        .auth-grid {
	          grid-template-columns: 1fr;
	        }

	        .auth-visual {
	          display: none;
	        }
	      }

	      #authError {
	        color: rgba(255, 176, 32, 0.92);
	      }
