/* Community controls share the production Discord V2 message shell. */
.ce-workspace {
  --ce-accent: #3bd4ea;
  --ce-gold: #a8e45d;
  --ce-panel: #18222f;
  --ce-line: #344252;
  --ce-text: #dce5ef;
  --ce-muted: #98adc3;
  color: var(--ce-text);
  font:
    13px/1.6 Inter,
    "Segoe UI",
    system-ui,
    sans-serif;
  width: 100%;
  max-width: 1260px;
  min-width: 0;
  margin: 0 auto;
  container: community / inline-size;
}
.ce-workspace *,
.ce-workspace *::before,
.ce-workspace *::after {
  box-sizing: border-box;
}
.ce-workspace [hidden] {
  display: none !important;
}
.ce-workspace h1,
.ce-workspace h2,
.ce-workspace h3,
.ce-workspace p {
  margin: 0;
  overflow-wrap: anywhere;
}
.ce-workspace a {
  text-decoration: none;
}
.ce-workspace :focus-visible {
  outline: 2px solid var(--ce-accent);
  outline-offset: 3px;
}
.ce-workspace button,
.ce-workspace input,
.ce-workspace select,
.ce-workspace textarea {
  font-family: inherit;
}
.ce-workspace button {
  cursor: pointer;
  touch-action: manipulation;
}
.ce-workspace button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.ce-workspace .ce-form {
  display: block;
  margin: 0;
  min-width: 0;
}
.ce-workspace .ce-message {
  margin: 0 0 24px;
}
.ce-workspace .ce-message > .gp-message-body {
  min-width: 0;
}
.ce-workspace .ce-message .gp-message-meta {
  flex-wrap: wrap;
}
.ce-workspace .ce-message .gp-v2 {
  padding: 22px;
  min-width: 0;
}
.ce-workspace .ce-card {
  border: 1px solid var(--ce-line);
  border-left: 3px solid var(--ce-accent);
  border-radius: 7px;
  background: var(--ce-panel);
  padding: 22px;
  min-width: 0;
  margin: 0 0 20px;
  box-shadow: none;
}
.ce-workspace .ce-message .ce-card {
  margin: 0;
}
.ce-workspace .ce-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  min-width: 0;
}
.ce-workspace .ce-card-head > div {
  min-width: 0;
}
.ce-workspace .ce-card h2,
.ce-workspace .ce-section-head h2 {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -0.15px;
}
.ce-workspace .ce-card h3 {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 12px;
}
.ce-workspace .ce-card-head p,
.ce-workspace .ce-section-head p {
  color: var(--ce-muted);
  font-size: 13px;
  line-height: 1.65;
  margin-top: 5px;
}
.ce-page-panel h1 {
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.5px;
}
.ce-page-panel > p {
  color: var(--ce-muted);
  margin-top: 8px;
}
.ce-section-summary {
  padding-top: 16px;
}
.ce-section-summary h2 {
  font-size: 17px;
  line-height: 1.4;
}
.ce-section-summary p {
  color: var(--ce-muted);
  margin-top: 5px;
}
.ce-page-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--ce-line);
  color: var(--ce-muted);
  font-size: 12px;
}
.ce-page-summary strong {
  color: #d8e7f4;
  font-weight: 600;
}
.ce-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 22px;
  min-width: 0;
}
.ce-fieldset:last-child {
  margin-bottom: 0;
}
.ce-fieldset > legend {
  width: 100%;
  padding: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: #dce8f3;
}
.ce-preset-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 18px;
}
.ce-preset-toolbar > form {
  display: contents;
}
.ce-preset-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.ce-workspace .ce-preset-heading h3 {
  margin: 0;
}
.ce-game-list {
  display: grid;
  min-width: 0;
}
.ce-game-rule {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 18px 0;
  border-top: 1px solid var(--ce-line);
}
.ce-game-rule:first-child {
  padding-top: 0;
  border-top: 0;
}
.ce-game-rule:last-child {
  padding-bottom: 0;
}
.ce-game-rule > header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.ce-workspace .ce-game-rule h3 {
  margin: 0;
}
.ce-game-rule p {
  color: var(--ce-muted);
}
.ce-game-rule code {
  width: fit-content;
  max-width: 100%;
  background: #102031;
  color: #b4d8ee;
  padding: 4px 8px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
.ce-slots-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-width: 0;
}
.ce-slots-stat {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.ce-slots-stat > strong {
  font-size: 24px;
  color: #bce7f1;
}
.ce-slots-stat dl {
  margin: 0;
}
.ce-slots-stat dt {
  color: var(--ce-muted);
  font-size: 12px;
}
.ce-slots-stat dd {
  margin: 4px 0 0;
  font-size: 26px;
  color: #bce7f1;
  font-weight: 600;
}
.ce-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.ce-page-head > div {
  min-width: 0;
}
.ce-status-pill,
.ce-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  flex-shrink: 0;
  border: 1px solid #3e5366;
  border-radius: 4px;
  background: #223446;
  padding: 3px 8px;
  font-size: 11px;
  line-height: 1.5;
  color: #c4d3e3;
  overflow-wrap: anywhere;
}
.ce-status-pill {
  color: #a8dfb3;
  border-color: #375444;
  background: #20362c;
}
.ce-status-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #86d79c;
}
.ce-tag-active {
  color: #a8dfb3;
  border-color: #375444;
  background: #20362c;
}
.ce-workspace .ce-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: thin;
  border-bottom: 1px solid var(--ce-line);
  margin: 18px 0 0;
  padding: 0 0 4px;
}
.ce-workspace .ce-tabs > a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  flex-shrink: 0;
  border-radius: 5px;
  border-bottom: 2px solid transparent;
  padding: 8px 12px;
  color: #a4bdd2;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}
.ce-workspace .ce-tabs > a.is-active {
  background: #253f53;
  color: #c0eff7;
  border-bottom-color: var(--ce-accent);
}
.ce-workspace .ce-tabs > a:hover {
  background: #243448;
  color: #eef5ff;
}
.ce-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.ce-columns > *,
.ce-preview-column {
  min-width: 0;
}
.ce-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}
.ce-workspace .ce-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  min-width: 0;
  max-width: 100%;
  text-align: left;
}
.ce-field > span {
  color: #c3d2e2;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.ce-workspace .ce-field > input,
.ce-workspace .ce-field > select,
.ce-workspace .ce-field > textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid #3c5065;
  border-radius: 5px;
  padding: 9px 11px;
  font-size: 13px;
  line-height: 20px;
  color: #deebf7;
  background: #101b28;
  box-shadow: none;
}
.ce-workspace .ce-field > input:focus,
.ce-workspace .ce-field > select:focus {
  border-color: var(--ce-accent);
}
.ce-workspace .ce-field > input[type="color"] {
  height: 40px;
  max-width: 160px;
  padding: 4px;
  cursor: pointer;
}
.ce-workspace .ce-field > select[multiple] {
  min-height: 120px;
  padding: 6px;
  scrollbar-width: thin;
}
.ce-field option {
  padding: 6px;
}
.ce-field small {
  color: var(--ce-muted);
  font-size: 12px;
  line-height: 1.6;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.ce-workspace .ce-form .ce-field > input,
.ce-workspace .ce-form .ce-field > select,
.ce-workspace .ce-form .ce-field > textarea {
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
}
.ce-full {
  grid-column: 1/-1;
}
.ce-workspace .choice-combo,
.ce-workspace .choice-control,
.ce-workspace .choice-input-shell {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}
.ce-workspace .choice-control {
  display: flex;
}
.ce-workspace .choice-input {
  flex: 1 1 0;
  min-width: 0 !important;
  width: 100%;
  font-size: 13px;
}
.ce-workspace .choice-menu {
  max-width: 100%;
  z-index: 40;
}
.ce-workspace .choice-option {
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 0;
}
.ce-divider,
.ce-workspace .ce-v2-response > hr {
  border: 0;
  border-top: 1px solid var(--ce-line);
  margin: 20px 0;
  width: 100%;
}
.ce-workspace .ce-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 16px;
  border-top: 1px solid var(--ce-line);
  margin-top: 20px;
  padding-top: 16px;
  min-width: 0;
}
.ce-form-foot > span {
  flex: 1 1 160px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ce-muted);
  min-width: 0;
  overflow-wrap: anywhere;
}
.ce-form-foot.is-dirty > span {
  color: #b8e77d;
}
.ce-workspace .ce-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  min-height: 38px;
  height: auto;
  border: 1px solid #40556b;
  border-radius: 5px;
  background: #24364a;
  color: #d7e5f2;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 20px;
  font-weight: 600;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  box-shadow: none;
}
.ce-workspace .ce-button:hover {
  background: #30475e;
}
.ce-workspace .ce-button.ce-primary {
  background: #a7df56;
  border-color: #b0e465;
  color: #1b2818;
}
.ce-workspace .ce-button.ce-primary:hover {
  background: #b5e877;
}
.ce-workspace .ce-button.ce-quiet {
  background: #24364a;
}
.ce-workspace .ce-icon-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  max-width: 38px;
  max-height: 38px;
  padding: 0;
  margin: 0;
  border: 1px solid #40556b;
  border-radius: 5px;
  background: #24364a;
  color: #b9d0e5;
  font-size: 19px;
  line-height: 1;
}
.ce-workspace .ce-icon-button > svg {
  width: 18px;
  height: 18px;
  display: block;
}
.ce-workspace .ce-icon-button:hover {
  background: #30475e;
  color: white;
}
.ce-workspace .ce-danger:hover {
  background: #542d3a;
  border-color: #975065;
  color: #ffd3df;
}
.ce-workspace .ce-toggle {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  margin: 0;
  min-width: 0;
  cursor: pointer;
}
.ce-toggle > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.ce-toggle strong {
  color: #d6e2ef;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}
.ce-toggle small {
  display: block;
  font-size: 12px;
  color: var(--ce-muted);
  margin-top: 3px;
  line-height: 1.6;
  font-weight: 400;
}
.ce-workspace .ce-toggle > input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: 0;
  opacity: 0;
}
.ce-toggle > i {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 22px;
  border-radius: 22px;
  background: #34465c;
  border: 1px solid #4c6279;
  transition: background 0.15s;
}
.ce-toggle > i::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  background: #c2d0df;
  border-radius: 50%;
  transition: transform 0.15s;
}
.ce-toggle > input:checked + i {
  background: #8dd454;
  border-color: #a4de76;
}
.ce-toggle > input:checked + i::after {
  transform: translateX(14px);
  background: #203620;
}
.ce-toggle > input:focus-visible + i {
  outline: 2px solid var(--ce-accent);
  outline-offset: 3px;
}
.ce-details {
  min-width: 0;
  border-top: 1px solid var(--ce-line);
  margin-top: 12px;
  padding-top: 12px;
}
.ce-details > summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  color: #c7d7e7;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
  overflow-wrap: anywhere;
}
.ce-details > summary::-webkit-details-marker {
  display: none;
}
.ce-details > summary > span {
  flex-shrink: 0;
  color: var(--ce-muted);
  font-size: 11px;
}
.ce-details[open] > summary {
  margin-bottom: 12px;
}
.ce-command-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin-bottom: 16px;
}
.ce-command-list .ce-toggle,
.ce-policy-grid .ce-toggle {
  border-bottom: 1px solid #2d3d4f;
}
.ce-command-list .ce-toggle strong {
  font:
    12px/1.5 ui-monospace,
    monospace;
  overflow-wrap: anywhere;
}
.ce-rule-grid,
.ce-lottery-tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.ce-rule-grid > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.ce-rule-grid b,
.ce-lottery-tiers b {
  font-size: 24px;
  line-height: 1.3;
  color: #c7e9f1;
  overflow-wrap: anywhere;
}
.ce-rule-grid span,
.ce-lottery-tiers small {
  font-size: 12px;
  color: var(--ce-muted);
}
.ce-shop-summary {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--ce-line);
}
.ce-table-wrap td > small {
  display: block;
  margin-top: 4px;
  color: var(--ce-muted);
}
[data-ce-shop-variant]:empty {
  display: none;
}
[data-ce-shop-details] {
  grid-column: 1 / -1;
}
.ce-result-select {
  flex: 1 1 100%;
  max-width: 100%;
}
.ce-result-accessory {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.ce-result-accessory > div {
  min-width: 0;
}
.ce-result-accessory > button {
  flex: 0 0 auto;
}
.ce-result-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--ce-muted);
  font-size: 12px;
}
.ce-result-progress progress {
  width: 100%;
  height: 8px;
  accent-color: var(--gp-accent, #5865f2);
}
.ce-discord-embed[data-ce-tone="success"] {
  border-left-color: #3ba55d;
}
.ce-discord-embed[data-ce-tone="warning"] {
  border-left-color: #faa61a;
}
.ce-discord-embed[data-ce-tone="danger"] {
  border-left-color: #ed4245;
}
.ce-discord-embed[data-ce-layout="catalog"] .ce-result-fields > div {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ce-line);
}
.ce-result-modal textarea {
  min-height: 100px;
  resize: vertical;
}
@media (max-width: 600px) {
  .ce-result-accessory {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .ce-result-accessory > button {
    flex: 0 1 auto;
    max-width: 100%;
  }
}
.ce-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  margin: 22px 0 16px;
}
.ce-section-head > div {
  min-width: 0;
}
.ce-inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ce-workspace .ce-inline-actions form {
  display: contents;
}
.ce-preset-list {
  display: grid;
  gap: 12px;
}
.ce-preset-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid #33485b;
  border-radius: 6px;
  background: #14202d;
  padding: 16px;
  min-width: 0;
}
.ce-preset-content {
  min-width: 0;
}
.ce-preset-content h3 {
  font-size: 15px;
  margin: 0 0 8px;
}
.ce-preset-row.is-disabled {
  opacity: 0.6;
}
.ce-preset-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #365065;
  border-radius: 9px;
  background: #23394b;
  color: #a5e0ed;
  font-size: 23px;
  flex-shrink: 0;
}
.ce-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}
.ce-preset-card {
  padding: 18px;
  border: 1px solid var(--ce-line);
  border-radius: 7px;
  background: var(--ce-panel);
  min-width: 0;
}
.ce-preset-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.ce-preset-row dl,
.ce-preset-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 16px;
  min-width: 0;
  margin: 0;
}
.ce-preset-row dl > div,
.ce-preset-card dl > div {
  min-width: 0;
}
.ce-preset-row dt,
.ce-preset-card dt {
  font-size: 11px;
  color: var(--ce-muted);
  overflow-wrap: anywhere;
}
.ce-preset-row dd,
.ce-preset-card dd {
  margin: 2px 0 0;
  font-size: 13px;
  color: #d8e6f2;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.ce-preset-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.ce-preset-card .ce-preset-actions {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ce-line);
}
.ce-preset-card .ce-preset-actions .ce-button {
  flex: 1 1 auto;
}
.ce-footnote,
.ce-preview-caption {
  font-size: 12px;
  color: var(--ce-muted);
  line-height: 1.6;
  margin: 12px 0 0 !important;
}
.ce-encounter-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--ce-line);
  border-radius: 5px;
  background: #132030;
  margin-bottom: 16px;
  min-width: 0;
}
.ce-encounter-strip > span,
.ce-encounter-strip > strong {
  font-size: 11px;
  line-height: 1.5;
  color: var(--ce-muted);
  font-weight: 500;
}
.ce-encounter-strip > div {
  display: flex;
  flex: 1 1 150px;
  min-width: 0;
  height: 8px;
  overflow: hidden;
  border-radius: 5px;
  gap: 2px;
}
.ce-encounter-strip i {
  height: 8px;
  background: var(--ce-rarity, #526c88);
}
.ce-dialog {
  box-sizing: border-box;
  width: min(720px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  margin: auto;
  border: 1px solid #496079;
  border-radius: 9px;
  background: #18222f;
  color: #dce7f2;
  padding: 22px;
  box-shadow: 0 24px 90px #0009;
}
.ce-dialog[data-ce-preset-dialog] {
  display: none;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(760px, calc(100vw - 32px));
  height: min(900px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
  scrollbar-gutter: stable;
}
.ce-dialog[data-ce-preset-dialog][open] {
  display: grid;
}
.ce-dialog[data-ce-preset-dialog] > .ce-dialog-head {
  margin: 0;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--ce-line);
  background: #18222f;
  z-index: 3;
}
.ce-dialog[data-ce-preset-dialog] > .ce-form {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.ce-dialog-body {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 20px 22px 28px;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}
.ce-dialog[data-ce-preset-dialog] > .ce-form > .ce-form-foot {
  position: sticky;
  bottom: 0;
  z-index: 4;
  margin: 0;
  padding: 14px 22px;
  background: #18222f;
  box-shadow: 0 -12px 24px rgba(5, 10, 16, 0.2);
}
.ce-dialog:has(.combo-select.open) .ce-dialog-body {
  padding-bottom: 330px;
}
.ce-dialog:has(.emoji-picker-menu:not([hidden])) .ce-dialog-body {
  padding-bottom: 420px;
}
.ce-dialog::backdrop {
  background: #06101ccc;
  backdrop-filter: blur(3px);
}
.ce-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  min-width: 0;
}
.ce-dialog-head > div {
  min-width: 0;
}
.ce-dialog-head h2 {
  font-size: 21px;
  line-height: 1.4;
  margin: 4px 0 0;
}
.ce-dialog-head small {
  color: var(--ce-accent);
  font-size: 11px;
  letter-spacing: 0.7px;
}
.ce-role-picker,
.ce-picker-help {
  min-width: 0;
  grid-column: 1 / -1;
}
.ce-role-picker > small,
.ce-picker-help {
  display: block;
  margin-top: 7px;
  color: var(--ce-muted);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.ce-workspace .settings-field,
.ce-dialog .settings-field,
.ce-workspace .channel-picker {
  min-width: 0;
  max-width: 100%;
}
.ce-workspace .discord-emoji-preview,
.ce-dialog .discord-emoji-preview {
  width: 1.25em;
  height: 1.25em;
  object-fit: contain;
  vertical-align: -0.2em;
}
.ce-preset-icon .ce-item-emoji {
  width: 26px;
  height: 26px;
  vertical-align: middle;
}
.ce-array-field {
  min-width: 0;
  max-width: 100%;
  grid-column: 1/-1;
  border: 1px solid var(--ce-line);
  border-radius: 5px;
  padding: 14px;
  margin: 0;
}
.ce-array-field legend {
  font-size: 12px;
  color: var(--ce-muted);
  max-width: 100%;
  padding: 0 5px;
  overflow-wrap: anywhere;
}
.ce-array-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
  min-width: 0;
}
.ce-array-row:last-child {
  margin-bottom: 0;
}
.ce-array-field > .ce-field + .ce-field {
  margin-top: 12px;
}
.ce-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  min-width: 0;
}
.ce-casino-card {
  border: 1px solid var(--ce-line);
  border-radius: 6px;
  overflow: hidden;
  background: #14202e;
  min-width: 0;
}
.ce-casino-art {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  background: #20394a;
}
.ce-casino-art > b {
  font-size: 64px;
  color: #b8e8f1;
}
.ce-casino-copy {
  padding: 16px;
  min-width: 0;
}
.ce-casino-copy h3 {
  font-size: 15px;
}
.ce-casino-copy p {
  margin: 8px 0 14px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--ce-muted);
}
.ce-casino-copy code {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  font:
    12px/1.5 ui-monospace,
    monospace;
}
.ce-inline-between {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.ce-playing-card {
  font-style: normal;
  position: relative;
  display: block;
  width: 58px;
  height: 85px;
  border-radius: 6px;
  background: #e8e5dc;
  color: #253242;
  font-size: 22px;
  font-family: Georgia, serif;
  padding: 4px 8px;
  line-height: 1.1;
  box-shadow: 4px 5px 12px #0004;
  transform: rotate(-18deg);
}
.ce-playing-card small {
  display: block;
  font-size: 26px;
  text-align: center;
  margin-top: 8px;
}
.ce-playing-card + .ce-playing-card {
  transform: rotate(17deg);
  margin-left: -8px;
  margin-top: 10px;
  color: #a44b52;
}
.ce-roulette-art {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 9px ridge #b5a579;
  background: repeating-conic-gradient(#9b5659 0deg 12deg, #25312f 12deg 24deg);
  box-shadow:
    0 0 0 5px #4b5548,
    6px 13px 18px #0005;
  display: grid;
  place-items: center;
  transform: rotate(-15deg);
}
.ce-roulette-art > i {
  width: 54px;
  height: 54px;
  border: 5px double #bfb087;
  display: grid;
  place-items: center;
  background: #3f6251;
  border-radius: 50%;
  color: #e2d3a8;
  font-size: 20px;
  font-style: normal;
  box-shadow: 0 0 0 3px #172a21;
}
.ce-casino-wheel .ce-roulette-art {
  background: conic-gradient(
    #9d638c 0 60deg,
    #455b90 60deg 120deg,
    #b18952 120deg 180deg,
    #698e71 180deg 240deg,
    #b36e5d 240deg 300deg,
    #5b95a3 300deg
  );
}
.ce-casino-wheel .ce-roulette-art > i {
  background: #6b4568;
}
.ce-slots-showcase {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: center;
  border: 1px solid #63513d;
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 90% 50%, #4a3c2e, transparent 65%), #292c2b;
  padding: 28px 32px;
  margin-bottom: 25px;
}
.ce-eyebrow {
  font-size: 8px;
  letter-spacing: 1.8px;
  color: var(--ce-accent);
  font-weight: 650;
}
.ce-slots-showcase h2 {
  font-size: 24px;
  font-weight: 550;
  line-height: 1.35;
  letter-spacing: -0.5px;
  margin: 9px 0 12px;
}
.ce-slots-showcase p {
  font-size: 11px;
  line-height: 1.8;
  color: #b5b2aa;
  max-width: 330px;
  margin-bottom: 16px;
}
.ce-fruit-machine {
  width: 100%;
  max-width: 300px;
  justify-self: center;
  border: 3px solid #b49b67;
  border-radius: 15px 15px 10px 10px;
  background: linear-gradient(145deg, #61513a, #34352e);
  box-shadow:
    0 8px 0 #1b2421,
    0 13px 0 #726146,
    0 20px 30px #0005;
  padding: 10px;
}
.ce-machine-title {
  text-align: center;
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 750;
  color: #f0d69c;
  margin: 5px 0 12px;
  text-shadow: 0 0 8px #dfa74655;
}
.ce-reels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  border: 4px solid #202922;
  box-shadow: 0 0 0 2px #aa956a;
  border-radius: 6px;
  background: #242927;
  overflow: hidden;
}
.ce-reels > span {
  position: relative;
  display: grid;
  place-items: center;
  font-size: 36px;
  min-height: 77px;
  background: linear-gradient(#b5b49b, #faf0cf 28%, #f4eccf 66%, #b2b19b);
  border-right: 1px solid #7b856a;
  text-shadow: 0 2px #ddcca5;
}
.ce-reels > span:last-child {
  border: 0;
}
.ce-machine-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 8px 4px;
  font-size: 8px;
  letter-spacing: 3px;
  color: #dbc798;
}
.ce-machine-base i {
  width: 20px;
  height: 8px;
  border-radius: 5px;
  background: #c8a85e;
  border-bottom: 2px solid #705e35;
}
.ce-reels.is-spinning > span {
  animation: ce-spin-blur 0.16s infinite;
}
.ce-reels.is-spinning > span:nth-child(2) {
  animation-delay: 0.05s;
}
.ce-reels.is-spinning > span:nth-child(3) {
  animation-delay: 0.1s;
}
@keyframes ce-spin-blur {
  0% {
    filter: blur(0);
    transform: translateY(-3px);
  }
  50% {
    filter: blur(4px);
    transform: translateY(4px);
  }
  100% {
    filter: blur(0);
    transform: translateY(-3px);
  }
}

.ce-table-wrap {
  min-width: 0;
  max-width: 100%;
  overflow: auto;
  scrollbar-width: thin;
}
.ce-workspace table {
  width: 100%;
  border-collapse: collapse;
}
.ce-workspace th,
.ce-workspace td {
  padding: 12px;
  text-align: left;
  font-size: 12px;
  line-height: 1.5;
  border-bottom: 1px solid var(--ce-line);
  background: transparent;
}
.ce-workspace th {
  color: var(--ce-muted);
  font-weight: 600;
}
.ce-workspace td {
  color: #c1d2e3;
}
.ce-workspace td strong {
  color: #e4edf7;
}
.ce-workspace tr:last-child > td {
  border-bottom: 0;
}
.ce-member-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ce-member-avatar {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 9px;
  background: #304c61;
  color: #bce8f1;
  font-weight: 600;
}
.ce-rank,
.ce-total {
  color: #b5dce9;
  font-variant-numeric: tabular-nums;
}
.ce-empty {
  padding: 20px 10px;
  color: var(--ce-muted);
  font-size: 13px;
  text-align: center;
  overflow-wrap: anywhere;
}
.ce-empty > span {
  display: block;
  font-size: 28px;
  margin-bottom: 12px;
}
.ce-empty h3 {
  margin-bottom: 8px;
  color: #d6e4f2;
}
.ce-empty p {
  color: var(--ce-muted);
  margin: 0 auto;
  max-width: 420px;
}
.ce-election-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.ce-election-track > div {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  min-width: 0;
}
.ce-election-track i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #29495b;
  color: #c1eaf2;
  font-style: normal;
}
.ce-election-track strong,
.ce-election-track small {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.ce-election-track small {
  color: var(--ce-muted);
}
.ce-lottery-tiers > div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--ce-line);
  border-radius: 5px;
  background: #14202e;
}
.ce-lottery-tiers strong {
  font-size: 12px;
}
.ce-tier-stars {
  color: #a8df6d;
  letter-spacing: 1px;
}
.ce-lottery-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.ce-lottery-balls > b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #bddde9;
  color: #203649;
  font-size: 13px;
}
.ce-steps {
  padding-left: 23px;
  margin: 0;
}
.ce-steps li {
  margin-bottom: 14px;
  color: var(--ce-accent);
}
.ce-steps strong {
  color: #d6e4f2;
}
.ce-steps p {
  color: var(--ce-muted);
  font-size: 12px;
  margin-top: 5px;
}
.ce-wanted {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ce-line);
  min-width: 0;
}
.ce-wanted small,
.ce-wanted p {
  font-size: 12px;
  color: var(--ce-muted);
}
.ce-wanted > strong {
  margin-left: auto;
  color: #c5e7f1;
}
.ce-board-art {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(150px, 100%);
  margin: 18px auto;
  gap: 4px;
}
.ce-board-art i {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 4px;
  background: #2d4359;
  color: #b9e1ef;
  font:
    22px/1 system-ui,
    sans-serif;
}
.ce-connect-art {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  width: min(240px, 100%);
  padding: 8px;
  border-radius: 5px;
  background: #304f6d;
}
.ce-connect-art i {
  border-radius: 50%;
  font-size: 20px;
  background: #142333;
}
.ce-history > article {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  border-bottom: 1px solid var(--ce-line);
  padding: 14px 0;
}
.ce-history-symbol {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #274553;
  color: #a9d8d3;
}
.ce-history strong,
.ce-history p,
.ce-history time {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.ce-history p {
  margin-top: 5px;
  color: var(--ce-muted);
}
.ce-history time {
  color: var(--ce-muted);
  text-align: right;
}
.ce-history > article > div {
  min-width: 0;
}
.ce-history-postings {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 10px 0;
  padding: 0;
}
.ce-history-postings > li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  color: #b4c7d9;
  font-size: 12px;
}
.ce-history-postings > li > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.ce-history-postings b {
  white-space: nowrap;
  font-weight: 600;
}
.ce-history-details,
.ce-session-history {
  color: var(--ce-muted);
  font-size: 11px;
  margin-top: 8px;
}
.ce-history-details summary,
.ce-session-history summary {
  cursor: pointer;
  width: fit-content;
  max-width: 100%;
}
.ce-history-details code {
  white-space: normal;
  overflow-wrap: anywhere;
}
.ce-negative {
  color: #eba7b5;
}
.ce-positive {
  color: #a6dfbb;
}
.ce-policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
.ce-activity-stats,
.ce-summary,
.ce-page-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 12px 0;
  color: var(--ce-muted);
  font-size: 12px;
  min-width: 0;
}
.ce-activity-stats strong,
.ce-summary strong,
.ce-page-summary strong {
  color: #d4e7f3;
  font-weight: 600;
}
.ce-preview-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ce-muted);
  font-size: 11px;
  margin-bottom: 12px;
}
.ce-discord {
  border: 1px solid var(--ce-line);
  border-radius: 7px;
  background: #172333;
  min-width: 0;
}
.ce-discord-channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ce-line);
  color: #aac0d5;
  font-size: 12px;
}
.ce-discord-channel > span {
  font-size: 10px;
  color: var(--ce-muted);
}
.ce-discord-message {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 16px;
  min-width: 0;
}
.ce-bot-avatar,
.ce-welcome-bot {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #1f3f51;
  color: #c3f5ff;
  font-weight: 700;
}
.ce-bot-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
  margin-bottom: 8px;
  color: #71d7ef;
  font-size: 12px;
  font-weight: 650;
}
.ce-bot-name > b {
  padding: 2px 4px;
  border-radius: 3px;
  background: #27819c;
  color: #e0faff;
  font-size: 9px;
  line-height: 1;
}
.ce-bot-name > time {
  color: var(--ce-muted);
  font-size: 10px;
  font-weight: 400;
}
.ce-workspace .ce-discord-embed,
.ce-workspace .ce-v2-response {
  background: #18222f;
  border: 1px solid #344252;
  border-left: 3px solid #3bd4ea;
  border-radius: 7px;
  padding: 16px;
  min-width: 0;
  max-width: 100%;
}
.ce-workspace .ce-discord-embed h3 {
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 8px;
}
.ce-workspace .ce-discord-embed p {
  font-size: 13px;
  line-height: 1.6;
  color: #b4c7d9;
}
.ce-embed-stats,
.ce-fishing-ranking { display: grid; gap: 12px; margin: 10px 0 16px; }
.ce-fishing-top-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; opacity: .7; }
.ce-fishing-scores > .ce-fishing-top-label { display: block; margin-bottom: 6px; }
.ce-fishing-rank { display: grid; grid-template-columns: 28px minmax(0, 1fr) 56px; align-items: center; gap: 10px; padding: 4px 0; }
.ce-fishing-medal { align-self: start; padding-top: 2px; text-align: center; font-weight: 700; font-size: 18px; }
.ce-fishing-record { display: grid; gap: 3px; min-width: 0; line-height: 1.35; }
.ce-fishing-record > strong { font-size: 15px; overflow-wrap: anywhere; }
.ce-fishing-record > span { font-size: 13px; overflow-wrap: anywhere; }
.ce-fishing-record > span:not(.ce-fishing-size) { opacity: .75; }
.ce-fishing-size strong { color: var(--text-primary, #f2f4fa); }
.ce-fishing-rank .ce-participant-picture { width: 56px; height: 56px; border-radius: 12px; }
.ce-fishing-actions { margin-top: 8px; }
.ce-fishing-actions .ce-result-buttons { margin-top: 0; }
.ce-workspace .ce-fishing-actions .ce-result-action-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ce-workspace .ce-fishing-actions .ce-result-action-row > .gp-button { width: auto; flex: 0 1 auto; }
@media (max-width: 480px) { .ce-fishing-rank { grid-template-columns: 23px minmax(0, 1fr) 44px; gap: 8px; } .ce-fishing-rank .ce-participant-picture { width: 44px; height: 44px; } }

.ce-result-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  margin-top: 16px;
}
.ce-embed-stats > div,
.ce-result-fields > div {
  min-width: 0;
}
.ce-embed-stats small {
  display: block;
  color: var(--ce-muted);
  font-size: 11px;
}
.ce-embed-stats strong {
  display: block;
  font-size: 21px;
  color: #dceef8;
  overflow-wrap: anywhere;
}
.ce-embed-note {
  padding: 10px;
  margin-top: 14px;
  background: #24374b;
  border-radius: 4px;
  color: #b9cfe3;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.ce-embed-eyebrow,
.ce-eyebrow {
  font-size: 11px;
  color: var(--ce-accent);
  font-weight: 600;
}
.ce-discord-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.ce-discord-buttons > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  min-height: 34px;
  border: 1px solid #46627d;
  border-radius: 4px;
  background: #2b435c;
  color: #d9e9f5;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.ce-simulator {
  margin: 24px 0 0;
  min-width: 0;
}
.ce-simulator-panel {
  min-width: 0;
}
.ce-simulator > .ce-section-head {
  margin: 0;
  padding: 20px;
  border-bottom: 1px solid var(--ce-line);
}
.ce-playground-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  border: 1px solid var(--ce-line);
  border-radius: 6px;
  background: #152230;
  min-width: 0;
}
.ce-command-composer {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--ce-line);
}
.ce-command-composer > .ce-fields {
  grid-template-columns: 1fr;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ce-line);
}
.ce-command-composer [data-ce-command-fields] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
}
.ce-workspace .ce-run-command {
  width: 100%;
  margin-top: 18px;
}
.ce-preview-tools {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--ce-line);
}
.ce-preview-tools summary {
  font-size: 12px;
  color: #b5cbe0;
  cursor: pointer;
}
.ce-preview-tools p {
  font-size: 12px;
  line-height: 1.6;
  margin: 12px 0;
  color: var(--ce-muted);
}
.ce-preview-tools .ce-fields {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.ce-simulator-discord {
  min-width: 0;
  background: #172432;
  border-radius: 0 6px 6px 0;
}
.ce-simulator-messages {
  min-height: 400px;
  max-height: 720px;
  padding: 16px;
  overflow: auto;
  scrollbar-width: thin;
}
.ce-simulator-welcome {
  max-width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
  color: var(--ce-muted);
}
.ce-welcome-bot {
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  font-size: 24px;
}
.ce-simulator-welcome h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #dfebf7;
}
.ce-simulator-welcome p {
  font-size: 13px;
  line-height: 1.6;
}
.ce-simulator-welcome > span {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 10px;
  border: 1px solid var(--ce-line);
  border-radius: 4px;
  background: #23374a;
  font:
    12px/1.5 ui-monospace,
    monospace;
}
.ce-sim-request {
  padding: 8px 0;
  color: var(--ce-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.ce-sim-request strong {
  color: #d0e1ef;
}
.ce-simulator-messages .ce-discord-message {
  padding: 8px 0 18px;
}
.ce-result-description {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.ce-workspace .ce-identity-header {
  margin-bottom: 8px;
}
.ce-public-participant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
}
.ce-public-participant > strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
.ce-participant-picture {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 8px;
  background: #5865f2;
  color: #fff;
  font-weight: 700;
}
.ce-participant-picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ce-result-fields > .ce-wide {
  grid-column: 1/-1;
}
.ce-result-fields strong {
  display: block;
  font-size: 12px;
  color: #d4e5f3;
  margin-bottom: 4px;
}
.ce-result-fields p {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.ce-result-buttons {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  min-width: 0;
}
.ce-result-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.ce-workspace .ce-result-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 36px;
  height: auto;
  max-width: 100%;
  border: 1px solid #49637d;
  border-radius: 4px;
  padding: 8px 12px;
  background: #2e4964;
  color: #e1edf7;
  font:
    600 12px/18px Inter,
    "Segoe UI",
    system-ui,
    sans-serif;
  white-space: normal;
  overflow-wrap: anywhere;
}
.ce-result-buttons button:hover {
  filter: brightness(1.15);
}
.ce-workspace .ce-result-buttons button[data-style="danger"] {
  background: #743e4c;
  border-color: #985666;
}
.ce-workspace .ce-result-buttons button[data-style="success"] {
  background: #346048;
  border-color: #54866b;
}
.ce-arcade-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: min(280px, 100%);
}
.ce-arcade-controls[data-columns="7"] {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  width: min(420px, 100%);
}
.ce-workspace .ce-result-buttons .ce-arcade-cell {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  aspect-ratio: 1;
  padding: 0;
  font-size: 19px;
  line-height: 1;
}
.ce-result-board {
  display: grid;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}
.ce-result-board > span {
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1;
  font-size: 19px;
}
.ce-result-reels {
  max-width: 260px;
  margin-top: 14px;
}
.ce-result-reels > span {
  min-height: 64px;
  font-size: 30px;
}
.ce-result-mention {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  color: #bec6ff;
  background: #5865f233;
  font-size: 12px;
}
.ce-result-footer {
  display: block;
  margin-top: 16px;
  color: var(--ce-muted);
  font-size: 11px;
  font-weight: 400;
}
.ce-session-clock {
  font-variant-numeric: tabular-nums;
}
.ce-arcade-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: min(280px, 100%);
  min-width: 0;
}
.ce-arcade-board[data-columns="7"] {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  width: min(420px, 100%);
  padding: 6px;
  border: 1px solid #3b5671;
  border-radius: 5px;
  background: #152c44;
}
.ce-workspace .ce-result-board .ce-arcade-cell {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  min-height: 32px;
  aspect-ratio: 1;
  padding: 0;
  margin: 0;
  border: 1px solid #405975;
  border-radius: 4px;
  color: #aac6e0;
  background: #253e58;
  font:
    600 20px/1 Inter,
    "Segoe UI",
    system-ui,
    sans-serif;
}
.ce-workspace .ce-arcade-board[data-columns="7"] .ce-arcade-cell {
  border: 0;
  background: #0c1c2e;
  border-radius: 50%;
  color: #344c63;
  font-size: clamp(14px, 3vw, 28px);
}
.ce-workspace .ce-result-board .ce-arcade-cell[data-player="1"] {
  color: #72d9ed;
  opacity: 1;
}
.ce-workspace .ce-result-board .ce-arcade-cell[data-player="2"] {
  color: #f4c16b;
  opacity: 1;
}
.ce-workspace .ce-result-board button.ce-arcade-cell:enabled:hover {
  border-color: #74d3e6;
  background: #315474;
}
.ce-workspace .ce-simulator-messages .gp-v2 {
  padding: 16px;
}
.ce-sim-error {
  border-left-color: #e78a9f !important;
}
.ce-sim-error h3 {
  color: #fac4d0;
}
.ce-page-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  border-top: 1px solid var(--ce-line);
  padding-top: 18px;
  margin-top: 24px;
  font-size: 11px;
  color: var(--ce-muted);
  overflow-wrap: anywhere;
}
.ce-workspace .ce-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  max-width: min(440px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid #5b876a;
  border-radius: 6px;
  background: #234132;
  color: #d9f4df;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 6px 30px #0005;
  overflow-wrap: anywhere;
}
.ce-workspace .ce-toast.is-error {
  background: #4e2e36;
  border-color: #98576a;
  color: #ffdae3;
}
@container community (max-width:1000px) {
  .ce-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .ce-preview-column {
    max-width: 720px;
  }
  .ce-preset-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .ce-preset-row > .ce-preset-actions {
    grid-column: 2;
  }
}
@container community (max-width:760px) {
  .ce-slots-preview {
    grid-template-columns: minmax(0, 1fr);
  }
  .ce-playground-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .ce-command-composer {
    border-right: 0;
    border-bottom: 1px solid var(--ce-line);
  }
  .ce-command-composer > .ce-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ce-simulator-discord {
    border-radius: 0 0 6px 6px;
  }
  .ce-policy-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ce-history > article {
    grid-template-columns: 32px minmax(0, 1fr);
  }
  .ce-history time {
    grid-column: 2;
    text-align: left;
  }
}
@container community (max-width:520px) {
  .ce-workspace .ce-message .gp-v2,
  .ce-workspace .ce-card {
    padding: 16px;
  }
  .ce-fields,
  .ce-command-list,
  .ce-command-composer > .ce-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .ce-preset-row {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }
  .ce-preset-icon {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
  .ce-preset-row dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ce-preset-row > .ce-preset-actions {
    grid-column: 1/-1;
  }
  .ce-preset-actions .ce-button {
    flex: 1 1 auto;
  }
  .ce-inline-actions {
    width: 100%;
  }
  .ce-inline-actions .ce-button {
    flex: 1 1 120px;
  }
  .ce-playground-layout {
    margin-inline: 0;
  }
  .ce-command-composer {
    padding: 14px;
  }
  .ce-simulator-messages {
    padding: 12px;
    min-height: 300px;
    max-height: 560px;
  }
  .ce-discord-message {
    grid-template-columns: minmax(0, 1fr);
    position: relative;
    gap: 0;
  }
  .ce-discord-message > .ce-bot-avatar {
    position: absolute;
    left: 0;
    top: 8px;
    width: 26px;
    height: 26px;
  }
  .ce-bot-name {
    padding-left: 34px;
    min-height: 28px;
  }
  .ce-result-fields,
  .ce-embed-stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .ce-workspace .ce-result-buttons .ce-arcade-cell {
    min-height: 24px;
    font-size: 16px;
  }
  .ce-workspace .ce-result-board .ce-arcade-cell {
    min-height: 20px;
    font-size: 16px;
  }
  .ce-arcade-board,
  .ce-arcade-controls {
    gap: 4px;
  }
  .ce-workspace .ce-simulator-messages .gp-v2 {
    padding: 12px;
  }
  .ce-page-head {
    flex-wrap: wrap;
  }
  .ce-form-foot > span {
    flex-basis: 100%;
  }
  .ce-workspace .ce-form-foot > .ce-button {
    width: 100%;
  }
  .ce-array-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .ce-election-track {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Top-layer dialogs size to the viewport, independently of the narrow page column. */
@media (max-width: 600px) {
  .ce-dialog {
    padding: 18px;
  }
  .ce-dialog[data-ce-preset-dialog] {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 0;
  }
  .ce-dialog[data-ce-preset-dialog] > .ce-dialog-head,
  .ce-dialog-body,
  .ce-dialog[data-ce-preset-dialog] > .ce-form > .ce-form-foot {
    padding-left: 16px;
    padding-right: 16px;
  }
  .ce-dialog .ce-fields,
  .ce-dialog .ce-array-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ce-workspace * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .ce-reels.is-spinning > span {
    filter: none;
    transform: none;
  }
}
/* Shared Discord reveal previews, with the final outcome readable without motion. */
.ce-casino-reveal { display:block; width:100%; max-width:560px; height:auto; border-radius:14px; margin:12px 0; }
.ce-message-visibility { margin-left:auto; color:var(--gp-text-muted, #a1a1aa); font-size:11px; }
.ce-simulator [hidden], .ce-sim-exchange [hidden], .ce-sim-exchange[hidden] { display: none !important; }
.ce-hub-preview [hidden], [data-ce-hub-delivery] [hidden] { display: none !important; }
.ce-hub-columns { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.ce-hub-callout { border-left: 3px solid var(--ce-accent); padding: 12px 15px; margin: 16px 0; background: var(--gp-panel-soft, rgba(66,185,176,.06)); border-radius: 0 8px 8px 0; }
.ce-hub-callout p { margin: 6px 0 0; color: var(--ce-muted); font-size: 13px; line-height: 1.65; }
.ce-hub-preview-top { gap: 10px; margin-bottom: 16px; font-size: 13px; }
.ce-hub-preview-top > span { min-width: 0; overflow-wrap: anywhere; }
.ce-hub-language-switch { display: flex; flex-shrink: 0; gap: 3px; border: 1px solid var(--ce-line); border-radius: 7px; padding: 3px; }
.ce-hub-language-switch button { border: 0; border-radius: 4px; color: var(--ce-muted); background: transparent; padding: 5px 9px; font: inherit; font-size: 12px; cursor: pointer; }
.ce-hub-language-switch button[aria-pressed="true"] { color: var(--ce-text); background: var(--ce-line); }
.ce-hub-preview .ce-hub-public { border: 1px solid var(--ce-line); border-left: 3px solid var(--ce-accent); border-radius: 8px; padding: 20px; margin-bottom: 12px; background: var(--ce-panel); }
.ce-hub-public h2 { font-size: 21px; line-height: 1.35; font-weight: 600; margin: 5px 0 8px; overflow-wrap: anywhere; }
.ce-hub-intro { font-size: 14px; line-height: 1.55; color: var(--ce-muted); margin: 0; }
.ce-hub-public hr { border: 0; border-top: 1px solid var(--ce-line); margin: 17px 0; }
.ce-hub-group { margin-bottom: 17px; }
.ce-hub-group:last-of-type { margin-bottom: 0; }
.ce-hub-group h3 { font-size: 14px; font-weight: 600; margin: 0 0 5px; }
.ce-hub-group p { color: var(--ce-muted); font-size: 13px; line-height: 1.5; margin: 0 0 10px; }
.ce-hub-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.ce-hub-action { display: inline-flex; gap: 7px; align-items: center; min-height: 36px; padding: 8px 12px; border: 0; border-radius: 4px; font: inherit; font-size: 13px; line-height: 1.3; color: var(--ce-text); background: var(--ce-line); opacity: 1; }
.ce-hub-action.is-primary { background: #5865f2; color: #fff; }
.ce-hub-public-note, .ce-hub-sticky-note, .ce-hub-combined-note { color: var(--ce-muted); font-size: 12px; line-height: 1.6; margin: 0; }
.ce-hub-sticky-note { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ce-line); }
.ce-hub-combined-note { margin-bottom: 12px; color: var(--ce-accent); }
.ce-hub-error { margin: 12px 0; padding: 10px 12px; border: 1px solid #b58a42; border-radius: 7px; color: var(--ce-text); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
[data-ce-hub-delivery] > .ce-form { margin-top: 16px; }
@media (max-width: 1050px) { .ce-hub-columns { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .ce-hub-preview .ce-hub-public { padding: 14px; } .ce-hub-action { min-height: 42px; } .ce-hub-public h2 { font-size: 19px; } }

.ce-workspace .ce-hub-action:disabled { opacity: 1; cursor: default; }
