:root {
  color-scheme: light;
  --bg: #f8f4ea;
  --text: #153e47;
  --muted: #516b70;
  --accent: #087c88;
  --line: #c5d8d6;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 8% 0%, #70cbd333, transparent 48%),
    radial-gradient(ellipse at 95% 20%, #ecd09b44, transparent 50%), var(--bg);
  color: var(--text);
}
a {
  color: inherit;
  text-decoration: none;
}
.page {
  max-width: 1200px;
  margin: auto;
  padding: 0 48px;
}
header {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #c5d8d6;
}
.brand {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
}
.brand span,
h1 span {
  color: #087c88;
}
h1 {
  margin: 0 0 30px;
  font-weight: 800;
  line-height: 0.99;
}
h2 {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 0 0 12px;
}
label {
  display: block;
  font-size: 14px;
  margin: 18px 0 8px;
  font-weight: 600;
}
input,
textarea,
button {
  font: inherit;
  width: 100%;
  border-radius: 6px;
}
input,
textarea {
  display: block;
  background: #ffffff;
  border: 1px solid #9ebaba;
  color: var(--text);
  padding: 13px 14px;
}
input::placeholder,
textarea::placeholder {
  color: #607b80;
}
input:focus,
textarea:focus {
  border-color: var(--accent);
}
button {
  margin-top: 20px;
  padding: 15px;
  border: 0;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}
button:hover {
  background: #066875;
}
button[type="submit"] {
  background: linear-gradient(110deg, #087c88, #096273);
}
button[type="submit"]:hover {
  background: linear-gradient(110deg, #066875, #074e60);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.admin-link {
  display: inline-block;
  width: auto;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
}
.admin-link:hover {
  background: #ffffff;
  color: var(--text);
  border-color: var(--accent);
}
.login-dialog {
  width: min(420px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  margin: auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 10px;
  background: #f8f4ea;
  color: var(--text);
  box-shadow: 0 24px 90px #0008;
}
.login-dialog::backdrop {
  background: rgb(0 0 0 / 72%);
  backdrop-filter: blur(5px);
}
body:has(.login-dialog[open]) {
  overflow: hidden;
}
.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.panel-top h2 {
  font-size: 28px;
  margin: 0;
}
.close-login {
  width: 36px;
  height: 36px;
  flex: none;
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}
.close-login:hover {
  background: #e1eeeb;
  color: var(--text);
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.status {
  line-height: 1.6;
  color: var(--accent);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  text-align: center;
  z-index: 1000;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 20px;
  background: #153e47;
  color: #ffffff;
  border: 1px solid #087c88;
  border-radius: 10px;
  box-shadow: 0 10px 35px #0006;
  font-size: 15px;
  line-height: 1.5;
}
.toast[hidden] {
  display: none;
}
@media (max-width: 850px) {
  .page {
    padding: 0 26px;
  }
}
@media (max-width: 650px) {
  header {
    min-height: 88px;
  }
  .panel-top {
    gap: 14px;
  }
  .panel-top h2 {
    font-size: 25px;
  }
  .toast {
    bottom: 16px;
  }
}
