
    * {
      box-sizing: border-box;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
    }

    body {
      margin: 0;
      padding: 22px 24px;
      background: #10151c;
      font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
      color: #f5f6f7;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    /* Video-style floating narration caption pill */
    .narration-pill {
      background: #FFFFFF;
      color: #111111;
      font-weight: 700;
      font-size: 15px;
      line-height: 1.35;
      padding: 9px 18px;
      border-radius: 12px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
      transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
      letter-spacing: 0.2px;
      text-align: center;
      max-width: 360px;
    }

    /* Actual screen only; the device frame is owned by shared/device-shell.css. */
    .phone-frame {
      width: 100%;
      height: 100%;
      background: #ffffff;
      position: relative;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    /* Top Mascot Canvas Wrapper */
    .mascot-header {
      position: relative;
      width: 100%;
      height: 263.25px; /* Exact 405 / 600 * 390 */
      flex-shrink: 0;
      background: linear-gradient(90deg, #F6DFF1 0%, #FCF3E8 52%, #FCEED2 100%);
      overflow: hidden;
    }

    #mascotCanvas {
      display: block;
      width: 100%;
      height: 100%;
    }

    /* Form Area below mascot header */
    .login-body {
      position: relative;
      flex: 1;
      background: #FFFFFF;
      margin-top: -1px;
      padding: 0 25px;
      display: flex;
      flex-direction: column;
      z-index: 2;
    }

    /* Input Pill Styling (1:1 to video) */
    .input-pill {
      width: 100%;
      height: 51px;
      border-radius: 999px;
      background-color: #EFEFEF;
      border: 1.25px solid transparent;
      display: flex;
      align-items: center;
      padding: 0 18px 0 21px;
      transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
      cursor: text;
      position: relative;
    }

    .input-pill.focused {
      background-color: #FFFFFF;
      border-color: #262626;
    }

    .input-icon {
      width: 22px;
      height: 22px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      margin-right: 12px;
      color: #222222;
    }

    .real-input {
      flex: 1;
      border: none;
      outline: none;
      background: transparent;
      font-size: 16.5px;
      font-weight: 700;
      color: #111111;
      letter-spacing: 0.3px;
      height: 100%;
      width: 100%;
      padding: 0;
      user-select: text;
      font-family: inherit;
    }

    .real-input::placeholder {
      color: #9E9E9E;
      font-weight: 400;
      font-size: 15px;
      letter-spacing: 0;
    }

    /* Custom Password Dot Display to match video's bold circular dots + underscore/caret */
    .pwd-display-wrap {
      position: relative;
      flex: 1;
      height: 100%;
      display: flex;
      align-items: center;
      overflow: hidden;
    }

    .pwd-Hidden-input {
      position: absolute;
      inset: 0;
      opacity: 0;
      width: 100%;
      height: 100%;
      cursor: text;
      z-index: 3;
      user-select: text;
    }

    .pwd-dots-row {
      display: flex;
      align-items: center;
      gap: 5.5px;
      pointer-events: none;
    }

    .pwd-dot {
      width: 9.5px;
      height: 9.5px;
      border-radius: 50%;
      background-color: #111111;
      flex-shrink: 0;
      animation: dotPop 0.12s cubic-bezier(0.22, 1, 0.36, 1);
    }

    @keyframes dotPop {
      0% { transform: scale(0.3); opacity: 0.3; }
      100% { transform: scale(1); opacity: 1; }
    }

    .pwd-caret-bar {
      width: 1.5px;
      height: 17px;
      background-color: #333333;
      display: none;
      animation: caretBlink 1s steps(1) infinite;
    }

    .pwd-underscore-caret {
      width: 8px;
      height: 1.6px;
      background-color: #222222;
      align-self: flex-end;
      margin-bottom: 18px;
      margin-left: 1px;
      display: none;
      animation: caretBlink 1s steps(1) infinite;
    }

    @keyframes caretBlink {
      0%, 49% { opacity: 1; }
      50%, 100% { opacity: 0; }
    }

    /* Agreement Checkbox Row */
    .agreement-row {
      display: flex;
      align-items: center;
      margin-top: 17px;
      padding-left: 2px;
      font-size: 12px;
      line-height: 1;
      color: #333333;
    }

    .agreement-circle {
      width: 13.5px;
      height: 13.5px;
      border-radius: 50%;
      border: 1.2px solid #C8C8C8;
      margin-right: 7px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      flex-shrink: 0;
      transition: all 0.15s ease;
      background: #FFFFFF;
    }

    .agreement-circle.checked {
      background: #181818;
      border-color: #181818;
    }

    /* Primary Login Button */
    .login-btn {
      margin-top: 29px;
      width: 100%;
      height: 51px;
      border-radius: 999px;
      background-color: #181818;
      color: #FFFFFF;
      font-size: 16px;
      font-weight: 600;
      letter-spacing: 0.6px;
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: transform 0.12s ease, background-color 0.15s ease;
    }

    .login-btn:active {
      transform: scale(0.982);
      background-color: #2A2A2A;
    }

    /* Secondary SMS Code Link */
    .sms-mode-btn {
      margin-top: 16px;
      align-self: center;
      background: transparent;
      border: none;
      color: #8E8E8E;
      font-size: 14px;
      font-weight: 400;
      cursor: pointer;
      padding: 4px 10px;
      transition: color 0.15s ease;
    }

    .sms-mode-btn:hover {
      color: #555555;
    }

    /* Bottom Third-Party Login Icons */
    .social-row {
      margin-top: auto;
      margin-bottom: 51px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 32px;
    }

    .social-btn {
      width: 42px;
      height: 42px;
      border-radius: 14px;
      background: #F3F3F3;
      border: none;
      padding: 0;
      overflow: hidden;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.14s ease, filter 0.14s ease;
    }

    .social-btn:hover {
      filter: brightness(0.96);
    }

    .social-btn:active {
      transform: scale(0.92);
    }

    .social-btn img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    /* iOS Virtual Keyboard (1:1 to phone_050.png) */
    .ios-keyboard {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 266px;
      background-color: #D1D4D9;
      z-index: 20;
      padding: 7px 4px 0 4px;
      display: flex;
      flex-direction: column;
      transform: translateY(104%);
      transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
      box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.08);
    }

    .ios-keyboard.open {
      transform: translateY(0%);
    }

    .kbd-row {
      display: flex;
      justify-content: center;
      gap: 6px;
      margin-bottom: 9.5px;
    }

    .kbd-key {
      height: 39px;
      background: #FFFFFF;
      border-radius: 5px;
      border: none;
      box-shadow: 0 1px 0 #898A8D;
      font-size: 21px;
      font-weight: 400;
      color: #000000;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      padding: 0;
      font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
      position: relative;
      transition: background-color 0.05s ease;
    }

    .kbd-key:active {
      background-color: #E5E7EB;
    }

    .kbd-key-letter {
      width: 32.5px;
    }

    .kbd-key-fn {
      background-color: #ADB0B8;
      box-shadow: 0 1px 0 #898A8D;
      width: 42px;
      font-size: 15px;
      color: #000000;
    }

    .kbd-key-fn:active {
      background-color: #9699A1;
    }

    .kbd-key-bottom-fn {
      background-color: #ADB0B8;
      box-shadow: 0 1px 0 #898A8D;
      width: 90px;
      height: 39px;
      border-radius: 5px;
      border: none;
      font-size: 15.5px;
      color: #000000;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }

    .kbd-key-bottom-fn:active {
      background-color: #9699A1;
    }

    .kbd-key-space {
      background-color: #FFFFFF;
      box-shadow: 0 1px 0 #898A8D;
      flex: 1;
      max-width: 186px;
      height: 39px;
      border-radius: 5px;
      border: none;
      font-size: 15.5px;
      color: #000000;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }

    .kbd-key-space:active {
      background-color: #E5E7EB;
    }

    .kbd-footer {
      margin-top: auto;
      height: 48px;
      padding: 2px 22px 15px 22px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      color: #4E5157;
    }

    /* Home Indicator Bar */
    .home-indicator {
      position: absolute;
      bottom: 8px;
      left: 50%;
      transform: translateX(-50%);
      width: 136px;
      height: 4.8px;
      background-color: #181818;
      border-radius: 999px;
      z-index: 30;
      pointer-events: none;
    }

    /* Shake animation for subtle tactile feedback when needed */
    @keyframes pillPulse {
      0%, 100% { transform: translateX(0); }
      25% { transform: translateX(-3px); }
      75% { transform: translateX(3px); }
    }

    .pulse-hint {
      animation: pillPulse 0.28s ease-in-out 2;
    }

    .hidden { display: none !important; }
    .studio-top-bar {
      width: 100%;
      padding: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      z-index: 40;
    }
    .studio-pill-bar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 6px;
      background: rgba(31, 31, 35, 0.92);
      backdrop-filter: blur(12px);
      padding: 6px 10px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
      font-size: 12px;
      color: rgba(255, 255, 255, 0.92);
    }
    .ctrl-btn {
      padding: 4px 10px;
      border-radius: 999px;
      border: none;
      background: rgba(255, 255, 255, 0.1);
      color: #FFFFFF;
      font-size: 12px;
      font-weight: 500;
      cursor: pointer;
      transition: background 0.15s ease, transform 0.1s ease;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-family: inherit;
    }
    .ctrl-btn:hover { background: rgba(255, 255, 255, 0.2); }
    .ctrl-btn:active { transform: scale(0.96); }
    .ctrl-btn-amber {
      background: #FBBF24;
      color: #111111;
      font-weight: 600;
    }
    .ctrl-btn-amber:hover { background: #F59E0B; }
    .ctrl-btn-pink {
      background: rgba(236, 72, 153, 0.88);
      color: #FFFFFF;
      font-weight: 600;
    }
    .ctrl-btn-pink:hover { background: rgba(219, 39, 119, 0.95); }

    .pwd-placeholder-span {
      color: #9E9E9E;
      font-size: 15px;
      font-weight: 400;
      pointer-events: none;
      user-select: none;
    }
    .sms-code-btn {
      margin-left: 8px;
      font-size: 12px;
      font-weight: 600;
      color: #181818;
      background: rgba(0, 0, 0, 0.06);
      border: none;
      padding: 6px 10px;
      border-radius: 999px;
      cursor: pointer;
      white-space: nowrap;
      z-index: 10;
      font-family: inherit;
    }
    .sms-code-btn:hover { background: rgba(0, 0, 0, 0.11); }
    .terms-link-btn {
      color: #9E9E9E;
      background: transparent;
      border: none;
      padding: 0;
      margin: 0 2px;
      cursor: pointer;
      font-size: 12px;
      font-family: inherit;
    }
    .terms-link-btn:hover { color: #666666; }
    .status-toast {
      margin-top: 12px;
      text-align: center;
      font-size: 11.5px;
      color: #A3A3A3;
      opacity: 0;
      transition: opacity 0.3s ease;
      pointer-events: none;
    }
    .kbd-row-2 { padding: 0 16px; }
    .kbd-row-3 { padding: 0 4px; }
    .kbd-row-4 { padding: 0 4px; margin-bottom: 0; }
    .mr-1-5 { margin-right: 5px; }
    .ml-1-5 { margin-left: 5px; }
    .mx-1 { margin-left: 4px; margin-right: 4px; }
    .kbd-icon-btn {
      background: transparent;
      border: none;
      padding: 4px;
      cursor: pointer;
      color: #52555B;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .kbd-icon-btn:hover { color: #111111; }

    /* Modal Overlay */
    .modal-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.42);
      backdrop-filter: blur(2px);
      z-index: 40;
      display: flex;
      align-items: flex-end;
      justify-content: center;
    }
    .modal-sheet {
      width: 100%;
      background: #FFFFFF;
      border-radius: 26px 26px 0 0;
      padding: 22px 24px 34px 24px;
      box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.25);
    }
    .modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }
    .modal-title {
      font-size: 16px;
      font-weight: 700;
      color: #111111;
      margin: 0;
    }
    .modal-close-btn {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: #F4F4F5;
      border: none;
      color: #52525B;
      font-size: 13px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .modal-body-text {
      font-size: 12.5px;
      color: #52525B;
      line-height: 1.65;
      margin: 0 0 20px 0;
    }
    .modal-confirm-btn {
      width: 100%;
      height: 44px;
      border-radius: 999px;
      background: #181818;
      color: #FFFFFF;
      font-size: 14px;
      font-weight: 600;
      border: none;
      cursor: pointer;
      font-family: inherit;
    }
    .check-svg {
      width: 10px;
      height: 10px;
      color: #FFFFFF;
    }

    /* Layout-specific styles, without redefining shared outer device selectors. */
    .login-layout { max-width: 1180px; }
    .login-sidebar { padding: 27px 29px; background: #1a222e; border: 1px solid #303b49; color: #f5f6f7; }
    .login-sidebar .detail-panel-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 19px; color: #91a6b0; font-size: 11px; }
    .login-sidebar .back-link { color: #82e1d4; text-decoration: none; font-size: 12px; font-weight: 600; }
    .login-sidebar .back-link:hover { text-decoration: underline; }
    .login-sidebar .case-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
    .login-sidebar .case-tabs a { display: inline-flex; align-items: center; padding: 10px 13px; border: 1px solid #ffffff25; background: #ffffff0c; color: #c6d7df; border-radius: 13px; font-size: 12px; font-weight: 600; line-height: 1.4; text-decoration: none; }
    .login-sidebar .case-tabs a[aria-current="page"] { background: #21776648; color: #99f9df; border-color: #4dd3b8bb; }
    .login-sidebar h1 { font-size: clamp(23px, 3vw, 29px); margin: 0 0 11px; letter-spacing: -.02em; }
    .login-sidebar .lede { margin: 0 0 24px; color: #bac8d9; line-height: 1.7; font-size: 14px; }
    .login-sidebar .detail-card { border-radius: 20px; padding: 19px; background: #222e3c; margin-bottom: 15px; }
    .login-sidebar h2 { font-size: 15px; margin: 0 0 13px; color: #f7f7fb; }
    .login-sidebar .detail-card p { margin: 10px 0; font-size: 13px; line-height: 1.8; color: #ccd8e8; white-space: pre-line; }
    .login-sidebar .studio-pill-bar { width: 100%; justify-content: flex-start; border-radius: 16px; padding: 11px; }
    .login-sidebar .ctrl-btn { min-height: 33px; }
    .login-sidebar .narration-pill { max-width: none; width: 100%; margin-top: 12px; color: #15202d; font-size: 13px; }
    .login-sidebar .copy-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
    .login-sidebar .copy-row button { padding: 11px; border-radius: 12px; border: none; background: #b0eddd; color: #193b34; font-weight: 700; cursor: pointer; }
    .login-sidebar .demo-skill-source { width: 100%; padding: 14px; border-radius: 12px; border: 1px solid #465466; background: #15202c; color: #d2e0ee; font: 12px/1.65 ui-monospace, monospace; }
    .login-sidebar .footnote { font-size: 12px; color: #a5b2c2; line-height: 1.7; margin-bottom: 0; }
    .login-sidebar :focus-visible, .phone-frame :focus-visible:not(.real-input) { outline: 2px solid #33b4a8; outline-offset: 2px; }
    @media (max-height: 895px) and (min-width: 961px) { body { overflow-y: auto; align-items: flex-start; } }
    @media (max-width: 960px) { body { padding: 20px 12px 40px; overflow-y: auto; display: block; } .login-sidebar { height: auto; } }
    @media (max-width: 390px) { .login-sidebar { padding: 20px 17px; } .login-body { padding: 0 16px; } .agreement-row { font-size: 11px; } .terms-link-btn { font-size: 11px; } .social-row { gap: 20px; } }
    @media (prefers-reduced-motion: reduce) { .phone-frame *, .login-sidebar * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
