@import url("/css/layout-spacing.css");
:root {
  color-scheme: dark;
  --bg: #15191d;
  --panel: #20252b;
  --line: #373e46;
  --muted: #a0a6ad;
  --text: #f0ede6;
  --blue: #83a9cc;
  --red: #c68f91;
  --accent: #cfb989;
  font-family:
    Inter,
    Segoe UI,
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 50% 0%, #282d32 0%, var(--bg) 65%);
  color: var(--text);
  min-height: 100dvh;
}
header {
  height: 76px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.brand {
  text-decoration: none;
  font-weight: 850;
  letter-spacing: 2px;
  color: var(--text);
}
button,
.button {
  font: inherit;
  font-weight: 650;
  background: #243247;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 16px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover,
.button:hover {
  background: #34455e;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.primary {
  background: var(--accent);
  color: #24221d;
  border-color: var(--accent);
}
.primary:hover {
  background: #ddc99f;
}
.danger {
  color: #ff99a8;
}
.wide {
  width: 100%;
  margin-top: 14px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 2px;
  color: var(--accent);
}
.muted,
small {
  color: var(--muted);
}
h1 {
  letter-spacing: -2px;
}
h2 {
  font-size: 18px;
  line-height: 1.3;
}
p {
  line-height: 1.65;
}
.blue {
  color: var(--blue);
}
.red {
  color: var(--red);
}
input {
  font: inherit;
  color: var(--text);
  background: #111a26;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px;
  min-width: 0;
}
dialog {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  width: min(480px, 92vw);
  box-shadow: 0 24px 100px #0008;
}
dialog::backdrop {
  background: #070d19bb;
  backdrop-filter: blur(5px);
}
dialog .actions {
  margin-top: 24px;
}
.setting {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}
.setting input {
  accent-color: var(--accent);
  width: 20px;
  height: 20px;
}
#toasts {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(420px, 90vw);
  pointer-events: none;
}
.toast {
  padding: 13px 20px;
  background: #263d34;
  border: 1px solid #5a9469;
  border-radius: 12px;
  margin-top: 8px;
  box-shadow: 0 5px 30px #0006;
}
.toast.error {
  background: #442837;
  border-color: #9e5066;
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  header {
    padding: 0 18px;
    height: 64px;
  }
  .brand {
    font-size: 13px;
    letter-spacing: 1px;
  }
  header button {
    padding: 8px;
    font-size: 12px;
  }
  .panel {
    padding: 16px;
  }
}
