:root {
  --bg: #0e1018;
  --bg2: #262a35;
  --top: #1a1e2b;
  --panel: #171b27;
  --text: #f1f3fa;
  --muted: #9aa0b4;
  --line: #262b3c;
  --accent: #617cd3;
  --accent-text: #0d0f16;
  --danger: #fffefe;
  --ok: #3fd49a;
  --warn: #f0b43c;
  --bar: #22b14c;
  --bar-text: #06210f;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.feature p {
  margin: 0;
}

.hl {
  color: var(--accent);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 30px 0 50px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.stat-cell {
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.stat-cell:last-child {
  border-right: 0;
}

.stat-cell b {
  display: block;
  color: var(--accent);
  font-size: 28px;
  letter-spacing: -0.02em;
}

.stat-cell span {
  color: var(--muted);
  font-size: 13px;
}

.story {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 40px;
}

.story h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.story-text p {
  margin: 0 0 16px;
  color: var(--muted);
}

.welcome {
  margin: 40px 0 6px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.intro {
  margin: 26px 0 0;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 368px));
  gap: 20px;
}

.quick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 30px;
  background: var(--panel);
  border: 0;
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.quick:hover {
  filter: brightness(1.15);
}

.quick.gold {
  background: linear-gradient(90deg, #4a4030, var(--panel));
}

.quick.blue {
  background: linear-gradient(90deg, #26305a, var(--panel));
}

.quick.white {
  background: linear-gradient(90deg, #5c5c5c, var(--panel));
}

.quick.green {
  background: linear-gradient(90deg, #1f4a3a, var(--panel));
}

.quick.red {
  background: linear-gradient(90deg, #4f2a30, var(--panel));
}

.quick.purple {
  background: linear-gradient(90deg, #3c2f5c, var(--panel));
}

.quick.gray {
  background: linear-gradient(90deg, #686868, var(--panel));
}

.divider {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3f4f8;
    --top: #ffffff;
    --panel: #ffffff;
    --text: #14161f;
    --muted: #6a6f80;
    --line: #e1e4ee;
    --accent: #5b5bf0;
    --accent-text: #ffffff;
    --danger: #d93f4c;
    --ok: #1f9d6b;
    --warn: #c98a10;
  }
}

:root[data-theme="light"] {
  --bg: #f3f4f8;
  --top: #ffffff;
  --panel: #ffffff;
  --text: #14161f;
  --muted: #6a6f80;
  --line: #e1e4ee;
  --accent: #5b5bf0;
  --accent-text: #ffffff;
  --danger: #d93f4c;
  --ok: #1f9d6b;
  --warn: #c98a10;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.jaxclassA {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 20px;
  background: var(--bg2);
  color: var(--danger);
  font-size: 14px;
  text-align: center;
}

svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-title {
  margin: 28px 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notice {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  padding: 18px 20px;
  border-left: 4px solid var(--danger);
  border-radius: 6px;
  background: color-mix(in srgb, var(--danger) 14%, var(--panel));
}

.notice svg {
  width: 20px;
  height: 20px;
  color: var(--danger);
}

.notice a {
  color: #ff6fb1;
  text-decoration: underline;
}

.notice.info {
  border-left-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--panel));
}

.notice.info svg {
  color: var(--accent);
}

.notice.ok {
  border-left-color: var(--ok);
  background: color-mix(in srgb, var(--ok) 14%, var(--panel));
}

.notice.ok svg {
  color: var(--ok);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 80px;
  padding: 0 28px;
  background: var(--top);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 300;
  min-width: 230px;
  font-size: 24px;
  white-space: nowrap;
}

.brand-link {
  display: flex;
}

.brand i {
  width: 1px;
  height: 32px;
  background: var(--muted);
  opacity: 0.5;
}

.brand b {
  color: var(--accent);
  font-weight: 300;
}

.top {
  display: flex;
  align-items: stretch;
  gap: 6px;
  height: 100%;
}

.top button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  opacity: 0.85;
}

.top button:hover {
  opacity: 1;
}

.top button.on {
  border-bottom-color: var(--text);
  font-weight: 700;
  opacity: 1;
}

.user {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 230px;
}

.user a {
  color: inherit;
}

.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 800;
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 20px;
  background: var(--bar);
  color: var(--bar-text);
  font-size: 14px;
  text-align: center;
}

.banner button {
  display: flex;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}

.wrap {
  max-width: 1380px;
  margin: 0;
  padding:0 100px;
}

.sub {
  display: flex;
  gap: 6px;
  margin: 44px 0 28px;
  border-bottom: 3px solid var(--line);
  overflow-x: auto;
}

.sub button {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: -3px;
  padding: 12px 20px;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--text);
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0.85;
}

.sub button.on {
  border-bottom-color: var(--text);
  font-weight: 700;
  opacity: 1;
}

.badge {
  padding: 0 7px;
  border-radius: 99px;
  background: var(--danger);
  color: #ffffff;
  font-size: 11px;
}

h1 {
  margin: 36px 0 4px;
  font-size: 26px;
}

.lead {
  margin: 0 0 22px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.list {
  display: grid;
  gap: 12px;
  margin-bottom: 40px;
}

.card {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.card.narrow {
  max-width: 420px;
}

.card.spaced {
  margin-bottom: 40px;
}

.stat b {
  display: block;
  font-size: 28px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  margin-right: 6px;
  padding: 1px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 12px;
}

.tags {
  margin-top: 4px;
}

.desc {
  margin: 10px 0 0;
}

.from {
  margin: 8px 0 0;
}

.credit h3 {
  margin: 4px 0 0;
}

label {
  display: block;
  margin: 14px 0 5px;
  font-size: 13px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.btn {
  display: inline-block;
  padding: 9px 16px;
  background: var(--accent);
  border: 0;
  border-radius: 9px;
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn.ghost {
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
}

.btn.bad {
  background: var(--danger);
  color: #ffffff;
}

.btn.good {
  background: var(--ok);
  color: #0d0f16;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.actions.flush {
  margin-top: 0;
}

.actions input {
  width: 200px;
  padding: 7px 10px;
}

.actions .btn {
  padding: 7px 12px;
}

.form-actions {
  margin-top: 18px;
}

.warn {
  margin-bottom: 18px;
  padding: 12px 14px;
  background: var(--panel);
  border-left: 4px solid var(--warn);
  border-radius: 8px;
}

.muted {
  color: var(--muted);
}

.empty {
  padding: 34px;
  color: var(--muted);
  text-align: center;
}

#toast {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  background: var(--text);
  border-radius: 9px;
  color: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
}

#toast.show {
  opacity: 1;
}

@media (max-width: 900px) {
  header {
    flex-wrap: wrap;
    height: auto;
    padding: 14px 16px;
  }

    .story {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stat-cell {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand,
  .user {
    min-width: 0;
  }

  .top {
    order: 3;
    width: 100%;
    height: 48px;
    overflow-x: auto;
  }

  .top button {
    padding: 0 12px;
  }

  .wrap {
    padding: 0 16px;
  }

  .sub {
    margin-top: 24px;
  }

  @media (max-width: 600px) {
  header {
    padding: 10px 14px;
    gap: 10px;
  }

  .brand {
    font-size: 18px;
  }

  .logo-link {
    gap: 10px;
  }

  .logo {
    height: 28px;
  }

  .brand i {
    height: 24px;
  }

  .user {
    gap: 8px;
    font-size: 13px;
  }

  .avatar {
    width: 28px;
    height: 28px;
  }

  .banner,
  .jaxclassA {
    padding: 10px 14px;
    font-size: 12px;
  }

  .welcome {
    margin-top: 28px;
    font-size: 26px;
  }

  .quick {
    padding: 22px 20px;
  }

  .actions input {
    width: 100%;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }
}
}
