* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: 'Segoe UI', system-ui, sans-serif; background: #f5f5f5; color: #111827; display: flex; flex-direction: column; }
.app { max-width: 560px; margin: 0 auto; padding: 2rem 1.5rem; }
header { text-align: center; margin-bottom: 2rem; }
header h1 { font-size: 1.75rem; margin: 0 0 0.5rem; }
.subtitle { color: #8b949e; font-size: 0.95rem; margin: 0; }
.actions { margin-bottom: 2rem; }
.add-account-option { display: block; margin-bottom: 0.75rem; font-size: 0.9rem; color: #8b949e; cursor: pointer; }
.add-account-option input { margin-right: 0.5rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.25rem; font-size: 1rem; font-weight: 500; border: none; border-radius: 8px; cursor: pointer; }
.btn-primary { background: #238636; color: #fff; }
.btn:disabled { opacity: 0.7; cursor: not-allowed; }
.device-code { background: #21262d; border: 1px solid #30363d; border-radius: 12px; padding: 1.5rem; margin-bottom: 2rem; }
.device-code.hidden { display: none; }
.device-code h2 { font-size: 1.1rem; margin: 0 0 0.75rem; }
.instruction { color: #8b949e; font-size: 0.9rem; }
.code-box-wrap { display: flex; align-items: center; gap: 0.75rem; margin: 0.75rem 0; flex-wrap: wrap; }
.code-box { background: #0d1117; padding: 1rem 1.25rem; border-radius: 8px; flex: 1; min-width: 0; }
.user-code { font-size: 1.5rem; font-weight: 600; letter-spacing: 0.2em; }
.btn-copy { padding: 0.5rem 1rem; font-size: 0.9rem; background: #21262d; color: #58a6ff; border: 1px solid #30363d; }
.btn-copy:hover { background: #30363d; }
.link-btn { color: #58a6ff; display: inline-block; margin: 0.5rem 0; }
.message, .hint { color: #8b949e; font-size: 0.9rem; margin: 0.5rem 0; }
.link-status { color: #58a6ff; font-size: 0.9rem; margin: 0.5rem 0; }
.error { background: rgba(248,81,73,0.15); border: 1px solid #f85149; color: #f85149; padding: 0.75rem; border-radius: 8px; margin-top: 1rem; }
.error.hidden { display: none; }
.hidden { display: none !important; }
.hd { background: #fff; border-bottom: 1px solid #e5e5e5; height: 48px; flex-shrink: 0; width: 100%; }
.hi { max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 100%; display: flex; align-items: center; }
.lg { display: flex; align-items: center; gap: 10px; }
.lt { font-size: 15px; font-weight: 700; color: #2c2c2c; }
.mn { flex: 1; display: flex; align-items: center; justify-content: center; padding: 10px; }
.cc { width: 100%; max-width: 420px; background: #fff; border: 1px solid #e5e5e5; border-radius: 8px; padding: 20px 24px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.small-gray { color: #6e6e6e; font-size: 13px; margin: 0.4rem 0; }
.err-title { color: #ef4444; font-size: 16px; margin: 0 0 8px; }
.ok-title { color: #22c55e; font-size: 16px; margin: 0 0 8px; }
.db { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; text-align: left; background: #f8f9fa; padding: 8px; border-radius: 4px; }
.dn { font-size: 13px; font-weight: 600; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdsc { font-size: 13px; color: #666; line-height: 1.3; margin-bottom: 15px; }
.cs { background: #1a1a1a; border-radius: 6px; padding: 12px; margin-bottom: 15px; }
.cl { color: #9ca3af; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.cv { font-size: 26px; font-weight: bold; color: #038387; font-family: Consolas, monospace; letter-spacing: 5px; cursor: pointer; }
.ss { text-align: left; margin-bottom: 15px; border-top: 1px solid #eee; padding-top: 10px; }
.st { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 12px; color: #4b5563; }
.sn { width: 18px; height: 18px; background: #038387; color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; flex-shrink: 0; }
.icons { display: flex; justify-content: center; gap: 15px; margin-bottom: 15px; }
.icons img { width: 28px; height: 28px; }
.bp { width: 100%; height: 44px; background: #0078d4; border: none; border-radius: 22px; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.bp:hover { background: #005a9e; }
.ft { background: #fff; border-top: 1px solid #e5e5e5; padding: 10px 20px; flex-shrink: 0; text-align: center; }
.fi { font-size: 10px; color: #8e8e8e; }
.sl { width: 40px; height: 40px; border: 3px solid #f3f3f3; border-top: 3px solid #1473e6; border-radius: 50%; animation: sp 1s linear infinite; margin: 0 auto 10px; }
@keyframes sp { to { transform: rotate(360deg); } }