/* sorn dashboard, v2 look: espresso shell, caramel accents, console-style cards. Loaded last. */
:root {
  --rv-card: linear-gradient(180deg, rgba(22, 22, 25, .92), rgba(13, 13, 15, .94));
  --rv-rim: inset 0 0 0 1px rgba(204, 204, 208, .09);
  --rv-rim-hot: inset 0 0 0 1px rgba(202, 202, 206, .38);
  --rv-caramel: linear-gradient(180deg, #ffffff 0%, #e4e4e7 100%);
  --rv-ink: #131314;
  --rv-text: #e6e6e9;
  --rv-muted: #8f8f98;
  --rv-dim: #71717c;
  --rv-good: #7fd3a3;
  --rv-warm: #e8a05c;
  --rv-bad: #e5735c;
}

/* ---------------------------------------------------------------- shell */
.side {
  background: linear-gradient(180deg, rgba(15, 15, 16, .96), rgba(8, 8, 9, .96)) !important;
  border-right: 1px solid rgba(204, 204, 208, .07) !important;
}
.side .brand { font-size: 17px !important; letter-spacing: -.01em; }
.side .brand img { border-radius: 50%; box-shadow: 0 0 0 2px rgba(202, 202, 206, .35); }
.switcher { background: rgba(245, 245, 245, .03) !important; border: 0 !important; box-shadow: var(--rv-rim) !important; border-radius: 14px !important; }
.switcher:hover { background: rgba(245, 245, 245, .06) !important; }
.switcher .gicon { border-radius: 12px !important; }
.group h6 { font-size: 10.5px !important; font-weight: 700 !important; letter-spacing: .12em; text-transform: uppercase; color: var(--rv-dim) !important; padding-top: 6px !important; }
.group a { color: #b5b5bc !important; border-radius: 10px !important; }
.group a i { color: #8f8f98 !important; }
.group a:hover { background: rgba(245, 245, 245, .05) !important; color: var(--rv-text) !important; }
.group a.on { background: rgba(202, 202, 206, .12) !important; color: #fff !important; box-shadow: inset 2px 0 0 #cacace !important; }
.group a.on i { color: #d8d8db !important; }
.nav-indicator { display: none !important; }
.topbar { background: rgba(9, 9, 10, .72) !important; border-bottom: 1px solid rgba(204, 204, 208, .07) !important; }
.crumbs b { color: var(--rv-text); }
.cmdk-open { border-radius: 999px !important; }

/* ---------------------------------------------------------------- cards and controls */
.card { background: var(--rv-card) !important; border: 0 !important; box-shadow: var(--rv-rim), 0 24px 60px -36px rgba(0, 0, 0, .9) !important; border-radius: 18px !important; }
.card.lift:hover { box-shadow: var(--rv-rim-hot), 0 24px 60px -30px rgba(0, 0, 0, .95) !important; }
.set-card > h3 { font-size: 12px !important; letter-spacing: .1em; text-transform: uppercase; color: var(--rv-muted) !important; }
.srow { border-top-color: rgba(204, 204, 208, .06) !important; }
.section-title { font-size: 15px !important; }
.btn:not(.ghost):not(.danger) { background: var(--rv-caramel) !important; color: var(--rv-ink) !important; border: 0 !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 10px 26px -14px rgba(179, 179, 185, .7) !important; }
.btn:not(.ghost):not(.danger) i { color: var(--rv-ink) !important; }
.btn.ghost { background: rgba(245, 245, 245, .05) !important; border: 0 !important; box-shadow: var(--rv-rim) !important; color: var(--rv-text) !important; }
.btn.ghost:hover { background: rgba(245, 245, 245, .09) !important; }
.btn.sm { height: 32px !important; padding: 0 12px !important; font-size: 12.5px !important; border-radius: 10px !important; gap: 7px; }
.toggle.on { background: var(--rv-caramel) !important; }
.toggle.on::after { background: var(--rv-ink) !important; }
.tabs { background: rgba(245, 245, 245, .03) !important; border: 0 !important; box-shadow: var(--rv-rim) !important; border-radius: 14px !important; }
.tabs button.on { color: var(--rv-ink) !important; }
.tabs .glider { top: 4px !important; bottom: 4px !important; height: auto !important; background: var(--rv-caramel) !important; border-radius: 10px !important; box-shadow: 0 8px 20px -10px rgba(179, 179, 185, .7) !important; }
.tabs button { position: relative; z-index: 1; }
.ns-item .btn { flex: none; white-space: nowrap; }
.tabs.scroll-tabs { width: 100% !important; max-width: 100%; overflow-x: auto; flex-wrap: nowrap !important; scrollbar-width: none; }
.tabs.scroll-tabs::-webkit-scrollbar { display: none; }
.tabs.scroll-tabs button { flex: none; }
.badge { border-radius: 999px !important; }
.li { border-radius: 12px !important; }
.li .ico, .pi { background: rgba(202, 202, 206, .1) !important; color: #cacace !important; border: 0 !important; }

/* ---------------------------------------------------------------- page headers */
.page-head h1 { font-size: 26px !important; letter-spacing: -.02em; align-items: center; }
.page-head h1 .pi { width: 42px !important; height: 42px !important; border-radius: 13px !important; background: var(--rv-caramel) !important; color: var(--rv-ink) !important; box-shadow: 0 10px 26px -12px rgba(179, 179, 185, .7); }
.page-head h1 .pi i, .page-head h1 .pi .si { color: var(--rv-ink) !important; fill: var(--rv-ink) !important; }
.page-head p { color: var(--rv-muted) !important; }
.ph-pill { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: var(--rv-muted); background: rgba(245, 245, 245, .06); }
.ph-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #56565f; }
.ph-pill.on { color: var(--rv-good); background: rgba(127, 211, 163, .1); }
.ph-pill.on::before { background: var(--rv-good); box-shadow: 0 0 8px rgba(127, 211, 163, .7); }
.ph-pill[hidden] { display: none; }

/* ---------------------------------------------------------------- overview */
.hello.v2 { align-items: center; margin-bottom: 22px !important; }
.hello.v2 .hello-date { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rv-dim); margin-bottom: 6px; }
.hello.v2 h1 { font-size: 26px !important; letter-spacing: -.02em; }
.hello.v2 h1 .dot { width: 30px !important; height: 30px !important; box-shadow: 0 0 0 2px rgba(202, 202, 206, .35); }
.hello-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sb { border-radius: 20px !important; }
.sb-ring { --c: #cacace; }

.ov-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 18px; margin-top: 18px; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.ac-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.ac-kpi { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.ac-num { font-size: 34px; font-weight: 800; letter-spacing: -.03em; color: var(--rv-text); }
.ac-delta { font-size: 12.5px; font-weight: 700; color: var(--rv-dim); }
.ac-delta.up { color: var(--rv-good); }
.ac-delta.down { color: var(--rv-bad); }
.ac-sub { display: block; font-size: 12.5px; color: var(--rv-muted); margin-top: 2px; }
.ac-tabs { margin: 0 !important; }
.ac-tabs button { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px !important; }
.ac-wrap { position: relative; margin-top: 18px; }
.ac-chart { position: relative; height: 190px; display: flex; align-items: flex-end; gap: 6px; padding: 0 2px; border-bottom: 1px solid rgba(204, 204, 208, .1);
  background: repeating-linear-gradient(0deg, transparent 0 47px, rgba(204, 204, 208, .05) 47px 48px); }
.ac-col { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.ac-col:hover { background: rgba(245, 245, 245, .03); border-radius: 6px 6px 0 0; }
.ac-bar { display: block; width: 100%; height: var(--h); min-height: 0; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #d8d8db, #777782); opacity: .92;
  animation: ac-grow .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 30ms); transform-origin: bottom; }
.ac-col:last-child .ac-bar { background: linear-gradient(180deg, #eeeeef, #cacace); }
@keyframes ac-grow { from { transform: scaleY(0); } }
.ac-col.split { flex-direction: column; align-items: stretch; justify-content: center; }
.ac-col.split .ac-up, .ac-col.split .ac-down { flex: 1; display: flex; }
.ac-col.split .ac-up { align-items: flex-end; }
.ac-col.split .ac-down { align-items: flex-start; border-top: 1px dashed rgba(204, 204, 208, .14); }
.ac-col.split i { display: block; width: 100%; height: var(--h); }
.ac-col.split .ac-up i { border-radius: 5px 5px 1px 1px; background: linear-gradient(180deg, #a9e2c0, #5fb486); animation: ac-grow .7s cubic-bezier(.2, .8, .2, 1) both; transform-origin: bottom; }
.ac-col.split .ac-down i { border-radius: 1px 1px 5px 5px; background: linear-gradient(0deg, #f0a490, #c5604c); animation: ac-grow .7s cubic-bezier(.2, .8, .2, 1) both; transform-origin: top; }
.ac-tip { position: absolute; top: -8px; transform: translate(-50%, -100%); pointer-events: none; opacity: 0; transition: opacity .15s ease;
  padding: 7px 10px; border-radius: 10px; background: rgba(9, 9, 10, .96); box-shadow: var(--rv-rim), 0 14px 30px -10px rgba(0, 0, 0, .9); white-space: nowrap; z-index: 5; }
.ac-tip.show { opacity: 1; }
.ac-tip b { display: block; font-size: 12px; color: var(--rv-text); }
.ac-tip span { font-size: 12px; color: var(--rv-muted); }
.ac-legend { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--rv-dim); margin-top: 8px; }
.ac-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 20px; font-size: 13px; color: var(--rv-muted); }

.ns-bar { height: 6px; border-radius: 9px; background: rgba(204, 204, 208, .08); overflow: hidden; margin: 12px 0 14px; }
.ns-bar i { display: block; height: 100%; border-radius: inherit; background: var(--rv-caramel); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.ns-list { display: grid; gap: 8px; }
.ns-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(245, 245, 245, .03); box-shadow: var(--rv-rim); }
.ns-item b { display: block; font-size: 13.5px; color: var(--rv-text); }
.ns-item .grow > span { display: block; font-size: 12px; color: var(--rv-muted); margin-top: 2px; }
.ns-ic { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(202, 202, 206, .12); color: #cacace; font-size: 14px; }
.ns-done { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 26px 10px; }
.ns-done i { font-size: 26px; color: var(--rv-good); }
.ns-done b { color: var(--rv-text); }
.ns-done span { font-size: 12.5px; color: var(--rv-muted); }

/* ---------------------------------------------------------------- page extras */
.changes-scroll { max-height: 420px; overflow-y: auto; margin-top: 10px; }
.rank-frame { border-radius: 14px; overflow: hidden; background: rgba(0, 0, 0, .25); aspect-ratio: 10 / 3; margin-top: 12px; }
.rank-frame.loading { animation: rv-pulse 1.2s ease-in-out infinite; }
@keyframes rv-pulse { 50% { opacity: .55; } }
.rank-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.test-row { margin-top: 18px; }
.li .actions .btn.sm { margin-left: 4px; }

@media (max-width: 1180px) {
  .ov-grid { grid-template-columns: 1fr; }
  .three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .three { grid-template-columns: 1fr; }
  .ac-chart { height: 150px; gap: 3px; }
  .page-head h1 { font-size: 22px !important; }
}

/* ---------------------------------------------------------------- inner boxes: soft corners, one rim, one height */
.empty-state {
  border-radius: 16px !important; padding: 34px 22px !important;
  background: rgba(245, 245, 245, .02) !important; box-shadow: none !important;
  border: 1.5px dashed rgba(204, 204, 208, .14) !important;
}
.empty-state > i, .empty-state > svg {
  width: 46px; height: 46px; margin: 0 auto 12px !important; border-radius: 14px; display: grid !important; place-items: center;
  background: rgba(202, 202, 206, .1); color: #cacace !important; font-size: 18px !important;
}
.empty-state b { font-size: 14.5px; }
.empty-state span { font-size: 13px; color: var(--rv-muted); }

.input, select.input, .dd-btn, .tags, .side-search, .search, .stepper {
  border-radius: 12px !important; border: 0 !important;
  background: rgba(6, 6, 6, .55) !important;
  box-shadow: inset 0 0 0 1px rgba(204, 204, 208, .1) !important;
  transition: box-shadow .18s ease, background .18s ease !important;
}
textarea.input { border-radius: 14px !important; border: 0 !important; background: rgba(6, 6, 6, .55) !important; box-shadow: inset 0 0 0 1px rgba(204, 204, 208, .1) !important; }
.input, select.input, .dd-btn { height: 44px !important; }
.input:hover, .dd-btn:hover, .tags:hover, .stepper:hover { box-shadow: inset 0 0 0 1px rgba(204, 204, 208, .2) !important; }
.input:focus, textarea.input:focus, .dd.is-open .dd-btn, .dd-btn:focus-visible, .tags:focus-within, .stepper:focus-within, .side-search:focus-within {
  box-shadow: inset 0 0 0 1px rgba(202, 202, 206, .6), 0 0 0 4px rgba(202, 202, 206, .12) !important;
}
.stepper { height: 44px !important; padding: 4px !important; gap: 4px !important; }
.stepper .input, .stepper .input.num { height: 36px !important; box-shadow: none !important; background: transparent !important; }
.stepper-btn {
  width: 36px !important; height: 36px !important; border-radius: 9px !important;
  background: rgba(245, 245, 245, .06) !important; box-shadow: inset 0 0 0 1px rgba(204, 204, 208, .08) !important; color: #d8d8db !important;
}
.stepper-btn:hover { background: rgba(202, 202, 206, .18) !important; color: #f2f2f3 !important; }
.tags { min-height: 44px !important; padding: 6px 8px !important; }
.tags .tag, .chip { border-radius: 999px !important; }
.dd-menu { border-radius: 14px !important; overflow: hidden; }
.dd-item { border-radius: 9px !important; }
.add-row { gap: 10px !important; }
.add-row .btn { height: 44px !important; border-radius: 12px !important; padding: 0 18px !important; }
.add-row .stepper { flex: 0 0 auto; }

.notice { border-radius: 14px !important; }
.msg-preview, .tk-discord, .msg-editor { border-radius: 14px !important; }
.msg-var { border-radius: 999px !important; }
.modal { border-radius: 20px !important; }
.drawer { border-radius: 20px 0 0 20px !important; }
.savebar { border-radius: 16px !important; }
.toast { border-radius: 14px !important; }
.cmdk { border-radius: 18px !important; overflow: hidden; }
.stat { border-radius: 18px !important; }
.sb-check { border-radius: 9px !important; }

/* ---------------------------------------------------------------- dividers: soft, inset, never edge to edge */
.set-card { padding: 8px 0 !important; }
.set-card > h3 { padding: 18px 24px 8px !important; border: 0 !important; }
.set-card > p.cd { border: 0 !important; }
.srow { border-top: 0 !important; position: relative; padding: 16px 24px !important; }
.srow + .srow::before { content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .07) 12%, rgba(255, 255, 255, .07) 88%, rgba(255, 255, 255, 0)); }
.set-card > h3 + .srow::before, .set-card > p.cd + .srow::before { display: none; }
.table .row, .table .head { border-color: rgba(255, 255, 255, .05) !important; }
.topbar { border-bottom-color: rgba(255, 255, 255, .05) !important; }
.side { border-right-color: rgba(255, 255, 255, .05) !important; }

/* ---------------------------------------------------------------- stat tiles get an icon tile */
.stat small { display: flex !important; align-items: center; gap: 9px; }
.stat small i, .stat small .si { width: 28px; height: 28px; flex: none; border-radius: 9px; display: grid !important; place-items: center; background: rgba(255, 255, 255, .06); color: #fafafa !important; font-size: 12px !important; }
.stat b { font-size: 28px !important; letter-spacing: -.02em; }

/* ---------------------------------------------------------------- live previews */
.vis-card { padding: 20px !important; overflow: hidden; }
.vis { display: grid; gap: 16px; transition: opacity .25s ease; }
.vis.off .vis-bars, .vis.off .vis-steps, .vis.off .vis-msgs, .vis.off .vis-stats { opacity: .45; filter: grayscale(1); }
.vis-head { display: flex; align-items: center; gap: 12px; }
.vis-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #fafafa; color: #09090b; font-size: 16px; }
.vis-ic i, .vis-ic .si { color: #09090b !important; fill: #09090b !important; }
.vis-head b { display: block; font-size: 15px; color: #fafafa; }
.vis-head .grow > span { display: block; font-size: 12.5px; color: #a1a1aa; margin-top: 2px; }
.vis-state { flex: none; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: #a1a1aa; background: rgba(255, 255, 255, .06); }
.vis-state.on { color: #7fd3a3; background: rgba(127, 211, 163, .1); }

.vis-bars { position: relative; height: 120px; display: flex; align-items: flex-end; gap: 5px; padding: 0 2px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.vis-bars i { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: rgba(255, 255, 255, .22); animation: ac-grow .6s cubic-bezier(.2, .8, .2, 1); animation-delay: calc(var(--i) * 25ms); transform-origin: bottom; }
.vis-bars i.over { background: linear-gradient(180deg, #f0a490, #e5735c); }
.vis-line { position: absolute; left: 0; right: 0; bottom: 55%; border-top: 1.5px dashed rgba(255, 255, 255, .4); }
.vis-line em { position: absolute; right: 0; top: -10px; font-style: normal; font-size: 11px; font-weight: 700; line-height: 18px; padding: 0 8px; border-radius: 999px; color: #fafafa; background: #0c0c0e; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.vis-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vis-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; color: #e4e4e7; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.vis-chip i { font-size: 11px; color: #a1a1aa; }
.vis-chip.hot { color: #f0b09a; background: rgba(229, 115, 92, .1); box-shadow: inset 0 0 0 1px rgba(229, 115, 92, .25); }
.vis-chip.hot i { color: #f0a490; }

.vis-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vis-pip { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 13px; color: #e4e4e7; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); animation: bx-in .4s cubic-bezier(.2, .8, .2, 1); animation-delay: calc(var(--i) * 40ms); }
.vis-pip.stop { color: #fff; background: linear-gradient(180deg, #f0a490, #e5735c); box-shadow: 0 10px 24px -12px rgba(229, 115, 92, .8); }
.vis-arrow { color: #71717a; font-size: 13px; padding: 0 4px; }
.vis-more { font-size: 12px; font-weight: 700; color: #a1a1aa; }
.vis-caption { font-size: 12.5px; color: #71717a; line-height: 1.55; }

.vis-msgs { display: grid; gap: 6px; }
.vis-msg { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); animation: bx-in .35s cubic-bezier(.2, .8, .2, 1); animation-delay: calc(var(--i) * 30ms); }
.vis-av { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #09090b; background: #e4e4e7; }
.vis-msg b { display: block; font-size: 12.5px; color: #fafafa; }
.vis-msg .grow > span { display: block; font-size: 12.5px; color: #d4d4d8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vis-msg.hit .grow > span { color: #71717a; text-decoration: line-through; text-decoration-color: rgba(229, 115, 92, .7); }
.vis-msg.hit .vis-av { background: #52525b; color: #e4e4e7; }
.vis-verdict { flex: none; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.vis-verdict.ok { color: #7fd3a3; background: rgba(127, 211, 163, .08); }
.vis-verdict.bad { color: #f0a490; background: rgba(229, 115, 92, .12); }

.vis-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.vis-stats > div { display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.vis-stats i { font-size: 13px; color: #a1a1aa; }
.vis-stats b { font-size: 22px; color: #fafafa; letter-spacing: -.02em; }
.vis-stats span { font-size: 12px; color: #71717a; }

.vis-vm { display: grid; justify-items: start; gap: 6px; padding: 14px; border-radius: 14px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.vis-vm-row { display: flex; align-items: center; gap: 9px; padding: 7px 12px; border-radius: 10px; font-size: 13px; color: #a1a1aa; }
.vis-vm-row.room { color: #fafafa; background: rgba(255, 255, 255, .07); }
.vis-vm-row.room b { font-weight: 600; }
.vis-vm-row .cap { margin-left: 8px; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; color: #d4d4d8; background: rgba(0, 0, 0, .4); }
.vis-vm-arrow { padding-left: 16px; font-size: 11px; color: #52525b; }
.vis-seats { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 0 28px; }
.vis-seat { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; border: 1.5px dashed rgba(255, 255, 255, .18); font-size: 12px; font-weight: 800; color: #09090b; }
.vis-seat.you { border: 0; background: #fafafa; box-shadow: 0 0 0 2px #0c0c0e, 0 0 0 4px #7fd3a3; }
.vis-seat img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 760px) {
  .vis-stats { grid-template-columns: 1fr; }
}

/* previews: let the text column fill so pills sit on the right */
.vis-head .grow, .vis-msg .grow { flex: 1; min-width: 0; }
.vis-stats > div { justify-items: start; }
.vis-stats > div > i, .vis-stats > div > .si { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: #e4e4e7 !important; margin-bottom: 4px; }

/* stat tiles: a small icon tile, one-line labels, 3 a row until the screen is wide */
.stat small i svg, .stat small .si svg { width: 15px !important; height: 15px !important; }
.stat small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1480px) { .stat-strip.six { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 640px) { .stat-strip.six { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* ---------------------------------------------------------------- cards stay still: no hover glow, lift or tint */
.card:hover, .card.lift:hover, .stat:hover, .card-pad.kpi:hover { transform: none !important; background: var(--rv-card) !important; box-shadow: var(--rv-rim), 0 24px 60px -36px rgba(0, 0, 0, .9) !important; }
.li:hover, .list .li:hover { transform: none !important; background: var(--fill-panel) padding-box, var(--edge-soft) border-box !important; box-shadow: none !important; }
.gcard:hover { transform: none !important; }
.srow:hover { background: transparent !important; }

/* ---------------------------------------------------------------- Components V2 card editor */
.ce-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; width: 100%; }
.ce-form { display: grid; gap: 18px; min-width: 0; }
.ce-field { display: grid; gap: 8px; min-width: 0; }
.ce-lbl { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ce-lbl b { font-size: 13px; color: #fafafa; }
.ce-lbl span { font-size: 12px; color: #71717a; }
.ce-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); justify-self: start; }
.ce-seg button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 10px; border: 0; background: transparent; color: #a1a1aa; font: 600 12.5px/1 inherit; cursor: pointer; transition: background .15s ease, color .15s ease; }
.ce-seg button i { font-size: 11px; }
.ce-seg button:hover { color: #fafafa; }
.ce-seg button.on { background: #fafafa; color: #09090b; }
.ce-swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ce-sw { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--c, #27272a); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .15s ease, box-shadow .15s ease; display: grid; place-items: center; color: #a1a1aa; font-size: 11px; overflow: hidden; }
.ce-sw.none { background: rgba(255, 255, 255, .05); }
.ce-sw.on { box-shadow: 0 0 0 2px #0c0c0e, 0 0 0 4px #fafafa; }
.ce-sw:active { transform: scale(.92); }
.ce-sw.custom { background: var(--c, conic-gradient(#f472b6, #fcd47c, #7fd3a3, #8ab4ff, #c4a7ff, #f472b6)); color: #09090b; }
.ce-sw.custom i { color: #09090b; }
.ce-color { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }
.ce-btns, .tp-list { display: grid; gap: 8px; }
.ce-btn-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) auto; gap: 8px; align-items: center; }
.ce-add { justify-self: start; height: 36px !important; font-size: 13px !important; }

/* the preview: a Components V2 container as Discord draws it */
.ce-preview { position: sticky; top: 84px; }
.v2-card { position: relative; display: grid; gap: 10px; margin-top: 6px; padding: 14px 16px; border-radius: 10px; background: #2b2d31; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); max-width: 520px; overflow: hidden; }
.v2-card.has-accent { box-shadow: inset 4px 0 0 var(--accent), inset 0 0 0 1px rgba(255, 255, 255, .06); padding-left: 20px; }
.v2-sec { display: flex; gap: 14px; align-items: flex-start; }
.v2-text { flex: 1; min-width: 0; display: grid; gap: 4px; color: #dbdee1; font-size: 15px; line-height: 1.375; overflow-wrap: anywhere; }
.v2-text .dc-h3 { font-size: 18px; font-weight: 700; color: #f2f3f5; margin-bottom: 2px; }
.v2-text .is-default { opacity: .7; }
.v2-thumb { width: 80px; height: 80px; flex: none; border-radius: 8px; object-fit: cover; background: #1e1f22; }
.v2-thumb.ph, .v2-img.ph { display: grid; place-items: center; color: #6d6f78; }
.v2-img { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: 8px; background: #1e1f22; }
.v2-img.ph { height: 120px; gap: 6px; align-content: center; font-size: 12.5px; text-align: center; padding: 0 16px; }
.v2-sep { height: 1px; background: rgba(255, 255, 255, .08); }
.v2-foot { font-size: 12.5px; color: #949ba4; }
.v2-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.v2-btn { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 8px; background: #4e5058; color: #fff; font-size: 14px; font-weight: 500; }
.v2-btn i { font-size: 11px; opacity: .8; }

/* ticket topics */
.tp-row { display: grid; grid-template-columns: 28px minmax(0, .9fr) minmax(0, 1.4fr) auto; gap: 8px; align-items: center; }
.tp-n { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #09090b; background: #e4e4e7; }
.tp-empty { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; font-size: 13px; color: #a1a1aa; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.stat-strip.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1100px) {
  .ce-wrap { grid-template-columns: 1fr; }
  .ce-preview { position: static; }
}
@media (max-width: 640px) {
  .ce-btn-row, .tp-row { grid-template-columns: 1fr auto; }
  .ce-btn-row .input:first-child, .tp-row .input:first-of-type { grid-column: 1 / -1; }
  .tp-n { display: none; }
  .stat-strip.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* card editor: beat the global button and message styles */
.ce-preview .v2-card { margin-left: 44px; }
.v2-text .dc-body { margin: 0 !important; }
.ce-seg button { background: transparent !important; box-shadow: none !important; border: 0 !important; color: #a1a1aa !important; height: 32px !important; border-radius: 10px !important; }
.ce-seg button:hover { color: #fafafa !important; }
.ce-seg button.on { background: #fafafa !important; color: #09090b !important; }
.ce-seg button.on i { color: #09090b !important; }
@media (max-width: 640px) { .ce-preview .v2-card { margin-left: 0; } }
@media (max-width: 1100px) { .stat-strip.four { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* ================================================================ fewer lines
   Only the outer card keeps an edge. Anything inside it uses a soft fill instead of an outline,
   and message previews sit on the page like a chat line, with no frame around them. */

/* live previews: no frame, no header bar, no inner box */
.msg-preview, .ce-preview { background: transparent !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; overflow: visible !important; }
.msg-preview-head { border: 0 !important; padding: 0 0 12px !important; font-size: 12px; color: #71717a; }
.msg-preview-head .tk-live { color: #a1a1aa; font-weight: 600; }
.msg-preview .tk-discord, .ce-preview .tk-discord { background: transparent !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; max-height: none !important; overflow: visible !important; }
.msg-preview .dc-msg { padding: 0 !important; }
.v2-card, .v2-card.has-accent { background: rgba(255, 255, 255, .045); box-shadow: none; border-radius: 10px; }
.v2-card.has-accent { box-shadow: inset 3px 0 0 var(--accent); }
.v2-thumb, .v2-img { background: rgba(255, 255, 255, .04); }
.v2-btn { background: rgba(255, 255, 255, .1); }
.msg-editor { background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; }

/* boxes inside cards: tone, not outlines */
.card .li, .card .list .li, .list .li, .li:hover, .list .li:hover {
  background: rgba(255, 255, 255, .03) !important; border-color: transparent !important; box-shadow: none !important;
}
.notice, .notice.warn { background: rgba(255, 255, 255, .035) !important; border: 0 !important; box-shadow: none !important; }
.empty-state { border: 0 !important; background: rgba(255, 255, 255, .025) !important; }
.empty-row { border: 0 !important; background: rgba(255, 255, 255, .025) !important; }
.ns-item, .vis-msg, .vis-stats > div, .vis-vm, .vis-chip, .ce-seg, .tp-empty, .ac-card, .stat-mini { box-shadow: none !important; }
.ns-item { background: rgba(255, 255, 255, .03); }
.vis-chip { background: rgba(255, 255, 255, .06); }
.vis-chip.hot { background: rgba(229, 115, 92, .14); }
.ce-seg { background: rgba(255, 255, 255, .045); }
.ce-sw { box-shadow: none; }
.ce-sw.none { background: rgba(255, 255, 255, .07); }

/* fields: a soft fill, an outline only while you type in them */
.input, select.input, .dd-btn, .tags, .side-search, .search, .stepper, textarea.input {
  background: rgba(255, 255, 255, .045) !important; box-shadow: none !important; border: 0 !important;
}
.input:hover, .dd-btn:hover, .tags:hover, .stepper:hover { background: rgba(255, 255, 255, .065) !important; box-shadow: none !important; }
.input:focus, textarea.input:focus, .tags:focus-within, .dd.is-open .dd-btn { background: rgba(255, 255, 255, .06) !important; box-shadow: 0 0 0 1.5px rgba(250, 250, 250, .35) !important; outline: 0 !important; }
.stepper button { background: rgba(255, 255, 255, .06) !important; box-shadow: none !important; border: 0 !important; }

/* rows you click instead of a separate button */
a.ns-item.go, a.gtk.go { color: inherit; text-decoration: none; cursor: pointer; transition: background .15s ease; }
a.ns-item.go:hover, a.gtk.go:hover { background: rgba(255, 255, 255, .06) !important; }
a.ns-item.go > i, a.gtk.go > i, a.ns-item.go > .si-i, a.gtk.go > .si-i { flex: none; font-size: 11px; color: #71717a; transition: transform .15s ease, color .15s ease; }
a.ns-item.go:hover > i, a.gtk.go:hover > i { color: #fafafa; transform: translateX(2px); }
.gtk-list { display: grid; gap: 4px; padding: 4px 12px 12px; }
.gtk { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; }
.gtk-ic { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: #e4e4e7; font-size: 13px; }
.gtk b { display: block; font-size: 14px; color: #fafafa; }
.gtk .grow > span { display: block; font-size: 12.5px; color: #a1a1aa; margin-top: 2px; line-height: 1.5; }
.gtk .grow { flex: 1; min-width: 0; }

.ns-item .grow { flex: 1; min-width: 0; }

/* ---------------------------------------------------------------- repping preview */
.rp-list { display: grid; gap: 6px; }
.rp-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .03); }
.rp-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.rp-row .grow { flex: 1; min-width: 0; }
.rp-row b { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #fafafa; }
.rp-row .grow > span { display: block; font-size: 12.5px; color: #a1a1aa; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-status { color: #e4e4e7 !important; }
.rp-tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .02em; color: #e4e4e7; background: rgba(255, 255, 255, .1); }
.rp-tag img { width: 12px; height: 12px; border-radius: 3px; }
.rp-none { font-size: 12px; color: #71717a; }

/* ---------------------------------------------------------------- your settings preview */
.me-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .03); }
.me-card img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.me-card .grow { flex: 1; min-width: 0; display: grid; gap: 3px; }
.me-card b { font-size: 16px; color: #fafafa; }
.me-card p { margin: 4px 0 2px; font-size: 13.5px; color: #e4e4e7; line-height: 1.5; overflow-wrap: anywhere; }
.me-sub { font-size: 12.5px; color: #a1a1aa; }
.me-facts { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 6px; font-size: 12.5px; color: #d4d4d8; }
.me-facts span { display: inline-flex; align-items: center; gap: 6px; }
.me-facts i { font-size: 11px; color: #a1a1aa; }
.me-badge { width: 18px !important; height: 18px !important; border-radius: 0 !important; }
select.input { appearance: none; padding-right: 30px; background-image: none; cursor: pointer; }

/* ── server logs map ─────────────────────────────────────── */
.lg-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lg-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); animation: bx-in .35s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 35ms); }
.lg-ic { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 9px; background: rgba(255, 255, 255, .05); color: #71717a; font-size: 12px; }
.lg-row b { font-size: 13px; color: #a1a1aa; font-weight: 600; }
.lg-line { flex: 1; min-width: 12px; height: 1px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .12) 0 4px, transparent 4px 8px); }
.lg-to { font-size: 12.5px; color: #52525b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 48%; }
.lg-row.on .lg-ic { background: #fafafa; color: #09090b; }
.lg-row.on b { color: #fafafa; }
.lg-row.on .lg-line { background: rgba(255, 255, 255, .28); }
.lg-row.on .lg-to { color: #e4e4e7; font-weight: 600; }
.vis.off .lg-map { opacity: .55; }
@media (max-width: 640px) { .lg-map { grid-template-columns: minmax(0, 1fr); } }

/* quick "one channel for everything" row */
.quick-row { display: flex !important; align-items: center; gap: 12px; flex-wrap: wrap; }
.quick-row .grow { min-width: 200px; }
.quick-row .grow b { display: block; font-size: 14px; color: #fafafa; }
.quick-row .grow span { display: block; font-size: 12.5px; color: #a1a1aa; margin-top: 2px; }
.quick-row .dd { flex: 0 1 240px; min-width: 180px; }

/* ── starboard preview ───────────────────────────────────── */
.sb-react { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #a1a1aa; }
.sb-react > span > i { font-size: 11px; color: #52525b; }
.sb-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; background: rgba(88, 101, 242, .15); box-shadow: inset 0 0 0 1px rgba(88, 101, 242, .5); color: #dee0fc; }
.sb-pill b { font-size: 13px; }
.sb-pill .dc-emoji, .sb-pill .dc-uni { width: 16px; height: 16px; font-size: 15px; }
.sb-count { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #dbdee1; }
.sb-count i { color: #fbbf24; font-size: 13px; }
.sb-count b { color: #f2f3f5; }
.v2-thumb.sb-av { width: 44px; height: 44px; border-radius: 50%; }
.vis.off .tk-discord { opacity: .55; filter: grayscale(1); }

/* ── bump reminder flow ──────────────────────────────────── */
.bp-flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bp-arrow { font-size: 11px; color: #52525b; }
.vis.off .bp-flow { opacity: .55; }

/* ── button role panel builder ───────────────────────────── */
.br-roles { display: grid; gap: 8px; }
.br-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.br-row .dd { width: 100%; min-width: 0; }
.br-unique { padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
.li.is-editing { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
@media (max-width: 640px) { .br-row { grid-template-columns: 28px minmax(0, 1fr) auto; } .br-row .input { grid-column: 2 / -1; grid-row: 2; } }

/* previews inside the live-preview cards: no box around them, same as the message editor */
.vis .tk-discord { background: transparent !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; max-height: none !important; overflow: visible !important; }
.v2-text .dc-sub { font-size: 12.5px; color: #949ba4; }
.v2-text .dc-h2 { font-size: 20px; font-weight: 700; color: #f2f3f5; line-height: 1.25; }

/* ── invite leaderboard preview ─────────────────────────── */
.iv-list { display: grid; gap: 6px; }
.iv-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.iv-n { width: 22px; font-size: 12px; font-weight: 800; color: #71717a; text-align: center; }
.iv-row:first-child .iv-n { color: #fafafa; }
.iv-av { width: 26px; height: 26px; border-radius: 50%; background: #27272a; object-fit: cover; flex: none; }
.iv-row b { font-size: 13.5px; color: #fafafa; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-meta { flex: 1; font-size: 12px; color: #71717a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iv-total { font-size: 15px; font-weight: 800; color: #fafafa; font-variant-numeric: tabular-nums; }
.vis.off .iv-list { opacity: .5; }

/* ── stat channel builder ───────────────────────────────── */
.sc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.sc-form { display: grid; gap: 14px; }
.sc-hint { font-size: 12px; color: #71717a; }
.sc-side { padding: 14px; border-radius: 14px; background: #2b2d31; display: grid; gap: 2px; font-family: "gg sans", "Noto Sans", sans-serif; }
.sc-cat { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: #949ba4; padding: 0 4px 6px; }
.sc-cat i { font-size: 9px; }
.sc-vc { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; color: #949ba4; font-size: 15px; }
.sc-vc span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-vc i { font-size: 13px; }
.sc-vc .fa-lock { font-size: 11px; opacity: .7; }
.sc-vc.new { color: #f2f3f5; background: rgba(255, 255, 255, .06); }
@media (max-width: 760px) { .sc-wrap { grid-template-columns: minmax(0, 1fr); } }

/* ── economy shop editor ────────────────────────────────── */
.shop-form { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(150px, 1fr) minmax(0, 1.3fr) minmax(150px, 1fr); gap: 12px; margin-top: 12px; align-items: end; }
.shop-form .shop-wide { grid-column: 1 / -1; }
.shop-form .dd { width: 100%; }
@media (max-width: 860px) { .shop-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.shop-form .stepper { width: 100%; }
.bk-load { font-size: 12px; opacity: .7; white-space: nowrap; }
@media (max-width: 760px) { .bk-load { display: none; } }
