      .login-screen {
        display: grid;
        place-items: center;
        padding: calc(var(--space-6) + env(safe-area-inset-top, 0px)) var(--space-6) var(--space-6);
        min-height: 100dvh;
      }

      .login-card {
        width: min(100%, 430px);
        border: 1px solid var(--border);
        border-radius: 24px;
        background: rgba(42, 42, 42, 0.82);
        box-shadow: var(--shadow-raised);
        padding: clamp(var(--space-6), 5vw, var(--space-10));
        backdrop-filter: blur(18px);
      }

      html[data-theme="light"] .login-card {
        background: rgba(255, 255, 255, 0.84);
      }

      @media (min-width: 1024px) {
        .login-screen {
          display: grid;
          grid-template-columns: 1fr 1fr;
          align-items: start;
          justify-items: center;
          gap: var(--space-8);
          padding: var(--space-8) var(--space-6);
          min-height: 100dvh;
          background: linear-gradient(90deg,
            var(--surface) 0%,
            var(--surface-dynamic) 50%,
            var(--bg) 100%);
        }

        .login-card {
          width: min(100%, 480px);
          margin: 0;
          grid-column: 2;
          grid-row: 1;
          position: relative;
          z-index: 2;
        }

        #aboutPanel {
          display: flex !important;
          flex-direction: column;
          grid-column: 1;
          grid-row: 1;
          width: min(100%, 480px);
          max-height: calc(100dvh - 4rem);
          overflow-y: auto;
          margin: 0;
        }

        #aboutPanel .login-tabs {
          display: none;
        }

        #aboutPanel .about-content {
          max-height: none;
          overflow-y: visible;
        }

        #showAboutTabFromLogin,
        #showAboutTabFromRegister {
          display: none;
        }

        #loginForm .login-tabs,
        #registerForm .login-tabs {
          grid-template-columns: 1fr 1fr 1fr;
        }
      }

      @media (min-width: 1024px) and (max-width: 1280px) {
        .login-card,
        #aboutPanel {
          width: min(100%, 420px);
        }
      }

      @media (min-width: 1280px) {
        .login-card,
        #aboutPanel {
          width: min(100%, 520px);
        }
      }

      .login-mark {
        width: 76px;
        height: 76px;
        margin: 0 auto var(--space-5);
        border: 1px solid var(--border-strong);
        border-radius: 24px;
        overflow: hidden;
        background: var(--surface-raised);
        box-shadow: var(--shadow-soft);
      }

      @media (min-width: 1024px) {
        .login-card .login-mark {
          width: 88px;
          height: 88px;
          border-radius: 28px;
          box-shadow: var(--shadow-raised);
        }
      }

      .login-mark img,
      .brand-mark img,
      .welcome-logo img,
      .avatar-logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      .image-failed {
        display: grid;
        place-items: center;
      }

      .fallback-mark {
        display: inline-grid;
        width: 100%;
        height: 100%;
        place-items: center;
        background: rgba(214, 177, 93, 0.1);
        color: #f1d693;
        font-size: var(--text-sm);
        font-weight: 800;
      }

      .login-card h1 {
        color: var(--text);
        font-size: var(--text-xl);
        font-weight: 800;
        letter-spacing: -0.02em;
        line-height: 1.25;
        text-align: center;
      }

      .login-subtitle {
        margin-top: var(--space-2);
        color: var(--muted);
        font-size: var(--text-sm);
        text-align: center;
      }

      .login-form {
        display: grid;
        gap: var(--space-4);
        margin-top: var(--space-8);
      }

      .login-tabs {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-2);
        margin-top: var(--space-6);
      }

      .login-tab {
        min-height: 38px;
        border: 1px solid var(--border);
        border-radius: var(--radius-pill);
        background: var(--surface-soft);
        color: var(--muted);
        font-weight: 800;
        font-size: var(--text-xs);
        padding-inline: var(--space-1);
      }

      .login-tab.active {
        background: var(--surface-raised);
        color: var(--text);
        border-color: var(--border-strong);
      }

      .about-content {
        display: grid;
        gap: var(--space-3);
        margin-top: var(--space-5);
        max-height: calc(100dvh - 340px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: max(var(--space-4), env(safe-area-inset-bottom, 20px));
      }

      .about-section {
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: var(--space-4);
        background: var(--surface-soft);
      }

      .about-heading {
        font-size: var(--text-sm);
        font-weight: 800;
        color: var(--text);
        margin-bottom: var(--space-3);
      }

      .about-body {
        color: var(--muted);
        font-size: var(--text-sm);
        line-height: 1.75;
      }

      .about-steps {
        list-style: none;
        padding: 0;
        display: grid;
        gap: var(--space-2);
        margin-top: var(--space-3);
      }

      .about-steps li {
        display: flex;
        align-items: flex-start;
        gap: var(--space-2);
        color: var(--muted);
        font-size: var(--text-sm);
      }

      .step-num {
        min-width: 22px;
        height: 22px;
        border-radius: 50%;
        background: rgba(214,177,93,.15);
        color: #d6b15d;
        font-size: 11px;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        margin-top: 1px;
      }

      .about-examples {
        list-style: none;
        padding: 0;
        display: grid;
        gap: var(--space-2);
        margin-top: var(--space-2);
      }

      .about-examples li {
        font-size: var(--text-sm);
        color: var(--muted);
        background: var(--surface-raised);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: var(--space-2) var(--space-3);
        line-height: 1.6;
      }

      .about-tags {
        list-style: none;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-2);
        margin-top: var(--space-2);
      }

      .about-tags li {
        font-size: 12px;
        color: var(--muted);
        border: 1px solid var(--border);
        border-radius: var(--radius-pill);
        padding: 2px var(--space-3);
        background: var(--surface-raised);
      }

      .about-models {
        list-style: none;
        padding: 0;
        display: grid;
        gap: var(--space-3);
        margin-top: var(--space-2);
      }

      .about-models li {
        padding-bottom: var(--space-3);
        border-bottom: 1px solid var(--border);
      }

      .about-models li:last-child {
        border-bottom: none;
        padding-bottom: 0;
      }

      .model-label {
        font-size: var(--text-sm);
        font-weight: 800;
        color: var(--text);
      }

      .model-desc {
        font-size: var(--text-sm);
        color: var(--muted);
        margin-top: 2px;
        line-height: 1.6;
      }

      .about-premium {
        border-color: rgba(214,177,93,.35);
        background: rgba(214,177,93,.05);
      }

      .about-premium .about-heading {
        color: #d6b15d;
      }

      .about-premium ul {
        list-style: none;
        padding: 0;
        display: grid;
        gap: var(--space-2);
        margin-top: var(--space-2);
      }

      .about-premium ul li {
        font-size: var(--text-sm);
        color: var(--muted);
        display: flex;
        gap: var(--space-2);
        align-items: flex-start;
      }

      .about-premium ul li::before {
        content: "✦";
        color: #d6b15d;
        flex-shrink: 0;
        font-size: 10px;
        margin-top: 3px;
      }

      .about-cta {
        text-align: center;
        border-color: rgba(214,177,93,.25);
        background: rgba(214,177,93,.07);
      }

      .about-cta .about-heading { color: var(--text); }

      .about-cta p {
        font-size: var(--text-sm);
        color: var(--muted);
        margin-bottom: var(--space-4);
        line-height: 1.7;
      }

      html[data-theme="light"] .about-section {
        background: rgba(0,0,0,.03);
      }

      html[data-theme="light"] .about-examples li,
      html[data-theme="light"] .about-tags li {
        background: #fff;
      }

      html[data-theme="light"] .about-premium {
        background: rgba(214,177,93,.08);
      }

      html[data-theme="light"] .about-cta {
        background: rgba(214,177,93,.1);
      }

      .register-form {
        display: grid;
        gap: var(--space-4);
        margin-top: var(--space-6);
        max-height: calc(100dvh - 380px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: max(var(--space-4), env(safe-area-inset-bottom, 20px));
      }

      .model-select-wrap {
        display: grid;
        gap: var(--space-1);
        align-self: center;
        min-width: 150px;
      }

      .model-select-wrap label {
        color: var(--faint);
        font-size: var(--text-xs);
        font-weight: 800;
      }

      .model-select {
        min-height: 42px;
        border: 1px solid var(--border);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.035);
        color: var(--text);
        padding: 0 var(--space-3);
        font: inherit;
        font-size: var(--text-sm);
        font-weight: 800;
      }

      html[data-theme="light"] .model-select {
        background: rgba(255, 255, 255, 0.82);
      }

      .field {
        display: grid;
        gap: var(--space-2);
      }

      .field label {
        color: var(--text);
        font-size: var(--text-sm);
        font-weight: 700;
      }

      .field-hint {
        font-size: var(--text-xs);
        color: var(--faint);
        margin: 0;
        line-height: 1.5;
      }
      .field-warn {
        color: var(--error);
        font-size: var(--text-xs);
        margin: 0;
        line-height: 1.5;
      }

      .text-input,
      .composer-textarea {
        width: 100%;
        border: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.035);
        color: var(--text);
      }

      html[data-theme="light"] .text-input,
      html[data-theme="light"] .composer-textarea {
        background: rgba(0, 0, 0, 0.025);
      }

      .text-input {
        min-height: 52px;
        border-radius: 16px;
        padding: 0 var(--space-4);
      }

      .text-input::placeholder,
      .composer-textarea::placeholder {
        color: var(--faint);
      }

      .text-input:hover,
      .composer-textarea:hover {
        border-color: var(--border-strong);
      }

      .text-input:focus,
      .composer-textarea:focus {
        border-color: rgba(214, 177, 93, 0.58);
        box-shadow: 0 0 0 4px rgba(214, 177, 93, 0.1);
        outline: 0;
      }

      .primary-button {
        border-radius: var(--radius-pill);
        background: var(--gold);
        color: #171717;
        font-weight: 800;
        padding: 0 var(--space-6);
      }

      .primary-button:hover:not(:disabled) {
        background: #e1bd6a;
        box-shadow: 0 8px 24px rgba(214, 177, 93, 0.18);
      }

      .primary-button:active:not(:disabled) {
        transform: translateY(1px);
        background: var(--gold-dark);
      }

      .secondary-button {
        border: 1px solid var(--border);
        border-radius: var(--radius-pill);
        background: rgba(255, 255, 255, 0.04);
        color: var(--text);
        font-weight: 700;
        padding: 0 var(--space-5);
      }

      .secondary-button:hover {
        border-color: var(--border-strong);
        background: rgba(255, 255, 255, 0.07);
      }

      html[data-theme="light"] .secondary-button {
        background: rgba(0, 0, 0, 0.035);
      }

      html[data-theme="light"] .secondary-button:hover {
        background: rgba(0, 0, 0, 0.06);
      }

      .ghost-button {
        border-radius: var(--radius-pill);
        background: transparent;
        color: var(--muted);
        font-weight: 700;
        padding: 0 var(--space-4);
      }

      .ghost-button:hover {
        background: rgba(255, 255, 255, 0.06);
        color: var(--text);
      }

      html[data-theme="light"] .ghost-button:hover {
        background: rgba(0, 0, 0, 0.055);
      }

      .error-area {
        min-height: 1.55em;
        color: var(--error);
        font-size: var(--text-sm);
        font-weight: 700;
        text-align: center;
      }
