:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --panel: #fffefa;
  --ink: #342a2a;
  --muted: #77736b;
  --line: #e5e0d5;
  --wine: #432c30;
  --wine-dark: #302224;
  --gold: #b99a64;
  --serif: Georgia, "Times New Roman", serif;
  font-family:
    "Segoe UI",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 13px;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
}
h2 {
  font-size: 24px;
  line-height: 1.25;
}
h3 {
  font-size: 22px;
}
p {
  line-height: 1.7;
}
button:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}
:focus-visible {
  outline: 2px solid #a17c3e;
  outline-offset: 4px;
}
::selection {
  background: #ddcda9;
  color: var(--wine-dark);
}
.muted,
.field-hint {
  color: var(--muted);
}
.field-hint {
  font-size: 12px;
  line-height: 1.6;
}
.skip-link {
  position: fixed;
  top: -70px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--panel);
  border: 1px solid var(--gold);
}
.skip-link:focus {
  top: 12px;
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}
.sidebar {
  background: var(--wine-dark);
  color: #d8c9c0;
  padding: 34px 20px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #75615b transparent;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}
.brand img {
  width: 43px;
  height: 47px;
  border-radius: 3px;
}
.brand > span {
  font-family: var(--serif);
  font-size: 31px;
  letter-spacing: -0.7px;
  line-height: 1;
  color: #f7efe3;
}
.brand small {
  display: block;
  font-family: "Segoe UI", sans-serif;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 3.6px;
  margin: 0 0 5px 2px;
}
.brand-period {
  color: var(--gold);
}
.sidebar__section-label {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #b7a295;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  margin-bottom: 14px;
}
.sidebar__section-label > span {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0;
}
.tabs {
  display: grid;
  gap: 5px;
}
.tab {
  position: relative;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 13px 11px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  color: #c9bbb1;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}
.tab svg {
  width: 17px;
  height: 17px;
  color: #bfa786;
}
.tab:hover {
  background: #ffffff08;
}
.tab.active {
  color: #f8efdf;
  background: #54403a;
  border-color: #81684866;
}
.tab.active::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: var(--gold);
}
.nav-arrow,
.nav-count {
  margin-left: auto;
  color: #d7be94;
}
.nav-count {
  font-size: 9px;
  min-width: 19px;
  padding: 3px;
  border: 1px solid #b99a643d;
  text-align: center;
  border-radius: 3px;
}
.server-label {
  margin-top: 37px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  padding: 0 12px;
}
.search-field svg {
  color: #8f8a7d;
  width: 16px;
  height: 16px;
}
.search-field input {
  border: 0;
  padding-left: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
  outline-offset: 1px;
}
.search-field:focus-within {
  border-color: #b99a64;
}
.sidebar-search {
  background: #ffffff04;
  border-color: #a990752e;
  margin-bottom: 12px;
}
.sidebar-search input {
  color: #eee4d6;
  font-size: 11px;
}
.sidebar-search input::placeholder {
  color: #b7a497;
}
.guild-list {
  display: grid;
  gap: 4px;
}
.guild-item {
  border: 1px solid transparent;
  background: transparent;
  width: 100%;
  display: flex;
  text-align: left;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border-radius: 4px;
  color: #cdbfb4;
}
.guild-item:hover,
.guild-item.active {
  background: #ffffff07;
  border-color: #bda58226;
}
.guild-item.active {
  color: #f3e6d3;
}
.guild-item__info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.guild-item__name {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.guild-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #e9e0d0;
  color: #7c6442;
  border-radius: 4px;
  font-family: var(--serif);
  font-size: 17px;
  flex-shrink: 0;
}
.guild-item .guild-avatar {
  width: 29px;
  height: 29px;
  font-size: 13px;
  color: #d8c8ad;
  background: #614d43;
}
.guild-item:nth-child(3n + 2) .guild-avatar {
  background: #4a5650;
  color: #d0d9c7;
}
.guild-item:nth-child(3n) .guild-avatar {
  background: #514753;
  color: #d6c9d9;
}
.guild-item img {
  width: 29px;
  height: 29px;
  object-fit: cover;
  border-radius: 4px;
}
.status-pill__dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ba9365;
}
.status-pill--ok .status-pill__dot {
  background: #a7bb91;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 55px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid #a48c7430;
}
.profile-avatar {
  display: grid;
  place-items: center;
  height: 31px;
  width: 31px;
  border-radius: 50%;
  background: #675147;
  color: #e9d8bf;
  font-family: var(--serif);
  font-size: 17px;
  flex-shrink: 0;
}
.profile__text {
  min-width: 0;
  flex: 1;
}
.profile__text strong {
  display: block;
  font-size: 11px;
  color: #e4d8ca;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile__text > span {
  display: block;
  font-size: 9px;
  color: #b5a297;
  margin-top: 4px;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 6px;
}
.icon-button:hover {
  border-color: currentColor;
}
.icon-button svg {
  width: 17px;
  height: 17px;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 71px;
  border-bottom: 1px solid var(--line);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: #fbfaf6;
}
.breadcrumb {
  display: flex;
  gap: 17px;
  color: var(--muted);
  font-size: 11px;
}
.breadcrumb > span {
  color: #b1a797;
}
.breadcrumb strong {
  color: #51463f;
  font-weight: 500;
}
.content {
  max-width: 1450px;
  margin: auto;
  padding: 34px 40px 0;
  outline: none;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 29px;
}
.page-heading h1 {
  font-size: clamp(29px, 2.7vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.9px;
  margin-top: 8px;
}
.page-heading .muted {
  margin-top: 8px;
  font-size: 12px;
}
.guild-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: #fffdf8;
  border-radius: 5px;
  padding: 11px 16px;
  max-width: 280px;
  min-width: 205px;
}
.guild-header img {
  width: 33px;
  height: 33px;
  border-radius: 4px;
}
.guild-header > div {
  min-width: 0;
}
.guild-header strong {
  font-size: 12px;
  display: block;
  margin-top: 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.overview-stats {
  margin: 23px 0 29px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.overview-stat {
  padding: 20px 22px;
  min-width: 0;
}
.overview-stat + .overview-stat {
  border-left: 1px solid var(--line);
}
.stat-heading {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  color: #777064;
  font-size: 11px;
}
.stat-heading svg {
  color: #a98e60;
  width: 17px;
  height: 17px;
}
.stat-value {
  font-size: 35px;
  line-height: 1.3;
  font-family: var(--serif);
  font-weight: 400;
  display: block;
  margin: 11px 0 6px;
  font-variant-numeric: tabular-nums;
}
.stat-value--status {
  font-size: 28px;
  line-height: 1.62;
}
.stat-value--status.is-connected {
  color: #4c6854;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  padding: 0;
  font-size: 11px;
  color: #765e3b;
  text-align: left;
}
.text-link:hover {
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 25px;
  min-width: 0;
}
.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 25px;
}
.panel__header h2 {
  font-size: 23px;
}
.panel__header .muted {
  font-size: 11px;
  margin-top: 5px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  color: #a58a5e;
  background: #f2eddf;
  border: 1px solid #e7deca;
  border-radius: 4px;
  flex-shrink: 0;
}
.section-icon svg {
  width: 18px;
  height: 18px;
}
.subtle-tag {
  font-size: 8px;
  letter-spacing: 0.8px;
  color: #8b7a5c;
  border: 1px solid #e3dac6;
  padding: 5px 7px;
  border-radius: 3px;
  white-space: nowrap;
}
.field {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}
.field > label,
.custom-command label {
  font-size: 12px;
  font-weight: 600;
  color: #51483f;
}
.field > p {
  margin-top: -4px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #e2ddd1;
  border-radius: 4px;
  background: #fffefa;
  color: var(--ink);
  min-height: 41px;
  padding: 10px 12px;
}
input::placeholder,
textarea::placeholder {
  color: #979184;
  font-size: 11px;
}
input:disabled,
select:disabled,
textarea:disabled {
  background: #f2f0e9;
  cursor: not-allowed;
}
input[type="checkbox"] {
  width: 15px;
  height: 15px;
  min-height: 0;
  margin: 0;
  accent-color: #70503e;
  flex-shrink: 0;
  cursor: pointer;
}
textarea {
  resize: vertical;
  line-height: 1.7;
}
.input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.input-row input {
  min-width: 0;
  flex: 1;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 39px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: #635541;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 500;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
.button svg {
  width: 15px;
  height: 15px;
}
.button > span {
  margin-left: 5px;
}
.button:hover:not(:disabled) {
  background: #f1ecdf;
  border-color: #c9b99a;
}
.button:active:not(:disabled) {
  transform: translateY(1px);
}
.button--primary,
.button--dark {
  background: var(--wine);
  color: #fff7e8;
  border-color: var(--wine);
}
.button--primary:hover:not(:disabled),
.button--dark:hover:not(:disabled) {
  background: #634249;
  border-color: #634249;
}
.button--soft {
  background: #f0eadc;
  border-color: #e6dcc7;
}
.button--ghost {
  background: transparent;
  border-color: transparent;
}
.button--danger {
  color: #9d443b;
  border-color: #e4d1c9;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.multi-picker {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.multi-picker__search {
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  min-height: 36px;
  background: #faf8f2;
}
.multi-picker__list {
  max-height: 145px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 10px;
  scrollbar-width: thin;
}
.multi-picker__list label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 6px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.multi-picker__list label:hover {
  background: #f6f1e5;
}
.multi-picker__list label:has(input:checked) {
  background: #f1ecdf;
}
.role-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--role-color, #a38d60);
  flex-shrink: 0;
}
.multi-picker > .chip-list {
  border-top: 1px solid var(--line);
  padding: 10px;
  background: #fcfaf5;
}
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.chip-list .muted {
  font-size: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #ded4be;
  border-radius: 3px;
  padding: 4px 7px;
  background: #f2ebdb;
  font-size: 10px;
  color: #715d37;
  overflow-wrap: anywhere;
}
.chip button {
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  padding: 0 2px;
  font-size: 15px;
  line-height: 1;
  color: #8b7752;
}
.panel-footnote {
  margin: 25px -25px -25px;
  padding: 13px 25px;
  background: #faf8f2;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #898071;
  border-radius: 0 0 5px 5px;
}
.panel-footnote svg {
  width: 14px;
  height: 14px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #faf8f2;
  margin-bottom: 22px;
}
.stat-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #827765;
  font-size: 11px;
}
.stat-card + .stat-card {
  border-left: 1px solid var(--line);
}
.stat-card strong {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
}
.stat-card .stat-value--small {
  font-size: 18px;
  line-height: 2;
}
.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.toolbar .search-field {
  flex: 1;
}
.toolbar select {
  width: 205px;
}
.command-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.command-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.command-card--changed {
  border-color: #baa06c;
}
.command-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #fcfaf5;
}
.command-card__title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.command-card__title strong {
  font-family: Consolas, monospace;
  font-size: 13px;
  color: #795a46;
  font-weight: 500;
}
.command-card__title span {
  color: #999080;
  font-size: 10px;
}
.command-card__body {
  padding: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 20px;
}
.command-card__body .field {
  margin: 0;
}
.command-card__body .field > label,
.command-card__body .field > span {
  font-size: 11px;
}
.command-card__body .multi-picker__list {
  grid-template-columns: 1fr;
}
.command-card__body .chip-list {
  margin-top: 8px;
}
.command-card__body .multi-picker > .chip-list {
  margin-top: 0;
}
.command-card__note {
  grid-column: 1 / -1;
  font-size: 11px;
  color: #8d6b39;
}
.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #88775e;
}
.toggle input {
  appearance: none;
  width: 29px;
  height: 17px;
  background: #d9d4c8;
  border: 0;
  border-radius: 12px;
  padding: 2px;
  cursor: pointer;
  position: relative;
}
.toggle input::before {
  content: "";
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fffdf6;
  box-shadow: 0 1px 3px #0002;
  transition: transform 0.15s;
}
.toggle input:checked {
  background: #886644;
}
.toggle input:checked::before {
  transform: translateX(12px);
}
.custom-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.custom-command p {
  margin-top: 5px;
}
.warnings-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
}
.warnings-pane .panel__header {
  align-items: start;
}
.warnings-pane > .muted {
  font-size: 11px;
  margin-top: 8px;
}
.stats-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.selected-user-card {
  padding: 18px;
  margin: 24px 0 18px;
  border: 1px solid #e3d9c7;
  background: #f5efe3;
  display: grid;
  gap: 8px;
  border-radius: 4px;
}
.selected-user-card strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.member-list {
  display: grid;
  gap: 5px;
  margin-top: 12px;
}
.member-item {
  background: #faf7ee;
  border: 1px solid var(--line);
  text-align: left;
  padding: 12px;
  border-radius: 4px;
}
.member-item:hover,
.member-item.active {
  border-color: var(--gold);
  background: #f0e7d4;
}
.member-item__meta {
  display: grid;
  gap: 4px;
}
.member-item__name {
  font-size: 12px;
}
.member-item__id {
  font-size: 10px;
  color: #897c69;
}
#warningsList {
  list-style: none;
  padding: 0;
  margin: 0;
}
.warning-item {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.warning-item > p {
  overflow-wrap: anywhere;
}
.warning-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 10px;
  color: #998973;
  margin: 7px 0;
}
.warning-item .button {
  min-height: 28px;
  padding: 4px 0;
  font-size: 10px;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}
.field__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: #967043;
}
.field__meta .field-hint {
  white-space: nowrap;
}
.empty-state {
  padding: 30px 18px;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
  color: #978975;
  background: #f7f3e9;
  border: 1px dashed #ded3bc;
  border-radius: 4px;
}
.empty-state h2 {
  margin-bottom: 10px;
}
.sidebar .empty-state {
  padding: 16px 10px;
  background: transparent;
  border-color: #776454;
  font-size: 11px;
  color: #c4b19a;
}
.error-banner,
.callout {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 22px;
  margin-bottom: 24px;
  border: 1px solid #dbc29c;
  background: #f5ecd9;
  border-radius: 4px;
  font-size: 12px;
}
.error-banner {
  background: #f5e6e0;
  border-color: #d8b7ac;
  color: #8d4c3b;
}
.error-banner > div,
.callout > div {
  flex: 1;
}
.callout > svg {
  color: #987e4f;
}
.callout p,
.error-banner p {
  font-size: 11px;
  margin-top: 3px;
}
.save-bar {
  position: sticky;
  bottom: 18px;
  background: #fffdf6f5;
  backdrop-filter: blur(12px);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 1px solid #b9a47b;
  box-shadow: 0 6px 35px #4f362020;
  border-radius: 5px;
  margin-top: 20px;
  z-index: 10;
}
.save-bar > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.save-bar strong {
  font-size: 12px;
  font-weight: 500;
}
.save-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #aa8652;
}
.toast-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 100;
  display: grid;
  gap: 10px;
  max-width: calc(100vw - 50px);
}
.toast {
  padding: 16px 22px;
  background: var(--wine);
  color: #fff7e8;
  border: 1px solid #a88c60;
  box-shadow: 0 5px 24px #30222425;
  font-size: 12px;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.toast--visible {
  opacity: 1;
  transform: none;
}
.toast--error {
  background: #873f36;
}
.modal {
  border: 1px solid #cbbb9b;
  border-radius: 6px;
  width: min(460px, calc(100vw - 36px));
  background: var(--panel);
  color: var(--ink);
  padding: 0;
  box-shadow: 0 24px 100px #24181940;
}
.modal::backdrop {
  background: #30222480;
  backdrop-filter: blur(3px);
}
.modal__content {
  padding: 32px;
}
.modal h2 {
  margin: 14px 0 12px;
  font-size: 30px;
}
.modal label {
  display: block;
  margin: 22px 0 8px;
  font-size: 12px;
}
.modal .field-hint {
  margin-top: 12px;
}
.modal .button-row {
  justify-content: flex-end;
  margin-top: 24px;
}
.skeleton-line {
  height: 22px;
  background: linear-gradient(
    90deg,
    #aa927415 25%,
    #aa92742b 50%,
    #aa927415 75%
  );
  background-size: 200% 100%;
  border-radius: 3px;
  animation: shimmer 1.6s infinite;
  margin: 12px 0;
}
.skeleton-line:nth-child(2) {
  width: 75%;
}
.skeleton-line:nth-child(3) {
  width: 55%;
}
.skeleton-panel {
  margin-top: 20px;
  min-height: 250px;
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-top: 20px;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.landing-body {
  background: #f4f0e6;
}
.landing-shell {
  max-width: 1370px;
  padding: 0 65px;
  margin: auto;
}
.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid #dcd2bf;
}
.landing-nav .brand > span {
  color: var(--wine);
}
.landing-main {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  padding: 65px 0 60px;
  align-items: center;
}
.landing-copy h1 {
  font-size: clamp(50px, 5.8vw, 80px);
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin: 24px 0;
}
.landing-copy h1 em {
  color: #94774c;
}
.landing-description {
  max-width: 405px;
  font-size: 13px;
  color: #8a7c68;
  line-height: 1.9;
  margin-bottom: 28px;
}
.landing-copy .button {
  min-height: 47px;
  padding: 12px 20px;
}
.landing-session {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #928571;
  font-size: 10px;
  margin-top: 18px;
}
.landing-session .text-link {
  font-size: 10px;
}
.landing-art {
  position: relative;
  background: #eae1cf;
  border: 1px solid #d4c3a2;
  border-radius: 180px 180px 3px 3px;
  min-height: 480px;
  display: flex;
  align-items: center;
}
.landing-art::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid #cdbb9666;
  border-radius: inherit;
}
.landing-art img {
  width: 100%;
  transform: scale(1.1);
}
.banner {
  display: none;
  margin-top: 18px;
  font-size: 11px;
  color: #a18b68;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 42px;
  }
  .overview-stat {
    padding: 24px;
  }
}
@media (max-width: 1200px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .sidebar {
    padding-right: 14px;
    padding-left: 14px;
  }
  .tab {
    gap: 9px;
    font-size: 11px;
  }
  .tab.active::before {
    left: -15px;
  }
  .topbar {
    padding: 0 26px;
  }
  .content {
    padding: 28px 26px 0;
  }
  .panel {
    padding: 21px;
  }
  .admin-panel .subtle-tag {
    display: none;
  }
  .panel-footnote {
    margin: 24px -21px -21px;
    padding: 13px 21px;
  }
  .overview-stat {
    padding: 18px 15px;
  }
  .stat-heading {
    font-size: 10px;
  }
  .stat-heading svg {
    width: 14px;
    height: 14px;
  }
  .guild-header {
    min-width: 175px;
    padding: 10px;
  }
  .panel__header--split {
    flex-wrap: wrap;
  }
  .section-title {
    gap: 10px;
  }
  .section-title h2 {
    font-size: 21px;
  }
  .section-icon {
    display: none;
  }
  .landing-shell {
    padding: 0 40px;
  }
  .landing-art {
    min-height: 420px;
  }
}
@media (max-width: 1000px) {
  .overview-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .overview-stat:nth-child(3) {
    border-left: 0;
  }
  .overview-stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .stat-heading {
    font-size: 11px;
  }
  .page-heading {
    align-items: start;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .guild-header {
    max-width: 180px;
    min-width: 155px;
    margin-top: 15px;
  }
  .guild-header .guild-avatar,
  .guild-header img {
    display: none;
  }
  .warnings-layout {
    grid-template-columns: 1fr;
  }
  .custom-command {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .custom-command .input-row {
    width: 100%;
  }
  .command-card__body {
    grid-template-columns: 1fr;
  }
  .landing-main {
    gap: 25px;
  }
  .landing-art {
    min-height: 370px;
  }
  .landing-copy h1 {
    font-size: 60px;
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    overflow: visible;
    padding: 20px 20px 16px;
  }
  .brand > span {
    font-size: 26px;
  }
  .brand img {
    width: 35px;
    height: 39px;
  }
  .sidebar__section-label {
    display: none;
  }
  .tabs {
    display: flex;
    margin-top: 22px;
    gap: 4px;
  }
  .tab {
    justify-content: center;
    flex: 1;
    font-size: 11px;
    padding: 11px 8px;
    width: auto;
  }
  .tab.active::before,
  .nav-arrow,
  .nav-count {
    display: none;
  }
  .sidebar-search {
    margin: 17px 0 8px;
  }
  .sidebar-search input {
    min-height: 34px;
  }
  .guild-list {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 3px;
  }
  .guild-item {
    width: auto;
    flex-shrink: 0;
    max-width: 210px;
  }
  .sidebar-bottom {
    position: absolute;
    right: 20px;
    top: 16px;
    margin: 0;
    padding: 0;
  }
  .profile {
    padding: 0;
    border: 0;
  }
  .profile-avatar,
  .profile__text {
    display: none;
  }
  .profile .icon-button {
    color: #ccb898;
  }
  .topbar {
    height: 53px;
    padding: 0 22px;
  }
  .breadcrumb {
    font-size: 10px;
    gap: 10px;
  }
  .content {
    padding: 25px 22px 0;
  }
  .page-heading {
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 32px;
  }
  .guild-header {
    display: none;
  }
  .overview-stats {
    margin: 18px 0 23px;
  }
  .overview-stat {
    padding: 18px;
  }
  .section-icon {
    display: grid;
  }
  .section-title h2 {
    font-size: 23px;
  }
  .save-bar {
    bottom: 10px;
    padding: 12px 14px;
  }
  .save-bar strong {
    font-size: 11px;
  }
  .save-bar .button {
    padding: 8px 11px;
  }
  .callout,
  .error-banner {
    flex-wrap: wrap;
  }
  .callout > div {
    min-width: 200px;
  }
  .landing-shell {
    padding: 0 25px;
  }
  .landing-nav {
    padding: 23px 0;
  }
  .landing-main {
    padding: 40px 0;
  }
  .landing-copy h1 {
    font-size: 48px;
    letter-spacing: -1.5px;
  }
  .landing-art {
    min-height: 340px;
  }
  .landing-description {
    font-size: 12px;
  }
}
@media (max-width: 520px) {
  .sidebar {
    padding: 18px 16px 12px;
  }
  .tab {
    font-size: 10px;
    gap: 6px;
    flex: 1 1 0;
    flex-direction: column;
    min-width: 0;
    min-height: 62px;
    padding: 8px 4px;
    white-space: normal;
    text-align: center;
  }
  .tab svg {
    width: 14px;
    height: 14px;
  }
  .topbar {
    padding: 0 18px;
  }
  .content {
    padding: 23px 16px 0;
  }
  .page-heading h1 {
    font-size: 31px;
  }
  .overview-stat {
    padding: 16px;
  }
  .stat-heading {
    font-size: 10px;
  }
  .stat-value {
    font-size: 31px;
  }
  .stat-value--status {
    font-size: 25px;
  }
  .panel {
    padding: 20px;
  }
  .panel__header {
    margin-bottom: 20px;
  }
  .section-title h2 {
    font-size: 23px;
  }
  .panel__header .muted {
    font-size: 10px;
  }
  .section-icon {
    display: none;
  }
  .field {
    margin-top: 22px;
  }
  .input-row {
    flex-wrap: wrap;
  }
  .input-row input {
    flex-basis: 170px;
  }
  .input-row .button {
    flex: 1;
  }
  .panel-footnote {
    margin: 23px -20px -20px;
    padding: 12px 20px;
    font-size: 9px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-card:nth-child(3) {
    border-left: 0;
  }
  .stat-card:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .toolbar {
    flex-direction: column;
  }
  .toolbar select {
    width: 100%;
  }
  .command-card__header {
    padding: 14px;
  }
  .command-card__title {
    gap: 6px;
  }
  .command-card__title span {
    font-size: 9px;
  }
  .command-card__body {
    padding: 14px;
  }
  .save-bar {
    flex-wrap: wrap;
    justify-content: center;
  }
  .save-bar > div:first-child {
    justify-content: center;
  }
  .save-bar .button-row {
    width: 100%;
    justify-content: center;
  }
  .save-bar .button {
    flex: 1;
  }
  .landing-main {
    grid-template-columns: 1fr;
    padding: 42px 0 30px;
    gap: 35px;
  }
  .landing-copy h1 {
    font-size: clamp(47px, 15.2vw, 62px);
  }
  .landing-description {
    max-width: 330px;
  }
  .landing-art {
    min-height: 310px;
    height: 340px;
    border-radius: 150px 150px 3px 3px;
  }
  .landing-art img {
    max-height: 290px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.sidebar .brand {
  margin-bottom: 40px;
}
.content {
  padding-bottom: 40px;
}
.page-heading h1 {
  margin: 0;
}
.guild-header {
  min-width: 0;
}
.guild-header strong {
  margin: 0;
}
.overview-stats {
  margin-top: 0;
}
.stat-heading {
  min-height: 24px;
  font-size: 12px;
}
.stat-heading .icon-button {
  width: 24px;
  height: 24px;
  font-size: 19px;
  padding: 0;
}
.stat-heading .text-link {
  font: inherit;
  color: inherit;
}
.stat-value--status {
  line-height: 1.3;
  font-size: 35px;
}
.admin-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.admin-fields > .field {
  margin-top: 0;
  align-content: start;
}
#adminRolesLabel {
  font-size: 12px;
  font-weight: 600;
  color: #51483f;
}
.warning-actions {
  margin-top: 20px;
}
.selected-user-card + .warning-actions {
  margin-top: 0;
}
.selected-user-card[hidden] + .warning-actions {
  margin-top: 20px;
}
#warningsSearchStatus:empty,
#warningsSelectedHint:empty,
.landing-session:has(#sessionStatus:empty) {
  display: none;
}
.callout > p,
.error-banner > p {
  flex: 1;
  margin: 0;
}
.landing-main {
  min-height: calc(100vh - 116px);
}
.landing-copy h1 {
  margin-top: 0;
}
@media (max-width: 1000px) {
  .admin-fields {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 760px) {
  .sidebar .brand {
    margin-bottom: 0;
  }
  .content {
    padding-bottom: 28px;
  }
}
@media (max-width: 520px) {
  .stat-value--status {
    font-size: 28px;
  }
  .stat-heading {
    font-size: 10px;
  }
  .landing-main {
    min-height: 0;
  }
}
