:root {
        --bg: #0c0c0e;
        --surface: #161618;
        --border: #2a2a2e;
        --text: #ececed;
        --text-secondary: #a1a1a6;
        --accent: #3b82f6;
        --accent-hover: #2563eb;
        --success: #22c55e;
        --error: #ef4444;
        --radius: 10px;
      }

      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      body {
        font-family:
          'Inter',
          -apple-system,
          BlinkMacSystemFont,
          sans-serif;
        background: var(--bg);
        color: var(--text);
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 24px;
        line-height: 1.5;
      }

      .card {
        width: 100%;
        max-width: 480px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 32px;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
      }

      .header {
        margin-bottom: 28px;
        text-align: center;
      }

      .header h1 {
        font-size: 20px;
        font-weight: 600;
        letter-spacing: -0.02em;
        margin-bottom: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
      }

      .header p {
        font-size: 14px;
        color: var(--text-secondary);
      }

      .header a {
        display: inline-block;
        margin-top: 4px;
      }

      .field {
        margin-bottom: 18px;
      }

      label {
        display: block;
        font-size: 13px;
        font-weight: 500;
        color: var(--text-secondary);
        margin-bottom: 6px;
      }

      input[type='text'],
      input[type='password'],
      input[type='file'],
      select {
        width: 100%;
        background: #0f0f11;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 11px 14px;
        font-size: 14px;
        color: var(--text);
        font-family: inherit;
        transition: border-color 0.15s ease;
      }

      input[type='text']:focus,
      input[type='password']:focus,
      select:focus {
        outline: none;
        border-color: #3b82f6;
      }

      select {
        cursor: pointer;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 14px center;
        padding-right: 36px;
      }

      select option {
        background: #161618;
        color: var(--text);
      }

      input[type='file'] {
        display: none;
      }

      .dropzone {
        border: 1.5px dashed var(--border);
        border-radius: var(--radius);
        padding: 28px 16px;
        text-align: center;
        cursor: pointer;
        transition: all 0.2s ease;
        background: #0f0f11;
        position: relative;
      }

      .dropzone:hover,
      .dropzone.dragover {
        border-color: var(--accent);
        background: rgba(59, 130, 246, 0.06);
      }

      .dropzone.dragover {
        border-style: solid;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
      }

      .dropzone.has-file {
        border-style: solid;
        border-color: rgba(34, 197, 94, 0.4);
        background: rgba(34, 197, 94, 0.05);
      }

      .dropzone-icon {
        margin-bottom: 10px;
        color: var(--text-secondary);
        transition: color 0.2s;
      }

      .dropzone:hover .dropzone-icon,
      .dropzone.dragover .dropzone-icon {
        color: var(--accent);
      }

      .dropzone.has-file .dropzone-icon {
        color: var(--success);
      }

      .dropzone-text {
        font-size: 14px;
        color: var(--text-secondary);
        margin-bottom: 4px;
      }

      .dropzone-text strong {
        color: var(--text);
        font-weight: 500;
      }

      .dropzone-hint {
        font-size: 12px;
        color: #666;
      }

      .dropzone-filename {
        font-size: 13px;
        color: #86efac;
        margin-top: 8px;
        word-break: break-all;
        display: none;
      }

      .dropzone.has-file .dropzone-filename {
        display: block;
      }

      .dropzone.has-file .dropzone-text,
      .dropzone.has-file .dropzone-hint {
        display: none;
      }

      .mode-switch {
        display: flex;
        background: #0f0f11;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 3px;
        margin-bottom: 20px;
      }

      .mode-btn {
        flex: 1;
        padding: 8px;
        border: none;
        background: transparent;
        color: var(--text-secondary);
        font-size: 13px;
        font-weight: 500;
        border-radius: 7px;
        cursor: pointer;
        transition: all 0.15s ease;
        font-family: inherit;
      }

      .mode-btn.active {
        background: #1f1f23;
        color: var(--text);
      }

      .manual-fields {
        display: none;
      }

      .manual-fields.visible {
        display: block;
      }

      .btn {
        width: 100%;
        margin-top: 8px;
        background: var(--accent);
        color: white;
        border: none;
        border-radius: var(--radius);
        padding: 12px;
        font-size: 14px;
        font-weight: 500;
        font-family: inherit;
        cursor: pointer;
        transition: background 0.15s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
      }

      .btn:hover {
        background: var(--accent-hover);
      }

      .btn:active {
        transform: scale(0.99);
      }

      .btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
      }

      .log {
        margin-top: 24px;
        background: #0f0f11;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 12px;
        font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
        font-size: 12.5px;
        line-height: 1.5;
        color: var(--text-secondary);
        max-height: 280px;
        overflow-y: auto;
        display: none;
      }

      .log.visible {
        display: block;
      }

      .log-entry {
        display: flex;
        gap: 10px;
        padding: 6px 8px;
        border-radius: 6px;
        margin-bottom: 2px;
      }

      .log-entry:last-child {
        margin-bottom: 0;
      }

      .log-time {
        color: #666;
        flex-shrink: 0;
        font-size: 11px;
        padding-top: 1px;
      }

      .log-icon {
        flex-shrink: 0;
        width: 16px;
        text-align: center;
      }

      .log-msg {
        flex: 1;
        word-break: break-all;
      }

      .log-entry.info .log-icon {
        color: #60a5fa;
      }
      .log-entry.success .log-icon {
        color: var(--success);
      }
      .log-entry.error .log-icon {
        color: var(--error);
      }
      .log-entry.success .log-msg {
        color: #86efac;
      }
      .log-entry.error .log-msg {
        color: #fca5a5;
      }

      .repos-box {
        display: none;
        margin-bottom: 18px;
      }

      .repos-box.visible {
        display: block;
      }

      .repos-status {
        font-size: 12px;
        color: var(--text-secondary);
        margin-bottom: 6px;
      }

      .repos-status.loading {
        color: #60a5fa;
      }

      .repos-status.error {
        color: var(--error);
      }

      .footer-note {
        max-width: 480px;
        width: 100%;
        margin-top: 20px;
        padding: 14px 18px;
        border-radius: 12px;
        font-size: 13px;
        color: #ffffff;
        line-height: 1.55;
        text-align: center;
      }

      .footer-note strong {
        color: #3b82f6;
      }

      body::before {
        content: '';
        position: fixed;
        inset: 0;
        z-index: -2;
        background:
          radial-gradient(
            circle at 15% 25%,
            rgba(59, 130, 246, 0.18) 0%,
            transparent 45%
          ),
          radial-gradient(
            circle at 85% 20%,
            rgba(139, 92, 246, 0.14) 0%,
            transparent 45%
          ),
          radial-gradient(
            circle at 70% 80%,
            rgba(14, 165, 233, 0.12) 0%,
            transparent 45%
          ),
          radial-gradient(
            circle at 25% 75%,
            rgba(99, 102, 241, 0.1) 0%,
            transparent 45%
          );
        animation: orbs 22s ease-in-out infinite alternate;
      }

      body::after {
        content: '';
        position: fixed;
        inset: 0;
        z-index: -1;
        background-image:
          linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
          linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
        background-size: 64px 64px;
        mask-image: radial-gradient(
          ellipse at center,
          black 30%,
          transparent 75%
        );
        pointer-events: none;
      }

      @keyframes orbs {
        0% {
          background-position:
            0% 0%,
            100% 0%,
            100% 100%,
            0% 100%;
          filter: hue-rotate(0deg);
        }
        50% {
          background-position:
            30% 40%,
            70% 20%,
            60% 70%,
            20% 80%;
        }
        100% {
          background-position:
            10% 60%,
            90% 50%,
            40% 30%,
            50% 10%;
          filter: hue-rotate(15deg);
        }
      }