:root {
  color-scheme: light;
  font-family: Roboto, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #273128;
  background: #faf8ef;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 14%, rgba(120, 151, 71, 0.18), transparent 26rem),
    radial-gradient(circle at 92% 84%, rgba(82, 108, 53, 0.10), transparent 24rem),
    #faf8ef;
}

.page-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card, .download-card {
  width: min(100%, 540px);
  padding: clamp(28px, 7vw, 48px);
  border: 1px solid #dbdfd2;
  border-radius: 28px;
  background: rgba(255, 254, 248, 0.96);
  box-shadow: 0 24px 70px rgba(30, 33, 31, 0.10);
}
.brand-mark {
  width: 76px; height: 76px; margin-bottom: 22px; overflow: hidden;
  padding: 6px; border: 1px solid #dbdfd2;
  border-radius: 22px; background: #faf8ef; box-shadow: 0 10px 24px rgba(30, 33, 31, 0.08);
}
.brand-mark.small { width: 64px; height: 64px; margin: 0; border-radius: 18px; flex: 0 0 auto; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.eyebrow { margin: 0 0 8px; color: #273128; font-size: 13px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow .brand-path { color: #607a40; }
h1 { margin: 0; font-size: clamp(30px, 7vw, 42px); line-height: 1.06; letter-spacing: -.035em; }
.intro { margin: 18px 0 28px; color: #60685b; font-size: 16px; line-height: 1.55; }
.download-header { display: flex; align-items: center; gap: 18px; }
.login-form { display: grid; gap: 10px; }
.login-form label { margin-top: 8px; font-size: 13px; font-weight: 750; }
.login-form input {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid #a9ada3;
  border-radius: 15px; outline: none; background: #fffef8; color: #273128; font: inherit;
}
.login-form input:focus { border-color: #526c35; box-shadow: 0 0 0 4px rgba(120, 151, 71, .24); }
button, .download-button, .admin-button {
  display: inline-flex; min-height: 54px; align-items: center; justify-content: center;
  margin-top: 18px; padding: 0 24px; border: 0; border-radius: 17px;
  background: #526c35; color: #fff; font: inherit; font-weight: 800;
  text-decoration: none; cursor: pointer; box-shadow: 0 9px 24px rgba(82, 108, 53, .22);
}
button:hover, .download-button:hover, .admin-button:hover { background: #41572b; }
button:focus-visible, .download-button:focus-visible, .admin-button:focus-visible { outline: 4px solid rgba(120, 151, 71, .45); outline-offset: 3px; }
.login-form button, .download-button, .admin-button { width: 100%; }
.admin-button { background: #273128; box-shadow: 0 9px 24px rgba(30, 33, 31, .18); }
.admin-button:hover { background: #343936; }
.form-error { margin: 8px 0 -2px; color: #9c2c1e; font-size: 14px; font-weight: 650; }
.build-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 8px; }
.build-info div { padding: 15px; border-radius: 16px; background: #f1efe6; }
.build-info dt { color: #60685b; font-size: 12px; font-weight: 700; }
.build-info dd { margin: 5px 0 0; font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
.checksum { margin-top: 22px; color: #60685b; font-size: 13px; }
.checksum summary { cursor: pointer; font-weight: 700; }
.checksum code { display: block; margin-top: 10px; padding: 12px; border-radius: 12px; background: #f1efe6; color: #273128; overflow-wrap: anywhere; }
.install-note { display: flex; gap: 12px; margin-top: 22px; padding: 14px; border-radius: 16px; background: #e8eedb; }
.install-note span { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #526c35; color: #fff; font-weight: 900; }
.install-note p { margin: 1px 0 0; color: #344525; font-size: 13px; line-height: 1.45; }
.text-button { width: auto; min-height: 38px; margin: 20px auto -12px; padding: 0 14px; background: transparent; color: #526c35; box-shadow: none; }
.text-button:hover { background: #f1efe6; }
.unavailable { padding: 18px; border-radius: 16px; background: #f1efe6; color: #60685b; text-align: center; }

@media (max-width: 480px) {
  .page-shell { padding: 12px; align-items: start; }
  .auth-card, .download-card { margin-top: 12px; padding: 26px 22px; border-radius: 24px; }
  .build-info { grid-template-columns: 1fr; }
}
.palette-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 18px;
  padding: 0 24px;
  border: 1px solid #b8c5a4;
  border-radius: 17px;
  background: #e8eedb;
  color: #405629;
  font-weight: 800;
  text-decoration: none;
}
.palette-button:hover { background: #dce7ca; }
.palette-button:focus-visible { outline: 3px solid #526c35; outline-offset: 3px; }
