@import url("/font.css");
:root {
  color-scheme: dark;
  --bg: #10151c;
  --surface: #171e27;
  --surface2: #1c2530;
  --border: #2a3746;
  --text: #edf4fa;
  --muted: #96a6b8;
  --accent: #8dd5ff;
  --accent-dim: #1c3547;
  --red: #f3938c;
  --blue: #8dd5ff;
  --radius: 12px;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  flex-shrink: 0;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #8dd5ff55;
  border-color: var(--accent);
}
::selection {
  background: #8dd5ff44;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -1px;
}
h2 {
  font-size: 16px;
  font-weight: 550;
  letter-spacing: -0.2px;
}
h3 {
  font-size: 15px;
  font-weight: 550;
}
small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.accent {
  color: var(--accent);
}
.mono {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
}
.initial-loader {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: var(--muted);
}
.layout {
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  overflow-y: auto;
  position: fixed;
  inset: 0 auto 0 0;
  width: 242px;
  display: flex;
  flex-direction: column;
  padding: 28px 18px 16px;
  background: #131a22;
  border-right: 1px solid var(--border);
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 11px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.7px;
}
.brand small {
  align-self: flex-start;
  font-size: 8px;
  letter-spacing: 1px;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 2px 5px;
  border-radius: 4px;
  margin: 2px 0 0 -4px;
}
.workspace {
  margin: 30px 0 25px;
  padding: 12px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
}
.server-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #223d52;
  color: #b9e6ff;
  font-weight: 650;
  font-size: 15px;
  flex-shrink: 0;
  overflow: hidden;
}
.server-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.workspace-body {
  min-width: 0;
  flex: 1;
}
.workspace-body select {
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
}
.workspace-body small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}
.nav-label {
  padding: 0 13px;
  margin: 18px 0 8px;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #7d8c9e;
  font-weight: 650;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  margin: 3px 0;
  border-radius: 7px;
  color: #a4b2c2;
  font-size: 12px;
  transition: 0.15s;
}
.nav-link:hover {
  background: #202d3b;
  color: var(--text);
}
.nav-link.active {
  color: var(--accent);
  background: #1c3547;
}
.nav-link.active:before {
  content: "";
  position: absolute;
  left: 0;
  width: 3px;
  height: 20px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}
.nav-link svg {
  width: 17px;
  height: 17px;
}
.nav-count {
  margin-left: auto;
  font-size: 10px;
  padding: 0 6px;
  line-height: 18px;
  background: #274a60;
  border-radius: 4px;
  color: var(--accent);
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 22px;
}
.status-card {
  padding: 13px;
  background: linear-gradient(120deg, #1c3345, #182632);
  border: 1px solid #2e4b60;
  border-radius: 9px;
  margin: 15px 2px;
}
.status-line {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}
.status-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 100%;
  background: var(--accent);
  box-shadow: 0 0 10px #8dd5ff22;
}
.status-dot.offline {
  background: var(--red);
}
.status-card p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding: 17px 8px 0;
  margin-top: 18px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 100%;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  background: #293e51;
  color: #c1e7ff;
  font-size: 11px;
  font-weight: 550;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar.purple {
  background: #322d42;
  color: #c8b8ef;
}
.avatar.blue {
  background: #293440;
  color: #a8c5e6;
}
.avatar.pink {
  background: #3d2d33;
  color: #e8b9c8;
}
.profile p {
  font-size: 11px;
  font-weight: 550;
}
.profile small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.profile .icon-btn {
  margin-left: auto;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 78px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  gap: 20px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  align-items: center;
}
.breadcrumb span:last-child {
  color: var(--text);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}
.top-search {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #7d8d9f;
}
.top-search input {
  width: 180px;
  border: 0;
  background: none;
  color: var(--text);
  outline: none;
  font-size: 11px;
}
.keycap {
  font-size: 9px;
  padding: 2px 5px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
}
.divider {
  height: 23px;
  border-left: 1px solid var(--border);
}
.owner-pill {
  border: 1px solid #344e63;
  border-radius: 5px;
  font-size: 10px;
  color: #c1e3fa;
  padding: 3px 8px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.content {
  padding: 34px 38px 28px;
  max-width: 1640px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 27px;
}
.page-heading p {
  margin-top: 9px;
  font-size: 12px;
  color: var(--muted);
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  background: #1c2733;
  color: var(--text);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 550;
  line-height: 18px;
  transition: background 0.15s;
}
.btn:hover {
  background: #27394b;
  border-color: #46627b;
}
.btn.primary {
  color: #0c2739;
  background: var(--accent);
  border-color: var(--accent);
}
.btn.primary:hover {
  background: #b5e5ff;
}
.btn.danger {
  color: var(--red);
  background: #36231f;
  border-color: #5a3530;
}
.btn.small {
  padding: 5px 10px;
  font-size: 10px;
}
.btn svg {
  width: 14px;
  height: 14px;
}
.icon-btn {
  border: 0;
  background: none;
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  padding: 6px;
  border-radius: 6px;
}
.icon-btn:hover {
  background: var(--surface2);
  color: var(--text);
}
.icon-btn svg {
  width: 16px;
  height: 16px;
}
.demo-banner {
  border: 1px solid #344e63;
  background: #1b2d3d;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 11px;
  color: #b4d3e9;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 23px;
}
.demo-banner .badge {
  margin-left: auto;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 23px;
}
.stat-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  min-height: 142px;
  position: relative;
  overflow: hidden;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a4b3c3;
  font-size: 11px;
}
.stat-icon {
  width: 29px;
  height: 29px;
  border: 1px solid #304c62;
  color: var(--accent);
  background: #203849;
  border-radius: 7px;
  display: grid;
  place-items: center;
}
.stat-icon svg {
  width: 15px;
  height: 15px;
}
.stat-value {
  font-size: 31px;
  font-weight: 550;
  letter-spacing: -1.5px;
  line-height: 1.3;
  margin: 7px 0 6px;
}
.stat-bottom {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
}
.stat-spark {
  position: absolute;
  bottom: 18px;
  right: 17px;
  width: 72px;
  height: 30px;
  opacity: 0.7;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1fr);
  gap: 21px;
  margin-bottom: 24px;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
}
.card-head h2 {
  font-size: 13px;
}
.card-head p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.card-body {
  padding: 0 22px 22px;
}
.chart-legend {
  display: flex;
  gap: 15px;
  font-size: 10px;
  color: var(--muted);
}
.chart-legend span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.legend-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  background: var(--accent);
  border-radius: 2px;
}
.legend-dot.dim {
  background: #355e79;
}
.chart {
  height: 191px;
  position: relative;
  margin: 0 5px;
}
.chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart text {
  font: 9px system-ui;
  fill: #899baf;
}
.chart .gridline {
  stroke: #29394a;
  stroke-dasharray: 3 5;
}
.chart rect.bar:hover {
  fill: #c7ecff;
}
.chart-foot {
  display: flex;
  gap: 26px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 15px 22px;
  font-size: 10px;
  color: var(--muted);
}
.chart-foot strong {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  margin-left: 5px;
}
.chart-foot .arrow-label {
  margin-left: auto;
  color: var(--accent);
  display: flex;
  gap: 5px;
  align-items: center;
}
.distribution {
  padding: 3px 22px 22px;
}
.category-meter {
  margin: 17px 0 0;
}
.meter-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.meter-name {
  display: flex;
  gap: 9px;
  color: #c6d4e2;
}
.meter-count {
  font-size: 10px;
  color: var(--muted);
}
.meter {
  height: 5px;
  background: #2b3c4e;
  border-radius: 4px;
  margin-top: 10px;
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}
.category-meter:nth-child(2) .meter-fill {
  background: #65addb;
}
.category-meter:nth-child(3) .meter-fill {
  background: #477fa5;
}
.category-meter:nth-child(4) .meter-fill {
  background: #345f7e;
}
.distribution-total {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}
.distribution-total strong {
  color: var(--text);
  font-weight: 500;
}
.table-card {
  margin-bottom: 22px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 9px;
  letter-spacing: 0.5px;
  font-weight: 500;
  color: #8395aa;
  padding: 11px 22px;
  background: #1a242f;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
td {
  font-size: 11px;
  padding: 14px 22px;
  border-bottom: 1px solid #263544;
  color: #c4d1df;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr[data-ticket] {
  cursor: pointer;
}
tbody tr[data-ticket]:hover {
  background: #1c2e3f;
}
.ticket-title {
  font-weight: 500;
  color: var(--text);
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticket-subtitle {
  font-size: 10px;
  color: #8597ac;
  margin-top: 3px;
}
.ticket-number {
  color: #95a7bb;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.person {
  display: flex;
  gap: 8px;
  align-items: center;
}
.person .avatar {
  width: 25px;
  height: 25px;
  font-size: 8px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  line-height: 18px;
  padding: 1px 7px;
  border: 1px solid transparent;
  border-radius: 5px;
  white-space: nowrap;
  font-weight: 500;
}
.badge.open {
  background: #26371d;
  color: #b6e88f;
  border-color: #3a4a2e;
}
.badge.claimed {
  background: #2c2c3c;
  color: #c2baf3;
  border-color: #3d3a51;
}
.badge.closed {
  background: #272d27;
  color: #9ca996;
  border-color: #394135;
}
.badge.normal {
  color: #a5b9cc;
}
.badge.low {
  color: #8c9fb4;
}
.badge.high {
  color: #e5c176;
}
.badge.urgent {
  color: #f3948d;
}
.priority-dot {
  width: 5px;
  height: 5px;
  border-radius: 100%;
  background: currentColor;
}
.table-bottom {
  padding: 13px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}
.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer {
  margin-top: 24px;
  padding-top: 16px;
  color: #8394a8;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.activity-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 21px;
}
.activity-row {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.activity-row:last-child {
  border: 0;
}
.activity-symbol {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #203a4d;
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.activity-symbol svg {
  width: 13px;
  height: 13px;
}
.activity-row p {
  font-size: 11px;
  line-height: 1.6;
}
.activity-row small {
  font-size: 10px;
  color: var(--muted);
}
.activity-time {
  margin-left: auto;
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
}
.quick-card {
  padding: 21px;
  background:
    radial-gradient(at 95% 0%, #2d648655, transparent 65%), var(--surface);
}
.quick-card h2 {
  font-size: 15px;
  margin: 13px 0 8px;
}
.quick-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  max-width: 300px;
}
.quick-card .btn {
  margin-top: 20px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: var(--accent);
  font-weight: 550;
}
.filter-bar {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.input-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #101922;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0 10px;
  min-width: 220px;
  margin-right: auto;
  color: var(--muted);
}
.input-search input {
  border: 0;
  background: none;
  padding: 9px 0;
  color: var(--text);
  font-size: 11px;
  outline: none;
  width: 100%;
}
.filter-bar select {
  font-size: 11px;
  min-width: 130px;
}
.tabs {
  display: flex;
  gap: 5px;
  padding: 0 20px 14px;
}
.tab {
  padding: 5px 10px;
  border: 0;
  border-radius: 5px;
  background: none;
  color: var(--muted);
  font-size: 11px;
}
.tab.active {
  background: var(--accent-dim);
  color: var(--accent);
}
input,
textarea,
select {
  border: 1px solid #33485c;
  border-radius: 7px;
  padding: 10px 12px;
  background: #101922;
  color: var(--text);
  width: 100%;
  font-size: 12px;
}
select {
  appearance: auto;
}
select option {
  background: #1c2a38;
  color: var(--text);
}
textarea {
  resize: vertical;
  min-height: 95px;
  line-height: 1.7;
}
input::placeholder,
textarea::placeholder {
  color: #7d8ea3;
}
input[type="checkbox"] {
  width: 15px;
  height: 15px;
  padding: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
input[type="color"] {
  height: 41px;
  padding: 5px;
  width: 65px;
}
label {
  display: block;
  font-size: 11px;
  color: #b9cce0;
  margin-bottom: 7px;
}
.field {
  margin-bottom: 18px;
}
.field small {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  color: var(--muted);
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field-grid .field {
  margin-bottom: 4px;
}
.form-section {
  padding: 23px 25px;
  border-bottom: 1px solid var(--border);
}
.form-section:last-child {
  border-bottom: 0;
}
.form-section h2 {
  margin-bottom: 6px;
  font-size: 14px;
}
.form-section > p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 23px;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 25px;
  background: #1c2835;
}
.name-example {
  color: var(--accent) !important;
  overflow-wrap: anywhere;
  margin: 8px 0 22px;
}
.embed-editor {
  border: 1px solid var(--border);
  border-radius: 9px;
  margin-top: 12px;
}
.embed-editor summary { cursor: pointer; padding: 15px; font-weight: 600; }
.embed-editor-body { padding: 0 16px 18px; }
.embed-editor .field-grid { margin: 18px 0; }
.embed-disabled { opacity: 0.5; }
.discord-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  font-size: 12px;
}
.discord-fields strong, .discord-fields span { display: block; }
.discord-fields span { color: #dbdee1; margin-top: 3px; }
.embed-editor .discord-preview small { margin-top: 14px; }
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: start;
}
.settings-layout > * {
  min-width: 0;
}
.info-card {
  padding: 22px;
}
.info-card h3 {
  margin: 10px 0;
}
.info-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
}
.info-card code {
  font-size: 10px;
  color: var(--accent);
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.switch-row:last-child {
  border: 0;
}
.switch-row p {
  font-size: 12px;
}
.switch-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.switch {
  width: 33px;
  height: 19px;
  position: relative;
  flex-shrink: 0;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  z-index: 1;
}
.switch span {
  display: block;
  width: 33px;
  height: 19px;
  border-radius: 20px;
  background: #3b4e63;
  transition: 0.2s;
}
.switch span:after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 100%;
  background: #a4b6c9;
  top: 3px;
  left: 3px;
  transition: 0.2s;
}
.switch input:checked + span {
  background: var(--accent);
}
.switch input:checked + span:after {
  background: #15354b;
  left: 17px;
}
.switch input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.category-card {
  padding: 22px;
  position: relative;
}
.category-emoji {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  font-size: 21px;
  border: 1px solid #36546b;
  background: #203849;
  border-radius: 11px;
  margin-bottom: 20px;
}
.category-card h2 {
  font-size: 15px;
  margin-bottom: 7px;
}
.category-card > p {
  font-size: 11px;
  color: var(--muted);
  min-height: 34px;
}
.category-card .meta {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--muted);
  margin: 21px 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.card-tools {
  position: absolute;
  right: 15px;
  top: 17px;
  display: flex;
  gap: 5px;
}
.category-card .card-tools .badge {
  margin-right: 5px;
}
.category-card .btn {
  width: 100%;
}
.empty-state {
  text-align: center;
  padding: 65px 25px;
  color: var(--muted);
}
.empty-state svg {
  margin-bottom: 15px;
  color: var(--accent);
}
.empty-state h2 {
  margin-bottom: 8px;
  color: var(--text);
}
.empty-state p {
  font-size: 12px;
  margin-bottom: 20px;
}
.panel-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.panel-card {
  padding: 23px;
}
.panel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 21px;
}
.panel-meta p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.panel-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.discord-preview {
  background: #232428;
  border: 1px solid #33353a;
  border-radius: 8px;
  padding: 17px 17px 17px 20px;
  position: relative;
  font-size: 14px;
  overflow-wrap: anywhere;
  overflow: hidden;
}
.discord-preview:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--panel-color, var(--accent));
}
.discord-preview h3 {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 650;
  color: #f2f3f5;
  margin-bottom: 8px;
}
.discord-description {
  font-size: 13px;
  line-height: 1.6;
  color: #dbdee1;
}
.discord-description code {
  background: #1b1c20;
  border-radius: 3px;
  padding: 1px 4px;
}
.discord-heading {
  font-size: 17px;
  font-weight: 700;
  margin: 8px 0;
}
.discord-banner {
  display: block;
  width: 100%;
  border-radius: 7px;
  margin-bottom: 14px;
}
.discord-separator {
  border-top: 1px solid #3b3d43;
  margin: 14px 0 9px;
}
.discord-preview small {
  display: block;
  color: #a1a5ac;
  font-size: 11px;
}
.discord-select {
  margin-top: 10px;
  padding: 10px 12px;
  background: #1c1e21;
  border: 1px solid #383a40;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  color: #9499a1;
  font-size: 13px;
}
.panel-card .chips {
  margin-top: 17px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chip {
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 10px;
  color: #b1c5da;
  background: #1b2d3d;
}
.checkbox-list {
  display: grid;
  gap: 8px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #141e29;
  cursor: pointer;
  font-size: 11px;
}
.checkbox-label input {
  margin: 0;
}
.checkbox-label small {
  margin: 0 0 0 auto;
  color: var(--muted);
}
.template-card {
  padding: 23px;
}
.template-card h2 {
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.template-card p {
  font-size: 11px;
  color: var(--muted);
  white-space: pre-wrap;
  line-height: 1.9;
  min-height: 90px;
}
.template-card .template-actions {
  margin-top: 20px;
  display: flex;
  gap: 8px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 30px);
  background: #b5e5ff;
  color: #102b3d;
  padding: 13px 20px;
  border-radius: 9px;
  box-shadow: 0 8px 45px #0007;
  font-size: 12px;
  font-weight: 500;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  max-width: 90vw;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.error {
  background: #f2b4ac;
  color: #421d18;
}
dialog {
  border: 1px solid #3b5168;
  border-radius: 15px;
  padding: 0;
  background: var(--surface);
  color: var(--text);
  width: min(610px, calc(100vw - 32px));
  max-height: 90vh;
  box-shadow: 0 30px 100px #0009;
}
dialog.wide {
  width: min(920px, calc(100vw - 32px));
}
dialog::backdrop {
  background: #070e17bb;
  backdrop-filter: blur(5px);
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--border);
}
.modal-head h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
}
.modal-head p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.modal-body {
  padding: 24px 26px;
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 17px 26px;
  border-top: 1px solid var(--border);
  background: #1c2a38;
}
.modal-footer .left {
  margin-right: auto;
}
.modal-body .field:last-child {
  margin-bottom: 0;
}
.editor-field {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 14px;
  margin-bottom: 10px;
}
.editor-field .field {
  margin-bottom: 10px;
}
.editor-field .field-grid {
  gap: 10px;
}
.editor-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 10px;
}
.checks-inline {
  display: flex;
  align-items: center;
  gap: 15px;
}
.checks-inline label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 10px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(200px, 1fr);
  gap: 25px;
}
.detail-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.detail-data dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
}
.detail-data dd {
  margin: 0;
  font-size: 12px;
}
.detail-section {
  margin: 20px 0;
}
.detail-section h3 {
  font-size: 12px;
  margin-bottom: 12px;
}
.answer {
  padding: 12px;
  background: #111c28;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 8px 0;
}
.answer strong {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
}
.answer p {
  font-size: 12px;
  margin-top: 7px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.detail-aside {
  border-left: 1px solid var(--border);
  padding-left: 24px;
}
.detail-aside h3 {
  font-size: 11px;
  margin-bottom: 13px;
}
.detail-aside .btn {
  width: 100%;
  justify-content: flex-start;
  margin-bottom: 8px;
}
.detail-aside .field {
  margin-top: 18px;
}
.note {
  background: #213547;
  border: 1px solid #355268;
  padding: 12px;
  border-radius: 7px;
  margin: 8px 0;
}
.note small {
  font-size: 10px;
  color: var(--muted);
}
.note p {
  font-size: 11px;
  white-space: pre-wrap;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.note-form textarea {
  min-height: 65px;
}
.note-form .btn {
  margin-top: 8px;
}
.detail-event {
  font-size: 10px;
  display: flex;
  gap: 8px;
  padding: 8px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.detail-event span:last-child {
  margin-left: auto;
  white-space: nowrap;
  font-size: 9px;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  background:
    radial-gradient(ellipse at 50% 10%, #245c8255, transparent 60%), var(--bg);
}
.login-card {
  width: min(420px, 100%);
  text-align: center;
  padding: 43px 35px;
  border: 1px solid #324a60;
  border-radius: 18px;
  background: #17222e;
  box-shadow: 0 30px 100px #0004;
}
.login-card .brand {
  justify-content: center;
}
.login-card h1 {
  font-size: 26px;
  margin-top: 35px;
}
.login-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin: 17px 0 25px;
}
.login-card .btn {
  width: 100%;
  padding: 12px;
}
.setup-card {
  width: min(600px, 100%);
}
.setup-issues {
  list-style: none;
  padding: 0;
  text-align: left;
}
.setup-issues li {
  padding: 12px 0;
  border-bottom: 1px solid #324a60;
  overflow-wrap: anywhere;
}
.setup-issues span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}
.login-foot {
  font-size: 10px;
  color: #8295ab;
  margin-top: 24px;
}
.notice {
  border: 1px solid #54422d;
  background: #2d251b;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 11px;
  color: #d7bf92;
  line-height: 1.8;
  margin-bottom: 18px;
}
.notice.error {
  border-color: #614038;
  color: #f1b5a7;
  background: #32231e;
}
.stat-explainer {
  font-size: 10px;
  color: var(--muted);
  margin-top: 12px;
}
.step {
  display: flex;
  gap: 13px;
  margin: 19px 0;
}
.step-number {
  width: 25px;
  height: 25px;
  background: var(--accent-dim);
  border: 1px solid #3d5e78;
  color: var(--accent);
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-size: 10px;
  flex-shrink: 0;
}
.step p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 4px;
}
.step code {
  font-size: 10px;
  color: var(--accent);
}
.mobile-menu {
  display: none;
}
.mobile-shade {
  display: none;
}
.inline-message {
  font-size: 11px;
  color: var(--muted);
  padding: 10px 0;
}
.settings-tag {
  display: inline-flex;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  font-size: 9px;
  margin-top: 12px;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 42px;
  }
  .stat-card {
    min-height: 156px;
    padding: 23px;
  }
  .chart {
    height: 230px;
  }
  .sidebar {
    padding-top: 32px;
  }
  .nav-link {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .topbar {
    height: 84px;
  }
}
@media (max-width: 1200px) {
  .layout {
    grid-template-columns: 215px minmax(0, 1fr);
  }
  .sidebar {
    width: 215px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .content {
    padding: 28px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr);
  }
  .stats-grid {
    gap: 11px;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-spark {
    width: 53px;
    opacity: 0.4;
  }
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  td,
  th {
    padding-left: 17px;
    padding-right: 17px;
  }
  .settings-layout {
    grid-template-columns: minmax(0, 1fr) 235px;
  }
  .brand {
    font-size: 18px;
  }
}
@media (max-width: 1000px) {
  .top-search {
    display: none;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .distribution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 25px;
    padding-top: 0;
  }
  .distribution-total {
    grid-column: 1/-1;
    margin-top: 7px;
  }
  .category-meter {
    margin-top: 5px;
  }
  .activity-grid {
    grid-template-columns: 1fr 1fr;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-layout > .info-card {
    order: -1;
  }
  .settings-layout > .info-card p {
    max-width: 700px;
  }
  .panel-list {
    grid-template-columns: 1fr;
  }
  .stat-value {
    font-size: 27px;
  }
  .stat-bottom {
    font-size: 9px;
  }
  .stat-top {
    font-size: 10px;
  }
  .chart {
    height: 220px;
  }
  .heading-actions .hide-tablet {
    display: none;
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 242px;
  }
  .layout.menu-open .sidebar {
    transform: translateX(0);
  }
  .layout.menu-open .mobile-shade {
    display: block;
    position: fixed;
    inset: 0;
    background: #0009;
    z-index: 29;
  }
  .main {
    width: 100%;
  }
  .mobile-menu {
    display: inline-grid;
  }
  .topbar {
    height: 62px;
    padding: 0 18px;
  }
  .breadcrumb {
    font-size: 11px;
    gap: 7px;
  }
  .breadcrumb .breadcrumb-home {
    display: none;
  }
  .topbar-right {
    gap: 8px;
  }
  .topbar .owner-pill {
    font-size: 9px;
  }
  .topbar .divider {
    display: none;
  }
  .content {
    padding: 25px 18px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 11px;
    max-width: 240px;
    line-height: 1.7;
  }
  .heading-actions {
    gap: 7px;
  }
  .heading-actions .btn {
    font-size: 0;
    padding: 9px;
  }
  .heading-actions .btn svg {
    width: 16px;
    height: 16px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
  }
  .stat-card {
    padding: 15px;
    min-height: 132px;
  }
  .stat-spark {
    width: 60px;
  }
  .activity-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-grid {
    gap: 18px;
    margin-bottom: 18px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .card-head {
    padding: 18px;
  }
  .card-body {
    padding: 0 18px 18px;
  }
  .chart-legend {
    font-size: 9px;
    gap: 8px;
  }
  .chart-foot {
    padding: 13px 18px;
    gap: 13px;
    font-size: 9px;
  }
  .chart-foot strong {
    font-size: 11px;
  }
  .chart-foot .arrow-label {
    display: none;
  }
  .distribution {
    padding: 0 18px 18px;
    gap: 17px;
  }
  .filter-bar {
    padding: 13px;
    gap: 8px;
  }
  .filter-bar .input-search {
    width: 100%;
    min-width: 0;
    margin: 0;
  }
  .filter-bar select {
    flex: 1;
    min-width: 100px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-aside {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding: 20px 0 0;
  }
  .detail-aside .btn {
    width: auto;
    margin-right: 5px;
  }
  .modal-head,
  .modal-body {
    padding: 21px;
  }
  .modal-footer {
    padding: 16px 21px;
  }
  .field-grid {
    gap: 13px;
    grid-template-columns: 1fr;
  }
  .detail-data {
    gap: 17px;
  }
  .footer {
    font-size: 9px;
  }
  .footer .footer-right {
    display: none;
  }
  .form-section {
    padding: 21px;
  }
  .form-actions {
    padding: 16px 21px;
  }
  .demo-banner {
    font-size: 10px;
    line-height: 1.6;
    align-items: flex-start;
  }
  .demo-banner .badge {
    display: none;
  }
  dialog {
    max-height: 92vh;
  }
  .notice {
    font-size: 10px;
  }
}
.community-list { margin-top: 22px; }
.discord-button { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 9px 14px; background: #248046; color: #fff; border-radius: 4px; font-size: 12px; }
.channel-overrides input[data-name] { min-width: 150px; }
.channel-overrides input[data-emoji] { width: 90px; }
#format-result .notice { margin: 16px; }
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
