:root {
  color-scheme: dark;
  --bg: #101316;
  --panel: #191e23;
  --line: #2b333b;
  --muted: #98a5ae;
  --text: #e8eef1;
  --accent: #c2f970;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    15px/1.6 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #222930;
  color: var(--text);
  padding: 10px 15px;
  cursor: pointer;
  transition: background 0.15s;
}
button:hover {
  background: #313c44;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--accent);
  color: #17200c;
  border-color: var(--accent);
  font-weight: 700;
}
.primary:hover {
  background: #d3ff95;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #39444d;
  border-radius: 8px;
  padding: 11px;
  background: #12171b;
  color: var(--text);
  outline: none;
}
input:focus,
select:focus {
  border-color: var(--accent);
}
label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 16px;
}
label input,
label select {
  display: block;
  margin-top: 7px;
}
a {
  color: var(--accent);
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}
h3 {
  font-size: 17px;
}
p.muted {
  margin-bottom: 20px;
}
.muted,
.footnote,
.footnote a {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
}
.logo {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: 9px;
  color: #14200b;
  font-size: 22px;
  letter-spacing: -2px;
}
.gate {
  max-width: 960px;
  margin: 9vh auto;
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 390px;
  column-gap: 65px;
}
.gate .brand {
  grid-column: 1/-1;
  margin-bottom: 60px;
}
.gate h1 {
  font-size: 58px;
  grid-column: 1;
}
.gate .muted {
  grid-column: 1;
  max-width: 350px;
}
.gate form {
  grid-column: 2;
  grid-row: 2/5;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 26px;
  margin-bottom: 22px;
}
.gate form button {
  width: 100%;
}
.gate form h2 {
  margin-bottom: 25px;
}
.error {
  color: #ffaaa0;
  font-size: 13px;
  margin: 12px 0 0;
}
.gate .card {
  align-self: start;
}
aside {
  width: 258px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #14191d;
  border-right: 1px solid var(--line);
  padding: 30px 19px;
  display: flex;
  flex-direction: column;
}
.brand {
  margin-bottom: 48px;
}
aside .eyebrow {
  padding-left: 13px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
nav button {
  background: none;
  border: 0;
  text-align: left;
  color: var(--muted);
  font-size: 14px;
  padding: 12px 13px;
}
nav button.active {
  background: #263027;
  color: var(--accent);
}
.aside-bottom {
  margin-top: auto;
  padding: 22px 13px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.aside-bottom p {
  margin: 12px 0;
}
.aside-bottom button {
  padding: 5px 12px;
  font-size: 12px;
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
}
main {
  max-width: 1480px;
  margin-left: 258px;
  padding: 40px 48px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}
.profile-select {
  width: 230px;
}
.profile-select label {
  margin-bottom: 4px;
}
.profile-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 35px;
  font-size: 12px;
}
.profile-strip strong {
  white-space: nowrap;
}
.profile-strip #profile-phase {
  color: var(--muted);
  overflow: hidden;
  max-width: 350px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.actions {
  display: flex;
  gap: 7px;
  margin-left: auto;
}
.actions button {
  padding: 7px 11px;
  font-size: 12px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  margin-bottom: 8px;
}
.message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.85;
  margin-bottom: 22px;
}
.menu-grid {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.menu-row {
  display: flex;
  gap: 9px;
}
.menu-row button {
  flex: 1;
  text-align: left;
  line-height: 1.45;
  padding: 13px 16px;
}
.text-input {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.text-input input {
  flex: 1;
  min-width: 0;
}
.text-input button {
  white-space: nowrap;
}
.footnote {
  font-size: 12px;
}
.pending {
  border: 1px solid #789547;
  background: #26301d;
  color: #dcf0be;
  border-radius: 9px;
  padding: 12px 18px;
  margin-bottom: 15px;
}
iframe {
  width: 100%;
  height: 780px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
#auth-state {
  color: var(--accent);
  font-weight: 600;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.admin-grid .card {
  margin: 0;
}
#admin-section > .card {
  margin-top: 22px;
}
.user-row {
  padding: 12px 0;
  display: flex;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.user-row span {
  flex: 1;
}
.user-row button {
  font-size: 12px;
  padding: 6px 9px;
}
.user-row small {
  display: block;
  color: var(--muted);
}
textarea {
  margin-top: 15px;
  font-size: 12px;
  min-height: 100px;
}
footer {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
footer span {
  letter-spacing: 0;
  font-weight: 400;
}
#toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  padding: 13px 25px;
  border: 1px solid #68813e;
  background: #27331d;
  color: #e6ffbe;
  border-radius: 10px;
  max-width: 90vw;
  box-shadow: 0 12px 50px #0008;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  main {
    padding: 30px 25px;
  }
  .profile-strip {
    flex-wrap: wrap;
  }
  .actions {
    width: 100%;
    margin-left: 0;
  }
  .profile-strip #profile-phase {
    max-width: none;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  aside {
    position: static;
    width: auto;
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  aside .brand {
    margin: 0 0 20px;
  }
  aside .eyebrow,
  .aside-bottom {
    display: none;
  }
  nav {
    flex-direction: row;
    overflow: auto;
    padding-bottom: 5px;
  }
  nav button {
    white-space: nowrap;
    font-size: 12px;
    padding: 9px;
  }
  main {
    margin: 0;
    padding: 25px 17px;
  }
  header {
    gap: 15px;
    align-items: start;
  }
  header h1 {
    font-size: 27px;
  }
  .profile-select {
    width: 150px;
  }
  .profile-strip {
    padding: 13px;
  }
  .section-heading {
    gap: 10px;
  }
  .section-heading p {
    font-size: 13px;
  }
  .card {
    padding: 19px;
  }
  .menu-row {
    flex-wrap: wrap;
  }
  .menu-row button {
    min-width: 120px;
  }
  .gate {
    display: block;
    margin: 3vh auto;
    max-width: 480px;
    padding: 25px;
  }
  .gate .brand {
    margin-bottom: 45px;
  }
  .gate h1 {
    font-size: 44px;
  }
  .gate form {
    margin-top: 35px;
  }
  .text-input {
    flex-direction: column;
  }
  footer {
    flex-direction: column;
    gap: 8px;
  }
  iframe {
    height: 650px;
  }
}

/* Two watch slots use the same data as the bot, with native progress bars. */
.slot-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:0 0 20px}
.slot-grid[hidden] {display:none}
.slot-card {background:linear-gradient(145deg,#1b2331,#12191f);border:1px solid #303d48;border-radius:20px;padding:26px;min-width:0;box-shadow:0 12px 30px #0002}
.drop-slot {border-top:3px solid #c6fa6b}.points-slot {border-top:3px solid #a99aff}
.slot-top,.progress-values {display:flex;justify-content:space-between;gap:12px;align-items:center}
.slot-state {font-size:12px;color:#b2bac5}.slot-state.watching {color:#c6fa6b}.slot-state.stale {color:#edc16a}
.slot-channel {font-size:29px;margin:24px 0 6px;overflow-wrap:anywhere}.slot-game {color:#9eabbb;margin:0 0 16px}
.slot-purpose {font-size:13px;line-height:1.6;color:#c3d2df}.slot-next {border-top:1px solid #ffffff12;padding-top:16px;margin-top:22px;color:#9eabbb;font-size:12px;line-height:1.6}
.reward-progress {padding:18px 0}.reward-campaign {display:block;color:#9eabbb;font-size:11px;margin-bottom:8px}.reward-name {display:block;font-size:16px;line-height:1.5}
.drop-progress {width:100%;height:9px;margin:16px 0 10px;border:0;border-radius:8px;overflow:hidden;background:#2a3340;accent-color:#c6fa6b}
.drop-progress::-webkit-progress-bar {background:#2a3340;border-radius:8px}.drop-progress::-webkit-progress-value {background:linear-gradient(90deg,#86d871,#c6fa6b);border-radius:8px}.drop-progress::-moz-progress-bar {background:#c6fa6b;border-radius:8px}
.progress-values {font-size:12px;color:#aebbc9}.progress-values strong {color:#c6fa6b}.slot-empty {padding:28px 0;color:#9eabbb;font-size:14px;line-height:1.7}
.form-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid label[hidden] {display:none}
.user-actions {display:flex;gap:8px;flex-wrap:wrap}.user-actions button {font-size:12px}.user-row {flex-wrap:wrap;gap:12px}
.quiet {background:transparent;color:#aeb8c9;font-size:12px;margin:8px 0 16px}.provision-card h3 {margin-top:0}
@media(max-width:850px) {.slot-grid,.form-grid {grid-template-columns:1fr}.slot-card {padding:20px}.slot-channel {font-size:24px}}
