:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #222427;
  background: #f5f6f7;
  color-scheme: light dark;
  --surface: #fff;
  --text: #222427;
  --muted: #62676e;
  --border: #dfe2e6;
  --button: #26282d;
  --button-text: #fff;
  --focus: #8551de;
}
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
button, input { font: inherit; }
a { color: inherit; }
a, button, input, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 36px; position: relative; z-index: 1; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 21px; font-weight: 650; text-decoration: none; }
.brand img { object-fit: contain; }
.header-label { color: var(--muted); font-size: 12px; }
.content { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 24px 56px; position: relative; z-index: 1; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; width: 100%; max-width: 420px; padding: 36px; box-shadow: 0 8px 30px #11182706, 0 1px 3px #11182703; }
.page-mark { display: block; object-fit: contain; margin-bottom: 24px; }
h1 { margin: 0; font-size: 26px; font-weight: 650; line-height: 1.25; text-wrap: balance; overflow-wrap: anywhere; }
.lede { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 12px 0 28px; }
form { margin: 0; }
.field-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 9px; }
input[type=password], input[type=text] { width: 100%; min-width: 0; height: 46px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); color: var(--text); padding: 0 12px; font-size: 14px; transition: border-color 150ms; }
input::placeholder { color: var(--muted); opacity: .8; }
input[aria-invalid=true] { border-color: #c83b4e; }
.check-label { display: flex; align-items: center; gap: 8px; width: fit-content; min-height: 44px; margin: 4px 0 14px; font-size: 12px; color: var(--muted); cursor: pointer; }
input[type=checkbox] { accent-color: var(--button); width: 15px; height: 15px; margin: 0; }
.primary { display: block; width: 100%; min-height: 44px; padding: 11px 16px; border: 1px solid transparent; border-radius: 5px; font-size: 14px; font-weight: 600; line-height: 1.4; background: var(--button); color: var(--button-text); cursor: pointer; transition: opacity 150ms; }
.primary:hover { opacity: .88; }
.primary:disabled { opacity: .65; cursor: wait; }
.alert { border-left: 3px solid #c83b4e; background: #fceef0; color: #9c2636; padding: 12px; margin: -6px 0 24px; font-size: 13px; line-height: 1.5; border-radius: 3px; }
.site-footer { position: relative; z-index: 1; text-align: center; color: var(--muted); font-size: 12px; padding: 22px 24px; line-height: 1.5; }
.site-footer a { text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; margin: 0 0 14px; line-height: 1.5; }
.status-dot { flex: 0 0 6px; height: 6px; border-radius: 50%; background: #73d4ae; }
.status-dot.amber { background: #bc821f; }
.details { font-size: 13px; margin: 0 0 24px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
summary { cursor: pointer; min-height: 46px; padding: 14px 0; color: var(--muted); }
summary:hover { color: var(--text); }
.provider-list { margin: 0 0 16px; }
.provider-list div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; padding: 8px 0; }
.provider-list dt { color: var(--muted); }
.provider-list dd { margin: 0; font-size: 11px; overflow-wrap: anywhere; }
code { font-family: ui-monospace, Consolas, monospace; }
.startup { background: #070d16; color: #f7f9fb; --text: #f7f9fb; --muted: #c4cad3; --border: #ffffff2e; }
.startup-scene { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; }
.startup::before { content: ""; position: fixed; inset: 0; background: linear-gradient(90deg, #020810b0 0%, #02081040 38%, transparent 60%); z-index: 1; pointer-events: none; }
.startup .content { justify-content: flex-start; padding-left: 6%; padding-right: 6%; padding-bottom: 100px; }
.startup-content { width: 100%; max-width: 410px; }
.startup h1 { font-size: 38px; }
.startup .lede { margin-bottom: 28px; color: #d2d6de; max-width: 320px; }
.startup-status { display: flex; align-items: center; gap: 10px; min-height: 28px; font-size: 13px; color: #eef1f6; line-height: 1.5; }
.spinner { flex: 0 0 15px; height: 15px; border: 2px solid #ffffff40; border-top-color: #f1c577; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.startup-details { margin: 24px 0 0; border-bottom: 0; max-width: 380px; }
.startup-details summary { font-size: 12px; }
#log-output { max-height: 176px; overflow: auto; overscroll-behavior: contain; padding: 12px; background: #060c16ed; color: #c4cbd7; font: 11px/1.65 ui-monospace, Consolas, monospace; border: 1px solid #ffffff20; border-radius: 4px; }
.log-line { white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 7px; }
.log-line:last-child { margin-bottom: 0; }
.startup .site-footer { color: #c4cad3; text-shadow: 0 1px 8px #000; }
@media (prefers-color-scheme: dark) {
  :root { background: #111215; color: #eff0f2; --surface: #191b1f; --text: #eff0f2; --muted: #a1a6af; --border: #35383e; --button: #eff0f2; --button-text: #202227; --focus: #b592f5; }
  .alert { background: #3a2027; color: #ffb2bf; }
}
@media (max-width: 760px) {
  .site-header { padding: 22px 24px; }
  .header-label { display: none; }
  .content { padding: 24px 20px; }
  .panel { padding: 28px; }
  .startup-scene { height: 65svh; object-position: 69% center; }
  .startup::before { background: linear-gradient(180deg, #02081035 0%, transparent 25svh, #070d16 62svh); }
  .startup .content { align-items: flex-start; justify-content: center; padding: 37svh 24px 24px; }
  .startup-content { max-width: 420px; }
  .startup h1 { font-size: 30px; }
  .startup .site-footer { text-align: left; }
}
@media (max-width: 360px) {
  .panel { padding: 24px 20px; }
  h1 { font-size: 24px; }
  .startup h1 { font-size: 28px; }
}
@media (max-height: 500px) and (min-width: 761px) {
  .startup .content { padding-top: 12px; padding-bottom: 12px; }
  .startup .site-header { padding-top: 16px; padding-bottom: 16px; }
  .startup h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
