/* The ban appeal site, in the dashboard's new look (Midnight, blurple). */
:root {
  --accent: #5865f2;
  --bg: #0b0d12; --deep: #08090d; --card: #12151c; --raised: #191d27; --hover: #212634;
  --line: #222736; --line-2: #2e3446;
  --text: #d5d9e4; --muted: #8b92a7; --faint: #5f6679; --head: #f5f7fc;
  --green: #3ccf8e; --red: #f6595e; --yellow: #f4b740;
  --soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --hi: color-mix(in srgb, var(--accent) 72%, white);
  --shadow: 0 12px 40px rgba(0, 0, 0, .55);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; color: var(--text);
       font: 15px/1.55 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
       background: radial-gradient(900px 420px at 50% -140px, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%), var(--bg);
       background-attachment: fixed; -webkit-font-smoothing: antialiased; }
a { color: var(--hi); }
::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); }
:focus-visible { outline: 2px solid var(--hi); outline-offset: 2px; }
.loading { color: var(--muted); padding: 60px 16px; text-align: center; margin: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
                   50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--c) 6%, transparent); } }

.ic { width: 18px; height: 18px; flex: none; }
.page { max-width: 680px; margin: 0 auto; padding: 24px 16px 64px; display: grid; gap: 18px; }
h1 { color: var(--head); font: 650 28px/1.2 "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
     letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.lead { color: var(--muted); margin: 0; }
.fine { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 13px; margin: 0; }
.fine .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--faint); }
.fine b { color: var(--head); font-weight: 600; }

/* ── top bar ── */
.top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--soft); }
.brand img { width: 24px; height: 24px; }
.where { display: grid; min-width: 0; line-height: 1.25; }
.where b { color: var(--head); font-size: 15px; }
.where span { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 4px 4px 5px;
       background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
.who img { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.who > span { color: var(--head); font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .btn { padding: 5px 11px; border-radius: 999px; font-size: 13px; }

/* ── progress ── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center; color: var(--faint);
            font-size: 13px; --c: var(--line-2); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 16px; height: 2px; border-radius: 2px;
                                    left: calc(50% + 24px); right: calc(-50% + 24px); background: var(--line-2); }
.steps li.done:not(:last-child)::after { background: color-mix(in srgb, var(--green) 55%, var(--line-2)); }
.steps .dot { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--raised);
              border: 1px solid var(--line-2); color: var(--faint); }
.steps .dot .ic { width: 16px; height: 16px; }
.steps b { font-weight: 600; }
.steps .done { color: var(--muted); --c: var(--green); }
.steps .done .dot { background: color-mix(in srgb, var(--green) 14%, transparent); border-color: transparent; color: var(--green); }
.steps .now { color: var(--head); --c: var(--accent); }
.steps .now .dot { background: var(--accent); border-color: transparent; color: #fff; animation: pulse 2.4s ease-in-out infinite; }
.steps .yes { color: var(--head); --c: var(--green); }
.steps .yes .dot { background: var(--green); border-color: transparent; color: #04140c; box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 18%, transparent); }
.steps .no { color: var(--head); --c: var(--red); }
.steps .no .dot { background: var(--red); border-color: transparent; color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 18%, transparent); }
.steps .sub { color: var(--muted); font-size: 12.5px; line-height: 1.4; max-width: 18ch; }
.steps.big b { color: var(--head); }

/* ── panel ── */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 32px 34px; box-shadow: var(--shadow);
         display: grid; gap: 20px; animation: rise .35s var(--ease) both; min-width: 0; }
.panel > * { min-width: 0; }
.head { display: grid; gap: 6px; }
.hero { justify-items: center; text-align: center; padding-top: 36px; margin-top: 18px; }
.hero .lead { max-width: 46ch; }
.hero-logo { width: 84px; height: 84px; filter: drop-shadow(0 0 18px color-mix(in srgb, var(--accent) 55%, transparent)); }
.eyebrow { color: var(--hi); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.hero .steps { width: 100%; margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero .fine { text-align: left; max-width: 52ch; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 10px;
       padding: 9px 17px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; color: var(--head); background: var(--raised);
       transition: background .15s, filter .15s, transform .1s; }
.btn:hover { background: var(--hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn.pri, .btn.ok { border-color: transparent; color: #fff; background: var(--accent);
                    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 4px 14px color-mix(in srgb, var(--accent) 32%, transparent); }
.btn.ok { color: #04140c; background: var(--green);
          box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 14px color-mix(in srgb, var(--green) 25%, transparent); }
.btn.pri:hover, .btn.ok:hover { filter: brightness(1.1); }
.btn.pri:hover { background: var(--accent); }
.btn.ok:hover { background: var(--green); }
.btn.ghost { background: none; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--hover); color: var(--head); }
.btn.lg { padding: 12px 22px; font-size: 16px; border-radius: 12px; }

/* ── status tile ── */
.tile { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 13px; --t: var(--accent);
        background: color-mix(in srgb, var(--t) 15%, transparent); color: var(--t); }
.tile .ic { width: 22px; height: 22px; }
.tile.lg { width: 68px; height: 68px; border-radius: 20px; }
.tile.lg .ic { width: 32px; height: 32px; }
.tile.green { --t: var(--green); } .tile.red { --t: var(--red); } .tile.yellow { --t: var(--yellow); } .tile.accent { --t: var(--hi); }

/* ── messages ── */
.note, .msg { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 11px 14px; margin: 0; font-size: 14px; }
.note .ic, .msg .ic { margin-top: 1px; }
.note { background: color-mix(in srgb, var(--yellow) 9%, transparent); border: 1px solid color-mix(in srgb, var(--yellow) 30%, transparent); }
.note .ic { color: var(--yellow); }
.msg { background: color-mix(in srgb, var(--red) 9%, transparent); border: 1px solid color-mix(in srgb, var(--red) 32%, transparent); color: #ffb3b5; }
.msg .ic { color: var(--red); }
.hero .msg { text-align: left; }

/* ── the ban ── */
.ban { background: var(--deep); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ban-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.ban-head .tile { width: 36px; height: 36px; border-radius: 10px; }
.ban-head .tile .ic { width: 18px; height: 18px; }
.ban-head b { color: var(--head); }
.ban dl { margin: 0; }
.ban .row { display: grid; grid-template-columns: 18px 70px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 16px;
            border-top: 1px solid var(--line); font-size: 14px; }
.ban .row .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--faint); }
.ban dt { color: var(--muted); }
.ban dd { margin: 0; color: var(--head); overflow-wrap: anywhere; white-space: pre-wrap; }
.ban .fine { padding: 10px 16px; border-top: 1px solid var(--line); }

/* ── questions ── */
.qs { display: grid; gap: 18px; }
.q { display: grid; gap: 8px; }
.q label { display: flex; align-items: flex-start; gap: 10px; color: var(--head); font-weight: 600; }
.qn { display: grid; place-items: center; width: 22px; height: 22px; flex: none; margin-top: 1px; border-radius: 7px;
      background: var(--soft); color: var(--hi); font-size: 12px; font-weight: 700; }
.opt { margin-left: auto; flex: none; color: var(--faint); font-size: 12px; font-weight: 600; border: 1px solid var(--line-2);
       border-radius: 999px; padding: 0 8px; line-height: 20px; }
textarea { width: 100%; min-height: 110px; resize: vertical; background: var(--deep); color: var(--text); border: 1px solid var(--line-2);
           border-radius: 12px; padding: 11px 13px; font: inherit; font-size: 15px; line-height: 1.5;
           transition: border-color .15s, box-shadow .15s; }
textarea::placeholder { color: var(--faint); }
textarea:hover { border-color: #3c4358; }
textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--soft); }
textarea.bad { border-color: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 15%, transparent); }
.count { justify-self: end; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; margin-top: -2px; }
.count.over { color: var(--red); }
.send { display: flex; justify-content: flex-end; align-items: center; gap: 14px 18px; flex-wrap: wrap;
        padding-top: 20px; border-top: 1px solid var(--line); }
.send .fine { flex: 1; min-width: 220px; }

/* ── waiting ── */
.status { display: flex; align-items: center; gap: 14px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 2px 10px 2px 8px; border-radius: 999px;
         color: var(--yellow); background: color-mix(in srgb, var(--yellow) 13%, transparent); width: max-content; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tl { list-style: none; margin: 0; padding: 18px 18px 2px; background: var(--deep); border: 1px solid var(--line); border-radius: 14px; }
.tl li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding-bottom: 18px; --c: var(--line-2); }
.tl li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--line-2); }
.tl li.done:not(:last-child)::after { background: color-mix(in srgb, var(--green) 50%, var(--line-2)); }
.node { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--raised);
        border: 1px solid var(--line-2); color: var(--faint); }
.node .ic { width: 16px; height: 16px; }
.tl .done { --c: var(--green); }
.tl .done .node { background: color-mix(in srgb, var(--green) 14%, transparent); border-color: transparent; color: var(--green); }
.tl .now { --c: var(--yellow); }
.tl .now .node { background: color-mix(in srgb, var(--yellow) 15%, transparent); border-color: transparent; color: var(--yellow);
                 animation: pulse 2.4s ease-in-out infinite; }
.tl b { display: block; color: var(--head); font-weight: 600; padding-top: 6px; }
.tl li:not(.done):not(.now) b { color: var(--muted); }
.tl span { color: var(--muted); font-size: 13px; }
details { border: 1px solid var(--line); border-radius: 12px; }
summary { display: flex; align-items: center; gap: 8px; padding: 11px 14px; cursor: pointer; color: var(--head); font-weight: 600; font-size: 14px;
          list-style: none; border-radius: 12px; }
summary::-webkit-details-marker { display: none; }
summary:hover { background: var(--raised); }
summary .ic { width: 16px; height: 16px; color: var(--muted); }
summary .chev { margin-left: auto; transition: transform .2s var(--ease); }
details[open] summary .chev { transform: rotate(180deg); }
details[open] summary { border-radius: 12px 12px 0 0; border-bottom: 1px solid var(--line); }
.sent { padding: 12px 14px; display: grid; gap: 2px; font-size: 14px; }
.sent + .sent { border-top: 1px solid var(--line); }
.sent b { color: var(--muted); font-size: 13px; font-weight: 600; }
.sent p { margin: 0; color: var(--head); white-space: pre-wrap; overflow-wrap: anywhere; }

/* ── the answer ── */
.result { justify-items: center; text-align: center; padding-top: 38px; }
.result .lead { max-width: 44ch; }
.quote { width: 100%; text-align: left; margin: 0; padding: 12px 16px; background: var(--deep); border: 1px solid var(--line);
         border-radius: 14px; display: grid; gap: 4px; }
.quote small { color: var(--faint); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.quote p { margin: 0; color: var(--head); white-space: pre-wrap; overflow-wrap: anywhere; }
.result.yes .quote { border-left: 3px solid var(--green); }
.result.no .quote { border-left: 3px solid var(--red); }
.acts { display: grid; justify-items: center; gap: 12px; }
.result .fine { text-align: left; }
.again { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 16px; border-radius: 14px;
         background: var(--raised); border: 1px solid var(--line-2); font-size: 14px; }
.again .tile { width: 36px; height: 36px; border-radius: 10px; }
.again .tile .ic { width: 18px; height: 18px; }
.again b { color: var(--head); }
.again span { color: var(--muted); display: block; font-size: 13px; }

/* ── Sis: server icons, the list of bans ── */
.srv { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; overflow: hidden;
       background: var(--raised); color: var(--head); font-weight: 700; font-size: 15px; }
.srv img { width: 100%; height: 100%; object-fit: cover; }
.srv.lg { width: 84px; height: 84px; border-radius: 26px; font-size: 28px;
          box-shadow: 0 0 0 1px var(--line-2), 0 0 26px color-mix(in srgb, var(--accent) 35%, transparent); }
.hero-pair { position: relative; }
.hero-pair .by { position: absolute; right: -8px; bottom: -8px; width: 32px; height: 32px; border-radius: 10px; padding: 5px;
                 background: var(--raised); box-shadow: 0 0 0 3px var(--card); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none;
        width: max-content; padding: 4px 10px 4px 6px; border-radius: 8px; margin-bottom: -8px; }
.back:hover { background: var(--card); color: var(--head); }
.back .ic { width: 16px; height: 16px; transform: rotate(180deg); }
.bans { display: grid; background: var(--deep); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 18px; }
.bans > * { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px;
            color: inherit; text-decoration: none; transition: background .15s; }
.bans > * + * { border-top: 1px solid var(--line); }
.bans > a:hover { background: var(--raised); }
.bans .nm { display: grid; gap: 3px; min-width: 0; }
.bans .nm b { color: var(--head); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bans .nm > span { color: var(--muted); font-size: 13px; }
.bans .go { display: flex; align-items: center; gap: 6px; color: var(--hi); font-size: 14px; font-weight: 600; }
.bans .go .ic { width: 16px; height: 16px; }
.badge.green { color: var(--green); background: color-mix(in srgb, var(--green) 13%, transparent); }
.badge.red { color: var(--red); background: color-mix(in srgb, var(--red) 13%, transparent); }
.badge.grey { color: var(--muted); background: var(--raised); }
.empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 26px 16px; background: var(--deep);
         border: 1px dashed var(--line-2); border-radius: 14px; }
.empty b { color: var(--head); }
.empty span { color: var(--muted); font-size: 14px; max-width: 46ch; }

/* ── confirm box ── */
.scrim { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; background: rgba(3, 4, 8, .65);
         animation: fade .15s ease both; }
.scrim.closing { animation: fade .15s ease reverse both; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(420px, 100%); background: var(--raised); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow);
         overflow: hidden; animation: rise .2s var(--ease) both; }
.modal .tile { margin: 22px 22px 0; }
.modal h3 { margin: 14px 22px 4px; color: var(--head); font-size: 18px; }
.modal p { margin: 0 22px 20px; color: var(--muted); font-size: 14px; }
.modal-btns { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line-2); background: var(--card); }

@media (max-width: 600px) {
  .page { padding: 14px 16px 40px; gap: 14px; }
  .panel { padding: 22px 18px; border-radius: 16px; gap: 18px; }
  .hero { padding-top: 26px; margin-top: 0; }
  .result { padding-top: 28px; }
  h1 { font-size: 24px; }
  .where span, .who > span, .who .btn span { display: none; }
  .who { padding: 3px; }
  .who .btn { padding: 6px; }
  .steps li { font-size: 12px; }
  .steps li:not(:last-child)::after { left: calc(50% + 21px); right: calc(-50% + 21px); }
  .steps.big { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps.big li { grid-template-columns: 34px minmax(0, 1fr); justify-items: start; column-gap: 12px; row-gap: 0; text-align: left; padding-bottom: 14px; }
  .steps.big .dot { grid-row: span 2; }
  .steps.big b { padding-top: 2px; }
  .steps.big .sub { max-width: none; }
  .steps.big li:not(:last-child)::after { left: 16px; right: auto; top: 38px; bottom: 2px; width: 2px; height: auto; }
  .ban .row { grid-template-columns: 16px 58px minmax(0, 1fr); }
  textarea { font-size: 16px; }
  .send .btn { width: 100%; }
  .bans > * { grid-template-columns: 40px minmax(0, 1fr); }
  .bans .go { grid-column: 2; }
  .srv { width: 40px; height: 40px; border-radius: 12px; }
  .srv.lg { width: 72px; height: 72px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
