@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Slab";
  src: url("/assets/fonts/roboto-slab.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --void: #14101f;
  --panel: #201a2d;
  --panel-2: #2a2138;
  --line: rgba(181, 157, 220, 0.18);
  --paper: #f5ead6;
  --paper-2: #e2cfad;
  --ink: #24190e;
  --muted: #cbc1d8;
  --text: #fbf8ff;
  --purple: #7d5cc6;
  --orange: #f28c28;
  --cyan: #27c6cf;
  --green: #58d36b;
  --red: #dc3525;
  --shadow: 0 18px 52px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 9% 7%, rgba(39, 198, 207, 0.16), transparent 18rem),
    radial-gradient(circle at 93% 18%, rgba(242, 140, 40, 0.13), transparent 20rem),
    linear-gradient(135deg, #14101f 0%, #1e1830 46%, #10272c 100%);
  color: var(--text);
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 7px;
  padding: 0.72rem 0.95rem;
  background: linear-gradient(180deg, #ffac46, var(--orange));
  color: #1a1010;
  font-weight: 800;
  cursor: pointer;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(12, 10, 19, 0.72);
  color: var(--text);
  padding: 0.72rem 0.8rem;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

label {
  display: grid;
  gap: 0.42rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

code {
  color: #dffcff;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.login-panel {
  position: relative;
  overflow: hidden;
  width: min(100%, 760px);
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(32, 26, 45, 0.94);
  box-shadow: var(--shadow);
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.45rem;
  background: linear-gradient(var(--cyan), var(--orange), var(--green));
}

.hub-mark,
.eyeline {
  margin: 0 0 0.35rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.login-panel h1 {
  color: var(--orange);
  font-size: clamp(1.85rem, 4.5vw, 2.8rem);
  line-height: 1;
}

.login-copy,
.bot-line,
.form-status,
.empty {
  color: var(--muted);
}

.login-form,
.dm-form {
  display: grid;
  gap: 1rem;
}

.login-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.35rem;
}

.login-form button,
.login-form .notice {
  grid-column: 1 / -1;
}

.notice {
  margin: 1rem 0;
  padding: 0.8rem 0.9rem;
  border-radius: 7px;
}

.error,
.inline-error {
  color: #ffe2e2;
  background: rgba(220, 53, 37, 0.25);
}

.app-shell {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0.72rem;
  background: rgba(17, 13, 27, 0.95);
  border-right: 1px solid var(--line);
}

.hub-logo-link {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 0.8rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.hub-logo-link img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.portal-switcher {
  display: grid;
  grid-template-columns: repeat(2, 42px);
  gap: 0.4rem;
  justify-content: center;
}

.nav-square {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.78rem;
  font-weight: 900;
}

.nav-square.active {
  border-color: rgba(39, 198, 207, 0.72);
  background: rgba(39, 198, 207, 0.14);
  color: #dffcff;
}

.nav-square:hover {
  border-color: rgba(242, 140, 40, 0.78);
}

.nav-square::after {
  content: attr(aria-label);
  position: absolute;
  left: calc(100% + 0.55rem);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  padding: 0.38rem 0.55rem;
  border-radius: 6px;
  background: #0f0b18;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.75rem;
  transition: opacity 140ms ease;
  z-index: 8;
}

.nav-square:hover::after {
  opacity: 1;
}

.logout-square {
  color: #ffe6cf;
}

.logout-square svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bot-help {
  width: 66px;
  position: relative;
}

.bot-help summary {
  min-height: 44px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem;
  border: 1px solid rgba(88, 211, 107, 0.34);
  border-radius: 8px;
  background: rgba(88, 211, 107, 0.08);
  cursor: pointer;
  list-style: none;
}

.bot-help summary::-webkit-details-marker {
  display: none;
}

.bot-help summary strong {
  font-size: 0.62rem;
  line-height: 1.05;
}

.bot-light {
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(88, 211, 107, 0.16), 0 0 18px rgba(88, 211, 107, 0.55);
}

.bot-help-body {
  position: absolute;
  left: calc(100% + 0.75rem);
  bottom: 0;
  width: min(310px, calc(100vw - 125px));
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #171222;
  box-shadow: var(--shadow);
  z-index: 10;
}

.bot-help-body p,
.bot-help-body li {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.bot-help-body ul {
  margin: 0.65rem 0 0;
  padding-left: 1rem;
}

.portal {
  min-width: 0;
  padding: 1rem 1rem 1rem 1.45rem;
}

.portal-header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.portal-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid rgba(39, 198, 207, 0.62);
}

.portal-header h1 {
  color: var(--orange);
  font-size: clamp(1.2rem, 2.2vw, 1.9rem);
  line-height: 1;
}

.portal-header h2 {
  color: var(--text);
  font-family: "Roboto Slab", "Poppins", serif;
  font-size: clamp(0.9rem, 1.45vw, 1.18rem);
  line-height: 1.18;
}

.quick-stats {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(72px, 1fr));
  gap: 0.42rem;
  width: min(100%, 310px);
}

.quick-stats div {
  min-height: 56px;
  display: grid;
  align-content: center;
  gap: 0.1rem;
  padding: 0.52rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.quick-stats strong {
  color: var(--orange);
  font-size: 1.16rem;
  line-height: 1;
}

.quick-stats span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.characters,
.bounty-section,
.dm-rail {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(32, 26, 45, 0.76);
  box-shadow: var(--shadow);
}

.characters {
  padding: 0.85rem;
  margin-bottom: 0.9rem;
}

.character-strip {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding-top: 0.8rem;
}

.character-card {
  min-width: 214px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.62rem;
  border: 1px solid rgba(39, 198, 207, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.character-card img {
  width: 46px;
  height: 46px;
  border-radius: 7px;
  object-fit: cover;
}

.character-card span,
.character-card em {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
}

.character-card em {
  width: fit-content;
  margin-top: 0.3rem;
  padding: 0.16rem 0.48rem;
  border-radius: 999px;
  background: rgba(39, 198, 207, 0.13);
  color: #bff9ff;
  font-weight: 800;
}

.board-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 0.9rem;
  align-items: start;
}

.bounty-lists {
  min-width: 0;
  display: grid;
  gap: 1rem;
}

.bounty-section {
  padding: 0.85rem;
}

.bounty-section h3,
.dm-rail h3,
.characters h3 {
  color: #e8dcff;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.section-heading button {
  padding: 0.48rem 0.68rem;
  border: 1px solid rgba(39, 198, 207, 0.28);
  background: rgba(39, 198, 207, 0.12);
  color: #dffcff;
}

.bounty-stack {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.completed-extra {
  display: grid;
  gap: 0.8rem;
}

.completed-extra[hidden] {
  display: none;
}

.bounty-card {
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 146px;
  gap: 0.72rem;
  align-items: start;
  padding: 0.72rem;
  border: 1px solid rgba(82, 53, 27, 0.28);
  border-radius: 8px;
  background: linear-gradient(90deg, var(--paper), var(--paper-2));
  color: var(--ink);
}

.bounty-logo {
  min-width: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--panel);
  color: var(--paper);
  overflow: hidden;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 900;
}

.bounty-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bounty-topline,
.bounty-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  align-items: center;
}

.bounty-topline span,
.bounty-meta span {
  border-radius: 999px;
  padding: 0.22rem 0.52rem;
  background: rgba(36, 25, 14, 0.12);
  font-size: 0.66rem;
  font-weight: 800;
}

.bounty-card h4 {
  margin: 0.3rem 0 0.18rem;
  color: #1f140b;
  font-family: "Roboto Slab", "Poppins", serif;
  font-size: 1rem;
}

.bounty-card p {
  margin: 0 0 0.55rem;
  color: #513920;
  font-size: 0.86rem;
  line-height: 1.45;
}

.status.open {
  color: #135a25;
}

.status.full {
  color: #5537a8;
}

.status.cancelled {
  color: var(--red);
}

.status.completed {
  color: #1d6a2d;
}

.accept-form,
.dm-actions {
  min-width: 0;
  display: grid;
  gap: 0.55rem;
}

.accept-form select {
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  border-color: rgba(36, 25, 14, 0.24);
}

.dm-actions button {
  padding: 0.46rem 0.58rem;
}

.signup-roster {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(36, 25, 14, 0.16);
}

.signup-roster > strong {
  display: block;
  margin-bottom: 0.45rem;
  color: #37200e;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.signup-roster p {
  margin: 0;
  font-size: 0.82rem;
}

.roster-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) minmax(96px, auto);
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  padding: 0.38rem;
  border-radius: 7px;
  background: rgba(36, 25, 14, 0.08);
}

.roster-row img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
}

.roster-row span,
.roster-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
}

.roster-row em {
  color: #5e3b12;
  font-style: normal;
  font-weight: 800;
}

.dm-rail {
  position: sticky;
  top: 1rem;
  padding: 0.8rem;
  display: grid;
  gap: 0.72rem;
}

.dm-launch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.dm-launch-grid button {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 0.12rem;
  padding: 0.72rem;
  border: 1px solid rgba(39, 198, 207, 0.2);
  background:
    linear-gradient(145deg, rgba(39, 198, 207, 0.12), rgba(125, 92, 198, 0.15)),
    rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: left;
}

.dm-launch-grid button:hover,
.editor-tabs button:hover,
.editor-tabs button.active {
  border-color: rgba(242, 140, 40, 0.62);
  background:
    linear-gradient(145deg, rgba(242, 140, 40, 0.22), rgba(39, 198, 207, 0.1)),
    rgba(255, 255, 255, 0.06);
}

.dm-launch-grid button span {
  color: var(--cyan);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dm-launch-grid button strong {
  font-size: 0.88rem;
}

.editor-open {
  overflow: hidden;
}

.editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  background: rgba(10, 8, 16, 0.74);
  backdrop-filter: blur(12px);
}

.editor-overlay[hidden] {
  display: none;
}

.editor-shell {
  width: min(calc(100vw - 1.5rem), 1320px);
  height: min(calc(100vh - 1.5rem), 920px);
  max-height: calc(100vh - 1.5rem);
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(181, 157, 220, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(39, 198, 207, 0.08), transparent 42%),
    #171222;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.52);
}

.editor-tabs {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  padding: 0.85rem;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.editor-tabs button {
  padding: 0.62rem 0.7rem;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: left;
}

.editor-panel {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.1rem 1.4rem;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) rgba(255, 255, 255, 0.06);
}

.editor-panel::-webkit-scrollbar,
.editor-tabs::-webkit-scrollbar {
  width: 8px;
}

.editor-panel::-webkit-scrollbar-track,
.editor-tabs::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.editor-panel::-webkit-scrollbar-thumb,
.editor-tabs::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--cyan), var(--purple));
  border-radius: 999px;
}

.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.editor-header h3 {
  color: var(--orange);
  font-size: 1.25rem;
}

.editor-page h4 {
  margin-bottom: 0.85rem;
  color: #e8dcff;
  font-size: 1rem;
}

.editor-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.editor-form label:has(textarea),
.editor-form .template-field-slot,
.editor-form .checkbox,
.editor-form button,
.editor-form .form-status {
  grid-column: 1 / -1;
}

.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--line);
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.datetime-editor {
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  gap: 0.58rem;
}

.datetime-button {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(39, 198, 207, 0.22);
  background:
    linear-gradient(145deg, rgba(39, 198, 207, 0.13), rgba(125, 92, 198, 0.12)),
    rgba(255, 255, 255, 0.045);
  color: var(--text);
  text-align: left;
}

.datetime-button:hover,
.datetime-button[aria-expanded="true"] {
  border-color: rgba(242, 140, 40, 0.68);
  background:
    linear-gradient(145deg, rgba(242, 140, 40, 0.2), rgba(39, 198, 207, 0.12)),
    rgba(255, 255, 255, 0.07);
}

.datetime-button svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.datetime-button span {
  display: grid;
  gap: 0.12rem;
}

.datetime-button strong {
  color: #fff8ff;
  font-size: 0.95rem;
}

.datetime-button em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.datetime-popover {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 210px;
  gap: 0.8rem;
  margin-top: 0.58rem;
  padding: 0.85rem;
  border: 1px solid rgba(181, 157, 220, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(39, 198, 207, 0.09), rgba(242, 140, 40, 0.06)),
    #171222;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

.datetime-popover[hidden] {
  display: none;
}

.calendar-head {
  grid-column: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 0.4rem;
}

.calendar-head button,
.datetime-actions button {
  grid-column: auto;
  padding: 0.55rem 0.62rem;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid var(--line);
  color: var(--text);
}

.calendar-head strong {
  color: #f7eaff;
  font-size: 0.92rem;
  text-align: center;
}

.calendar-weekdays,
.calendar-grid {
  grid-column: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.28rem;
}

.calendar-grid {
  grid-auto-rows: 34px;
  align-self: start;
}

.calendar-weekdays {
  align-items: center;
  margin-top: 0.38rem;
}

.calendar-weekdays span {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.calendar-grid button {
  grid-column: auto;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.045);
  color: #f8f2ff;
  font-size: 0.78rem;
}

.calendar-grid button:hover {
  border-color: rgba(39, 198, 207, 0.62);
}

.calendar-grid button.muted {
  color: rgba(203, 193, 216, 0.42);
}

.calendar-grid button.today {
  border-color: rgba(88, 211, 107, 0.5);
}

.calendar-grid button.selected {
  background: linear-gradient(180deg, #ffac46, var(--orange));
  color: #1a1010;
  box-shadow: 0 0 0 3px rgba(242, 140, 40, 0.16);
}

.time-wheel {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.34rem;
  min-height: 238px;
  padding: 0.5rem;
  border: 1px solid rgba(39, 198, 207, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(39, 198, 207, 0.04);
}

.time-wheel-title {
  grid-column: 1 / -1;
  color: var(--cyan);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.wheel-column-wrap {
  min-width: 0;
  display: grid;
  gap: 0.28rem;
  position: relative;
}

.wheel-column-wrap::before,
.wheel-column-wrap::after {
  content: "";
  position: absolute;
  left: 0.12rem;
  right: 0.5rem;
  z-index: 1;
  height: 34px;
  pointer-events: none;
}

.wheel-column-wrap::before {
  top: 1.55rem;
  background: linear-gradient(180deg, rgba(23, 18, 34, 0.96), rgba(23, 18, 34, 0));
}

.wheel-column-wrap::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(23, 18, 34, 0.96), rgba(23, 18, 34, 0));
}

.wheel-column-wrap > span {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.wheel-column {
  max-height: 190px;
  overflow-y: auto;
  display: grid;
  gap: 0.26rem;
  padding: 4rem 0.12rem;
  scroll-snap-type: y mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) rgba(255, 255, 255, 0.06);
}

.wheel-column::-webkit-scrollbar {
  width: 6px;
}

.wheel-column::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.wheel-column::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--cyan), var(--purple));
  border-radius: 999px;
}

.wheel-column button {
  grid-column: auto;
  min-height: 32px;
  padding: 0.32rem 0.22rem;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 0.75rem;
  scroll-snap-align: center;
}

.wheel-column button:hover {
  color: var(--text);
  border-color: rgba(39, 198, 207, 0.46);
}

.wheel-column button.selected {
  background: rgba(39, 198, 207, 0.16);
  border-color: rgba(39, 198, 207, 0.66);
  color: #dffcff;
  font-weight: 900;
  box-shadow: 0 0 0 2px rgba(39, 198, 207, 0.14);
}

.datetime-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.user-management-form {
  margin-top: 0.7rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.setup-tools {
  display: grid;
  gap: 0.7rem;
}

.setup-tools details {
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}

.setup-tools summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
}

.setup-tools form {
  margin-top: 0.8rem;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.checkbox input {
  width: auto;
}

.inline-ok,
.inline-error {
  display: block;
  border-radius: 7px;
  padding: 0.45rem 0.55rem;
  font-size: 0.78rem;
}

.inline-ok {
  color: #dfffe5;
  background: rgba(88, 211, 107, 0.23);
}

.is-syncing .bounty-lists {
  opacity: 0.76;
}

@media (max-width: 1080px) {
  .board-grid,
  .bounty-card {
    grid-template-columns: 1fr;
  }

  .dm-rail {
    position: static;
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    padding: 0.75rem;
  }

  .hub-logo-link {
    margin: 0;
  }

  .portal-switcher {
    grid-template-columns: repeat(2, 42px);
  }

  .logout-square {
    justify-self: auto;
  }

  .bot-help {
    width: 72px;
  }

  .bot-help-body {
    left: auto;
    right: 0;
    bottom: auto;
    top: calc(100% + 0.55rem);
    width: min(310px, calc(100vw - 1.5rem));
  }

  .portal {
    width: 100%;
    max-width: 100vw;
    padding: 0.9rem;
  }

  .portal-header {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-stats {
    width: 100%;
  }

  .login-form,
  .editor-form,
  .editor-shell {
    grid-template-columns: 1fr;
  }

  .datetime-popover {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .time-wheel {
    grid-column: 1;
    grid-row: auto;
    min-height: 180px;
  }

  .wheel-column {
    max-height: 170px;
    padding-block: 3.4rem;
  }

  .editor-overlay {
    padding: 0.65rem;
  }

  .editor-shell {
    max-height: 94vh;
  }

  .editor-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 460px) {
  .portal-title {
    align-items: flex-start;
  }

  .profile-avatar {
    width: 48px;
    height: 48px;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

  .character-card {
    min-width: 210px;
  }
}
