* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: ui-sans-serif, system-ui, -apple-system, sans-serif; background: #0d1117; color: #e6edf3; min-height: 100vh; }
.container { max-width: 800px; margin: 0 auto; padding: 24px 20px; }
header { background: rgba(13,17,23,0.9); border-bottom: 1px solid #21262d; padding: 16px 0; margin-bottom: 32px; }
header .inner { max-width: 800px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
h1 { font-size: 1.4rem; font-weight: 700; }
h2 { font-size: 1.15rem; font-weight: 600; margin-bottom: 16px; color: #e6edf3; }
.card { background: #161b22; border: 1px solid #21262d; border-radius: 10px; padding: 20px; margin-bottom: 20px; }
.btn { display: inline-block; padding: 8px 16px; border-radius: 6px; border: 1px solid #21262d; background: #21262d; color: #e6edf3; font-size: 0.85rem; cursor: pointer; transition: background 0.2s; }
.btn:hover { background: #30363d; }
.btn-primary { background: #1f6feb; border-color: #1f6feb; color: #fff; }
.btn-primary:hover { background: #388bfd; }
.btn-danger { background: #b62324; border-color: #b62324; color: #fff; }
.btn-danger:hover { background: #d73a49; }
.btn-sm { padding: 4px 10px; font-size: 0.78rem; }
.login-container { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; text-align: center; }
.login-container h1 { font-size: 1.8rem; margin-bottom: 8px; }
.login-container p { color: #9ba4ae; margin-bottom: 24px; font-size: 0.95rem; }
.login-methods { display: flex; flex-direction: column; align-items: center; gap: 0; width: 100%; max-width: 320px; }
.gsi-material-button { -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; -webkit-appearance: none; appearance: none; background-color: #f2f2f2; background-image: none; border: none; border-radius: 20px; box-sizing: border-box; color: #1f1f1f; cursor: pointer; font-family: 'Google Sans', arial, sans-serif; font-size: 14px; height: 40px; letter-spacing: 0.25px; outline: none; overflow: hidden; padding: 0 12px; position: relative; text-align: center; transition: background-color .218s, border-color .218s, box-shadow .218s; vertical-align: middle; white-space: nowrap; width: 100%; max-width: 320px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.gsi-material-button .gsi-material-button-icon { height: 20px; margin-right: 12px; min-width: 20px; width: 20px; }
.gsi-material-button .gsi-material-button-content-wrapper { display: flex; align-items: center; flex-wrap: nowrap; height: 100%; justify-content: center; position: relative; width: 100%; }
.gsi-material-button .gsi-material-button-contents { flex-grow: 0; font-family: 'Google Sans', arial, sans-serif; font-weight: 500; overflow: hidden; text-overflow: ellipsis; vertical-align: top; }
.gsi-material-button:not(:disabled):active { background-color: #d2d2d2; }
.gsi-material-button:not(:disabled):hover { background-color: #e8e8e8; box-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15); }
.login-divider { display: flex; align-items: center; width: 100%; max-width: 320px; margin: 20px 0; color: #848d97; font-size: 0.82rem; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; border-bottom: 1px solid #30363d; }
.login-divider span { padding: 0 12px; }
.magic-link-form { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 320px; }
.magic-link-form input[type="email"] { width: 100%; padding: 10px 14px; background: #0d1117; border: 1px solid #21262d; border-radius: 6px; color: #e6edf3; font-size: 0.9rem; }
.magic-link-form input[type="email"]::placeholder { color: #7d8590; }
.magic-link-form input[type="email"]:focus { outline: none; border-color: #388bfd; box-shadow: 0 0 0 2px rgba(56,139,253,0.15); }
.btn-magic-link { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px 16px; border-radius: 6px; border: 1px solid #21262d; background: #21262d; color: #e6edf3; font-size: 0.9rem; cursor: pointer; transition: background 0.2s; font-family: ui-sans-serif, system-ui, -apple-system, sans-serif; }
.btn-magic-link:hover { background: #30363d; }
.btn-magic-link:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-magic-link svg { flex-shrink: 0; }
.magic-link-sent { background: #161b22; border: 1px solid #238636; border-radius: 10px; padding: 20px; width: 100%; max-width: 360px; text-align: center; }
.magic-link-sent h2 { color: #3fb950; font-size: 1.1rem; margin-bottom: 8px; }
.magic-link-sent p { color: #9ba4ae; font-size: 0.88rem; line-height: 1.5; }
.magic-link-error { color: #f85149; font-size: 0.82rem; margin-top: 4px; }
.key-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #21262d; gap: 12px; flex-wrap: wrap; }
.key-row:last-child { border-bottom: none; }
.key-prefix { font-family: monospace; font-size: 0.9rem; color: #58a6ff; }
.key-name { font-size: 0.85rem; color: #8b949e; }
.key-meta { font-size: 0.78rem; color: #484f58; }
.key-actions { display: flex; gap: 6px; }
.new-key-display { background: #0d1117; border: 1px solid #1f6feb; border-radius: 8px; padding: 14px; margin: 12px 0; }
.new-key-display code { font-family: monospace; font-size: 0.85rem; color: #58a6ff; word-break: break-all; }
.warning { color: #d29922; font-size: 0.82rem; margin-top: 8px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.stat-card { background: #0d1117; border: 1px solid #21262d; border-radius: 8px; padding: 14px; text-align: center; }
.stat-number { font-size: 1.6rem; font-weight: 700; color: #58a6ff; }
.stat-label { font-size: 0.78rem; color: #8b949e; margin-top: 4px; }
.user-info { display: flex; align-items: center; gap: 10px; }
.user-info img { width: 32px; height: 32px; border-radius: 50%; }
.user-info span { font-size: 0.85rem; color: #8b949e; }
.revoked { opacity: 0.5; }
.revoked .key-prefix { text-decoration: line-through; }
input[type="text"] { width: 100%; padding: 8px 12px; background: #0d1117; border: 1px solid #21262d; border-radius: 6px; color: #e6edf3; font-size: 0.9rem; margin-bottom: 10px; }
.login-trial-prompt { margin-top: 28px; text-align: center; }
.login-trial-prompt p { color: #848d97; font-size: 0.88rem; margin-bottom: 4px; display: inline; }
.trial-link { color: #58a6ff; text-decoration: none; font-size: 0.88rem; font-weight: 500; }
.trial-link:hover { text-decoration: underline; }
.paywall-card { background: #161b22; border: 1px solid #21262d; border-radius: 12px; padding: 36px 32px; max-width: 400px; width: 100%; text-align: center; }
.paywall-card h1 { font-size: 1.5rem; margin-bottom: 8px; }
.paywall-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(56,139,253,0.12); color: #58a6ff; margin: 0 auto 20px; }
.paywall-subtitle { color: #9ba4ae; font-size: 0.92rem; line-height: 1.5; margin-bottom: 24px; }
.paywall-features { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 24px; }
.paywall-feature { display: flex; align-items: center; gap: 6px; font-size: 0.84rem; color: #9ba4ae; padding: 6px 0; }
.paywall-feature::before { content: '\2713'; color: #3fb950; font-weight: 700; font-size: 0.9rem; }
.btn-subscribe { display: block; width: 100%; padding: 12px 20px; background: #1f6feb; color: #fff; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center; transition: background 0.2s; }
.btn-subscribe:hover { background: #388bfd; }
.paywall-note { color: #848d97; font-size: 0.78rem; margin-top: 12px; margin-bottom: 0; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.badge-trial { background: rgba(56,139,253,0.15); color: #58a6ff; }
.badge-canceling { background: rgba(210,153,34,0.15); color: #d29922; }
.trial-banner { background: rgba(56,139,253,0.08); border: 1px solid rgba(56,139,253,0.25); border-radius: 8px; padding: 10px 16px; margin-bottom: 20px; font-size: 0.88rem; color: #9ba4ae; }
.cancel-banner { background: rgba(210,153,34,0.08); border: 1px solid rgba(210,153,34,0.25); border-radius: 8px; padding: 10px 16px; margin-bottom: 20px; font-size: 0.88rem; color: #d29922; }
.cancel-banner a { color: #58a6ff; text-decoration: none; }
.cancel-banner a:hover { text-decoration: underline; }
