/* Optional Tron-inspired skin; layout and behavior remain in the base files. */
:root {
  color-scheme: dark;
  --paper: #050c12;
  --panel: #0a1822;
  --ink: #e1f4fb;
  --muted: #9ab2c1;
  --line: #264451;
  --accent: #6cecff;
  --amber: #dba458;
  --error: #ff9a91;
  --panel-pad: 28px;
  --font-body: "Trebuchet MS", "DejaVu Sans", Arial, sans-serif;
  --font-mono: Consolas, "Liberation Mono", monospace;
}
body { isolation: isolate; font: 16px/1.6 var(--font-body); }
.grid-backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background-image: linear-gradient(#46b9d414 1px, transparent 1px), linear-gradient(90deg, #46b9d414 1px, transparent 1px); background-size: 96px 96px; }
.grid-backdrop::before {
  content: "";
  position: absolute;
  inset: 38% -40% -30%;
  background-image: linear-gradient(#46b9d426 1px, transparent 1px), linear-gradient(90deg, #46b9d426 1px, transparent 1px);
  background-size: 76px 76px;
  transform: perspective(540px) rotateX(57deg);
  transform-origin: center bottom;
}
.grid-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--paper), #050c1299 45%, #050c1200); }
main { max-width: 860px; padding: 36px 30px 64px; }
.site-header { justify-content: space-between; gap: 20px; padding-bottom: 18px; margin-bottom: 36px; }
.brand-logo { width: 100px; filter: grayscale(1) invert(1); mix-blend-mode: screen; }
.interface-label { color: var(--muted); font: 10px/1.6 var(--font-mono); letter-spacing: .14em; text-align: right; }
#setup { position: relative; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font: 11px/1.6 var(--font-mono); letter-spacing: .16em; }
.setup-eyebrow { padding-top: 8px; padding-right: 120px; }
h1 { margin-bottom: 36px; font-size: clamp(26px, 5.4vw, 54px); font-weight: 400; line-height: 1.2; letter-spacing: -.045em; text-transform: uppercase; text-shadow: 0 0 28px #6cecff26; }
h2 { line-height: 1.3; letter-spacing: -.025em; }
.identity-disc { position: absolute; top: -4px; right: 2px; width: 92px; height: 92px; border: 2px solid var(--accent); border-radius: 50%; box-shadow: 0 0 22px #6cecff26, inset 0 0 18px #6cecff15; pointer-events: none; }
.identity-disc::before { content: ""; position: absolute; inset: 9px; border: 1px solid #6cecff80; border-radius: 50%; }
.identity-disc::after { content: ""; position: absolute; inset: 19px; border: 1px solid var(--line); border-radius: 50%; }
a { text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: #b6f7ff; }
#install-form { position: relative; border: 1px solid var(--line); border-radius: 3px; padding: 12px 0 26px; background: var(--panel); box-shadow: 0 20px 70px #0006, 0 0 32px #6cecff08; }
#install-form::before { content: ""; position: absolute; top: -1px; left: -1px; width: 54px; height: 2px; background: var(--accent); box-shadow: 0 0 12px #6cecff80; }
fieldset { padding: 22px var(--panel-pad) 28px; }
fieldset:first-child { border-top: 0; }
legend { padding: 0 10px; color: var(--accent); font: 12px/1.6 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.row { gap: 20px; margin-bottom: 22px; }
input, select { min-height: 48px; margin-top: 8px; border-color: #4c6d7f; border-radius: 2px; background: #07121b; font: 16px/1.5 var(--font-body); transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: #849eac; opacity: 1; }
input:hover, select:hover { border-color: #7da5b5; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 16px #6cecff12; }
summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.field-group { margin-bottom: 22px; }
.field-group:focus-within > label { color: var(--accent); }
.setup-guidance { margin-bottom: 22px; line-height: 1.75; }
.setup-guidance p { margin-bottom: 12px; }
.setup-checklist { color: var(--muted); }
.setup-checklist li { margin: 7px 0; padding-left: 2px; }
.setup-checklist li::marker { color: var(--accent); }
.setup-checklist strong { color: var(--ink); font-weight: 600; }
.field-help, .hint { font-size: 13px; line-height: 1.65; }
.field-help { margin-top: 6px; }
.setup-notice { margin: 0 var(--panel-pad) 18px; }
.setup-notice summary { min-height: 44px; padding: 10px 0; }
.setup-notice summary::marker { color: var(--amber); }
.setup-notice p { margin: 4px 0 12px; }
button { min-height: 50px; border: 1px solid var(--accent); border-radius: 2px; color: #04131b; font: 700 15px/1.5 var(--font-body); transition: background-color .15s, box-shadow .15s; }
button:hover { background: #a3f3ff; box-shadow: 0 0 22px #6cecff30; }
button:disabled { box-shadow: none; }
#install { margin: 0 var(--panel-pad); width: calc(100% - var(--panel-pad) * 2); }
#form-error { margin: 0 var(--panel-pad) 18px; }
.error { overflow-wrap: anywhere; }

/* Keep state and authorization clear, without decorative motion. */
progress { height: 6px; }
progress::-webkit-progress-bar { background: var(--line); border-radius: 1px; }
progress::-webkit-progress-value { background: var(--accent); box-shadow: 0 0 12px #6cecff66; }
.progress-item { padding-top: 7px; padding-bottom: 7px; margin: 2px 0; border-radius: 2px; line-height: 1.5; }
.progress-item.pending .task-icon { color: var(--muted); }
.progress-item.active { background: #6cecff0d; }
.progress-item.active .task-icon { border-color: var(--line); border-top-color: var(--accent); }
.progress-timing { color: var(--muted); font: 13px/1.7 var(--font-mono); }
#oauth { padding: 22px; border-color: var(--amber); border-radius: 3px; background: #1e1b13; color: #ffe1ae; }
#oauth a { color: #ffca85; }
#oauth .hint, #oauth-code.pending { color: #d6c4a7; }
#oauth a:hover { color: #ffe1ae; }
code { font-family: var(--font-mono); }
#oauth .compact-button { min-height: 44px; border-color: var(--amber); background: transparent; color: #ffe1ae; }
#oauth .compact-button:hover { background: #3c301f; box-shadow: none; }
.debug-info { margin-top: 28px; }
.debug-info summary { min-height: 44px; padding: 10px 0; }
.progress-signals { font-family: var(--font-mono); }
@media (prefers-reduced-motion: reduce) {
  input, select, button { transition: none; }
}
@media (max-width: 520px) {
  :root { --panel-pad: 18px; }
  main { padding: 24px 16px 40px; }
  .site-header { gap: 14px; margin-bottom: 28px; }
  .brand-logo { width: 88px; }
  .interface-label { font-size: 9px; letter-spacing: .08em; max-width: 150px; }
  .setup-eyebrow { padding-right: 0; font-size: 10px; letter-spacing: .1em; }
  .identity-disc { display: none; }
  h1 { margin-bottom: 26px; }
  .row { gap: 18px; }
  fieldset { padding-top: 20px; padding-bottom: 24px; }
  #oauth { padding: 18px; }
}
