@import url("/static/theme.css");
* {
  box-sizing: border-box;
}
html {
  color-scheme: dark;
  scroll-behavior: smooth;
}
html[data-theme="light"] {
  color-scheme: light;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}
button svg {
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.1px;
  line-height: 1.2;
  font-weight: 650;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
  font-weight: 620;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
p {
  line-height: 1.6;
}
small,
.muted {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  left: 10px;
  top: -100px;
  z-index: 100;
  background: var(--red);
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
}
.brand {
  font-size: 27px;
  letter-spacing: -1.5px;
  font-weight: 820;
  line-height: 1;
  font-style: italic;
  display: inline-flex;
  align-items: center;
}
.brand > span {
  font-weight: 450;
}
.brand > i {
  display: inline-block;
  width: 6px;
  height: 22px;
  margin-left: 9px;
  transform: skew(-18deg);
  background: var(--red);
  box-shadow: 9px 0 0 var(--red);
}
.sidebar {
  width: 225px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 36px 21px 23px;
  z-index: 30;
}
.brand-block {
  padding: 0 10px 37px;
}
.brand-block .eyebrow {
  display: block;
  font-size: 8px;
  letter-spacing: 3px;
  margin-top: 12px;
  color: var(--muted);
}
.nav-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--faint);
  padding: 0 13px;
  margin: 8px 0 13px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 13px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 520;
  transition:
    background 0.16s,
    color 0.16s;
}
.nav a:hover {
  color: var(--text);
  background: var(--raised);
}
.nav a.active {
  color: var(--red);
  background: var(--red-soft);
}
.nav a.active::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 100%;
  background: var(--red);
  margin-left: auto;
}
.nav .nav-count {
  margin-left: auto;
  min-width: 18px;
  font-size: 10px;
  border-radius: 4px;
  background: var(--red);
  color: white;
  text-align: center;
  padding: 1px 4px;
}
.nav .nav-count:empty {
  display: none;
}
.sidebar-bottom {
  margin-top: auto;
}
.club-location {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px 12px;
  display: flex;
  gap: 11px;
  align-items: center;
}
.club-location svg {
  color: var(--red);
}
.club-location strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
}
.club-location small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
.sidebar-footer {
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.3px;
  padding: 20px 2px 0;
}
.main {
  margin-left: 225px;
}
.topbar {
  height: 83px;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.breadcrumbs {
  display: flex;
  gap: 13px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.breadcrumbs svg {
  width: 12px;
  color: var(--faint);
}
.breadcrumbs strong {
  color: var(--text);
  font-weight: 500;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.header-date {
  font-size: 12px;
  color: var(--muted);
  margin-right: 6px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  flex-shrink: 0;
}
.icon-btn:hover {
  color: var(--text);
  background: var(--raised);
}
.profile-button {
  border: 0;
  border-left: 1px solid var(--line);
  padding: 0 0 0 18px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: transparent;
  text-align: left;
  color: var(--text);
}
.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--avatar);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}
.profile-button strong {
  font-size: 12px;
  display: block;
  font-weight: 550;
}
.profile-button small {
  font-size: 10px;
  display: block;
  margin-top: 1px;
}
.page {
  max-width: 1536px;
  margin: auto;
  padding: 33px 38px 40px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}
.section-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
.section-head .eyebrow {
  margin-bottom: 7px;
}
.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 41px;
  padding: 10px 16px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition:
    filter 0.15s,
    background 0.15s;
}
.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
}
.btn-secondary {
  border-color: var(--line-strong);
  color: var(--text);
  background: var(--raised);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--hover);
}
.btn-ghost {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}
.btn-ghost:hover {
  color: var(--text);
  background: var(--raised);
}
.btn-danger {
  background: var(--red-soft);
  color: var(--red);
  border-color: var(--red-line);
}
.btn-small {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 11px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 5px;
  background: var(--raised);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 4px 8px;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 550;
}
.badge.green,
.badge.success {
  color: var(--green);
  background: var(--green-soft);
  border-color: transparent;
}
.badge.red,
.badge.error {
  color: var(--red);
  background: var(--red-soft);
  border-color: transparent;
}
.badge.amber,
.badge.warning {
  color: var(--amber);
  background: var(--amber-soft);
  border-color: transparent;
}
.dot {
  width: 5px;
  height: 5px;
  background: currentColor;
  display: inline-block;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 19px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 9px;
  margin-bottom: 23px;
}
.status-info {
  display: flex;
  gap: 13px;
  align-items: center;
}
.sync-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--green);
  background: var(--green-soft);
}
.sync-icon.off {
  color: var(--muted);
  background: var(--raised);
}
.status-info strong {
  font-size: 12px;
  font-weight: 580;
  display: block;
}
.status-info small {
  display: block;
  font-size: 11px;
  margin-top: 3px;
}
.switch-row {
  display: flex;
  align-items: center;
  gap: 11px;
}
.switch-row > span {
  font-size: 11px;
  color: var(--muted);
}
.switch {
  width: 39px;
  height: 22px;
  padding: 3px;
  border: 0;
  background: var(--hover);
  border-radius: 20px;
  transition: background 0.2s;
}
.switch::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px #0002;
  transition: transform 0.2s;
}
.switch[aria-checked="true"] {
  background: var(--red);
}
.switch[aria-checked="true"]::after {
  transform: translateX(17px);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 29px;
}
.stat-card {
  padding: 19px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  min-width: 0;
}
.stat-card .stat-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}
.stat-card .stat-top svg {
  color: var(--faint);
  width: 17px;
}
.stat-card .stat-value {
  font-size: 29px;
  letter-spacing: -1px;
  margin-top: 13px;
  font-weight: 620;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.stat-card small {
  font-size: 10px;
  display: block;
  margin-top: 9px;
}
.stat-card .accent {
  color: var(--green);
}
.stat-card > strong {
  font-size: 27px;
  display: block;
  margin-top: 9px;
}
.subheading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 16px;
}
.subheading h2 {
  font-size: 17px;
}
.subheading .muted {
  font-size: 11px;
}
.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 10px;
}
.console-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.console-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
}
.console-card.running {
  border-color: var(--red-line);
}
.console-card-head {
  padding: 21px 23px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.console-title {
  display: flex;
  align-items: center;
  gap: 11px;
}
.console-number {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px 7px;
}
.console-title h3 {
  font-size: 15px;
}
.console-title p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.console-hero {
  height: 191px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 10px 23px;
}
.console-hero::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 150px;
  right: -5px;
  top: 24px;
  background: radial-gradient(ellipse, var(--console-glow), transparent 69%);
  transform: rotate(-20deg);
}
.console-hero::after {
  content: "PLAY HAS NO LIMITS";
  font-size: 8px;
  letter-spacing: 4px;
  color: var(--faint);
  position: absolute;
  bottom: 15px;
  right: 26px;
  opacity: 0.5;
}
.console-hero img {
  width: 56%;
  max-width: 280px;
  height: 197px;
  object-fit: contain;
  margin-right: -20px;
  position: relative;
  z-index: 1;
}
.console-session {
  z-index: 2;
  max-width: 60%;
  flex-shrink: 0;
}
.console-session .eyebrow {
  font-size: 8px;
  letter-spacing: 1.8px;
  margin-bottom: 12px;
}
.console-time {
  font-size: 34px;
  letter-spacing: -1.5px;
  line-height: 1.1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.console-time.free {
  font-size: 41px;
}
.console-session p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 9px;
}
.console-session .session-note {
  font-size: 10px;
  color: var(--red);
  margin-top: 8px;
}
.console-details {
  margin: 0 23px 18px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 20px;
}
.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.detail-item small {
  font-size: 9px;
}
.detail-item span {
  font-size: 11px;
}
.console-status-refresh {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin: -6px 23px 14px;
}
.console-status-refresh small {
  flex: 1;
  min-width: 120px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}
.telegram-bot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
  margin-block: 18px;
}
.telegram-bot-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.telegram-bot-card p,
.telegram-identity {
  overflow-wrap: anywhere;
}
.telegram-link {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 13px;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  font-size: 12px;
}
.telegram-link p {
  margin: 0;
}
.telegram-link .btn {
  justify-self: start;
  max-width: 100%;
}
.console-actions {
  display: flex;
  gap: 8px;
  padding: 0 23px 21px;
}
.console-actions .btn-primary,
.console-actions .btn-secondary {
  flex: 1;
}
.console-actions .icon-btn {
  height: 41px;
}
.card-note {
  padding: 10px 23px;
  background: var(--raised);
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 37px;
}
.card-note.error {
  color: var(--amber);
  background: var(--amber-soft);
}
.dashboard-lower {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 20px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  min-width: 0;
  margin-bottom: 20px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}
.panel-head h2 {
  font-size: 15px;
}
.panel-head .btn {
  font-size: 10px;
  padding: 5px 9px;
  min-height: 28px;
}
.activity-list {
  display: flex;
  flex-direction: column;
}
.activity-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.activity-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.activity-symbol {
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--raised);
  border-radius: 7px;
  width: 31px;
  height: 31px;
  flex-shrink: 0;
}
.activity-row strong {
  font-size: 11px;
  font-weight: 550;
  display: block;
}
.activity-row small {
  font-size: 10px;
  display: block;
  margin-top: 4px;
}
.activity-row time {
  font-size: 10px;
  color: var(--faint);
  margin-left: auto;
  white-space: nowrap;
}
.integration-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.integration-row {
  display: flex;
  gap: 11px;
  align-items: center;
}
.integration-row > svg {
  color: var(--muted);
  width: 18px;
}
.integration-row strong {
  font-size: 11px;
  font-weight: 550;
  display: block;
}
.integration-row small {
  font-size: 9px;
  display: block;
  margin-top: 2px;
}
.integration-row .badge {
  margin-left: auto;
  font-size: 9px;
}
.panel-bottom-note {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 10px;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--faint);
  margin-top: 21px;
}
.page-footer span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.span-2 {
  grid-column: 1/-1;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  min-width: 0;
}
.field > label,
.field > span {
  font-weight: 500;
  color: var(--muted);
}
.field small {
  font-size: 10px;
  line-height: 1.5;
}
.field input,
.field select,
.field textarea,
input[type="month"],
input[type="date"],
input[type="datetime-local"],
select {
  width: 100%;
  min-height: 43px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--input);
  padding: 10px 12px;
  color: var(--text);
  outline-offset: 1px;
  min-width: 0;
}
/* Reserve room for a consistent native-select indicator in both themes. */
.field select,
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23919199' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}
@media (forced-colors: active) {
  .field select,
  select {
    appearance: auto;
    background-image: none;
  }
}
.field textarea {
  min-height: 78px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--faint);
}
.field input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--red);
}
.field:has(input[type="checkbox"]) {
  flex-direction: row;
  align-items: center;
}
.field input:focus {
  border-color: var(--red);
}
.field input[readonly] {
  color: var(--muted);
}
.field .input-money {
  font-size: 24px;
}
.tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  padding: 4px;
  border-radius: 8px;
  background: var(--raised);
  width: fit-content;
  margin-bottom: 20px;
}
.tabs button,
.tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 5px;
  font-size: 12px;
}
.tabs button.active,
.tab.active {
  color: var(--text);
  background: var(--panel);
  box-shadow: 0 1px 3px #0002;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
.data-table th {
  font-weight: 500;
  color: var(--muted);
  font-size: 10px;
  background: var(--raised);
  padding: 12px 14px;
  white-space: nowrap;
}
.data-table td {
  padding: 14px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.data-table td .toolbar {
  flex-wrap: nowrap;
}
.data-table .btn {
  white-space: nowrap;
}
.data-table tr:hover td {
  background: var(--raised);
}
.empty-state {
  padding: 32px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.empty-state svg {
  margin-bottom: 12px;
  color: var(--faint);
}
.error-box {
  padding: 12px 14px;
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid var(--red-line);
  border-radius: 7px;
  margin-top: 15px;
  font-size: 12px;
  line-height: 1.6;
}
.warning-box,
.notice {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--raised);
  font-size: 12px;
  color: var(--muted);
  margin: 15px 0;
}
.quote-result,
.review-panel {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 19px;
  margin-top: 20px;
}
.quote-result .quote-value {
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 7px 0;
}
.quote-result dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  font-size: 12px;
}
.quote-result dt {
  color: var(--muted);
}
.quote-result dd {
  margin: 0;
  text-align: right;
}
.quote-result .muted {
  font-size: 11px;
}
.demo-controls {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 18px;
}
.demo-controls .toolbar {
  margin-top: 12px;
}
.demo-controls p {
  font-size: 11px;
  color: var(--muted);
}
dialog {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  padding: 0;
  border-radius: 15px;
  width: min(490px, calc(100% - 32px));
  max-height: calc(100dvh - 50px);
  box-shadow: 0 24px 100px #0008;
  overflow: auto;
}
dialog.modal-wide {
  width: min(740px, calc(100% - 32px));
}
dialog::backdrop {
  background: #050509ad;
  backdrop-filter: blur(5px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 21px 24px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 19px;
}
.modal-head .icon-btn {
  border: 0;
  width: 28px;
  height: 28px;
}
.modal-body {
  padding: 24px;
}
.modal-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: sticky;
  bottom: 0;
  background: var(--panel);
  z-index: 2;
}
.confirm-message {
  font-size: 13px;
  color: var(--muted);
}
.toasts {
  position: fixed;
  bottom: 24px;
  right: 25px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-width: min(420px, calc(100% - 32px));
}
.toast {
  background: var(--hover);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--green);
  box-shadow: 0 8px 35px #0003;
  padding: 13px 18px;
  border-radius: 7px;
  font-size: 12px;
  animation: toast-in 0.2s ease;
}
.toast-error {
  border-left-color: var(--red);
}
@keyframes toast-in {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.boot-screen {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 25px;
}
.boot-screen p {
  font-size: 12px;
  color: var(--muted);
}
.loader {
  width: 24px;
  height: 24px;
  border: 2px solid var(--line);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.login-screen {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.12fr 1fr;
}
.login-art {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #141416;
  color: #f2f2f3;
  overflow: hidden;
  position: relative;
  padding: 48px 55px;
}
.login-art::before {
  content: "";
  position: absolute;
  width: 760px;
  height: 760px;
  border: 1px solid #ed41442b;
  border-radius: 38%;
  transform: rotate(-28deg);
  top: 70px;
  left: -280px;
  box-shadow:
    0 0 0 60px #ef3f4307,
    0 0 0 61px #ef3f4318,
    0 0 0 120px #ef3f4304,
    0 0 0 121px #ef3f4318;
}
.login-art > div {
  z-index: 1;
}
.login-art h1 {
  font-size: clamp(39px, 4.1vw, 62px);
  font-weight: 550;
  line-height: 1.1;
  letter-spacing: -2.6px;
  max-width: 470px;
  margin-bottom: 24px;
}
.login-art h1 em {
  color: #ef4b50;
  font-style: normal;
}
.login-art p {
  max-width: 330px;
  color: #94949e;
  font-size: 13px;
}
.login-art .eyebrow {
  color: #73737e;
}
.login-art-footer {
  display: flex;
  gap: 25px;
  align-items: center;
  font-size: 10px;
  color: #777780;
}
.login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px 30px;
  position: relative;
}
.login-form {
  width: 100%;
  max-width: 330px;
}
.login-form h2 {
  font-size: 27px;
  letter-spacing: -1px;
  margin: 10px 0;
}
.login-form > p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 28px;
}
.login-form .field {
  margin-bottom: 18px;
}
.login-form .btn-primary {
  width: 100%;
  margin-top: 8px;
  min-height: 46px;
}
.login-theme {
  position: absolute;
  right: 26px;
  top: 26px;
}
.login-note {
  font-size: 10px;
  color: var(--faint);
  margin-top: 25px;
  display: flex;
  gap: 7px;
  align-items: flex-start;
}
.password-note {
  margin-bottom: 24px;
}
.mobile-nav {
  display: none;
}
.mobile-brand {
  display: none;
}
.skeleton {
  height: 180px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--panel), var(--raised), var(--panel));
  background-size: 200%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.chart {
  height: 190px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  margin-top: 20px;
}
.chart-bar {
  background: var(--red);
  border-radius: 3px 3px 0 0;
  flex: 1;
  min-height: 2px;
  opacity: 0.85;
}
.chart-bar:hover {
  opacity: 1;
}
.notification-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.notification-item.unread {
  border-left: 2px solid var(--red);
  padding-left: 15px;
}
.notification-item h3 {
  font-size: 13px;
}
.notification-item p {
  font-size: 12px;
  margin-top: 7px;
  color: var(--muted);
}
.pagination {
  display: flex;
  justify-content: center;
  padding-top: 20px;
}
.session-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.detail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.detail-list dt {
  color: var(--muted);
  font-size: 12px;
}
.detail-list dd {
  margin: 0;
  text-align: right;
  font-size: 12px;
}
.inline-code {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.connection-warning {
  padding: 11px 16px;
  border: 1px solid var(--red-line);
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red);
  margin-bottom: 20px;
  font-size: 12px;
}
.loading-copy {
  color: var(--muted);
  padding: 30px 0;
  text-align: center;
}
.page .section-head:empty {
  display: none;
}
@media (min-width: 1550px) {
  .page {
    padding-top: 40px;
  }
  .console-hero {
    height: 220px;
  }
  .console-hero img {
    height: 225px;
  }
  .console-time {
    font-size: 39px;
  }
}
@media (max-width: 1180px) {
  .sidebar {
    width: 195px;
    padding-inline: 14px;
  }
  .main {
    margin-left: 195px;
  }
  .topbar {
    padding-inline: 25px;
  }
  .page {
    padding: 28px 25px;
  }
  .header-date {
    display: none;
  }
  .console-card-head {
    padding-inline: 17px;
  }
  .console-hero {
    padding-inline: 17px;
  }
  .console-time {
    font-size: 28px;
  }
  .console-details {
    margin-inline: 17px;
  }
  .console-actions {
    padding-inline: 17px;
  }
  .console-actions .btn {
    padding-inline: 10px;
    font-size: 11px;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-card .stat-value {
    font-size: 25px;
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 78px;
    padding: 30px 12px;
  }
  .brand-block {
    padding: 0 4px 27px;
  }
  .brand-block .brand {
    font-size: 0;
    width: 40px;
    height: 28px;
  }
  .brand-block .brand > i {
    height: 26px;
    width: 8px;
    margin-left: 7px;
  }
  .brand-block .eyebrow,
  .nav-label,
  .nav a > span,
  .club-location,
  .sidebar-footer {
    display: none;
  }
  .nav a {
    padding: 13px;
    justify-content: center;
  }
  .nav a.active::after {
    display: none;
  }
  .nav a .nav-count {
    display: none;
  }
  .main {
    margin-left: 78px;
  }
  .header-actions {
    gap: 8px;
  }
  .profile-button {
    padding-left: 10px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-lower {
    grid-template-columns: 1fr 1fr;
  }
  .console-grid {
    gap: 13px;
  }
  .console-session .eyebrow {
    font-size: 7px;
  }
  .console-hero {
    height: 176px;
  }
  .console-hero img {
    height: 174px;
    width: 60%;
    margin-right: -35px;
  }
  .console-time {
    font-size: 25px;
  }
  .console-actions {
    flex-wrap: wrap;
  }
  .console-actions .btn-primary {
    flex-basis: 100%;
  }
  .console-actions .btn-secondary {
    flex-grow: 1;
  }
  .console-hero::after {
    font-size: 6px;
    right: 13px;
  }
  .console-title h3 {
    font-size: 13px;
  }
  .console-title {
    gap: 8px;
  }
  .console-number {
    padding: 3px 5px;
    font-size: 9px;
  }
  .login-art {
    padding: 38px;
  }
  .login-art h1 {
    font-size: 40px;
  }
  .page-footer {
    font-size: 9px;
  }
}
@media (max-width: 650px) {
  html {
    scroll-padding-bottom: 90px;
  }
  body {
    font-size: 14px;
  }
  .sidebar {
    display: none;
  }
  .main {
    margin-left: 0;
  }
  .topbar {
    height: 73px;
    padding: env(safe-area-inset-top) 20px 0;
    gap: 8px;
  }
  .breadcrumbs {
    display: none;
  }
  .mobile-brand {
    display: block;
  }
  .mobile-brand .brand {
    font-size: 24px;
  }
  .mobile-brand .brand > i {
    height: 19px;
    width: 5px;
    margin-left: 6px;
    box-shadow: 8px 0 0 var(--red);
  }
  .header-actions {
    gap: 9px;
  }
  .profile-button {
    padding: 0;
    border: 0;
  }
  .profile-button > div:not(.avatar),
  .profile-button > svg {
    display: none;
  }
  .profile-button .avatar {
    width: 32px;
    height: 32px;
  }
  .icon-btn {
    width: 36px;
    height: 36px;
  }
  .header-actions .logout-button {
    display: none;
  }
  .page {
    padding: 24px 18px calc(100px + env(safe-area-inset-bottom));
  }
  .section-head {
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 21px;
  }
  .section-head h1,
  h1 {
    font-size: 27px;
    letter-spacing: -0.9px;
  }
  .section-head p {
    font-size: 11px;
    margin-top: 7px;
  }
  .section-head {
    flex-wrap: wrap;
  }
  .section-head > .toolbar .btn {
    font-size: 12px;
    width: auto;
    min-height: 44px;
    padding: 10px 12px;
  }
  .section-head > .toolbar .btn svg {
    width: 18px;
  }
  .section-head .eyebrow {
    font-size: 9px;
  }
  .section-head > .badge {
    font-size: 8px;
    margin-top: 5px;
  }
  .status-strip {
    padding: 13px 12px;
    gap: 8px;
    margin-bottom: 17px;
  }
  .status-info {
    gap: 9px;
  }
  .status-info strong {
    font-size: 11px;
  }
  .status-info small {
    font-size: 9px;
    max-width: 220px;
  }
  .sync-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
  }
  .sync-icon svg {
    width: 16px;
  }
  .switch-row > span {
    display: none;
  }
  .stat-grid {
    gap: 10px;
    margin-bottom: 24px;
  }
  .stat-card {
    padding: 15px 14px;
  }
  .stat-card .stat-top {
    font-size: 10px;
  }
  .stat-card .stat-value {
    font-size: 26px;
    margin-top: 10px;
  }
  .stat-card small {
    font-size: 9px;
    margin-top: 6px;
  }
  .stat-card .stat-top svg {
    width: 15px;
  }
  .subheading {
    margin-bottom: 13px;
  }
  .subheading h2 {
    font-size: 16px;
  }
  .live-indicator {
    font-size: 9px;
  }
  .console-grid {
    grid-template-columns: 1fr;
    gap: 17px;
    margin-bottom: 24px;
  }
  .console-card-head {
    padding: 19px 20px 0;
  }
  .console-title h3 {
    font-size: 15px;
  }
  .console-number {
    font-size: 10px;
    padding: 4px 6px;
  }
  .console-title p {
    font-size: 10px;
  }
  .console-title {
    gap: 11px;
  }
  .console-hero {
    height: 181px;
    padding: 10px 20px;
  }
  .console-hero img {
    height: 191px;
    width: 54%;
    margin-right: -16px;
  }
  .console-session {
    max-width: 58%;
  }
  .console-time {
    font-size: 34px;
  }
  .console-session .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .console-session p {
    font-size: 11px;
  }
  .console-hero::after {
    font-size: 7px;
    right: 20px;
    bottom: 12px;
    letter-spacing: 3px;
  }
  .console-details {
    margin: 0 20px 16px;
    gap: 11px;
  }
  .console-status-refresh {
    margin-inline: 20px;
  }
  .detail-item small {
    font-size: 9px;
  }
  .detail-item span {
    font-size: 11px;
  }
  .console-actions {
    padding: 0 20px 18px;
    flex-wrap: nowrap;
    gap: 7px;
  }
  .console-actions .btn-primary {
    flex-basis: auto;
  }
  .console-actions .btn {
    min-height: 44px;
    font-size: 11px;
    padding: 10px;
  }
  .console-actions .icon-btn {
    width: 42px;
    height: 44px;
  }
  .card-note {
    padding-inline: 20px;
    font-size: 9px;
  }
  .dashboard-lower {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .panel {
    padding: 19px;
    margin-bottom: 17px;
  }
  .panel-head {
    margin-bottom: 15px;
  }
  .panel-head h2 {
    font-size: 15px;
  }
  .activity-row strong {
    font-size: 11px;
  }
  .activity-row time {
    font-size: 9px;
  }
  .page-footer {
    display: none;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    z-index: 40;
    inset: auto 0 0;
    justify-content: space-around;
    background: var(--mobile-nav);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--line);
    padding: 9px 6px calc(10px + env(safe-area-inset-bottom));
  }
  .mobile-nav a {
    min-width: 59px;
    min-height: 46px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    color: var(--faint);
    font-size: 8px;
    font-weight: 550;
    position: relative;
  }
  .mobile-nav a svg {
    width: 20px;
    height: 20px;
  }
  .mobile-nav a.active {
    color: var(--red);
  }
  .mobile-nav a.active::before {
    content: "";
    width: 17px;
    height: 2px;
    border-radius: 3px;
    position: absolute;
    top: -10px;
    background: var(--red);
  }
  .mobile-nav .nav-count {
    position: absolute;
    right: 11px;
    top: -3px;
    font-size: 8px;
    background: var(--red);
    color: white;
    min-width: 13px;
    border-radius: 5px;
    text-align: center;
  }
  .mobile-nav .nav-count:empty {
    display: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .field input,
  .field select,
  .field textarea,
  input[type="month"],
  input[type="date"],
  input[type="datetime-local"],
  select {
    font-size: 16px;
    min-height: 46px;
  }
  .field {
    font-size: 12px;
  }
  .field .input-money {
    font-size: 26px;
  }
  .span-2 {
    grid-column: auto;
  }
  dialog,
  dialog.modal-wide {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 30px - env(safe-area-inset-top));
    border-radius: 14px;
    margin: auto;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .modal-head {
    padding: 18px 19px;
  }
  .modal-head h2 {
    font-size: 18px;
  }
  .modal-head .icon-btn {
    width: 32px;
    height: 32px;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-foot {
    padding: 14px 19px;
  }
  .modal-foot .btn {
    min-height: 45px;
    flex: 1;
    font-size: 12px;
  }
  .btn {
    min-height: 43px;
  }
  .btn-small {
    min-height: 36px;
  }
  .toolbar {
    gap: 8px;
  }
  .table-wrap {
    max-width: 100%;
  }
  .data-table {
    font-size: 11px;
  }
  .data-table th {
    font-size: 9px;
    padding: 10px;
  }
  .data-table td {
    padding: 12px 10px;
  }
  .data-table .btn {
    min-height: 36px;
    font-size: 10px;
    padding: 7px;
  }
  .tabs {
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .tabs button {
    white-space: nowrap;
    font-size: 11px;
    padding: 9px 12px;
  }
  .toasts {
    bottom: calc(85px + env(safe-area-inset-bottom));
    right: 14px;
    left: 14px;
    max-width: none;
  }
  .toast {
    font-size: 12px;
    width: 100%;
  }
  .login-screen {
    display: block;
  }
  .login-art {
    min-height: 235px;
    padding: 28px 26px 30px;
  }
  .login-art .brand {
    font-size: 25px;
  }
  .login-art h1 {
    font-size: 32px;
    letter-spacing: -1.2px;
    margin: 28px 0 10px;
    max-width: 330px;
  }
  .login-art > div > p {
    font-size: 11px;
    max-width: 290px;
  }
  .login-art-footer {
    display: none;
  }
  .login-art::before {
    width: 420px;
    height: 420px;
    top: 90px;
    left: 90px;
  }
  .login-form-wrap {
    padding: 34px 26px 50px;
  }
  .login-form {
    max-width: 380px;
  }
  .login-form h2 {
    font-size: 25px;
  }
  .login-theme {
    right: 24px;
    top: -209px;
    color: #bbb;
    background: #1d1d20;
  }
  .login-form > p {
    font-size: 12px;
  }
  .login-form .btn-primary {
    min-height: 48px;
  }
  .session-detail-grid,
  .detail-list {
    grid-template-columns: 1fr;
  }
  .detail-list dd {
    text-align: left;
    margin-bottom: 9px;
  }
  .quote-result dl {
    gap: 8px;
    font-size: 11px;
  }
  .quote-result .quote-value {
    font-size: 28px;
  }
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.settings-grid .panel {
  margin-bottom: 0;
}
.settings-grid {
  margin-bottom: 22px;
}
.panel-head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
}
.panel-head h2 svg {
  color: var(--muted);
  width: 17px;
}
.panel-body > p {
  font-size: 12px;
  margin: 8px 0 15px;
}
.panel-body .btn {
  margin-top: 8px;
}
.metric-value {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 620;
}
.link-code {
  font-size: 24px;
  font-family: ui-monospace, monospace;
  letter-spacing: 1px;
  margin: 14px 0;
  padding: 13px;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
}
.wrap-code {
  word-break: break-all;
  white-space: pre-wrap;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
}
.notification-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.event-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--raised);
  display: grid;
  place-items: center;
  color: var(--muted);
  flex-shrink: 0;
}
.event-content {
  min-width: 0;
  flex: 1;
}
.event-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.event-heading h3 {
  font-size: 13px;
}
.event-content p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0;
}
.event-content small {
  font-size: 10px;
}
.event-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.notification-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.notification-controls select {
  width: auto;
  max-width: 220px;
}
.unread-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.check-field {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}
.check-field input {
  accent-color: var(--red);
  width: 17px;
  height: 17px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.technical-details {
  border-radius: 7px;
  background: var(--raised);
  padding: 14px;
  margin-top: 15px;
  font-size: 11px;
  overflow: auto;
}
.technical-details pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 10px;
}
.finance-inputs {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.finance-review {
  margin-block: 20px;
}
.finance-review .panel {
  margin-bottom: 0;
}
.revenue-chart {
  margin: 0 0 20px;
}
.revenue-chart svg {
  width: 100%;
  height: auto;
  max-height: 280px;
}
.revenue-chart text {
  font-family: inherit;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 25px;
  margin: 0;
}
.detail-grid dt {
  font-size: 11px;
  color: var(--muted);
}
.detail-grid dd {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}
.detail-grid > div {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
details {
  margin-top: 15px;
  color: var(--muted);
  font-size: 12px;
}
summary {
  cursor: pointer;
  padding: 8px 0;
}
.panel > .toolbar {
  margin-bottom: 18px;
}
.finance-review ul {
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
}
.finance-review h3 {
  margin-bottom: 12px;
}
.data-table td {
  overflow-wrap: break-word;
}
.data-table td button {
  margin: 3px 3px 3px 0;
}
.panel-head .btn-primary {
  font-size: 11px;
  min-height: 37px;
  padding: 8px 12px;
}
@media (max-width: 650px) {
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .settings-grid .panel {
    padding: 19px;
  }
  .event-heading {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 5px 10px;
  }
  .event-content p {
    font-size: 11px;
  }
  .event-icon {
    width: 28px;
    height: 28px;
  }
  .notification-row {
    gap: 10px;
    padding: 17px 0;
  }
  .notification-controls {
    align-items: stretch;
  }
  .notification-controls > select {
    max-width: none;
    flex: 1;
    min-width: 120px;
  }
  .panel-head {
    flex-wrap: wrap;
  }
  .panel-head .btn-primary {
    min-height: 41px;
  }
  .revenue-chart {
    overflow-x: auto;
  }
  .revenue-chart svg {
    min-width: 490px;
    max-height: 250px;
  }
  .detail-grid {
    gap: 12px;
  }
  .data-table td[data-label] {
    max-width: none;
  }
  .table-wrap:has(td[data-label]) {
    border: 0;
    overflow: visible;
  }
  .table-wrap:has(td[data-label]) .data-table {
    display: block;
    min-width: 0;
  }
  .table-wrap:has(td[data-label]) thead {
    display: none;
  }
  .table-wrap:has(td[data-label]) tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    width: 100%;
  }
  .table-wrap:has(td[data-label]) tr {
    display: block;
    min-width: 0;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    padding: 5px 0;
  }
  .table-wrap:has(td[data-label]) td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    text-align: right;
    border: 0;
    padding: 8px 12px;
    width: 100%;
  }
  .table-wrap:has(td[data-label]) td::before {
    content: attr(data-label);
    font-size: 10px;
    font-weight: 500;
    color: var(--muted);
    text-align: left;
    min-width: 85px;
    max-width: 100px;
    flex-shrink: 0;
  }
  .table-wrap:has(td[data-label]) td:last-child {
    border-top: 1px solid var(--line);
    margin-top: 3px;
    padding-top: 11px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .table-wrap:has(td[data-label]) td:last-child::before {
    margin-right: auto;
  }
  .data-table td .toolbar {
    flex-wrap: wrap;
  }
  .data-table td .table-cell-content {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .table-cell-content .toolbar {
    justify-content: flex-end;
  }
  .table-cell-content .badge,
  .table-cell-content .btn {
    max-width: 100%;
    white-space: normal;
  }
  .data-table tr:hover td {
    background: transparent;
  }
  .panel > .toolbar {
    gap: 10px;
  }
  .panel > .toolbar .field {
    min-width: 125px;
    flex: 1;
  }
  .panel > .toolbar input[type="month"] {
    max-width: 100%;
  }
  .field > select {
    width: 100%;
  }
  .event-actions .btn {
    min-height: 38px;
  }
  .notification-row .event-content {
    overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Touch controls and safe areas for iPhone 16 Pro / Pro Max. */
@media (max-width: 650px) {
  .topbar {
    height: calc(73px + env(safe-area-inset-top));
  }
  .header-actions .icon-btn,
  .profile-button {
    min-width: 44px;
    min-height: 44px;
  }
  .modal-head .icon-btn {
    width: 44px;
    height: 44px;
  }
  .btn-small,
  .data-table .btn,
  .event-actions .btn,
  .tabs button {
    min-height: 44px;
  }
  .switch {
    position: relative;
    width: 51px;
    height: 44px;
    padding: 0;
    background: transparent;
  }
  .switch::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 11px;
    width: 39px;
    height: 22px;
    border-radius: 20px;
    background: var(--hover);
  }
  .switch::after {
    position: absolute;
    left: 9px;
    top: 14px;
  }
  .switch[aria-checked="true"] {
    background: transparent;
  }
  .switch[aria-checked="true"]::before {
    background: var(--red);
  }
  .detail-grid > div {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

.modal-fields {
  border: 0;
  padding: 0;
  margin: 20px 0 0;
  min-width: 0;
}

.power-setup {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.power-setup-head,
.power-setup-target {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.power-setup-head > div,
.power-setup-target > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.power-setup-head h3,
.power-setup-head p {
  margin: 0;
}
.power-setup-targets,
.power-setup-operations {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.power-setup-target,
.power-setup-operation {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.power-setup-target small {
  display: block;
  margin-top: 4px;
}
.power-setup-operation > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.power-setup-operation p:last-child {
  margin-bottom: 0;
}
.power-setup .badge,
.power-setup .btn {
  white-space: normal;
}
.power-setup-wizard ol {
  padding-left: 22px;
}
.power-setup-wizard li + li {
  margin-top: 10px;
}
@media (max-width: 650px) {
  .power-setup-target > .btn,
  .power-setup-operation > .btn {
    width: 100%;
  }
  .power-setup-head {
    align-items: flex-start;
  }
}

@media (max-width: 650px) {
  .notification-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
  }
  .notification-row .event-actions {
    grid-column: 2;
    margin-top: 2px;
  }
  .notification-row .event-content > .muted {
    font-size: 11px;
  }
  .notification-row .event-actions .btn {
    font-size: 11px;
    padding: 10px;
  }
}

/* Financial cells keep amount and status aligned without line-break spacing. */
.payment-amount-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.payment-amount-stack > strong {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.payment-amount-stack > .muted {
  font-size: 10px;
  white-space: nowrap;
}
.panel > .notification-pagination {
  padding-top: 10px;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 0;
}
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pagination-controls .btn {
  margin: 0;
}
.pagination-controls [data-page] {
  line-height: 1;
  white-space: nowrap;
  font-size: 12px;
}
.notification-sync {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}
.notification-sync::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.notification-sync[data-state="error"]::before {
  background: var(--amber);
}
.notification-sync[data-state="loading"]::before {
  background: var(--muted);
}
@media (max-width: 650px) {
  .data-table td .payment-amount-stack {
    align-items: flex-end;
  }
  .notification-pagination {
    gap: 15px;
  }
  .notification-sync {
    flex-basis: 100%;
    justify-content: flex-end;
  }
}
