* { box-sizing: border-box; }
:root { color-scheme: dark; font-family: system-ui, -apple-system, sans-serif; }
body { margin: 0; background: #101b19; color: #eef2e6; }
main { max-width: 800px; margin: auto; padding: clamp(24px, 6vw, 60px) 24px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 15px; letter-spacing: .16em; text-decoration: none; color: inherit; }
.mark { display: grid; place-items: center; border-radius: 50%; background: #c8e994; color: #17201b;
  width: 38px; height: 38px; font-size: 28px; font-weight: 700; }
.label { margin-top: 64px; color: #c8e994; font-size: 11px; letter-spacing: .14em; }
h1 { margin: 18px 0; font-size: clamp(32px, 6vw, 52px); line-height: 1.1; font-weight: 600; letter-spacing: -.04em; }
h2 { margin-top: 0; font-size: 21px; }
.intro { max-width: 540px; font-size: 17px; line-height: 1.6; color: #bbc9c2; }
section, form { margin-top: 24px; padding: 24px; border: 1px solid #3f5148; border-radius: 18px; background: #192923; }
section form { padding: 0; border: 0; }
label { display: block; margin: 0 0 18px; font-size: 14px; color: #d8e0d6; }
input { display: block; width: 100%; min-height: 48px; padding: 12px; margin-top: 8px; border: 1px solid #657b6c;
  border-radius: 8px; background: #101b19; color: #eef2e6; font: inherit; font-size: 16px; }
button, .primary { display: inline-block; min-height: 46px; border: 0; border-radius: 10px; padding: 12px 20px;
  background: #c8e994; color: #17201b; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; }
.quiet { background: transparent; color: #d6e3d0; border: 1px solid #526253; margin: 8px 8px 0 0; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
button:disabled { cursor: wait; opacity: .6; }
.hint, footer { color: #9daf9f; font-size: 13px; line-height: 1.7; }
footer { margin-top: 40px; }
#message:not(:empty) { padding: 16px; border: 1px solid #d6ba7d; border-radius: 12px; margin-top: 24px; color: #f0dbb0; }
.qr { display: block; max-width: 100%; border-radius: 12px; margin: 24px 0; }
.secret { display: block; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.8; padding: 16px;
  background: #0f1915; border-radius: 8px; user-select: all; }
.credentials { border-color: #c8e994; }
.check { display: flex; align-items: center; gap: 12px; }
.check input { width: 20px; height: 20px; min-height: 20px; margin: 0; }
fieldset { border: 0; padding: 12px 0; margin: 0; }
legend { font-size: 13px; color: #9daf9f; }
[hidden] { display: none !important; }
@media (max-width: 450px) { form, section { padding: 18px; } main { padding: 24px 18px; } .label { margin-top: 44px; } }

.activity-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 20px;
  padding: 16px 0; border-top: 1px solid #3f5148; overflow-wrap: anywhere; }
.activity-row:first-child { margin-top: 16px; }
@media (max-width: 450px) { .activity-row { grid-template-columns: minmax(0, 1fr); } }

.admin-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:24px 0; }
.admin-tabs a { padding:12px 16px; border-radius:10px; color:#d6e3d0; text-decoration:none; border:1px solid #526253; }
.admin-tabs a[aria-current] { background:#c8e994; color:#17201b; border-color:#c8e994; }
.admin-content { margin-top:24px; }
.danger { background:#56352f; color:#ffd4ca; border:1px solid #9e6555; margin:8px 8px 0 0; }
.account-menu { position:relative; margin-left:auto; }
.account-menu summary { cursor:pointer; padding:12px; white-space:nowrap; }
.account-menu[open] { padding:12px; border:1px solid #526253; border-radius:12px; background:#192923; }
.account-menu button { display:block; }
header { flex-wrap:wrap; }
select { display:block; width:100%; margin-top:8px; min-height:48px; padding:12px; background:#101b19; color:#eef2e6;
  border:1px solid #657b6c; border-radius:8px; font:inherit; }
.build-row { padding:16px 0; border-bottom:1px solid #3f5148; }
.build-row .check { margin:0; align-items:flex-start; }
.build-row input { flex-shrink:0; }
.build-id, section h2 { overflow-wrap:anywhere; }
dialog { max-width:min(540px,calc(100vw - 32px)); padding:0; border:1px solid #657b6c; border-radius:18px;
  color:#eef2e6; background:#192923; }
dialog::backdrop { background:#000a; }
dialog form { margin:0; border:0; overflow-wrap:anywhere; }
select:focus-visible, summary:focus-visible { outline:3px solid #fff; outline-offset:3px; }
.build-description { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.65; color:#d8e0d6; }
.release-version { display:flex; flex-wrap:wrap; align-items:center; gap:12px; font-weight:650; overflow-wrap:anywhere; }
.release-badge { padding:4px 10px; border-radius:20px; background:#304b35; color:#c8e994; font-size:12px; }
.back-link { display:inline-block; color:#d6e3d0; padding:12px 0; margin-right:16px; }
