:root {
  color-scheme: light;
  --bg: #f5f6f1;
  --panel: #ffffff;
  --text: #16181d;
  --muted: #646b75;
  --line: #d9ded6;
  --field: #f9faf7;
  --primary: #175c62;
  --primary-strong: #0d3f45;
  --accent: #b94d2a;
  --green: #2f704c;
  --yellow: #9b6a13;
  --red: #aa3030;
  --shadow: 0 14px 38px rgba(24, 35, 40, 0.09);
  --rq-page-max-width: 1506px;
  --rq-page-gutter: 40px;
}

html {
  scrollbar-gutter: stable;
}

html.theme-dark {
  color-scheme: dark;
  --bg: #111827;
  --panel: #182131;
  --text: #edf2fb;
  --muted: #aeb8c7;
  --line: #334155;
  --field: #111827;
  --primary: #6ed7df;
  --primary-strong: #95e8ef;
  --accent: #f09a7b;
  --green: #7ddf9e;
  --yellow: #f1c56b;
  --red: #ff7f87;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

html.theme-dark body {
  background: #101722;
}

html.support-page,
html.support-page body {
  width: max-content;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

button,
input,
select {
  font: inherit;
}

/* 0.2 design-system select: native field keeps form semantics, popup is consistent across OSes. */
.rq-native-select {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

.rq-select { display: block; inline-size: 100%; min-inline-size: 0; }
.rq-select-trigger {
  inline-size: 100%; min-block-size: 44px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: #202633; background: #fbfcfa; border: 1px solid #dfe4de; border-radius: 11px;
  font: inherit; text-align: start; cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.rq-select-trigger:hover { border-color: #b9c8c3; background: #fff; }
.rq-select-trigger:focus-visible, .rq-select.is-open .rq-select-trigger {
  border-color: #2b75d6; box-shadow: 0 0 0 3px rgba(43, 117, 214, .13); outline: none;
}
.rq-select-trigger:disabled { opacity: .55; cursor: not-allowed; }
.rq-select-value { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-select-arrow {
  inline-size: 8px; block-size: 8px; flex: 0 0 auto;
  border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .16s ease;
}
.rq-select.is-open .rq-select-arrow { transform: rotate(225deg) translate(-1px, -1px); }
.rq-select-menu {
  position: fixed; z-index: 10020; max-block-size: 280px; padding: 6px;
  overflow: auto; overscroll-behavior: contain;
  background: #fff; border: 1px solid #e1e6e2; border-radius: 11px;
  box-shadow: 0 14px 34px rgba(23, 34, 50, .16);
}
.rq-select-menu[hidden] { display: none; }
.rq-select-option {
  inline-size: 100%; min-block-size: 38px; padding: 8px 11px; display: block;
  color: #202633; background: transparent; border: 0; border-radius: 7px;
  font: inherit; line-height: 1.35; text-align: start; cursor: pointer;
}
.rq-select-option:hover, .rq-select-option:focus-visible { color: #175fb9; background: #eef5ff; outline: none; }
.rq-select-option.is-selected { color: #175fb9; background: #e8f2ff; font-weight: 700; }
.rq-select-option:disabled { opacity: .45; cursor: not-allowed; }
html.theme-dark .rq-select-trigger { color: #edf3f7; background: #202a30; border-color: #3c4a50; }
html.theme-dark .rq-select-trigger:hover { background: #263239; border-color: #52636b; }
html.theme-dark .rq-select-menu { background: #202a30; border-color: #3c4a50; box-shadow: 0 16px 38px rgba(0, 0, 0, .42); }
html.theme-dark .rq-select-option { color: #edf3f7; }
html.theme-dark .rq-select-option:hover, html.theme-dark .rq-select-option:focus-visible,
html.theme-dark .rq-select-option.is-selected { color: #8fc1ff; background: #293d50; }

button {
  border: 0;
  cursor: pointer;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
}

.side {
  min-height: 100vh;
  padding: 28px;
  background: #12272b;
  color: #f5fbf8;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.brand-actions {
  display: grid;
  gap: 8px;
}

.view-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.view-tab {
  min-height: 38px;
  border-radius: 6px;
  background: transparent;
  color: rgba(245, 251, 248, 0.7);
  font-weight: 700;
}

.view-tab.active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.brand h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: 0;
}

.brand p {
  margin: 7px 0 0;
  color: rgba(245, 251, 248, 0.72);
  font-size: 14px;
}

.main {
  min-width: 0;
  padding: 28px;
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth {
  width: min(440px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 26px;
}

.auth h1 {
  margin: 0 0 6px;
  font-size: 28px;
}

.auth p {
  margin: 0 0 22px;
  color: var(--muted);
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 8px;
  background: #ebeee9;
  margin-bottom: 18px;
}

.tab {
  min-height: 40px;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
}

.tab.active {
  color: var(--text);
  background: var(--panel);
  box-shadow: 0 2px 8px rgba(20, 27, 31, 0.08);
}

.form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--field);
  color: var(--text);
  padding: 9px 11px;
  font: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(23, 92, 98, 0.18);
  border-color: var(--primary);
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.grid3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.hidden {
  display: none !important;
}

.btn {
  min-height: 42px;
  border-radius: 7px;
  padding: 9px 13px;
  background: #2c68d0;
  color: white;
  font-weight: 700;
}

.btn:hover {
  background: #3b77df;
}

.btn.secondary {
  background: #ebedee;
  color: var(--text);
}

.btn.secondary:hover {
  background: #dce4e8;
}

.btn.danger {
  background: #f3d4d4;
  color: var(--red);
}

.btn.danger:hover {
  background: #ffd0d0;
}

.btn.ghost {
  min-height: 34px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #f5fbf8;
}

.btn.compact-btn {
  min-height: 42px;
  align-self: end;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.alert {
  padding: 10px 12px;
  border-radius: 7px;
  color: #7d1d1d;
  background: #f7dddd;
  border: 1px solid #ecc0c0;
  font-size: 14px;
}

.boss-form {
  display: grid;
  gap: 13px;
}

.side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.side-section {
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.side-section:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.side-title h2 {
  margin: 0;
  font-size: 17px;
}

.side .field span {
  color: rgba(245, 251, 248, 0.72);
}

.side .field input,
.side .field select {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.side .field input::placeholder {
  color: rgba(245, 251, 248, 0.46);
}

.side select option {
  color: var(--text);
}

.check-row {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(245, 251, 248, 0.86);
}

.check-row.dark {
  color: var(--text);
}

.rq-muted-note {
  color: #5e6675;
  font-size: 13px;
  line-height: 1.35;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: #67c1a2;
}

.notify-rules {
  display: grid;
  gap: 10px;
}

.notify-rule {
  display: grid;
  grid-template-columns: 74px 84px minmax(116px, 1fr) minmax(104px, 0.9fr) 116px 38px;
  gap: 8px;
  align-items: end;
}

.notify-rule .compact-btn {
  width: 100%;
  min-width: 0;
  white-space: nowrap;
}

.notify-rule .compact-btn.icon-only {
  padding-inline: 0;
  font-size: 20px;
  line-height: 1;
}

.modal-backdrop.nested {
  z-index: 80;
  background: rgba(21, 28, 36, 0.38);
}

.boss-picker-modal {
  max-width: 640px;
}

.boss-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.boss-choice-card {
  min-height: 54px;
  display: grid;
  grid-template-columns: 18px 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eef0f2;
  color: #20242d;
  font-weight: 700;
}

.boss-choice-card img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 50%;
}

.boss-choice-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.password-box {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.password-box h3 {
  margin: 0;
  font-size: 15px;
}

.support-side {
  display: grid;
  gap: 14px;
}

.support-side-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.support-side-metrics div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.support-side-metrics strong {
  display: block;
  font-size: 20px;
}

.support-side-metrics span,
.side-note {
  color: rgba(245, 251, 248, 0.68);
  font-size: 13px;
}

.support-side-actions {
  display: grid;
  gap: 8px;
}

.side-note {
  margin: 0;
  line-height: 1.45;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.toolbar.compact {
  margin: 0 0 16px;
}

.toolbar h2 {
  margin: 0;
  font-size: 28px;
}

.toolbar p {
  margin: 5px 0 0;
  color: var(--muted);
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric {
  padding: 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 8px;
}

.metric strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.boss-list {
  display: grid;
  gap: 12px;
}

.boss {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(24, 35, 40, 0.06);
}

.boss h3 {
  margin: 0;
  font-size: 19px;
}

.boss-main {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.boss-icon {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #eef1ed;
}

.boss-icon.placeholder {
  display: grid;
  place-items: center;
  color: var(--primary);
  font-weight: 800;
}

.boss-icon.preview {
  width: 44px;
  height: 44px;
}

.icon-preview-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.location {
  margin-top: 5px;
  color: var(--muted);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.badge {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 4px 8px;
  background: #eef1ed;
  color: #3e4850;
  font-size: 12px;
  font-weight: 700;
}

.badge.green {
  background: #e0efe6;
  color: var(--green);
}

.badge.yellow {
  background: #f4ead3;
  color: var(--yellow);
}

.badge.red {
  background: #f4dddd;
  color: var(--red);
}

.timebox {
  display: grid;
  gap: 7px;
  color: var(--muted);
}

.time-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.timebox strong {
  display: block;
  color: var(--text);
  font-size: 17px;
}

.timebox small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-width: 122px;
}

.actions.wide {
  min-width: 160px;
}

.actions-panel {
  position: relative;
}

.timer-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 5;
  width: min(360px, calc(100vw - 44px));
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.timer-popover::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: -8px;
  width: 14px;
  height: 14px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}

.timer-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.empty {
  padding: 38px;
  border: 1px dashed #bfc7bd;
  border-radius: 8px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.45);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 25, 28, 0.28);
}

.modal {
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 18px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-head h2 {
  margin: 0;
  font-size: 20px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: #e6ebe8;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.settings-inline-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.rq-toast {
  position: fixed;
  z-index: 1000;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 9px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.94);
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.22);
  font-size: 14px;
  font-weight: 700;
}

.support-join {
  display: grid;
  gap: 12px;
  max-width: 520px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.support-join h3,
.support-join p {
  margin: 0;
}

.support-join p {
  color: var(--muted);
}

.support-board {
  display: grid;
  gap: 14px;
}

.support-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(24, 35, 40, 0.05);
}

.support-controls strong {
  display: block;
  margin-top: 5px;
  font-size: 24px;
}

.support-state {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  background: #eef1ed;
  color: #3e4850;
  font-size: 12px;
  font-weight: 800;
}

.support-state.running {
  background: #e0efe6;
  color: var(--green);
}

.support-control-buttons {
  display: grid;
  grid-template-columns: 120px 120px;
  gap: 10px;
}

.support-effects {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.effect-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.effect-card.active {
  border-color: rgba(47, 112, 76, 0.42);
  box-shadow: 0 0 0 3px rgba(47, 112, 76, 0.12);
}

.effect-card h3,
.effect-card p {
  margin: 0;
}

.effect-card p {
  margin-top: 4px;
  font-weight: 800;
}

.effect-card .skill-subtimer {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.effect-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.skill-icon,
.skill-icon-wrap {
  width: 52px;
  height: 52px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid #202831;
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22), 0 4px 10px rgba(18, 29, 34, 0.2);
}

.skill-icon-wrap {
  background: #10151d;
}

.skill-icon-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.skill-cooldown-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--cooldown-height, 0%);
  background: rgba(9, 10, 11, 0.72);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  transition: height 0.18s linear;
}

.skill-timer-glass {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(29, 32, 34, 0.5), rgba(19, 21, 23, 0.86));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(1.5px) saturate(0.75);
}

.skill-effect-ring {
  position: absolute;
  inset: 1px;
  border-radius: 6px;
  background: conic-gradient(rgba(102, 235, 169, 0.95) var(--effect-deg, 0deg), transparent 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  filter: drop-shadow(0 0 4px rgba(102, 235, 169, 0.55));
}

.skill-overlay-time {
  position: absolute;
  inset: auto 0 2px;
  min-height: 22px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 1px 2px #000, 0 0 6px rgba(0, 0, 0, 0.75);
}

.skill-icon-wrap.highlight {
  z-index: 2;
  border-color: #fff36d;
  animation: iconReady 0.26s infinite alternate;
}

.skill-icon-wrap.highlight .skill-timer-glass {
  height: 100%;
  background: radial-gradient(circle at 50% 42%, rgba(255, 238, 92, 0.34), rgba(184, 28, 23, 0.76));
  border-top: 0;
}

.skill-icon-wrap.highlight .skill-overlay-time {
  inset: 0;
  min-height: 100%;
  color: #fff9a8;
  font-size: 13px;
  text-shadow: 0 1px 2px #000, 0 0 7px #ff2a19, 0 0 12px #ffd84a;
}

.skill-icon::before,
.skill-icon::after {
  content: "";
  position: absolute;
}

.skill-icon.inspiration {
  background:
    radial-gradient(circle at 22% 18%, #fff37a 0 8%, transparent 9%),
    linear-gradient(135deg, #062637 0%, #094f7a 36%, #d12722 37%, #f4b13b 48%, #420811 78%);
}

.skill-icon.inspiration::before {
  width: 9px;
  height: 58px;
  border-radius: 6px;
  background: linear-gradient(#fff6bd, #d6e8f6 45%, #963b24 46%, #3a160e);
  transform: rotate(-42deg);
  box-shadow: 12px 8px 0 -2px rgba(251, 84, 38, 0.85);
}

.skill-icon.flag {
  background:
    radial-gradient(circle at 28% 20%, #f7ffdf 0 8%, transparent 9%),
    linear-gradient(145deg, #061a26 0%, #0791ba 38%, #64f2ff 58%, #0c5f9d 100%);
}

.skill-icon.flag::before {
  width: 7px;
  height: 50px;
  background: #f2f7ef;
  border-radius: 5px;
  transform: rotate(34deg);
}

.skill-icon.flag::after {
  width: 26px;
  height: 20px;
  left: 23px;
  top: 12px;
  background: linear-gradient(135deg, #fffbd1, #1fe5ff 55%, #0a6fa0);
  clip-path: polygon(0 0, 100% 18%, 68% 52%, 100% 88%, 0 70%);
}

.skill-icon.mark {
  background:
    radial-gradient(circle at 70% 22%, #ffe99a 0 8%, transparent 9%),
    linear-gradient(135deg, #542112, #d7842a 42%, #4d160f 100%);
}

.skill-icon.mark::before {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 8px solid rgba(255, 229, 145, 0.86);
  box-shadow: inset 0 0 0 6px rgba(108, 24, 16, 0.9);
}

.skill-icon.mark::after {
  width: 8px;
  height: 56px;
  background: linear-gradient(#edfaff, #cde8ee 54%, #5a2017 55%);
  border-radius: 6px;
  transform: rotate(48deg);
}

.skill-icon.hope {
  background:
    radial-gradient(circle at 28% 18%, #f4c8ff 0 9%, transparent 10%),
    linear-gradient(135deg, #173f28, #712a7b 44%, #2d082f 100%);
}

.skill-icon.hope::before {
  width: 10px;
  height: 58px;
  border-radius: 7px;
  background: linear-gradient(#f7f4ff, #e64d88 46%, #6b103f 47%, #260b25);
  transform: rotate(63deg);
}

.skill-icon.hope::after {
  width: 40px;
  height: 12px;
  border-radius: 12px;
  background: rgba(234, 74, 145, 0.85);
  filter: blur(3px);
  transform: rotate(-22deg);
}

.support-warnings {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.support-coverage {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.support-coverage.ok {
  background: #e0efe6;
  color: var(--green);
}

.support-coverage.bad {
  background: #f4dddd;
  color: var(--red);
}

.support-members {
  display: grid;
  gap: 12px;
}

.support-member {
  display: grid;
  grid-template-columns: minmax(170px, 0.5fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.support-member.next {
  border-color: rgba(185, 77, 42, 0.55);
  box-shadow: 0 0 0 3px rgba(185, 77, 42, 0.14);
}

.support-member-title strong,
.support-member-title span {
  display: block;
}

.support-member-title span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.support-skill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
}

.support-skill {
  min-height: 104px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 4px 9px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.support-skill .skill-icon-wrap {
  grid-row: 1 / 4;
  width: 44px;
  height: 44px;
  border-radius: 7px;
}

.support-skill strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.support-skill span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.support-skill small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.support-skill.active {
  border-color: rgba(47, 112, 76, 0.4);
  background: #f1faf5;
}

.support-skill.highlight {
  border-color: rgba(185, 77, 42, 0.58);
  background: #fff5ef;
  animation: pulseReady 0.65s infinite alternate;
}

.support-manager {
  margin-top: 16px;
}

.support-settings-form,
.support-order-list {
  display: grid;
  gap: 10px;
}

.support-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.support-order-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.support-order-row div {
  display: flex;
  gap: 6px;
}

.support-order-row .compact-btn {
  min-width: 42px;
  padding: 6px 10px;
}

.support-window {
  width: 226px;
  min-width: 0;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 4px;
  background: rgba(10, 14, 16, 0.96);
  color: #f5fbf8;
  overflow: hidden;
}

.support-window-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.support-window-head h1,
.support-window-head p {
  margin: 0;
}

.support-window-head h1 {
  font-size: 16px;
}

.support-window-head p {
  margin-top: 3px;
  color: rgba(245, 251, 248, 0.68);
  font-size: 12px;
}

.support-window-actions {
  display: flex;
  gap: 8px;
}

.support-window .support-window-actions .btn {
  min-height: 34px;
  padding: 6px 10px;
}

.support-window .support-controls {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.support-window .support-control-buttons {
  grid-template-columns: 40px;
}

.support-window .support-effects {
  gap: 3px;
}

.support-window .effect-card {
  min-height: 40px;
  grid-template-columns: 40px;
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f5fbf8;
}

.support-window .effect-card h3 {
  font-size: 13px;
}

.support-window .effect-card p,
.support-window .effect-card .skill-subtimer,
.support-window .effect-card span {
  font-size: 11px;
  color: rgba(245, 251, 248, 0.72);
}

.support-board.compact .support-effects {
  grid-template-columns: repeat(4, 40px);
  justify-content: start;
}

.support-board.compact .effect-card {
  min-height: 40px;
  width: 40px;
  grid-template-columns: 1fr;
  padding: 0;
}

.support-board.compact .effect-card > div:not(.skill-icon-wrap) {
  display: none;
}

.support-board.compact .skill-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  border-width: 1px;
}

.support-board.compact .support-controls {
  display: block;
}

.support-board.compact .support-control-buttons {
  grid-template-columns: 40px;
}

.support-board.compact {
  display: flex;
  align-items: center;
  gap: 3px;
}

.support-board.compact .btn {
  min-width: 40px;
  min-height: 40px;
  padding: 0 4px;
  border-radius: 5px;
  font-size: 8px;
  text-transform: uppercase;
}

.support-board.compact .skill-overlay-time {
  min-height: 18px;
  font-size: 12px;
}

.support-board.compact .skill-timer-glass {
  height: 50%;
}

.compact-join {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.compact-join .btn {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 11px;
}

@keyframes pulseReady {
  from {
    box-shadow: 0 0 0 0 rgba(185, 77, 42, 0.14);
  }
  to {
    box-shadow: 0 0 0 4px rgba(185, 77, 42, 0.2);
  }
}

@keyframes iconReady {
  from {
    filter: brightness(1.1) saturate(1.25);
    transform: scale(1);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55), 0 0 0 0 rgba(255, 216, 74, 0.35), 0 0 14px rgba(255, 49, 34, 0.65);
  }
  to {
    filter: brightness(1.75) saturate(1.65);
    transform: scale(1.12);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 3px rgba(255, 216, 74, 0.72), 0 0 22px rgba(255, 49, 34, 0.92);
  }
}

.admin-panel {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.45fr) minmax(0, 1fr);
  gap: 14px;
}

.admin-block {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(24, 35, 40, 0.05);
  padding: 14px;
}

.admin-block h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.admin-sql-client {
  margin-top: 14px;
}

.admin-sql-client textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.admin-sql-result {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.admin-sql-table-wrap {
  overflow: auto;
  max-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.admin-sql-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-sql-table th,
.admin-sql-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  white-space: pre-wrap;
}

.admin-sql-table th {
  position: sticky;
  top: 0;
  background: #eef3f7;
  font-weight: 700;
}

.admin-settings {
  margin-bottom: 14px;
}

.admin-announcement {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(360px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 14px;
}

.admin-announcement h3 {
  margin-bottom: 4px;
}

.admin-announcement .rq-muted-note {
  margin: 0;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.8fr) minmax(150px, 0.5fr);
  gap: 10px;
  align-items: end;
}

.telegram-rules {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.telegram-rule {
  display: grid;
  grid-template-columns: minmax(80px, 0.7fr) minmax(90px, 0.7fr) minmax(180px, 1.4fr) 100px;
  gap: 10px;
  align-items: end;
}

.admin-settings-actions {
  display: grid;
  grid-template-columns: minmax(160px, 0.4fr) minmax(180px, 0.4fr);
  gap: 10px;
  margin-top: 12px;
}

.role-list {
  display: grid;
  gap: 8px;
}

.role-row {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  align-items: center;
  gap: 10px;
}

.role-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-row select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--field);
  padding: 7px;
}

.access-table {
  display: grid;
  min-width: 520px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.access-head,
.access-boss,
.access-cell {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.access-head {
  background: #eef1ed;
  color: #3e4850;
  font-size: 12px;
  font-weight: 800;
}

.access-boss {
  font-weight: 700;
}

.access-cell {
  justify-content: center;
}

.access-cell input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .side {
    min-height: auto;
  }

  .boss {
    grid-template-columns: 1fr;
  }

  .support-effects,
  .support-board.compact .support-effects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-member {
    grid-template-columns: 1fr;
  }

  .support-skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .time-pair {
    grid-template-columns: 1fr;
  }

  .actions {
    grid-template-columns: 1fr 1fr;
  }

  .timer-popover {
    left: 0;
    right: auto;
  }

  .admin-grid,
  .admin-announcement {
    grid-template-columns: 1fr;
  }

  .admin-block {
    overflow-x: auto;
  }
}

@media (max-width: 620px) {
  .main,
  .side {
    padding: 18px;
  }

  .grid2,
  .grid3,
  .summary,
  .notify-rule,
  .telegram-rule,
  .admin-settings-grid,
  .admin-settings-actions,
  .support-effects,
  .support-skill-grid,
  .support-side-metrics,
  .support-control-buttons {
    grid-template-columns: 1fr;
  }

  .support-board.compact .support-effects {
    grid-template-columns: repeat(4, 42px);
  }

  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .support-controls,
  .support-window-head,
  .support-window-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

/* RQ Timer visual layer */
body:has(.rq-shell),
body:has(.rq-auth-wrap) {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.62), rgba(235, 248, 255, 0.78)),
    url("/assets/rq-bg.png") center top / cover fixed no-repeat;
}

.rq-auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: transparent;
}

.rq-auth-card {
  width: min(396px, 100%);
  display: grid;
  gap: 18px;
  padding: 32px 34px 30px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(49, 72, 86, 0.16);
}

.rq-auth-logo {
  width: 168px;
  height: auto;
  justify-self: center;
  display: block;
}

.rq-auth-title {
  margin: -4px 0 2px;
  text-align: center;
  color: #20242d;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.rq-auth-card .form {
  display: grid;
  gap: 16px;
}

.rq-auth-input {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 5px;
  padding: 0 17px;
  color: #20242d;
  background: #e9eaec;
  font-size: 14px;
  outline: none;
}

.rq-auth-input:focus {
  box-shadow: 0 0 0 3px rgba(48, 104, 211, 0.18);
}

.rq-auth-confirm {
  display: grid;
  gap: 6px;
}

.rq-auth-input.is-invalid {
  border: 1px solid #ff6868;
  color: #d83c3c;
  background: #fffafa;
  box-shadow: none;
}

.rq-auth-field-error {
  color: #d83c3c;
  font-size: 12px;
  line-height: 1.25;
}

.rq-auth-field-error:empty {
  display: none;
}

.rq-auth-submit {
  width: 216px;
  height: 50px;
  justify-self: center;
  margin-top: 16px;
  border: 0;
  border-radius: 5px;
  color: #ffffff;
  background: #316bd5;
  font-size: 14px;
  font-weight: 800;
}

.rq-auth-switch {
  text-align: center;
  color: #81848c;
  font-size: 14px;
}

.rq-auth-switch button {
  border: 0;
  padding: 0 0 0 6px;
  color: #316bd5;
  background: transparent;
  font: inherit;
  text-decoration: underline;
}

.rq-welcome-card {
  width: min(420px, calc(100vw - 32px));
  padding: 28px 34px 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(68, 91, 107, 0.18);
  text-align: center;
}

.rq-welcome-card h1 {
  margin: 0 0 14px;
  color: #20242d;
  font-size: 24px;
  font-weight: 600;
}

.rq-welcome-card p {
  width: min(290px, 100%);
  margin: 0 auto 26px;
  color: #5f6877;
  font-size: 14px;
  line-height: 1.25;
}

.rq-welcome-card:not(.room-flow-card) {
  width: min(394px, calc(100vw - 32px));
  padding: 32px 42px;
}

.rq-welcome-card:not(.room-flow-card) > p {
  margin-bottom: 32px;
}

.rq-welcome-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0;
}

.rq-welcome-tile {
  min-height: 146px;
  display: grid;
  grid-template-rows: auto auto;
  place-items: center;
  align-content: center;
  gap: 18px;
  border: 0;
  border-radius: 8px;
  color: #316bd5;
  background: #eef3fb;
  font-weight: 600;
}

.rq-welcome-tile-icon {
  width: 36px;
  height: 36px;
  display: block;
}

.rq-welcome-tile strong {
  font-size: 14px;
  font-weight: 600;
}

.rq-welcome-form {
  display: grid;
  gap: 16px;
  margin-top: 4px;
  text-align: left;
}

.rq-welcome-form label {
  display: grid;
  gap: 8px;
  color: #20242d;
  font-size: 14px;
  font-weight: 400;
}

.rq-welcome-form input,
.rq-welcome-form select {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 7px;
  padding: 0 18px;
  color: #20242d;
  background: #e9edf1;
  font-size: 14px;
  font-weight: 600;
}

.rq-welcome-form input::placeholder {
  color: #8a8f98;
  font-weight: 400;
}

.room-flow-card {
  width: min(394px, calc(100vw - 24px));
  padding: 32px;
}

.room-flow-card.wide {
  width: min(520px, calc(100vw - 24px));
}

.room-flow-card h1 {
  margin-bottom: 14px;
  font-size: 24px;
}

.room-flow-card p {
  width: min(400px, 100%);
  margin-bottom: 32px;
  font-size: 14px;
  line-height: 1.2;
}

.room-flow-card .btn {
  min-height: 48px;
}

.room-flow-card > .btn {
  width: 100%;
  display: block;
}

.room-flow-card > .btn + .btn {
  margin-top: 8px;
}

.join-welcome-form {
  gap: 8px;
}

.join-welcome-form > input {
  margin-bottom: 16px;
}

.rq-welcome-select {
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 7px;
  margin-bottom: 24px;
  padding: 0 16px;
  color: #20242d;
  background: #e9edf1;
  font-size: 14px;
  font-weight: 600;
}

.rq-selected-bosses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -14px 0 24px;
}

.rq-selected-bosses span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  padding: 0 10px;
  color: #20242d;
  background: #eef3fb;
  font-size: 13px;
  font-weight: 600;
}

.rq-shell {
  min-height: 100vh;
  color: #20242d;
  background: transparent;
}

.rq-app-header {
  height: 74px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(196, 216, 226, 0.4);
}

.rq-header-inner {
  width: min(var(--rq-page-max-width), calc(100% - var(--rq-page-gutter)));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
}

.rq-brand {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  text-decoration: none;
}

.rq-brand img {
  width: 96px;
  height: auto;
  display: block;
}

.rq-brand strong,
.rq-room-title {
  overflow: hidden;
  color: #20242d;
  font-size: 18px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rq-room-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  max-width: 220px;
  border: 0;
  border-radius: 6px;
  padding: 0 4px;
  overflow: hidden;
  background: transparent;
  color: #20242d;
  font-size: 18px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.rq-room-switcher {
  position: relative;
  z-index: 100;
}

.rq-room-switch span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.rq-room-switch i {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  color: #2c68d0;
  background: #eef2f4;
}

.rq-welcome-selected-summary {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.rq-welcome-selected-summary img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.rq-welcome-selected-summary strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rq-room-switch i::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.rq-room-switch.is-open i::before {
  transform: translateY(2px) rotate(225deg);
}

.rq-room-switch:hover {
  color: #2c68d0;
  background: transparent;
}

.rq-room-menu-dismiss {
  position: fixed;
  inset: 0;
  z-index: 98;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: default;
}

.rq-room-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 100;
  width: min(300px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid #e1e6eb;
  border-radius: 10px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 16px 38px rgba(31, 54, 69, 0.2);
}

.rq-room-dropdown-list {
  display: grid;
  gap: 4px;
  max-height: 280px;
  overflow-y: auto;
}

.rq-room-dropdown-item,
.rq-room-dropdown-join {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 7px;
  padding: 0 12px;
  color: #20242d;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.rq-room-dropdown-item:hover,
.rq-room-dropdown-item.active {
  color: #2c68d0;
  background: #eaf1ff;
}

.rq-room-dropdown-item > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rq-room-current-mark {
  flex: 0 0 auto;
  color: #2c68d0;
}

.rq-room-dropdown-join {
  justify-content: flex-start;
  margin-top: 6px;
  border-top: 1px solid #e1e6eb;
  border-radius: 0 0 7px 7px;
  color: #2c68d0;
}

.rq-room-dropdown-join:hover {
  background: #eef3fb;
}

.rq-caret {
  width: 28px;
  height: 28px;
  border: 0;
  color: #316bd5;
  background: transparent;
  font-size: 18px;
  font-weight: 900;
}

.rq-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.rq-dps-link,
.rq-lang,
.rq-header-language,
.rq-head-btn {
  height: 40px;
  border: 0;
  border-radius: 7px;
  color: #20242d;
  background: #eff1f4;
  font-weight: 600;
}

.rq-dps-link:hover,
.rq-lang:hover,
.rq-header-language:hover,
.rq-head-btn:hover {
  background: #dce4e8;
}

.rq-add:hover .rq-ui-icon {
  filter: brightness(0) invert(1);
}

/* UI 0.2: shared modal design system */
:root {
  --modal-radius: 16px;
  --modal-space: 24px;
  --modal-section-space: 20px;
  --modal-control-height: 44px;
  --modal-soft: #f6f8fa;
  --modal-border: #e1e6eb;
}

.modal-backdrop {
  padding: 24px;
  background: rgba(18, 25, 34, 0.42);
  backdrop-filter: blur(4px);
}

body:has(.modal-backdrop) {
  overflow: hidden;
}

.modal {
  padding: var(--modal-space);
  border-color: var(--modal-border);
  border-radius: var(--modal-radius);
  box-shadow: 0 24px 64px rgba(19, 30, 45, 0.22);
}

.modal-head {
  align-items: flex-start;
  margin-bottom: var(--modal-section-space);
}

.modal-head > .icon-btn {
  flex: 0 0 auto;
  margin-left: auto;
}

.modal-head h2,
.modal > h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.modal-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.modal .field {
  gap: 8px;
}

.modal .field > span {
  font-weight: 600;
}

.modal .field input,
.modal .field select,
.modal .field textarea,
.modal .btn {
  min-height: var(--modal-control-height);
  border-radius: 10px;
}

.modal-actions {
  gap: 12px;
  margin-top: 4px;
}

.settings-modal {
  width: min(820px, 100%);
}

.settings-form-v2 {
  gap: 16px;
}

.settings-section {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--modal-border);
  border-radius: 14px;
  background: #ffffff;
}

.settings-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.settings-section-head h3,
.settings-section-head p {
  margin: 0;
}

.settings-section-head h3 {
  font-size: 17px;
}

.settings-section-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.notification-presets {
  overflow: hidden;
  border: 1px solid var(--modal-border);
  border-radius: 12px;
}

.notification-preset-head,
.notification-preset-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(3, 76px);
  align-items: center;
  min-height: 58px;
  padding: 0 16px;
  text-align: center;
}

.notification-preset-head {
  min-height: 38px;
  color: var(--muted);
  background: var(--modal-soft);
  font-size: 12px;
  font-weight: 700;
}

.notification-preset-head span:first-child {
  text-align: left;
}

.notification-preset-row + .notification-preset-row {
  border-top: 1px solid var(--modal-border);
}

.notification-preset-copy {
  display: grid;
  gap: 3px;
  text-align: left;
}

.notification-preset-copy strong {
  font-size: 14px;
}

.notification-preset-copy small {
  color: var(--muted);
  font-size: 12px;
}

.switch-control {
  display: inline-flex;
  justify-self: center;
  cursor: pointer;
}

.switch-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch-control span {
  position: relative;
  width: 40px;
  height: 24px;
  border-radius: 999px;
  background: #d9dfe5;
  transition: 160ms ease;
}

.switch-control span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(20, 30, 42, 0.28);
  transition: 160ms ease;
}

.switch-control input:checked + span {
  background: #2c68d0;
}

.switch-control input:checked + span::after {
  transform: translateX(16px);
}

.switch-control input:focus-visible + span {
  outline: 3px solid rgba(44, 104, 208, 0.2);
}

.switch-control.disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.switch-control-large span {
  width: 46px;
  height: 28px;
}

.switch-control-large span::after {
  width: 22px;
  height: 22px;
}

.switch-control-large input:checked + span::after {
  transform: translateX(18px);
}

.telegram-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #5d6570;
  background: var(--modal-soft);
  font-size: 13px;
}

.telegram-status.connected strong {
  color: #24865c;
}

.settings-test-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.settings-details {
  overflow: hidden;
  border: 1px solid var(--modal-border);
  border-radius: 12px;
  background: #ffffff;
}

.settings-details > summary {
  padding: 14px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  list-style-position: inside;
}

.settings-details[open] > summary {
  border-bottom: 1px solid var(--modal-border);
  background: var(--modal-soft);
}

.settings-details-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

html.theme-dark {
  --modal-soft: #202b3a;
  --modal-border: #344258;
}

html.theme-dark .settings-section,
html.theme-dark .settings-details {
  background: #172130;
}

@media (max-width: 680px) {
  :root { --modal-space: 18px; }
  .modal-backdrop { padding: 10px; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-section { padding: 16px; }
  .notification-preset-head,
  .notification-preset-row {
    grid-template-columns: minmax(96px, 1fr) repeat(3, 48px);
    padding-inline: 8px;
  }
  .notification-preset-head { font-size: 10px; }
  .notification-preset-copy small { display: none; }
  .telegram-status { align-items: flex-start; flex-direction: column; }
}

.rq-head-btn:hover .rq-ui-icon,
.rq-toolbar-icon:hover .rq-ui-icon {
  filter: none;
}

.rq-dps-link {
  min-width: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-size: 15px;
  text-decoration: none;
}

.rq-lang {
  min-width: 68px;
  display: inline-flex;
  gap: 2px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-size: 15px;
  line-height: 1;
}

.rq-lang .rq-ui-icon {
  width: 12px;
  height: 12px;
}

.rq-head-btn {
  width: 40px;
  font-size: 18px;
}

.rq-about-btn {
  color: #7f8791;
  background: #f2f4f6;
  font-size: 17px;
  font-weight: 700;
  font-family: Georgia, "Times New Roman", serif;
}

.rq-about-btn:hover {
  color: #59616c;
  background: #e6ebef;
}

.rq-ui-icon {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

.rq-head-btn,
.rq-toolbar-icon,
.rq-square-action {
  display: inline-grid;
  place-items: center;
}

.rq-head-btn.danger {
  color: #df3d3d;
  background: #ffd6d8;
}

.rq-head-btn.danger:hover {
  background: #ffd0d0;
}

.rq-main {
  width: min(var(--rq-page-max-width), calc(100% - var(--rq-page-gutter)));
  margin: 0 auto;
  padding: 34px 0 52px;
}

.rq-toolbar {
  display: grid;
  grid-template-columns: 42px 42px 42px 160px minmax(240px, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 32px;
}

.rq-toolbar > .rq-server-select { grid-column: 4; }
.rq-toolbar > .rq-search { grid-column: 5; }
.rq-toolbar > .rq-add { grid-column: 6; }

.rq-toolbar-icon,
.rq-add {
  border: 0;
  border-radius: 5px;
  color: #ffffff;
  background: #2c68d0;
  font-weight: 600;
  box-shadow: 0 8px 16px rgba(49, 107, 213, 0.18);
}

.rq-toolbar-icon:hover,
.rq-add:hover {
  background: #3b77df;
}

.rq-toolbar-icon {
  width: 42px;
  height: 42px;
  font-size: 24px;
}

.rq-server-select,
.rq-search {
  height: 42px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(195, 207, 215, 0.35);
}

.rq-server-select {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0 14px;
  color: #20242d;
  overflow: hidden;
}

.rq-server-select > span {
  color: #3f4652;
  font-size: 14px;
  font-weight: 400;
}

.rq-server-select.is-enhanced > .rq-server-prefix-label {
  display: none;
}

.rq-server-select.is-enhanced {
  padding: 0;
}

.rq-server-select strong {
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rq-server-select select {
  position: absolute;
  inset: 0;
  appearance: none;
  border: 0;
  opacity: 0;
  color: #20242d;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.rq-header-language {
  width: 68px;
  height: 40px;
  border-radius: 7px;
}

.rq-header-language .rq-select,
.rq-header-language .rq-select-trigger {
  height: 100%;
}

.rq-header-language .rq-select-trigger {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  color: #20242d;
  background: #eff1f4;
  font-size: 15px;
  font-weight: 700;
}

.rq-header-language .rq-select-trigger:hover {
  background: #dce4e8;
}

.rq-server-select .rq-select {
  grid-column: 1 / -1;
  min-width: 0;
  height: 100%;
}
.rq-server-select .rq-select-trigger {
  min-height: 100%; padding: 0 14px; gap: 8px; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  color: #20242d; font-size: 15px; font-weight: 600;
}
.rq-server-select .rq-select-prefix {
  flex: 0 0 auto;
  color: #3f4652;
  font-size: 14px;
  font-weight: 400;
}
.rq-server-select .rq-select-value { margin-right: auto; }
.rq-server-select .rq-select-trigger:hover { background: transparent; }
.rq-server-select:focus-within {
  background: #fff; box-shadow: 0 0 0 1px #2b75d6, 0 0 0 4px rgba(43, 117, 214, .13);
}

.rq-server-select .rq-ui-icon {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

/* Unified active state for text-entry controls. */
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]), textarea):focus {
  background: #fff !important;
  border-color: #2b75d6 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(43, 117, 214, .13) !important;
}
.rq-search:focus-within {
  background: #fff;
  box-shadow: 0 0 0 1px #2b75d6, 0 0 0 4px rgba(43, 117, 214, .13);
}
html.theme-dark :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]), textarea):focus {
  color: #202633 !important;
  background: #fff !important;
}
html.theme-dark .rq-server-select:focus-within,
html.theme-dark .rq-search:focus-within { background: #fff; }
html.theme-dark .rq-server-select:focus-within span,
html.theme-dark .rq-server-select:focus-within .rq-select-trigger,
html.theme-dark .rq-search:focus-within input { color: #202633; }

.rq-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
}

.rq-search input {
  min-width: 0;
  height: 100%;
  border: 0;
  padding: 0 12px;
  background: transparent;
  color: #20242d;
  font-size: 15px;
  outline: none;
}

.rq-search span {
  color: #111827;
  font-size: 28px;
  line-height: 1;
  text-align: center;
}

.rq-search .rq-ui-icon {
  justify-self: center;
}

.rq-add {
  height: 42px;
  min-width: 132px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-size: 16px;
  line-height: 1;
}

.rq-add-plus {
  display: inline-block;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-1px);
}

.rq-admin-add {
  width: 100%;
  height: 58px;
  margin: -14px 0 22px;
  border: 0;
  border-radius: 10px;
  color: #316bd5;
  background: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 600;
}

.rq-admin-add:hover {
  color: #ffffff;
  background: #3b77df;
}

.rq-global-admin-main {
  padding-top: 38px;
}

.rq-admin-room-jump {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.rq-admin-room-jump h3 {
  margin: 0;
  font-size: 16px;
}

.rq-admin-room-jump > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rq-admin-room-chip {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  color: #2c68d0;
  background: #e9f1ff;
  font-weight: 700;
  cursor: pointer;
}

.rq-admin-room-chip:hover {
  color: #ffffff;
  background: #3b77df;
}

.rq-admin-shell {
  min-height: 100vh;
  background: #eef3f7;
}

.rq-admin-page {
  width: min(var(--rq-page-max-width), calc(100% - var(--rq-page-gutter)));
  margin: 0 auto;
  padding: 26px 0 72px;
}

.rq-back-btn {
  border: 0;
  margin-bottom: 24px;
  padding: 0;
  color: #20242d;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
}

.rq-admin-card {
  padding: 28px 28px 26px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
}

.rq-admin-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.rq-admin-card h1 {
  margin: 0;
  color: #20242d;
  font-size: 30px;
  font-weight: 600;
}

.rq-invite-btn {
  min-width: 126px;
}

.rq-members-table {
  display: grid;
  grid-template-columns: 50px minmax(200px, 1fr) 126px 145px 155px 40px;
  gap: 6px 0;
  align-items: center;
}

.rq-members-head {
  padding: 0 18px 12px;
  color: #5f6877;
  font-size: 14px;
  font-weight: 400;
}

.rq-member-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
  min-height: 44px;
  border-radius: 10px;
  background: #f2f5f7;
}

.rq-member-row > * {
  padding: 0 18px;
  min-width: 0;
}

.rq-member-row strong {
  overflow: hidden;
  color: #20242d;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rq-member-status {
  justify-self: start;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.rq-member-status.online {
  color: #17a038;
  background: #d8f4db;
}

.rq-member-status.offline {
  color: #b32a2a;
  background: #f8e2e2;
}

.rq-member-role,
.rq-member-role-select {
  color: #20242d;
  font-size: 15px;
  font-weight: 400;
}

.rq-member-role-select {
  width: 132px;
  height: 30px;
  border: 0;
  border-radius: 5px;
  background: #ffffff;
}

.rq-member-remove {
  width: 32px;
  height: 32px;
  border: 0;
  color: #c92222;
  background: transparent;
  font-size: 24px;
  line-height: 1;
}

.rq-room-admin-list {
  display: grid;
  gap: 8px;
}

.rq-room-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
}

.rq-room-admin-open {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 8px 18px;
  color: #20242d;
  background: #f2f5f7;
  text-align: left;
}

.rq-room-admin-open:hover {
  background: #dce4e8;
}

.rq-room-delete {
  width: 42px;
  height: 42px;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: #df3d3d;
  background: #f3d4d4;
  font-size: 22px;
  font-weight: 700;
}

.rq-room-delete:hover {
  background: #ffd0d0;
}

.rq-room-admin-row strong,
.rq-room-admin-row small {
  display: block;
}

.rq-room-admin-row strong {
  font-size: 16px;
  font-weight: 600;
}

.rq-room-admin-row small,
.rq-room-admin-row em {
  color: #5f6877;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
}

.modal-backdrop.soft {
  background: rgba(210, 218, 225, 0.72);
}

.rq-invite-modal {
  width: min(344px, calc(100vw - 32px));
  padding: 20px 22px 16px;
  border-radius: 10px;
}

.rq-confirm-modal {
  width: min(344px, calc(100vw - 32px));
  padding: 28px 22px 16px;
  border-radius: 8px;
}

.rq-confirm-modal .icon-btn {
  position: absolute;
  top: 8px;
  right: 8px;
}

.rq-confirm-modal h2 {
  margin: 0 24px 16px 0;
  color: #20242d;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
}

.rq-confirm-modal p {
  margin: 0 0 34px;
  color: #5f6877;
  font-size: 14px;
}

.rq-about-modal,
.rq-announcement-modal {
  width: min(560px, calc(100vw - 32px));
  padding: 28px 30px 26px;
  border-radius: 10px;
}

.rq-about-modal .icon-btn,
.rq-announcement-modal .icon-btn {
  position: absolute;
  top: 10px;
  right: 10px;
}

.rq-about-modal h2,
.rq-announcement-modal h2 {
  margin: 0 36px 18px 0;
  color: #20242d;
  font-size: 24px;
  font-weight: 700;
}

.rq-about-modal p,
.rq-announcement-modal p {
  margin: 0 0 14px;
  color: #39414d;
  font-size: 15px;
  line-height: 1.48;
}

.rq-about-modal p:last-child,
.rq-announcement-modal p:last-child {
  margin-bottom: 0;
}

.rq-announcement-modal .btn {
  width: 100%;
  margin-top: 12px;
}

.rq-confirm-modal .btn,
.rq-invite-modal .btn {
  width: 100%;
  margin-top: 8px;
}

.rq-invite-modal .icon-btn {
  position: absolute;
  top: 10px;
  right: 10px;
}

.rq-invite-modal h2 {
  margin: 0 28px 14px 0;
  color: #20242d;
  font-size: 24px;
  font-weight: 600;
}

.rq-invite-modal p {
  margin: 0 0 18px;
  color: #5f6877;
  font-size: 14px;
}

.rq-generated-creds {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 5px;
  background: #eef0f2;
}

.rq-generated-creds strong,
.rq-generated-creds span {
  color: #20242d;
  font-size: 14px;
  font-weight: 600;
}

.rq-board {
  display: grid;
  gap: 8px;
}

.rq-boss-card {
  --rq-card-bg: rgba(255, 255, 255, 0.94);
  --rq-card-gradient: transparent;
  min-height: 88px;
  position: relative;
  display: grid;
  grid-template-columns: 270px 172px 76px 208px minmax(430px, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px 18px 12px 20px;
  border-radius: 12px;
  overflow: visible;
  background-color: var(--rq-card-bg);
  background-image: var(--rq-card-gradient);
  box-shadow: 0 8px 20px rgba(50, 77, 93, 0.13);
}

.rq-boss-card[hidden] {
  display: none !important;
}

.rq-boss-card.no-timer {
  --rq-card-bg: rgba(255, 255, 255, 0.4);
  --rq-card-gradient: none;
}

.rq-boss-card.read-only {
  grid-template-columns: minmax(270px, 1fr) 172px 96px 220px;
}

.rq-admin-boss-card {
  grid-template-columns: minmax(260px, 1fr) 190px 376px;
}

.rq-admin-card-actions {
  display: grid;
  grid-template-columns: 214px 150px;
  gap: 10px;
  justify-content: flex-end;
}

.rq-admin-card-actions .rq-primary-action {
  height: 52px;
  border: 0;
  border-radius: 7px;
  color: #316bd5;
  background: #eaf1ff;
  font-size: 16px;
  font-weight: 600;
}

.rq-admin-card-actions .rq-primary-action:hover {
  color: #ffffff;
  background: #3b77df;
}

.rq-admin-card-actions .rq-primary-action:hover .rq-ui-icon {
  filter: brightness(0) invert(1);
}

.rq-admin-card-actions .rq-primary-action.danger {
  color: #df3d3d;
  background: #ffe2e2;
}

.rq-admin-card-actions .rq-primary-action.danger:hover {
  color: #df3d3d;
  background: #ffd0d0;
}

.rq-delete-icon {
  color: #df3d3d;
  font-size: 24px;
  line-height: 1;
}

.rq-boss-card.red {
  --rq-card-gradient: linear-gradient(90deg, rgba(255, 99, 99, 0.62), var(--rq-card-bg) 34%);
}

.rq-boss-card.green {
  --rq-card-gradient: linear-gradient(90deg, rgba(185, 255, 142, 0.64), var(--rq-card-bg) 34%);
}

.rq-boss-card.blue {
  --rq-card-gradient: linear-gradient(90deg, rgba(151, 232, 255, 0.74), var(--rq-card-bg) 37%);
}

.rq-boss-card.purple {
  --rq-card-gradient: linear-gradient(90deg, rgba(150, 132, 255, 0.78), rgba(218, 211, 255, 0.62) 24%, var(--rq-card-bg) 48%);
}

.rq-boss-card.yellow {
  --rq-card-gradient: linear-gradient(90deg, rgba(255, 201, 82, 0.72), var(--rq-card-bg) 35%);
}

.rq-kd-badge {
  position: absolute;
  top: -7px;
  left: -7px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #df5b00;
  font-size: 14px;
  font-weight: 900;
}

.rq-boss-main {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.rq-boss-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 0;
  background: #d8dee4;
}

.rq-boss-icon-btn {
  width: 54px;
  height: 54px;
  min-height: 54px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.rq-boss-icon-btn:hover .rq-boss-icon {
  box-shadow: 0 0 0 3px rgba(44, 104, 208, 0.22);
}

.rq-boss-icon.placeholder {
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #4f5965, #111827);
  font-size: 22px;
  font-weight: 900;
}

.rq-boss-title {
  min-width: 0;
}

.rq-boss-title h3 {
  margin: 0;
  overflow: hidden;
  color: #20242d;
  font-size: 20px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rq-boss-title span {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: #20242d;
  font-size: 16px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rq-boss-title small {
  display: flex;
  overflow: hidden;
  gap: 4px;
  align-items: center;
  color: #20242d;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rq-kill-place .rq-ui-icon {
  width: 15px;
  height: 15px;
  margin-top: 4px;
}

.rq-kill-place span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rq-boss-comment {
  display: block;
  max-width: 100%;
  margin-top: 3px;
  color: #5f6877;
  font-size: 13px;
  font-weight: 600;
}

.rq-row-countdown {
  color: #20242d;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

.rq-boss-card.red .rq-row-countdown,
.rq-row-countdown.urgent {
  color: #df242b;
}

.rq-boss-card.green .rq-row-countdown {
  color: #20242d;
}

.rq-boss-card.blue .rq-row-countdown {
  color: #20242d;
}

.rq-boss-card.purple .rq-row-countdown {
  color: #20242d;
}

.rq-boss-card .rq-row-countdown.interval-active {
  color: #2d9ba3;
}

.rq-boss-card.yellow .rq-row-countdown {
  color: #c98600;
}

.rq-row-time {
  display: grid;
  gap: 3px;
  align-content: center;
  min-width: 0;
}

.rq-row-time span,
.rq-row-time small {
  color: #5f6877;
  font-size: 15px;
  font-weight: 400;
}

.rq-row-time strong {
  color: #20242d;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.15;
}

.rq-row-time strong.rq-spawn-commented {
  position: relative;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: help;
}

.rq-row-time strong.rq-spawn-commented:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 20;
  left: 0;
  bottom: calc(100% + 8px);
  max-width: 260px;
  padding: 8px 10px;
  border-radius: 7px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.94);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.22);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  white-space: normal;
}

.rq-spawn-offset-hint {
  margin-left: 6px;
  color: #7a8491 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  vertical-align: baseline;
}

.rq-row-time strong span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.rq-row-time + .rq-row-time strong {
  font-weight: 600;
}

.rq-row-time strong .rq-interval-left.active {
  color: #df242b;
}

.rq-row-time small {
  font-size: 11px;
}

.rq-actions {
  display: grid;
  justify-content: flex-end;
  gap: 10px;
}

.rq-actions.with-admin {
  grid-template-columns: 166px 112px repeat(6, 40px);
}

.rq-actions.without-admin {
  grid-template-columns: 166px 112px repeat(4, 40px);
}

.rq-actions button {
  width: 100%;
  height: 40px;
  min-height: 40px;
  box-sizing: border-box;
  border: 0;
  border-radius: 8px;
  color: #316bd5;
  background: #e9f1ff;
  font-size: 15px;
  font-weight: 900;
  padding: 0;
}

.rq-actions button:hover {
  color: #ffffff;
  background: #3b77df;
}

.rq-actions button:hover .rq-primary-action span,
.rq-actions button:hover span {
  color: #ffffff;
}

.rq-primary-action:hover .rq-ui-icon {
  filter: brightness(0) invert(1);
}

.rq-actions .rq-square-action {
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  aspect-ratio: 1 / 1;
  display: inline-grid;
  place-items: center;
}

.rq-actions .rq-ui-icon {
  width: 23px;
  height: 23px;
  display: block;
}

.rq-primary-action {
  display: inline-flex;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}

.rq-primary-action span {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  color: #316bd5;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.rq-square-action {
  width: 42px;
  padding: 0;
  color: #20242d !important;
  background: #ebedee !important;
  font-size: 22px !important;
}

.rq-square-action:hover {
  background: #dce4e8 !important;
}

.rq-square-action.danger {
  color: #df3d3d !important;
  background: #f3d4d4 !important;
}

.rq-square-action.danger:hover {
  background: #ffd0d0 !important;
}

.rq-timer-popover {
  position: relative;
  right: auto;
  bottom: auto;
  width: min(560px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 20px 22px 22px;
  border: 1px solid #d8dee4;
  border-radius: 10px;
  color: #20242d;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 38px rgba(50, 77, 93, 0.2);
}

.rq-timer-popover::after {
  display: none;
}

.timer-popover-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.rq-timer-popover h3 {
  margin: 3px 0 2px;
  text-align: left;
  color: #20242d;
  font-size: 22px;
  font-weight: 600;
}

.timer-close {
  position: static;
  flex: 0 0 auto;
  margin-left: auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 7px;
  color: #20242d;
  background: #e6ebe8;
  font-size: 22px;
  line-height: 1;
}

.rq-actions .timer-close:hover,
.timer-close:hover {
  color: #20242d;
  background: #dce4e8;
}

.rq-timer-popover .field span,
.rq-timer-popover .check-row span {
  color: #20242d;
  font-size: 14px;
  font-weight: 500;
}

.rq-timer-popover .check-row {
  min-height: auto;
  color: #20242d;
}

.rq-timer-popover input[type="date"],
.rq-timer-popover input[type="time"],
.rq-timer-popover input[type="text"],
.rq-timer-popover input:not([type]) {
  min-height: 42px;
  border: 1px solid #d5dcd5;
  border-radius: 7px;
  padding: 0 12px;
  color: #20242d;
  background: #ffffff;
  font-size: 15px;
}

.timer-inline {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(150px, 190px);
  gap: 12px;
  padding-left: 28px;
}

.timer-cycle-input {
  width: 120px;
  justify-self: center;
  min-height: 42px;
  border: 1px solid #d5dcd5;
  border-radius: 7px;
  text-align: center;
  color: #20242d;
  background: #ffffff;
}

.rq-timer-popover .timer-buttons {
  margin: 8px -22px -22px;
  padding: 12px 16px;
  border-top: 1px solid #e1e5e9;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rq-timer-popover .timer-buttons .btn {
  min-width: 0;
  border-radius: 7px;
}

.history-modal {
  max-width: 620px;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-row {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  background: #f7f8f9;
}

.history-row strong {
  color: #20242d;
}

.history-row span,
.history-row small {
  color: #6b7280;
  font-size: 12px;
}

.history-meta {
  display: grid;
  gap: 3px;
}

.history-meta b {
  color: #20242d;
  font-weight: 600;
}

.history-time {
  display: grid;
  gap: 2px;
  padding-top: 2px;
}

.history-time span {
  color: #5f6978;
  font-size: 12px;
  font-weight: 600;
}

.history-time b {
  color: #20242d;
  font-size: 14px;
  font-weight: 700;
}

.history-row p {
  margin: 4px 0 0;
}

.boss-modal .side-section,
.participants-modal .side-section,
.room-modal .side-section {
  margin: 0;
  padding: 0;
  border: 0;
}

.boss-modal {
  width: min(720px, 100%);
  color: #20242d;
}

.boss-modal h2,
.boss-modal h3,
.boss-modal label,
.boss-modal span,
.boss-modal .field span,
.boss-modal .check-row span {
  color: #20242d;
}

.boss-modal input,
.boss-modal select {
  color: #20242d;
  background: #ffffff;
}

.participants-modal,
.room-modal {
  width: min(680px, 100%);
  color: #20242d;
}

.join-room-modal {
  width: min(540px, 100%);
}

.join-room-modal-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.join-room-modal-form input {
  min-width: 0;
  min-height: 44px;
  border: 1px solid #cfd6de;
  border-radius: 7px;
  padding: 0 12px;
  color: #20242d;
  background: #ffffff;
}

.join-room-modal-form .btn {
  min-height: 44px;
}

@media (max-width: 560px) {
  .join-room-modal-form {
    grid-template-columns: 1fr;
  }
}

.boss-visibility-modal {
  width: min(570px, calc(100vw - 24px));
  padding: 30px 24px;
  border-radius: 8px;
  color: #20242d;
}

.boss-visibility-modal h2 {
  margin: 0 0 24px;
  color: #20242d;
  font-size: 25px;
  font-weight: 600;
  text-align: center;
  text-transform: none;
}

.visibility-select-all {
  width: min(456px, 100%);
  margin: -8px auto 18px;
  display: block;
  color: #20242d;
}

.participants-modal h2,
.participants-modal label,
.participants-modal span,
.participants-modal input,
.participants-modal select,
.participants-modal button,
.room-modal h2,
.room-modal input {
  color: #20242d;
}

.participants-modal .btn {
  color: #ffffff;
}

.generate-user-form,
.create-room-form,
.join-room-form,
.participant-row,
.room-row {
  display: grid;
  gap: 10px;
}

.generate-user-form {
  grid-template-columns: minmax(0, 1fr) 130px auto;
  margin-bottom: 14px;
}

.generate-user-form input,
.generate-user-form select,
.participant-row select,
.create-room-form input,
.join-room-form input {
  min-height: 42px;
  border: 1px solid #cfd6de;
  border-radius: 5px;
  padding: 0 12px;
  background: #ffffff;
}

.create-room-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  margin-top: 14px;
}

.join-room-form {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e1e5e9;
}

.join-room-form h3 {
  grid-column: 1 / -1;
  margin: 0;
  color: #20242d;
  font-size: 16px;
  font-weight: 800;
}

.participant-row,
.room-row {
  grid-template-columns: minmax(0, 1fr) 130px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  background: #f7f8f9;
}

.participant-row .check-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0;
}

.participant-row .check-row span {
  min-width: 0;
  overflow: hidden;
  color: #20242d;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-row {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 0;
  color: #20242d;
  text-align: left;
}

.room-row.active {
  background: #eaf1ff;
  color: #316bd5;
}

.participants-list,
.room-list {
  display: grid;
  gap: 8px;
}

.visibility-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: min(58vh, 520px);
  overflow: auto;
  padding-right: 4px;
}

.visibility-row {
  display: grid;
  grid-template-columns: 22px 32px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 8px;
  border: 0;
  border-radius: 5px;
  background: #eef0f2;
}

.visibility-row input {
  width: 16px;
  height: 16px;
  accent-color: #316bd5;
}

.visibility-row img,
.visibility-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #d8dee4;
}

.visibility-placeholder {
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
}

.visibility-row strong,
.visibility-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visibility-row strong {
  color: #20242d;
  font-size: 14px;
  font-weight: 600;
}

.visibility-row small {
  margin-top: 3px;
  color: #5d6673;
  font-size: 13px;
  font-weight: 700;
}

.boss-visibility-actions {
  width: min(456px, 100%);
  display: grid;
  gap: 8px;
  margin: 24px auto 0;
}

.boss-visibility-actions .btn {
  width: 100%;
  height: 48px;
}

@media (max-width: 600px) {
  .boss-visibility-modal {
    padding-inline: 16px;
  }

  .visibility-list {
    grid-template-columns: 1fr;
  }
}

.generated-creds {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 8px;
  background: #eaf7ef;
  color: #1f6b3a;
}

.compact-settings {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e1e5e9;
}

.rq-drop-main {
  display: grid;
  gap: 12px;
}

.drop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(46, 70, 86, 0.12);
}

.drop-toolbar h1 {
  margin: 0;
  color: #20242d;
  font-size: 28px;
  font-weight: 700;
}

.drop-toolbar p {
  margin: 4px 0 0;
  color: #5f6978;
  font-size: 14px;
  font-weight: 500;
}

.drop-board {
  display: grid;
  gap: 8px;
}

.rq-actions .rq-square-action.active {
  color: #ffffff;
  background: #3b77df;
}

.rq-actions .rq-square-action.active .rq-ui-icon {
  filter: brightness(0) invert(1);
}

.drop-filter-groups {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.drop-filter-block {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.drop-filter-block > span {
  color: #5f6978;
  font-size: 13px;
  font-weight: 700;
}

.drop-filters {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 4px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(46, 70, 86, 0.1);
}

.drop-filters button {
  height: 36px;
  border: 0;
  border-radius: 7px;
  padding: 0 14px;
  color: #20242d;
  background: transparent;
  font-weight: 700;
}

.drop-filters button:hover,
.drop-filters button.active {
  color: #ffffff;
  background: #2c68d0;
}

.drop-card {
  display: grid;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(46, 70, 86, 0.12);
}

.drop-card.selling {
  background: linear-gradient(90deg, rgba(255, 225, 147, 0.78) 0, rgba(255, 255, 255, 0.94) 38%, rgba(255, 255, 255, 0.94) 100%);
}

.drop-card.paid {
  background: linear-gradient(90deg, rgba(208, 255, 194, 0.78) 0, rgba(255, 255, 255, 0.94) 38%, rgba(255, 255, 255, 0.94) 100%);
}

.drop-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.drop-delete-action {
  min-width: 116px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 7px;
  padding: 0 13px;
  color: #df3d3d;
  background: #ffe2e2;
  font-weight: 700;
}

.drop-delete-action:hover {
  background: #ffd0d0;
}

.drop-delete-action span {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #ffffff;
  background: #df3d3d;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.drop-delete-action strong {
  font-size: 15px;
  font-weight: 700;
}

.drop-card-title {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.drop-boss-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: #d8dee4;
  box-shadow: 0 4px 12px rgba(32, 36, 45, 0.14);
}

.drop-boss-icon.placeholder {
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.drop-card h2 {
  margin: 6px 0 2px;
  color: #20242d;
  font-size: 24px;
  font-weight: 700;
}

.drop-card p {
  margin: 0;
  color: #5f6978;
  font-weight: 500;
}

.drop-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  color: #2c68d0;
  background: #e9f1ff;
  font-size: 13px;
  font-weight: 700;
}

.drop-status.selling {
  color: #bd7a00;
  background: #fff0ca;
}

.drop-status.paid {
  color: #218444;
  background: #d9f6df;
}

.drop-items {
  display: grid;
  gap: 8px;
}

.drop-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(235, 239, 242, 0.72);
}

.drop-inheritance {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 2px;
}

.drop-inheritance > span,
.drop-support-payment {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  color: #2c68d0;
  background: #e9f1ff;
  font-size: 13px;
  font-weight: 700;
}

.drop-inheritance > span.external,
.drop-support-payment.external {
  color: #6b7280;
  background: #eef0f2;
}

.drop-support-payment {
  cursor: pointer;
}

.drop-support-payment input {
  width: 14px;
  height: 14px;
  accent-color: #2c68d0;
}

.drop-support-payment input:disabled {
  cursor: not-allowed;
}

.drop-support-payment small {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.drop-support-payment.paid small {
  color: #15803d;
}

.drop-inheritance strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
  font-size: inherit;
  font-weight: 800;
}

.drop-inheritance img {
  width: 16px;
  height: 16px;
}

.drop-item strong,
.drop-supports strong {
  min-width: 0;
  color: #20242d;
  font-size: 16px;
  font-weight: 700;
}

.drop-item-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.drop-item-controls select {
  height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  color: #20242d;
  background: #ffffff;
  font-weight: 600;
}

.drop-price {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #20242d;
  font-weight: 700;
}

.drop-price img {
  width: 18px;
  height: 18px;
  display: block;
}

.drop-supports {
  display: grid;
  gap: 4px;
}

.drop-support-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.drop-support-list strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  background: #e9f1ff;
  color: #2c68d0;
  font-size: 14px;
}

.drop-support-list strong.external {
  color: #6b7280;
  background: #eef0f2;
}

.drop-support-list strong button {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 5px;
  color: inherit;
  background: rgba(255, 255, 255, 0.75);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.drop-support-list strong button:hover {
  background: #dce4e8;
}

.drop-supports span,
.drop-support-picker > span {
  color: #5f6978;
  font-size: 14px;
  font-weight: 600;
}

.drop-modal {
  width: min(680px, calc(100% - 28px));
}

.drop-boss-combobox {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: stretch;
  min-height: 46px;
  border: 1px solid #d7ddd9;
  border-radius: 11px;
  background: #f8f9f7;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.drop-boss-combobox:focus-within {
  border-color: #72a9ff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.14);
}

.drop-boss-combobox > input[type="text"] {
  min-width: 0;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px 0 0 10px;
  outline: 0;
  background: transparent;
  box-shadow: none;
}

.drop-boss-combobox > input[type="text"]:focus {
  border: 0;
  outline: 0;
  box-shadow: none;
}

.drop-boss-toggle {
  position: static;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0 10px 10px 0;
  color: #5f6978;
  background: transparent;
  cursor: pointer;
}

.drop-boss-toggle span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.18s ease;
}

.drop-boss-combobox.is-open .drop-boss-toggle span {
  transform: translateY(2px) rotate(225deg);
}

.drop-boss-toggle:hover {
  color: #2c68d0;
  background: #e9f1ff;
}

.drop-boss-options {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  grid-column: 1 / -1;
  display: grid;
  max-height: 240px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid #d3d8e1;
  border-radius: 11px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(32, 36, 45, 0.18);
}

.drop-boss-options[hidden] {
  display: none;
}

.drop-boss-options button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  padding: 8px 10px;
  color: #20242d;
  background: transparent;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
}

.drop-boss-options button:hover,
.drop-boss-options button[aria-selected="true"] {
  color: #ffffff;
  background: #2c68d0;
}

.drop-boss-options small {
  padding: 10px;
  color: #6b7280;
}

.drop-payment-modal .field {
  margin: 16px 0;
}

.room-settings-form {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 150px;
  gap: 10px;
  align-items: end;
  margin: 8px 0 18px;
}

.room-settings-form label {
  display: grid;
  gap: 6px;
  color: #5f6978;
  font-size: 14px;
  font-weight: 600;
}

.room-settings-form input {
  height: 40px;
  border: 0;
  border-radius: 7px;
  padding: 0 12px;
  color: #20242d;
  background: #eef0f2;
  font-weight: 700;
}

.room-settings-form .btn {
  height: 40px;
}

.drop-support-picker {
  display: grid;
  gap: 8px;
}

.drop-support-picker > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 242px;
  overflow: auto;
}

.drop-support-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 7px;
  background: #eef0f2;
  color: #20242d;
  font-weight: 600;
}

.drop-support-picker input {
  width: 16px;
  height: 16px;
  accent-color: #2c68d0;
}

.drop-manual-supports {
  display: grid;
  gap: 8px;
}

.drop-manual-supports-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #5f6978;
  font-size: 14px;
  font-weight: 600;
}

.drop-manual-supports-head .compact-btn {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.ui-tooltip {
  position: relative;
  overflow: visible;
}

.ui-tooltip::after {
  content: attr(data-ui-tooltip);
  position: absolute;
  z-index: 1200;
  left: 50%;
  bottom: calc(100% + 9px);
  width: max-content;
  max-width: min(240px, calc(100vw - 24px));
  padding: 7px 9px;
  border-radius: 7px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.96);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.24);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 4px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
}

.ui-tooltip:hover::after,
.ui-tooltip:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.rq-app-header .ui-tooltip::after,
.modal-head .ui-tooltip::after,
.rq-confirm-modal > .ui-tooltip::after,
.timer-modal > .ui-tooltip::after {
  top: calc(100% + 9px);
  bottom: auto;
  transform: translate(-50%, -4px);
}

.rq-app-header .ui-tooltip:hover::after,
.rq-app-header .ui-tooltip:focus-visible::after,
.modal-head .ui-tooltip:hover::after,
.modal-head .ui-tooltip:focus-visible::after,
.rq-confirm-modal > .ui-tooltip:hover::after,
.rq-confirm-modal > .ui-tooltip:focus-visible::after,
.timer-modal > .ui-tooltip:hover::after,
.timer-modal > .ui-tooltip:focus-visible::after {
  transform: translate(-50%, 0);
}

.drop-manual-supports-list {
  display: grid;
  gap: 8px;
}

.drop-manual-support-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 8px;
  align-items: center;
}

.drop-manual-support-row input {
  min-width: 0;
  height: 42px;
  border: 1px solid #d3d8d1;
  border-radius: 7px;
  padding: 0 12px;
  color: #20242d;
  background: #fbfcfa;
}

html.theme-dark .rq-auth-wrap,
html.theme-dark .rq-drop-main,
html.theme-dark .rq-main,
html.theme-dark .rq-global-admin-main {
  background: transparent;
  background-color: transparent;
}

html.theme-dark body:has(.rq-shell),
html.theme-dark body:has(.rq-auth-wrap),
html.theme-dark .rq-shell {
  background:
    linear-gradient(90deg, rgba(9, 16, 25, 0.9), rgba(9, 16, 25, 0.68)),
    url("/assets/rq-bg.png") center / cover fixed no-repeat;
}

html.theme-dark .rq-app-header,
html.theme-dark .dps-header,
html.theme-dark .rq-auth-card,
html.theme-dark .modal,
html.theme-dark .admin-block,
html.theme-dark .rq-toolbar,
html.theme-dark .drop-toolbar,
html.theme-dark .room-card,
html.theme-dark .welcome-card,
html.theme-dark .rq-admin-room-jump,
html.theme-dark .rq-admin-boss-card,
html.theme-dark .drop-card,
html.theme-dark .rq-empty,
html.theme-dark .support-board,
html.theme-dark .support-manager,
html.theme-dark .support-side,
html.theme-dark .drop-item,
html.theme-dark .drop-support-picker label,
html.theme-dark .boss-picker-item,
html.theme-dark .member-row,
html.theme-dark .room-row {
  border-color: rgba(148, 163, 184, 0.24);
  background-color: rgba(24, 33, 49, 0.92);
  color: var(--text);
  box-shadow: var(--shadow);
}

html.theme-dark .drop-boss-options {
  border-color: rgba(148, 163, 184, 0.28);
  background: #182131;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
}

html.theme-dark .drop-boss-options button {
  color: #e8edf5;
}

html.theme-dark .drop-boss-options button:hover,
html.theme-dark .drop-boss-options button[aria-selected="true"] {
  color: #ffffff;
  background: #2c68d0;
}

html.theme-dark .rq-app-header,
html.theme-dark .dps-header {
  background-color: rgba(14, 22, 34, 0.96);
}

html.theme-dark .rq-header-actions .rq-dps-link,
html.theme-dark .rq-room-switch,
html.theme-dark .rq-lang,
html.theme-dark .rq-header-icon,
html.theme-dark .rq-server-select,
html.theme-dark .rq-search,
html.theme-dark .rq-admin-room-chip,
html.theme-dark .drop-filters button,
html.theme-dark .btn.secondary,
html.theme-dark .icon-btn,
html.theme-dark .compact-btn {
  background-color: #233044;
  color: var(--text);
}

html.theme-dark .rq-room-switch {
  background: transparent;
}

html.theme-dark .rq-room-switch i {
  color: #dce8ff;
  background: rgba(148, 163, 184, 0.18);
}

html.theme-dark .rq-room-dropdown {
  border-color: #334155;
  background: rgba(24, 33, 49, 0.99);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

html.theme-dark .rq-room-dropdown-item,
html.theme-dark .rq-room-dropdown-join {
  color: #eef4ff;
}

html.theme-dark .rq-room-dropdown-item:hover,
html.theme-dark .rq-room-dropdown-item.active,
html.theme-dark .rq-room-dropdown-join:hover {
  color: #8db6ff;
  background: rgba(59, 119, 223, 0.24);
}

html.theme-dark .rq-room-dropdown-join {
  border-top-color: #334155;
}

html.theme-dark .rq-header-actions .rq-dps-link:hover,
html.theme-dark .rq-header-icon:hover,
html.theme-dark .rq-lang:hover,
html.theme-dark .btn.secondary:hover,
html.theme-dark .icon-btn:hover,
html.theme-dark .compact-btn:hover,
html.theme-dark .drop-filters button:hover,
html.theme-dark .drop-filters button.active {
  background-color: #334761;
  color: #ffffff;
}

html.theme-dark input,
html.theme-dark select,
html.theme-dark textarea,
html.theme-dark .rq-auth-input,
html.theme-dark .rq-search input,
html.theme-dark .room-settings-form input,
html.theme-dark .drop-manual-support-row input {
  border-color: #334155;
  background-color: #111827;
  color: var(--text);
}

html.theme-dark input::placeholder,
html.theme-dark textarea::placeholder {
  color: #748195;
}

html.theme-dark .rq-boss-card,
html.theme-dark .rq-boss-card.default {
  background:
    linear-gradient(90deg, rgba(24, 33, 49, 0.96) 0%, rgba(24, 33, 49, 0.9) 44%, rgba(24, 33, 49, 0.96) 100%);
  color: var(--text);
}

html.theme-dark .rq-boss-card.green {
  background:
    linear-gradient(90deg, rgba(86, 255, 143, 0.28) 0%, rgba(24, 33, 49, 0.93) 38%, rgba(24, 33, 49, 0.96) 100%);
}

html.theme-dark .rq-boss-card.red {
  background:
    linear-gradient(90deg, rgba(255, 82, 92, 0.34) 0%, rgba(24, 33, 49, 0.93) 38%, rgba(24, 33, 49, 0.96) 100%);
}

html.theme-dark .rq-boss-card.yellow {
  background:
    linear-gradient(90deg, rgba(255, 197, 66, 0.36) 0%, rgba(24, 33, 49, 0.93) 38%, rgba(24, 33, 49, 0.96) 100%);
}

html.theme-dark .rq-boss-card.blue {
  background:
    linear-gradient(90deg, rgba(90, 213, 255, 0.32) 0%, rgba(24, 33, 49, 0.93) 38%, rgba(24, 33, 49, 0.96) 100%);
}

html.theme-dark .rq-boss-card.purple {
  background:
    linear-gradient(90deg, rgba(139, 92, 246, 0.48) 0%, rgba(76, 54, 135, 0.48) 36%, rgba(24, 33, 49, 0.96) 100%);
}

html.theme-dark .rq-row-label,
html.theme-dark .rq-muted-note,
html.theme-dark .drop-toolbar p,
html.theme-dark .drop-filter-block > span,
html.theme-dark .drop-card p,
html.theme-dark .drop-supports span,
html.theme-dark .drop-support-picker > span,
html.theme-dark .drop-manual-supports-head,
html.theme-dark .room-settings-form label {
  color: var(--muted);
}

html.theme-dark .rq-row-time,
html.theme-dark .rq-row-time strong,
html.theme-dark .rq-row-title,
html.theme-dark .rq-row-countdown,
html.theme-dark .drop-card h2,
html.theme-dark .drop-item strong,
html.theme-dark .drop-support-list strong {
  color: var(--text);
}

html.theme-dark .rq-row-countdown.red,
html.theme-dark .rq-boss-card.red .rq-row-countdown {
  color: #ff6b73;
}

html.theme-dark .rq-row-countdown.green,
html.theme-dark .rq-boss-card.green .rq-row-countdown {
  color: #7df0a8;
}

html.theme-dark .rq-row-countdown.yellow,
html.theme-dark .rq-boss-card.yellow .rq-row-countdown {
  color: #ffc857;
}

html.theme-dark .rq-card-action,
html.theme-dark .rq-icon-action,
html.theme-dark .drop-item-controls select {
  background-color: #233044;
  color: var(--text);
}

html.theme-dark .rq-card-action:hover,
html.theme-dark .rq-icon-action:hover {
  background-color: #3b77df;
  color: #ffffff;
}

html.theme-dark .modal-backdrop {
  background: rgba(2, 6, 12, 0.68);
}

html.theme-dark .rq-alert,
html.theme-dark .alert {
  border-color: rgba(255, 127, 135, 0.35);
  background: rgba(90, 24, 34, 0.72);
  color: #ffc6cb;
}

html.theme-dark .rq-shell {
  color: #eef4ff;
}

html.theme-dark .rq-brand img,
html.theme-dark .rq-auth-logo {
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.32));
}

html.theme-dark .rq-brand strong,
html.theme-dark .rq-room-title,
html.theme-dark .rq-auth-title,
html.theme-dark .rq-boss-title h3,
html.theme-dark .rq-boss-title span,
html.theme-dark .rq-boss-title small,
html.theme-dark .rq-kill-place span,
html.theme-dark .rq-admin-card h1,
html.theme-dark .rq-admin-card strong,
html.theme-dark .rq-member-row strong,
html.theme-dark .drop-toolbar h1,
html.theme-dark .drop-card h2,
html.theme-dark .drop-item strong,
html.theme-dark .drop-supports strong,
html.theme-dark .drop-price {
  color: #eef4ff;
}

html.theme-dark .rq-server-select,
html.theme-dark .rq-search {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(17, 24, 39, 0.92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

html.theme-dark .rq-server-select span,
html.theme-dark .rq-search input,
html.theme-dark .rq-search span {
  color: #dbe6f5;
}

html.theme-dark .rq-search input::placeholder {
  color: #8392a8;
}

html.theme-dark .rq-search .rq-ui-icon {
  filter: brightness(0) invert(1) opacity(0.75);
}

html.theme-dark .rq-primary-action,
html.theme-dark .rq-square-action,
html.theme-dark .rq-actions button {
  color: #dbeafe !important;
  background: #243149 !important;
}

html.theme-dark .rq-actions .rq-ui-icon,
html.theme-dark .rq-primary-action .rq-ui-icon,
html.theme-dark .rq-square-action .rq-ui-icon {
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

html.theme-dark .rq-primary-action:hover,
html.theme-dark .rq-square-action:hover,
html.theme-dark .rq-actions button:hover {
  color: #ffffff !important;
  background: #3b77df !important;
}

html.theme-dark .rq-primary-action span {
  color: #dbeafe;
}

html.theme-dark .rq-primary-action:hover span {
  color: #ffffff;
}

html.theme-dark .rq-head-btn:not(.danger),
html.theme-dark .rq-lang,
html.theme-dark .rq-dps-link {
  color: #e7eefb;
  background: #233044;
}

html.theme-dark .rq-head-btn:not(.danger):hover,
html.theme-dark .rq-lang:hover,
html.theme-dark .rq-dps-link:hover {
  color: #ffffff;
  background: #334761;
}

html.theme-dark .rq-head-btn:not(.danger) .rq-ui-icon {
  filter: brightness(0) invert(1);
}

html.theme-dark .rq-about-btn {
  color: #aeb8c7;
  background: #233044;
}

html.theme-dark .rq-about-btn:hover {
  color: #ffffff;
  background: #334761;
}

html.theme-dark .rq-head-btn.danger {
  color: #ff6b73;
  background: rgba(127, 29, 29, 0.72);
}

html.theme-dark .rq-head-btn.danger:hover {
  color: #ffffff;
  background: #df3d3d;
}

html.theme-dark .rq-admin-card,
html.theme-dark .rq-welcome-card,
html.theme-dark .room-flow-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(24, 33, 49, 0.95);
  color: #eef4ff;
}

html.theme-dark .rq-member-row,
html.theme-dark .rq-members-head {
  color: #dbe6f5;
}

html.theme-dark .rq-member-row {
  background: rgba(35, 48, 68, 0.84);
}

html.theme-dark .rq-member-row select,
html.theme-dark .room-settings-form input {
  background: #111827;
  color: #eef4ff;
}

html.theme-dark .drop-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(24, 33, 49, 0.94);
}

html.theme-dark .drop-card.selling {
  background:
    linear-gradient(90deg, rgba(178, 126, 28, 0.42) 0, rgba(24, 33, 49, 0.95) 36%, rgba(24, 33, 49, 0.95) 100%);
}

html.theme-dark .drop-card.paid {
  background:
    linear-gradient(90deg, rgba(56, 145, 83, 0.4) 0, rgba(24, 33, 49, 0.95) 36%, rgba(24, 33, 49, 0.95) 100%);
}

html.theme-dark .drop-item {
  background: rgba(35, 48, 68, 0.86);
}

html.theme-dark .drop-inheritance > span,
html.theme-dark .drop-support-payment,
html.theme-dark .drop-support-list strong {
  color: #dbeafe;
  background: #243149;
}

html.theme-dark .drop-inheritance > span.external,
html.theme-dark .drop-support-payment.external,
html.theme-dark .drop-support-list strong.external {
  color: #aeb8c7;
  background: #1f2937;
}

html.theme-dark .drop-status {
  color: #dbeafe;
  background: #243149;
}

html.theme-dark .drop-status.selling {
  color: #ffd27a;
  background: rgba(146, 96, 16, 0.42);
}

html.theme-dark .drop-status.paid {
  color: #9bf2b5;
  background: rgba(22, 101, 52, 0.48);
}

html.theme-dark .drop-item-controls select {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #111827;
  color: #eef4ff;
}

html.theme-dark .drop-delete-action {
  color: #ff9aa0;
  background: rgba(127, 29, 29, 0.58);
}

html.theme-dark .drop-delete-action:hover {
  color: #ffffff;
  background: #df3d3d;
}

html.theme-dark .rq-timer-popover {
  border-color: rgba(148, 163, 184, 0.28);
  color: #eef4ff;
  background: rgba(24, 33, 49, 0.98);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
}

html.theme-dark .rq-timer-popover h3,
html.theme-dark .rq-timer-popover .field span,
html.theme-dark .rq-timer-popover .check-row span,
html.theme-dark .rq-timer-popover .check-row {
  color: #eef4ff;
}

html.theme-dark .rq-timer-popover input[type="date"],
html.theme-dark .rq-timer-popover input[type="time"],
html.theme-dark .rq-timer-popover input[type="text"],
html.theme-dark .rq-timer-popover input:not([type]),
html.theme-dark .timer-cycle-input {
  border-color: #3b4a60;
  color: #eef4ff;
  background: #111827;
}

html.theme-dark .rq-timer-popover input::placeholder {
  color: #8190a4;
}

html.theme-dark .timer-close {
  color: #eef4ff;
  background: #233044;
}

html.theme-dark .timer-close:hover {
  background: #334761;
}

html.theme-dark .rq-timer-popover .timer-buttons {
  border-top-color: rgba(148, 163, 184, 0.22);
  background: rgba(17, 24, 39, 0.5);
}

html.theme-dark .rq-timer-popover .btn.secondary {
  color: #eef4ff;
  background: #233044;
}

html.theme-dark .modal {
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(24, 33, 49, 0.99);
  color: #eef4ff;
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.54);
}

html.theme-dark .modal-backdrop.soft {
  background: rgba(2, 6, 12, 0.74);
}

html.theme-dark .modal-head h2,
html.theme-dark .modal h2,
html.theme-dark .modal h3,
html.theme-dark .rq-confirm-modal h2,
html.theme-dark .rq-about-modal h2,
html.theme-dark .rq-announcement-modal h2,
html.theme-dark .rq-invite-modal h2,
html.theme-dark .room-modal h2,
html.theme-dark .participants-modal h2,
html.theme-dark .boss-visibility-modal h2 {
  color: #f3f7ff;
}

html.theme-dark .modal p,
html.theme-dark .rq-confirm-modal p,
html.theme-dark .rq-about-modal p,
html.theme-dark .rq-announcement-modal p,
html.theme-dark .rq-invite-modal p,
html.theme-dark .modal label,
html.theme-dark .modal span,
html.theme-dark .modal small,
html.theme-dark .field span,
html.theme-dark .check-row span {
  color: #d4deee;
}

html.theme-dark .history-row {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 36, 0.92);
}

html.theme-dark .history-row strong,
html.theme-dark .history-meta b,
html.theme-dark .history-time b {
  color: #f3f7ff;
}

html.theme-dark .history-row span,
html.theme-dark .history-row small,
html.theme-dark .history-time span {
  color: #9fb0c7;
}

html.theme-dark .history-row p {
  color: #d4deee;
}

html.theme-dark .modal .rq-muted-note,
html.theme-dark .modal .rq-room-admin-row small,
html.theme-dark .modal .rq-room-admin-row em {
  color: #aeb8c7;
}

html.theme-dark .modal input,
html.theme-dark .modal select,
html.theme-dark .modal textarea {
  border-color: #43536a;
  background: #111827;
  color: #f3f7ff;
}

html.theme-dark .modal input::placeholder,
html.theme-dark .modal textarea::placeholder {
  color: #95a1b4;
}

html.theme-dark .room-row,
html.theme-dark .visibility-row,
html.theme-dark .participant-row,
html.theme-dark .notify-rule-row,
html.theme-dark .rq-generated-creds {
  background: rgba(35, 48, 68, 0.92);
  color: #f3f7ff;
}

html.theme-dark .room-row.active {
  background: rgba(59, 119, 223, 0.32);
}

html.theme-dark .visibility-row strong,
html.theme-dark .visibility-row small,
html.theme-dark .room-row strong,
html.theme-dark .room-row small {
  color: inherit;
}

html.theme-dark .modal .icon-btn,
html.theme-dark .rq-invite-modal .icon-btn,
html.theme-dark .rq-confirm-modal .icon-btn,
html.theme-dark .rq-about-modal .icon-btn,
html.theme-dark .rq-announcement-modal .icon-btn {
  color: #f3f7ff;
  background: #26354c;
}

html.theme-dark .modal .icon-btn:hover {
  background: #334761;
}


.rq-alert,
.rq-empty {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 10px;
  color: #9c2525;
  background: rgba(255, 236, 236, 0.96);
}

.rq-empty {
  color: #6b7280;
  background: rgba(255, 255, 255, 0.92);
}

.rq-admin {
  margin: 22px 0 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(50, 77, 93, 0.13);
  overflow: hidden;
}

.rq-admin summary {
  cursor: pointer;
  padding: 14px 16px;
  color: #20242d;
  font-weight: 900;
}

.rq-admin-grid {
  padding: 16px;
}

.rq-admin .side-section {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.rq-admin .admin-panel {
  margin: 0;
  padding: 0;
  border: 0;
}

@media (max-width: 1200px) {
  .rq-boss-card {
    grid-template-columns: minmax(200px, 1fr) 142px 70px 168px;
    padding: 12px 14px;
  }

  .rq-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .rq-actions.with-admin {
    grid-template-columns: repeat(8, 40px);
  }

  .rq-actions.without-admin {
    grid-template-columns: repeat(6, 40px);
  }

  .rq-primary-action {
    padding: 0;
  }

  .rq-primary-action span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

@media (max-width: 760px) {
  :root {
    --rq-page-gutter: 24px;
  }

  .rq-app-header {
    height: auto;
    padding: 10px 0;
  }

  .rq-header-inner,
  .rq-brand,
  .rq-header-actions,
  .rq-actions {
    flex-wrap: wrap;
  }

  .rq-toolbar {
    grid-template-columns: repeat(3, 42px) 1fr;
  }

  .rq-toolbar > .rq-server-select,
  .rq-toolbar > .rq-search,
  .rq-toolbar > .rq-add {
    grid-column: 1 / -1;
  }

  .rq-boss-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .rq-row-countdown {
    text-align: left;
  }

  .drop-toolbar,
  .drop-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .drop-card-title {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .drop-boss-icon {
    width: 48px;
    height: 48px;
  }

  .drop-item {
    grid-template-columns: 1fr;
  }

  .drop-item-controls,
  .drop-support-picker > div {
    grid-template-columns: 1fr;
  }

  .drop-item-controls {
    flex-wrap: wrap;
  }
}

/* Global admin layout and destructive action icons */
.rq-global-admin-main .admin-panel {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.admin-heading {
  margin: 0;
  padding: 18px 22px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(46, 70, 86, 0.12);
}

.admin-heading h2 {
  margin: 0;
}

.admin-heading p {
  margin: 4px 0 0;
}

.admin-tabs {
  margin: 0 0 2px;
}

.admin-tab-panel.active {
  margin-top: 0;
}

.admin-monsters-panel.active {
  display: grid;
  gap: 12px;
}

.admin-monsters-panel .rq-admin-add {
  margin: 0;
}

.admin-monsters-panel .rq-admin-room-jump {
  margin: 0;
}

.admin-slot-picker {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  align-items: end;
  gap: 6px;
  min-width: 0;
  min-height: 0;
  padding: 0;
}

.admin-slot-picker legend {
  position: static;
  grid-column: 1 / -1;
  width: 100%;
  margin: 0 0 2px;
  padding: 0;
  line-height: 1.3;
}

.admin-slot-picker legend small {
  font-weight: 500;
}

.admin-item-form {
  padding: 18px;
}

.admin-item-form .field {
  gap: 8px;
}

.admin-item-form .field input,
.admin-item-form > .btn {
  min-height: 42px;
}

.admin-item-card > img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.admin-item-card button img,
.rq-square-action.danger img,
.rq-room-delete img,
.rq-member-remove img {
  width: 20px;
  height: 20px;
  border-radius: 0;
  object-fit: contain;
}

.admin-item-card button img,
.rq-square-action.danger img,
.rq-room-delete img {
  filter: invert(37%) sepia(80%) saturate(2243%) hue-rotate(334deg) brightness(102%) contrast(101%);
}

.rq-member-remove,
.rq-room-delete,
.rq-square-action.danger,
.admin-item-card button {
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.rq-member-remove img {
  filter: invert(18%) sepia(91%) saturate(3397%) hue-rotate(353deg) brightness(91%) contrast(87%);
}

.rq-primary-action .rq-delete-icon {
  width: 20px;
  height: 20px;
  filter: invert(37%) sepia(80%) saturate(2243%) hue-rotate(334deg) brightness(102%) contrast(101%);
}

.drop-inheritance {
  gap: 8px;
}

.drop-inheritance > span,
.drop-support-payment {
  min-height: 34px;
  gap: 8px;
  padding: 6px 10px;
}

.drop-support-payment input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
}

.drop-support-payment small {
  margin-left: 2px;
}

html.theme-dark .admin-heading {
  background: #1a2533;
}

@media (max-width: 1100px) {
  .admin-item-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-slot-picker,
  .admin-item-form > .btn {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .admin-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .admin-item-form {
    grid-template-columns: 1fr;
  }

  .admin-slot-picker {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Add drop modal — reference layout */
.drop-modal {
  display: grid;
  width: min(680px, 100%);
  max-width: 100%;
  max-height: calc(100vh - 32px);
  gap: 24px;
  padding: 32px;
  border: 0;
  border-radius: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
}

.drop-modal .modal-head {
  align-items: center;
  min-height: 40px;
  margin: 0;
}

.drop-modal .modal-head h2 {
  color: #20242d;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.drop-modal .drop-modal-close,
.drop-modal .drop-support-remove {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 7px;
  background: #eef0f2;
}

.drop-modal .drop-modal-close img {
  width: 24px;
  height: 24px;
}

.drop-modal .drop-support-remove {
  width: 48px;
  height: 48px;
}

.drop-modal .drop-support-remove img {
  width: 20px;
  height: 20px;
}

.drop-modal .field,
.drop-support-picker,
.drop-manual-supports {
  display: grid;
  gap: 10px;
  margin: 0;
}

.drop-modal .field > span,
.drop-support-picker > span,
.drop-manual-supports-head {
  color: #85898f;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.drop-modal .field > input,
.drop-modal .field > select,
.drop-modal .field .rq-select-trigger,
.drop-boss-combobox,
.drop-manual-support-row input {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: #20242d;
  background-color: #eef0f2;
  box-shadow: none;
}

.drop-modal .field > input,
.drop-manual-support-row input {
  padding: 0 16px;
}

.drop-modal .field > input::placeholder,
.drop-manual-support-row input::placeholder,
.drop-boss-combobox > input[type="text"]::placeholder {
  color: #8b8f95;
  opacity: 1;
}

.drop-modal .field .rq-select-trigger {
  padding: 0 16px;
}

.drop-modal .field .rq-select-arrow {
  width: 14px;
  height: 14px;
  border: 0;
  background: url("/assets/ui/arrow-down.svg") center / 14px 14px no-repeat;
  transform: none;
}

.drop-modal .field .rq-select.is-open .rq-select-arrow {
  transform: rotate(180deg);
}

.drop-boss-combobox {
  grid-template-columns: minmax(0, 1fr) 48px;
  min-height: 48px;
}

.drop-boss-combobox > input[type="text"] {
  height: 48px;
  padding: 0 16px;
}

.drop-boss-toggle {
  width: 48px;
  min-width: 48px;
  height: 48px;
  border-radius: 0 8px 8px 0;
  background: url("/assets/ui/arrow-down.svg") center / 14px 14px no-repeat;
}

.drop-boss-toggle span {
  display: none;
}

.drop-boss-combobox.is-open .drop-boss-toggle {
  transform: rotate(180deg);
}

.drop-boss-combobox:focus-within,
.drop-modal .field .rq-select-trigger:focus-visible,
.drop-modal .field .rq-select.is-open .rq-select-trigger,
.drop-modal .field > input:focus,
.drop-manual-support-row input:focus {
  border: 1px solid #72a9ff;
  outline: 0;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.12);
}

.drop-modal input[type="date"] {
  padding-right: 48px;
  background-image: url("/assets/ui/calendar.svg");
  background-position: right 16px center;
  background-size: 18px 18px;
  background-repeat: no-repeat;
}

.drop-modal input[type="date"]::-webkit-calendar-picker-indicator {
  width: 22px;
  height: 22px;
  margin-right: -34px;
  opacity: 0;
  cursor: pointer;
}

.drop-support-picker > div {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-height: 288px;
  padding: 0;
}

.drop-support-picker label {
  min-height: 48px;
  gap: 10px;
  padding: 0 16px;
  border-radius: 8px;
  background: #eef0f2;
  font-size: 15px;
  font-weight: 500;
}

.drop-support-picker input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 0;
  appearance: none;
  background: url("/assets/ui/tick-square.svg") center / 20px 20px no-repeat;
  cursor: pointer;
}

.drop-support-picker input[type="checkbox"]:checked {
  background-image: url("/assets/ui/tick-square-1.svg");
}

.drop-manual-supports-list {
  gap: 10px;
}

.drop-manual-support-row {
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 12px;
}

.drop-add-manual-support {
  min-height: 48px;
  border-color: #ccd1d8;
  border-radius: 8px;
  color: #20242d;
  font-size: 15px;
  font-weight: 500;
}

.drop-modal .timer-buttons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.drop-modal .timer-buttons .btn {
  min-height: 48px;
  border-radius: 7px;
  font-weight: 600;
}

.drop-modal .timer-buttons .btn.secondary {
  color: #2c68d0;
  background: #e4ebf8;
}

.drop-modal .timer-buttons .btn:not(.secondary) {
  color: #fff;
  background: #2c68d0;
}

html.theme-dark .drop-modal {
  background: #182131;
}

html.theme-dark .drop-modal .modal-head h2 {
  color: #edf2fb;
}

html.theme-dark .drop-modal .drop-modal-close img,
html.theme-dark .drop-modal .drop-support-remove img,
html.theme-dark .drop-modal input[type="date"],
html.theme-dark .drop-boss-toggle,
html.theme-dark .drop-modal .field .rq-select-arrow {
  filter: invert(1);
}

@media (max-width: 760px) {
  .drop-modal {
    width: 100%;
    padding: 24px 18px;
  }

  .drop-support-picker > div {
    grid-template-columns: 1fr;
  }
}

/* Drop calculator 0.2 */
.drop-toolbar-actions,
.drop-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drop-toolbar-actions .btn,
.drop-toolbar-actions .rq-add {
  min-height: 46px;
}

.drop-toolbar-actions .btn.active {
  color: #fff;
  background: #2c68d0;
}

.drop-filter-groups {
  padding: 4px 0;
}

.drop-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.drop-sort > .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.drop-sort select,
.drop-card-actions select {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 38px 0 14px;
  color: #20242d;
  background: #fff;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(46, 70, 86, 0.1);
}

.drop-card {
  gap: 10px;
  padding: 16px;
}

.drop-card-head {
  align-items: center;
}

.drop-card-title {
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
}

.drop-boss-icon {
  width: 50px;
  height: 50px;
}

.drop-card-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 3px 8px;
  min-width: 0;
}

.drop-card-copy h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drop-item-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.drop-slot-icons {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
}

.drop-slot-icons img,
.admin-item-card .drop-slot-icons img {
  display: block;
  width: 15px;
  height: 21px;
  border-radius: 1px;
  object-fit: contain;
  image-rendering: auto;
}

.drop-card-copy p {
  grid-column: 1 / -1;
  font-size: 13px;
}

.drop-card-actions select {
  background-color: #eef0f2;
  box-shadow: none;
}

.drop-delete-action {
  min-width: 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 18px;
}

.drop-card-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 62px;
  color: #20242d;
  font-size: 18px;
  font-weight: 800;
}

.drop-card-price img {
  width: 18px;
  height: 18px;
}

.drop-legacy-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: 62px;
}

.drop-legacy-items span {
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(238, 240, 242, 0.9);
  color: #5f6978;
  font-size: 12px;
  font-weight: 700;
}

.drop-card > .drop-inheritance,
.drop-card > .drop-supports {
  margin-left: 62px;
}

.drop-modal {
  max-height: calc(100vh - 32px);
  padding: 28px 32px 30px;
  overflow-y: auto;
}

.drop-modal .modal-head {
  margin-bottom: 20px;
}

.drop-modal form {
  display: grid;
  gap: 20px;
}

.drop-modal .field {
  gap: 8px;
}

.drop-modal .field > span,
.drop-support-picker > span,
.drop-manual-supports-head {
  color: #7a7f86;
  font-weight: 500;
}

.drop-modal .field > input,
.drop-modal .field > select {
  min-height: 48px;
  border-radius: 8px;
  background-color: #eef0f2;
}

.drop-support-picker > div {
  max-height: 292px;
}

.drop-support-picker label {
  min-height: 48px;
  padding: 10px 16px;
}

.drop-manual-support-row {
  grid-template-columns: minmax(0, 1fr) 48px;
}

.drop-manual-support-row input,
.drop-manual-support-row .icon-btn {
  height: 48px;
}

.drop-add-manual-support {
  min-height: 48px;
  border: 1px dashed #c6ccd4;
  border-radius: 8px;
  color: #20242d;
  background: transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.drop-add-manual-support:hover {
  border-color: #2c68d0;
  color: #2c68d0;
  background: #f4f7ff;
}

.drop-add-manual-support span {
  margin-right: 8px;
  font-size: 21px;
  font-weight: 400;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(46, 70, 86, 0.1);
}

.admin-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  padding: 0 16px;
  color: #20242d;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.admin-tabs button:hover,
.admin-tabs button.active {
  color: #fff;
  background: #2c68d0;
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: grid;
  gap: 14px;
}

.admin-item-form {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr) auto auto;
  align-items: end;
  gap: 14px;
}

.admin-slot-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 260px;
  min-height: 48px;
  margin: 0;
  border: 0;
  padding: 20px 0 0;
}

.admin-slot-picker legend {
  position: absolute;
  margin-top: -20px;
  color: #5f6978;
  font-size: 13px;
  font-weight: 600;
}

.admin-slot-picker label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  border-radius: 7px;
  padding: 0 10px;
  background: #eef0f2;
  color: #20242d;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.admin-slot-picker input {
  width: 16px;
  height: 16px;
  accent-color: #2c68d0;
}

.admin-item-form > div:first-child {
  grid-column: 1 / -1;
}

.admin-recipe-picker {
  grid-column: 1 / 3;
}

.drop-item-artwork {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  overflow: hidden;
}

.drop-item-artwork-base,
.drop-item-artwork-overlay {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drop-item-artwork-overlay {
  z-index: 1;
  pointer-events: none;
}

.drop-boss-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.admin-item-artwork {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.admin-item-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(var(--admin-item-card-width, 420px), 100%), 1fr));
  gap: 10px;
}

.admin-item-search {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  color: #69717d;
  font-size: 13px;
}

.admin-item-search input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #d8dde4;
  border-radius: 8px;
  color: #20242d;
  background: #ffffff;
}

html.theme-dark .admin-item-search input {
  border-color: #334155;
  color: #edf4ff;
  background: #1a2533;
}

.admin-item-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(46, 70, 86, 0.1);
}

.admin-item-card[hidden] {
  display: none !important;
}

.admin-item-card-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.admin-item-card-copy strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-item-card-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.admin-item-card-actions button:first-child {
  color: #2c68d0;
  background: #e4edff;
}

.admin-item-edit-modal {
  width: min(620px, calc(100vw - 24px));
}

.admin-item-edit-preview {
  display: flex;
  justify-content: center;
}

.admin-item-edit-preview .admin-item-artwork {
  width: 64px;
  height: 64px;
}

.admin-item-edit-modal .admin-slot-picker {
  width: 100%;
}

.admin-item-edit-modal .modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-item-card img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.admin-item-card button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 7px;
  color: #df3d3d;
  background: #ffe2e2;
  cursor: pointer;
}

html.theme-dark .admin-tabs,
html.theme-dark .admin-item-card,
html.theme-dark .drop-sort select {
  background: #1a2533;
}

html.theme-dark .admin-tabs button,
html.theme-dark .admin-item-card,
html.theme-dark .drop-sort select,
html.theme-dark .drop-card-actions select {
  color: #edf4ff;
}

html.theme-dark .drop-card-actions select,
html.theme-dark .drop-modal .field > input,
html.theme-dark .drop-modal .field > select,
html.theme-dark .admin-slot-picker label {
  background-color: #243244;
}

html.theme-dark .admin-slot-picker label {
  color: #edf4ff;
}

@media (max-width: 760px) {
  .drop-toolbar-actions,
  .drop-filter-groups,
  .drop-filter-block,
  .drop-card-actions {
    width: 100%;
  }

  .drop-toolbar-actions > *,
  .drop-filter-block .drop-filters {
    flex: 1;
  }

  .drop-filters {
    flex-wrap: wrap;
  }

  .drop-sort {
    width: 100%;
    margin-left: 0;
  }

  .drop-sort select {
    width: 100%;
  }

  .drop-card-actions select {
    flex: 1;
  }

  .drop-card > .drop-inheritance,
  .drop-card > .drop-supports,
  .drop-card-price,
  .drop-legacy-items {
    margin-left: 0;
  }

  .drop-modal {
    padding: 22px 18px;
  }

  .drop-support-picker > div,
  .admin-item-form {
    grid-template-columns: 1fr;
  }
}

/* Final modal alignment overrides (kept after the drop-page component block). */
.drop-modal {
  padding: 32px;
}

.drop-modal .modal-head {
  margin-bottom: 0;
}

.drop-support-picker > div {
  max-height: 288px;
}

.drop-support-picker label {
  padding: 0 16px;
}

@media (max-width: 760px) {
  .drop-modal {
    padding: 24px 18px;
  }
}

/* Drop cards and sorting — reference layout */
.drop-filter-groups {
  align-items: center;
}

.drop-sort {
  width: 218px;
  min-height: 46px;
  gap: 10px;
  padding: 0 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(46, 70, 86, 0.1);
}

.drop-sort > img {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.drop-sort > .rq-select {
  flex: 1;
  width: auto;
}

.drop-sort .rq-select-trigger {
  min-height: 46px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 500;
}

.drop-sort .rq-select-trigger:hover,
.drop-sort .rq-select-trigger:focus-visible,
.drop-sort .rq-select.is-open .rq-select-trigger {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.drop-card {
  gap: 14px;
  min-height: 150px;
  padding: 16px;
  border-radius: 10px;
}

.drop-card.selling {
  background: linear-gradient(90deg, rgba(255, 220, 116, 0.92) 0, rgba(255, 255, 255, 0.96) 17%, rgba(255, 255, 255, 0.96) 100%);
}

.drop-card.paid {
  background: linear-gradient(90deg, rgba(190, 255, 166, 0.94) 0, rgba(255, 255, 255, 0.96) 17%, rgba(255, 255, 255, 0.96) 100%);
}

.drop-card-head {
  min-width: 0;
}

.drop-card-title {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  flex: 1;
}

.drop-boss-icon {
  width: 48px;
  height: 48px;
}

.drop-card-copy {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 8px;
}

.drop-item-heading {
  gap: 8px;
}

.drop-card-copy h2 {
  flex: 0 1 auto;
  font-size: 18px;
}

.drop-title-divider {
  color: #a3a7ad;
  font-size: 16px;
}

.drop-card-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin: 0;
  color: #20242d;
  font-size: 18px;
  font-weight: 800;
}

.drop-card-price img {
  width: 16px;
  height: 16px;
}

.drop-card-copy p {
  color: #5f6978;
  font-size: 13px;
  font-weight: 600;
}

.drop-card-actions {
  flex: 0 0 auto;
  align-self: flex-start;
}

.drop-card-actions .rq-select {
  width: 122px;
}

.drop-card-actions .rq-select-trigger {
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  padding: 0 12px;
  background: #eef0f2;
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
}

.drop-delete-action {
  width: 40px;
  min-width: 40px;
  height: 40px;
  border-radius: 7px;
  background: #ffe2e2;
}

.drop-delete-action img {
  width: 20px;
  height: 20px;
  filter: invert(37%) sepia(80%) saturate(2243%) hue-rotate(334deg) brightness(102%) contrast(101%);
}

.drop-card > .drop-supports,
.drop-card > .drop-inheritance,
.drop-legacy-items {
  margin-left: 0;
}

.drop-supports {
  gap: 8px;
}

.drop-supports > span {
  font-size: 13px;
  font-weight: 600;
}

.drop-support-list strong {
  min-height: 30px;
  color: #20242d;
  background: #eef0f2;
  font-size: 13px;
}

.drop-support-list strong.external {
  color: #20242d;
}

.drop-support-list strong button img {
  width: 14px;
  height: 14px;
}

.drop-supports .drop-inheritance {
  padding-top: 0;
}

html.theme-dark .drop-sort {
  background: #1a2533;
}

html.theme-dark .drop-sort .rq-select-trigger,
html.theme-dark .drop-card-actions .rq-select-trigger {
  color: #edf4ff;
  background-color: transparent;
}

html.theme-dark .drop-card-actions .rq-select-trigger {
  background-color: #243244;
}

@media (max-width: 900px) {
  .drop-sort {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .drop-card {
    min-height: 0;
  }

  .drop-item-heading {
    flex-wrap: wrap;
  }

  .drop-card-actions {
    align-self: stretch;
  }
}

/* Final admin form overrides after legacy component rules. */
.admin-slot-picker {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  align-items: end;
  gap: 6px;
  min-width: 0;
  min-height: 0;
  padding: 0;
}

.admin-slot-picker legend {
  position: static;
  grid-column: 1 / -1;
  width: 100%;
  margin: 0 0 2px;
  padding: 0;
  line-height: 1.3;
}

.admin-item-card > img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.admin-item-card button img {
  width: 20px;
  height: 20px;
  border-radius: 0;
  object-fit: contain;
}

.delete-icon-button img {
  width: 20px;
  height: 20px;
  filter: invert(37%) sepia(80%) saturate(2243%) hue-rotate(334deg) brightness(102%) contrast(101%);
}

@media (max-width: 1100px) {
  .admin-item-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .admin-item-form {
    grid-template-columns: 1fr;
  }

  .admin-slot-picker {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-recipe-picker {
    grid-column: auto;
  }
}

/* Keep these overrides last so legacy theme blocks cannot override them. */
.timer-inline {
  grid-template-columns: minmax(0, 1fr);
  width: calc(100% - 28px);
}

.timer-inline input,
.rq-timer-popover .timer-cycle-input {
  width: 100%;
  box-sizing: border-box;
}

.rq-timer-popover .timer-cycle-input {
  justify-self: stretch;
  width: calc(100% - 28px);
  margin-left: 28px;
}

.modal .ui-tooltip::after,
.timer-popover .ui-tooltip::after,
.rq-confirm-modal .ui-tooltip::after {
  display: none;
}

.modal .icon-btn:hover,
.drop-modal .drop-modal-close:hover,
.drop-modal .drop-support-remove:hover,
.timer-popover .timer-close:hover {
  color: #20242d;
  background: #dce4e8;
}

html.theme-dark .rq-boss-card,
html.theme-dark .rq-boss-card.default,
html.theme-dark .drop-card,
html.theme-dark .rq-admin-card,
html.theme-dark .rq-welcome-card,
html.theme-dark .room-flow-card,
html.theme-dark .admin-item-card {
  background: #182131;
}

html.theme-dark .rq-boss-card.green {
  background: linear-gradient(90deg, #24533d 0%, #182131 38%, #182131 100%);
}

html.theme-dark .rq-boss-card.red {
  background: linear-gradient(90deg, #67303a 0%, #182131 38%, #182131 100%);
}

html.theme-dark .rq-boss-card.yellow,
html.theme-dark .drop-card.selling {
  background: linear-gradient(90deg, #5c4925 0%, #182131 36%, #182131 100%);
}

html.theme-dark .rq-boss-card.blue {
  background: linear-gradient(90deg, #264c5f 0%, #182131 38%, #182131 100%);
}

html.theme-dark .rq-boss-card.purple {
  background: linear-gradient(90deg, #563ca0 0%, #342764 36%, #182131 100%);
}

html.theme-dark .drop-card.paid {
  background: linear-gradient(90deg, #28543a 0%, #182131 36%, #182131 100%);
}

html.theme-dark .rq-boss-card.zibo .rq-row-countdown,
html.theme-dark .rq-boss-card.zibo .rq-row-countdown.urgent,
html.theme-dark .rq-boss-card.zibo .rq-row-countdown.interval-active,
html.theme-dark .drop-card-price {
  color: #ffffff;
}

html.theme-dark .rq-header-language,
html.theme-dark .rq-header-language .rq-select-trigger {
  color: #e7eefb;
  background: #233044;
}

html.theme-dark .rq-header-language:hover,
html.theme-dark .rq-header-language .rq-select-trigger:hover,
html.theme-dark .rq-header-language .rq-select.is-open .rq-select-trigger {
  color: #ffffff;
  background: #334761;
}

html.theme-dark .drop-filters {
  background: #151f2e;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

html.theme-dark .drop-filters button {
  color: #dbe6f5;
  background: #233044;
}

html.theme-dark .drop-filters button[data-drop-status-filter="dropped"].active {
  color: #dbeafe;
  background: #285cae;
}

html.theme-dark .drop-filters button[data-drop-status-filter="selling"].active {
  color: #fff1c2;
  background: #8a5c12;
}

html.theme-dark .drop-filters button[data-drop-status-filter="paid"].active {
  color: #d8ffe3;
  background: #25633b;
}

html.theme-dark .drop-filters button[data-drop-status-filter="unpaid"].active {
  color: #ffe0e3;
  background: #8f3038;
}

html.theme-dark .drop-status {
  color: #dbeafe;
  background: #2a4268;
}

html.theme-dark .drop-status.selling {
  color: #fff1c2;
  background: #755116;
}

html.theme-dark .drop-status.paid {
  color: #d8ffe3;
  background: #25633b;
}

html.theme-dark .rq-head-btn.danger .rq-ui-icon,
html.theme-dark .drop-delete-action img,
html.theme-dark .admin-item-card button img,
html.theme-dark .rq-square-action.danger img,
html.theme-dark .rq-room-delete img,
html.theme-dark .rq-member-remove img {
  filter: brightness(0) invert(1);
  opacity: 0.82;
}

html.theme-dark .rq-actions .timer-close,
html.theme-dark .rq-actions .timer-close:hover,
html.theme-dark .timer-popover .timer-close:hover,
html.theme-dark .modal .icon-btn:hover,
html.theme-dark .drop-modal .drop-modal-close:hover,
html.theme-dark .drop-modal .drop-support-remove:hover {
  color: #eef4ff !important;
  background: #334761 !important;
}

/* Item previews and slot markers in the searchable drop picker. */
.drop-archive-tabs { display: flex; flex-shrink: 0; gap: 6px; width: fit-content; padding: 4px; margin: 0; border-radius: 8px; background: #fff; }
.drop-archive-tabs button { border: 0; border-radius: 6px; padding: 10px 22px; color: #20242d; background: transparent; font: inherit; cursor: pointer; }
.drop-archive-tabs button.active { background: #2d65d5; color: #fff; }
.drop-filter-block .rq-select { min-width: 180px; }
.drop-archive-note { margin: 12px 0 16px; color: #536174; font-size: 13px; }
html.theme-dark .drop-archive-tabs { background: #192435; }
html.theme-dark .drop-archive-tabs button { color: #eef4ff; }
html.theme-dark .drop-archive-tabs button.active { background: #2d65d5; }
html.theme-dark .drop-archive-note { color: #b8c6db; }
.public-intro { max-width: 900px; margin: 24px auto; padding: 28px; border-radius: 14px; background: #fff; color: #20242d; line-height: 1.7; }
.public-intro[hidden] { display: none; }
.public-intro h1 { font-size: 28px; }
.public-intro h2 { margin-top: 20px; font-size: 20px; }
html.theme-dark .public-intro { background: #192435; color: #eef4ff; }
@media (max-width: 600px) { .drop-filter-block { flex: 1 1 140px; } .drop-filter-block .rq-select { min-width: 0; width: 100%; } .public-intro { margin: 16px; padding: 20px; } }

.drop-item-options button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  width: 100%;
  height: 44px;
  min-height: 44px;
  box-sizing: border-box;
  color: #20242d;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
}

.drop-item-options button[hidden],
.drop-boss-options button[hidden] {
  display: none !important;
}

.drop-item-option-name {
  min-width: 0;
  overflow: hidden;
  color: #20242d !important;
  font: inherit !important;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 1 !important;
}

.drop-slot-indicator {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 3px;
}

.drop-slot-indicator img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.drop-item-selected-slots {
  position: absolute;
  top: 50%;
  left: 12px;
  z-index: 2;
  transform: translateY(-50%);
  pointer-events: none;
}

.drop-item-selected-slots[hidden] { display: none; }
.drop-item-combobox.has-selected-slots > input[type="text"] { padding-left: 70px; }

.drop-item-options button:hover .drop-item-option-name,
.drop-item-options button[aria-selected="true"] .drop-item-option-name {
  color: #ffffff !important;
}

html.theme-dark .drop-item-options button,
html.theme-dark .drop-item-option-name {
  color: #e8edf5 !important;
}
