* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #0b0f17; color: #f8fafc; min-height: 100vh; padding: 24px 16px; }
.center-shell { display: flex; min-height: calc(100vh - 48px); align-items: center; justify-content: center; }
.card { width: 100%; max-width: 480px; background: #111827; border: 1px solid #263244; border-radius: 18px; padding: 28px; box-shadow: 0 20px 40px rgba(0,0,0,0.45); }
.wizard { width: 100%; max-width: 880px; margin: 0 auto; background: #111827; border: 1px solid #263244; border-radius: 20px; padding: 28px; box-shadow: 0 20px 45px rgba(0,0,0,0.45); }
.eyebrow { color: #10b981; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
h1 { font-size: 22px; margin: 0 0 8px 0; line-height: 1.3; }
h2 { font-size: 16px; margin: 0 0 8px 0; line-height: 1.35; }
p { color: #9ca3af; font-size: 13px; line-height: 1.55; margin: 0 0 16px 0; }
.client-box { background: #1f2937; border: 1px solid #334155; border-radius: 12px; padding: 12px 14px; font-size: 12px; color: #cbd5e1; margin-bottom: 16px; word-break: break-word; line-height: 1.5; }
.preauth-box { background: rgba(16, 185, 129, 0.12); border: 2px solid #10b981; border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.preauth-title { font-size: 14px; font-weight: 800; color: #10b981; margin-bottom: 4px; }
.preauth-sub { font-size: 12px; color: #e2e8f0; margin-bottom: 12px; line-height: 1.45; }
label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; color: #e5e7eb; }
input[type="text"], input[type="password"], textarea { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid #374151; background: #0b0f17; color: #f8fafc; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; margin-bottom: 12px; }
input:focus, textarea:focus { outline: 2px solid #10b981; border-color: transparent; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 16px; border-radius: 10px; border: none; background: #059669; color: #ffffff; font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: none; transition: background 0.15s; }
.btn:hover { background: #047857; }
.btn-full { width: 100%; font-size: 14px; padding: 13px; }
.btn-sec { background: #1f2937; border: 1px solid #374151; color: #f8fafc; font-weight: 600; font-size: 12px; padding: 8px 12px; }
.btn-sec:hover { background: #334155; border-color: #10b981; }
.err { background: rgba(225, 29, 72, 0.16); border: 1px solid #f43f5e; color: #fda4af; padding: 10px 12px; border-radius: 10px; font-size: 12px; margin-bottom: 14px; }
.ok-banner { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.5); border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ok-head { margin-bottom: 4px; }
.ok-who { margin-left: 6px; font-size: 14px; }
.ok-scope { font-size: 12px; color: #cbd5e1; }
.ok-res { margin-top: 6px; font-size: 12px; color: #34d399; font-weight: 700; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; border-bottom: 1px solid #263244; padding-bottom: 12px; }
.tab-btn { padding: 9px 13px; border-radius: 10px; border: 1px solid #334155; background: #1f2937; color: #cbd5e1; font-weight: 600; font-size: 12px; cursor: pointer; }
.tab-btn[aria-selected="true"] { background: #059669; border-color: #10b981; color: #ffffff; font-weight: 700; }
.step-panel { background: #0b0f17; border: 1px solid #263244; border-radius: 14px; padding: 18px; margin-bottom: 18px; }
.step-list { margin: 0; padding-left: 20px; color: #e2e8f0; font-size: 13px; line-height: 1.7; }
.step-list li { margin-bottom: 8px; }
.url-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: #111827; border: 1px solid #334155; border-radius: 10px; padding: 10px 12px; margin: 10px 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #34d399; word-break: break-all; }
.prompt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 10px; }
.prompt-card { background: #0b0f17; border: 1px solid #263244; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.prompt-txt { font-size: 12px; color: #cbd5e1; line-height: 1.5; }
.hidden { display: none !important; }
.foot { margin-top: 14px; font-size: 11px; color: #64748b; line-height: 1.45; }
details summary { cursor: pointer; font-size: 12px; color: #9ca3af; font-weight: 600; margin-bottom: 10px; }