:root {
  --bg: #cdd5df;
  --panel: rgba(255, 255, 255, 0.45);
  --panel-strong: rgba(255, 255, 255, 0.8);
  --ink: #1f2d3d;
  --ink-soft: #5a6878;
  --accent: #b9d6f2;
  --accent-ink: #2f5d8a;
  --bar-height: 64px;
  --sidebar-w: 260px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.fredoka { font-family: "Fredoka", system-ui, sans-serif; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--bar-height);
  z-index: 10;
}
.topbar-inner {
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.15); background: #fff; }
.top-right { display: flex; align-items: center; gap: 10px; }
.server-chip {
  display: none;
  align-items: center; gap: 8px;
  height: 36px; padding: 0 14px 0 6px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.6);
  font-size: 14px; font-weight: 500;
  transition: background .2s;
}
.server-chip:hover { background: var(--panel-strong); }
body.in-dashboard .server-chip { display: inline-flex; }
.server-icon {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff;
  flex: none;
}
.account-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px 0 4px;
  border-radius: 999px;
  background: #fff;
  font-size: 14px; font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.account-pill .avatar { width: 28px; height: 28px; }
.plan-badge {
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 12px; font-weight: 500;
  padding: 2px 8px; border-radius: 999px;
  background: var(--accent); color: var(--ink);
}

/* ---------- Screens ---------- */
.screen {
  position: fixed; inset: 0;
  padding-top: var(--bar-height);
  transition: opacity .45s ease, transform .45s ease, visibility .45s;
}
.screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
#chooseScreen.hidden { transform: translateY(-24px); }
#dashScreen.hidden { transform: translateY(24px); }

/* ---------- Screen 1: choose server ---------- */
#chooseScreen { display: grid; place-items: center; }
.choose-box { width: min(420px, calc(100% - 48px)); text-align: center; transition: transform .3s ease; }
.choose-box h1 { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 34px; margin-bottom: 6px; }
.choose-box p { color: var(--ink-soft); font-size: 15px; margin-bottom: 22px; }
.select { position: relative; text-align: left; }
.select-btn {
  width: 100%; height: 52px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--panel-strong);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  font-size: 15px; color: var(--ink-soft);
  transition: box-shadow .2s;
}
.select-btn:hover { box-shadow: 0 8px 26px rgba(0,0,0,.12); }
.select-btn svg { width: 18px; height: 18px; transition: transform .25s; }
.select.open .select-btn svg { transform: rotate(180deg); }
.select-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.16);
  padding: 6px;
  list-style: none;
  max-height: 300px; overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transform: translateY(-6px); visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
}
.select.open .select-list { opacity: 1; transform: none; visibility: visible; }
/* fade at the edge when there are more servers to scroll to */
.select-list.more-below { -webkit-mask-image: linear-gradient(#000 calc(100% - 36px), transparent); mask-image: linear-gradient(#000 calc(100% - 36px), transparent); }
.select-list.more-above { -webkit-mask-image: linear-gradient(transparent, #000 36px); mask-image: linear-gradient(transparent, #000 36px); }
.select-list.more-above.more-below { -webkit-mask-image: linear-gradient(transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(transparent, #000 36px, #000 calc(100% - 36px), transparent); }
.select-list button {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 15px; text-align: left;
}
.select-list button:hover { background: #eef3f9; }
.select-list .members { margin-left: auto; font-size: 12px; color: var(--ink-soft); }
.select-note { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }
.select-list .list-note { padding: 12px 14px; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.select-list button.no-bot { opacity: 0.7; }
.select-list button.no-bot .members { color: var(--accent-ink); font-weight: 600; }
.server-icon { background-size: cover; background-position: center; }
.logout-link { font-size: 13px; font-weight: 600; color: var(--ink-soft); padding: 6px 10px; border-radius: 999px; }
.logout-link:hover { background: var(--panel); color: var(--ink); }
.select-note a { color: var(--accent-ink); font-weight: 600; }

/* ---------- Screen 2: dashboard ---------- */
#dashScreen {
  display: flex; gap: 18px;
  padding: calc(var(--bar-height) + 4px) 24px 24px;
}
.sidebar-wrap { position: relative; flex: none; display: flex; }
.sidebar {
  width: var(--sidebar-w);
  height: 100%;
  overflow-y: auto; overflow-x: hidden;
  background: var(--panel);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 18px;
  padding: 18px 12px;
  transition: width .35s ease, padding .35s ease, opacity .25s;
}
body.sidebar-collapsed .sidebar { width: 0; padding-left: 0; padding-right: 0; opacity: 0; border-width: 0; }
.cat { margin-bottom: 14px; }
.cat-title {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 500;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 12px;
  white-space: nowrap;
}
.cmd {
  width: 100%;
  display: block;
  text-align: left;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 15px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.cmd:hover { background: rgba(255,255,255,.55); }
.cmd.active { background: #fff; color: var(--accent-ink); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.collapse-btn {
  position: absolute;
  top: 50%; right: -14px;
  transform: translateY(-50%);
  width: 22px; height: 56px;
  border-radius: 999px;
  background: #6b7684;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  z-index: 2;
  transition: background .2s;
}
.collapse-btn:hover { background: #4f5966; }
.collapse-btn svg { width: 14px; height: 14px; transition: transform .35s; }
body.sidebar-collapsed .collapse-btn { right: -22px; }
body.sidebar-collapsed .collapse-btn svg { transform: rotate(180deg); }

.main {
  flex: 1;
  min-width: 0;
  background: var(--panel);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 18px;
  padding: 32px 36px;
  overflow-y: auto;
}
.main-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.main-cat { font-size: 13px; color: var(--ink-soft); margin-bottom: 4px; }
.main h2 { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 30px; }
.main-desc { color: var(--ink-soft); font-size: 15px; margin-top: 6px; max-width: 560px; line-height: 1.55; }
.main.swap { animation: swapIn .3s ease-out; }
@keyframes swapIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* toggle */
.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; flex: none; }
.toggle input { display: none; }
.toggle .track { width: 44px; height: 26px; border-radius: 999px; background: #aab4c0; position: relative; transition: background .2s; }
.toggle .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle input:checked + .track { background: var(--accent-ink); }
.toggle input:checked + .track::after { transform: translateX(18px); }

.placeholder {
  border: 2px dashed rgba(31,45,61,.18);
  border-radius: 14px;
  min-height: 280px;
  display: grid; place-items: center;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  padding: 24px;
}
.placeholder strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

@media (max-width: 760px) {
  #dashScreen { padding: calc(var(--bar-height) + 4px) 12px 12px; }
  .sidebar-wrap { position: absolute; left: 12px; top: calc(var(--bar-height) + 4px); bottom: 12px; z-index: 5; }
  .sidebar { background: rgba(240,244,248,.97); }
  .main { padding: 24px 20px; }
  .account-name { display: none; }
}

/* ================= Settings pages (js/dashboard/controls.js + pages/) ================= */
.page { display: flex; flex-direction: column; gap: 16px; padding-bottom: 8px; }
.page > div { display: flex; flex-direction: column; gap: 16px; }
.card {
  background: var(--panel-strong);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.card h3 { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.card-desc { color: var(--ink-soft); font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field[hidden] { display: none; }
.field > label { font-size: 13px; font-weight: 600; }
.help { font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
.muted { color: var(--ink-soft); font-size: 13px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.row.three { grid-template-columns: 1fr 1fr 1fr; }
.row-inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.row-inline select { max-width: 320px; }
.stack { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.sticky { position: sticky; top: 0; }
.preview-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 8px; }

input[type=text], input[type=number], textarea, select {
  width: 100%;
  font: inherit; font-size: 14px; color: var(--ink);
  background: #fff;
  border: 1px solid rgba(31,45,61,.15);
  border-radius: 10px;
  padding: 9px 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; line-height: 1.45; }
input:focus, textarea:focus, select:focus { border-color: var(--accent-ink); box-shadow: 0 0 0 3px rgba(47,93,138,.15); }
select:disabled, input:disabled { opacity: .6; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: 10px;
  background: #fff; border: 1px solid rgba(31,45,61,.15);
  font-size: 14px; font-weight: 600;
  transition: background .15s, opacity .15s;
}
.btn:hover { background: #eef3f9; }
.btn:disabled { opacity: .55; cursor: wait; }
.btn-primary { background: var(--accent-ink); color: #fff; border-color: transparent; }
.btn-primary:hover { background: #244a70; }
.btn-danger { background: #fdecec; color: #b03a3a; border-color: #f3c5c5; }
.btn-danger:hover { background: #f9d9d9; }
.btn-small { height: 30px; padding: 0 12px; font-size: 13px; align-self: flex-start; }

/* chips (channels, roles, members) */
.picker { display: flex; flex-direction: column; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-empty { font-size: 13px; color: var(--ink-soft); padding: 4px 0; }
.chip {
  --chip: #99aab5;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 6px 4px 10px; border-radius: 999px;
  background: #fff; border: 1px solid rgba(31,45,61,.12);
  font-size: 13px; font-weight: 500;
  box-shadow: inset 3px 0 0 var(--chip);
}
.chip button { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-soft); font-size: 15px; line-height: 1; }
.chip button:hover { background: #fdecec; color: #b03a3a; }
.chip-add { max-width: 320px; }
.search-box { position: relative; max-width: 320px; }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 3; background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.15); overflow: hidden; }
.search-results:empty { display: none; }
.search-results button, .search-results div { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; font-size: 14px; text-align: left; }
.search-results button:hover { background: #eef3f9; }
.search-results img { width: 22px; height: 22px; border-radius: 50%; }

/* color swatches */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatch { width: 28px; height: 28px; border-radius: 8px; border: 2px solid rgba(0,0,0,.12); transition: transform .12s; }
.swatch:hover { transform: scale(1.1); }
.swatch.on { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.swatch-none { width: auto; padding: 0 10px; font-size: 12px; font-weight: 600; background: #fff; }

/* lists */
.list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.list-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.7); border: 1px solid rgba(31,45,61,.08);
}
.list-row > select { max-width: 280px; flex: none; }
.list-row.block { display: block; }
.list-row code { font-size: 13px; background: #eef3f9; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.plain-list { padding-left: 18px; line-height: 1.8; font-size: 14px; }

/* notes + warnings */
.note { padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.5; background: #eaf2fb; color: #24486b; }
.note-warn { background: #fff6e0; color: #7a5a12; }
.note-error { background: #fdecec; color: #8f2d2d; }
.problems { padding: 14px 16px; border-radius: 12px; background: #fff6e0; color: #6b4f10; font-size: 14px; line-height: 1.5; }
.problems ul { margin: 6px 0 0 18px; }

/* stats */
.stats { display: flex; gap: 12px; flex-wrap: wrap; }
.stats > div { flex: 1; min-width: 150px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.7); display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--ink-soft); }
.stats b { font-size: 18px; color: var(--ink); font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; }
.stats a { color: var(--accent-ink); font-weight: 600; }

/* AutoMod rules */
.rule { padding: 0; }
.rule summary { display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; list-style: none; }
.rule summary::-webkit-details-marker { display: none; }
.rule-dot { width: 10px; height: 10px; border-radius: 50%; background: #b8c2cc; flex: none; }
.rule-on .rule-dot { background: #2e7d4f; }
.rule-name { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rule-top, .rule-body, .rule .save-bar { padding: 0 20px; }
.rule-top { margin-bottom: 12px; }
.rule .rule-body > * { margin-bottom: 12px; }
.badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #e5e9ee; color: var(--ink-soft); white-space: nowrap; }
.badge-on { background: #dff3e6; color: #22703f; }

/* save bar */
.save-bar {
  position: sticky; bottom: 0; z-index: 4;
  display: none; align-items: center; justify-content: flex-end; gap: 14px;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  box-shadow: 0 -2px 16px rgba(0,0,0,.06);
}
.save-bar.inline { position: static; box-shadow: none; background: none; padding-bottom: 18px; }
.save-bar.dirty { display: flex; animation: barIn .22s ease-out; }
.save-note { font-size: 14px; font-weight: 600; color: #8a6312; margin-right: auto; }
@keyframes barIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* pop-up messages */
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { max-width: 420px; padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; color: #fff; background: #2f8a55; box-shadow: 0 8px 24px rgba(0,0,0,.18); animation: swapIn .25s ease-out; transition: opacity .4s, transform .4s; }
.toast-error { background: #b03a3a; }
.toast-warn { background: #a8741a; }
.toast.out { opacity: 0; transform: translateY(8px); }

/* Discord-style preview */
.dc { background: #313338; border-radius: 12px; padding: 14px 16px; color: #dbdee1; font-size: 14px; }
.dc-msg { display: flex; gap: 12px; }
.dc-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.dc-main { min-width: 0; flex: 1; }
.dc-name { font-weight: 600; color: #f2f3f5; margin-bottom: 4px; }
.dc-bot { font-size: 10px; background: #5865f2; color: #fff; padding: 1px 5px; border-radius: 4px; vertical-align: middle; }
.dc-content { white-space: pre-wrap; word-break: break-word; margin-bottom: 6px; }
.dc-embed { display: flex; gap: 12px; max-width: 432px; background: #2b2d31; border-left: 4px solid; border-radius: 4px; padding: 10px 14px 12px 12px; }
.dc-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.dc-author, .dc-footer { display: flex; align-items: center; gap: 8px; }
.dc-author { font-size: 13px; font-weight: 600; color: #f2f3f5; }
.dc-author img, .dc-footer img { width: 22px; height: 22px; border-radius: 50%; }
.dc-footer img { width: 18px; height: 18px; }
.dc-title { font-weight: 700; color: #f2f3f5; }
.dc-title.link { color: #00a8fc; }
.dc-desc { white-space: pre-wrap; word-break: break-word; font-size: 13.5px; line-height: 1.4; }
.dc-image img { max-width: 100%; border-radius: 4px; margin-top: 4px; }
.dc-thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; }
.dc-footer { font-size: 12px; color: #b5bac1; }
.dc img.broken { opacity: .25; }
.dc-empty { font-size: 13px; color: #b5bac1; font-style: italic; }
.dc-buttons { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.dc-btn { padding: 6px 14px; border-radius: 4px; font-size: 13px; font-weight: 500; color: #fff; background: #5865f2; }
.dc-btn-green { background: #248046; }
.dc-btn-gray { background: #4e5058; }
.dc-btn-red { background: #da373c; }

@media (max-width: 1100px) {
  .two-col { grid-template-columns: 1fr; }
  .sticky { position: static; }
}
@media (max-width: 760px) {
  .row, .row.three { grid-template-columns: 1fr; }
  .list-row { flex-direction: column; align-items: stretch; }
  .list-row > select { max-width: none; }
}

/* ================= Welcome Image designer (pages/welcome-image.js) ================= */
.wi-editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; margin-top: 6px; }
.wi-left { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.wi-stage {
  position: relative; touch-action: none; user-select: none;
  border-radius: 10px; overflow: hidden;
  background: repeating-conic-gradient(#d7dde4 0 25%, #eef1f4 0 50%) 0 0 / 20px 20px;
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
  cursor: default;
}
.wi-canvas { display: block; width: 100%; height: auto; }
.wi-box {
  position: absolute; pointer-events: none;
  outline: 2px solid #5865f2; outline-offset: 1px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,0);
}
.wi-box[hidden] { display: none; }
.wi-rot, .wi-scale {
  position: absolute; pointer-events: auto;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2px solid #5865f2; box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.wi-rot { left: 50%; top: -30px; transform: translateX(-50%); cursor: grab; }
.wi-rot::after { content: ""; position: absolute; left: 50%; top: 14px; width: 2px; height: 14px; background: #5865f2; transform: translateX(-50%); }
.wi-scale { right: -9px; bottom: -9px; border-radius: 4px; cursor: nwse-resize; }
.wi-props { background: rgba(255,255,255,.7); border-radius: 12px; padding: 16px; border: 1px solid rgba(31,45,61,.08); }
.wi-props h4 { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 16px; margin-bottom: 12px; }
.wi-props input[type=color] { width: 100%; height: 38px; padding: 3px; border-radius: 10px; border: 1px solid rgba(31,45,61,.15); background: #fff; cursor: pointer; }
.wi-props .toggle { margin-bottom: 12px; }
.wi-layers { background: rgba(255,255,255,.7); border-radius: 12px; padding: 8px; border: 1px solid rgba(31,45,61,.08); }
.wi-layers-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); padding: 4px 8px 8px; }
.wi-layer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.wi-layer:hover { background: #eef3f9; }
.wi-layer.on { background: #fff; color: var(--accent-ink); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.wi-layer > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wi-order { display: flex; gap: 2px; flex: none; }
.wi-order button { width: 26px; height: 24px; border-radius: 6px; font-size: 11px; color: var(--ink-soft); }
.wi-order button:hover:not(:disabled) { background: #dfe7f0; }
.wi-order button:disabled { opacity: .3; cursor: default; }
.wi-size { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.wi-size input { width: 100px; }
.wi-exact { margin-top: 16px; }
.wi-exact img { display: block; max-width: 100%; border-radius: 10px; box-shadow: 0 4px 18px rgba(0,0,0,.15); }
@media (max-width: 1100px) { .wi-editor { grid-template-columns: 1fr; } }
.stats b.ok { color: #2e7d4f; }
.stats b.bad { color: #b3423a; }

/* no visible scrollbars: the menu on the left, the main panel and the server list
   (scrolling with the wheel / touchpad / touch / keys still works) */
.sidebar, .main, .select-list, html {
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar, .main::-webkit-scrollbar, .select-list::-webkit-scrollbar,
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }

/* "Yuuri | Home" at the top left on every page: the whole thing goes to the home page; "Home" looks like a button */
.brand-sep { opacity: .35; font-weight: 400; margin: 0 -2px; }
.brand-home { padding: 4px 10px; margin-left: -6px; border-radius: 999px; font-weight: 600; transition: background .2s, color .2s; }
.brand:hover .brand-home, .brand:focus-visible .brand-home { background: rgba(255, 255, 255, .55); }
