:root {
  color-scheme: dark;
  --bg: #101218;
  --surface: #181b24;
  --surface-raised: #20242f;
  --input: #12151d;
  --line: #2b303d;
  --text: #f3f2ed;
  --muted: #9da6ba;
  --accent: #d5ef9b;
  --accent-ink: #202b15;
  --purple: #c3b2f3;
  --danger: #ffc0cd;
  --radius: 14px;
  font:
    14px/1.5 ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #51576a #14171f;
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: #14171f;
  border-radius: 10px;
}
*::-webkit-scrollbar-thumb {
  background: #51576a;
  border: 2px solid #14171f;
  border-radius: 10px;
}
*::-webkit-scrollbar-thumb:hover {
  background: #8e82b1;
}
*::-webkit-scrollbar-corner {
  background: #14171f;
}
@media (forced-colors: active) {
  * {
    scrollbar-color: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
button:hover:not(:disabled) {
  transform: translateY(-1px);
}
button:active:not(:disabled) {
  transform: none;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.primary:hover:not(:disabled) {
  background: #e1f6b7;
}
.secondary {
  background: var(--surface-raised);
  border-color: #39404e;
  color: var(--text);
}
.secondary:hover:not(:disabled) {
  background: #2c3240;
  border-color: #596177;
}
.quiet {
  background: transparent;
  color: var(--muted);
  padding: 8px 10px;
}
.quiet:hover:not(:disabled) {
  background: #ffffff08;
  color: var(--text);
}
.danger {
  background: #482a35;
  color: var(--danger);
  border-color: #754554;
}
.danger:hover:not(:disabled) {
  background: #59323e;
}
.icon-button {
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  padding: 0 10px;
  min-width: 40px;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid #394051;
  border-radius: 9px;
  background: var(--input);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input::placeholder,
textarea::placeholder {
  color: #778196;
}
input:hover,
select:hover,
textarea:hover {
  border-color: #515c71;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px #c3b2f315;
}
textarea {
  min-height: 104px;
  resize: vertical;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 550;
  color: #d4d9e5;
}
label small {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-weight: 650;
  line-height: 1.25;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  margin-bottom: 0;
}
h2 {
  font-size: 27px;
  letter-spacing: -0.9px;
  margin-bottom: 10px;
}
h3 {
  font-size: 16px;
  margin-bottom: 10px;
}
.muted {
  color: var(--muted);
  line-height: 1.65;
}
.eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.9px;
  color: var(--muted);
  margin-bottom: 10px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 228px;
  display: flex;
  flex-direction: column;
  padding: 31px 20px;
  border-right: 1px solid var(--line);
  background: #14171f;
  z-index: 15;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -1px;
  text-decoration: none;
}
.brand > span {
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.4px;
}
.brand small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 550;
  letter-spacing: 1.5px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 48px;
}
.nav {
  justify-content: flex-start;
  padding: 12px 14px;
  background: transparent;
  color: var(--muted);
  gap: 13px;
  font-size: 18px;
  min-height: 47px;
}
.nav span {
  font-size: 12px;
}
.nav.active {
  background: #d5ef9b0d;
  color: var(--accent);
  border-color: #d5ef9b19;
}
.nav:hover:not(.active) {
  background: #ffffff05;
}
.sidebar-foot {
  margin-top: auto;
  padding: 18px 4px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.9;
}
.sidebar-foot button {
  display: flex;
  margin-top: 10px;
  width: 100%;
  padding: 9px 12px;
  justify-content: flex-start;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
}
main {
  margin-left: 228px;
  padding: 31px 38px 0;
  min-width: 0;
}
.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}
.header-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.compact-label {
  font-size: 9px;
  color: var(--muted);
  gap: 5px;
}
.compact-label select {
  min-width: 112px;
  min-height: 42px;
  padding: 8px 11px;
  font-size: 12px;
}
.header-actions > .secondary {
  margin-top: 0;
}
.header-actions > .quiet {
  margin-top: 0;
}
.staff-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px 9px 9px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #181d27;
  max-width: 300px;
}
.staff-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #c3b2f31a;
  color: var(--purple);
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
}
.staff-avatar img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.staff-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
  line-height: 1.4;
}
.staff-kicker {
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
}
.staff-copy strong {
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}
.title-line {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.title-line .event-state {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  position: relative;
  top: 2px;
  line-height: 1.2;
}
.event-state {
  color: var(--accent);
  font-size: 10px;
  border: 1px solid #d5ef9b25;
  border-radius: 20px;
  padding: 5px 9px;
  white-space: nowrap;
}
.event-state.closed {
  color: var(--muted);
  border-color: var(--line);
}
.banner {
  display: flex;
  align-items: center;
  margin: 20px 0 24px;
  padding: 11px 14px;
  border: 1px solid #c3b2f326;
  border-radius: 9px;
  color: #c7b9e9;
  background: #c3b2f308;
  font-size: 11px;
  line-height: 1.65;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 25px 0 22px;
}
.stat {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: linear-gradient(130deg, #1d222c, #171b24);
}
.stat:first-child {
  border-color: #d5ef9b36;
}
.stat-label {
  font-size: 11px;
  color: #aeb7c8;
  margin-bottom: 9px;
}
.stat-value {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
}
.stat:first-child .stat-value {
  color: var(--accent);
}
.stat small {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 5px;
}
.stat.actionable {
  cursor: pointer;
}
.stat.actionable:hover {
  border-color: #c3b2f370;
}
.stat.actionable:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}
.prize-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 31px;
}
.total-pill {
  border: 1px solid #c3b2f323;
  background: #c3b2f307;
  border-radius: 20px;
  padding: 5px 10px;
  color: var(--purple);
  font-size: 10px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 27px 0 23px;
}
.section-heading .eyebrow {
  margin-bottom: 7px;
}
.section-heading p:last-child {
  margin-bottom: 0;
  font-size: 12px;
}
.section-heading > .primary {
  flex-shrink: 0;
}
.toolbar {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 0;
}
.toolbar > input {
  flex: 1;
  min-width: 150px;
  font-size: 12px;
  background: #11151d;
  min-height: 58px;
  border-radius: 12px;
  padding-left: 17px;
}
.filter-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #171b24;
  flex-shrink: 0;
}
.filter-controls > select {
  width: auto;
  max-width: 200px;
  font-size: 12px;
}
.view-switch {
  display: flex;
  background: #10131a;
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 8px;
}
.view-switch button {
  min-height: 34px;
  padding: 6px 12px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
}
.view-switch .selected {
  background: #2e3442;
  color: var(--text);
  box-shadow: 0 1px 3px #0003;
}
.bounty-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 12px 0 18px;
}
.bounty-tools > button {
  font-size: 11px;
  min-height: 38px;
}
.directory-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin: -4px 0 16px;
}
.directory-status::before {
  content: "";
  flex: 0 0 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.directory-status.is-loading::before {
  flex-basis: 11px;
  height: 11px;
  border: 2px solid #c3b2f330;
  border-top-color: var(--purple);
  background: transparent;
  animation: spin 900ms linear infinite;
}
.directory-status.is-limited::before {
  background: #e5c58d;
}
.bounty-card {
  display: grid;
  grid-template-columns:
    minmax(0, 1.6fr) minmax(110px, 1fr) minmax(115px, 0.9fr)
    190px;
  gap: 21px;
  align-items: center;
  padding: 19px 21px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition:
    border-color 0.15s,
    background 0.15s;
}
.bounty-main .bounty-condition {
  color: var(--condition-color, var(--text));
  padding-block: 4px;
  line-height: 1.7;
}
.bounty-condition[data-condition="KILL"] {
  --condition-color: #b3d7cf;
}
.bounty-condition[data-condition="DIE_TO_QUOTE"] {
  --condition-color: #e4b6cb;
}
.bounty-condition[data-condition="FIRST_NATURAL_DEATH"] {
  --condition-color: #b8d8be;
}
.bounty-condition[data-condition="FIRST_KILLED"] {
  --condition-color: #efbcaa;
}
.bounty-condition[data-condition="FIRST_TO_KILL"] {
  --condition-color: #e6d59f;
}
.bounty-condition[data-condition="LAST_NATURAL_DEATH"] {
  --condition-color: #a9c9c7;
}
.bounty-condition[data-condition="LAST_REVIVE"] {
  --condition-color: #a9d4e5;
}
.bounty-condition[data-condition="MOST_KILLS"] {
  --condition-color: #d8c09c;
}
.bounty-condition[data-condition="MOST_REVIVES"] {
  --condition-color: #b6c5ee;
}
.bounty-condition[data-condition="CUSTOM"] {
  --condition-color: #d5c9dd;
}
.bounty-condition[data-condition="UNASSIGNED"] {
  --condition-color: var(--muted);
}
.bounty-target-mention {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  max-width: 100%;
  gap: 6px;
  color: #a7dfd5;
  font-weight: 600;
  line-height: 1.7;
}
.bounty-target-name {
  min-width: 0;
  overflow-wrap: anywhere;
}
.bounty-target-avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  overflow: hidden;
  border-radius: 50%;
  background: #69bdae16;
  color: #a7dfd5;
  font-size: 8px;
  line-height: 1;
  font-weight: 600;
}
.bounty-target-avatar img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.quote-condition-label {
  display: block;
  font-size: 11px;
  font-weight: 550;
  margin-bottom: 6px;
}
.bounty-death-quote {
  display: block;
  border-left: 2px solid #e4b6cb80;
  padding: 6px 10px;
  background: #e4b6cb07;
  border-radius: 0 6px 6px 0;
  color: #dfd5dc;
  font-weight: 500;
  line-height: 1.7;
}
.bounty-card:hover {
  border-color: #41495c;
  background: #1b1f2a;
}
.bounty-card.inactive {
  opacity: 0.62;
}
.bounty-card h3 {
  margin: 8px 0;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.bounty-id {
  font-size: 10px;
  color: #8792a8;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.6px;
}
.tag {
  display: inline-block;
  border: 1px solid #c3b2f325;
  border-radius: 5px;
  background: #c3b2f30c;
  color: var(--purple);
  font-size: 9px;
  padding: 3px 6px;
  margin-left: 7px;
}
.tag.attention {
  color: #e3c283;
  background: #e3c2830c;
  border-color: #e3c28325;
}
.card-caption {
  margin: 0 0 6px;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8792a8;
}
.prize-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  overflow-wrap: anywhere;
}
.donor {
  font-size: 12px;
  color: #c2cadb;
  overflow-wrap: anywhere;
}
.round-select {
  font-size: 11px;
  min-height: 34px;
  max-width: 155px;
  padding: 6px 9px;
  background: #131720;
  border-color: #2e3544;
}
.card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  width: 190px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
.card-actions button {
  font-size: 11px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff03;
  color: #cbd3e3;
}
.card-actions button:hover {
  border-color: #78829a;
  background: #ffffff09;
}
.card-actions button:first-child {
  color: var(--accent);
}
.card-actions button[data-action="status"] {
  order: 4;
  color: #c5a5ac;
}
.card-actions button[data-action="split"] {
  order: 3;
}
.card-actions button:only-child,
.card-actions button:nth-child(3):last-child {
  grid-column: 1 / -1;
}
.board {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  align-items: flex-start;
  padding: 0 0 18px;
  scroll-snap-type: x proximity;
}
.board-column {
  position: relative;
  min-height: 270px;
  flex: 0 0 300px;
  scroll-snap-align: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #141821;
  box-shadow: inset 0 0 0 1px transparent;
  transition:
    border-color 240ms ease-out,
    background-color 240ms ease-out,
    box-shadow 240ms ease-out;
}
.board-empty {
  display: grid;
  place-items: center;
  min-height: 170px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.board-column.drop-target {
  border-color: var(--accent);
  background: #d5ef9b0b;
  box-shadow: inset 0 0 0 1px #d5ef9b40;
}
.board-card {
  position: relative;
  cursor: grab;
}
.board-card .bounty-main {
  padding-right: 30px;
}
.drag-grip {
  position: absolute;
  right: 12px;
  top: 12px;
  min-height: 32px;
  min-width: 30px;
  padding: 3px;
  font-size: 23px;
  background: transparent;
  color: var(--muted);
  cursor: grab;
  touch-action: none;
  z-index: 1;
}
.drag-grip:hover {
  background: #ffffff09;
}
.drag-source {
  position: absolute !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.drag-slot {
  border: 1px dashed #d5ef9b66;
  border-radius: 12px;
  background: #d5ef9b09;
  margin-bottom: 10px;
  box-shadow: inset 0 0 25px #d5ef9b04;
}
.drag-ghost {
  position: fixed !important;
  z-index: 1000;
  pointer-events: none !important;
  overflow: hidden;
  opacity: 1;
  box-shadow: 0 22px 65px #0008;
  transform: rotate(1.2deg) scale(1.025);
  transform-origin: center;
  border-color: #64714e;
  margin: 0 !important;
  cursor: grabbing;
}
.publish-notifications {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #414653;
  border-radius: 12px;
  cursor: pointer;
}
.publish-notifications:has(input:checked) { border-color: #b5d778; background: #b5d7780a; }
.publish-notifications input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: #b5d778; }
.publish-notifications span { display: grid; gap: 5px; }
.publish-notifications small { opacity: .75; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) {
  .drag-ghost {
    transform: none;
  }
}
.board-dragging,
.board-dragging * {
  cursor: grabbing !important;
  user-select: none !important;
}
.board-dragging .board {
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.board-add-round {
  border-style: dashed;
}
.move-state {
  position: absolute;
  top: 16px;
  right: 48px;
  font-size: 10px;
  color: var(--accent);
}
.move-error {
  border-color: #b97083;
}
.move-error .move-state {
  color: var(--danger);
}
.board-sync {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  margin: 0 0 12px;
  font-size: 11px;
  color: var(--muted);
}
.board-sync .sync-error {
  color: var(--danger);
}
.board-sync button {
  min-height: 30px;
  font-size: 11px;
  padding: 4px 8px;
}
.round-heading-title {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.round-count {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid #c3b2f32b;
  background: #c3b2f30d;
  color: var(--purple);
  font-size: 10px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.round-count.is-empty {
  color: var(--muted);
  background: #9da6ba08;
  border-color: var(--line);
}
.remove-round {
  flex-shrink: 0;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 10px;
  color: var(--muted);
  background: var(--surface-raised);
}
.remove-round:hover:not(:disabled) {
  transform: none;
  color: var(--danger);
  border-color: #ffc0cd50;
  background: #ffc0cd0b;
}
.saving-move {
  border-color: #d5ef9b60;
}
.board-column > h3 {
  display: flex;
  align-items: center;
  min-height: 44px;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 5px 12px;
  font-size: 12px;
  margin: 0;
  color: #cad1de;
}
.board-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 17px;
  padding: 16px;
}
.board-card .card-actions {
  width: 100%;
  border-left: 0;
  padding-left: 0;
  max-width: none;
  justify-content: flex-start;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.board-card:last-child {
  margin-bottom: 0;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 44px 24px;
  text-align: center;
  border: 1px dashed #394152;
  border-radius: 13px;
  color: var(--muted);
  font-size: 12px;
  width: 100%;
}
.empty h3 {
  color: var(--text);
  font-size: 17px;
  margin: 0;
}
.empty p {
  margin: 0;
  max-width: 330px;
  line-height: 1.7;
}
.empty button {
  margin-top: 6px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 23px;
  min-width: 0;
}
.panel p {
  overflow-wrap: anywhere;
}
.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 17px;
}
.panel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.panel-row:last-child {
  border-bottom: 0;
}
.panel-row p {
  margin: 5px 0 0;
}
.panel-row time {
  font-size: 10px;
  flex-shrink: 0;
}
.activity-detail {
  font-size: 10px;
  max-width: 500px;
  max-height: 55px;
  overflow: auto;
}
.activity-entry {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.activity-entry:first-child {
  padding-top: 0;
}
.activity-entry:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.activity-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--purple);
  border: 1px solid #c3b2f329;
  background: #c3b2f30a;
  font-size: 14px;
}
.activity-body h3 {
  font-size: 14px;
  margin: 2px 0 6px;
  font-weight: 650;
  letter-spacing: -0.1px;
}
.activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 15px;
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 12px;
}
.activity-summary {
  font-size: 12px;
  color: #c2cadb;
  line-height: 1.7;
  margin: 12px 0 0;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #11151d;
  max-width: 900px;
  overflow-wrap: anywhere;
}
.activity-details {
  margin-top: 12px;
  padding: 12px 15px;
  background: #11151d;
  border: 1px solid var(--line);
  border-radius: 10px;
  max-width: 900px;
}
.activity-details > .activity-summary,
.activity-details > .activity-changes {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  max-width: none;
}
.activity-details > .activity-summary + .activity-changes {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  border-radius: 0;
}
.activity-fact {
  color: #d4dbe7;
}
.activity-changes {
  margin: 12px 0 0;
  padding: 12px 15px;
  background: #11151d;
  border: 1px solid var(--line);
  border-radius: 10px;
  max-width: 900px;
}
.activity-change {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  font-size: 12px;
  line-height: 1.7;
}
.activity-change dt {
  color: var(--muted);
}
.activity-change dd {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
}
.change-before {
  color: #a5adbe;
}
.change-arrow {
  color: #6f7b94;
}
.change-after {
  color: var(--accent);
  font-weight: 550;
}
@media (max-width: 760px) {
  .activity-entry {
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 10px;
  }
  .activity-icon {
    width: 25px;
    height: 25px;
  }
  .activity-change {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .activity-changes {
    padding: 10px 12px;
  }
  .activity-body h3 {
    font-size: 13px;
  }
}
.publish-grid {
  display: grid;
  grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
  gap: 23px;
}
.workflow-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.workflow-heading h3 {
  font-size: 16px;
  margin: 0 0 5px;
}
.workflow-heading p {
  font-size: 12px;
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}
.step-number {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  border: 1px solid #d5ef9b35;
  border-radius: 9px;
  color: var(--accent);
  background: #d5ef9b08;
  font-size: 12px;
  font-weight: 600;
}
.readiness-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.readiness-card {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
}
.readiness-card strong {
  font-size: 25px;
  font-variant-numeric: tabular-nums;
}
.readiness-card .muted {
  font-size: 11px;
  line-height: 1.6;
  margin: 7px 0;
}
.readiness-card button {
  padding: 5px 0;
  min-height: 32px;
  color: var(--purple);
  font-size: 11px;
}
.preview-status {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 18px 0 12px;
}
.preview.stale .message-preview {
  opacity: 0.45;
}
.publish-review {
  min-width: 0;
}
.publish-review .preview {
  max-height: 70vh;
  overflow: auto;
}
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.form-stack .muted {
  font-size: 11px;
  margin: 0;
}
.field-error {
  display: block;
  color: var(--danger);
  font-size: 11px;
  font-weight: 450;
  line-height: 1.6;
  padding: 8px 10px;
  background: #ffc0cd0a;
  border-left: 2px solid #ffc0cd70;
  border-radius: 4px;
  animation: publish-reveal 180ms ease-out;
}
.field-error[hidden] {
  display: none;
}
.member-picker {
  position: relative;
}
.member-picker > .member-options {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 35;
  max-height: 220px;
}
.target-duplicate {
  color: #e5c58d;
  font-size: 11px;
  line-height: 1.6;
}
.target-player {
  flex: 1;
}
.target-edit {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 11px;
}
.channel-menu {
  padding: 8px;
  background: var(--surface-raised);
  border: 1px solid #c3b2f345;
  border-radius: 10px;
  box-shadow: 0 8px 24px #0003;
  animation: publish-reveal 160ms ease-out;
}
.channel-menu > input {
  width: 100%;
  min-width: 0;
  margin-bottom: 6px;
}
.channel-menu .member-options {
  border: 0;
  box-shadow: none;
  padding: 0;
}
.channel-option-icon {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  height: 28px;
  background: #c3b2f310;
  color: var(--purple);
  border-radius: 7px;
  font-size: 18px;
}
.channel-menu .member-option strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.channel-menu .is-highlighted {
  background: #c3b2f315;
  border-color: #c3b2f330;
}
.channel-trigger::after {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--purple);
  border-bottom: 1.5px solid var(--purple);
  transform: translateY(-2px) rotate(45deg);
  margin-right: 3px;
  align-self: center;
}
@media (prefers-reduced-motion: reduce) {
  .channel-menu {
    animation: none;
  }
}
.member-options {
  position: relative;
  z-index: 3;
  max-height: 260px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #c3b2f345;
  border-radius: 10px;
  background: var(--surface-raised);
  box-shadow: 0 8px 24px #0003;
  animation: publish-reveal 160ms ease-out;
}
.member-option {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  gap: 10px;
  padding: 9px;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
}
.member-option:hover:not(:disabled),
.member-option[aria-selected="true"] {
  transform: none;
  background: #c3b2f315;
  border-color: #c3b2f330;
}
.member-option-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  overflow: hidden;
  border-radius: 50%;
  background: #c3b2f31a;
  color: var(--purple);
  font-size: 11px;
}
.member-option-avatar img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member-option-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.member-option-copy strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.member-option-copy small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  overflow-wrap: anywhere;
}
.member-search-status {
  margin: 0;
  padding: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
#editorForm [aria-invalid="true"] {
  border-color: #ffc0cd90;
}
@media (prefers-reduced-motion: reduce) {
  .member-options {
    animation: none;
  }
}
#publishForm [aria-invalid="true"] {
  border-color: #ffc0cd90;
}
.publish-datetime {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.publish-datetime legend {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
}
.publish-datetime legend .muted {
  margin-left: 5px;
  font-weight: 400;
}
.date-trigger {
  width: 100%;
  justify-content: space-between;
  text-align: left;
  background: var(--input);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 450;
  min-height: 44px;
}
.date-trigger span {
  color: var(--purple);
  font-size: 18px;
}
.date-trigger[aria-expanded="true"] {
  border-color: var(--purple);
}
.date-trigger:hover:not(:disabled),
.publish-calendar button:hover:not(:disabled) {
  transform: none;
  border-color: #c3b2f360;
  background-color: #c3b2f312;
}
.publish-calendar {
  padding: 10px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-raised);
  box-shadow: 0 10px 30px #0003;
  animation: publish-reveal 200ms ease-out;
}
.calendar-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.calendar-heading strong {
  font-size: 12px;
}
.calendar-heading button {
  background: transparent;
  color: var(--purple);
  padding: 4px 10px;
  font-size: 20px;
}
.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}
.calendar-weekdays {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
}
.calendar-days button {
  padding: 0;
  min-width: 0;
  min-height: 36px;
  background: transparent;
  color: var(--text);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.calendar-days button[aria-current="date"] {
  border-color: #c3b2f360;
  color: var(--purple);
}
.calendar-days button:hover {
  background: #c3b2f31a;
}
.calendar-days button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}
.calendar-shortcuts {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 5px;
}
.calendar-shortcuts button {
  color: var(--purple);
  min-height: 36px;
  padding: 6px 8px;
}
.publish-time {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 9px;
  margin: 12px 0 8px;
}
.publish-time > span {
  align-self: end;
  padding-bottom: 12px;
  color: var(--muted);
}
.publish-time label {
  min-width: 0;
  font-size: 11px;
  color: var(--muted);
}
.publish-time select {
  width: 100%;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.publish-datetime .field-error {
  margin-top: 8px;
}
@keyframes publish-reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .publish-calendar,
  .field-error {
    animation: none;
  }
}
.preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.9;
  min-height: 220px;
  background: #141820;
}
.message-preview + .message-preview {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.preview-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.preview-controls > .muted {
  font-size: 10px;
}
.preview.discord-preview {
  background: #292933;
  white-space: normal;
  font:
    14px/1.5 ui-sans-serif,
    system-ui,
    sans-serif;
  color: #d9dce5;
  padding: 22px;
}
.discord-preview .message-preview {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.discord-bot-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  overflow: hidden;
  color: var(--accent);
  background: #454358;
  font-size: 12px;
  font-weight: 700;
}
.discord-bot-avatar img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.discord-message-body {
  min-width: 0;
  flex: 1;
}
.discord-message-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 5px;
  font-size: 10px;
  color: #a3a6b6;
}
.discord-message-header strong {
  font-size: 13px;
  color: var(--purple);
  font-weight: 550;
}
.discord-app-badge {
  background: #5865f2;
  color: white;
  font-size: 9px;
  line-height: 1.3;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 650;
}
.discord-message-content {
  overflow-wrap: anywhere;
}
.discord-message-content h1,
.discord-message-content h2,
.discord-message-content h3 {
  color: #f2f3f5;
  letter-spacing: normal;
  line-height: 1.35;
  margin: 16px 0 8px;
}
.discord-message-content h1 {
  font-size: 25px;
}
.discord-message-content h2 {
  font-size: 21px;
}
.discord-message-content h3 {
  font-size: 17px;
}
.discord-message-content > :first-child {
  margin-top: 0;
}
.discord-message-content p {
  margin: 0;
  white-space: pre-wrap;
}
.discord-message-content strong {
  font-weight: 700;
}
.discord-message-content ul,
.discord-message-content ol {
  margin: 4px 0;
  padding-left: 20px;
}
.discord-message-content li {
  padding-left: 1px;
  margin: 2px 0;
}
.discord-message-content blockquote {
  margin: 5px 0;
  padding: 0 0 0 12px;
  border-left: 3px solid #626779;
}
.discord-space {
  height: 12px;
}
.discord-message-content a {
  color: #77b9ff;
  text-decoration: none;
}
.discord-message-content a:hover {
  text-decoration: underline;
}
.discord-message-content .discord-emoji {
  display: inline-block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: -0.35em;
}
.discord-message-content h1 .discord-emoji {
  width: 30px;
  height: 30px;
}
.discord-message-content h2 .discord-emoji {
  width: 26px;
  height: 26px;
}
.discord-mention {
  border-radius: 3px;
  padding: 0 3px;
  color: #b4c6ff;
  background: #5865f22e;
  font-weight: 550;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.discord-timestamp {
  border-radius: 3px;
  padding: 0 3px;
  background: #ffffff12;
}
.discord-message-content code,
.discord-message-content pre {
  font-family: ui-monospace, monospace;
  background: #1e1f27;
  border-radius: 4px;
  font-size: 12px;
}
.discord-message-content code {
  padding: 2px 4px;
}
.discord-message-content pre {
  padding: 12px;
  white-space: pre-wrap;
  border: 1px solid #15161b;
}
.discord-subtext {
  color: #a3a6b6;
  font-size: 12px;
}
.discord-spoiler {
  display: inline;
  min-height: 0;
  padding: 0 3px;
  border: 0;
  border-radius: 3px;
  background: #17181e;
  font: inherit;
  vertical-align: baseline;
  color: inherit;
}
.discord-spoiler:not(.revealed) > span {
  visibility: hidden;
}
.discord-spoiler.revealed {
  background: #ffffff15;
}
.discord-spoiler:hover:not(:disabled) {
  transform: none;
}
.raw-preview pre {
  white-space: pre-wrap;
  font: inherit;
  margin: 0;
}
@media (max-width: 760px) {
  .preview.discord-preview {
    padding: 15px 12px;
    font-size: 13px;
  }
  .discord-preview .message-preview {
    gap: 9px;
  }
  .discord-bot-avatar {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    font-size: 9px;
  }
  .discord-message-content h1 {
    font-size: 21px;
  }
  .discord-message-content h2 {
    font-size: 18px;
  }
}
.notice {
  position: fixed;
  right: 26px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: min(460px, calc(100% - 36px));
  padding: 14px 15px;
  border: 1px solid #d5ef9b45;
  border-radius: 12px;
  background: #232e22;
  color: #e3f2cd;
  box-shadow: 0 14px 55px #0007;
  font-size: 12px;
  line-height: 1.65;
}
.notice.error {
  background: #33242d;
  color: #ffcad5;
  border-color: #754554;
}
.notice button {
  color: inherit;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  font-size: 20px;
  flex-shrink: 0;
}
.notice span {
  overflow-wrap: anywhere;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 0;
  margin-top: 42px;
  border-top: 1px solid var(--line);
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #7f8ba1;
}
footer span {
  font-size: 10px;
  letter-spacing: 0;
}
.login-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(ellipse at 25% 5%, #2a293b70, transparent 60%);
}
.login-card {
  width: min(100%, 430px);
  padding: 38px;
  border: 1px solid #3c4051;
  border-radius: 20px;
  background: linear-gradient(150deg, #20242e, #171b24);
  box-shadow: 0 25px 100px #0003;
}
.brand-mark {
  font-size: 30px;
  font-weight: 850;
  color: var(--accent);
  margin-bottom: 34px;
  letter-spacing: -1px;
}
.login-card h1 {
  font-size: 39px;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 21px;
}
.login-card .muted {
  font-size: 12px;
  line-height: 1.9;
}
.login-card label {
  margin-top: 25px;
}
.login-card button {
  width: 100%;
  margin-top: 18px;
}
.discord-login {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 13px 18px;
  margin-top: 27px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 650;
}
#loginError {
  font-size: 11px;
  color: var(--danger);
  line-height: 1.7;
  margin-top: 18px;
  margin-bottom: 0;
}
dialog {
  width: min(660px, calc(100% - 28px));
  max-height: 90dvh;
  margin: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #444c60;
  border-radius: 18px;
  padding: 0;
  background: #1b202b;
  color: var(--text);
  box-shadow: 0 25px 120px #0008;
}
dialog::backdrop {
  background: #070b14b5;
  backdrop-filter: blur(6px);
}
#editorForm {
  padding: 25px 27px 0;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
}
.dialog-heading h2 {
  font-size: 23px;
  letter-spacing: -0.7px;
  margin: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.wide {
  grid-column: 1/-1;
}
.form-section {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 5px;
}
.form-section h3 {
  font-size: 13px;
  margin: 0 0 4px;
}
.form-section p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.field-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}
.editor-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  font-size: 12px;
  font-weight: 550;
  color: #d4d9e5;
}
.editor-field > small {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
}
.placement-composer {
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--input);
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.9;
  cursor: text;
  transition:
    border-color 150ms,
    box-shadow 150ms;
}
.placement-composer-field {
  position: relative;
}
.placement-composer-field > .field-label {
  padding-right: 55px;
}
.placement-composer-field > .composer-options {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 210px;
  animation: none;
}
.composer-clear {
  position: absolute;
  right: 0;
  top: -5px;
  min-height: 28px;
  padding: 3px 8px;
  font-size: 10px;
  color: var(--muted);
  background: transparent;
}
.composer-clear:hover:not(:disabled) {
  transform: none;
  background: #ffc0cd0b;
  color: var(--danger);
}
.placement-composer:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
  pointer-events: none;
}
.composer-token {
  display: inline;
}
.placement-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.target-pool-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.target-pool-heading h3 {
  margin: 0;
}
.target-pool-heading button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 11px;
}
.target-pool-count {
  font-size: 11px;
  margin-bottom: 12px;
}
.target-player {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.target-player strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.target-remove {
  color: var(--danger);
  flex-shrink: 0;
}
#targetsList .panel-row {
  overflow: hidden;
}
#targetsList input[type="search"] {
  width: 100%;
  margin-bottom: 12px;
}
.placement-clear {
  color: var(--danger);
}
.placement-round-warning {
  color: #e5c58d;
  line-height: 1.6;
}
.placement-composer:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px #c3b2f315;
}
.composer-token {
  border-radius: 4px;
  padding: 0;
}
.placement-composer .composer-token img {
  width: 1.2em;
  height: 1.2em;
  vertical-align: -0.25em;
}
.composer-token img,
.composer-option-icon img {
  width: 22px;
  height: 22px;
  vertical-align: -0.35em;
  object-fit: contain;
}
.composer-option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  color: var(--purple);
}
.composer-option-icon.member-option-avatar img {
  width: 100%;
  height: 100%;
}
.placement-line-preview {
  padding: 10px 12px;
  border-left: 3px solid #c3b2f340;
  border-radius: 5px;
  background: #c3b2f306;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 400;
  white-space: pre-wrap;
}
.number-stepper {
  display: flex;
  align-items: stretch;
  padding: 4px;
  gap: 3px;
  min-width: 0;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 9px;
  transition:
    border-color 150ms,
    box-shadow 150ms;
}
.number-stepper:hover {
  border-color: #c3b2f350;
}
.number-stepper:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px #c3b2f315;
}
.number-stepper:has(input[aria-invalid="true"]) {
  border-color: #ffc0cd90;
}
.number-stepper input {
  appearance: textfield;
  -moz-appearance: textfield;
  flex: 1;
  width: 0;
  min-width: 0;
  min-height: 34px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  padding: 5px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.number-stepper input:focus {
  outline: none;
  box-shadow: none;
}
.number-stepper input::-webkit-inner-spin-button,
.number-stepper input::-webkit-outer-spin-button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}
.number-step {
  flex: 0 0 34px;
  min-height: 34px;
  padding: 0;
  background: var(--surface-raised);
  color: var(--purple);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 18px;
  font-weight: 450;
}
.number-step:hover:not(:disabled) {
  transform: none;
  background: #c3b2f31a;
  border-color: #c3b2f350;
}
.number-step:disabled {
  opacity: 0.3;
}
.required-mark {
  color: var(--purple);
}
.form-preview {
  margin-top: 23px;
  padding: 18px;
  border: 1px solid #d5ef9b27;
  border-radius: 12px;
  background: #d5ef9b05;
}
.form-preview h3 {
  font-size: 14px;
  margin: 8px 0;
}
.form-preview p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 0;
  overflow-wrap: anywhere;
}
.form-preview .prize-value {
  font-size: 14px;
  margin: 9px 0;
}
.dialog-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 18px 0;
  margin-top: 23px;
  border-top: 1px solid var(--line);
  background: #1b202bf5;
  backdrop-filter: blur(8px);
  z-index: 2;
}
.dialog-actions button {
  min-width: 100px;
}
#editorError {
  margin-top: 16px;
  margin-bottom: 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.7;
}
#editorError:empty {
  display: none;
}
#confirmation {
  max-width: 430px;
  padding: 27px;
}
#confirmation h2 {
  font-size: 22px;
}
#confirmation p {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.checkbox {
  flex-direction: row;
  align-items: center;
}
.checkbox input {
  width: 20px;
  min-height: 20px;
}
.loading-screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}
.spinner {
  width: 23px;
  height: 23px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.mobile-only {
  display: none;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1550px) {
  main {
    padding-left: 52px;
    padding-right: 52px;
  }
  .bounty-card {
    padding-top: 22px;
    padding-bottom: 22px;
  }
}
@media (max-width: 1200px) {
  main {
    padding: 27px 25px 0;
    margin-left: 200px;
  }
  .sidebar {
    width: 200px;
    padding: 28px 16px;
  }
  .brand > span {
    font-size: 14px;
  }
  .brand {
    font-size: 24px;
  }
  .bounty-card {
    grid-template-columns: minmax(0, 1.5fr) minmax(110px, 1fr);
    gap: 16px;
  }
  .card-actions {
    width: 100%;
    border-left: 0;
    padding-left: 0;
    max-width: none;
    justify-content: flex-start;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar > input {
    flex-basis: 100%;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .header-actions {
    gap: 7px;
  }
  .header-actions .event-state {
    display: none;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    height: 72px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
    height: calc(72px + env(safe-area-inset-bottom));
    background: #161b25f5;
    border: 0;
    border-top: 1px solid #3b4355;
    backdrop-filter: blur(12px);
  }
  .sidebar > .brand,
  .sidebar-foot {
    display: none;
  }
  nav {
    flex-direction: row;
    justify-content: space-around;
    gap: 4px;
    width: 100%;
    margin: 0;
  }
  .nav {
    flex: 1;
    flex-direction: column;
    gap: 4px;
    font-size: 20px;
    padding: 5px 3px;
    min-height: 53px;
    border-radius: 9px;
  }
  .nav span {
    font-size: 9px;
    font-weight: 550;
    white-space: nowrap;
  }
  .nav.active {
    border-color: #d5ef9b1b;
    background: #d5ef9b0b;
  }
  main {
    margin: 0;
    padding: 23px 18px calc(86px + env(safe-area-inset-bottom));
  }
  .topbar {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    gap: 19px;
    padding-bottom: 20px;
  }
  .topbar h1 {
    font-size: 30px;
  }
  .topbar .eyebrow {
    font-size: 8px;
    max-width: 270px;
    overflow-wrap: anywhere;
  }
  .header-actions {
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
  }
  .header-actions > .quiet,
  .header-actions > .secondary {
    margin-top: 0;
  }
  .header-actions > .mobile-only {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    padding: 6px;
    font-size: 10px;
  }
  .compact-label select {
    min-width: 99px;
  }
  .header-actions button {
    font-size: 11px;
    min-height: 42px;
    padding: 8px 11px;
  }
  #refreshData {
    margin-left: auto;
  }
  #mobileLogout {
    margin-left: 0;
  }
  .mobile-only {
    display: flex;
  }
  .banner {
    margin: 18px 0;
    font-size: 10px;
    padding: 9px 11px;
  }
  .stats {
    margin: 19px 0 16px;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .stat {
    padding: 14px 15px;
  }
  .stat-label {
    font-size: 10px;
    margin-bottom: 7px;
  }
  .stat-value {
    font-size: 28px;
  }
  .stat small {
    font-size: 9px;
  }
  .prize-totals {
    gap: 6px;
    margin-bottom: 25px;
  }
  .total-pill {
    font-size: 9px;
    padding: 5px 8px;
  }
  .section-heading {
    align-items: flex-start;
    gap: 15px;
    flex-wrap: wrap;
    margin: 23px 0 18px;
  }
  .section-heading h2 {
    font-size: 24px;
    line-height: 1.25;
    max-width: 300px;
  }
  .section-heading .eyebrow {
    font-size: 8px;
  }
  .section-heading p:last-child {
    font-size: 11px;
    line-height: 1.8;
  }
  .section-heading > .primary {
    min-height: 42px;
  }
  .toolbar {
    padding: 0;
    gap: 8px;
  }
  .filter-controls {
    width: 100%;
    flex-wrap: wrap;
    padding: 8px;
    gap: 8px;
  }
  .toolbar > input {
    flex-basis: 100%;
    min-height: 44px;
    font-size: 16px;
  }
  .filter-controls > select {
    flex: 1;
    width: 100%;
    max-width: none;
    min-width: 0;
    font-size: 12px;
    min-height: 42px;
  }
  .view-switch {
    flex-basis: 100%;
    justify-content: stretch;
  }
  .view-switch button {
    flex: 1;
    min-height: 35px;
  }
  .bounty-card {
    grid-template-columns: 1fr 1fr;
    padding: 17px;
    gap: 17px 12px;
  }
  .bounty-main {
    grid-column: 1/-1;
  }
  .bounty-card h3 {
    font-size: 16px;
  }
  .round-select {
    max-width: none;
    width: 100%;
    min-height: 42px;
    font-size: 13px;
    margin-top: 5px;
  }
  .bounty-card .card-actions {
    width: 100%;
    grid-column: 1/-1;
    border-top: 1px solid var(--line);
    padding-top: 12px;
    gap: 6px;
  }
  .card-actions button {
    min-height: 40px;
    font-size: 11px;
    padding: 8px 12px;
  }
  .card-caption {
    font-size: 8px;
  }
  .prize-value {
    font-size: 13px;
  }
  .donor {
    font-size: 11px;
  }
  .board-column {
    flex-basis: min(300px, 85vw);
  }
  .board-card .bounty-main {
    width: 100%;
  }
  .board-card .round-select {
    font-size: 13px;
  }
  .empty {
    padding: 35px 20px;
  }
  .panel {
    padding: 20px;
  }
  .panel-row {
    gap: 13px;
    align-items: flex-start;
  }
  .panel-row time {
    font-size: 9px;
    max-width: 90px;
    text-align: right;
  }
  .publish-grid {
    grid-template-columns: 1fr;
  }
  .form-stack {
    gap: 17px;
  }
  .form-stack label {
    font-size: 12px;
  }
  .preview {
    font-size: 11px;
  }
  .notice {
    right: 14px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    max-width: calc(100% - 28px);
    font-size: 11px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .wide,
  .form-section {
    grid-column: 1;
  }
  .dialog-heading h2 {
    font-size: 21px;
  }
  #editorForm {
    padding: 22px 21px 0;
  }
  dialog {
    max-height: 90dvh;
    width: calc(100% - 24px);
    border-radius: 15px;
  }
  .dialog-actions {
    padding: 15px 0;
  }
  .dialog-actions button {
    flex: 1;
  }
  .form-preview {
    padding: 15px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  footer {
    margin-top: 30px;
    font-size: 7px;
    padding: 18px 0;
  }
  footer span {
    max-width: 160px;
    text-align: right;
    font-size: 9px;
  }
  .login-card {
    padding: 29px;
  }
  .login-card h1 {
    font-size: 36px;
  }
}
@media (max-width: 370px) {
  #refreshData {
    order: 5;
    margin-left: 0;
  }
  .header-actions {
    justify-content: space-between;
  }
  .header-actions > .mobile-only {
    margin-left: 0;
  }
  .stat {
    padding: 13px;
  }
  .filter-controls > select {
    font-size: 11px;
  }
}
/* Keep the arrow comfortably inset, including the standard picker fallback. */
select {
  appearance: none;
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, #9da6ba 50%),
    linear-gradient(135deg, #9da6ba 50%, transparent 50%);
  background-position:
    calc(100% - 20px) center,
    calc(100% - 15px) center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
select.round-select {
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, #9da6ba 50%),
    linear-gradient(135deg, #9da6ba 50%, transparent 50%);
}
select option {
  background: #1b202b;
  color: var(--text);
}
.filter-controls #roundFilter {
  width: 140px;
}
.filter-controls #statusFilter {
  width: 175px;
}
@supports (appearance: base-select) {
  select,
  select::picker(select) {
    appearance: base-select;
  }
  select {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-image: none;
    padding-right: 15px;
  }
  select.round-select {
    padding-right: 14px;
    background-image: none;
  }
  select::picker-icon {
    content: "";
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-right: 1.5px solid var(--muted);
    border-bottom: 1.5px solid var(--muted);
    transform: rotate(45deg);
    margin-inline-start: auto;
    margin-inline-end: 3px;
    transition: transform 220ms ease;
  }
  select:open {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px #c3b2f315;
  }
  select:open::picker-icon {
    transform: rotate(225deg);
  }
  select::picker(select) {
    border: 1px solid #42495d;
    border-radius: 12px;
    background: #1b202b;
    color: var(--text);
    padding: 6px;
    margin-block: 6px;
    box-shadow: 0 16px 45px #0006;
    min-width: anchor-size(width);
    max-height: min(340px, 60dvh);
    overflow: auto;
    opacity: 0;
    transform: translateY(-5px);
    transition:
      opacity 200ms ease,
      transform 200ms ease,
      display 200ms allow-discrete,
      overlay 200ms allow-discrete;
  }
  select:open::picker(select) {
    opacity: 1;
    transform: translateY(0);
  }
  @starting-style {
    select:open::picker(select) {
      opacity: 0;
      transform: translateY(-5px);
    }
  }
  select option {
    padding: 10px 12px;
    min-height: 39px;
    border-radius: 7px;
    margin: 2px 0;
    font: inherit;
    transition: background-color 120ms;
  }
  select option:hover,
  select option:focus-visible {
    background: #c3b2f315;
    outline: none;
  }
  select option:checked {
    background: #d5ef9b12;
    color: var(--accent);
    font-weight: 650;
  }
  select option::checkmark {
    color: var(--accent);
    margin-inline-end: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  select::picker(select),
  select::picker-icon {
    transition: none !important;
  }
  select::picker(select) {
    transform: none !important;
  }
}
/* Short, functional motion. No exit delays or animations during list edits. */
dialog[open] {
  animation: dialog-arrive 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
dialog[open]::backdrop {
  animation: backdrop-arrive 240ms ease-out;
}
@keyframes dialog-arrive {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes backdrop-arrive {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
dialog[open].is-closing {
  animation: dialog-depart 180ms ease-in forwards;
  pointer-events: none;
}
dialog[open].is-closing::backdrop {
  animation: backdrop-depart 180ms ease-in forwards;
}
@keyframes dialog-depart {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(9px) scale(0.99);
  }
}
@keyframes backdrop-depart {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@media (max-width: 760px) {
  .staff-pill {
    max-width: calc(100vw - 120px);
  }
  .staff-copy strong {
    max-width: 180px;
  }
  .title-line {
    gap: 9px;
  }
  .title-line .event-state {
    font-size: 9px;
  }
}
button[aria-busy="true"]::before {
  content: "";
  width: 12px;
  height: 12px;
  flex: none;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@media (hover: hover) and (pointer: fine) {
  .primary:hover:not(:disabled) {
    box-shadow: 0 4px 16px #d5ef9b16;
  }
  .nav:hover:not(:disabled),
  .card-actions button:hover:not(:disabled) {
    transform: none;
  }
}
button:active:not(:disabled) {
  transform: scale(0.98);
}
button {
  transition:
    background 150ms,
    border-color 150ms,
    color 150ms,
    box-shadow 150ms,
    transform 120ms;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  button:hover:not(:disabled),
  button:active:not(:disabled) {
    transform: none;
  }
}
