@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Bricolage";
  src: url("/static/fonts/bricolage.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}

:root {
  --mark: #0095ff;
  --radius: 6px;
  --display: "Bricolage", "Inter", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body.public {
  --bg: #f5f8fc;
  --raised: #fbfcfe;
  --panel: #ffffff;
  --line: #dbe2ec;
  --line-strong: #c2cddc;
  --text: #16181d;
  --soft: #3c414b;
  --muted: #6c7180;
  --accent: #0b5cf0;
  --accent-hover: #0047c9;
  --accent-soft: rgba(11, 92, 240, 0.1);
  --ok: #1d8656;
  --warn: #a8701a;
  --bad: #c13c33;
  --dev: #6a4ed6;
}

body.app {
  --bg: #0c0f14;
  --raised: #11151c;
  --panel: #151a22;
  --line: #232a35;
  --line-strong: #333c4a;
  --text: #e8ebf1;
  --soft: #b9c0cc;
  --muted: #858fa0;
  --accent: #2b8cff;
  --accent-hover: #4a9dff;
  --accent-soft: rgba(43, 140, 255, 0.13);
  --ok: #3fb68b;
  --warn: #e3a833;
  --bad: #ef6b63;
  --dev: #9b7cf0;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-feature-settings: "cv11";
}

body.app {
  font-size: 15px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

code,
.mono {
  font-family: var(--mono);
  font-size: 0.86em;
}

code {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--raised);
  color: var(--text);
  white-space: nowrap;
}

mark {
  padding: 0 0.08em;
  background: none;
  color: inherit;
  box-shadow: inset 0 -0.34em 0 rgba(0, 149, 255, 0.28);
}

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

.wide {
  padding: 0 24px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.bar {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 66px;
}

.brand img {
  display: block;
  height: 30px;
  width: auto;
}

.links {
  display: flex;
  gap: 26px;
  flex: 1;
}

.links a,
.account a {
  color: var(--soft);
  font-weight: 500;
}

.links a:hover,
.account a:hover {
  color: var(--text);
  text-decoration: none;
}

.links a.on {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--mark);
}

.account {
  display: flex;
  align-items: center;
  gap: 18px;
}

.account form {
  margin: 0;
}

.avatar {
  display: block;
  border-radius: 50%;
}

button.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

button.link:hover {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  text-decoration: none;
}

.button:disabled {
  opacity: 0.6;
  cursor: default;
}

.public .button {
  border-color: #002198;
  background: #002198;
  color: #fff;
  box-shadow: 3px 3px 0 var(--mark);
  transition: transform 0.08s, box-shadow 0.08s;
}

.public .button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--mark);
}

.public .button:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--mark);
}

.button.plain,
.public .button.plain {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.button.plain:hover,
.public .button.plain:hover {
  border-color: var(--text);
  background: var(--raised);
  transform: none;
}

.button.danger {
  border-color: #5c2b29;
  background: transparent;
  color: var(--bad);
}

.button.danger:hover {
  border-color: var(--bad);
  background: transparent;
}

.button.small {
  height: 32px;
  padding: 0 12px;
  font-size: 14px;
}

.app .button.small {
  height: 30px;
  font-size: 13px;
}

.button.big {
  height: 48px;
  padding: 0 22px;
  font-size: 16px;
}

main.page {
  padding-top: 72px;
  padding-bottom: 104px;
}

.kicker {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.lead {
  max-width: 620px;
  color: var(--soft);
  font-size: 19px;
  line-height: 1.55;
}

.app .lead {
  font-size: 16px;
}

.note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 24px;
  font-size: 68px;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.hero .lead {
  margin-bottom: 34px;
}

.discord {
  overflow: hidden;
  border: 1.5px solid var(--text);
  border-radius: 10px;
  background: #313338;
  box-shadow: 8px 8px 0 var(--text);
  color: #dbdee1;
  font-size: 14px;
}

.discord .channel {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid #26282c;
  color: #f2f3f5;
  font-weight: 600;
}

.discord .channel span {
  color: #80848e;
  font-size: 20px;
  font-weight: 400;
}

.discord .channel em {
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid #3f4147;
  color: #949ba4;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
}

.discord .messages {
  padding: 14px 16px 18px;
}

.msg {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
}

.msg + .msg {
  margin-top: 16px;
}

.msg .pfp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #5865f2;
  color: #fff;
  font-weight: 700;
}

.msg .pfp.staff {
  background: #c27c0e;
}

.msg .pfp img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.msg .who {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 2px;
}

.msg .who b {
  color: #f2f3f5;
  font-weight: 600;
}

.msg .who b.gold {
  color: #f0b232;
}

.msg .who .app-tag {
  padding: 0 4px;
  border-radius: 3px;
  background: #5865f2;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
}

.msg .who time {
  color: #949ba4;
  font-size: 12px;
}

.msg .used {
  margin-bottom: 4px;
  color: #949ba4;
  font-size: 13px;
}

.msg .used span {
  color: #c9cdfb;
}

.container {
  max-width: 440px;
  padding: 14px 16px;
  border: 1px solid #3f4147;
  border-radius: 8px;
  background: #2b2d31;
}

.container + .container {
  margin-top: 8px;
}

.container h4 {
  margin: 0 0 6px;
  color: #f2f3f5;
  font-size: 15px;
}

.container p {
  color: #dbdee1;
  line-height: 1.45;
}

.container b {
  color: #f2f3f5;
}

.container .link {
  color: #00a8fc;
}

.container .small {
  margin-top: 6px;
  color: #949ba4;
  font-size: 12px;
}

.container .split {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.container .thumb {
  flex: none;
  width: 66px;
  height: 66px;
  border-radius: 6px;
  background: #3f4147;
}

.container .btns {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.container .btns span {
  padding: 5px 14px;
  border-radius: 4px;
  background: #4e5058;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.container .btns span.green {
  background: #248046;
}

.container .btns span.red {
  background: #da373c;
}

section.block {
  margin-top: 128px;
}

.block > h2 {
  margin-bottom: 14px;
  font-size: 42px;
  letter-spacing: -0.02em;
}

.block > .lead {
  margin-bottom: 48px;
}

.timeline {
  position: relative;
  max-width: 820px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 79px;
  width: 1.5px;
  background: var(--line-strong);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 36px;
  padding: 0 0 26px;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 75px;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--text);
  border-radius: 50%;
  background: var(--bg);
}

.timeline li.hot::before {
  background: var(--mark);
  color: #ffffff;
}

.timeline time {
  padding-top: 1px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 14px;
  text-align: right;
}

.timeline strong {
  font-weight: 650;
}

.timeline p {
  color: var(--soft);
}

.parts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.part {
  padding: 22px;
  border: 1.5px solid var(--text);
  border-radius: 8px;
  background: var(--panel);
}

.part h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.part p {
  color: var(--soft);
  font-size: 15px;
}

.part code {
  display: inline-block;
  margin-top: 14px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1.5px solid var(--text);
  border-bottom: 1.5px solid var(--text);
}

.facts div {
  padding: 26px 24px 28px 0;
}

.facts div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line-strong);
}

.facts strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
}

.facts span {
  color: var(--soft);
  font-size: 15px;
}

.band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 44px 48px;
  border-radius: 10px;
  background: var(--text);
  color: #f5f8fc;
}

.band h2 {
  margin-bottom: 8px;
  font-size: 34px;
}

.band p {
  color: #b8bcc6;
  font-size: 17px;
}

.band .actions {
  flex: none;
}

.public .band .button {
  border-color: var(--mark);
  background: var(--mark);
  color: #ffffff;
  box-shadow: 3px 3px 0 #f5f8fc;
}

.public .band .button:hover {
  box-shadow: 4px 4px 0 #f5f8fc;
}

.band .button.plain {
  border-color: #4a4f5a;
  background: transparent;
  color: #f5f8fc;
  box-shadow: none;
}

.band .button.plain:hover {
  border-color: #f5f8fc;
  background: transparent;
}

.foot {
  margin-top: 0;
  background: var(--text);
  color: #b8bcc6;
  font-size: 14px;
}

.app .foot {
  display: none;
}

.foot .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 36px;
}

.foot h4 {
  margin: 0 0 14px;
  color: #f5f8fc;
  font-size: 13px;
  font-weight: 600;
}

.foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot li {
  margin-bottom: 9px;
}

.foot a {
  color: #b8bcc6;
}

.foot a:hover {
  color: #f5f8fc;
}

.foot .brand img {
  height: 28px;
  margin-bottom: 14px;
}

.foot .base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 22px;
  padding-bottom: 34px;
  border-top: 1px solid #2c3038;
}

.foot .made {
  color: #f5f8fc;
}

.prose {
  max-width: 740px;
}

.prose h1 {
  margin-bottom: 16px;
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.prose h2 {
  margin: 48px 0 12px;
  font-size: 26px;
  scroll-margin-top: 90px;
}

.prose h3 {
  margin: 28px 0 8px;
  font-size: 19px;
}

.prose p,
.prose li {
  color: var(--soft);
}

.prose p + p {
  margin-top: 14px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 6px;
}

.after {
  margin-top: 28px;
}

.features-list {
  margin-top: 56px;
}

.feature {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  padding: 44px 0;
  border-top: 1.5px solid var(--text);
  scroll-margin-top: 80px;
}

.feature h2 {
  font-size: 28px;
}

.feature .sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.feature ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature li {
  position: relative;
  padding-left: 20px;
  color: var(--soft);
}

.feature li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 9px;
  height: 3px;
  background: var(--text);
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 8px;
}

.toc a {
  padding: 5px 11px;
  border: 1.5px solid var(--line-strong);
  border-radius: 99px;
  color: var(--soft);
  font-size: 14px;
}

.toc a:hover {
  border-color: var(--text);
  color: var(--text);
  text-decoration: none;
}

.reference {
  margin-top: 56px;
}

.reference h2 {
  margin-bottom: 6px;
  font-size: 26px;
  scroll-margin-top: 90px;
}

.reference > p {
  margin-bottom: 18px;
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.reference table {
  border-top: 1.5px solid var(--text);
}

.reference td:first-child {
  width: 230px;
  padding-left: 0;
  white-space: nowrap;
}

.reference td:last-child {
  color: var(--soft);
}

.steps {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0 0 34px 64px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: -2px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--text);
  border-radius: 50%;
  background: var(--mark);
  font-family: var(--display);
  font-weight: 700;
  color: #ffffff;
}

.steps h3 {
  margin: 4px 0 8px;
  font-size: 21px;
}

.steps p + p {
  margin-top: 8px;
}

.faq details {
  border-top: 1px solid var(--line-strong);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.faq summary {
  padding: 18px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  padding: 0 0 20px;
}

.entry {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1.5px solid var(--text);
}

.entry time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 14px;
}

.entry h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.entry ul {
  margin: 0;
  padding-left: 20px;
}

.entry li {
  color: var(--soft);
}

.entry li + li {
  margin-top: 6px;
}

.statusline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 32px 0 14px;
  padding: 22px 24px;
  border: 1.5px solid var(--text);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 5px 5px 0 var(--text);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
}

.marker {
  display: inline-block;
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted);
}

.marker.ok { background: var(--ok); }
.marker.warn { background: var(--warn); }
.marker.bad { background: var(--bad); }
.marker.dev { background: var(--dev); }

.notice {
  margin: 0 0 24px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: 4px;
  background: var(--raised);
}

.notice.ok { border-left-color: var(--ok); }
.notice.error { border-left-color: var(--bad); }
.notice.warn { border-left-color: var(--mark); }

.servers {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--raised);
}

.servers li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.servers li:last-child {
  border-bottom: 0;
}

.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 600;
}

.icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.servers .name {
  flex: 1;
  min-width: 0;
}

.servers strong {
  display: block;
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.page-head {
  margin-bottom: 28px;
}

.page-head h1 {
  margin-bottom: 6px;
  font-size: 34px;
}

.page-head p {
  color: var(--muted);
}

.app main.page {
  padding-top: 48px;
  padding-bottom: 80px;
}

.dash {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 66px);
}

.side {
  position: sticky;
  top: 66px;
  height: calc(100vh - 66px);
  overflow-y: auto;
  padding: 20px 14px;
  border-right: 1px solid var(--line);
  background: var(--raised);
}

.side .guild {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 6px 6px;
  font-weight: 600;
}

.side .guild .icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.side .guild span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side .back {
  display: block;
  margin: 0 6px 18px;
  color: var(--muted);
  font-size: 13px;
}

.side h5 {
  margin: 18px 8px 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.side nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 4px;
  color: var(--soft);
  font-size: 14px;
}

.side nav a:hover {
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
}

.side nav a.on {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 500;
  box-shadow: inset 2px 0 0 var(--mark);
}

.content {
  min-width: 0;
  padding: 34px 40px 80px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raised);
}

.stat > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.stat strong {
  display: block;
  margin-top: 4px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

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

.cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

.cols > * {
  min-width: 0;
}

.card {
  overflow-x: auto;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--raised);
}

.card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.card > header h2 {
  font-size: 16px;
}

.card > header a {
  font-size: 13px;
}

.card .body {
  padding: 18px;
}

.card table td,
.card table th {
  padding-left: 18px;
  padding-right: 18px;
}

.card table tr:last-child td {
  border-bottom: 0;
}

.empty {
  padding: 24px 18px;
  color: var(--muted);
}

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

.nowrap {
  white-space: nowrap;
}

.kv {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px 16px;
  margin: 0;
}

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

.kv dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.on-text { color: var(--ok); }
.off-text { color: var(--muted); }

.badge {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge.Warning { border-color: #5a4a1e; color: var(--warn); }
.badge.Kick { border-color: #5a3a1e; color: #f0904c; }
.badge.Ban { border-color: #5c2b29; color: var(--bad); }
.badge.BOLO { border-color: #43356b; color: var(--dev); }
.badge.Strike, .badge.Suspension { border-color: #5a3a1e; color: #f0904c; }
.badge.Termination { border-color: #5c2b29; color: var(--bad); }
.badge.pending { border-color: #5a4a1e; color: var(--warn); }
.badge.active, .badge.accepted { border-color: #245c47; color: var(--ok); }
.badge.denied { border-color: #5c2b29; color: var(--bad); }

.count {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--mark);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.team {
  margin-bottom: 14px;
}

.team h3 {
  margin-bottom: 4px;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
}

.team p {
  color: var(--soft);
  font-size: 14px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.filters input[type="search"] {
  flex: 1;
  min-width: 200px;
}

input[type="text"],
input[type="search"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.filters select {
  width: auto;
}

textarea {
  height: auto;
  min-height: 120px;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 13px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.form {
  max-width: 720px;
}

.field {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.field:first-of-type {
  padding-top: 0;
}

.field > label,
.field > .label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.field .help {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.field .error {
  margin-top: 8px;
  color: var(--bad);
  font-size: 13px;
}

.field.toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.field.toggle .help {
  margin-bottom: 0;
}

.field.toggle .label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.switch {
  position: relative;
  flex: none;
  width: 40px;
  height: 22px;
  margin-top: 2px;
}

.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 11px;
  background: var(--line-strong);
  pointer-events: none;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.12s;
}

.switch input:checked + span {
  background: var(--accent);
}

.switch input:checked + span::after {
  transform: translateX(18px);
}

.switch input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.picker {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
}

.picker input[type="search"] {
  height: 34px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
}

.picker input[type="search"]:focus {
  outline: none;
}

.picker .options {
  max-height: 200px;
  overflow-y: auto;
  padding: 4px;
}

.picker label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.picker label:hover {
  background: var(--raised);
}

.picker input[type="checkbox"] {
  accent-color: var(--accent);
}

.dot {
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
}

.picker .chosen {
  padding: 6px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.savebar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
}

.item {
  margin-bottom: 16px;
}

.item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}

.item summary::-webkit-details-marker {
  display: none;
}

.item summary strong.name {
  font-family: var(--mono);
  font-size: 14px;
}

.item summary .desc {
  flex: 1;
  color: var(--muted);
  font-size: 13px;
}

.item[open] summary {
  border-bottom: 1px solid var(--line);
}

.item .body .savebar {
  justify-content: space-between;
}

.answers dt {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.answers dd {
  margin: 2px 0 0;
  white-space: pre-wrap;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  color: var(--muted);
  font-size: 13px;
}

.inline {
  display: inline;
  margin: 0;
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .parts {
    grid-template-columns: 1fr 1fr;
  }

  .facts {
    grid-template-columns: 1fr 1fr;
  }

  .facts div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .facts div:nth-child(n + 3) {
    border-top: 1px solid var(--line-strong);
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .cols {
    grid-template-columns: 1fr;
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .dash {
    grid-template-columns: 1fr;
  }

  .side {
    position: static;
    height: auto;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .side .groups {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .side h5 {
    display: none;
  }

  .side nav {
    display: flex;
    gap: 4px;
  }

  .side nav a {
    white-space: nowrap;
  }

  .content {
    padding: 24px 18px 64px;
  }
}

@media (max-width: 680px) {
  .wrap {
    padding: 0 20px;
  }

  .bar {
    gap: 16px;
  }

  .bar {
    flex-wrap: wrap;
    height: auto;
    min-height: 58px;
    padding-top: 12px;
  }

  .links {
    order: 3;
    flex: 0 0 100%;
    gap: 20px;
    overflow-x: auto;
    padding: 2px 0 12px;
    font-size: 15px;
    white-space: nowrap;
  }

  .account {
    margin-left: auto;
  }

  .account .button {
    display: none;
  }

  main.page {
    padding-top: 44px;
    padding-bottom: 72px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .lead {
    font-size: 17px;
  }

  .discord {
    box-shadow: 5px 5px 0 var(--text);
  }

  section.block {
    margin-top: 88px;
  }

  .block > h2,
  .prose h1 {
    font-size: 34px;
  }

  .timeline::before {
    left: 55px;
  }

  .timeline li {
    grid-template-columns: 44px 1fr;
    gap: 28px;
  }

  .timeline li::before {
    left: 51px;
  }

  .timeline time {
    font-size: 12px;
  }

  .parts,
  .facts,
  .feature ul {
    grid-template-columns: 1fr;
  }

  .facts div,
  .facts div + div {
    padding: 20px 0;
    border-left: 0;
  }

  .facts div + div {
    border-top: 1px solid var(--line-strong);
  }

  .band {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
  }

  .entry {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .foot .cols {
    grid-template-columns: 1fr 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .reference td:first-child {
    width: auto;
    white-space: normal;
  }

  .kv {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .kv dd {
    margin-bottom: 8px;
  }

  .hide-small {
    display: none;
  }
}

.i {
  flex: none;
  vertical-align: -3px;
}

.app .wrap.wide,
.app main.page {
  max-width: none;
}

.app main.page:has(.cards),
.app main.page:has(.hello) {
  max-width: 1180px;
}

.hello {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.hello h1 {
  font-size: 30px;
}

.avatar-lg img {
  display: block;
  border-radius: 14px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.pending {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--soft);
  font-size: 14px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}

.scard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--raised);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.scard:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.banner {
  position: relative;
  display: block;
  height: 112px;
  overflow: hidden;
  background: var(--panel);
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.scard:hover .banner img {
  transform: scale(1.04);
}

.plain-banner {
  background-color: #141a24;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 14px 14px;
}

.plain-banner .initial {
  position: absolute;
  right: 14px;
  bottom: -18px;
  color: rgba(255, 255, 255, 0.06);
  font-family: var(--display);
  font-size: 110px;
  font-weight: 800;
  line-height: 1;
}

.live {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(12, 15, 20, 0.78);
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
}

.live.on::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 2s ease-in-out infinite;
}

.scard-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 16px 16px;
}

.scard-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -18px 0 10px;
}

.sicon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 3px solid var(--raised);
  border-radius: 10px;
  background: var(--panel);
  color: var(--soft);
  font-weight: 700;
}

.sicon img {
  width: 100%;
  height: 100%;
}

.sicon.big {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  font-size: 26px;
}

.scard-head h2 {
  flex: 1;
  min-width: 0;
  margin-top: 16px;
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scard-head h2 a {
  color: var(--text);
}

.tag {
  display: inline-flex;
  margin-top: 16px;
  color: var(--accent);
}

.tag.gold {
  color: #f0b232;
}

.scard-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 24px;
  margin-bottom: 10px;
  color: var(--soft);
  font-size: 13px;
}

.scard .faces {
  display: flex;
}

.scard .faces img,
.scard .faces i {
  width: 22px;
  height: 22px;
  margin-left: -6px;
  border: 2px solid var(--raised);
  border-radius: 50%;
  background: var(--panel);
  font-size: 10px;
  font-style: normal;
  text-align: center;
}

.scard-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 -8px 8px;
}

.scard-links a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

.scard-links a:hover {
  background: var(--panel);
  text-decoration: none;
}

.l-blue { color: #6ea8ff; }
.l-green { color: #4fd1a1; }
.l-orange { color: #f2a65a; }

.spark {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.spark svg {
  display: block;
  width: 100%;
  height: 28px;
  margin-top: 6px;
}

.spark polyline {
  fill: none;
  stroke: var(--ok);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw 1.2s ease forwards 0.2s;
}

.scard.new {
  align-items: center;
  justify-content: center;
  min-height: 240px;
  border-style: dashed;
  background: transparent;
  color: var(--soft);
  text-align: center;
}

.scard.new span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--panel);
}

.scard.new small {
  color: var(--muted);
}

.empty-state {
  max-width: 720px;
}

.empty-state h2 {
  margin-bottom: 14px;
  font-size: 22px;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.choice {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--raised);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.choice:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.choice span {
  color: var(--muted);
  font-size: 14px;
}

.dialog {
  width: min(460px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--raised);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.dialog.wide {
  width: min(720px, calc(100vw - 32px));
}

.dialog[open] {
  animation: pop 0.18s ease both;
}

.dialog::backdrop {
  background: rgba(5, 7, 10, 0.68);
}

.dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dialog h2 {
  font-size: 20px;
}

.dialog label {
  display: block;
  margin: 10px 0 6px;
  font-weight: 600;
}

.dialog .button {
  margin-top: 12px;
}

.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  border: 0;
  border-radius: 5px;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.ghost:hover {
  background: var(--panel);
  color: var(--text);
}

.narrow {
  max-width: 720px;
}

.narrow h1 {
  margin: 10px 0 10px;
  font-size: 34px;
}

.narrow .lead {
  margin-bottom: 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.back-link .i {
  transform: rotate(180deg);
}

.card.pad {
  padding: 22px;
}

.guild-pick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.gp input {
  position: absolute;
  opacity: 0;
}

.gp-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
}

.gp-box .icon {
  width: 30px;
  height: 30px;
}

.gp-box small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.gp input:checked + .gp-box {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.gp input:focus-visible + .gp-box {
  outline: 2px solid var(--accent);
}

.gp.taken .gp-box {
  opacity: 0.5;
  cursor: not-allowed;
}

.more {
  margin-top: 12px;
}

.more summary {
  color: var(--soft);
  font-size: 14px;
  cursor: pointer;
}

.plain-list {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 14px;
}

.side .back {
  display: flex;
  align-items: center;
  gap: 6px;
}

.side .back .i {
  transform: rotate(180deg);
}

.side .guild .icon {
  width: 36px;
  height: 36px;
}

.side .who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.side .who strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side .who small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.side nav a {
  justify-content: flex-start;
  gap: 10px;
}

.side nav a span:first-of-type {
  flex: 1;
}

.side nav a .i {
  color: var(--muted);
}

.side nav a.on .i {
  color: var(--accent);
}

.hero-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--raised);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.hero-in {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px;
}

.hero-in > div {
  flex: 1;
  min-width: 0;
}

.hero-in h1 {
  margin-bottom: 6px;
  font-size: 30px;
}

.hero-in p {
  color: var(--soft);
}

.dot-live {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.dot-live.on {
  background: var(--ok);
  animation: pulse 2s ease-in-out infinite;
}

.setup-nudge {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border: 1px solid #5a4a1e;
  border-radius: 10px;
  background: rgba(227, 168, 51, 0.08);
  color: var(--text);
}

.setup-nudge span {
  flex: 1;
  color: var(--soft);
  font-size: 14px;
}

.setup-nudge:hover {
  text-decoration: none;
  border-color: var(--warn);
}

.rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
}

.rows li:last-child {
  border-bottom: 0;
}

.dialog .rows li,
.pcol .rows li {
  padding: 8px 0;
}

.person {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 500;
}

.person img,
.person i {
  flex: none;
  border-radius: 50%;
}

.person i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--panel);
  color: var(--soft);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.person span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 90px;
}

.vbar {
  flex: 1;
  min-height: 3px;
  border-radius: 4px 4px 0 0;
  background: var(--accent);
  opacity: 0.8;
  transform-origin: bottom;
  animation: grow 0.6s ease both;
}

.small {
  font-size: 13px;
}

.right {
  text-align: right;
}

.page-head.row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.seg {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
}

.seg a {
  padding: 6px 12px;
  color: var(--soft);
  font-size: 13px;
}

.seg a + a {
  border-left: 1px solid var(--line-strong);
}

.seg a.on,
.seg a:hover {
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
}

.tabs {
  display: flex;
  gap: 22px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.tabs a {
  padding: 8px 0 10px;
  color: var(--soft);
  font-weight: 500;
}

.tabs a.on {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.tabs a:hover {
  color: var(--text);
  text-decoration: none;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--soft);
  font-size: 14px;
  white-space: nowrap;
}

.menu {
  position: relative;
  display: inline-block;
}

.menu > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}

.menu > summary::-webkit-details-marker {
  display: none;
}

.menu > summary:hover {
  background: var(--panel);
  color: var(--text);
}

.menu > div {
  position: absolute;
  z-index: 15;
  top: calc(100% + 4px);
  right: 0;
  min-width: 170px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  text-align: left;
  animation: pop 0.14s ease both;
}

.wide-menu > div {
  min-width: 240px;
}

.menu form {
  margin: 0;
}

.menu button,
.menu a {
  display: block;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-radius: 5px;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.menu button:hover,
.menu a:hover {
  background: var(--raised);
  text-decoration: none;
}

.menu .button {
  margin: 6px 0 4px;
  background: var(--accent);
  text-align: center;
}

.menu-title {
  padding: 4px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.menu-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  font-size: 14px;
  cursor: pointer;
}

.danger-text {
  color: var(--bad) !important;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 2px 4px 2px 0;
  padding: 1px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  color: var(--soft);
  font-size: 12px;
  white-space: nowrap;
}

.chip .dot {
  width: 8px;
  height: 8px;
}

.chip.gold {
  border-color: #5a4a1e;
  color: #f0b232;
}

tr.pinned td {
  background: rgba(227, 168, 51, 0.05);
}

tr.voided td {
  opacity: 0.55;
}

.badge.t-warning { border-color: #5a4a1e; color: var(--warn); }
.badge.t-kick { border-color: #5a3a1e; color: #f0904c; }
.badge.t-ban { border-color: #5c2b29; color: var(--bad); }
.badge.t-bolo { border-color: #5a4a1e; color: #f0b232; }
.badge.t-note { color: var(--soft); }
.badge.t-strike, .badge.t-suspension { border-color: #5a3a1e; color: #f0904c; }
.badge.t-termination { border-color: #5c2b29; color: var(--bad); }
.badge.approved, .badge.ended { border-color: #245c47; color: var(--ok); }

.charts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.chart strong {
  display: block;
  font-family: var(--display);
  font-size: 28px;
}

.chart svg {
  display: block;
  width: 100%;
  height: 60px;
  margin-top: 8px;
}

.chart polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.chart polygon {
  fill: var(--accent-soft);
}

.session-card.running {
  border-color: #245c47;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.tiles div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.tiles dt {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tiles dd {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
}

.small-tiles {
  grid-template-columns: repeat(4, 1fr);
}

.small-tiles dd {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inline-field {
  display: flex;
  gap: 8px;
}

.inline-field input,
.inline-field select {
  flex: 1;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.inline-actions input {
  flex: 1;
  min-width: 140px;
  height: 32px;
}

.request {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.request p {
  margin: 6px 0 10px;
  color: var(--soft);
}

.request-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.form-tight label {
  display: block;
  margin: 10px 0 6px;
  font-weight: 600;
  font-size: 14px;
}

.form-tight label:first-of-type {
  margin-top: 0;
}

.form-tight .button {
  margin-top: 14px;
}

textarea.prose-input {
  min-height: 90px;
  font-family: inherit;
  font-size: 14px;
}

.two-buttons {
  display: flex;
  gap: 8px;
}

.timeline-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.role-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 20px;
  align-items: start;
}

.role-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.role-list li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 4px 10px;
  margin-bottom: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--raised);
}

.role-list li.on {
  border-color: var(--accent);
}

.role-list li.locked {
  opacity: 0.6;
}

.pos {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.role-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.role-name:hover {
  text-decoration: none;
}

.perm-peek {
  grid-column: 2;
}

.arrows {
  display: flex;
  grid-column: 3;
  grid-row: 1 / span 2;
  flex-direction: column;
  gap: 2px;
}

.arrows button {
  width: 26px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: none;
  color: var(--soft);
  cursor: pointer;
}

.arrows button:disabled {
  opacity: 0.3;
  cursor: default;
}

.role-editor {
  position: sticky;
  top: 86px;
}

.split-fields {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 12px;
  margin-bottom: 12px;
}

.split-fields label,
.role-editor .body > label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
}

input[type="color"] {
  width: 100%;
  height: 38px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
}

.perm-groups {
  margin-top: 16px;
}

.perm-groups fieldset {
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}

.perm-groups legend {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.perm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  cursor: pointer;
}

.perm input {
  margin-top: 3px;
  accent-color: var(--accent);
}

.perm small {
  display: block;
  color: var(--muted);
}

.perm.admin {
  padding: 10px 12px;
  border: 1px solid #5a4a1e;
  border-radius: 8px;
  background: rgba(227, 168, 51, 0.06);
}

.code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.big-code {
  padding: 6px 12px;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.wide-inline input {
  max-width: 420px;
}

.danger-zone {
  border-color: #3d2422;
}

.danger-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.danger-row:last-child {
  border-bottom: 0;
}

.danger-row .help {
  margin: 2px 0 0;
}

.linked-guild {
  display: flex;
  align-items: center;
  gap: 14px;
}

.linked-guild > div {
  flex: 1;
}

.linked-guild .sicon {
  width: 48px;
  height: 48px;
}

.bad-text {
  color: var(--bad);
}

.warn-text {
  color: var(--warn) !important;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.fcard {
  position: relative;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 10px;
  background: var(--raised);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.fcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.fcard > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
  color: var(--text);
}

.fcard > a:hover {
  text-decoration: none;
}

.fcard-top {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.fcard h2 {
  margin-bottom: 6px;
  font-size: 17px;
}

.fcard-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
}

.copy-link {
  position: absolute;
  top: 12px;
  right: 12px;
}

.crumbs {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
}

.form-head p:last-child {
  font-size: 14px;
}

.status-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.status-tabs a {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  color: var(--soft);
  font-size: 13px;
}

.status-tabs a span {
  margin-left: 4px;
  color: var(--muted);
}

.status-tabs a.on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.status-tabs a:hover {
  text-decoration: none;
}

.status-tabs form {
  margin-left: auto;
}

.responses {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  align-items: start;
}

.response-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.response-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
}

.response-list li.on a,
.response-list a:hover {
  border-color: var(--line);
  background: var(--raised);
  text-decoration: none;
}

.flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--warn);
  color: #16181d;
  font-size: 11px;
  font-weight: 800;
}

.response header {
  align-items: flex-start;
}

.section-title {
  margin: 22px 0 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
}

.answers dt {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.answers dd {
  margin: 4px 0 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--bg);
  white-space: pre-wrap;
}

.decide {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.decide input {
  flex: 1;
  min-width: 200px;
}

.comments {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.comments li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.comments li .muted {
  margin-left: 8px;
}

.comments p {
  margin-top: 4px;
  font-size: 14px;
}

.role-chips {
  margin: 6px 0 0;
}

.builder {
  max-width: 760px;
}

.form-cover {
  border-top: 6px solid var(--accent);
}

.f-title {
  height: 48px;
  margin-bottom: 10px;
  border-color: transparent;
  background: transparent;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
}

.f-desc {
  min-height: 90px;
  border-color: transparent;
  background: var(--bg);
  font-family: inherit;
  font-size: 14px;
}

.q-card .body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.q-top {
  display: flex;
  gap: 10px;
}

.q-top select {
  width: 180px;
  flex: none;
}

.q-label {
  font-weight: 600;
}

.q-help {
  height: 32px;
  border-color: transparent;
  background: var(--bg);
  font-size: 13px;
}

.q-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0;
}

.q-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.q-option input {
  height: 32px;
}

.ring,
.box {
  flex: none;
  width: 14px;
  height: 14px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
}

.box {
  border-radius: 3px;
}

.add-option {
  align-self: flex-start;
  font-size: 13px;
}

.q-preview {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-strong);
  font-size: 13px;
}

.inline-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.inline-label select {
  width: auto;
}

.q-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.q-actions .check {
  margin-left: 10px;
}

.section-card {
  border-left: 3px solid var(--accent);
}

.add-row {
  display: flex;
  gap: 8px;
  margin: -6px 0 20px;
}

.sticky-save {
  position: sticky;
  bottom: 0;
  z-index: 5;
  max-width: 760px;
  margin-top: 10px;
  padding: 12px 0;
  background: var(--bg);
}

.public-form {
  max-width: 720px;
  margin: 0 auto;
}

.pf-banner {
  display: block;
  width: 100%;
  height: 170px;
  margin-bottom: 16px;
  border-radius: 12px;
  object-fit: cover;
}

.pf-server {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--soft);
  font-size: 14px;
}

.pf-server img {
  border-radius: 6px;
}

.public-form h1 {
  margin-bottom: 12px;
  font-size: 32px;
}

.pf-desc {
  margin-bottom: 14px;
  color: var(--soft);
  white-space: pre-wrap;
}

.q-title {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.req {
  color: var(--bad);
}

.has-error {
  border-color: #5c2b29;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.choices label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.choices label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.choices input {
  accent-color: var(--accent);
}

.choices.scale {
  flex-direction: row;
}

.choices.scale label {
  flex: 1;
  justify-content: center;
}

.choices.scale input {
  position: absolute;
  opacity: 0;
}

.pf-submit {
  display: flex;
  justify-content: flex-end;
  margin: 10px 0 40px;
}

.pf-done h2 {
  margin-bottom: 8px;
}

.pf-done .button {
  margin-top: 14px;
}

.hint-card p {
  margin: 0;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

main.page {
  animation: enter 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.content {
  animation: enter 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 0.18s ease both fade-out;
}

::view-transition-new(root) {
  animation: 0.28s cubic-bezier(0.2, 0.7, 0.2, 1) both fade-up;
}

@keyframes enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes fade-out {
  to { opacity: 0; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
}

@keyframes pop {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(63, 182, 139, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(63, 182, 139, 0); }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes grow {
  from { transform: scaleY(0); }
}

@media (max-width: 1020px) {
  .role-layout,
  .responses,
  .charts {
    grid-template-columns: 1fr;
  }

  .role-editor {
    position: static;
  }

  .timeline-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 680px) {
  .two,
  .tiles,
  .small-tiles {
    grid-template-columns: 1fr 1fr;
  }

  .hero-in {
    flex-direction: column;
    align-items: flex-start;
  }

  .q-top {
    flex-direction: column;
  }

  .q-top select {
    width: 100%;
  }

  .inline-field {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.rise {
  display: inline-block;
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-copy .kicker,
.hero-copy .lead,
.hero-copy .actions,
.hero-copy .note {
  display: block;
}

.hero-copy .actions {
  display: flex;
}

.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.32s; }
.d4 { animation-delay: 0.44s; }
.d5 { animation-delay: 0.56s; }
.d6 { animation-delay: 0.9s; }

.pop {
  animation: pop 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.hero-art {
  position: relative;
  min-height: 430px;
}

.mini-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 92%;
  overflow: hidden;
  border: 1.5px solid var(--text);
  border-radius: 12px;
  background: #0f131a;
  box-shadow: 10px 10px 0 var(--text);
  color: #d7dce5;
  font-size: 12px;
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
}

.mp-top {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-bottom: 1px solid #222a35;
  background: #141a23;
}

.mp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2c3542;
}

.mp-title {
  margin-left: 8px;
  color: #8a94a6;
  font-size: 11px;
  font-weight: 600;
}

.mp-body {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
}

.mp-col {
  padding: 12px;
}

.mp-col + .mp-col {
  border-left: 1px solid #222a35;
}

.mp-me {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.mp-me b {
  color: #fff;
  font-size: 13px;
}

.mp-pill {
  align-self: flex-start;
  padding: 1px 8px;
  border: 1px solid #245c47;
  border-radius: 99px;
  color: #3fb68b;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.mp-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 10px;
}

.mp-tools i {
  padding: 4px 0;
  border-radius: 5px;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}

.mp-tools .g { background: #1f7a55; }
.mp-tools .r { background: #b8433c; }
.mp-tools .b { background: #2f63d6; }
.mp-tools .o { background: #c27a1a; }

.mp-players,
.mp-feed {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mp-players li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border-top: 1px solid #1b222c;
}

.mp-players s {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.mp-players .pol { background: #3d7cf5; }
.mp-players .amb { background: #3fb68b; }
.mp-players .civ { background: #9aa3b2; }

.mp-players em {
  padding: 0 4px;
  border: 1px solid #333c4a;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
}

.star {
  margin-left: auto;
  color: #f0b232;
  font-size: 10px;
}

.mp-log {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #222a35;
  border-radius: 8px;
}

.mp-log b {
  color: #fff;
}

.mp-field {
  padding: 5px 8px;
  border: 1px solid #2c3542;
  border-radius: 5px;
  background: #0b0e13;
}

.mp-btn {
  padding: 5px 0;
  border-radius: 5px;
  background: #2b8cff;
  color: #fff;
  font-weight: 700;
  text-align: center;
  animation: nudge 3.2s ease-in-out 1.6s infinite;
}

@keyframes nudge {
  0%, 86%, 100% { transform: none; }
  90% { transform: scale(0.96); }
}

.mp-feed li {
  display: flex;
  gap: 6px;
  padding: 5px 0;
  border-top: 1px solid #1b222c;
  animation: rise 0.5s ease both;
}

.mp-feed li:nth-child(1) { animation-delay: 1.1s; }
.mp-feed li:nth-child(2) { animation-delay: 1.4s; }
.mp-feed li:nth-child(3) { animation-delay: 1.7s; }

.mp-feed i {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #1d2430;
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.mp-feed li:first-child i {
  background: rgba(239, 107, 99, 0.18);
  color: #ef6b63;
}

.mp-feed code {
  padding: 0 3px;
  border: 0;
  background: #1d2430;
  color: #c9cdfb;
  font-size: 10px;
}

.float-card {
  position: absolute;
  bottom: -10px;
  left: -20px;
  width: 72%;
  font-size: 13px;
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.65s both;
}

.float-card .messages {
  padding: 10px 14px 14px;
}

.ticker {
  overflow: hidden;
  margin: 96px calc(50% - 50vw) 0;
  padding: 16px 0;
  border-top: 1.5px solid var(--text);
  border-bottom: 1.5px solid var(--text);
  background: var(--mark);
  color: #ffffff;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 40s linear infinite;
}

.ticker span {
  padding: 0 26px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.ticker span::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 52px;
  border-radius: 50%;
  background: var(--text);
  vertical-align: middle;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

.split-block {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.split-block h2 {
  margin-bottom: 14px;
  font-size: 40px;
  letter-spacing: -0.02em;
}

.split-block .lead {
  margin-bottom: 24px;
}

.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding: 0 0 16px 30px;
  color: var(--soft);
}

.ticks li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--text);
  border-radius: 4px;
  background: var(--mark);
  color: #ffffff;
}

.ticks strong {
  color: var(--text);
}

.panel-shot {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.05fr;
  gap: 1px;
  overflow: hidden;
  border: 1.5px solid var(--text);
  border-radius: 12px;
  background: #222a35;
  box-shadow: 10px 10px 0 var(--mark), 10px 10px 0 1.5px var(--text);
}

.ps-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 330px;
  padding: 14px 12px;
  background: #0f131a;
}

.ps-h {
  width: 55%;
  height: 10px;
  margin-bottom: 4px;
  border-radius: 3px;
  background: #3a4453;
}

.ps-btn {
  height: 18px;
  border-radius: 5px;
}

.ps-btn.green { background: #3fb68b; }
.ps-btn.blue { background: #2b8cff; }

.ps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.ps-grid i {
  height: 14px;
  border-radius: 4px;
}

.ps-grid i:nth-child(1) { background: #1f7a55; }
.ps-grid i:nth-child(2) { background: #b8433c; }
.ps-grid i:nth-child(3) { background: #2f63d6; }
.ps-grid i:nth-child(4) { background: #c27a1a; }

.ps-row,
.ps-feed {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ps-row s,
.ps-feed s {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3d7cf5;
}

.ps-feed s {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: #1d2430;
}

.ps-row em,
.ps-feed em {
  height: 7px;
  border-radius: 3px;
  background: #283140;
}

.ps-row:nth-of-type(3n) s { background: #3fb68b; }
.ps-row:nth-of-type(4n) s { background: #9aa3b2; }
.ps-row em { width: 70%; }
.ps-row:nth-of-type(2n) em { width: 52%; }
.ps-row:nth-of-type(3n) em { width: 80%; }
.ps-feed em { width: 74%; }
.ps-feed:nth-of-type(2n) em { width: 58%; }

.ps-in {
  height: 18px;
  border: 1px solid #2c3542;
  border-radius: 5px;
}

.ps-in.short {
  width: 60%;
}

.ps-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px;
  border: 1px solid #222a35;
  border-radius: 7px;
}

.ps-card.gold {
  border-color: #8a6d1e;
}

.ps-card em {
  height: 6px;
  border-radius: 3px;
  background: #283140;
}

.ps-card em.short {
  width: 50%;
}

.ps-card.gold em:first-child {
  width: 40%;
  background: #f0b232;
}

#timeline::before {
  transform-origin: top;
  animation: line-grow linear both;
  animation-timeline: view();
  animation-range: entry 10% cover 60%;
}

@keyframes line-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.timeline li.reveal.in::before {
  background: var(--mark);
  transition: background 0.4s ease 0.3s;
  color: #ffffff;
}

.part {
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.6s ease;
}

.part:hover {
  transform: translate(-3px, -3px) rotate(-0.4deg);
  box-shadow: 5px 5px 0 var(--text);
}

.js .part.reveal:not(.in) {
  transform: translateY(18px);
}

.choice-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.ccard {
  padding: 30px;
  border: 1.5px solid var(--text);
  border-radius: 10px;
  background: var(--panel);
}

.ccard h3 {
  margin: 4px 0 10px;
  font-size: 26px;
}

.ccard p {
  color: var(--soft);
}

.ccard.dark {
  background: var(--text);
  color: #f5f8fc;
}

.ccard.dark p,
.ccard.dark .kicker {
  color: #b8bcc6;
}

.docs {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 56px;
  align-items: start;
}

.docs-side {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding-right: 6px;
}

.docs-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 0 10px;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
}

.docs-search:focus-within {
  border-color: var(--text);
}

.docs-search input {
  height: 36px;
  padding: 0;
  border: 0;
  background: none;
}

.docs-search input:focus {
  outline: none;
}

.docs-side h5 {
  margin: 18px 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.docs-side nav a {
  display: block;
  padding: 5px 10px;
  border-left: 2px solid var(--line);
  color: var(--soft);
  font-size: 15px;
}

.docs-side nav a:hover {
  border-left-color: var(--text);
  color: var(--text);
  text-decoration: none;
}

.docs-side nav a.on {
  border-left-color: var(--text);
  background: var(--mark);
  color: #ffffff;
  font-weight: 600;
}

.docs-body {
  min-width: 0;
  max-width: 760px;
}

.docs-body > h1 {
  margin-bottom: 12px;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.docs-body > .lead {
  margin-bottom: 28px;
}

.doc-prose h2 {
  margin-top: 40px;
}

.doc-prose pre {
  overflow-x: auto;
  padding: 16px 18px;
  border: 1.5px solid var(--text);
  border-radius: 8px;
  background: #16181d;
  color: #e8ebf1;
}

.doc-prose pre code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  white-space: pre;
}

.ref {
  margin: 14px 0;
  border-top: 1.5px solid var(--text);
}

.ref td:first-child {
  width: 250px;
  padding-left: 0;
  font-weight: 600;
}

.ref td {
  color: var(--soft);
}

.doc-next {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1.5px solid var(--text);
}

.doc-next a {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
}

.doc-next a small {
  color: var(--muted);
  font-weight: 400;
}

.doc-next a.next {
  margin-left: auto;
  text-align: right;
}

.doc-next a:hover {
  border-color: var(--text);
  box-shadow: 3px 3px 0 var(--mark);
  text-decoration: none;
}

.docs-hero h1 {
  margin-bottom: 14px;
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.docs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 30px;
}

.docs-chips a {
  padding: 5px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 99px;
  color: var(--soft);
  font-size: 14px;
}

.docs-chips a:hover {
  border-color: var(--text);
  color: var(--text);
  text-decoration: none;
}

.start-here {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  padding: 22px 24px;
  border: 1.5px solid var(--text);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 5px 5px 0 var(--text);
  color: var(--text);
}

.start-here > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.start-here small {
  color: var(--muted);
  font-family: var(--mono);
}

.start-here strong {
  font-family: var(--display);
  font-size: 22px;
}

.start-here .go {
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--text);
  color: #fff;
  font-weight: 600;
}

.start-here:hover {
  text-decoration: none;
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--text);
}

.doc-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
}

.doc-group h2 {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--text);
  font-size: 20px;
}

.doc-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-group a {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.doc-group a span {
  color: var(--muted);
  font-size: 14px;
}

.doc-group a:hover {
  text-decoration: none;
}

.doc-group a:hover strong {
  box-shadow: inset 0 -0.3em 0 rgba(0, 149, 255, 0.28);
}

@media (max-width: 1020px) {
  .hero-art {
    min-height: 400px;
  }

  .split-block {
    grid-template-columns: 1fr;
  }

  .docs {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .docs-side {
    position: static;
    max-height: none;
  }

  .docs-side nav {
    display: none;
  }
}

@media (max-width: 680px) {
  .hero-art {
    min-height: 360px;
  }

  .mini-panel {
    width: 100%;
    box-shadow: 6px 6px 0 var(--text);
  }

  .float-card {
    left: 0;
    width: 88%;
  }

  .ticker span {
    font-size: 16px;
  }

  .split-block h2 {
    font-size: 30px;
  }

  .choice-cards,
  .doc-groups {
    grid-template-columns: 1fr;
  }

  .docs-body > h1,
  .docs-hero h1 {
    font-size: 34px;
  }

  .ref td:first-child {
    width: auto;
  }
}

.builder-bar {
  position: sticky;
  top: 66px;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(17, 21, 28, 0.94);
  backdrop-filter: blur(6px);
}

.builder-bar .button {
  margin-left: auto;
}

.save-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.save-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}

.save-pill[data-state="dirty"]::before { background: var(--warn); }
.save-pill[data-state="saving"]::before { background: var(--accent); animation: pulse 1s ease-in-out infinite; }
.save-pill[data-state="error"] { color: var(--bad); }
.save-pill[data-state="error"]::before { background: var(--bad); }

.save-error {
  color: var(--bad);
  font-size: 13px;
}

.save-error:empty {
  display: none;
}

.q-card.has-error {
  border-color: var(--bad);
  box-shadow: 0 0 0 1px var(--bad);
}

.app .toast {
  position: fixed;
  z-index: 60;
  bottom: 20px;
  left: 50%;
  padding: 11px 18px;
  border: 1px solid #245c47;
  border-radius: 8px;
  background: #10261d;
  color: var(--text);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  font-size: 14px;
  transform: translateX(-50%);
  animation: pop 0.2s ease both;
}

.app .toast.bad {
  border-color: #5c2b29;
  background: #2a1414;
}

.account-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
}

.acc-text {
  flex: 1;
  min-width: 0;
}

.acc-text p {
  margin-top: 2px;
  font-size: 14px;
}

.acc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.discord-mark {
  background: #5865f2;
  color: #fff;
}

.roblox-mark {
  background: #e8ebf1;
}

.roblox-mark span {
  width: 18px;
  height: 18px;
  border: 5px solid #16181d;
  border-radius: 2px;
  transform: rotate(14deg);
}

.acc-avatar {
  border-radius: 50%;
}

.demo h2 {
  margin-bottom: 12px;
  font-size: 26px;
}

.sim-banner {
  margin: 14px 0 20px;
  padding: 12px 16px;
  border: 1px dashed var(--mark);
  border-radius: 8px;
  background: rgba(0, 149, 255, 0.07);
  color: var(--soft);
  font-size: 14px;
}

.sim-banner strong {
  margin-right: 8px;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--mark);
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sim-progress {
  display: flex;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.sim-progress li {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.sim-progress li::before {
  content: "";
  height: 4px;
  border-radius: 2px;
  background: var(--line-strong);
  transition: background 0.3s ease;
}

.sim-progress li.done::before,
.sim-progress li.now::before {
  background: var(--mark);
  color: #ffffff;
}

.sim-progress li.now {
  color: var(--text);
  font-weight: 600;
}

.sim-progress span {
  display: none;
}

.sim-step {
  animation: enter 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.sim-step .body {
  padding: 26px;
}

.sim-step p + p,
.sim-step p + ul,
.sim-step .sim-split,
.sim-step .sim-consent,
.sim-step .sim-flow,
.sim-step .sim-result {
  margin-top: 14px;
}

.url-box {
  overflow-x: auto;
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-all;
}

.url-box code {
  padding: 0;
  border: 0;
  background: none;
  white-space: inherit;
}

.sim-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--soft);
}

.sim-list li + li {
  margin-top: 6px;
}

.sim-split {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  align-items: center;
}

.sim-window {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
}

.sim-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  font-family: var(--mono);
  font-size: 11px;
}

.sim-bar .lock {
  color: var(--ok);
}

.sim-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.sim-ph {
  height: 26px;
  border: 1px dashed var(--line-strong);
  border-radius: 5px;
}

.sim-ph.short {
  width: 70%;
}

.sim-ph.btn {
  border-style: solid;
  background: var(--line);
}

.sim-consent {
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
}

.sim-consent h3 {
  margin: 6px 0 10px;
  font-size: 18px;
}

.consent-list {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.consent-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.sim-flow {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sim-flow li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
}

.sim-flow span {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mark);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.sim-result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #245c47;
  border-radius: 10px;
  background: rgba(63, 182, 139, 0.07);
}

.sim-result > div {
  flex: 1;
}

.sim-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--panel);
  font-weight: 800;
}

.sim-nav {
  display: flex;
  justify-content: space-between;
  padding: 14px 26px 22px;
}

.account .avatar,
.account a .avatar {
  display: block;
}

.account {
  white-space: nowrap;
}

@media (max-width: 680px) {
  .sim-split {
    grid-template-columns: 1fr;
  }

  .account-row {
    flex-wrap: wrap;
  }
}

.app .narrow {
  margin-right: auto;
  margin-left: auto;
}

.sim-step .sim-consent + p,
.sim-step .sim-split + p {
  margin-top: 16px;
}


.notices {
  display: grid;
}

.notice-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  padding: 9px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #e6f3ff;
  color: #0b3a66;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.notice-bar a {
  color: #0064c8;
  font-weight: 700;
}

.notice-bar.n-success {
  background: #e3f6ec;
  color: #14532d;
}

.notice-bar.n-warning {
  background: #fdf3d8;
  color: #6b4a00;
}

.notice-bar.n-danger {
  background: #fde6e4;
  color: #7f1d1d;
}
