/* Atlas marketing + auth pages. Loaded after app.css. */

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(9, 9, 11, 0.96); border-bottom: 1px solid var(--line-soft); }
.site-header-in { display: flex; align-items: center; gap: 36px; height: 64px; }
.site-nav { display: flex; gap: 2px; }
.site-nav a { color: var(--faint); font-weight: 500; font-size: 14px; padding: 6px 12px; border-radius: var(--radius-sm); transition: color var(--t), background-color var(--t); }
.site-nav a:hover { color: var(--text-strong); background: var(--bg-hover); }
.site-header-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-toggle, .show-sm { display: none !important; }

/* ---------- shared marketing type ---------- */
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent-text); margin-bottom: 14px; letter-spacing: -0.005em; }
.lead { font-size: 17px; color: var(--muted); line-height: 1.6; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.cta-center { justify-content: center; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: 40px; letter-spacing: -0.035em; line-height: 1.08; font-weight: 700; margin-bottom: 14px; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 15px; }
.ticks li .ico { color: var(--accent-text); margin-top: 3px; }
.ticks-dim li { color: var(--muted); }
.ticks-dim li .ico { color: var(--dim); }

/* ---------- hero ---------- */
.hero { padding: 96px 0 40px; border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.hero-text { text-align: center; max-width: 860px; margin: 0 auto; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-1); color: var(--muted); font-size: 13px; font-weight: 500; margin-bottom: 28px; transition: border-color var(--t), color var(--t); }
.pill:hover { border-color: var(--line-strong); color: var(--text-strong); }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: 64px; line-height: 1.02; letter-spacing: -0.045em; font-weight: 720; }
.hero .lead { max-width: 640px; margin: 22px auto 0; font-size: 18px; }
.hero .cta-row { justify-content: center; margin-top: 32px; }
.hero-shot { position: relative; margin: 72px auto 0; max-width: 1040px; padding-bottom: 48px; }
.hero-float { position: absolute; right: -36px; bottom: 0; width: 400px; }
.hero-float .dc { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }

/* ---------- stat strip ---------- */
.strip { border-bottom: 1px solid var(--line-soft); }
.strip-in { display: grid; grid-template-columns: repeat(5, 1fr); }
.strip-in > div { padding: 28px 20px; border-left: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 2px; }
.strip-in > div:first-child { border-left: 0; padding-left: 0; }
.strip b { font-size: 24px; color: var(--text-strong); font-weight: 680; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.strip span { color: var(--faint); font-size: 14px; }

/* ---------- features ---------- */
.feat { padding: 104px 0; border-bottom: 1px solid var(--line-soft); }
.feat-in { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; }
.feat-flip .feat-text { order: 2; }
.feat-flip .feat-visual { order: 1; }
.feat h2 { font-size: 36px; letter-spacing: -0.035em; line-height: 1.1; font-weight: 700; margin-bottom: 16px; }
.feat-visual { min-width: 0; }

/* ---------- mocks: shared ---------- */
.mock { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); user-select: none; }

/* Discord window (uses Discord's own palette on purpose) */
.dc { background: #313338; color: #dbdee1; font-size: 15px; line-height: 1.375; }
.dc-top { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border-bottom: 1px solid rgba(0, 0, 0, 0.28); color: #f2f3f5; }
.dc-top .ico { color: #80848e; }
.dc-top b { font-weight: 600; font-size: 15px; }
.dc-topic { color: #949ba4; font-size: 13px; padding-left: 12px; margin-left: 4px; border-left: 1px solid #3f4147; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-scroll { padding: 10px 0 18px; }
.dc-msg { display: flex; gap: 14px; padding: 6px 16px; }
.dc-av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; color: #fff; font-weight: 600; font-size: 16px; background: #4e5058; }
.dc-av-img { width: 40px; height: 40px; display: block; }
.dc-body { min-width: 0; flex: 1; }
.dc-head { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.dc-name { font-weight: 500; color: #f2f3f5; font-size: 15px; }
.dc-name-bot { color: #8aa8ff; }
.dc-tag { background: #5865f2; color: #fff; font-size: 10px; font-weight: 600; padding: 0 4px; height: 15px; line-height: 15px; border-radius: 3px; }
.dc-time { color: #949ba4; font-size: 12px; margin-left: 2px; }
.dc-text { color: #dbdee1; }
.dc-mention { background: rgba(88, 101, 242, 0.3); color: #c9cdfb; padding: 0 2px; border-radius: 3px; font-weight: 500; }
.dc-role { color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); padding: 0 2px; border-radius: 3px; font-weight: 500; }
.dc-slash { color: #c9cdfb; background: rgba(88, 101, 242, 0.15); padding: 0 4px; border-radius: 3px; font-weight: 500; }
.dc-embed { position: relative; max-width: 470px; background: #2b2d31; border-radius: 4px; margin-top: 4px; border-left: 4px solid var(--bar); }
.dc-embed-in { padding: 10px 16px 14px 12px; }
.dc-embed-author { font-size: 13px; font-weight: 600; color: #f2f3f5; margin-bottom: 4px; }
.dc-embed-title { color: #f2f3f5; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.dc-embed-desc { font-size: 14px; color: #dbdee1; }
.dc-embed-foot { font-size: 12px; color: #949ba4; margin-top: 8px; }
.dc-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px 16px; margin-top: 8px; }
.dc-field-wide { grid-column: 1 / -1; }
.dc-fk { font-size: 13px; font-weight: 600; color: #f2f3f5; margin-bottom: 1px; }
.dc-fv { font-size: 14px; color: #dbdee1; display: flex; align-items: center; gap: 6px; }
.dc-dot { width: 8px; height: 8px; border-radius: 50%; background: #23a55a; display: inline-block; }
.dc-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dc-btn { font-size: 14px; font-weight: 500; padding: 0 16px; height: 32px; display: inline-flex; align-items: center; border-radius: 4px; color: #fff; }
.dc-btn-grey { background: #4e5058; }
.dc-btn-blurple { background: #5865f2; }
.dc-btn-green { background: #248046; }
.dc-btn-red { background: #da373c; }
.dc-card { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 16px; border-radius: 6px; background: #1e1f22; border: 1px solid rgba(255, 255, 255, 0.04); }
.dc-card-av { width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 20px; box-shadow: 0 0 0 3px #4f7cff; }
.dc-card-k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #8aa8ff; font-weight: 700; }
.dc-card-name { font-weight: 700; color: #f2f3f5; font-size: 18px; letter-spacing: -0.01em; }
.dc-card-sub { font-size: 13px; color: #949ba4; }
.dc-rank { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 6px; background: #1e1f22; max-width: 440px; margin-top: 4px; }
.dc-rank .dc-card-av { width: 48px; height: 48px; font-size: 18px; box-shadow: none; }
.dc-rank-main { flex: 1; min-width: 0; }
.dc-rank-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: #949ba4; }
.dc-rank-row > b { color: #f2f3f5; font-size: 15px; }
.dc-rank-row span b { color: #f2f3f5; }
.dc-rank-row .acc { color: #8aa8ff; }
.dc-bar { height: 8px; border-radius: 999px; background: #313338; margin: 8px 0 4px; overflow: hidden; }
.dc-bar i { display: block; height: 100%; background: #4f7cff; border-radius: 999px; }
.dc-rank-xp { font-size: 12px; color: #949ba4; }
.dc-select { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 10px 0 12px; margin-top: 10px; background: #1e1f22; border-radius: 4px; color: #949ba4; font-size: 14px; border: 1px solid #1e1f22; }
.dc-menu { margin-top: 4px; background: #2b2d31; border: 1px solid #1e1f22; border-radius: 4px; padding: 4px; }
.dc-opt { padding: 6px 8px; border-radius: 3px; display: flex; flex-direction: column; }
.dc-opt b { font-weight: 500; color: #dbdee1; font-size: 14px; }
.dc-opt span { font-size: 12px; color: #949ba4; }
.dc-opt-hover { background: #393c41; }
.dc-players { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.dc-pl { font-size: 12px; padding: 2px 8px; border-radius: 3px; background: #1e1f22; color: #b5bac1; }
.dc-pl-more { color: #949ba4; }

/* dashboard mock */
.md { background: var(--bg-2); font-size: 13px; }
.md-bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line-soft); background: var(--bg-0); }
.md-dots { display: flex; gap: 6px; }
.md-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a30; }
.md-url { flex: 1; max-width: 420px; margin: 0 auto; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--bg-1); border: 1px solid var(--line-soft); color: var(--faint); font-size: 12px; }
.md-body { display: grid; grid-template-columns: 220px 1fr; min-height: 520px; }
.md-side { background: var(--bg-0); border-right: 1px solid var(--line-soft); padding: 10px 8px; }
.md-guild { display: flex; align-items: center; gap: 10px; padding: 6px 8px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line-soft); color: var(--text-strong); }
.md-gicon { width: 26px; height: 26px; border-radius: 7px; background: #2f6b3a; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.md-group { font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--dim); font-weight: 650; padding: 12px 8px 4px; }
.md-item { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; border-radius: 5px; color: var(--faint); }
.md-item span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-item.active { background: var(--bg-active); color: var(--text-strong); }
.md-sw { width: 26px; height: 15px; border-radius: 999px; background: #3a3a42; position: relative; flex: none; display: inline-block; }
.md-sw::after { content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.md-sw.on { background: var(--green); }
.md-sw.on::after { left: 13.5px; }
.md-main { padding: 24px 28px; position: relative; }
.md-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.md-head > div { flex: 1; display: flex; flex-direction: column; }
.md-head b { color: var(--text-strong); font-size: 17px; font-weight: 650; letter-spacing: -0.02em; }
.md-head span { color: var(--faint); font-size: 12.5px; }
.md-head .md-sw { width: 34px; height: 20px; }
.md-head .md-sw::after { width: 14px; height: 14px; top: 3px; left: 3px; }
.md-head .md-sw.on::after { left: 17px; }
.md-hic { width: 36px; height: 36px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; border: 1px solid rgba(79, 124, 255, 0.2); }
.md-card { background: var(--bg-1); border: 1px solid var(--line-soft); border-radius: 10px; padding: 2px 16px; }
.md-field { padding: 13px 0; border-top: 1px solid var(--line-soft); }
.md-field:first-child { border-top: 0; }
.md-field label { display: block; color: var(--text-strong); font-weight: 600; font-size: 12.5px; margin-bottom: 7px; }
.md-row { display: flex; align-items: center; justify-content: space-between; }
.md-row label { margin: 0; }
.md-input { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 6px; background: var(--bg-input); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-strong); }
.md-input .ico { color: var(--faint); }
.md-chev { margin-left: auto; color: var(--faint); }
.md-area { height: auto; min-height: 58px; align-items: flex-start; padding: 9px 10px; display: block; line-height: 1.5; }
.md-ph { font-family: var(--mono); font-size: 11.5px; color: var(--accent-text); background: var(--accent-soft); padding: 1px 4px; border-radius: 4px; }
.md-save { position: absolute; left: 28px; right: 28px; bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 10px; background: #18181c; border: 1px solid var(--line); color: var(--text-strong); font-weight: 500; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); }
.md-save-btns { display: flex; align-items: center; gap: 12px; }
.md-save-btns em { font-style: normal; color: var(--text-strong); }
.md-save-btns b { background: var(--green); color: #fff; height: 28px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 6px; font-weight: 550; }

/* logs mock */
.logs { background: var(--bg-1); }
.logs-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); color: var(--text-strong); }
.logs-head .ico { color: var(--faint); }
.logs-head span { margin-left: auto; font-size: 12px; color: var(--faint); border: 1px solid var(--line-soft); border-radius: 999px; padding: 1px 8px; }
.log-row { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); }
.log-row:first-of-type { border-top: 0; }
.log-row .ico { color: var(--faint); }
.log-row b { color: var(--text-strong); font-weight: 550; }
.log-row span { flex: 1; min-width: 0; }
.log-row time { color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }

/* Minecraft chat mock */
.mcchat { position: relative; background: #182231; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; font-family: var(--mono); }
.mc-sky { position: absolute; inset: 0; background:
  repeating-linear-gradient(90deg, #3d7a2e 0 24px, #448634 24px 48px) 0 calc(100% - 52px) / 100% 8px no-repeat,
  repeating-linear-gradient(90deg, #6b4a2e 0 24px, #5f4128 24px 48px) bottom / 100% 52px no-repeat; }
.mc-lines { position: relative; padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.mc-line { background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 13px; padding: 3px 8px; text-shadow: 1px 1px 0 #3f3f3f; width: fit-content; max-width: 100%; }
.mc-y { color: #ffff55; }
.mc-g { color: #55ff55; }
.mc-b { color: #55ffff; }
.mc-p { color: #b4a4ff; }
.mc-input { position: relative; margin: 0 16px 10px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 13px; padding: 6px 8px; display: flex; align-items: center; }
.caret { width: 8px; height: 2px; background: #fff; margin-left: 2px; align-self: flex-end; margin-bottom: 4px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Minecraft section ---------- */
.mc { padding: 112px 0; border-bottom: 1px solid var(--line-soft); }
.mc-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.mc-shots .mock { height: 100%; }
.mc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--bg-1); }
.mc-grid > div { padding: 22px; border-left: 1px solid var(--line-soft); }
.mc-grid > div:first-child { border-left: 0; }
.mc-grid b { display: block; color: var(--text-strong); font-weight: 600; margin: 12px 0 6px; }
.mc-grid p { color: var(--faint); font-size: 14px; }
.mc-ic { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); border: 1px solid rgba(79, 124, 255, 0.2); }
.steps3 { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps3 li { display: flex; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line-soft); }
.steps3 li > span { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--text-strong); font-size: 13px; font-weight: 600; display: grid; place-items: center; flex: none; }
.steps3 b { color: var(--text-strong); font-weight: 600; }
.steps3 p { color: var(--faint); font-size: 14px; margin-top: 4px; }

/* ---------- pricing ---------- */
.pricing { padding: 112px 0; border-bottom: 1px solid var(--line-soft); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 920px; margin: 0 auto; }
.plan { background: var(--bg-1); border: 1px solid var(--line-soft); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; }
.plan-main { border-color: rgba(79, 124, 255, 0.4); box-shadow: inset 0 1px 0 rgba(79, 124, 255, 0.35); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.plan h3 { font-size: 22px; letter-spacing: -0.025em; }
.plan .ticks { margin-bottom: 8px; }
.plan .cta-row { margin-top: auto; padding-top: 24px; }

/* ---------- FAQ ---------- */
.faq { padding: 112px 0; border-bottom: 1px solid var(--line-soft); }
.faq-in { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq .section-head { margin-bottom: 0; }
.faq-list details { border-bottom: 1px solid var(--line-soft); }
.faq-list details:first-child { border-top: 1px solid var(--line-soft); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; color: var(--text-strong); font-weight: 550; font-size: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ico { color: var(--faint); transition: transform var(--t); }
.faq-list details[open] summary .ico { transform: rotate(45deg); }
.faq-list summary:hover .ico { color: var(--text-strong); }
.faq-list details p { color: var(--muted); padding: 0 40px 22px 0; line-height: 1.65; }

/* ---------- final CTA ---------- */
.final { padding: 120px 0; }
.final-in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.final-logo { border-radius: 16px; margin-bottom: 28px; box-shadow: 0 0 0 1px var(--line); }
.final h2 { font-size: 48px; letter-spacing: -0.045em; font-weight: 720; margin-bottom: 14px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding: 56px 0 32px; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand p { color: var(--faint); font-size: 14px; margin-top: 14px; max-width: 280px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols h4 { font-size: 13px; color: var(--text-strong); font-weight: 600; margin-bottom: 14px; letter-spacing: 0; }
.footer-cols a { display: block; color: var(--faint); font-size: 14px; padding: 4px 0; }
.footer-cols a:hover { color: var(--text-strong); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-soft); color: var(--dim); font-size: 13px; }

/* ---------- commands page ---------- */
.cmd-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.cmd-nav { position: sticky; top: 96px; }
.cmd-nav nav { display: flex; flex-direction: column; gap: 1px; margin-top: 14px; }
.cmd-nav nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-sm); color: var(--faint); font-size: 14px; font-weight: 500; }
.cmd-nav nav a span:first-of-type { flex: 1; }
.cmd-nav nav a:hover { background: var(--bg-hover); color: var(--text-strong); }
.cmd-nav .count { color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--faint); transition: border-color var(--t); }
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text-strong); font: 14px var(--font); outline: none; }
.search kbd { font-size: 11px; padding: 0 5px; color: var(--faint); }
.cmd-group { margin-bottom: 36px; scroll-margin-top: 96px; }
.cmd-group h2 { display: flex; align-items: center; gap: 10px; font-size: 16px; margin-bottom: 12px; letter-spacing: -0.01em; }
.cmd-group h2 .ico { color: var(--faint); }
.cmd-card { background: var(--bg-1); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.cmd { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: 16px; padding: 13px 18px; border-top: 1px solid var(--line-soft); align-items: baseline; }
.cmd:first-child { border-top: 0; }
.cmd:hover { background: var(--bg-hover); }
.cmd-name { background: transparent; border: 0; padding: 0; color: var(--text-strong); font-size: 13.5px; font-weight: 550; }
.cmd-desc { color: var(--muted); font-size: 14px; }
.cmd-note { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 14px; padding: 12px 16px; border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- legal ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: 18px; margin: 32px 0 10px; letter-spacing: -0.015em; }
.prose p, .prose li { color: var(--muted); line-height: 1.7; }
.prose b { color: var(--text-strong); font-weight: 600; }
.prose ul { padding-left: 20px; margin: 8px 0; }
.prose li { margin: 6px 0; }

/* ---------- auth ---------- */
.authpage { background: var(--bg-0); }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-panel { display: flex; flex-direction: column; padding: 28px 40px; }
.auth-top { display: flex; align-items: center; justify-content: space-between; }
.auth-back { display: inline-flex; align-items: center; gap: 4px; color: var(--faint); font-size: 14px; }
.auth-box { width: 100%; max-width: 380px; margin: auto; padding: 48px 0; display: flex; flex-direction: column; gap: 16px; }
.auth-box h1 { font-size: 28px; letter-spacing: -0.035em; font-weight: 700; }
.auth-box > .muted { margin-top: -8px; font-size: 15px; }
.auth-box .flash { margin: 0; }
.auth-demo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--faint); }
.or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.auth-form { display: flex; flex-direction: column; gap: 8px; }
.auth-form .input { height: 44px; font-size: 15px; }
.auth-form .lbl { margin-top: 6px; }
.lbl-row { display: flex; justify-content: space-between; align-items: baseline; }
.auth-form .btn { margin-top: 14px; }
.auth-foot { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--faint); }
.auth-legal { font-size: 12px; color: var(--dim); }
.auth-legal a { color: var(--faint); text-decoration: underline; }
.auth-side { background: var(--bg-1); border-left: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: center; padding: 48px; }
.auth-side-in { max-width: 460px; width: 100%; }
.auth-logo { border-radius: 12px; margin-bottom: 24px; }
.auth-side h2 { font-size: 26px; letter-spacing: -0.03em; margin-bottom: 8px; }
.auth-side p { color: var(--faint); margin-bottom: 28px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero-float { right: 0; }
}
@media (max-width: 960px) {
  .hero h1 { font-size: 46px; }
  .hero-float { position: relative; right: auto; bottom: auto; width: auto; max-width: 460px; margin: -24px 16px 0 auto; }
  .hero-shot { padding-bottom: 0; }
  .md-body { grid-template-columns: 1fr; }
  .md-side { display: none; }
  .feat-in, .faq-in { grid-template-columns: 1fr; gap: 40px; }
  .feat-flip .feat-text { order: 1; }
  .feat-flip .feat-visual { order: 2; }
  .mc-shots, .plans { grid-template-columns: 1fr; }
  .mc-grid { grid-template-columns: 1fr 1fr; }
  .mc-grid > div:nth-child(3) { border-left: 0; }
  .mc-grid > div:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .strip-in { grid-template-columns: repeat(3, 1fr); }
  .strip-in > div:nth-child(4) { border-left: 0; padding-left: 0; }
  .strip-in > div:nth-child(n+4) { border-top: 1px solid var(--line-soft); }
  .cmd-layout { grid-template-columns: 1fr; }
  .cmd-nav { position: static; }
  .cmd-nav nav { flex-direction: row; flex-wrap: wrap; }
  .cmd-nav .count { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}
@media (max-width: 720px) {
  .site-header-in { gap: 12px; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg-0); padding: 8px 12px 16px; border-bottom: 1px solid var(--line-soft); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 12px; font-size: 15px; }
  .nav-toggle { display: inline-grid !important; }
  .show-sm { display: block !important; }
  .hide-sm, .site-header-right .badge { display: none !important; }
  .hero { padding: 56px 0 24px; }
  .hero h1 { font-size: 36px; letter-spacing: -0.035em; }
  .hero .lead { font-size: 16px; }
  .hero-shot { margin-top: 44px; }
  .md-main { padding: 16px; }
  .md-save { position: static; margin-top: 14px; flex-wrap: wrap; }
  .md-body { min-height: 0; }
  .hero-float { margin: 16px 0 0; max-width: none; }
  .strip-in { grid-template-columns: 1fr 1fr; }
  .strip-in > div { padding: 18px 0 18px 16px; }
  .strip-in > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .strip-in > div:nth-child(4) { border-left: 1px solid var(--line-soft); padding-left: 16px; }
  .strip-in > div:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .feat, .mc, .pricing, .faq { padding: 64px 0; }
  .final { padding: 72px 0; }
  .feat h2 { font-size: 28px; }
  .section-head h2 { font-size: 30px; }
  .final h2 { font-size: 34px; }
  .section-head { margin-bottom: 32px; }
  .mc-grid { grid-template-columns: 1fr; }
  .mc-grid > div { border-left: 0 !important; border-top: 1px solid var(--line-soft); }
  .mc-grid > div:first-child { border-top: 0; }
  .steps3 { grid-template-columns: 1fr; gap: 0; }
  .dc { font-size: 14px; }
  .dc-msg { padding: 6px 12px; gap: 10px; }
  .dc-av, .dc-av-img { width: 34px; height: 34px; }
  .dc-topic { display: none; }
  .cmd { grid-template-columns: 1fr; gap: 4px; }
  .auth-panel { padding: 20px 16px; }
  .auth-box { padding: 32px 0; }
  .plan { padding: 22px; }
}

/* ---------- bot profile card (Discord popout) ---------- */
.dcp { width: 100%; background: #232428; color: #dbdee1; font-size: 14px; position: relative; border-radius: 10px; }
.dcp-banner { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }
.dcp-av { position: absolute; left: 16px; top: calc((100% * 0) + 60px); width: 92px; height: 92px; border-radius: 50%; background: #232428; display: grid; place-items: center; }
.dcp-av-img { width: 80px; height: 80px; border-radius: 50%; box-shadow: none; display: block; }
.dcp-online { position: absolute; right: 6px; bottom: 6px; width: 22px; height: 22px; border-radius: 50%; background: #23a55a; border: 5px solid #232428; }
.dcp-body { padding: 52px 16px 16px; }
.dcp-name { display: flex; align-items: center; gap: 6px; }
.dcp-name b { color: #f2f3f5; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.dcp-tag { background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; height: 16px; line-height: 16px; padding: 0 5px; border-radius: 4px; }
.dcp-user { color: #b5bac1; font-size: 14px; margin-bottom: 12px; }
.dcp-sec { background: #111214; border-radius: 8px; padding: 10px 12px; margin-top: 8px; }
.dcp-sec h5 { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: #f2f3f5; }
.dcp-sec p { color: #dbdee1; font-size: 13.5px; line-height: 1.4; }
.dcp-code { font-family: var(--mono); font-size: 12px; background: #2b2d31; padding: 1px 4px; border-radius: 3px; }
.dcp-roles { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.dcp-roles span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #dbdee1; background: #2b2d31; border-radius: 4px; padding: 2px 8px; }
.dcp-roles i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.hero-float-left { right: auto; left: -36px; width: 300px; bottom: 24px; }
.hero-float-left .dcp { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }

/* ---------- banner band ---------- */
.band { padding: 112px 0 0; }
.band-img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line-soft); background: #0c1730; }
.band + .final { padding-top: 88px; }

@media (max-width: 1100px) {
  .hero-float-left { left: 0; }
}
@media (max-width: 960px) {
  .hero-shot { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
  .hero-shot > .md { flex: 1 1 100%; }
  .hero-float, .hero-float-left { position: static; margin: 0; flex: 1 1 300px; max-width: none; width: auto; }
  .hero-float-left { flex: 0 1 300px; }
}
@media (max-width: 720px) {
  .hero-float-left { flex: 1 1 100%; }
  .band { padding-top: 64px; }
  .band + .final { padding-top: 56px; }
  .band-img { border-radius: 10px; }
}

/* =====================================================================
   Extra public pages: features, premium, docs, status, changelog,
   leaderboard, 404
   ===================================================================== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-hero { max-width: 760px; margin-bottom: 40px; }
.page-hero h1 { font-size: 46px; letter-spacing: -0.04em; line-height: 1.05; font-weight: 720; margin-bottom: 14px; }
.strip .live b { color: var(--text-strong); }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 7px; vertical-align: middle; box-shadow: 0 0 0 3px rgba(34, 165, 89, 0.18); }

/* features */
.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip-nav a { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--bg-1); color: var(--muted); font-size: 14px; font-weight: 500; transition: background-color var(--t), color var(--t); }
.chip-nav a:hover { background: var(--bg-3); color: var(--text-strong); }
.chip-nav span { color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.fgroup-sec { margin-bottom: 48px; scroll-margin-top: 88px; }
.fgroup-sec h2 { font-size: 22px; letter-spacing: -0.025em; margin-bottom: 16px; }
.fcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.fcard { background: var(--bg-1); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.fcard-top { display: flex; align-items: center; gap: 12px; }
.fcard-top h3 { font-size: 16px; flex: 1; letter-spacing: -0.015em; }
.fcard .mr-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(var(--tint), 0.14); color: rgb(var(--tint)); }
.fcard p { color: var(--faint); font-size: 14px; }
.fcard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fcard li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.fcard li .ico { color: rgb(var(--tint)); margin-top: 3px; }
.fcard-cmds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.fcard-cmds code { font-size: 12px; background: var(--bg-3); border: 0; color: var(--muted); }
.cta-card { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--bg-1); border-radius: 14px; padding: 28px 32px; margin-top: 16px; }
.cta-card h2 { font-size: 22px; letter-spacing: -0.025em; margin-bottom: 4px; }
.cta-card .cta-row { margin-top: 0; }

/* premium */
.table-wrap { margin-top: 40px; overflow-x: auto; background: var(--bg-1); border-radius: 14px; }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 14px; }
.compare th, .compare td { padding: 14px 20px; text-align: left; border-top: 1px solid var(--line-soft); }
.compare thead th { border-top: 0; color: var(--faint); font-size: 12.5px; font-weight: 600; }
.compare tbody th { font-weight: 500; color: var(--text); }
.compare td { width: 180px; }
.compare .yes { color: var(--accent-text); display: inline-flex; }
.compare .no { color: var(--dim); }
.soon { display: inline-block; font-size: 11.5px; font-weight: 600; color: #f5c55a; background: rgba(240, 178, 50, 0.1); padding: 2px 8px; border-radius: 999px; margin-left: 4px; }

/* docs */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.docs-toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; }
.docs-toc nav, .docs-toc-cmds { display: flex; flex-direction: column; gap: 1px; }
.docs-toc a { color: var(--faint); font-size: 14px; padding: 5px 10px; border-radius: 6px; }
.docs-toc a:hover { color: var(--text-strong); background: var(--bg-hover); }
.docs-toc-cmds { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.docs-toc-cmds a { font-size: 13px; color: var(--dim); }
.docs-body { max-width: 780px; min-width: 0; }
.docs-body h1 { font-size: 40px; letter-spacing: -0.04em; margin-bottom: 12px; }
.docs-body section { padding-top: 40px; scroll-margin-top: 80px; }
.docs-body h2 { font-size: 24px; letter-spacing: -0.025em; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.docs-body h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 28px 0 12px; scroll-margin-top: 80px; }
.docs-body h3 .ico { color: var(--faint); }
.docs-body p, .docs-body li { color: var(--muted); line-height: 1.7; }
.docs-body p + p { margin-top: 10px; }
.docs-body ul { padding-left: 20px; }
.docs-body b { color: var(--text-strong); font-weight: 600; }
.doc-steps { counter-reset: s; list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.doc-steps li { counter-increment: s; position: relative; padding: 12px 16px 12px 52px; background: var(--bg-1); border-radius: 10px; }
.doc-steps li::before { content: counter(s); position: absolute; left: 16px; top: 13px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 650; display: grid; place-items: center; }
.doc-cmds { display: grid; gap: 8px; }
.doc-cmd { background: var(--bg-1); border-radius: 10px; padding: 14px 16px; }
.doc-cmd-sig { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.doc-cmd-sig code { background: transparent; border: 0; padding: 0; color: var(--text-strong); font-size: 14px; font-weight: 600; margin-right: 4px; }
.opt { font-family: var(--mono); font-size: 12px; padding: 1px 7px; border-radius: 5px; background: var(--bg-3); color: var(--faint); }
.opt.req { background: var(--accent-soft); color: var(--accent-text); }
.doc-cmd p { font-size: 14px; margin-top: 4px; }
.doc-cmd dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 10px 0 0; font-size: 13px; }
.doc-cmd dt { font-family: var(--mono); color: var(--text); }
.doc-cmd dt em { font-family: var(--font); font-style: normal; font-size: 11px; color: var(--accent-text); margin-left: 4px; }
.doc-cmd dd { margin: 0; color: var(--faint); }
.doc-table { overflow-x: auto; background: var(--bg-1); border-radius: 10px; margin: 12px 0; }
.doc-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc-table th, .doc-table td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line-soft); color: var(--muted); vertical-align: top; }
.doc-table tr:first-child th { border-top: 0; color: var(--faint); font-size: 12.5px; font-weight: 600; }
.docs-body .code-block { margin: 12px 0; padding: 14px 16px; }
.docs-body .code-block code { background: transparent; border: 0; padding: 0; }

/* status */
.st-banner { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 12px; font-weight: 600; margin-bottom: 16px; }
.st-banner i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.st-ok { background: rgba(34, 165, 89, 0.1); color: #8fe0b2; }
.st-ok i { background: var(--green); box-shadow: 0 0 0 4px rgba(34, 165, 89, 0.2); }
.st-warn { background: rgba(240, 178, 50, 0.1); color: #f5c55a; }
.st-warn i { background: var(--yellow); box-shadow: 0 0 0 4px rgba(240, 178, 50, 0.2); }
.st-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.st-card { background: var(--bg-1); border-radius: 12px; padding: 16px 18px; }
.st-k { color: var(--faint); font-size: 13px; margin-bottom: 6px; }
.st-v { font-size: 22px; font-weight: 680; color: var(--text-strong); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.st-v.st-ok { background: none; color: #4ccf83; }
.st-v.st-warn { background: none; color: #f5c55a; }
.st-sub { color: var(--dim); font-size: 12.5px; margin-top: 2px; }
.st-foot { margin-top: 16px; }

/* changelog */
.changelog { display: grid; gap: 0; }
.cl-entry { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line-soft); }
.cl-entry:first-child { border-top: 0; padding-top: 0; }
.cl-meta { display: flex; flex-direction: column; gap: 2px; }
.cl-meta b { color: var(--text-strong); font-size: 16px; }
.cl-meta span { color: var(--faint); font-size: 13px; }
.cl-entry ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cl-entry li { display: flex; gap: 10px; align-items: baseline; color: var(--muted); }
.cl-tag { font-size: 11px; font-weight: 650; padding: 2px 8px; border-radius: 999px; flex: none; min-width: 72px; text-align: center; }
.cl-new { background: var(--accent-soft); color: var(--accent-text); }
.cl-improved { background: rgba(160, 132, 255, 0.14); color: #c3b1ff; }
.cl-fixed { background: rgba(34, 165, 89, 0.12); color: #4ccf83; }

/* leaderboard */
.lb-page { max-width: 960px; }
.lb-head { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.lb-head h1 { font-size: 32px; letter-spacing: -0.035em; margin-bottom: 4px; }
.lb-head .eyebrow { margin-bottom: 6px; }
.lb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lb-row { display: grid; grid-template-columns: 36px 40px minmax(0, 1.3fr) minmax(0, 1fr) 84px 70px 64px; gap: 14px; align-items: center; padding: 12px 16px; background: var(--bg-1); border-radius: 12px; }
.lb-rank { font-weight: 700; color: var(--faint); text-align: center; font-variant-numeric: tabular-nums; }
.lb-row.top .lb-rank { width: 28px; height: 28px; line-height: 28px; border-radius: 50%; margin: 0 auto; font-size: 13px; }
.top-1 .lb-rank { background: #f0b232; color: #1a1300; }
.top-2 .lb-rank { background: #b9c0cc; color: #15181c; }
.top-3 .lb-rank { background: #c47f4a; color: #1a0e05; }
.lb-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.lb-av-text { display: grid; place-items: center; color: #fff; font-weight: 650; }
.lb-who { min-width: 0; display: flex; flex-direction: column; }
.lb-who b { color: var(--text-strong); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-who span { color: var(--dim); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-prog span { display: block; font-size: 12px; color: var(--dim); margin-top: 5px; font-variant-numeric: tabular-nums; }
.lb-bar { height: 6px; border-radius: 999px; background: var(--bg-3); overflow: hidden; }
.lb-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.lb-stat, .lb-level { display: flex; flex-direction: column; align-items: flex-end; }
.lb-stat span, .lb-level span { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.lb-stat b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.lb-level b { color: var(--accent-text); font-size: 20px; font-weight: 700; line-height: 1.1; }
.lb-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; }
.lb-foot .logo { border-radius: 4px; box-shadow: none; }

/* 404 */
.nf { text-align: center; padding: 96px 24px 72px; display: flex; flex-direction: column; align-items: center; }
.nf-code { font-size: 128px; font-weight: 780; letter-spacing: -0.06em; line-height: 1; color: var(--bg-3); margin-bottom: 20px; }
.nf h1 { font-size: 32px; letter-spacing: -0.03em; margin-bottom: 10px; }
.nf .lead { max-width: 520px; }
.nf-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 48px; width: 100%; max-width: 760px; text-align: left; }
.nf-links a { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--bg-1); border-radius: 12px; color: var(--faint); font-size: 13px; transition: background-color var(--t); }
.nf-links a:hover { background: var(--bg-3); color: var(--faint); }
.nf-links a .ico { color: var(--accent-text); margin-top: 2px; }
.nf-links b { display: block; color: var(--text-strong); font-size: 14px; font-weight: 600; }

@media (max-width: 960px) {
  .docs { grid-template-columns: 1fr; gap: 24px; }
  .docs-toc { position: static; max-height: none; }
  .docs-toc nav { flex-direction: row; flex-wrap: wrap; }
  .docs-toc-cmds { display: none; }
  .lb-row { grid-template-columns: 32px 40px minmax(0, 1fr) 70px 56px; }
  .lb-row .lb-prog, .lb-row .lb-stat:first-of-type { display: none; }
}
@media (max-width: 720px) {
  .page-hero h1 { font-size: 32px; }
  .docs-body h1 { font-size: 30px; }
  .st-grid { grid-template-columns: 1fr 1fr; }
  .cl-entry { grid-template-columns: 1fr; gap: 12px; }
  .nf-code { font-size: 88px; }
  .nf-links { grid-template-columns: 1fr; }
  .lb-head { gap: 14px; }
  .lb-head h1 { font-size: 24px; }
  .lb-row { grid-template-columns: 28px 36px minmax(0, 1fr) 52px; gap: 10px; padding: 10px 12px; }
  .lb-row .lb-stat { display: none; }
  .lb-av { width: 36px; height: 36px; }
  .doc-cmd dl { grid-template-columns: 1fr; }
  .cta-card { padding: 22px; }
}

/* =====================================================================
   Round 4: marketing polish
   ===================================================================== */
/* header: see-through at the top, solid after scrolling */
.site-header { background: transparent; border-bottom-color: transparent; transition: background-color 200ms ease, border-color 200ms ease; }
.site-header.scrolled { background: rgba(9, 9, 11, 0.94); border-bottom-color: var(--line-soft); }
.site-nav a { border-radius: 999px; }

/* type scale */
.hero h1 { font-size: clamp(38px, 5.6vw, 68px); letter-spacing: -0.045em; }
.section-head h2, .feat h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.04em; line-height: 1.08; }
.final h2 { font-size: clamp(30px, 4vw, 48px); }
.lead { font-size: 17px; }
.hero, .strip, .feat, .mc, .pricing, .faq { border-bottom: 0; }
.strip { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft) !important; background: rgba(9, 9, 11, 0.6); }
.pill { border-radius: 999px; }

/* cards 16px on marketing pages */
.feature, .plan, .fcard, .st-card, .cmd-card, .doc-cmd, .lb-row, .cta-card, .table-wrap, .steps li, .mc-grid, .doc-steps li, .doc-table, .nf-links a, .chip-nav a { border-radius: 16px; }
.mock { border-radius: 14px; }
.chip-nav a { border-radius: 999px; }

/* mocks tilt a little on hover */
.feat-visual .mock, .mc-shots .mock { transition: transform 450ms var(--ease), box-shadow 450ms var(--ease); transform-origin: 50% 50%; }
.feat-visual:hover .mock { transform: perspective(1400px) rotateY(-4deg) rotateX(2deg) translateY(-4px); box-shadow: 0 32px 70px rgba(0, 0, 0, 0.55); }
.feat-flip .feat-visual:hover .mock { transform: perspective(1400px) rotateY(4deg) rotateX(2deg) translateY(-4px); }
.mc-shots .mock:hover { transform: translateY(-4px); }
.mc-shots > div { display: flex; }
.mc-shots > div > .mock { flex: 1; }

/* "what you can do" */
.highlights { padding: 72px 0 8px; }
.hl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hl { background: var(--bg-1); border-radius: 16px; padding: 22px; transition: background-color 200ms ease, transform 200ms var(--ease); }
.hl:hover { background: #16161a; transform: translateY(-2px); }
.hl-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 16px; }
.hl h3 { font-size: 16px; margin-bottom: 6px; letter-spacing: -0.015em; }
.hl p { color: var(--faint); font-size: 14px; line-height: 1.55; }

/* popular commands marquee */
.popular { padding: 64px 0 24px; overflow: hidden; }
.popular-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.popular-head .eyebrow { margin: 0; }
.popular-head .link-sm { display: inline-flex; align-items: center; gap: 4px; }
.marquee { overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee-rev .marquee-track { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.cmd-chip { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 6px; margin-right: 10px; border-radius: 999px; background: var(--bg-1); border: 1px solid var(--line-soft); white-space: nowrap; transition: border-color 150ms ease; }
.cmd-chip:hover { border-color: var(--line-strong); }
.cmd-chip code { border: 0; background: var(--accent-soft); color: var(--accent-text); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.cmd-chip span { color: var(--faint); font-size: 13.5px; }

/* compare */
.compare-sec { padding: 112px 0; }
.cmp { max-width: 900px; margin: 0 auto; overflow-x: auto; border-radius: 16px; background: var(--bg-1); }
.cmp table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 14.5px; }
.cmp th, .cmp td { padding: 16px 22px; text-align: left; border-top: 1px solid var(--line-soft); }
.cmp thead th { border-top: 0; font-size: 13px; font-weight: 600; color: var(--faint); padding-top: 18px; padding-bottom: 18px; }
.cmp tbody th { font-weight: 500; color: var(--text); }
.cmp td { width: 230px; color: var(--faint); }
.cmp .cmp-atlas { background: rgba(79, 124, 255, 0.06); color: var(--text-strong); font-weight: 550; }
.cmp thead .cmp-atlas { color: var(--text-strong); }
.cmp thead .cmp-atlas .logo { display: inline-block; vertical-align: middle; margin-right: 8px; border-radius: 6px; box-shadow: none; }
.cmp-yes { color: var(--accent-text); display: inline-flex; }

/* music now-playing (Discord style) */
.np { display: flex; gap: 14px; max-width: 470px; background: #2b2d31; border-radius: 8px; padding: 14px; margin-top: 4px; border-left: 4px solid #4f7cff; }
.np-art { width: 84px; height: 84px; border-radius: 8px; background: #1e1f22; flex: none; display: flex; align-items: flex-end; justify-content: center; gap: 5px; padding: 16px 14px; }
.np-art i { width: 8px; border-radius: 3px; background: #4f7cff; height: 30%; animation: eq 1.1s ease-in-out infinite alternate; }
.np-art i:nth-child(2) { animation-delay: -0.3s; height: 60%; background: #8aa8ff; }
.np-art i:nth-child(3) { animation-delay: -0.7s; height: 85%; }
.np-art i:nth-child(4) { animation-delay: -0.15s; height: 50%; background: #8aa8ff; }
.np-art i:nth-child(5) { animation-delay: -0.5s; height: 70%; }
@keyframes eq { 0% { transform: scaleY(0.35); } 100% { transform: scaleY(1); } }
.np-art i { transform-origin: bottom; }
.np-main { flex: 1; min-width: 0; }
.np-k { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8aa8ff; }
.np-title { color: #f2f3f5; font-weight: 700; font-size: 17px; margin-top: 2px; }
.np-artist { color: #b5bac1; font-size: 13px; }
.np-bar { height: 4px; border-radius: 999px; background: #4e5058; margin-top: 12px; overflow: hidden; }
.np-bar i { display: block; height: 100%; width: 100%; background: #f2f3f5; border-radius: 999px; transform-origin: left; transform: scaleX(0.35); animation: npProgress 90s linear infinite; }
@keyframes npProgress { from { transform: scaleX(0.35); } to { transform: scaleX(1); } }
/* CSS animations stop while their section is off screen (site.js adds .anim-paused) */
.anim-paused, .anim-paused * { animation-play-state: paused !important; }
.np-times { display: flex; justify-content: space-between; font-size: 11.5px; color: #949ba4; margin-top: 4px; font-variant-numeric: tabular-nums; }
.np-q { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; padding: 3px 0; }
.np-qn { color: #949ba4; width: 14px; flex: none; }
.np-qt { flex: 1; min-width: 0; color: #b5bac1; }
.np-qt b { color: #f2f3f5; font-weight: 500; }
.np-qd { color: #949ba4; font-variant-numeric: tabular-nums; }

/* Minecraft live demo */
.mclive .dc-scroll { padding-bottom: 14px; }
.mclive-feed { display: flex; flex-direction: column; gap: 4px; padding: 8px 16px 0 70px; min-height: 76px; }
.mclive-line { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #b5bac1; }
.mclive-line b { color: #f2f3f5; font-weight: 600; }
.mclive-line .ico { color: #3ba55c; }
.mclive-line.left .ico { color: #ed4245; transform: rotate(180deg); }
.mclive-new { animation: feedIn 450ms var(--ease); }
.dc-pl-new { animation: popIn 450ms var(--ease); background: rgba(59, 165, 92, 0.18); color: #a6e9c2; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-6px); } }
@keyframes popIn { from { opacity: 0; transform: scale(0.85); } }
[data-mc-count] { font-variant-numeric: tabular-nums; }

/* final CTA with the banner */
.final { padding: 96px 0 120px; }
.final-card { max-width: 1112px; margin: 0 auto; background: var(--bg-1); border-radius: 20px; overflow: hidden; border: 1px solid var(--line-soft); }
.final-banner { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }
.final-card .final-in { padding: 44px 24px 52px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.final-card h2 { margin-bottom: 12px; }

@media (max-width: 960px) {
  .hl-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .highlights { padding-top: 48px; }
  .hl-grid { grid-template-columns: 1fr; }
  .popular { padding-top: 40px; }
  .cmd-chip { height: 40px; }
  .compare-sec { padding: 64px 0; }
  .cmp th, .cmp td { padding: 12px 14px; font-size: 13.5px; }
  .cmp td { width: auto; }
  .final { padding: 56px 0 72px; }
  .final-card .final-in { padding: 28px 18px 36px; }
  .np-art { width: 64px; height: 64px; padding: 12px 10px; gap: 4px; }
  .np-art i { width: 6px; }
  .mclive-feed { padding-left: 60px; }
  .feat-visual:hover .mock, .feat-flip .feat-visual:hover .mock { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-track > .cmd-chip:nth-child(n+11) { display: none; }
  .feat-visual:hover .mock, .feat-flip .feat-visual:hover .mock, .mc-shots .mock:hover, .hl:hover { transform: none; }
}

/* =====================================================================
   Round 5: hero globe, perspective grid, section dividers
   ===================================================================== */
.hero { position: relative; isolation: isolate; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-globe {
  position: absolute; top: -10px; left: calc(50% + 150px); width: 660px; height: 660px;
  opacity: 0; transition: opacity 1200ms var(--ease);
}
.hero-globe.on { opacity: 1; }
.hero-globe canvas { display: block; }
.hero h1 { text-shadow: 0 2px 28px rgba(9, 9, 11, 0.85); }
.hero .lead { text-shadow: 0 1px 18px rgba(9, 9, 11, 0.9); }

/* perspective grid: .grid-floor lives in app.css; the hero only sets its size */
.hero-grid { left: -30%; right: -30%; height: 52%; }

/* section divider: soft accent line, one light sweep when it scrolls in */
.sdiv {
  position: relative; height: 1px; max-width: 880px; margin: 8px auto; overflow: hidden;
  background: linear-gradient(90deg, transparent, rgba(79, 124, 255, 0.28) 25%, rgba(138, 168, 255, 0.55) 50%, rgba(79, 124, 255, 0.28) 75%, transparent);
}
.sdiv::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  transform: translateX(-110%);
}
.js .sdiv.in::after { animation: sweep 1.8s var(--ease) 250ms both; }
@keyframes sweep { from { transform: translateX(-110%); } to { transform: translateX(470%); } }

@media (max-width: 1100px) {
  .hero-globe { left: calc(50% + 90px); width: 560px; height: 560px; }
}
@media (max-width: 860px) {
  .hero-globe { left: 50%; top: 0; width: 480px; height: 480px; margin-left: -240px; }
  .hero-globe.on { opacity: 0.35; }
  .hero-grid { height: 40%; opacity: 0.45; }
}
@media (max-width: 480px) {
  .hero-globe { width: 380px; height: 380px; margin-left: -190px; top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .sdiv.in::after { animation: none; }
  .hero-globe { transition: none; }
}
@media (min-width: 1500px) {
  .hero-globe { left: calc(50% + 240px); }
}

/* 404: lost in space. Globe behind the code, floor at the bottom */
.nf-page { position: relative; isolation: isolate; overflow: hidden; }
.nf-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.nf-globe { position: absolute; left: 50%; top: 10px; width: 520px; height: 520px; margin-left: -260px; }
.nf-globe.on { opacity: 0.75; }
.nf-page .grid-floor { height: 45%; opacity: 0.55; }
.nf-page .nf { position: relative; z-index: 1; padding-top: 150px; }
.nf-page .nf-code { color: rgba(240, 244, 255, 0.94); text-shadow: 0 6px 40px rgba(9, 9, 11, 0.9); }
.nf-page .nf h1, .nf-page .nf .lead { text-shadow: 0 2px 20px rgba(9, 9, 11, 0.9); }
@media (max-width: 720px) {
  .nf-globe { width: 380px; height: 380px; margin-left: -190px; top: 20px; }
  .nf-globe.on { opacity: 0.5; }
  .nf-page .nf { padding-top: 110px; }
}

/* =====================================================================
   Round 7: personalizer + automations mocks, all-modules compare,
   features "New" strip, premium limits
   ===================================================================== */
.pz-mock { position: relative; display: grid; gap: 16px; max-width: 520px; margin: 0 auto; }
.pz-card { width: 300px; max-width: 100%; }
.pz-banner { height: 104px; background: #f0a030; position: relative; overflow: hidden; }
.pz-banner i { position: absolute; bottom: -10px; width: 46px; height: 46px; background: rgba(0, 0, 0, 0.16); transform: rotate(45deg); }
.pz-banner i:nth-child(1) { left: 24px; } .pz-banner i:nth-child(2) { left: 120px; bottom: -22px; } .pz-banner i:nth-child(3) { right: 30px; }
.pz-av { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: #f0a030; color: #fff; font-weight: 800; font-size: 36px; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.12); }
.pz-msg { margin: -40px 0 0 auto; width: min(380px, 100%); position: relative; }
.pz-msg .dc { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }

.au-mock { padding: 18px; border-radius: 16px; background: var(--bg-1); border: 1px solid var(--line-soft); max-width: 440px; margin: 0 auto; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.au-head { display: flex; align-items: center; gap: 8px; color: var(--text-strong); margin-bottom: 14px; }
.au-head .ico { color: var(--accent-text); }
.au-head .md-sw { margin-left: auto; }
.au-step { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-soft); }
.au-step b { display: block; color: var(--text-strong); font-size: 14px; margin-bottom: 4px; }
.au-step p { color: var(--muted); font-size: 13.5px; margin: 0 0 4px; }
.au-n { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; box-shadow: 0 0 0 4px var(--accent-soft); }
.au-link { width: 2px; height: 14px; margin-left: 26px; background: linear-gradient(var(--accent), rgba(79, 124, 255, 0.2)); }
.au-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-weight: 600; font-size: 12.5px; }
.au-role { background: rgba(245, 197, 90, 0.12); color: #f5c55a; }

.cmp-group th { padding-top: 18px !important; color: var(--faint) !important; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; }
.cmp-mod { display: inline-flex; align-items: center; gap: 8px; }
.cmp-mod .ico { color: var(--dim); }
.cmp-more { display: flex; justify-content: center; padding: 16px 0 4px; }
.cmp-more .btn[aria-expanded="true"] .ico { transform: rotate(180deg); }

.new-strip { margin: 8px 0 36px; }
.new-strip .eyebrow { display: inline-block; margin-bottom: 12px; }
.new-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.new-card { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: start; padding: 16px; border-radius: 16px; background: var(--bg-1); border: 1px solid var(--line-soft); color: var(--faint); font-size: 13.5px; transition: border-color 150ms ease, transform 150ms var(--ease); }
.new-card:hover { border-color: rgba(79, 124, 255, 0.45); color: var(--faint); transform: translateY(-2px); }
.new-card .mr-ic { grid-row: span 2; }
.new-card b { color: var(--text-strong); font-size: 15px; }
.compare .more { color: var(--accent-text); font-weight: 550; }
.compare thead .badge { margin-left: 6px; vertical-align: middle; }

@media (max-width: 900px) {
  .new-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .new-grid { grid-template-columns: minmax(0, 1fr); }
  .pz-msg { margin-top: 0; }
  .pz-card { margin: 0 auto; }
}
.new-card { --tint: 99, 140, 255; }
.new-card .mr-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(var(--tint), 0.14); color: rgb(var(--tint)); }

/* ---------- Guides (/guides, /guides/:slug). All classes start with gd-. Uses the tokens from app.css. ---------- */

/* index grid */
.gd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gd-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 22px; background: var(--bg-1); border: 1px solid var(--line-soft); border-radius: 16px; color: var(--text); }
.gd-card:hover { background: var(--bg-3); border-color: var(--line); color: var(--text); }
.gd-card-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 4px; }
.gd-card h2, .gd-card h3 { font-size: 18px; letter-spacing: -0.02em; }
.gd-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 28px; }
.gd-search { flex: 0 1 360px; min-width: 240px; }
.gd-jump { display: flex; flex-wrap: wrap; gap: 6px; }
.gd-jump a { padding: 6px 12px; border-radius: 999px; background: var(--bg-1); border: 1px solid var(--line-soft); color: var(--faint); font-size: 13px; font-weight: 550; }
.gd-jump a:hover { background: var(--bg-3); color: var(--text-strong); }
.gd-cat { margin-bottom: 36px; scroll-margin-top: 88px; }
.gd-cat-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 14px; }
.gd-cat-head h2 { font-size: 22px; letter-spacing: -0.02em; }
.gd-cat-head p { color: var(--faint); font-size: 14px; }
.gd-step-text a, .gd-tips a, .gd-hero a, .page-hero .lead a { color: var(--accent-text); }
.gd-card p { flex: 1; color: var(--muted); font-size: 14px; line-height: 1.6; }
.gd-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--faint); font-size: 13px; margin-top: 4px; }
.gd-card-go { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; color: var(--accent-text); font-weight: 550; }
.gd-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); margin: 0 4px; }

/* hero */
.gd-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--faint); margin-bottom: 18px; }
.gd-crumbs a { color: var(--faint); }
.gd-crumbs a:hover { color: var(--text-strong); }
.gd-crumbs .ico { color: var(--dim); }
.gd-crumbs span { color: var(--muted); min-width: 0; }
.gd-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 16px; color: var(--faint); font-size: 14px; }
.gd-meta .ico { color: var(--dim); }
.gd-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.gd-cta .btn { border-radius: 999px; padding: 0 18px; }

/* layout: sticky contents on the left, steps on the right */
.gd-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; align-items: start; }
.gd-toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; }
.gd-toc-k { display: block; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); padding: 0 10px 8px; }
.gd-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.gd-toc a { display: flex; align-items: flex-start; gap: 10px; padding: 6px 10px; border-radius: 8px; color: var(--faint); font-size: 14px; line-height: 1.4; }
.gd-toc a:hover { background: var(--bg-hover); color: var(--text-strong); }
.gd-toc a span { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); color: var(--muted); font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; }
.gd-body { min-width: 0; max-width: 820px; display: flex; flex-direction: column; gap: 16px; }

/* step cards */
.gd-step { min-width: 0; padding: 24px; background: var(--bg-1); border: 1px solid var(--line-soft); border-radius: 16px; scroll-margin-top: 88px; }
.gd-step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.gd-num { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.gd-step h2 { font-size: 19px; letter-spacing: -0.02em; }
.gd-step-text { color: var(--muted); line-height: 1.7; overflow-wrap: anywhere; }
.gd-step-text p + p, .gd-step-text p + .gd-list, .gd-step-text .gd-list + p, .gd-step-text .gd-note, .gd-step-text .gd-code { margin-top: 10px; }
.gd-step-text b { color: var(--text-strong); font-weight: 600; }
.gd-list { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.gd-list li::marker { color: var(--dim); }
.gd-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-soft); color: var(--muted); font-size: 14px; line-height: 1.6; }
.gd-note .ico { flex: none; margin-top: 3px; color: var(--accent-text); }
.gd-code { white-space: pre; overflow-x: auto; max-width: 100%; }
.gd-code code { background: transparent; border: 0; padding: 0; }
.gd-shot { margin-top: 18px; min-width: 0; }
.gd-shot .mock { box-shadow: none; border-color: var(--line-soft); }

/* tips + end card */
.gd-tips { padding: 22px 24px; background: var(--bg-1); border: 1px solid var(--line-soft); border-radius: 16px; scroll-margin-top: 88px; }
.gd-tips h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin-bottom: 12px; }
.gd-tips h2 .ico { color: var(--yellow); }
.gd-tips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gd-tips li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.gd-tips li .ico { flex: none; margin-top: 4px; color: var(--green); }
.gd-tips b { color: var(--text-strong); font-weight: 600; }
.gd-end { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 24px; background: var(--bg-1); border: 1px solid var(--line-soft); border-radius: 16px; margin-top: 8px; }
.gd-end > div:first-child { flex: 1 1 320px; min-width: 0; }
.gd-end h2 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 6px; }
.gd-end p { color: var(--muted); }
.gd-end .gd-cta { margin-top: 0; }
.gd > .gd-end { margin-top: 32px; }

/* prev / next */
.gd-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.gd-pg { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 16px 18px; background: var(--bg-1); border: 1px solid var(--line-soft); border-radius: 16px; color: var(--faint); }
.gd-pg:hover { background: var(--bg-3); border-color: var(--line); color: var(--text-strong); }
.gd-pg > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gd-pg small { font-size: 12px; color: var(--faint); }
.gd-pg b { color: var(--text-strong); font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.gd-pg-next { justify-content: flex-end; text-align: right; }

/* dashboard-style mock */
.gd-dash { background: var(--bg-2); font-size: 13px; }
.gd-dash-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.gd-dash-ic { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.gd-dash-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gd-dash-t b { color: var(--text-strong); font-size: 15px; font-weight: 650; letter-spacing: -0.015em; }
.gd-dash-t span { color: var(--faint); font-size: 12.5px; }
.gd-dash-body { padding: 2px 16px; }
.gd-dash-foot { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 10px 12px 10px 16px; border-top: 1px solid var(--line-soft); background: var(--bg-1); }
.gd-foot-t { flex: 1 1 auto; color: var(--text-strong); font-weight: 500; }
.gd-fbtns { display: flex; align-items: center; gap: 8px; }
.gd-fbtn { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; color: var(--text-strong); font-weight: 550; }
.gd-fbtn-go { background: var(--green); color: #fff; }
.gd-fbtn-acc { background: var(--accent); color: #fff; }
.gd-f { display: block; padding: 12px 0; border-top: 1px solid var(--line-soft); min-width: 0; }
.gd-f:first-child { border-top: 0; }
.gd-f-l { display: block; color: var(--text-strong); font-weight: 600; font-size: 12.5px; margin-bottom: 6px; }
.gd-f-h { display: block; color: var(--faint); font-size: 12px; margin-top: 5px; }
.gd-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gd-row .gd-f-l { margin: 0; }
.gd-row .gd-f-h { margin-top: 2px; }
.gd-in { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 34px; min-width: 0; padding: 6px 10px; border-radius: 10px; background: var(--bg-input); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-strong); overflow-wrap: anywhere; }
.gd-in .ico { color: var(--faint); }
.gd-in-area { display: block; min-height: 56px; padding: 8px 10px; line-height: 1.6; }
.gd-chev { margin-left: auto; color: var(--faint); }
.gd-ph { font-family: var(--mono); font-size: 11.5px; color: var(--accent-text); background: var(--accent-soft); padding: 1px 4px; border-radius: 4px; }
.gd-chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--bg-3); color: var(--text-strong); font-size: 12px; }
.gd-chip i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.gd-pairs { display: flex; flex-direction: column; gap: 6px; }
.gd-pair { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 6px; }
.gd-in-k { justify-content: center; font-variant-numeric: tabular-nums; }
.gd-qs { display: flex; flex-direction: column; gap: 6px; }
.gd-key { font-family: var(--mono); font-size: 12px; word-break: break-all; }
.gd-swatch { width: 16px; height: 16px; border-radius: 5px; flex: none; display: inline-block; }
.gd-sw { flex: none; display: inline-block; position: relative; width: 34px; height: 20px; border-radius: 999px; background: #3a3a42; }
.gd-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.gd-sw.on { background: var(--green); }
.gd-sw.on::after { left: 17px; }

/* terminal mock */
.gd-term { background: #0b0b0d; font-family: var(--mono); font-size: 12.5px; }
.gd-term-top { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line-soft); color: var(--faint); font-family: var(--font); font-size: 12px; }
.gd-dots { display: flex; gap: 6px; }
.gd-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a30; }
.gd-term-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.gd-term-line { color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.gd-t-in { color: var(--text-strong); }
.gd-t-warn { color: #f5c55a; }
.gd-t-ok { color: #4ccf83; }

/* file attachment in a Discord mock */
.gd-file { display: flex; align-items: center; gap: 10px; max-width: 360px; margin-top: 8px; padding: 10px 12px; border-radius: 8px; background: #2b2d31; border: 1px solid #1e1f22; color: #00a8fc; }
.gd-file span { display: flex; flex-direction: column; min-width: 0; }
.gd-file b { font-weight: 500; font-size: 14px; overflow-wrap: anywhere; }
.gd-file small { color: #949ba4; font-size: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .gd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .gd-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .gd-toc { position: static; max-height: none; overflow: visible; }
  .gd-toc-in { padding: 14px 8px 8px; background: var(--bg-1); border: 1px solid var(--line-soft); border-radius: 16px; }
  .gd-body { max-width: none; }
}
@media (max-width: 600px) {
  .gd-grid { grid-template-columns: minmax(0, 1fr); }
  .gd-card { padding: 18px; }
  .gd-step { padding: 18px 16px; }
  .gd-step h2 { font-size: 17px; }
  .gd-tips, .gd-end { padding: 18px 16px; }
  .gd-cta .btn { flex: 1 1 auto; }
  .gd-pager { grid-template-columns: minmax(0, 1fr); }
  .gd-pg-next { justify-content: space-between; }
  .gd-pg-prev { justify-content: flex-start; }
  .gd-dash-body { padding: 2px 12px; }
  .gd-dash-head { padding: 12px; }
  .gd-foot-t { flex-basis: 100%; }
}

/* ---------- public tools (/tools, /tools/<slug>) ---------- */
.tl-page [hidden] { display: none !important; }
.tl-eyebrow:hover { color: var(--text-strong); }
.tl-mono { font-family: var(--mono); }
.tl-page .input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--red); }

/* cards and layout */
.tl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.tl-card { background: var(--bg-1); border: 1px solid var(--line-soft); border-radius: 16px; padding: 20px; min-width: 0; }
.tl-card + .tl-card, .tl-grid + .tl-card { margin-top: 16px; }
.tl-grid > .tl-card + .tl-card { margin-top: 0; }
.tl-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tl-card-head .tl-h { margin-bottom: 0; }
.tl-h { font-size: 16px; letter-spacing: -0.015em; margin-bottom: 12px; }
.tl-h label { cursor: pointer; }
.tl-h3 { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin: 20px 0 10px; }
.tl-sub { font-size: 13px; color: var(--faint); line-height: 1.5; }
.tl-card > .tl-h + .tl-sub { margin-top: -6px; margin-bottom: 14px; }
.tl-inline + .tl-sub, .tl-msg + .tl-sub { margin-top: 10px; }
.tl-field { display: block; margin: 0 0 14px; min-width: 0; }
.tl-field:last-child { margin-bottom: 0; }
.tl-field .tl-sub { margin-top: 6px; }
.tl-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-strong); margin-bottom: 6px; }
.tl-2col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
.tl-2col > .tl-field:last-child { margin-bottom: 14px; }
.tl-inline { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tl-inline > .input { flex: 1; min-width: 0; }
.tl-count { font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.tl-count.tl-over { color: #ff8f93; font-weight: 600; }
.tl-err { display: flex; align-items: flex-start; gap: 6px; color: #ff8f93; font-size: 13px; margin-top: 8px; }
.tl-err .ico, .tl-note .ico { margin-top: 3px; }
.tl-note { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; margin-top: 12px; }
.tl-warn { color: #f5c55a; background: rgba(240, 178, 50, 0.08); border-color: rgba(240, 178, 50, 0.22); }
.tl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tl-code { font-family: var(--mono); font-size: 13px; background: var(--bg-2); border: 1px solid var(--line-soft); color: var(--accent-text); padding: 2px 7px; border-radius: 6px; overflow-wrap: anywhere; }
.tl-msg { margin-top: 4px; }

/* pill chips (quick picks, presets) */
.tl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-chip {
  height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-3); color: var(--text);
  font: 550 13px/1 var(--font); cursor: pointer; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.tl-chip:hover { background: var(--bg-4); color: var(--text-strong); border-color: var(--line-strong); }
.tl-chip[aria-pressed="true"] { background: var(--accent-soft); border-color: rgba(79, 124, 255, 0.45); color: var(--accent-text); }

/* /tools index */
.tl-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tl-tool {
  --tint: 99, 140, 255;
  display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 16px; background: var(--bg-1); border: 1px solid var(--line-soft);
  color: var(--faint); font-size: 14px; line-height: 1.55; transition: border-color 150ms ease, transform 150ms var(--ease, ease);
}
.tl-tool:hover { color: var(--faint); border-color: rgba(var(--tint), 0.5); transform: translateY(-2px); }
.tl-tool h2 { font-size: 17px; margin-top: 6px; }
.tl-tool p { flex: 1; }
.tl-tool-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--tint), 0.14); color: rgb(var(--tint)); }
.tl-tool-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--text-strong); font-weight: 600; font-size: 14px; }
.tl-tool-go .ico { transition: transform 180ms var(--ease, ease); }
.tl-tool:hover .tl-tool-go .ico { transform: translateX(3px); }
.tl-tint-timestamp { --tint: 99, 140, 255; }
.tl-tint-embed { --tint: 129, 140, 248; }
.tl-tint-permissions { --tint: 240, 178, 50; }
.tl-tint-color { --tint: 235, 69, 158; }
.tl-tint-formatting { --tint: 52, 199, 120; }

/* "More tools" row */
.tl-more { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.tl-more-h { font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-bottom: 12px; }
.tl-more-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-more-link { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--bg-1); border: 1px solid var(--line-soft); color: var(--muted); font-size: 14px; font-weight: 500; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
.tl-more-link:hover { background: var(--bg-3); color: var(--text-strong); border-color: var(--line); }

/* timestamp */
.tl-ts-list { list-style: none; margin: 0; padding: 0; }
.tl-ts-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) 36px; grid-template-areas: "meta prev copy"; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.tl-ts-row:first-child { border-top: 0; padding-top: 4px; }
.tl-ts-meta { grid-area: meta; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.tl-ts-name { font-size: 12.5px; color: var(--faint); font-weight: 550; display: inline-flex; align-items: center; gap: 6px; }
.tl-ts-name .badge { font-size: 11px; padding: 0 7px; height: 18px; }
.tl-ts-prev { grid-area: prev; color: var(--text-strong); font-size: 14.5px; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.tl-ts-row > .icon-btn { grid-area: copy; }
.tl-md-time { background: rgba(255, 255, 255, 0.06); border-radius: 3px; padding: 0 2px; }

/* permissions */
.tl-perm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "main side"; gap: 16px; align-items: start; }
.tl-perm-main { grid-area: main; min-width: 0; }
.tl-perm-side { grid-area: side; position: sticky; top: 88px; min-width: 0; }
.tl-perm-side .tl-chips { margin-top: 0; }
.tl-seg { margin: 14px 0 16px; }
.tl-big { font-size: 18px; font-weight: 600; height: 46px; }
.tl-pgroup + .tl-pgroup { margin-top: 16px; }
.tl-checks { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tl-check { align-items: flex-start; }
.tl-check .check-box { margin-top: 2px; }
.tl-pname { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.tl-pname small { font-family: var(--mono); font-size: 10.5px; color: var(--dim); margin-top: 3px; overflow-wrap: anywhere; }
.tl-pname em { font-style: normal; font-size: 12px; color: #f5c55a; margin-top: 4px; }
.tl-scopes { display: grid; gap: 8px; }
.tl-scopes .check { font-size: 13px; }
.tl-page a.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
#tlInviteOpen { margin-top: 4px; }

/* color */
.tl-pick-row { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.tl-pick-row .tl-field { flex: 1; margin: 0; }
.tl-pick { flex: none; width: 64px; height: 64px; padding: 0; border: 1px solid var(--line-strong); border-radius: 14px; background: none; cursor: pointer; overflow: hidden; }
.tl-pick::-webkit-color-swatch-wrapper { padding: 0; }
.tl-pick::-webkit-color-swatch { border: 0; border-radius: 13px; }
.tl-pick::-moz-color-swatch { border: 0; border-radius: 13px; }
.tl-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-swatch {
  width: 32px; height: 32px; border-radius: 50%; background: var(--sw); border: 1px solid rgba(255, 255, 255, 0.16); cursor: pointer; padding: 0;
  transition: transform 150ms var(--ease, ease), box-shadow 150ms ease;
}
.tl-swatch:hover { transform: scale(1.08); }
.tl-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg-1), 0 0 0 4px var(--text-strong); }
.tl-uses { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tl-use { display: grid; grid-template-columns: 84px minmax(0, 1fr) 36px; align-items: center; gap: 10px; }
.tl-use-l { font-size: 13px; color: var(--faint); font-weight: 550; }
.tl-use .tl-code { padding: 6px 9px; }

/* formatting */
.tl-md-in { font: 14px/1.55 var(--mono); min-height: 340px; }
.tl-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #5865f2; color: #fff; font-weight: 700; font-size: 16px; }
.tl-md { white-space: normal; }
.tl-md strong { font-weight: 700; }
.tl-md u { text-decoration: underline; }
.tl-md-h1, .tl-md-h2, .tl-md-h3 { color: #f2f3f5; font-weight: 700; line-height: 1.375; margin: 8px 0 4px; }
.tl-md-h1 { font-size: 24px; }
.tl-md-h2 { font-size: 20px; }
.tl-md-h3 { font-size: 16px; }
.tl-md > .tl-md-h1:first-child, .tl-md > .tl-md-h2:first-child, .tl-md > .tl-md-h3:first-child { margin-top: 0; }
.tl-md-sub { font-size: 12px; color: #949ba4; line-height: 1.33; }
.tl-md-quote { border-left: 4px solid #4e5058; padding: 0 8px 0 12px; margin: 2px 0; }
.tl-md-list { margin: 4px 0; padding-left: 22px; }
ul.tl-md-list { list-style: disc outside; }
ol.tl-md-list { list-style: decimal outside; }
.tl-md-list ul { list-style: circle outside; padding-left: 20px; margin: 0; }
.tl-md-list ol { list-style: decimal outside; padding-left: 20px; margin: 0; }
.tl-md-pre { margin: 6px 0; padding: 8px 10px; background: #2b2d31; border: 1px solid #1e1f22; border-radius: 4px; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; }
.tl-md .tl-md-pre code { display: block; background: transparent; border: 0; padding: 0; font: 13.5px/1.45 var(--mono); color: #dbdee1; }
.tl-md-lang { display: block; font: 600 11px/1.4 var(--mono); color: #949ba4; margin-bottom: 4px; }
.tl-md-mention { background: rgba(88, 101, 242, 0.3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; font-weight: 500; }
.tl-md-emoji { color: #949ba4; }
.tl-md-spoiler { background: #1e1f22; color: transparent; border-radius: 4px; padding: 0 2px; cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
.tl-md-spoiler:not(.shown) > * { opacity: 0; }
.tl-md-spoiler:not(.shown):hover { background: #111214; }
.tl-md-spoiler.shown { background: rgba(255, 255, 255, 0.1); color: inherit; cursor: auto; }
.tl-cheats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.tl-cheat { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.tl-cheat:nth-child(-n+2) { border-top: 0; }
.tl-cheat-l { font-size: 13.5px; color: var(--text-strong); font-weight: 550; }
.tl-cheat .tl-code { justify-self: start; }
.tl-cheats-card { margin-top: 16px; }

/* responsive */
@media (max-width: 1100px) {
  .tl-perm-layout { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 960px) {
  .tl-grid { grid-template-columns: minmax(0, 1fr); }
  .tl-grid > .tl-card + .tl-card { margin-top: 0; }
  .tl-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-perm-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "main"; }
  .tl-perm-side { position: static; }
  .tl-cheats { grid-template-columns: minmax(0, 1fr); }
  .tl-cheat:nth-child(2) { border-top: 1px solid var(--line-soft); }
}
@media (max-width: 560px) {
  .tl-card { padding: 16px; }
  .tl-tools { grid-template-columns: minmax(0, 1fr); }
  .tl-2col { grid-template-columns: minmax(0, 1fr); }
  .tl-ts-row { grid-template-columns: minmax(0, 1fr) 36px; grid-template-areas: "meta copy" "prev prev"; gap: 6px 12px; }
  .tl-cheat { grid-template-columns: minmax(0, 1fr) auto; }
  .tl-cheat .tl-code { grid-column: 1; grid-row: 2; }
  .tl-cheat .btn { grid-column: 2; grid-row: 1 / span 2; }
  .tl-use { grid-template-columns: minmax(0, 1fr) 36px; }
  .tl-use-l { grid-column: 1 / -1; }
  .tl-md-in { min-height: 260px; }
  .tl-checks { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .tl-tool, .tl-tool-go .ico, .tl-swatch, .tl-chip, .tl-more-link, .tl-md-spoiler { transition: none; }
  .tl-tool:hover, .tl-swatch:hover { transform: none; }
  .tl-tool:hover .tl-tool-go .ico { transform: none; }
}

/* ---------- round 8: command playground (landing) ---------- */
.pg-sec { padding: 96px 0; }
.pg { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; align-items: start; }
.pg-win { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); position: relative; display: flex; flex-direction: column; }
.pg-log { height: 420px; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; }
.pg-turn { padding-top: 6px; }
.pg-used { display: flex; align-items: center; gap: 6px; padding: 2px 16px 0 70px; font-size: 13px; color: #949ba4; position: relative; }
.pg-used::before { content: ""; position: absolute; left: 36px; top: 12px; width: 28px; height: 10px; border-left: 2px solid #4e5058; border-top: 2px solid #4e5058; border-top-left-radius: 6px; }
.pg-used-av { width: 16px; height: 16px; border-radius: 50%; background: #3ba55c; color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.pg-used b { color: #3ba55c; font-weight: 600; }
.pg-plain { padding: 6px 16px 2px 70px; color: #dbdee1; font-size: 15px; overflow-wrap: anywhere; }
.pg-plain b { color: #3ba55c; font-weight: 600; }
.pg-help { margin: 4px 16px 6px 70px; padding: 8px 12px; border-radius: 6px; background: #2b2d31; color: #b5bac1; font-size: 13.5px; }
.pg-in { animation: pg-in 0.32s var(--ease) both; }
@keyframes pg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pg-card .dc-rank { margin-top: 6px; }
.pg-mono { font-family: var(--mono); font-size: 13px; letter-spacing: -0.02em; }
.dc-link { color: #00a8fc; }
.pg-typing { display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 16px; font-size: 12.5px; color: #b5bac1; }
.pg-typing[hidden] { visibility: hidden; display: flex; }
.pg-typing b { color: #f2f3f5; font-weight: 600; }
.pg-dots { display: inline-flex; gap: 3px; margin-right: 2px; }
.pg-dots i { width: 5px; height: 5px; border-radius: 50%; background: #b5bac1; animation: pg-dot 1s infinite ease-in-out; }
.pg-dots i:nth-child(2) { animation-delay: 0.15s; }
.pg-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes pg-dot { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.pg-input { position: relative; display: flex; align-items: center; gap: 8px; margin: 4px 16px 16px; padding: 4px 4px 4px 14px; background: #383a40; border-radius: 8px; }
.pg-field { flex: 1; min-width: 0; height: 40px; background: none; border: 0; outline: 0; color: #dbdee1; font: inherit; font-size: 15px; }
.pg-field::placeholder { color: #80848e; }
.pg-input:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.pg-send { width: 36px; height: 36px; color: #b5bac1; }
.pg-busy .pg-send { opacity: 0.5; }
.pg-suggest { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); background: #2b2d31; border: 1px solid rgba(0, 0, 0, 0.3); border-radius: 8px; padding: 6px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); z-index: 2; }
.pg-suggest[hidden], .pg-opt[hidden] { display: none; }
.pg-opt { display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: none; color: #dbdee1; text-align: left; font: inherit; cursor: pointer; }
.pg-opt b { font-weight: 600; color: #f2f3f5; }
.pg-opt span { color: #949ba4; font-size: 13px; }
.pg-opt:hover, .pg-opt:focus-visible { background: #35373c; outline: 0; }
.pg-chips { display: flex; flex-direction: column; gap: 8px; }
.pg-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--bg-1); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: background var(--t), border-color var(--t), transform var(--t); }
.pg-chip:hover { background: var(--bg-3); border-color: var(--line); }
.pg-chip:active { transform: scale(0.98); }
.pg-chip .dc-slash { font-family: var(--mono); font-size: 13.5px; }
.pg-chip small { color: var(--faint); font-size: 13px; }
.pg-busy .pg-chip { opacity: 0.6; pointer-events: none; }
@media (max-width: 900px) {
  .pg { grid-template-columns: minmax(0, 1fr); }
  .pg-chips { flex-direction: row; flex-wrap: wrap; order: -1; }
  .pg-chip { padding: 8px 12px; flex-direction: row; align-items: center; }
  .pg-chip small { display: none; }
}
@media (max-width: 720px) {
  .pg-sec { padding: 64px 0; }
  .pg-log { height: 380px; }
  .pg-used, .pg-plain { padding-left: 16px; }
  .pg-used::before { display: none; }
  .pg-help { margin-left: 16px; }
  .pg .dc-msg { gap: 10px; padding: 6px 12px; }
  .pg .dc-av { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) { .pg-in, .pg-dots i { animation: none; } .pg-log { scroll-behavior: auto; } }

/* ---------- round 8: shared bits for the new public pages ---------- */
.mr-ic { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.cta-center { justify-content: center; }

/* /minecraft */
.mcp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 64px; }
.mcp-stats > div { padding: 18px 20px; border-radius: 14px; background: var(--bg-1); border: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 4px; }
.mcp-stats b { font-size: 22px; color: var(--text-strong); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.mcp-stats span { color: var(--faint); font-size: 13.5px; }
.mcp-sec { margin-bottom: 64px; }
.mcp-sec h2 { font-size: 26px; letter-spacing: -0.03em; margin-bottom: 18px; }
.mcp-h3 { font-size: 16px; margin: 28px 0 10px; }
.mcp-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mcp-feat { padding: 20px; border-radius: 14px; background: var(--bg-1); border: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 8px; }
.mcp-feat b { color: var(--text-strong); font-size: 16px; margin-top: 6px; }
.mcp-feat p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.mcp-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.mcp-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.mcp-steps li { display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px; background: var(--bg-1); border: 1px solid var(--line-soft); }
.mcp-steps li > span { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 650; font-size: 13px; }
.mcp-steps b { color: var(--text-strong); }
.mcp-steps p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 4px; }
.mcp-steps code, .mcp-cmds code { font-family: var(--mono); font-size: 12.5px; background: var(--bg-3); padding: 1px 6px; border-radius: 5px; color: var(--text-strong); overflow-wrap: anywhere; }
.mcp-cmds { list-style: none; padding: 0; margin: 0; border-radius: 14px; background: var(--bg-1); border: 1px solid var(--line-soft); }
.mcp-cmds li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line-soft); font-size: 14px; }
.mcp-cmds li:first-child { border-top: 0; }
.mcp-cmds span { color: var(--faint); }
.mcp-code .code-block { margin-top: 0; max-height: 560px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.6; background: var(--bg-1); }

/* /support */
.sp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.sp-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; border-radius: 14px; background: var(--bg-1); border: 1px solid var(--line-soft); color: var(--text); }
.sp-card:hover { background: var(--bg-3); border-color: var(--line); color: var(--text); }
.sp-card b { color: var(--text-strong); font-size: 16px; margin-top: 6px; }
.sp-card > span:not(.mr-ic):not(.btn) { color: var(--muted); font-size: 14px; line-height: 1.55; }
.sp-card .btn { margin-top: auto; }
.sp-main { background: #15192a; border-color: rgba(88, 101, 242, 0.35); }
.sp-main:hover { background: #1a1f33; }
.sp-status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); margin-right: 7px; vertical-align: middle; }
.sp-status.sp-ok::before { background: var(--green); box-shadow: 0 0 0 3px rgba(34, 165, 89, 0.18); }
.sp-status.sp-warn::before { background: var(--yellow); }
.sp-faq { padding-top: 64px; }

/* /u/:id profile */
.pf-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.pf-av { width: 96px; height: 96px; border-radius: 50%; flex: none; object-fit: cover; background: var(--bg-3); }
.pf-av-text { display: grid; place-items: center; font-size: 36px; font-weight: 700; color: var(--text-strong); background: var(--accent-soft); }
.pf-id { flex: 1; min-width: 200px; }
.pf-id h1 { font-size: 34px; letter-spacing: -0.035em; line-height: 1.1; overflow-wrap: anywhere; }
.pf-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pf-badges .badge { display: inline-flex; align-items: center; gap: 5px; }
.pf-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.pf-stats > div { padding: 16px 18px; border-radius: 14px; background: var(--bg-1); border: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 2px; }
.pf-stats b { font-size: 22px; color: var(--text-strong); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pf-stats span { color: var(--faint); font-size: 13px; }
.pf-note { margin: 0 0 20px; }
.pf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 20px; }
.pf-grid .card-sec { margin: 0; padding-bottom: 14px; border: 1px solid var(--line-soft); }
.pf-grid .card-sec > .row-empty { margin: 0 18px; }
.pf-list { display: flex; flex-direction: column; padding: 0 10px; }
.pf-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-top: 1px solid var(--line-soft); }
.pf-row:first-child { border-top: 0; }
.pf-g { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--bg-3); color: var(--text-strong); font-weight: 650; }
.pf-mc { color: #7bd88f; }
.pf-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pf-row-main b { color: var(--text-strong); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-bar { height: 6px; border-radius: 3px; background: var(--bg-3); overflow: hidden; }
.pf-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.pf-lvl { font-weight: 650; color: var(--accent-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-ach { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; padding: 0 18px; }
.pf-ach-i { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 8px; border-radius: 12px; background: var(--bg-3); }
.pf-ach-i > span { font-size: 26px; line-height: 1; }
.pf-ach-i b { color: var(--text-strong); font-size: 13.5px; overflow-wrap: anywhere; }
.pf-ach-i small { color: var(--faint); font-size: 12px; }

/* /tools/embed */
.te-page [hidden] { display: none !important; }
.te-grid { margin-bottom: 32px; }
.te-grid .card-sec { border: 1px solid var(--line-soft); }
.te-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.te-json { max-height: 320px; overflow: auto; margin-top: 10px; white-space: pre; }
.te-hook { margin-top: 10px; }
.te-imp { margin-top: 14px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.te-imp summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--muted); font-weight: 550; font-size: 14px; list-style: none; }
.te-imp summary::-webkit-details-marker { display: none; }
.te-imp summary:hover { color: var(--text-strong); }
.te-imp-in { margin-top: 10px; }
.te-import { font-family: var(--mono); font-size: 12.5px; }
.te-more { display: flex; flex-wrap: wrap; gap: 8px; }
.te-more a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--bg-1); border: 1px solid var(--line-soft); color: var(--muted); font-size: 14px; }
.te-more a:hover { color: var(--text-strong); border-color: var(--line); }

@media (max-width: 900px) {
  .mcp-stats, .sp-cards, .pf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mcp-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mcp-two, .pf-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .mcp-feats, .sp-cards { grid-template-columns: minmax(0, 1fr); }
  .pf-head { gap: 14px; }
  .pf-av { width: 72px; height: 72px; }
  .pf-id h1 { font-size: 26px; }
  .demo-bar .btn { width: 100%; }
}

/* /appeal/:guildId */
.ap-wrap { max-width: 680px; margin: 0 auto; }
.ap-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.ap-head .eyebrow { margin-bottom: 2px; }
.ap-head h1 { font-size: 32px; letter-spacing: -0.03em; line-height: 1.1; font-weight: 720; overflow-wrap: anywhere; }
.ap-gicon { width: 56px; height: 56px; border-radius: 16px; flex: none; object-fit: cover; }
.ap-gicon-text { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 20px; border: 1px solid rgba(79, 124, 255, 0.2); }
.ap-card { padding: 24px; }
.ap-note { display: flex; gap: 14px; align-items: flex-start; }
.ap-note h2 { font-size: 18px; margin-bottom: 6px; color: var(--text-strong); }
.ap-note p { color: var(--muted); line-height: 1.6; }
.ap-note-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-text); }
.ap-note.ok .ap-note-ic { background: rgba(34, 165, 89, 0.12); color: #4ccf83; }
.ap-note.err .ap-note-ic { background: rgba(229, 72, 77, 0.12); color: #ff7b80; }
.ap-form { display: flex; flex-direction: column; gap: 18px; }
.ap-form .flash { margin-bottom: 0; }
.ap-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.ap-form .ap-actions { margin-top: 0; }
.ap-note .ap-actions { justify-content: flex-start; }
.ap-who { margin-top: 14px; text-align: center; }
@media (max-width: 560px) {
  .ap-card { padding: 18px; }
  .ap-head h1 { font-size: 26px; }
  .ap-actions .btn { width: 100%; justify-content: center; }
}

/* Transcript gate + My tickets (/transcripts) */
.tr-intro { margin-bottom: 12px; }
.tr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tr-list li + li { border-top: 1px solid var(--line-soft); }
.tr-item { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-radius: 10px; color: var(--text); text-decoration: none; }
.tr-item:hover { background: var(--bg-hover, rgba(255, 255, 255, 0.04)); text-decoration: none; }
.tr-gicon { width: 36px; height: 36px; border-radius: 10px; flex: none; object-fit: cover; }
.tr-gicon-text { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 13px; }
.tr-main { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 2px; }
.tr-main b { color: var(--text-strong); }
.tr-guild { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-meta, .tr-reason { font-size: 12.5px; color: var(--faint); overflow-wrap: anywhere; }
.tr-open { color: var(--dim); flex: none; }
.tr-pager { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }

/* =====================================================================
   Server list: /servers, /servers/tag/:tag, /s/:key
   ===================================================================== */
.sl-hero { position: relative; isolation: isolate; padding: 8px 0 4px; margin-bottom: 28px; }
.sl-hero-bg { position: absolute; inset: -48px -20px 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sl-hero-bg .space-globe { right: -60px; width: 420px; height: 420px; margin-top: -210px; }
.sl-hero-bg .grid-floor { height: 70%; opacity: 0.35; }
.sl-hero .page-hero { margin-bottom: 28px; }
.sl-search { display: grid; grid-template-columns: minmax(0, 1fr) 190px 190px auto; gap: 10px; padding: 10px; border-radius: 18px; background: rgba(17, 17, 20, 0.88); border: 1px solid var(--line); box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.8); max-width: 980px; }
.sl-q { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--bg-input); box-shadow: inset 0 0 0 1px var(--line); color: var(--faint); }
.sl-q:focus-within { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px rgba(79, 124, 255, 0.18); }
.sl-q input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text-strong); font: 15px var(--font); outline: none; }
.sl-select { height: 44px; border-radius: 12px; padding: 0 12px; cursor: pointer; }
.sl-search .btn { height: 44px; border-radius: 12px; }
.sl-tagnav { margin-bottom: 24px; }
.chip-nav a.active { background: var(--accent-soft); color: var(--accent-text); }
.sl-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sl-total { color: var(--muted); font-size: 14px; font-weight: 500; }
.sl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sl-empty { margin-top: 8px; }
.sl-empty .btn { margin-top: 14px; }
.sl-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.sl-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 56px; padding: 28px; border-radius: 20px; background: linear-gradient(120deg, rgba(79, 124, 255, 0.14), rgba(167, 111, 240, 0.08) 60%, transparent), var(--bg-1); border: 1px solid var(--line-soft); }
.sl-cta h2 { font-size: 22px; letter-spacing: -0.025em; margin-bottom: 6px; }
.sl-cta p { max-width: 620px; }

.sl-server { max-width: 1080px; }
.sl-top { margin-bottom: 24px; }
.sl-cover { position: relative; height: 220px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-soft); background: radial-gradient(90% 140% at 10% 0%, rgba(79, 124, 255, 0.32), transparent 60%), radial-gradient(90% 140% at 100% 100%, rgba(167, 111, 240, 0.22), transparent 60%), var(--bg-1); }
.sl-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sl-cover-empty .grid-floor { height: 80%; opacity: 0.4; }
.sl-head { display: flex; align-items: flex-start; gap: 20px; padding: 0 24px; margin-top: -44px; position: relative; flex-wrap: wrap; }
.sl-head .gicon-xl { width: 104px; height: 104px; border-radius: 28px; border: 6px solid var(--bg-0); font-size: 30px; }
.sl-head-text { flex: 1; min-width: 220px; padding-top: 56px; }
.sl-head-text .eyebrow { margin-bottom: 4px; }
.sl-head-text .eyebrow a { color: inherit; }
.sl-head-text h1 { font-size: 34px; letter-spacing: -0.035em; line-height: 1.1; margin-bottom: 6px; overflow-wrap: anywhere; }
.sl-head-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--faint); font-size: 14px; }
.sl-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 62px; }
.sl-head-actions form { margin: 0; }
.sl-vote-btn { height: 48px; padding: 0 20px; }
.sl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.sl-panel { background: var(--bg-1); border: 1px solid var(--line-soft); border-radius: 16px; padding: 22px; }
.sl-panel h2 { font-size: 17px; letter-spacing: -0.015em; margin-bottom: 10px; }
.sl-short { color: var(--text-strong); font-size: 16px; line-height: 1.55; margin-bottom: 14px; overflow-wrap: anywhere; }
.sl-long { color: var(--muted); font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.sl-long p { margin: 0 0 12px; }
.sl-tags-lg { margin-top: 18px; }
.sl-tags-lg .sl-tag { height: 28px; padding: 0 12px; font-size: 13px; }
.sl-stats { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.sl-stats li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.sl-stats li:last-child { border-bottom: 0; }
.sl-stat-k { display: inline-flex; align-items: center; gap: 8px; color: var(--faint); }
.sl-stat-k .ico { color: var(--dim); }
.sl-stats b { display: inline-flex; align-items: center; gap: 6px; color: var(--text-strong); font-weight: 600; font-variant-numeric: tabular-nums; }
.sl-stats small { color: var(--dim); font-weight: 500; }
.sl-lb { margin-top: 14px; }
.sl-report { margin-top: 12px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--bg-1); }
.sl-report summary { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--faint); font-size: 13px; font-weight: 500; list-style: none; }
.sl-report summary::-webkit-details-marker { display: none; }
.sl-report summary:hover { color: #ff8f93; }
.sl-report form { display: grid; gap: 6px; margin-top: 12px; }
.sl-report .tl-label { margin-top: 6px; }
.sl-report .btn { justify-self: start; margin-top: 8px; }
.sl-report-login { margin-top: 12px; }
.sl-report-login a { color: var(--accent-text); }
.sl-similar { margin-top: 48px; }
.sl-similar h2 { font-size: 22px; letter-spacing: -0.025em; margin-bottom: 16px; }
@media (max-width: 1100px) {
  .sl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .sl-search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sl-q { grid-column: 1 / -1; }
  .sl-search .btn { grid-column: 1 / -1; }
  .sl-layout { grid-template-columns: minmax(0, 1fr); }
  .sl-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .sl-grid { grid-template-columns: minmax(0, 1fr); }
  .sl-head { gap: 14px; }
  .sl-head-text { flex-basis: 100%; padding-top: 0; }
  .sl-head-actions { padding-top: 0; }
  .sl-cover { height: 150px; }
  .sl-head { padding: 0 12px; }
  .sl-head .gicon-xl { width: 84px; height: 84px; border-radius: 22px; }
  .sl-head-text h1 { font-size: 26px; }
  .sl-head-actions, .sl-head-actions .btn, .sl-head-actions form { width: 100%; }
}

/* ---------- status history (uptime strip, ping graph, incidents) + global leaderboards ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.up-sec { margin-top: 36px; }
.up-sec h2 { font-size: 20px; margin: 28px 0 12px; letter-spacing: -0.02em; }
.up-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.up-card { background: var(--bg-1); border-radius: 12px; padding: 18px 20px; margin-top: 12px; }
.up-strip-wrap + .up-strip-wrap { margin-top: 18px; }
.up-strip-head, .up-ping-head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 8px; }
.up-strip-head span, .up-ping-head span { color: var(--dim); font-variant-numeric: tabular-nums; }
.up-strip { display: grid; grid-template-columns: repeat(90, minmax(0, 1fr)); gap: 2px; height: 34px; }
.up-strip i { display: block; border-radius: 2px; }
.up-strip i:hover { opacity: 0.7; }
.up-ok { background: var(--green); }
.up-minor { background: #8cc152; }
.up-major { background: var(--yellow); }
.up-bad { background: var(--red); }
.up-none { background: rgba(255, 255, 255, 0.08); }
.up-strip-foot { display: flex; justify-content: space-between; color: var(--faint); font-size: 12px; margin-top: 6px; }
.up-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; color: var(--dim); font-size: 12.5px; }
.up-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.up-ping { display: block; width: 100%; height: 120px; }
.up-line { fill: none; stroke: var(--accent); stroke-width: 2; }
.up-area { fill: rgba(79, 124, 255, 0.12); }
.up-grid { stroke: rgba(255, 255, 255, 0.06); stroke-dasharray: 4 4; }
.up-empty { padding: 8px 0; }
.up-open { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 12px; background: rgba(240, 178, 50, 0.1); color: #f5c55a; }
.up-inc { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.up-inc li + li { border-top: 1px solid var(--line-soft); padding-top: 16px; }
.up-inc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.up-inc p { margin: 8px 0 6px; color: var(--text); }
.up-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--dim); }
.up-badge-investigating { background: rgba(229, 72, 77, 0.14); color: #ff8f93; }
.up-badge-identified, .up-badge-monitoring { background: rgba(240, 178, 50, 0.14); color: #f5c55a; }
.up-badge-resolved { background: rgba(34, 165, 89, 0.14); color: #8fe0b2; }
.up-badge-maintenance { background: rgba(79, 124, 255, 0.14); color: #9bb5ff; }
.glb-sec { margin-top: 32px; }
.glb-sec h2 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 4px; }
.glb-sec > p { margin: 0 0 14px; }
.glb-row { display: grid; grid-template-columns: 36px 40px minmax(0, 1fr) 120px 110px; gap: 14px; align-items: center; padding: 12px 16px; background: var(--bg-1); border-radius: 12px; }
.glb-row .gicon { width: 40px; height: 40px; }
.glb-row .lb-who span a { color: inherit; }
@media (max-width: 720px) {
  .up-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .up-strip { gap: 1px; height: 28px; }
  .glb-row { grid-template-columns: 30px 36px minmax(0, 1fr) 80px; }
  .glb-row > :last-child { display: none; }
}
