:root { color-scheme: dark; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; background: #080b09; color: #eef3ef; --green: #20d46a; --line: #29312c; --muted: #98a69c; --surface: #121713; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; padding: 42px 24px 28px; display: flex; flex-direction: column; align-items: center; }
a { color: var(--green); text-underline-offset: 3px; }
main { width: 100%; max-width: 1000px; margin: 0 auto; }
main:has(#login-panel:not([hidden])) { max-width: 460px; margin: auto; }
.brand { display: flex; align-items: center; gap: 20px; margin: 0 0 30px; padding-bottom: 0; border-bottom: 0 solid var(--line); }
.brand img { display: block; width: 133px; height: 38px; object-fit: contain; }
.brand span { border-left: 1px solid #354039; padding-left: 20px; color: var(--muted); font-size: 11px; line-height: 1.5; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; white-space: pre-line; }
h1 { margin: 0 0 12px; font-size: 28px; line-height: 1.2; letter-spacing: -.8px; font-weight: 650; }
h2 { margin: 0 0 24px; font-size: 23px; line-height: 1.3; letter-spacing: -.6px; font-weight: 600; }
p { line-height: 1.65; }
.page-heading { margin-bottom: 20px; }
.intro { margin: 0; color: var(--muted); font-size: 14px; }
.panel { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.login-panel { width: 100%; max-width: 460px; margin: 0 auto; }
label { display: block; font-size: 13px; font-weight: 600; margin: 20px 0 8px; }
input, select, button { font: inherit; border-radius: 9px; min-height: 46px; }
input, select { width: 100%; background: #0b0f0c; color: #eef3ef; border: 1px solid #354039; padding: 12px 13px; font-size: 15px; }
input::placeholder { color: #77867c; }
input:focus, select:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
button { width: 100%; margin-top: 22px; border: 1px solid transparent; padding: 12px 16px; background: var(--green); color: #052711; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
button:hover { background: #4ce48a; }
button:disabled { opacity: .55; cursor: wait; }
.secondary { background: transparent; color: #d3ddd6; border-color: #354039; margin-top: 10px; }
.secondary:hover { background: #1b241e; }
.help { color: var(--muted); font-size: 12px; margin: 14px 0 0; }
.message { margin: 0 0 20px; padding: 12px 15px; background: #112719; border: 1px solid #265636; border-radius: 10px; color: #a7e6bc; font-size: 13px; }
.message.error { background: #301817; color: #ffb6ad; border-color: #68403b; }
.message:empty { display: none; }
.account-line { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 30px; }
.account-line div { min-width: 0; display: grid; gap: 6px; }
.account-line span { color: var(--muted); font-size: 12px; }
.account-line strong { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.text-button { width: auto; flex-shrink: 0; background: #151c17; margin: 0; padding: 8px 14px; border-color: #2b382f; color: #b9c6bd; font-size: 12px; font-weight: 500; min-height: 38px; }
.text-button:hover { color: #fff; background: #202b24; border-color: #415548; }
.dashboard-grid { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); gap: 24px; align-items: start; }
.dashboard-grid:has(#pair-form[hidden]) { grid-template-columns: 1fr; }
.pair-code, .verification-code { font-size: 23px; text-transform: uppercase; letter-spacing: 2px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 12px; line-height: 1.6; color: #becac2; }
.check input { width: 17px; height: 17px; min-height: 17px; margin: 0; flex-shrink: 0; accent-color: var(--green); }
.fleet-panel { padding: 0; border: 0; background: none; }
.fleet-heading { margin: 0 0 18px; display: flex; align-items: center; gap: 12px; }
.fleet-heading h2 { margin: 0; font-size: 27px; letter-spacing: -.8px; }
.fleet-heading::after { content: ""; height: 1px; flex: 1; background: var(--line); margin-left: 6px; }
.printers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.printer-card { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 14px; align-content: start; padding: 18px; background: #141b16; border: 1px solid #2b382f; border-radius: 16px; overflow-wrap: anywhere; box-shadow: 0 12px 32px #0002; }
.printer-header { min-width: 0; display: flex; align-items: center; gap: 10px; }
.printer-icon { width: 40px; height: 40px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid #385342; border-radius: 11px; background: #1d3023; color: #8ddfa9; }
.printer-icon svg { display: block; width: 28px; height: 28px; }
.printer-identity { min-width: 0; display: grid; gap: 3px; }
.printer-identity > strong { font-size: 18px; line-height: 1.3; font-weight: 650; letter-spacing: -.4px; }
.printer-state { display: flex; align-items: center; gap: 7px; color: #a6b5ac; font-size: 12px; line-height: 1.5; }
.printer-state::before { content: ""; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: #7b8c81; }
.printer-card:is([data-state="printing"], [data-state="finished"]) .printer-state { color: #85dfa3; }
.printer-card:is([data-state="printing"], [data-state="finished"]) .printer-state::before { background: var(--green); box-shadow: 0 0 0 3px #20d46a12; }
.printer-card:is([data-state="paused"], [data-state="preparing"]) .printer-state::before { background: #e3b869; }
.printer-card[data-state="failed"] .printer-state::before { background: #ee8a80; }
.printer-progress { display: contents; }
.printer-progress-heading { display: flex; align-items: center; align-self: center; }
.printer-progress-heading > span { display: none; }
.printer-progress-heading > strong { color: var(--green); font-size: 28px; line-height: 1; font-weight: 650; letter-spacing: -1px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.printer-track { grid-column: 1 / -1; height: 6px; overflow: hidden; background: #2b352e; border-radius: 6px; }
.printer-fill { display: block; height: 100%; width: 0; background: var(--green); border-radius: inherit; }
.printer-track.is-unknown { background: #253029; border: 1px dashed #526157; }
.printer-metrics { grid-column: 1 / -1; display: flex; gap: 18px; padding-top: 12px; border-top: 1px solid #2b382f; }
.printer-metric { flex: 1; min-width: 0; display: grid; align-content: start; gap: 3px; }
.printer-metric > span { color: #a6b5ac; font-size: 11px; line-height: 1.4; }
.printer-metric > strong { font-size: 16px; line-height: 1.5; letter-spacing: -.3px; font-weight: 600; font-variant-numeric: tabular-nums; }
.printer-updated { grid-column: 1 / -1; display: block; color: #86978c; font-size: 10px; line-height: 1.6; }
.printer-empty { color: var(--muted); font-size: 14px; padding: 30px; border: 1px dashed #35443b; border-radius: 16px; }
.actions { margin-top: 16px; }
.danger { width: auto; margin: 0; padding: 8px 0; background: transparent; color: #d68d87; font-size: 12px; font-weight: 400; }
.danger:hover { background: transparent; color: #ffb1a8; text-decoration: underline; }
footer { margin-top: 30px; padding-top: 0; border-top: 0 solid var(--line); color: #8b9b90; font-size: 11px; text-align: center; }
footer div { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
footer a { color: #a8b6ad; }
footer p { margin: 12px 0 0; }
.footer-links { align-items: center; }
.footer-links .danger { min-height: 32px; padding: 4px 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.language-control { display: inline-flex; align-items: center; gap: 10px; margin: 12px 0 0; font-size: 11px; font-weight: 400; }
.language-control select { width: auto; min-height: 34px; padding: 5px 10px; font-size: 12px; background: #121713; }
.privacy-page { max-width: 760px; }
article p { margin: 0 0 18px; color: #b1beb5; font-size: 14px; }
article h2 { margin-top: 28px; margin-bottom: 12px; font-size: 18px; }
article p:last-child { margin-bottom: 0; }
[hidden] { display: none !important; }
@media (max-width: 720px) { .dashboard-grid { grid-template-columns: 1fr; } .panel { padding: 24px; } .fleet-panel { padding: 0; } }
@media (max-width: 420px) {
  body { padding: 26px 16px 20px; }
  .brand { gap: 15px; margin-bottom: 24px; padding-bottom: 22px; }
  .brand img { width: 119px; height: 34px; }
  .brand span { padding-left: 15px; font-size: 10px; letter-spacing: 1.1px; }
  .panel { padding: 22px; }
  .fleet-panel { padding: 0; }
  .account-line { gap: 12px; margin-bottom: 26px; }
  .account-line strong { font-size: 13px; }
  .text-button { padding-inline: 10px; }
  .fleet-heading h2 { font-size: 24px; }
  .printers { gap: 16px; }
  .printer-card { padding: 16px; border-radius: 14px; }
  .printer-progress-heading > strong { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { button { transition: none; } }
