/* Botrich admin theme. Loaded after style.css and overrides it.
   Colours come from the Botrich logo. */
:root {
  --bt-bg: #f4f5fa;
  --bt-surface: #ffffff;
  --bt-ink: #171a2e;
  --bt-mute: #656b86;
  --bt-line: #e0e3ee;
  --bt-soft: #ecedf7;
  --bt-accent: #4a3fd0;
  --bt-accent-ink: #ffffff;
  --bt-ok: #187a52;
  --bt-ok-bg: #dff3ea;
  --bt-warn: #8a5a00;
  --bt-warn-bg: #fbefd2;
  --bt-bad: #a1261d;
  --bt-bad-bg: #f8dedb;
  --bt-radius: 10px;
  --bt-side-w: 232px;
  --bt-font: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC",
    system-ui, sans-serif;
  --bt-mono: ui-monospace, "SF Mono", Consolas, Menlo, monospace;
}

body,
button,
input,
select,
textarea {
  font-family: var(--bt-font) !important;
}
body {
  background: var(--bt-bg);
  color: var(--bt-ink);
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Shell ---------- */
.bt-shell.wrapper {
  background: var(--bt-bg);
}
.bt-shell .body-content {
  overflow: visible;
  align-items: stretch;
  min-height: 100vh;
}
.bt-side {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--bt-side-w);
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: var(--bt-surface);
  border-right: 1px solid var(--bt-line);
  padding: 18px 12px;
  overflow-y: auto;
}
.bt-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 10px 14px;
}
.bt-brand img {
  display: block;
}
.bt-group-name {
  font-size: 11.5px;
  color: var(--bt-mute);
  letter-spacing: 0.08em;
  padding: 14px 10px 4px;
}
.bt-item {
  display: block;
  padding: 7px 10px;
  margin-bottom: 2px;
  border-radius: var(--bt-radius);
  color: var(--bt-ink);
  font-size: 14px;
  text-decoration: none;
}
.bt-item:hover {
  background: var(--bt-soft);
  color: var(--bt-ink);
}
.bt-item.is-on,
.bt-item.is-on:hover {
  background: var(--bt-ink);
  color: var(--bt-bg);
  font-weight: 600;
}
.bt-shade {
  display: none;
}
.bt-shell .body-content .page__content {
  padding: 0 28px 0 calc(var(--bt-side-w) + 28px);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.bt-shell .body-content .page__content header.bt-top {
  position: static;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  margin: 0 -28px;
  padding: 0 28px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  border-bottom: 1px solid var(--bt-line);
}
.bt-menu-btn {
  display: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: var(--bt-ink);
  padding: 4px 8px;
}
.bt-crumb {
  color: var(--bt-mute);
  font-size: 13px;
}
.bt-crumb b {
  color: var(--bt-ink);
  font-weight: 600;
}
.bt-who {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.bt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  border-bottom: 1px solid var(--bt-line);
  margin-top: 18px;
}
.bt-tab {
  padding: 8px 0;
  color: var(--bt-mute);
  font-weight: 500;
  text-decoration: none;
}
.bt-tab:hover {
  color: var(--bt-ink);
}
.bt-tab.is-on {
  color: var(--bt-ink);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--bt-accent);
}
.bt-shell .body-content .page__content .body__panel {
  padding: 22px 0 40px;
  min-height: 0;
  flex: 1;
}
.bt-shell .body-content .page__content footer {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  border-top: 1px solid var(--bt-line);
  padding: 14px 0;
  font-size: 12.5px;
  color: var(--bt-mute);
}

@media (max-width: 991px) {
  .bt-side {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .bt-menu-open .bt-side {
    transform: none;
  }
  .bt-menu-open .bt-shade {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 39;
    background: rgba(23, 26, 46, 0.4);
  }
  .bt-menu-btn {
    display: block;
  }
  .bt-shell .body-content .page__content {
    padding: 0 16px;
  }
  .bt-shell .body-content .page__content header.bt-top {
    margin: 0 -16px;
    padding: 0 16px;
  }
  .bt-shell .body-content .page__content .body__panel {
    padding: 18px 0 32px;
  }
}

/* ---------- Buttons ---------- */
.bt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--bt-ink);
  border-radius: var(--bt-radius);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  background: transparent;
  color: var(--bt-ink);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.bt-btn:hover {
  background: var(--bt-soft);
  color: var(--bt-ink);
}
.bt-btn-pri,
.bt-btn-pri:hover {
  background: var(--bt-accent);
  border-color: var(--bt-accent);
  color: var(--bt-accent-ink);
}
.bt-btn-pri:hover {
  filter: brightness(1.08);
}
.bt-btn-sm {
  padding: 4px 10px;
  font-size: 12.5px;
}
.bt-btn-lg {
  padding: 12px 34px;
  font-size: 16px;
}
.bt-btn-danger {
  border-color: var(--bt-bad);
  color: var(--bt-bad);
}
button.bt-btn:disabled {
  background: var(--bt-soft);
  border-color: var(--bt-line);
  color: var(--bt-mute);
  padding: 7px 14px;
  border-radius: var(--bt-radius);
  opacity: 1;
}
button.bt-btn-sm:disabled {
  padding: 4px 10px;
}
button.bt-btn-lg:disabled {
  padding: 12px 34px;
}

/* ---------- Page heading ---------- */
.bdy-top-heading-area {
  border: 0;
  padding: 0 0 14px;
  align-items: flex-end;
  gap: 10px;
}
.bdy-top-heading-area:before,
.bdy-top-heading-area:after {
  display: none;
}
.bdy-top-heading-area h2,
.bdy-top-heading-area h4,
.bdy-top-heading-area .heading,
.body__panel > .heading {
  font-size: 24px;
  font-weight: 700;
  color: var(--bt-ink);
  line-height: 1.25;
  margin-top: 0;
}
.bdy-top-heading-area .hdn-add-button {
  background: var(--bt-accent);
  color: var(--bt-accent-ink);
  border-radius: var(--bt-radius);
  padding: 9px 16px;
  margin-top: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  transition: none;
}
.bdy-top-heading-area .hdn-add-button:hover {
  box-shadow: none;
  transform: none;
  filter: brightness(1.08);
}
.bdy-top-heading-area .hdn-add-button img {
  height: 12px;
  margin-right: 8px;
}
.hdnsearchprt {
  margin-top: 0;
}
.hdnsearchprt input[type="text"] {
  box-shadow: none;
  border: 1px solid var(--bt-line);
  border-radius: var(--bt-radius);
  background: var(--bt-surface);
  padding: 7px 36px 7px 12px;
  font-weight: 400;
  font-size: 13px;
  max-width: 100%;
}
.hdnsearchprt:after {
  top: 6px;
  right: 12px;
  font-size: 14px;
}

/* ---------- Tables ---------- */
.bdy-data-table {
  margin-top: 4px;
}
.datatable {
  background: var(--bt-surface);
  border: 1px solid var(--bt-line);
  border-radius: var(--bt-radius);
  /* No overflow here: the row menus open over the edge of the table. */
}
.datatable table {
  border-spacing: 0;
  border-collapse: separate;
  font-size: 13.5px;
}
.datatable table tr {
  box-shadow: none;
  border-radius: 0;
  background: transparent;
  transition: none;
}
.datatable table tr td,
.datatable table tr th,
.bdy-data-table .datatable table tr td,
.bdy-data-table .datatable table tr th {
  border-radius: 0 !important;
  border-bottom: 1px solid var(--bt-line);
  padding: 11px 14px;
  text-align: left;
  vertical-align: middle;
}
.datatable table tr th,
.bdy-data-table .datatable table tr th {
  background: var(--bt-soft);
  color: var(--bt-mute);
  font-size: 12px;
  font-weight: 600;
  padding: 9px 14px;
}
.datatable table tr td,
.bdy-data-table .datatable table tr td {
  color: var(--bt-ink);
  font-size: 13.5px;
  font-weight: 400;
  word-break: normal;
  overflow-wrap: anywhere;
}
.datatable table tbody tr:last-child td {
  border-bottom: 0;
}
.datatable table tr td:last-child,
.datatable table tr th:last-child,
.bdy-data-table .datatable table tr td:last-child,
.bdy-data-table .datatable table tr th:last-child {
  text-align: right;
}
.datatable table tbody tr:hover {
  background-color: #f7f7fc !important;
  cursor: default;
}
.datatable table tbody tr:hover td,
.datatable table tbody tr:hover td a {
  color: var(--bt-ink);
}
.datatable table tbody tr:hover td span {
  color: inherit;
}
.datatable table tr td a {
  color: var(--bt-ink);
}
.bdy-data-table .datatable table tr td .small-td-one,
.bdy-data-table .datatable table tr td .small-td-two {
  width: auto;
  max-width: 320px;
  margin: 0;
}
.datatable td.catImg img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Row menu */
.three-dots {
  font-size: 18px;
  color: var(--bt-mute);
  padding: 0 6px;
  text-decoration: none;
}
.more-action {
  border: 1px solid var(--bt-line);
  border-radius: var(--bt-radius);
  box-shadow: 0 8px 24px rgba(23, 26, 46, 0.12);
}
.viewcode .more-action li a {
  color: var(--bt-ink);
}
.viewcode .more-action li a:hover {
  background: var(--bt-soft);
}

/* Status pills used across lists */
.bt-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
  background: var(--bt-soft);
  color: var(--bt-mute);
}
.bt-pill-ok {
  background: var(--bt-ok-bg);
  color: var(--bt-ok);
}
.bt-pill-warn {
  background: var(--bt-warn-bg);
  color: var(--bt-warn);
}
.bt-pill-bad {
  background: var(--bt-bad-bg);
  color: var(--bt-bad);
}
.bt-pill-accent {
  background: var(--bt-accent);
  color: var(--bt-accent-ink);
}
.bt-mono {
  font-family: var(--bt-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.bt-mute {
  color: var(--bt-mute);
}

/* ---------- Pagination ---------- */
.pagination li a {
  width: auto;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--bt-line);
  border-radius: 8px;
  background: var(--bt-surface);
  color: var(--bt-ink);
  font-size: 13px;
}
.pagination li.active a {
  background: var(--bt-ink);
  border-color: var(--bt-ink);
  color: var(--bt-bg);
}

/* ---------- Panels ---------- */
.bt-shell .body-content .page__content .body__panel .panel,
.bt-panel {
  background: var(--bt-surface);
  border: 1px solid var(--bt-line);
  border-radius: var(--bt-radius);
  box-shadow: none;
}
.bt-panel {
  padding: 16px 18px;
}
.bt-panel h6 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--bt-ink);
}
.bt-panel h6 small {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--bt-mute);
}
.bt-field label {
  display: block;
  font-size: 12px;
  color: var(--bt-mute);
  margin: 10px 0 4px;
}
.bt-input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--bt-line);
  border-radius: var(--bt-radius);
  background: var(--bt-bg);
  padding: 7px 10px;
  font-size: 13px;
  color: var(--bt-ink);
  box-sizing: border-box;
}

/* ---------- Small helpers ---------- */
.bt-sub {
  margin: 2px 0 0;
  color: var(--bt-mute);
  font-size: 13px;
}
.bt-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.bt-section {
  margin: 26px 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--bt-ink);
}
.bt-notice {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  margin: 0 0 14px;
  border-radius: var(--bt-radius);
  font-weight: 600;
  font-size: 13.5px;
}
.bt-notice.is-ok {
  background: var(--bt-ok-bg);
  color: var(--bt-ok);
}
.bt-notice.is-bad {
  background: var(--bt-bad-bg);
  color: var(--bt-bad);
}
.bt-notice button {
  background: transparent;
  color: inherit;
  font-size: 16px;
  line-height: 1;
}
.bt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.bt-chip {
  border: 1px solid var(--bt-line);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12.5px;
  background: var(--bt-surface);
  color: var(--bt-ink);
}
.bt-chip.is-on {
  border-color: var(--bt-ink);
  background: var(--bt-ink);
  color: var(--bt-bg);
}
.bt-chips .bt-input {
  width: 260px;
  max-width: 100%;
  background: var(--bt-surface);
}
.bt-chips .bt-count {
  margin-left: auto;
  color: var(--bt-mute);
  font-size: 12.5px;
}

/* ---------- Live draw console ---------- */
.bt-console {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 18px;
  align-items: start;
}
.bt-panel.is-alert {
  border-color: #e8b04a;
}
.bt-pool {
  display: flex;
  gap: 26px;
  margin-bottom: 14px;
}
.bt-pool b {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.bt-pool span {
  font-size: 12.5px;
  color: var(--bt-mute);
}
.bt-prizes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.bt-prize {
  text-align: left;
  background: var(--bt-surface);
  border: 1px solid var(--bt-line);
  border-radius: var(--bt-radius);
  padding: 10px 12px;
  color: var(--bt-ink);
}
.bt-prize.is-on {
  border: 2px solid var(--bt-accent);
  padding: 9px 11px;
}
.bt-prize.is-done {
  opacity: 0.55;
}
.bt-prize b {
  display: block;
  font-size: 15px;
}
.bt-prize span {
  display: block;
  font-size: 12.5px;
  color: var(--bt-mute);
}
.bt-prize .bt-prize-name {
  color: var(--bt-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bt-prize i {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--bt-soft);
  margin-top: 8px;
  overflow: hidden;
}
.bt-prize i u {
  display: block;
  height: 100%;
  background: var(--bt-accent);
}
.bt-go {
  display: flex;
  gap: 12px;
  align-items: center;
}
.bt-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--bt-line);
  border-radius: var(--bt-radius);
  overflow: hidden;
}
.bt-stepper button,
.bt-stepper span {
  min-width: 44px;
  padding: 10px 0;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  background: var(--bt-surface);
  color: var(--bt-ink);
}
.bt-stepper button:disabled {
  background: var(--bt-surface);
  color: var(--bt-line);
  padding: 10px 0;
  border-radius: 0;
  opacity: 1;
}
.bt-stepper span {
  border-left: 1px solid var(--bt-line);
  border-right: 1px solid var(--bt-line);
  font-variant-numeric: tabular-nums;
}
.bt-lock {
  margin: 10px 0 0;
  font-size: 12.5px;
}
.bt-pend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--bt-line);
}
.bt-pend-who {
  flex: 1;
  min-width: 180px;
}
.bt-pend-who b {
  display: block;
  font-size: 16px;
}
.bt-pend-who span {
  display: block;
  font-size: 12.5px;
  color: var(--bt-mute);
  overflow-wrap: anywhere;
}
.bt-pend-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* ---------- Attendee list with the add drawer ---------- */
.bt-with-drawer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}
.bt-drawer {
  background: var(--bt-surface);
  border: 1px solid var(--bt-ink);
  border-radius: var(--bt-radius);
  padding: 16px;
}
.bt-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.bt-drawer-head b {
  font-size: 15px;
}
.bt-found {
  border: 1px dashed var(--bt-line);
  border-radius: var(--bt-radius);
  padding: 10px;
  margin-top: 10px;
  font-size: 13px;
}
.bt-found span {
  display: block;
  color: var(--bt-mute);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}
.bt-found .bt-btn {
  margin-top: 8px;
}
.bt-or {
  border-top: 1px solid var(--bt-line);
  margin-top: 14px;
  padding-top: 10px;
  font-size: 12.5px;
  color: var(--bt-mute);
}
@media (max-width: 1100px) {
  .bt-with-drawer {
    grid-template-columns: minmax(0, 1fr);
  }
  .bt-drawer {
    order: -1;
  }
}
.bt-bad-text {
  color: var(--bt-bad) !important;
}

/* Official events list */
.bt-ev {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bt-ev img {
  flex: none;
}
.bt-ev b {
  font-weight: 600;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bt-row-acts {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}
.bt-row-acts .viewcode {
  position: relative;
}
.datatable table thead tr:first-child th:first-child {
  border-top-left-radius: var(--bt-radius) !important;
}
.datatable table thead tr:first-child th:last-child {
  border-top-right-radius: var(--bt-radius) !important;
}
.datatable table tr td.catImg img,
.bdy-data-table .datatable table tr td.catImg img {
  width: 44px !important;
  height: 44px !important;
  max-width: none;
  object-fit: cover;
  border-radius: 8px;
}
.datatable table tr td.bt-mono,
.datatable table tr td.bt-nowrap {
  white-space: nowrap;
  overflow-wrap: normal;
}
.bt-ev b {
  max-width: 300px;
}
/* A cell that takes the spare width and shortens its text to fit. */
.datatable table tr td.bt-grow {
  width: 100%;
  max-width: 0;
}
.bt-ev-text {
  flex: 1;
  min-width: 0;
}
.bt-ev-text b,
.bt-ev-text span {
  display: block;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.three-dots {
  display: inline-block;
  white-space: nowrap;
  overflow-wrap: normal;
  line-height: 1;
}
.bt-row-acts .bt-btn {
  flex: none;
}

/* style.css turns table cells into inline blocks on narrow screens. Keep real
   tables and let them scroll sideways instead. */
@media (max-width: 1024px) {
  .datatable {
    overflow-x: auto;
  }
  .datatable table tr td {
    display: table-cell;
    padding: 11px 14px;
  }
  .datatable table tr td::before {
    content: none;
  }
  .datatable table tr td:last-child {
    text-align: right !important;
  }
  .datatable table tr td.bt-grow {
    width: auto;
    max-width: none;
    min-width: 220px;
  }
}

/* style.css gives every submit button a large blue look. */
button.bt-btn[type="submit"] {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  background: transparent;
  color: var(--bt-ink);
  padding: 7px 14px;
  margin-top: 0;
  border-radius: var(--bt-radius);
  box-shadow: none;
  transform: none;
}
button.bt-btn-sm[type="submit"] {
  padding: 4px 10px;
  font-size: 12.5px;
}
button.bt-btn-pri[type="submit"] {
  background: var(--bt-accent);
  color: var(--bt-accent-ink);
}
@media (max-width: 1024px) {
  .datatable table tr td,
  .datatable table tr th {
    white-space: nowrap;
    overflow-wrap: normal;
  }
}

/* The stop button of the live draw */
.bt-btn-stop,
.bt-btn-stop:hover {
  background: var(--bt-bad);
  border-color: var(--bt-bad);
  color: #fff;
  min-width: 140px;
}

/* ---------- Overview (dashboard) ---------- */
.bt-dash-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.bt-dash-head .heading {
  margin-bottom: 0;
}
.bt-dash-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.bt-dash-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 104px;
}
.bt-dash-card b {
  font-size: 28px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.bt-dash-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.bt-dash-half {
  min-width: 0;
}
.bt-dash-half h6 small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 0 10px;
  font-weight: 500;
  color: var(--bt-mute);
}
.bt-dash-empty {
  margin: 8px 0;
}
.bt-dash-list,
.bt-dash-events,
.bt-dash-feed {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bt-dash-list li > a,
.bt-dash-list li > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--bt-line);
  color: var(--bt-ink);
  text-decoration: none;
}
.bt-dash-list li:first-child > * {
  border-top: 0;
}
.bt-dash-list li > a:hover {
  color: var(--bt-accent);
}
.bt-dash-list small {
  display: block;
  font-size: 12px;
}
.bt-dash-list li.is-zero {
  color: var(--bt-mute);
}
.bt-dash-list li.is-zero > a {
  color: var(--bt-mute);
}
.bt-dash-badge {
  min-width: 28px;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--bt-soft);
  color: var(--bt-mute);
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.bt-dash-badge.is-on {
  background: var(--bt-bad-bg);
  color: var(--bt-bad);
}
.bt-dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 150px;
  padding-top: 6px;
  border-bottom: 1px solid var(--bt-line);
}
.bt-dash-bar {
  flex: 1;
  display: flex;
  flex-direction: column-reverse;
  height: 100%;
  min-width: 0;
}
.bt-dash-bar span {
  display: block;
  width: 100%;
}
.bt-dash-bar .is-email,
.bt-dash-dot.is-email {
  background: var(--bt-accent);
}
.bt-dash-bar .is-wechat,
.bt-dash-dot.is-wechat {
  background: var(--bt-ok);
}
.bt-dash-bar span:last-child {
  border-radius: 3px 3px 0 0;
}
.bt-dash-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
}
.bt-dash-axis {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 4px;
}
.bt-dash-events li {
  padding: 9px 0;
  border-top: 1px solid var(--bt-line);
}
.bt-dash-events li:first-child {
  border-top: 0;
}
.bt-dash-events a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--bt-ink);
  text-decoration: none;
}
.bt-dash-events a b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bt-dash-events a span {
  flex-shrink: 0;
}
.bt-dash-progress {
  height: 6px;
  margin: 7px 0 3px;
  border-radius: 999px;
  background: var(--bt-soft);
  overflow: hidden;
}
.bt-dash-progress span {
  display: block;
  height: 100%;
  background: var(--bt-accent);
}
.bt-dash-feed li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--bt-line);
}
.bt-dash-feed li:first-child {
  border-top: 0;
}
.bt-dash-kind {
  grid-row: span 2;
  align-self: start;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--bt-soft);
  font-size: 12px;
  white-space: nowrap;
}
.bt-dash-title {
  color: var(--bt-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bt-dash-skel {
  min-height: 104px;
  background: linear-gradient(90deg, var(--bt-soft), var(--bt-surface), var(--bt-soft));
  background-size: 200% 100%;
  animation: bt-dash-shimmer 1.2s linear infinite;
}
.bt-dash-skel.is-tall {
  min-height: 240px;
}
@keyframes bt-dash-shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (max-width: 1100px) {
  .bt-dash-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .bt-dash-cards,
  .bt-dash-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Login ---------- */
.bt-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  box-sizing: border-box;
  background: var(--bt-bg);
}
.bt-login * {
  box-sizing: border-box;
}
.bt-login-card {
  width: 100%;
  max-width: 1000px;
  min-height: 540px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bt-surface);
  box-shadow: 0 30px 70px rgba(20, 16, 70, 0.16);
}
.bt-login-side {
  display: flex;
  align-items: center;
  padding: 44px;
  background: linear-gradient(160deg, rgba(74, 63, 208, 0.88), rgba(28, 22, 80, 0.92)),
    url("../images/login-city.webp") center / cover no-repeat;
}
.bt-login-side p {
  margin: 0;
  color: #fff;
  font-size: 34px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.bt-login-body {
  min-width: 0;
  padding: 46px 52px 40px;
  align-self: center;
}
.bt-login-logo {
  display: block;
  width: auto;
  height: 34px;
  margin: 0 0 30px;
}
.bt-login-body h1 {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--bt-ink);
}
.bt-login-field label {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--bt-ink);
}
.bt-login-field input {
  display: block;
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #8a8fa8;
  border-radius: var(--bt-radius);
  background: var(--bt-surface);
  color: var(--bt-ink);
  font-size: 16px;
}
.bt-login-field input[aria-invalid="true"] {
  border-color: var(--bt-bad);
}
.bt-login-field input:focus {
  border-color: var(--bt-accent);
  outline: 2px solid var(--bt-accent);
  outline-offset: 0;
}
.bt-login-password {
  position: relative;
}
.bt-login-password input {
  padding-right: 52px;
}
.bt-login-password button {
  position: absolute;
  top: 0;
  right: 0;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: var(--bt-radius);
  background: transparent;
  color: var(--bt-mute);
  font-size: 18px;
  cursor: pointer;
}
.bt-login-error {
  min-height: 20px;
  margin: 2px 0 6px;
  font-size: 13px;
  line-height: 20px;
  color: var(--bt-bad);
}
.bt-login-remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  font-size: 14px;
  color: var(--bt-ink);
  cursor: pointer;
}
.bt-login-remember input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--bt-accent);
}
.bt-login form button.bt-login-submit {
  width: 100%;
  height: 46px;
  margin-top: 4px;
  border: 1px solid var(--bt-accent);
  border-radius: 999px;
  background: var(--bt-accent);
  color: var(--bt-accent-ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
}
.bt-login form button.bt-login-submit:hover {
  background: var(--bt-accent);
  box-shadow: none;
  transform: none;
  filter: brightness(1.08);
}
.bt-login form button.bt-login-submit:disabled {
  opacity: 0.65;
  filter: none;
  cursor: default;
}
.bt-login button:focus-visible,
.bt-login-remember input:focus-visible {
  outline: 2px solid var(--bt-accent);
  outline-offset: 2px;
}
@media (max-width: 767px) {
  .bt-login {
    align-items: stretch;
    padding: 0;
    background: var(--bt-surface);
  }
  .bt-login-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .bt-login-side {
    padding: 26px 20px;
  }
  .bt-login-side p {
    font-size: 22px;
  }
  .bt-login-body {
    align-self: start;
    padding: 26px 20px 28px;
  }
  .bt-login-logo {
    height: 28px;
    margin-bottom: 22px;
  }
  .bt-login-body h1 {
    font-size: 22px;
    margin-bottom: 14px;
  }
}

/* ---------- Accounts, roles and my events ---------- */
.bt-cards {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.bt-cards > li {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 14px 16px;
}
.bt-card-main {
  flex: 1 1 240px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.bt-card-main > b,
.bt-card-main > span {
  margin-right: 8px;
}
.bt-form {
  max-width: 640px;
  padding: 18px;
  margin-top: 12px;
}
.bt-form .bt-form-field {
  display: block;
  min-width: 0;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}
.bt-form .bt-form-field > span,
.bt-form .bt-form-field > legend {
  display: block;
  width: auto;
  margin: 0 0 5px;
  padding: 0;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--bt-ink);
}
.bt-form .bt-form-field small {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--bt-mute);
}
.bt-form .bt-form-field .bt-input {
  height: 44px;
  font-size: 16px;
}
.bt-form .bt-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  font-size: 14px;
  color: var(--bt-ink);
  cursor: pointer;
}
.bt-form .bt-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--bt-accent);
}
.bt-form button[type="submit"].bt-btn {
  margin-top: 0;
  letter-spacing: 0;
  text-transform: none;
}
@media (max-width: 767px) {
  .bt-cards .bt-btn,
  .bt-form .bt-btn {
    min-height: 44px;
  }
}
/* Let the draw panels shrink on narrow phones */
.bt-console > .bt-panel {
  min-width: 0;
}
.bt-form .bt-acts {
  margin-top: 8px;
}
