:root {
  --bg: #030509;
  --bg-2: #070a10;
  --panel: #0b0f17;
  --panel-2: #111724;
  --surface: rgba(11, 15, 23, 0.9);
  --surface-strong: rgba(16, 23, 35, 0.96);
  --line: rgba(205, 232, 255, 0.14);
  --line-strong: rgba(205, 232, 255, 0.28);
  --text: #f4f8ff;
  --muted: #9faabd;
  --soft: #687891;
  --steel: #1b2433;
  --pink: #ff2d9a;
  --cyan: #17e7ff;
  --mint: #15f5d1;
  --violet: #9d6cff;
  --danger: #ff235a;
  --radius: 8px;
  --cut: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  --accent-gradient: linear-gradient(135deg, #4cecff, #21f0d4 58%, #7bfbe8);
  --card-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018));
  --shadow: 0 18px 52px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.24);
  color-scheme: dark;
}

/* Operations center and personal register */
.notification-center {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  padding: 18px;
}

.notification-center.is-compact {
  margin: 18px 0;
}

.notification-list,
.operation-list,
.member-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.notification-item,
.operation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--surface-strong) 84%, transparent);
  padding: 12px 14px;
}

.notification-item.is-warning { border-left-color: #e6a94f; }
.notification-item.is-danger { border-left-color: #ee496d; }
.notification-item.is-read { opacity: .68; }

.notification-main {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.notification-main strong,
.notification-main span,
.operation-row strong,
.operation-row small {
  overflow-wrap: anywhere;
}

.notification-main span,
.operation-row small { color: var(--muted); }

.notification-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.operation-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.operations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.operation-card-wide { grid-column: 1 / -1; }

.operation-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.operation-form-grid textarea { min-height: 96px; }

.operation-form-grid button,
.operation-form-grid textarea { grid-column: 1 / -1; }

.simulation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}

.simulation-test {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 18px 0;
  border-top: 2px solid var(--line);
}

.simulation-test:nth-child(1) { border-top-color: var(--cyan); }
.simulation-test:nth-child(2) { border-top-color: var(--mint); }
.simulation-test:nth-child(3) { border-top-color: var(--violet); }
.simulation-test:nth-child(4) { border-top-color: var(--pink); }

.simulation-test-heading {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
}

.simulation-test-heading > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 34px;
  color: var(--cyan);
  border: 1px solid var(--line-strong);
  font-size: 0.75rem;
  font-weight: 950;
}

.simulation-test-heading h4 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 1rem;
}

.simulation-test-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.simulation-test label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.simulation-test label > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.simulation-test textarea {
  min-height: 110px;
  resize: vertical;
}

.simulation-test > .button {
  width: 100%;
  min-height: 44px;
}

.simulation-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 10px;
}

.simulation-message {
  grid-column: 1 / -1;
}

.simulation-color input[type="color"] {
  width: 100%;
  min-height: 44px;
  padding: 4px;
}

.simulation-history {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.simulation-empty {
  margin: 18px 0 0;
}

.report-download-grid {
  display: grid;
}

.report-download-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  align-items: start;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.report-download-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.report-download-row > strong {
  align-self: center;
}

.report-download-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
}

.report-sheets-button {
  color: #bafdf1;
  border-color: rgba(21, 245, 209, .34);
  background: rgba(21, 245, 209, .07);
  box-shadow: inset 3px 0 0 rgba(21, 245, 209, .72);
}

.report-sheets-button:hover {
  border-color: rgba(21, 245, 209, .62);
  background: rgba(21, 245, 209, .12);
}

.report-format-menu {
  min-width: 142px;
}

.report-format-menu > summary {
  width: 100%;
  list-style: none;
  user-select: none;
}

.report-format-menu > summary::-webkit-details-marker {
  display: none;
}

.report-format-menu > summary::after {
  content: "+";
  margin-left: 9px;
  line-height: 1;
}

.report-format-menu[open] > summary::after {
  content: "-";
}

.report-format-menu > .button {
  width: 100%;
  margin-top: 6px;
}

.sheets-ready-dialog {
  --sheet-accent: var(--mint);
  width: min(520px, calc(100vw - 32px));
  border: 1px solid color-mix(in srgb, var(--sheet-accent) 56%, var(--line));
  border-radius: var(--radius);
  background: #0e1520;
  color: var(--text);
  padding: 0;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .52);
  clip-path: var(--cut);
}

.sheets-ready-dialog::backdrop {
  background: rgba(5, 8, 12, .76);
  backdrop-filter: blur(5px);
}

.sheets-ready-content {
  padding: 28px;
  border-top: 3px solid var(--sheet-accent);
}

.sheets-ready-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.sheets-ready-heading h3 {
  margin: 5px 0 0;
  font-size: 1.55rem;
}

.sheets-copy-status {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: var(--sheet-accent);
  border: 1px solid color-mix(in srgb, var(--sheet-accent) 48%, transparent);
  background: color-mix(in srgb, var(--sheet-accent) 9%, transparent);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sheets-ready-intro {
  margin: 15px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.sheets-ready-steps {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  background: rgba(4, 8, 13, .32);
}

.sheets-ready-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 14px;
}

.sheets-ready-steps li + li {
  border-top: 1px solid var(--line);
}

.sheets-ready-steps li > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #06100e;
  background: var(--sheet-accent);
  font-size: .78rem;
  font-weight: 950;
}

.sheets-ready-steps li > div {
  display: grid;
  gap: 2px;
}

.sheets-ready-steps strong {
  color: var(--text);
  font-size: .88rem;
}

.sheets-ready-steps small {
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.35;
}

.sheets-ready-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

@media (max-width: 560px) {
  .sheets-ready-content {
    padding: 22px 18px 18px;
  }

  .sheets-ready-heading {
    display: grid;
    gap: 12px;
  }

  .sheets-copy-status {
    justify-self: start;
  }

  .sheets-ready-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sheets-ready-actions .button {
    width: 100%;
  }
}

:root[data-theme="western"] .report-sheets-button.button-ghost {
  color: #f2d69f;
  border-color: rgba(240, 190, 102, .36);
  background: rgba(240, 190, 102, .07);
  box-shadow: inset 3px 0 0 rgba(240, 190, 102, .72);
}

:root[data-theme="western"] .sheets-ready-dialog {
  --sheet-accent: #e4b45e;
  background: #20160d;
}

.scheduled-announcement-editor {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 14px;
}

.announcement-preview {
  --announcement-color: #2dd4bf;
  align-self: stretch;
  min-height: 190px;
  border-left: 4px solid var(--announcement-color);
  background: #202329;
  color: #f3f4f6;
  padding: 18px;
}

.announcement-preview span,
.announcement-preview p { color: #afb5bf; }
.announcement-preview strong { display: block; margin: 14px 0 8px; overflow-wrap: anywhere; }
.announcement-preview p { white-space: pre-wrap; overflow-wrap: anywhere; }
.operation-error { color: #ff7892 !important; }

.validation-summary {
  border-left: 3px solid #e6a94f;
  padding: 14px;
  background: color-mix(in srgb, var(--surface-strong) 84%, transparent);
}

.validation-summary.is-ready { border-left-color: #62d29b; }

.validation-run-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.validation-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.validation-checks > div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  padding: 10px;
}

.validation-checks > .is-warning strong { color: #f0b35f; }
.validation-checks > .is-ready strong { color: #77d7aa; }

.member-shell { max-width: 1440px; }
.member-content { display: grid; gap: 28px; }
.member-hero { min-height: 220px; }

.member-guild-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
}

.member-guild-panel::before { display: none; }

.member-guild-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}

.member-server-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.member-server-identity > div { min-width: 0; }

.member-guild-heading img,
.member-guild-heading .guild-fallback {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 50%;
  object-fit: cover;
}

.member-guild-heading .guild-fallback {
  display: grid;
  place-items: center;
  background: var(--cyan);
  color: #05070c;
  font-weight: 900;
}

.member-guild-heading h2 { margin: 1px 0 2px; }

.member-guild-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.member-sync-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.member-sync-state i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 14px color-mix(in srgb, var(--mint) 58%, transparent);
}

.member-metrics {
  gap: 10px;
  margin: 18px 0 26px;
}

.member-metric {
  position: relative;
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  min-height: 112px !important;
  padding: 16px 16px 18px !important;
  overflow: hidden;
}

.member-metric::after {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  content: "";
  background: var(--metric-accent, var(--cyan));
  opacity: 0.82;
}

.member-metric.is-cyan { --metric-accent: var(--cyan); }
.member-metric.is-mint { --metric-accent: var(--mint); }
.member-metric.is-violet { --metric-accent: var(--violet); }
.member-metric.is-pink { --metric-accent: var(--pink); }

.member-metric span {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.member-metric strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.12;
}

.member-metric small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.member-detail-grid,
.member-detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.member-detail-column {
  display: grid;
  align-content: start;
  gap: 0;
  min-width: 0;
}

.member-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 20px 0 22px;
  border-top: 1px solid var(--line);
}

.member-card:last-child { border-bottom: 1px solid var(--line); }

.member-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.member-section-heading > div { min-width: 0; }

.member-section-heading span {
  display: block;
  margin-bottom: 3px;
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.member-section-heading h3 {
  margin: 0;
  font-size: 1.08rem;
}

.member-section-heading > strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 32px;
  flex: 0 0 34px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  font-size: 0.85rem;
}

.member-empty {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 12px 14px;
  color: var(--muted);
  border-left: 2px solid var(--line-strong);
  background: color-mix(in srgb, var(--surface-strong) 54%, transparent);
}

.member-empty > span {
  color: var(--cyan);
  font-size: 1.1rem;
  text-align: center;
}

.member-empty p {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.member-list article {
  display: grid;
  gap: 3px;
  border-left: 2px solid var(--cyan);
  background: color-mix(in srgb, var(--surface-strong) 68%, transparent);
  padding: 10px 12px;
}

.member-list span,
.member-list small { color: var(--muted); }

.member-appeal-form {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.member-appeal-form textarea { min-height: 92px; }
.operation-row > .operation-form-grid { min-width: min(520px, 46vw); }

.member-preferences {
  display: grid;
  gap: 16px;
}

.member-preference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.member-preference-toggle {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 70px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  cursor: pointer;
}

.member-preference-toggle:hover {
  border-color: color-mix(in srgb, var(--cyan) 46%, var(--line));
}

.member-preference-toggle input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.member-switch {
  position: relative;
  width: 38px;
  height: 22px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 7, 12, 0.78);
  transition: border-color 150ms ease, background 150ms ease;
}

.member-switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  content: "";
  background: var(--muted);
  transition: transform 150ms ease, background 150ms ease;
}

.member-preference-toggle input:checked + .member-switch {
  border-color: color-mix(in srgb, var(--mint) 70%, transparent);
  background: color-mix(in srgb, var(--mint) 20%, rgba(5, 7, 12, 0.9));
}

.member-preference-toggle input:checked + .member-switch::after {
  background: var(--mint);
  transform: translateX(16px);
}

.member-preference-toggle input:focus-visible + .member-switch {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 16%, transparent);
}

.member-preference-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.member-preference-copy strong { color: var(--text); }

.member-preference-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
}

.member-digest-setting {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.4fr);
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.member-digest-setting > span {
  display: grid;
  gap: 3px;
}

.member-digest-setting small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.member-preferences-save {
  justify-self: end;
  width: auto;
  min-width: 220px;
}

@media (max-width: 900px) {
  .operations-grid,
  .member-detail-grid,
  .member-detail-columns,
  .scheduled-announcement-editor,
  .validation-checks { grid-template-columns: 1fr; }
  .operation-card-wide { grid-column: auto; }
}

@media (max-width: 620px) {
  .notification-item,
  .operation-row { grid-template-columns: 1fr; }
  .notification-actions,
  .operation-row-actions { justify-content: flex-end; }
  .operation-form-grid,
  .simulation-grid,
  .member-preferences,
  .member-preference-grid { grid-template-columns: 1fr; }
  .member-guild-heading { align-items: flex-start; }
  .member-server-identity { align-items: flex-start; }
  .member-guild-heading p:not(.eyebrow) { display: none; }
  .member-sync-state { display: none; }
  .member-digest-setting { grid-template-columns: 1fr; }
  .member-preferences-save { justify-self: stretch; width: 100%; min-width: 0; }
  .simulation-fields { grid-template-columns: 1fr; }
  .simulation-message { grid-column: auto; }
  .operation-row > .operation-form-grid { min-width: 0; }
  .report-download-row { grid-template-columns: 1fr; gap: 8px; }
  .report-download-actions { display: grid; grid-template-columns: 1fr; }
  .report-download-actions > .button,
  .report-format-menu { width: 100%; min-width: 0; }
  .report-download-actions .button { padding-inline: 8px; white-space: normal; }
}

:root[data-theme="western"] {
  --bg: #070503;
  --bg-2: #120b06;
  --panel: #171008;
  --panel-2: #24190f;
  --surface: rgba(38, 25, 14, 0.94);
  --surface-strong: rgba(54, 37, 21, 0.98);
  --line: rgba(219, 170, 94, 0.28);
  --line-strong: rgba(244, 209, 142, 0.48);
  --text: #fff0d2;
  --muted: #d1ba8d;
  --soft: #a47d4b;
  --steel: #352516;
  --pink: #9f4f28;
  --cyan: #e0a957;
  --mint: #78915c;
  --violet: #8a6240;
  --danger: #b94a32;
  --radius: 16px;
  --cut: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
  --accent-gradient: linear-gradient(135deg, #f4cd83, #bd773c 54%, #718b58);
  --card-gradient: linear-gradient(180deg, rgba(255, 238, 194, 0.12), rgba(94, 58, 28, 0.07));
  --shadow: 0 18px 52px rgba(0, 0, 0, 0.44);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.34);
  --paper: #f1dbaf;
  --paper-dark: #3a2817;
  --wood: #21150b;
  --leather: #5d351d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 45, 154, 0.04), transparent 360px),
    linear-gradient(120deg, rgba(23, 231, 255, 0.038), transparent 520px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(23, 231, 255, 0.009) 0 1px, transparent 1px 72px),
    linear-gradient(180deg, var(--bg), #070a11 46%, var(--bg)),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

:root[data-theme="western"] body {
  background:
    radial-gradient(circle at 16% 8%, rgba(220, 164, 82, 0.18), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(99, 119, 74, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(76, 43, 19, 0.34), transparent 360px),
    repeating-linear-gradient(90deg, rgba(238, 202, 139, 0.035) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(81, 47, 24, 0.16) 0 2px, transparent 2px 72px),
    linear-gradient(180deg, #080604, #120c07 48%, #070503),
    var(--bg);
  font-family: Georgia, "Times New Roman", serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(115deg, transparent 0 22%, rgba(23, 231, 255, 0.026) 22% 22.35%, transparent 22.35% 55%, rgba(255, 45, 154, 0.026) 55% 55.28%, transparent 55.28%),
    repeating-linear-gradient(135deg, transparent 0 34px, rgba(255, 255, 255, 0.011) 35px, transparent 36px);
  opacity: 0.62;
}

:root[data-theme="western"] body::before {
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(240, 190, 102, 0.04) 18% 18.3%, transparent 18.3% 56%, rgba(132, 177, 100, 0.035) 56% 56.25%, transparent 56.25%),
    repeating-linear-gradient(90deg, rgba(255, 228, 169, 0.025) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(0deg, transparent 0 21px, rgba(72, 46, 22, 0.13) 22px, transparent 23px);
  opacity: 0.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(10px, 1.25vw, 20px);
  align-items: center;
  min-height: 74px;
  width: 100%;
  padding: 10px clamp(12px, 1.15vw, 22px);
  border-bottom: 1px solid rgba(234, 242, 255, 0.1);
  background:
    linear-gradient(90deg, rgba(23, 231, 255, 0.034), transparent 28%, rgba(255, 45, 154, 0.026)),
    rgba(3, 5, 9, 0.92);
  backdrop-filter: blur(20px);
}

.site-header::after {
  position: absolute;
  right: clamp(12px, 1.15vw, 22px);
  bottom: -1px;
  width: 240px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(23, 231, 255, 0.74), rgba(255, 45, 154, 0.68));
}

.release-notice {
  position: relative;
  z-index: 12;
  width: 100%;
  border-bottom: 1px solid rgba(23, 231, 255, 0.2);
  background:
    linear-gradient(90deg, rgba(23, 231, 255, 0.09), rgba(255, 45, 154, 0.055) 52%, rgba(23, 231, 255, 0.04)),
    #090d14;
}

.release-notice-inner {
  display: grid;
  grid-template-columns: minmax(190px, 0.32fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  width: min(1500px, calc(100% - 40px));
  margin: 0 auto;
  padding: 13px 0;
}

.release-notice strong {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.release-notice p {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.55;
}

:root[data-theme="western"] .release-notice {
  border-color: rgba(240, 190, 102, 0.28);
  background:
    linear-gradient(90deg, rgba(240, 190, 102, 0.12), rgba(132, 177, 100, 0.06) 58%, rgba(240, 190, 102, 0.05)),
    #171008;
}

:root[data-theme="western"] .release-notice strong {
  color: #f0be66;
}

.brand,
.nav-links,
.header-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: 130px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(234, 242, 255, 0.12), 0 12px 30px rgba(0, 0, 0, 0.25);
}

.nav-links {
  justify-self: start;
  min-width: 0;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 6px;
  border: 1px solid rgba(234, 242, 255, 0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    rgba(7, 10, 16, 0.84);
  clip-path: var(--cut);
}

.nav-links a {
  min-height: 34px;
  padding: 8px 9px;
  border-radius: var(--radius);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.header-actions {
  justify-self: end;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: 0;
}

.site-header .nav-toggle {
  display: none;
}

.site-header.has-collapsed-nav {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.site-header.has-collapsed-nav .nav-links {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
  margin-top: 8px;
  padding: 10px;
  overflow: visible;
  border-color: rgba(23, 231, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.1), transparent 42%, rgba(255, 45, 154, 0.08)),
    rgba(7, 10, 16, 0.96);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.3);
}

.site-header.has-collapsed-nav:not(.is-nav-open) .nav-links {
  display: none;
}

.site-header.has-collapsed-nav.is-nav-open .nav-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.site-header.has-collapsed-nav .nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  text-align: center;
  border: 1px solid rgba(234, 242, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.site-header.has-collapsed-nav .header-actions {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  max-width: 100%;
  flex-wrap: wrap;
}

.site-header.has-collapsed-nav .nav-toggle {
  display: inline-flex;
  min-width: 82px;
}

.site-header.has-collapsed-nav.is-nav-open .nav-toggle {
  border-color: rgba(23, 231, 255, 0.58);
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.18), rgba(255, 45, 154, 0.08)),
    rgba(10, 15, 23, 0.92);
  box-shadow: inset 0 -2px 0 rgba(23, 231, 255, 0.55), 0 0 24px rgba(23, 231, 255, 0.1);
}

.language-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, 38px);
  gap: 3px;
  min-height: 40px;
  padding: 4px;
  border: 1px solid rgba(205, 232, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.06), rgba(255, 45, 154, 0.05)),
    rgba(7, 10, 16, 0.9);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.language-switch button {
  display: inline-grid;
  place-items: center;
  min-height: 32px;
  color: var(--muted);
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  font-weight: 950;
  font-size: 0.78rem;
}

.language-switch button.is-active {
  color: #030509;
  background: var(--accent-gradient);
}

.theme-toggle {
  position: relative;
  gap: 9px;
  min-width: 178px;
  padding-inline: 18px;
  color: var(--text);
  border-color: rgba(205, 232, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.07), rgba(255, 45, 154, 0.05)),
    rgba(7, 10, 16, 0.9);
  box-shadow: none;
  clip-path: none;
  overflow: visible;
}

.theme-toggle::before {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  content: "";
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  box-shadow: 0 0 14px rgba(23, 231, 255, 0.28);
}

.theme-toggle:hover {
  border-color: rgba(23, 231, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.12), rgba(255, 45, 154, 0.08)),
    rgba(7, 10, 16, 0.95);
}

:root[data-theme="western"] .language-switch {
  border-color: rgba(237, 199, 126, 0.2);
  background:
    linear-gradient(135deg, rgba(240, 190, 102, 0.1), rgba(132, 177, 100, 0.065)),
    rgba(18, 12, 7, 0.92);
}

:root[data-theme="western"] .theme-toggle {
  color: var(--text);
  border-color: rgba(237, 199, 126, 0.24);
  background:
    linear-gradient(135deg, rgba(240, 190, 102, 0.12), rgba(132, 177, 100, 0.07)),
    rgba(18, 12, 7, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(255, 239, 202, 0.035),
    0 8px 20px rgba(0, 0, 0, 0.18);
}

:root[data-theme="western"] .theme-toggle::before {
  background: linear-gradient(135deg, #f3c66f, #85b164);
  box-shadow: 0 0 14px rgba(240, 190, 102, 0.24);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  min-height: 46px;
  padding: 0 20px;
  color: #05070c;
  border: 1px solid rgba(23, 231, 255, 0.58);
  border-radius: var(--radius);
  background: var(--accent-gradient);
  box-shadow: 0 12px 32px rgba(23, 231, 255, 0.15);
  cursor: pointer;
  font-weight: 900;
  font-size: 0.94rem;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.button:hover {
  transform: translateY(-1px);
}

.button-small {
  min-width: auto;
  min-height: 40px;
  padding: 0 14px;
  white-space: nowrap;
}

.button-ghost {
  color: var(--text);
  border-color: rgba(234, 242, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(10, 15, 23, 0.8);
  box-shadow: none;
}

.button-danger {
  color: #fff;
  border-color: rgba(255, 91, 116, 0.76);
  background: linear-gradient(135deg, #d72f51, #8f1f3d);
  box-shadow: 0 12px 28px rgba(215, 47, 81, 0.2);
}

.button-danger:hover {
  border-color: rgba(255, 173, 186, 0.92);
  background: linear-gradient(135deg, #eb4263, #a92547);
}

.purge-mode-field {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(93, 230, 226, 0.2);
  background: rgba(10, 20, 28, 0.38);
}

.purge-mode-field[hidden] {
  display: none;
}

.purge-mode-field > span {
  color: var(--text);
  font-weight: 800;
}

.purge-mode-field > small {
  color: var(--muted);
}

.purge-mode-danger {
  border-color: rgba(255, 66, 96, 0.45);
  background: rgba(86, 10, 26, 0.22);
}

.button.theme-toggle {
  justify-content: center;
  gap: 9px;
  min-width: 178px;
  padding-inline: 18px;
  clip-path: none;
  overflow: visible;
  white-space: nowrap;
}

.button.theme-toggle::before {
  position: static;
  flex: 0 0 auto;
  transform: none;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.action-link,
.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  font-weight: 900;
  font-size: 0.9rem;
  white-space: nowrap;
}

.action-link {
  padding: 0 4px;
}

.header-link {
  padding: 0 2px;
  font-size: 0.84rem;
}

.action-link:hover,
.header-link:hover {
  color: var(--cyan);
}

.discord-profile-button {
  gap: 8px;
  min-width: 0;
  max-width: 168px;
  padding-inline: 9px 12px;
  color: var(--text);
  font-size: 0.86rem;
}

.discord-logout-button {
  max-width: 128px;
  padding-inline: 13px;
}

.discord-profile-button img,
.discord-profile-fallback {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.discord-profile-fallback {
  display: inline-grid;
  place-items: center;
  color: #05070c;
  background: var(--accent-gradient);
  font-weight: 950;
}

.discord-profile-button span:last-child {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-size: 4.45rem;
  line-height: 0.98;
  font-weight: 950;
  font-style: italic;
  text-shadow: 0 0 14px rgba(23, 231, 255, 0.08);
}

.hero-home h1 {
  font-size: clamp(3.45rem, 7vw, 4.35rem);
  line-height: 0.96;
}

h2 {
  font-size: 2.45rem;
  line-height: 1.08;
  font-weight: 930;
}

h3 {
  font-size: 1.18rem;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(380px, 0.92fr);
  gap: clamp(34px, 5vw, 70px);
  min-height: min(690px, calc(100vh - 72px));
  overflow: hidden;
  align-items: center;
  padding: 76px max(22px, calc((100vw - 1180px) / 2)) 64px;
  border-bottom: 1px solid rgba(234, 242, 255, 0.08);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 42%, rgba(255, 45, 154, 0.075), transparent 32%),
    radial-gradient(circle at 15% 18%, rgba(23, 231, 255, 0.062), transparent 28%),
    linear-gradient(115deg, rgba(3, 5, 9, 0.74), rgba(7, 10, 16, 0.98) 58%, rgba(3, 5, 9, 0.99)),
    repeating-linear-gradient(90deg, rgba(23, 231, 255, 0.02) 0 1px, transparent 1px 104px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 104px),
    #05060a;
}

.hero-backdrop::before {
  position: absolute;
  inset: 14% -20% auto 8%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 45, 154, 0.22), transparent, rgba(23, 231, 255, 0.2), transparent);
  box-shadow:
    0 118px 0 rgba(23, 231, 255, 0.04),
    0 260px 0 rgba(255, 45, 154, 0.04),
    320px 338px 0 rgba(157, 108, 255, 0.04);
}

.hero-emblem {
  position: absolute;
  right: max(-70px, calc((100vw - 1320px) / 2));
  top: 56px;
  width: 520px;
  opacity: 0.045;
  filter: saturate(1.02) drop-shadow(0 0 24px rgba(255, 45, 154, 0.16));
}

.scanlines {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background:
    repeating-linear-gradient(180deg, transparent 0 13px, rgba(255, 255, 255, 0.023) 14px),
    linear-gradient(115deg, transparent 0 66%, rgba(23, 231, 255, 0.08) 66.2%, transparent 66.6%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.hero-copy,
.page-hero p,
.section-heading p,
.final-cta p,
.wide-card p,
.plan-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy {
  max-width: 600px;
  margin: 20px 0 0;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-actions.center {
  justify-content: center;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 138px));
  gap: 12px;
  margin: 30px 0 0;
}

.hero-metrics div,
.dashboard-metrics article {
  min-height: 74px;
  padding: 14px;
  border: 1px solid rgba(234, 242, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.036), transparent 42%),
    rgba(9, 13, 22, 0.82);
  clip-path: var(--cut);
}

.hero-metrics dt,
.dashboard-metrics span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-metrics dd,
.dashboard-metrics strong {
  margin: 0;
  color: var(--text);
  font-weight: 900;
  font-size: 1.15rem;
}

.premium-launch-note {
  border: 1px solid rgba(255, 45, 154, 0.32);
  background:
    linear-gradient(135deg, rgba(255, 45, 154, 0.12), rgba(23, 231, 255, 0.055)),
    rgba(9, 13, 22, 0.74);
  clip-path: var(--cut);
}

.premium-launch-note strong {
  color: var(--text);
  font-weight: 950;
}

.premium-launch-note {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-top: 28px;
  padding: 18px 20px;
}

.premium-launch-note p {
  margin: 0;
}

.launch-kicker {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.premium-goal-panel {
  border-color: rgba(255, 45, 154, 0.34);
}

.status-progress {
  overflow: hidden;
  height: 9px;
  margin-top: 14px;
  border: 1px solid rgba(234, 242, 255, 0.12);
  background: rgba(3, 5, 9, 0.62);
  clip-path: var(--cut);
}

.status-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  box-shadow: 0 0 18px rgba(23, 231, 255, 0.28);
  transition: width 280ms ease;
}

.dashboard-kpi {
  display: grid;
  gap: 6px;
}

.dashboard-kpi small {
  color: var(--soft);
  font-weight: 800;
  font-size: 0.76rem;
}

.hero-preview {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(100%, 600px);
  margin: 0 0 0 auto;
  border: 1px solid rgba(234, 242, 255, 0.18);
  border-radius: var(--radius);
  background: #020305;
  box-shadow:
    0 0 0 1px rgba(23, 231, 255, 0.055),
    0 16px 38px rgba(0, 0, 0, 0.34);
  clip-path: var(--cut);
}

.hero-preview img {
  opacity: 0.96;
  border-radius: var(--radius);
}

:root[data-theme="western"] .site-header {
  border-bottom-color: rgba(237, 199, 126, 0.14);
  background:
    linear-gradient(90deg, rgba(132, 177, 100, 0.05), transparent 30%, rgba(201, 106, 54, 0.05)),
    rgba(10, 7, 4, 0.94);
}

:root[data-theme="western"] .site-header::after {
  background: linear-gradient(90deg, transparent, rgba(240, 190, 102, 0.72), rgba(132, 177, 100, 0.6));
}

:root[data-theme="western"] .nav-links,
:root[data-theme="western"] .button-ghost,
:root[data-theme="western"] .drawer-close,
:root[data-theme="western"] .copy-list button,
:root[data-theme="western"] .faq-list details {
  border-color: var(--line);
  background:
    linear-gradient(135deg, rgba(240, 190, 102, 0.065), transparent 46%, rgba(132, 177, 100, 0.045)),
    rgba(18, 12, 7, 0.86);
}

:root[data-theme="western"] .button {
  border-color: rgba(240, 190, 102, 0.56);
  box-shadow: 0 12px 32px rgba(128, 78, 31, 0.18);
}

:root[data-theme="western"] .button:hover {
  border-color: rgba(255, 219, 140, 0.78);
}

:root[data-theme="western"] .hero-backdrop {
  background:
    radial-gradient(circle at 82% 42%, rgba(201, 106, 54, 0.14), transparent 34%),
    radial-gradient(circle at 16% 18%, rgba(132, 177, 100, 0.12), transparent 30%),
    linear-gradient(115deg, rgba(12, 8, 4, 0.8), rgba(20, 13, 8, 0.98) 58%, rgba(7, 5, 3, 0.99)),
    repeating-linear-gradient(90deg, rgba(240, 190, 102, 0.035) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(255, 239, 197, 0.014) 0 1px, transparent 1px 92px),
    #0c0704;
}

:root[data-theme="western"] .hero-backdrop::before {
  background: linear-gradient(90deg, transparent, rgba(240, 190, 102, 0.2), transparent, rgba(132, 177, 100, 0.16), transparent);
  box-shadow:
    0 118px 0 rgba(240, 190, 102, 0.035),
    0 260px 0 rgba(201, 106, 54, 0.035),
    320px 338px 0 rgba(132, 177, 100, 0.032);
}

:root[data-theme="western"] .hero-emblem {
  opacity: 0.07;
  filter: sepia(0.48) saturate(0.82) contrast(1.08) drop-shadow(0 0 22px rgba(240, 190, 102, 0.14));
}

:root[data-theme="western"] .scanlines {
  opacity: 0.08;
  background:
    repeating-linear-gradient(180deg, transparent 0 15px, rgba(255, 232, 185, 0.02) 16px),
    linear-gradient(115deg, transparent 0 66%, rgba(240, 190, 102, 0.075) 66.2%, transparent 66.6%);
}

:root[data-theme="western"] .hero-metrics div,
:root[data-theme="western"] .dashboard-metrics article,
:root[data-theme="western"] .dashboard-panel,
:root[data-theme="western"] .empty-state,
:root[data-theme="western"] .status-panel {
  border-color: var(--line);
  background:
    linear-gradient(135deg, rgba(240, 190, 102, 0.07), transparent 44%, rgba(132, 177, 100, 0.045)),
    linear-gradient(180deg, rgba(94, 57, 24, 0.08), transparent 42%),
    rgba(24, 17, 10, 0.9);
}

:root[data-theme="western"] .hero-preview {
  border-color: rgba(237, 199, 126, 0.22);
  background: #0b0704;
  box-shadow:
    0 0 0 1px rgba(240, 190, 102, 0.075),
    0 16px 38px rgba(0, 0, 0, 0.38);
}

:root[data-theme="western"] .hero-preview img,
:root[data-theme="western"] .trust-card img,
:root[data-theme="western"] .wide-card img {
  opacity: 0.9;
  filter: sepia(0.24) saturate(0.92) contrast(1.04);
}

:root[data-theme="western"] .page-hero {
  background:
    linear-gradient(120deg, rgba(201, 106, 54, 0.08), transparent 38%),
    linear-gradient(260deg, rgba(132, 177, 100, 0.07), transparent 50%),
    repeating-linear-gradient(90deg, rgba(255, 239, 197, 0.022) 0 1px, transparent 1px 70px),
    #0c0704;
  border-bottom-color: rgba(237, 199, 126, 0.1);
}

:root[data-theme="western"] .page-hero::after {
  background: linear-gradient(90deg, transparent, rgba(240, 190, 102, 0.78), rgba(132, 177, 100, 0.66));
}

:root[data-theme="western"] .section-dark {
  background: linear-gradient(180deg, rgba(18, 12, 7, 0.96), rgba(8, 6, 4, 0.98)), #090604;
}

:root[data-theme="western"] .section-flow {
  background:
    linear-gradient(90deg, rgba(201, 106, 54, 0.06), transparent 42%),
    linear-gradient(180deg, #0d0805, #17100a);
}

:root[data-theme="western"] .link-board a:hover,
:root[data-theme="western"] .feature-card:hover,
:root[data-theme="western"] .start-board article:hover,
:root[data-theme="western"] .trust-card:hover,
:root[data-theme="western"] .scenario-card:hover,
:root[data-theme="western"] .wide-card:hover,
:root[data-theme="western"] .plan-card:hover,
:root[data-theme="western"] .command-column:hover {
  border-color: rgba(240, 190, 102, 0.38);
}

:root[data-theme="western"] h1,
:root[data-theme="western"] h2,
:root[data-theme="western"] h3,
:root[data-theme="western"] .brand,
:root[data-theme="western"] .feature-icon,
:root[data-theme="western"] .scenario-card > span,
:root[data-theme="western"] .dashboard-metrics strong,
:root[data-theme="western"] .hero-metrics dd {
  font-family: Georgia, "Times New Roman", serif;
  font-style: normal;
  letter-spacing: 0.01em;
}

:root[data-theme="western"] h1 {
  color: #fff0d2;
  text-shadow:
    0 2px 0 rgba(73, 42, 18, 0.9),
    0 14px 36px rgba(0, 0, 0, 0.46);
}

:root[data-theme="western"] h2,
:root[data-theme="western"] h3 {
  color: #f7dfb0;
  text-shadow: 0 2px 0 rgba(42, 26, 13, 0.56);
}

:root[data-theme="western"] .button,
:root[data-theme="western"] .nav-links,
:root[data-theme="western"] .header-actions,
:root[data-theme="western"] .language-switch,
:root[data-theme="western"] .dashboard-panel input,
:root[data-theme="western"] .dashboard-panel select,
:root[data-theme="western"] .dashboard-panel textarea,
:root[data-theme="western"] .dashboard-table,
:root[data-theme="western"] .toast {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="western"] .site-header {
  border-bottom: 2px solid rgba(196, 135, 67, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 232, 179, 0.08), rgba(51, 31, 15, 0.12)),
    repeating-linear-gradient(90deg, rgba(255, 235, 178, 0.04) 0 1px, transparent 1px 28px),
    linear-gradient(90deg, rgba(20, 12, 7, 0.96), rgba(38, 24, 13, 0.96) 48%, rgba(14, 9, 5, 0.96));
  backdrop-filter: blur(14px);
}

:root[data-theme="western"] .site-header::after {
  right: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(224, 169, 87, 0.75), rgba(120, 145, 92, 0.55), transparent);
}

:root[data-theme="western"] .brand img {
  border-radius: 50%;
  filter: sepia(0.24) saturate(0.85) contrast(1.05);
  box-shadow:
    0 0 0 2px rgba(224, 169, 87, 0.28),
    0 10px 24px rgba(0, 0, 0, 0.34);
}

:root[data-theme="western"] .nav-links {
  padding: 7px;
  border: 1px solid rgba(224, 169, 87, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 239, 202, 0.08), rgba(104, 63, 28, 0.08)),
    rgba(20, 12, 7, 0.9);
  clip-path: none;
}

:root[data-theme="western"] .nav-links a {
  border-radius: 999px;
}

:root[data-theme="western"] .nav-links a:hover,
:root[data-theme="western"] .nav-links a[aria-current="page"] {
  color: #241407;
  background: linear-gradient(135deg, #f4cd83, #d99a55);
}

:root[data-theme="western"] .button {
  color: #211206;
  border: 2px solid rgba(95, 55, 25, 0.78);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 241, 200, 0.35), transparent 45%),
    linear-gradient(135deg, #e8b96c, #b66b34 58%, #6e8856);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 207, 0.45),
    inset 0 -3px 0 rgba(76, 43, 19, 0.34),
    0 12px 28px rgba(0, 0, 0, 0.26);
  clip-path: none;
}

:root[data-theme="western"] .button-ghost {
  color: #f4dfb9;
  border-color: rgba(224, 169, 87, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 239, 202, 0.07), rgba(58, 35, 16, 0.08)),
    rgba(26, 17, 10, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 239, 202, 0.04);
}

:root[data-theme="western"] .button-danger {
  color: #fff6e7;
  border-color: rgba(138, 45, 31, 0.92);
  background: linear-gradient(180deg, #a44331, #6f261f);
  box-shadow: inset 0 -3px 0 rgba(52, 18, 13, 0.34), 0 12px 28px rgba(0, 0, 0, 0.28);
}

:root[data-theme="western"] .theme-toggle::before {
  background:
    radial-gradient(circle, #f7dfa0 0 38%, #b66b34 39% 64%, #5f3719 65%);
  box-shadow:
    0 0 0 2px rgba(43, 24, 10, 0.42),
    0 0 14px rgba(224, 169, 87, 0.28);
}

:root[data-theme="western"] .hero {
  min-height: min(760px, calc(100vh - 72px));
  border-bottom: 2px solid rgba(145, 91, 43, 0.32);
}

:root[data-theme="western"] .hero-backdrop {
  background:
    linear-gradient(90deg, rgba(7, 5, 3, 0.95) 0%, rgba(10, 7, 4, 0.84) 35%, rgba(10, 7, 4, 0.42) 62%, rgba(7, 5, 3, 0.8) 100%),
    linear-gradient(180deg, rgba(7, 5, 3, 0.28), rgba(7, 5, 3, 0.94)),
    url("assets/western-rp-office.png") center right / cover no-repeat,
    #0b0704;
}

:root[data-theme="western"] .hero-backdrop::before {
  inset: 22px;
  height: auto;
  border: 1px solid rgba(224, 169, 87, 0.26);
  border-radius: 22px;
  background:
    linear-gradient(90deg, transparent, rgba(224, 169, 87, 0.16), transparent);
  box-shadow:
    inset 0 0 0 1px rgba(255, 239, 202, 0.035),
    inset 0 0 80px rgba(0, 0, 0, 0.38);
}

:root[data-theme="western"] .hero-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 30%, rgba(255, 222, 158, 0.12), transparent 26%),
    repeating-linear-gradient(0deg, rgba(255, 239, 202, 0.025) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
  opacity: 0.42;
}

:root[data-theme="western"] .hero-emblem {
  right: 7%;
  top: 108px;
  width: 260px;
  opacity: 0.1;
  filter: sepia(0.72) saturate(0.72) contrast(1.14);
}

:root[data-theme="western"] .scanlines {
  display: none;
}

:root[data-theme="western"] .eyebrow {
  color: #efc578;
  letter-spacing: 0.14em;
}

:root[data-theme="western"] .hero-copy,
:root[data-theme="western"] .page-hero p,
:root[data-theme="western"] .section-heading p,
:root[data-theme="western"] .final-cta p,
:root[data-theme="western"] .wide-card p,
:root[data-theme="western"] .plan-card p {
  color: #dfc49a;
}

:root[data-theme="western"] .hero-preview {
  overflow: hidden;
  min-height: 355px;
  border: 2px solid rgba(224, 169, 87, 0.36);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 239, 202, 0.05), rgba(0, 0, 0, 0.12)),
    url("assets/western-rp-office.png") center right / cover no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(255, 239, 202, 0.08),
    0 24px 52px rgba(0, 0, 0, 0.42);
  clip-path: none;
}

:root[data-theme="western"] .hero-preview::before {
  position: absolute;
  inset: 14px;
  z-index: 2;
  content: "";
  border: 1px solid rgba(246, 214, 151, 0.26);
  border-radius: 16px;
  pointer-events: none;
}

:root[data-theme="western"] .hero-preview::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  width: 92px;
  height: 92px;
  content: "";
  border: 2px solid rgba(224, 169, 87, 0.32);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 239, 202, 0.08) 0 46%, transparent 47%),
    radial-gradient(circle, rgba(82, 48, 22, 0.86), rgba(22, 13, 7, 0.86));
  box-shadow:
    inset 0 0 0 7px rgba(224, 169, 87, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.28);
}

:root[data-theme="western"] .hero-preview img {
  visibility: hidden;
  opacity: 0;
}

:root[data-theme="western"] .hero-metrics div,
:root[data-theme="western"] .dashboard-metrics article,
:root[data-theme="western"] .feature-card,
:root[data-theme="western"] .command-column,
:root[data-theme="western"] .wide-card,
:root[data-theme="western"] .plan-card,
:root[data-theme="western"] .link-board a,
:root[data-theme="western"] .start-board article,
:root[data-theme="western"] .trust-card,
:root[data-theme="western"] .scenario-card,
:root[data-theme="western"] .dashboard-panel,
:root[data-theme="western"] .status-panel,
:root[data-theme="western"] .comparison-board article,
:root[data-theme="western"] .service-insight,
:root[data-theme="western"] .service-roadmap article,
:root[data-theme="western"] .active-service-grid article,
:root[data-theme="western"] .personal-service-head div,
:root[data-theme="western"] .service-empty {
  border: 2px solid rgba(111, 70, 34, 0.74);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 239, 202, 0.11), rgba(69, 42, 21, 0.08)),
    repeating-linear-gradient(90deg, rgba(255, 239, 202, 0.028) 0 1px, transparent 1px 20px),
    linear-gradient(135deg, rgba(49, 31, 17, 0.96), rgba(31, 20, 12, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(255, 239, 202, 0.06),
    inset 0 -12px 28px rgba(50, 27, 12, 0.16),
    0 18px 34px rgba(0, 0, 0, 0.28);
  clip-path: none;
}

:root[data-theme="western"] .feature-card::before,
:root[data-theme="western"] .command-column::before,
:root[data-theme="western"] .wide-card::before,
:root[data-theme="western"] .plan-card::before,
:root[data-theme="western"] .dashboard-panel::before,
:root[data-theme="western"] .troubleshoot-card::before,
:root[data-theme="western"] .support-banner::before,
:root[data-theme="western"] .status-card::before,
:root[data-theme="western"] .start-board article::before,
:root[data-theme="western"] .trust-card::before,
:root[data-theme="western"] .scenario-card::before {
  left: 22px;
  width: 72px;
  height: 3px;
  background: linear-gradient(90deg, #efc578, #8aa064, transparent);
  opacity: 0.86;
}

:root[data-theme="western"] .feature-card::after,
:root[data-theme="western"] .command-column::after,
:root[data-theme="western"] .wide-card::after,
:root[data-theme="western"] .plan-card::after,
:root[data-theme="western"] .start-board article::after,
:root[data-theme="western"] .trust-card::after,
:root[data-theme="western"] .scenario-card::after,
:root[data-theme="western"] .dashboard-panel::after,
:root[data-theme="western"] .status-panel::after {
  position: absolute;
  inset: 9px;
  content: "";
  border: 1px solid rgba(239, 197, 120, 0.12);
  border-radius: 12px;
  pointer-events: none;
}

:root[data-theme="western"] .feature-icon,
:root[data-theme="western"] .scenario-card > span,
:root[data-theme="western"] .service-card-heading > strong {
  color: #241407;
  border: 2px solid rgba(95, 55, 25, 0.72);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 242, 202, 0.44), transparent 45%),
    linear-gradient(135deg, #f1c678, #b66b34);
  box-shadow:
    inset 0 -3px 0 rgba(83, 46, 19, 0.22),
    0 8px 18px rgba(0, 0, 0, 0.24);
  clip-path: none;
}

:root[data-theme="western"] .page-hero {
  background:
    linear-gradient(90deg, rgba(7, 5, 3, 0.93), rgba(19, 12, 7, 0.72), rgba(7, 5, 3, 0.82)),
    url("assets/western-rp-office.png") center right / cover no-repeat,
    #0b0704;
  border-bottom: 2px solid rgba(145, 91, 43, 0.32);
}

:root[data-theme="western"] .section-dark,
:root[data-theme="western"] .trust-section,
:root[data-theme="western"] .scenario-section {
  background:
    radial-gradient(circle at 22% 0%, rgba(144, 86, 37, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(18, 12, 7, 0.98), rgba(8, 6, 4, 0.98)),
    #090604;
}

:root[data-theme="western"] .section-flow {
  background:
    linear-gradient(90deg, rgba(119, 69, 31, 0.12), transparent 42%),
    repeating-linear-gradient(90deg, rgba(255, 239, 202, 0.018) 0 1px, transparent 1px 42px),
    linear-gradient(180deg, #0e0905, #1b120a);
}

:root[data-theme="western"] .faq-list details,
:root[data-theme="western"] .trust-note,
:root[data-theme="western"] .support-banner,
:root[data-theme="western"] .status-card,
:root[data-theme="western"] .toast {
  border: 2px solid rgba(111, 70, 34, 0.68);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 239, 202, 0.1), rgba(69, 42, 21, 0.08)),
    rgba(30, 20, 12, 0.94);
  clip-path: none;
}

:root[data-theme="western"] .dashboard-table th {
  color: #efc578;
}

:root[data-theme="western"] .dashboard-table th,
:root[data-theme="western"] .dashboard-table td {
  border-bottom-color: rgba(224, 169, 87, 0.14);
}

:root[data-theme="western"] .dashboard-panel input,
:root[data-theme="western"] .dashboard-panel select,
:root[data-theme="western"] .dashboard-panel textarea {
  color: #fff0d2;
  border: 2px solid rgba(111, 70, 34, 0.72);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 239, 202, 0.045), transparent),
    rgba(13, 9, 6, 0.92);
}

:root[data-theme="western"] .dashboard-panel input:focus,
:root[data-theme="western"] .dashboard-panel select:focus,
:root[data-theme="western"] .dashboard-panel textarea:focus {
  border-color: rgba(224, 169, 87, 0.72);
  box-shadow:
    0 0 0 3px rgba(224, 169, 87, 0.12),
    inset 0 0 0 1px rgba(255, 239, 202, 0.04);
}

:root[data-theme="western"] .sentinel-tooltip {
  border: 2px solid rgba(111, 70, 34, 0.7);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 239, 202, 0.13), rgba(67, 41, 20, 0.12)),
    rgba(18, 12, 7, 0.98);
  clip-path: none;
}

:root[data-theme="western"] .guild-list::-webkit-scrollbar-thumb {
  background: rgba(224, 169, 87, 0.36);
}

:root[data-theme="western"] .hero-content::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: -24px;
  width: 5px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(180deg, #efc578, #8aa064 58%, transparent);
  box-shadow: 0 0 24px rgba(224, 169, 87, 0.18);
  opacity: 0.82;
}

:root[data-theme="western"] .section-heading {
  position: relative;
  padding-left: 22px;
  border-left: 4px double rgba(224, 169, 87, 0.42);
}

:root[data-theme="western"] .section-heading::before {
  position: absolute;
  top: 7px;
  left: -9px;
  width: 14px;
  height: 14px;
  content: "";
  border: 2px solid rgba(82, 48, 22, 0.78);
  border-radius: 50%;
  background: radial-gradient(circle, #f3d18d 0 32%, #b66b34 34% 70%, #40220e 72%);
  box-shadow: 0 0 0 3px rgba(13, 8, 5, 0.78);
}

:root[data-theme="western"] .dashboard-table {
  overflow: hidden;
  border: 2px solid rgba(111, 70, 34, 0.56);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 239, 202, 0.055), rgba(54, 33, 16, 0.06)),
    rgba(13, 9, 6, 0.74);
  clip-path: none;
}

:root[data-theme="western"] .dashboard-alert {
  padding: 14px;
  border: 1px solid rgba(224, 169, 87, 0.24);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(224, 169, 87, 0.08), transparent 54%, rgba(132, 177, 100, 0.055)),
    rgba(14, 9, 6, 0.56);
}

:root[data-theme="western"] .server-preset-panel,
:root[data-theme="western"] .server-preset-card,
:root[data-theme="western"] .server-preset-advice,
:root[data-theme="western"] .dashboard-path,
:root[data-theme="western"] .dashboard-path-card,
:root[data-theme="western"] .global-lookup-panel,
:root[data-theme="western"] .today-card,
:root[data-theme="western"] .plan-scope-card,
:root[data-theme="western"] .demo-dashboard-grid article,
:root[data-theme="western"] .profile-payroll-card div {
  border-color: rgba(224, 169, 87, 0.24);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(224, 169, 87, 0.08), transparent 58%, rgba(95, 125, 75, 0.055)),
    rgba(18, 11, 7, 0.6);
  clip-path: none;
}

:root[data-theme="western"] .server-preset-card.is-active {
  border-color: rgba(239, 197, 120, 0.58);
  background:
    linear-gradient(135deg, rgba(239, 197, 120, 0.16), transparent 54%, rgba(108, 62, 28, 0.12)),
    rgba(31, 18, 9, 0.76);
  box-shadow: 0 0 24px rgba(224, 169, 87, 0.1);
}

:root[data-theme="western"] .server-preset-card span {
  color: #efc578;
}

:root[data-theme="western"] .dashboard-path-card span {
  color: #efc578;
  border-color: rgba(224, 169, 87, 0.36);
  background: rgba(224, 169, 87, 0.1);
}

:root[data-theme="western"] .today-card span,
:root[data-theme="western"] .plan-scope-card span,
:root[data-theme="western"] .demo-dashboard-grid span {
  color: #efc578;
}

:root[data-theme="western"] .dashboard-loading-state {
  border-color: rgba(224, 169, 87, 0.28);
  background:
    radial-gradient(circle at 50% 0, rgba(224, 169, 87, 0.12), transparent 36%),
    linear-gradient(135deg, rgba(224, 169, 87, 0.08), transparent 54%, rgba(95, 125, 75, 0.055)),
    rgba(18, 11, 7, 0.66);
}

:root[data-theme="western"] .dashboard-loading-server {
  border-color: rgba(224, 169, 87, 0.22);
  border-radius: 999px;
  background: rgba(224, 169, 87, 0.07);
  clip-path: none;
}

:root[data-theme="western"] .dashboard-loading-bar {
  border-color: rgba(224, 169, 87, 0.28);
}

:root[data-theme="western"] .dashboard-loading-bar span {
  background: linear-gradient(90deg, #efc578, #8faf63);
  box-shadow: 0 0 18px rgba(224, 169, 87, 0.22);
}

:root[data-theme="western"] .resolution-item {
  border-color: rgba(224, 169, 87, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(224, 169, 87, 0.09), transparent 50%, rgba(91, 54, 26, 0.1)),
    rgba(18, 11, 7, 0.58);
  clip-path: none;
}

:root[data-theme="western"] .resolution-copy span {
  color: #efc578;
}

:root[data-theme="western"] .status-pill,
:root[data-theme="western"] .premium-inline-note,
:root[data-theme="western"] .premium-badge,
:root[data-theme="western"] .free-badge,
:root[data-theme="western"] .premium-tag,
:root[data-theme="western"] .status-badge.is-syncing {
  border-color: rgba(224, 169, 87, 0.38);
  border-radius: 999px;
  clip-path: none;
}

:root[data-theme="western"] .premium-badge {
  color: #241407;
  background: linear-gradient(135deg, #efc578, #8aa064);
}

:root[data-theme="western"] .premium-tag {
  color: #efc578;
  background: rgba(224, 169, 87, 0.1);
}

:root[data-theme="western"] .status-progress {
  border: 1px solid rgba(224, 169, 87, 0.24);
  border-radius: 999px;
  background: rgba(13, 9, 6, 0.82);
  clip-path: none;
}

:root[data-theme="western"] .status-progress span {
  background: linear-gradient(90deg, #efc578, #8aa064);
  box-shadow: 0 0 18px rgba(224, 169, 87, 0.26);
}

:root[data-theme="western"] .site-footer {
  position: relative;
  color: #d8bd91;
  border-top: 2px solid rgba(111, 70, 34, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 239, 202, 0.045), transparent 52%),
    repeating-linear-gradient(90deg, rgba(255, 239, 202, 0.026) 0 1px, transparent 1px 32px),
    #0d0805;
}

:root[data-theme="western"] .site-footer::before {
  position: absolute;
  top: -2px;
  left: max(22px, calc((100vw - 1180px) / 2));
  width: min(320px, calc(100% - 44px));
  height: 3px;
  content: "";
  background: linear-gradient(90deg, #efc578, #8aa064, transparent);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 88px max(22px, calc((100vw - 1180px) / 2)) 64px;
  background:
    linear-gradient(120deg, rgba(255, 45, 154, 0.065), transparent 36%),
    linear-gradient(260deg, rgba(23, 231, 255, 0.058), transparent 48%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 70px),
    #05060a;
  border-bottom: 1px solid rgba(234, 242, 255, 0.08);
}

.page-hero::after {
  position: absolute;
  right: max(22px, calc((100vw - 1180px) / 2));
  bottom: 24px;
  width: 260px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(23, 231, 255, 0.8), rgba(255, 45, 154, 0.8));
}

.page-hero h1 {
  max-width: 980px;
  font-size: 3.45rem;
  line-height: 1.04;
}

.page-hero p {
  max-width: 760px;
  font-size: 1.04rem;
}

.section {
  padding: 78px max(22px, calc((100vw - 1180px) / 2));
}

.section-dark {
  background: linear-gradient(180deg, rgba(9, 11, 18, 0.96), rgba(5, 6, 10, 0.98)), #05060a;
}

.section-flow {
  background:
    linear-gradient(90deg, rgba(255, 45, 154, 0.045), transparent 42%),
    linear-gradient(180deg, #070910, #0b0f18);
}

.release-explainer {
  border-block: 1px solid rgba(23, 231, 255, 0.12);
  background:
    linear-gradient(90deg, rgba(23, 231, 255, 0.045), transparent 40%, rgba(255, 45, 154, 0.035)),
    #070a10;
}

.release-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.release-points article {
  min-width: 0;
  padding-left: 18px;
  border-left: 2px solid rgba(23, 231, 255, 0.34);
}

.release-points span {
  display: block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 950;
}

.release-points h3 {
  margin-bottom: 9px;
  font-size: 1.08rem;
}

.release-points p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

:root[data-theme="western"] .release-explainer {
  border-color: rgba(240, 190, 102, 0.16);
  background:
    linear-gradient(90deg, rgba(240, 190, 102, 0.07), transparent 44%, rgba(132, 177, 100, 0.04)),
    #171008;
}

:root[data-theme="western"] .release-points article {
  border-color: rgba(240, 190, 102, 0.42);
}

:root[data-theme="western"] .release-points span {
  color: #f0be66;
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.feature-grid,
.command-page-grid,
.pricing-grid,
.security-grid,
.trust-grid,
.scenario-grid {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.trust-grid,
.scenario-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.command-page-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.security-grid,
.feature-stack {
  display: grid;
  gap: 18px;
}

.feature-card,
.command-column,
.wide-card,
.plan-card,
.link-board a,
.start-board article,
.trust-card,
.scenario-card {
  border: 1px solid rgba(234, 242, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.036), transparent 38%, rgba(255, 45, 154, 0.03)),
    var(--card-gradient),
    var(--surface);
  box-shadow: var(--shadow-soft);
  clip-path: var(--cut);
}

.feature-card,
.command-column,
.wide-card,
.plan-card,
.link-board a,
.dashboard-panel,
.guild-card,
.inline-form,
.form-grid form,
.split-mini article,
.troubleshoot-card,
.support-banner,
.status-card,
.start-board article,
.trust-card,
.scenario-card {
  position: relative;
}

.feature-card::before,
.command-column::before,
.wide-card::before,
.plan-card::before,
.dashboard-panel::before,
.troubleshoot-card::before,
.support-banner::before,
.status-card::before,
.start-board article::before,
.trust-card::before,
.scenario-card::before {
  position: absolute;
  top: 0;
  left: 18px;
  width: 58px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  opacity: 0.52;
}

.feature-card,
.command-column,
.plan-card,
.start-board article,
.trust-card,
.scenario-card {
  padding: 24px;
}

.feature-card {
  min-height: 206px;
}

.trust-card,
.scenario-card {
  min-height: 214px;
}

.feature-card p,
.start-board p,
.trust-card p,
.scenario-card p,
.command-column span,
.steps span,
.english-note,
.check-list,
.muted {
  color: var(--muted);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 34px;
  margin-bottom: 22px;
  border: 1px solid rgba(23, 231, 255, 0.34);
  border-radius: var(--radius);
  color: var(--cyan);
  background: rgba(23, 231, 255, 0.06);
  font-weight: 900;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.trust-section,
.scenario-section {
  background:
    linear-gradient(180deg, rgba(8, 12, 20, 0.98), rgba(5, 7, 12, 0.98)),
    #05070c;
}

.trust-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding: 16px 18px;
  color: var(--muted);
  border: 1px solid rgba(234, 242, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  clip-path: var(--cut);
}

.trust-note strong {
  color: var(--text);
}

.scenario-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.scenario-card > span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 34px;
  color: var(--cyan);
  border: 1px solid rgba(23, 231, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(23, 231, 255, 0.055);
  font-weight: 950;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.split-layout,
.wide-card,
.install-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: start;
}

.wide-card {
  padding: 30px;
}

.link-board {
  display: grid;
  gap: 12px;
}

.start-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.start-board article {
  display: grid;
  gap: 8px;
  min-height: 132px;
}

.start-board article span {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 950;
}

.start-board article strong {
  font-size: 1.04rem;
}

.start-board p {
  margin: 0;
  line-height: 1.55;
}

.start-board .action-link {
  grid-column: 1 / -1;
  width: max-content;
}

.link-board a {
  display: grid;
  gap: 6px;
  padding: 18px;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.link-board a:hover,
.feature-card:hover,
.start-board article:hover,
.trust-card:hover,
.scenario-card:hover,
.wide-card:hover,
.plan-card:hover,
.command-column:hover {
  border-color: rgba(23, 231, 255, 0.3);
  transform: translateY(-1px);
}

.link-board span {
  color: var(--muted);
}

.faq-layout {
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid rgba(234, 242, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.032), transparent 44%, rgba(255, 45, 154, 0.026)),
    rgba(255, 255, 255, 0.035);
  clip-path: var(--cut);
}

.faq-list summary {
  min-height: 58px;
  padding: 18px 20px;
  cursor: pointer;
  color: var(--text);
  font-weight: 900;
}

.faq-list summary::marker {
  color: var(--cyan);
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.65;
}

.comparison-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.comparison-board article {
  min-height: 320px;
  padding: 24px;
  border: 1px solid rgba(234, 242, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.036), transparent 44%, rgba(255, 45, 154, 0.03)),
    var(--surface);
  clip-path: var(--cut);
}

.comparison-board h3 {
  margin-bottom: 18px;
}

.status-grid,
.status-detail-grid {
  display: grid;
  gap: 14px;
}

.status-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.status-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.status-panel {
  position: relative;
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(234, 242, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.065), transparent 42%, rgba(255, 45, 154, 0.045)),
    var(--surface);
  box-shadow: var(--shadow-soft);
  clip-path: var(--cut);
}

.status-panel h2 {
  margin-top: 14px;
  font-size: 1.7rem;
}

.status-panel p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.status-dot {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--soft);
  box-shadow: 0 0 0 6px rgba(104, 120, 145, 0.12);
}

.status-dot.is-online {
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(21, 245, 209, 0.12), 0 0 24px rgba(21, 245, 209, 0.55);
}

.status-dot.is-offline {
  background: var(--danger);
  box-shadow: 0 0 0 6px rgba(255, 35, 90, 0.12), 0 0 24px rgba(255, 35, 90, 0.45);
}

.status-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  min-height: 96px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  background: rgba(255, 45, 154, 0.14);
  border: 1px solid rgba(255, 45, 154, 0.5);
  color: var(--pink);
  font-weight: 900;
}

.steps strong,
.steps span {
  grid-column: 2;
}

.troubleshoot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.troubleshoot-card {
  min-height: 250px;
  padding: 22px;
  border: 1px solid rgba(234, 242, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(255, 45, 154, 0.065), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow-soft);
  clip-path: var(--cut);
}

.bot-help-panel {
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  align-items: stretch;
}

.bot-help-panel .hero-actions {
  margin-top: 22px;
}

.help-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.help-panel-grid article {
  min-height: 190px;
  padding: 18px;
  border: 1px solid rgba(234, 242, 255, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.05), transparent 44%, rgba(255, 45, 154, 0.04)),
    rgba(255, 255, 255, 0.035);
  clip-path: var(--cut);
}

.help-panel-grid p {
  color: var(--muted);
  line-height: 1.62;
}

.troubleshoot-card h3 {
  margin: 20px 0 12px;
}

.troubleshoot-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.troubleshoot-card p + p {
  margin-top: 12px;
}

.support-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 34px;
  border: 1px solid rgba(23, 231, 255, 0.46);
  border-radius: var(--radius);
  color: var(--cyan);
  background: rgba(23, 231, 255, 0.08);
  font-weight: 900;
}

.english-note {
  font-size: 0.9rem;
}

.support-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 18px;
  padding: 24px;
  border: 1px solid rgba(23, 231, 255, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(110deg, rgba(23, 231, 255, 0.07), rgba(255, 45, 154, 0.07)),
    rgba(9, 13, 22, 0.9);
  clip-path: var(--cut);
}

.support-banner p:not(.eyebrow) {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.command-column {
  min-height: 0;
}

.command-column ul,
.check-list,
.compact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.command-column h2 {
  margin-bottom: 18px;
  font-size: 1.45rem;
}

.command-column li {
  display: grid;
  grid-template-columns: minmax(145px, auto) 1fr;
  gap: 12px;
  align-items: center;
  min-height: 44px;
}

.premium-outline,
.feature-outline,
.plan-card-premium {
  border-color: rgba(255, 45, 154, 0.52);
  background:
    linear-gradient(135deg, rgba(255, 45, 154, 0.12), rgba(23, 231, 255, 0.07)),
    var(--surface-strong);
}

code {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 9px;
  border-radius: var(--radius);
  color: var(--cyan);
  background: rgba(23, 231, 255, 0.08);
  border: 1px solid rgba(23, 231, 255, 0.18);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.88rem;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.check-list li {
  position: relative;
  padding-left: 24px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  content: "";
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(23, 231, 255, 0.32);
}

.final-cta {
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 45, 154, 0.06), transparent 52%), #05070c;
}

.final-cta p {
  max-width: 660px;
  margin: 18px auto 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 86px;
  padding: 24px max(22px, calc((100vw - 1180px) / 2));
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #05070c;
}

.site-footer span {
  color: var(--text);
  font-weight: 900;
}

.site-footer-identity {
  display: grid;
  gap: 7px;
}

.site-footer-identity > span {
  font-size: 1.04rem;
}

.creator-credit {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 10px;
  width: fit-content;
  color: var(--muted);
}

.creator-credit strong {
  color: var(--cyan);
  font-size: 0.94rem;
}

.creator-credit small {
  color: var(--text);
  font-weight: 750;
}

.site-footer-minimal {
  justify-content: center;
  text-align: center;
}

.site-footer-minimal .site-footer-identity {
  justify-items: center;
}

:root[data-theme="western"] .creator-credit strong {
  color: #efc578;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a:hover {
  color: var(--cyan);
}

.not-found {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 36px 18px;
  text-align: center;
}

.not-found img {
  width: 120px;
  border-radius: var(--radius);
}

.not-found h1 {
  font-size: 7rem;
}

.dashboard-shell {
  width: min(1520px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 80px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  padding: 22px 0 18px;
}

.dashboard-hero h1 {
  max-width: 760px;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  line-height: 1.04;
}

.dashboard-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
}

.dashboard-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(234, 242, 255, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.05), transparent),
    rgba(255, 255, 255, 0.045);
}

.dashboard-user img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.guide-hero {
  align-items: stretch;
}

.status-card {
  display: grid;
  align-content: center;
  gap: 10px;
  width: min(100%, 360px);
  min-height: 180px;
  padding: 22px;
  border: 1px solid rgba(255, 45, 154, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 45, 154, 0.16), rgba(23, 231, 255, 0.08)),
    rgba(10, 15, 25, 0.92);
  box-shadow: var(--shadow);
  clip-path: var(--cut);
}

.status-card strong {
  font-size: 1.3rem;
}

.status-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.status-pill {
  display: inline-flex;
  width: max-content;
  min-height: 32px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(23, 231, 255, 0.44);
  border-radius: var(--radius);
  color: var(--cyan);
  background: rgba(23, 231, 255, 0.08);
  font-weight: 900;
}

.dashboard-guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.guide-card {
  min-height: 100%;
}

.plain-steps {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}

.plain-steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 58px;
}

.plain-steps li::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 45, 154, 0.5);
  border-radius: var(--radius);
  color: var(--pink);
  background: rgba(255, 45, 154, 0.11);
  font-weight: 900;
}

.plain-steps strong,
.plain-steps span {
  grid-column: 2;
}

.plain-steps span {
  color: var(--muted);
  line-height: 1.55;
}

.copy-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.copy-list button {
  display: grid;
  grid-template-columns: minmax(140px, auto) 1fr;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 10px;
  color: var(--text);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.copy-list button:hover {
  border-color: rgba(23, 231, 255, 0.44);
}

.copy-list span {
  color: var(--muted);
}

.help-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: 18px;
}

.help-band p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.dashboard-workspace {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: 520px;
}

.dashboard-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.dashboard-panel {
  padding: 22px;
  border: 1px solid rgba(234, 242, 255, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.065), transparent 42%, rgba(255, 45, 154, 0.045)),
    linear-gradient(180deg, rgba(255, 45, 154, 0.045), transparent 38%),
    rgba(10, 15, 25, 0.88);
  box-shadow: var(--shadow-soft);
  clip-path: var(--cut);
}

.guild-panel {
  display: none;
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: visible;
}

.guild-panel.is-open {
  display: block;
}

.guild-drawer-backdrop {
  display: none;
}

.drawer-open {
  overflow: auto;
}

.guild-panel .panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.drawer-close {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--text);
  border: 1px solid rgba(234, 242, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 900;
}

.guild-list {
  max-height: min(430px, calc(100vh - 280px));
  overflow: auto;
  padding-right: 4px;
}

.guild-list::-webkit-scrollbar {
  width: 8px;
}

.guild-list::-webkit-scrollbar-thumb {
  background: rgba(23, 231, 255, 0.28);
  border-radius: var(--radius);
}

.dashboard-main {
  display: grid;
  gap: 18px;
}

.dashboard-control-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.68fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(234, 242, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.1), transparent 34%, rgba(255, 45, 154, 0.08)),
    radial-gradient(circle at top left, rgba(23, 231, 255, 0.14), transparent 32%),
    rgba(9, 13, 22, 0.92);
  box-shadow: var(--shadow-soft);
  clip-path: var(--cut);
}

.control-summary {
  display: grid;
  gap: 4px;
}

.control-summary h2 {
  font-size: clamp(1.35rem, 1.8vw, 2rem);
  line-height: 1;
}

.control-summary p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.control-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.western-dashboard-masthead {
  display: none;
}

.dashboard-plan-switch {
  display: inline-grid;
  grid-template-columns: minmax(108px, auto) minmax(276px, 1fr);
  align-items: center;
  gap: 10px;
  width: min(100%, 500px);
  min-height: 66px;
  padding: 8px;
  border: 1px solid rgba(234, 242, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.08), transparent 46%, rgba(255, 45, 154, 0.07)),
    rgba(5, 7, 12, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 12px 28px rgba(0, 0, 0, 0.2);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.dashboard-plan-switch-label {
  display: grid;
  gap: 2px;
  padding-left: 4px;
  line-height: 1.1;
}

.dashboard-plan-switch-label small {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 950;
  text-transform: uppercase;
}

.dashboard-plan-switch-label strong {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 950;
}

.dashboard-plan-buttons {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(128px, 1fr));
  gap: 7px;
}

.dashboard-plan-button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 7px 10px;
  color: var(--muted);
  text-align: left;
  border: 1px solid rgba(234, 242, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.dashboard-plan-button:not(:disabled):hover {
  color: var(--text);
  border-color: rgba(234, 242, 255, 0.28);
  transform: translateY(-1px);
}

.dashboard-plan-button-mark {
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(5, 7, 12, 0.62);
}

.dashboard-plan-button[data-dashboard-plan="premium"] .dashboard-plan-button-mark {
  border-radius: 0;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 94%, 50% 72%, 21% 94%, 32% 57%, 2% 35%, 39% 35%);
}

.dashboard-plan-button-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.dashboard-plan-button-copy strong,
.dashboard-plan-button-copy small {
  overflow-wrap: anywhere;
}

.dashboard-plan-button-copy strong {
  color: inherit;
  font-size: 0.83rem;
  font-weight: 950;
}

.dashboard-plan-button-copy small {
  color: inherit;
  font-size: 0.64rem;
  font-weight: 800;
  opacity: 0.76;
}

.dashboard-plan-button[data-dashboard-plan="free"].is-active {
  color: #041018;
  border-color: rgba(23, 231, 255, 0.42);
  background: linear-gradient(90deg, var(--cyan), var(--mint));
  box-shadow: 0 0 24px rgba(23, 231, 255, 0.22);
}

.dashboard-plan-button[data-dashboard-plan="premium"].is-active {
  color: #fff6fb;
  border-color: rgba(255, 125, 199, 0.54);
  background: linear-gradient(120deg, #9d4dff, #f1379b 56%, #ff8757);
  box-shadow: 0 0 24px rgba(255, 45, 154, 0.24);
}

.dashboard-plan-button.is-locked,
.dashboard-plan-button:disabled {
  color: rgba(234, 242, 255, 0.38);
  cursor: not-allowed;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 6px, transparent 6px 12px),
    rgba(255, 255, 255, 0.025);
}

.dashboard-primary-nav {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(234, 242, 255, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(105deg, rgba(23, 231, 255, 0.045), transparent 34%, rgba(255, 45, 154, 0.035)),
    rgba(4, 7, 13, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.dashboard-nav-item {
  display: grid;
  grid-template-columns: minmax(68px, 86px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 70px;
  padding: 10px 12px;
  color: var(--muted);
  text-align: left;
  border: 1px solid transparent;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.018);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.dashboard-nav-item:hover {
  color: var(--text);
  border-color: rgba(234, 242, 255, 0.14);
  background: rgba(234, 242, 255, 0.055);
}

.dashboard-nav-item.is-active {
  color: var(--text);
  border-color: rgba(23, 231, 255, 0.38);
  background:
    linear-gradient(90deg, rgba(23, 231, 255, 0.13), transparent 78%),
    rgba(9, 14, 23, 0.92);
  box-shadow: inset 3px 0 0 var(--cyan);
}

.dashboard-nav-kicker {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding-right: 11px;
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  border-right: 1px solid rgba(234, 242, 255, 0.09);
  opacity: 0.78;
}

.dashboard-nav-item.is-active .dashboard-nav-kicker {
  opacity: 1;
}

.dashboard-nav-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding-right: 10px;
}

.dashboard-nav-copy strong,
.dashboard-nav-copy small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-nav-copy strong {
  color: inherit;
  font-size: 0.98rem;
  line-height: 1.15;
}

.dashboard-nav-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.35;
}

.dashboard-nav-item.is-active .dashboard-nav-copy small {
  color: var(--text-soft);
}

@media (max-width: 1280px) {
  .dashboard-primary-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .dashboard-primary-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .dashboard-primary-nav {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .dashboard-nav-item {
    grid-template-columns: minmax(62px, 76px) minmax(0, 1fr);
    min-height: 62px;
    padding: 8px 9px;
  }

  .dashboard-nav-kicker {
    font-size: 0.66rem;
  }

  .dashboard-nav-copy strong {
    font-size: 0.92rem;
  }

  .dashboard-nav-copy small {
    font-size: 0.72rem;
  }
}

.dashboard-tab-stage {
  display: grid;
  gap: 18px;
}

.global-lookup-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(234, 242, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.055), transparent 48%, rgba(255, 45, 154, 0.045)),
    rgba(7, 11, 20, 0.42);
  clip-path: var(--cut);
}

.global-lookup-panel .panel-heading {
  margin-bottom: 0;
}

.global-lookup-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.global-lookup-panel > .muted {
  margin: 0;
}

.demo-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.demo-dashboard-grid article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(234, 242, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.06), transparent 52%),
    rgba(8, 12, 22, 0.5);
  clip-path: var(--cut);
}

.demo-dashboard-grid span {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.demo-dashboard-grid strong {
  display: block;
  line-height: 1.25;
}

.demo-dashboard-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.dashboard-tab-panel {
  display: grid;
  gap: 18px;
}

.dashboard-tab-panel[hidden] {
  display: none;
}

.dashboard-subnav {
  display: grid;
  gap: 10px;
  padding: 0 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.dashboard-subnav-heading {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(234, 242, 255, 0.09);
}

.dashboard-subnav-heading span {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-subtabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 7px;
}

.dashboard-subtab {
  display: grid;
  gap: 3px;
  min-height: 62px;
  padding: 10px 12px;
  color: var(--muted);
  text-align: left;
  border: 1px solid rgba(234, 242, 255, 0.1);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.dashboard-subtab:hover,
.dashboard-subtab.is-active {
  color: var(--text);
  border-color: rgba(23, 231, 255, 0.52);
  background: rgba(23, 231, 255, 0.08);
}

.dashboard-subtab strong {
  font-size: 0.86rem;
}

.dashboard-subtab small {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.3;
}

.dashboard-subtab.is-active small {
  color: var(--text-soft);
}

.dashboard-tab-panel [data-dashboard-subtab-target][hidden] {
  display: none !important;
}

.dashboard-subtab[hidden],
.dashboard-tab-panel > [hidden] {
  display: none !important;
}

.panel-heading {
  margin-bottom: 18px;
}

.panel-heading h2 {
  font-size: 1.55rem;
  line-height: 1.18;
}

.row-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.guild-list,
.form-grid {
  display: grid;
  gap: 12px;
}

.guild-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(205, 232, 255, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.07), transparent 48%),
    rgba(255, 255, 255, 0.042);
  clip-path: var(--cut);
}

.guild-card.is-active {
  border-color: rgba(23, 231, 255, 0.7);
}

.guild-card button {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 0;
  color: var(--text);
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.guild-card img,
.guild-fallback {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
}

.guild-fallback {
  display: grid;
  place-items: center;
  color: #05070c;
  font-weight: 900;
  background: var(--cyan);
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.config-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.config-status-card,
.home-block,
.server-preset-panel,
.server-preset-card,
.setup-step {
  border: 1px solid rgba(234, 242, 255, 0.11);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.045), transparent 48%),
    rgba(255, 255, 255, 0.04);
  clip-path: var(--cut);
}

.config-status-card {
  display: grid;
  gap: 7px;
  min-height: 100px;
  padding: 14px;
}

.config-status-card span,
.setup-step-heading p,
.setup-step-heading small,
.recent-action-list span {
  color: var(--muted);
}

.config-status-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.config-status-card small,
.setup-step-heading strong {
  width: max-content;
  padding: 4px 8px;
  color: #05070c;
  font-size: 0.72rem;
  font-weight: 950;
  background: var(--cyan);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}

.config-status-card.is-warning small,
.setup-step.is-pending .setup-step-heading strong {
  color: var(--text);
  background: rgba(255, 45, 154, 0.42);
}

.server-preset-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px;
}

.server-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.server-preset-card {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 190px;
  padding: 14px;
  text-align: left;
}

.server-preset-card.is-active {
  border-color: rgba(23, 231, 255, 0.56);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.12), transparent 48%, rgba(255, 45, 154, 0.08)),
    rgba(12, 18, 27, 0.72);
  box-shadow: 0 0 24px rgba(23, 231, 255, 0.08);
}

.server-preset-card span {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.server-preset-card strong {
  color: var(--text);
  font-size: 1.02rem;
}

.server-preset-card p {
  color: var(--muted);
  line-height: 1.45;
}

.server-preset-card .button {
  align-self: end;
  margin-top: auto;
}

.server-preset-advice {
  display: grid;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid rgba(23, 231, 255, 0.16);
  color: var(--muted);
  background: rgba(23, 231, 255, 0.055);
  clip-path: var(--cut);
}

.server-preset-advice strong {
  color: var(--text);
}

.server-preset-advice ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.dashboard-command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-command-bar h2 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.command-bar-status,
.home-block-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 28px;
  padding: 5px 9px;
  color: #05070c;
  font-size: 0.74rem;
  font-weight: 950;
  white-space: nowrap;
  background: var(--accent-gradient);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.status-badge.is-warning {
  color: var(--text);
  border: 1px solid rgba(255, 45, 154, 0.4);
  background: rgba(255, 45, 154, 0.18);
}

.status-badge.is-site,
.status-badge.is-discord {
  color: var(--cyan);
  border: 1px solid rgba(23, 231, 255, 0.26);
  background: rgba(23, 231, 255, 0.08);
}

.status-badge.is-discord {
  color: var(--violet);
  border-color: rgba(157, 108, 255, 0.34);
  background: rgba(157, 108, 255, 0.09);
}

.status-badge.is-syncing {
  color: var(--text);
  border: 1px solid rgba(23, 231, 255, 0.32);
  background: rgba(23, 231, 255, 0.11);
}

.pro-home-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
}

.home-block-config {
  grid-row: span 2;
}

.dashboard-path {
  display: grid;
  gap: 14px;
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid rgba(23, 231, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.08), transparent 42%, rgba(255, 45, 154, 0.06)),
    rgba(5, 7, 12, 0.36);
  clip-path: var(--cut);
}

.dashboard-path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-path-card {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 188px;
  padding: 13px;
  border: 1px solid rgba(234, 242, 255, 0.1);
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent),
    rgba(7, 10, 16, 0.55);
  clip-path: var(--cut);
}

.dashboard-path-card span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 26px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 950;
  border: 1px solid rgba(23, 231, 255, 0.28);
  background: rgba(23, 231, 255, 0.08);
  clip-path: var(--cut);
}

.dashboard-path-card strong {
  color: var(--text);
  font-size: 1rem;
}

.dashboard-path-card p {
  margin: 0;
  line-height: 1.45;
}

.dashboard-path-card .button {
  align-self: end;
  margin-top: auto;
}

.table-shell {
  width: 100%;
  overflow: auto;
  border: 1px solid rgba(234, 242, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(5, 7, 12, 0.28);
}

.dashboard-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.dashboard-table th,
.dashboard-table td {
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(234, 242, 255, 0.075);
}

.dashboard-table th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.035);
}

.dashboard-table tr:last-child td {
  border-bottom: 0;
}

.dashboard-table td {
  color: var(--text);
}

.dashboard-table td:nth-child(2),
.dashboard-table small {
  color: var(--muted);
}

.dashboard-table strong {
  display: block;
  margin-bottom: 4px;
}

.config-table {
  min-width: 520px;
}

.config-table td:nth-child(2) {
  color: var(--text);
  font-weight: 850;
}

.founder-premium-table {
  min-width: 1180px;
}

.founder-premium-table td:first-child {
  min-width: 210px;
}

.founder-premium-table .compact-list {
  margin: 0;
}

.creator-premium-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.creator-premium-form {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(234, 242, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.06), transparent 50%, rgba(255, 45, 154, 0.05)),
    rgba(5, 7, 12, 0.34);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.creator-premium-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  align-items: end;
}

.creator-premium-row .button {
  min-height: 42px;
}

.founder-premium-list li,
.founder-reason-list li {
  align-items: center;
  padding: 8px 0;
  border-color: rgba(234, 242, 255, 0.06);
}

.founder-premium-list li.is-warning {
  color: var(--warning);
}

.premium-row-server td:first-child strong {
  color: var(--mint);
}

.premium-row-partial td:first-child strong {
  color: var(--cyan);
}

.founder-premium-kpis {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.feature-flag-grid {
  display: grid;
  gap: 0.75rem;
}

.feature-flag-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(130px, 0.45fr) minmax(220px, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
  padding: 0.85rem;
  border: 1px solid var(--line);
  background: rgba(18, 23, 31, 0.42);
}

.feature-flag-row.is-disabled {
  border-color: rgba(255, 103, 125, 0.55);
}

.feature-flag-row > div {
  display: grid;
  gap: 0.25rem;
}

.feature-flag-row small,
.incident-row small {
  display: block;
}

.incident-row {
  align-items: start;
}

.incident-resolution {
  display: grid;
  gap: 0.5rem;
  min-width: min(100%, 260px);
}

.incident-context {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.incident-context span {
  display: grid;
  grid-template-columns: minmax(90px, 0.35fr) minmax(0, 1fr);
  gap: 0.5rem;
}

.incident-context code {
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .feature-flag-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .feature-flag-row {
    grid-template-columns: 1fr;
  }
}

.founder-guild-filter {
  display: grid;
  max-width: 520px;
  gap: 7px;
  margin: 14px 0;
}

.founder-guild-filter > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.founder-guild-table {
  min-width: 680px;
}

.founder-guild-table th:last-child,
.founder-guild-table td:last-child {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

.founder-guild-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.founder-guild-identity > img,
.founder-guild-fallback {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(23, 231, 255, 0.22);
  border-radius: var(--radius);
  object-fit: cover;
}

.founder-guild-fallback {
  display: inline-grid;
  place-items: center;
  color: var(--cyan);
  background: rgba(23, 231, 255, 0.08);
  font-weight: 900;
}

.founder-guild-identity > span:last-child {
  min-width: 0;
}

.founder-guild-empty {
  margin: 16px;
  text-align: center;
}

.founder-storage-panel {
  margin: 18px 0;
  padding: 18px 0;
  border-top: 1px solid rgba(234, 242, 255, 0.09);
  border-bottom: 1px solid rgba(234, 242, 255, 0.09);
}

.founder-storage-kpis {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.storage-capacity {
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(160px, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
  padding: 12px 0;
}

.storage-capacity > span {
  display: grid;
  gap: 3px;
}

.storage-capacity small {
  color: var(--muted);
}

.storage-capacity-track {
  height: 10px;
  overflow: hidden;
  border: 1px solid rgba(234, 242, 255, 0.14);
  background: rgba(5, 7, 12, 0.56);
}

.storage-capacity-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--mint), var(--cyan), var(--warning));
}

.maintenance-alerts {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-left: 3px solid var(--warning);
  background: rgba(255, 79, 184, 0.08);
}

.maintenance-alerts p {
  margin: 0;
  color: var(--text);
}

.maintenance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin: 20px 0;
}

.maintenance-section {
  min-width: 0;
  padding: 14px 0;
  border-top: 1px solid rgba(234, 242, 255, 0.1);
}

.maintenance-section h4,
.maintenance-history summary {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 900;
}

.storage-distribution {
  display: grid;
  gap: 8px;
}

.storage-distribution > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(234, 242, 255, 0.06);
}

.storage-distribution span {
  color: var(--muted);
}

.maintenance-toolbar,
.maintenance-file-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.maintenance-toolbar {
  margin: 14px 0;
}

.maintenance-history {
  margin-top: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(234, 242, 255, 0.1);
}

.maintenance-history summary {
  cursor: pointer;
}

.maintenance-file-list {
  display: grid;
  gap: 0;
  margin-top: 10px;
}

.maintenance-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(234, 242, 255, 0.07);
}

.maintenance-file-row > span:first-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.maintenance-file-row small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.maintenance-restore form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-top: 12px;
}

.maintenance-restore label {
  display: grid;
  gap: 6px;
}

.founder-console-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 4px;
  padding: 12px 14px;
  border: 1px solid rgba(234, 242, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(120, 242, 168, 0.07), transparent 52%, rgba(23, 231, 255, 0.05)),
    rgba(5, 7, 12, 0.32);
  clip-path: var(--cut);
}

.founder-console-note strong {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 950;
}

.founder-console-note span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.server-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  margin-top: 14px;
}

.today-grid,
.plan-scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.premium-view-panel {
  border-color: rgba(23, 231, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.055), transparent 46%, rgba(255, 45, 154, 0.045)),
    rgba(7, 10, 17, 0.9);
}

.premium-home-panel {
  display: grid;
  gap: 18px;
}

.premium-view-metrics {
  margin: 0;
}

.premium-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.premium-module-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  min-height: 188px;
  padding: 16px;
  border: 1px solid rgba(234, 242, 255, 0.11);
  background:
    linear-gradient(145deg, rgba(23, 231, 255, 0.06), transparent 48%, rgba(255, 45, 154, 0.055)),
    rgba(5, 7, 12, 0.44);
  clip-path: var(--cut);
}

.premium-module-card > span {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.premium-module-card > strong {
  font-size: 1rem;
}

.premium-module-card > p {
  margin: 0 0 4px;
  color: var(--muted);
  line-height: 1.5;
}

.premium-module-card > .button {
  align-self: end;
  justify-self: start;
  margin-top: auto;
}

.premium-config-summary {
  margin-bottom: 18px;
}

.premium-service-actions {
  margin-bottom: 18px;
}

.dashboard-tab-stage.is-plan-premium .dashboard-tab-panel {
  animation: premium-view-enter 180ms ease-out;
}

@keyframes premium-view-enter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.today-card,
.plan-scope-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(234, 242, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.06), transparent 48%),
    rgba(5, 7, 12, 0.36);
  clip-path: var(--cut);
}

.today-card.is-warning {
  border-color: rgba(255, 45, 154, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 45, 154, 0.08), transparent 48%),
    rgba(5, 7, 12, 0.44);
}

.today-card span,
.plan-scope-card span {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.today-card strong {
  overflow-wrap: anywhere;
  font-size: 1.28rem;
}

.today-card p,
.plan-scope-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.plan-scope-card.is-premium,
.plan-scope-card.is-planned {
  border-color: rgba(255, 45, 154, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 45, 154, 0.09), transparent 46%, rgba(23, 231, 255, 0.06)),
    rgba(5, 7, 12, 0.38);
}

.home-block {
  padding: 16px;
}

.config-hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.config-hub-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(234, 242, 255, 0.11);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.06), transparent 46%),
    rgba(255, 255, 255, 0.04);
  clip-path: var(--cut);
}

.config-hub-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.config-hub-card form {
  display: grid;
  gap: 12px;
}

.split-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.split-actions form {
  min-width: 0;
}

.split-actions .button {
  width: 100%;
}

.config-summary-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.config-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(234, 242, 255, 0.08);
  background: rgba(5, 7, 12, 0.28);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.config-summary-row dt {
  color: var(--muted);
}

.config-summary-row dd {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.config-summary-row.is-warning dd {
  color: var(--pink);
}

.home-block h3,
.setup-step h3 {
  margin-bottom: 8px;
}

.dashboard-alert {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.dashboard-alert strong {
  color: var(--text);
}

.dashboard-alert p,
.dashboard-alert ul {
  margin: 0;
  line-height: 1.55;
}

.dashboard-alert ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.premium-reveal-hint,
.premium-locked-hint,
.premium-only-block {
  padding: 14px;
  border: 1px solid rgba(234, 242, 255, 0.1);
  background: rgba(5, 7, 12, 0.34);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.premium-reveal-hint {
  border-color: rgba(57, 255, 181, 0.22);
  background:
    linear-gradient(135deg, rgba(57, 255, 181, 0.08), transparent 48%),
    rgba(5, 7, 12, 0.34);
}

.premium-locked-hint {
  border-color: rgba(255, 45, 154, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 45, 154, 0.08), transparent 48%),
    rgba(5, 7, 12, 0.34);
}

.premium-only-block {
  border-color: rgba(23, 231, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.075), transparent 52%, rgba(255, 45, 154, 0.055)),
    rgba(5, 7, 12, 0.34);
}

.resolution-assistant {
  align-content: start;
}

.resolution-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.resolution-heading > div {
  display: grid;
  gap: 6px;
}

.resolution-list {
  display: grid;
  gap: 10px;
}

.resolution-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(234, 242, 255, 0.11);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.08), transparent 46%, rgba(255, 45, 154, 0.05)),
    rgba(7, 10, 16, 0.46);
  clip-path: var(--cut);
}

.resolution-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.resolution-copy span {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.resolution-copy strong,
.resolution-copy p {
  overflow-wrap: anywhere;
}

.resolution-copy p {
  color: var(--muted);
  font-size: 0.92rem;
}

.resolution-more {
  color: var(--muted);
  font-weight: 850;
}

.recent-action-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recent-action-list li {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(234, 242, 255, 0.08);
}

.recent-action-list li:last-child {
  border-bottom: 0;
}

.recent-action-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.setup-progress {
  display: inline-grid;
  place-items: center;
  min-width: 56px;
  min-height: 42px;
  color: #05070c;
  font-weight: 950;
  background: var(--accent-gradient);
  clip-path: var(--cut);
}

.setup-steps {
  display: grid;
  gap: 12px;
}

.setup-step {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.setup-step.is-done {
  border-color: rgba(21, 245, 209, 0.35);
}

.setup-step-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.setup-step-heading p,
.setup-step-heading small {
  margin: 0;
  line-height: 1.45;
}

.setup-index {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--cyan);
  border: 1px solid rgba(23, 231, 255, 0.35);
  background: rgba(23, 231, 255, 0.08);
  font-weight: 950;
  clip-path: var(--cut);
}

.setup-step form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.setup-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  color: var(--muted);
}

.setup-footer p {
  margin: 0;
  line-height: 1.5;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid form,
.payroll-grid form,
.inline-form,
.split-mini article {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.035), transparent 46%),
    rgba(255, 255, 255, 0.04);
  clip-path: var(--cut);
}

.moderation-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.automod-card-wide {
  grid-column: 1 / -1;
}

.automod-settings-form,
.automod-add-word {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  clip-path: none;
}

.automod-toggle-grid,
.automod-control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.automod-security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}

.automod-security-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(234, 242, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(120, 242, 168, 0.055), transparent 52%),
    rgba(5, 7, 12, 0.3);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}

.automod-security-card span,
.automod-security-card small {
  color: var(--muted);
}

.automod-security-card strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 1rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automod-toggle,
.automod-control-grid > div {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(234, 242, 255, 0.08);
  background: rgba(5, 7, 12, 0.28);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}

.automod-toggle input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--cyan);
}

.automod-word-list,
.automod-event-list {
  display: grid;
  gap: 8px;
}

.automod-word-chip,
.form-grid .automod-word-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(234, 242, 255, 0.08);
  background: rgba(5, 7, 12, 0.3);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.automod-word-chip code {
  overflow-wrap: anywhere;
}

.automod-event-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(234, 242, 255, 0.08);
  background: rgba(5, 7, 12, 0.28);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.automod-event-list div,
.automod-event-list code,
.automod-event-list small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.automod-event-list span,
.automod-event-list small {
  color: var(--muted);
}

.diagnostics-panel,
.dossier-list-card {
  grid-column: 1 / -1;
}

.form-grid .table-action-form,
.table-action-form {
  display: inline-grid;
  padding: 0;
  border: 0;
  background: transparent;
  clip-path: none;
}

.dossier-table td:last-child {
  width: 260px;
}

.dossier-table-actions {
  display: inline-flex;
  grid-auto-flow: column;
  align-items: center;
  gap: 6px;
  margin: 2px 4px 2px 0;
}

.dossier-table-actions select {
  width: 120px;
  min-height: 34px;
  padding: 6px 8px;
  font-size: 0.82rem;
}

.premium-inline-note {
  align-self: center;
  border: 1px solid rgba(255, 47, 159, 0.42);
  background: rgba(255, 47, 159, 0.1);
  color: #ff8ed1;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  padding: 6px 8px;
  text-transform: uppercase;
}

.dossier-quota-alert {
  margin-bottom: 16px;
}

.dossier-premium-settings {
  grid-column: 1 / -1;
}

.dossier-type-roles,
.dossier-templates-panel,
.dossier-stats-panel {
  grid-column: 1 / -1;
}

.dossier-type-roles {
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  clip-path: none;
}

.dossier-access-heading {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--surface-strong) 84%, transparent);
}

.dossier-access-heading h3 {
  margin: 4px 0 8px;
  color: var(--text);
  font-size: 1.05rem;
}

.dossier-access-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dossier-access-rule {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 12px;
  border-left: 3px solid var(--line);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.dossier-access-rule.is-restricted {
  border-left-color: var(--cyan);
}

.dossier-access-rule-number {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 950;
}

.dossier-access-rule div {
  display: grid;
  gap: 4px;
}

.dossier-access-rule strong {
  color: var(--text);
  font-size: 0.86rem;
}

.dossier-access-rule p,
.dossier-access-constant,
.dossier-access-example {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.dossier-access-constant {
  padding: 0 2px;
}

.dossier-access-constant strong,
.dossier-access-example strong {
  color: var(--text);
}

.dossier-access-example {
  padding: 10px 12px;
  border: 1px dashed color-mix(in srgb, var(--cyan) 34%, var(--line));
  background: color-mix(in srgb, var(--cyan) 5%, transparent);
}

.dossier-access-badge {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  font-size: 0.72rem;
  font-weight: 900;
}

.dossier-access-badge.is-restricted {
  border-color: color-mix(in srgb, var(--cyan) 52%, var(--line));
  color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 10%, transparent);
}

.dossier-setting-block {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--surface-strong) 78%, transparent);
}

.dossier-access-card {
  grid-template-rows: auto auto minmax(48px, auto) auto auto;
  gap: 12px;
  min-width: 0;
  padding: 15px;
}

.dossier-access-card.is-restricted {
  border-color: color-mix(in srgb, var(--cyan) 36%, var(--line));
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--cyan) 72%, transparent);
}

.dossier-access-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dossier-access-card > header > strong {
  font-size: 1rem;
}

.dossier-access-summary {
  min-height: 42px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.dossier-access-role-list {
  align-content: start;
  min-height: 48px;
  margin: 0;
}

.dossier-general-access-note {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 9px 10px;
  border-left: 3px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.dossier-general-access-note strong {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.dossier-general-access-note span {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
}

.dossier-type-access-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.dossier-type-access-form select,
.dossier-type-access-form .button {
  width: 100%;
}

.dossier-access-footnote {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.dossier-setting-block form,
.dossier-sla-form,
.dossier-template-create,
.dossier-close-form,
.dossier-detail-actions {
  display: grid;
  gap: 9px;
}

.dossier-sla-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

.dossier-template-create {
  grid-template-columns: minmax(150px, 0.8fr) minmax(140px, 0.6fr) minmax(160px, 0.7fr) minmax(260px, 2fr) auto;
  align-items: end;
}

.dossier-template-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.dossier-template-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}

.dossier-template-list span {
  display: grid;
  gap: 2px;
}

.dossier-template-list small {
  color: var(--muted);
}

.dossier-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dossier-stat-grid > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-left: 3px solid var(--cyan);
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
}

.dossier-stat-grid span {
  color: var(--muted);
  font-size: 0.78rem;
}

.dossier-stat-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.dossier-stat-details > div {
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.dossier-stat-details ul {
  display: grid;
  gap: 7px;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}

.dossier-stat-details li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dossier-view-switch {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

.dossier-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(230px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.dossier-board-column {
  min-height: 250px;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.dossier-board-column > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
}

.dossier-board-column > header span {
  min-width: 24px;
  text-align: center;
  color: var(--bg);
  background: var(--cyan);
}

.dossier-board-column > div {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 8px;
}

.dossier-board-item {
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-left: 3px solid var(--cyan);
  background: var(--surface-strong);
}

.dossier-board-item-head,
.dossier-board-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dossier-board-item-head span,
.dossier-board-item-head strong,
.dossier-board-item p {
  font-size: 0.78rem;
}

.dossier-board-item h4,
.dossier-board-item p {
  margin: 0;
}

.dossier-board-item p {
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dossier-board-expanded {
  display: grid;
  gap: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.dossier-board-expanded p {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.dossier-detail-actions {
  margin-top: 14px;
}

.dossier-close-form {
  grid-template-columns: minmax(160px, 0.7fr) minmax(260px, 1.6fr) auto;
  align-items: end;
}

.dossier-archive-summary .button {
  width: fit-content;
  margin-top: 6px;
}

@media (max-width: 1180px) {
  .dossier-template-create,
  .dossier-close-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dossier-template-create textarea,
  .dossier-close-form textarea {
    grid-column: 1 / -1;
  }

  .dossier-board {
    grid-template-columns: repeat(5, minmax(260px, 1fr));
  }
}

@media (max-width: 720px) {
  .dossier-stat-grid,
  .dossier-stat-details,
  .dossier-template-create,
  .dossier-close-form {
    grid-template-columns: 1fr;
  }

  .dossier-template-create textarea,
  .dossier-close-form textarea {
    grid-column: auto;
  }

  .dossier-view-switch {
    justify-content: stretch;
  }

  .dossier-view-switch .button {
    flex: 1;
  }
}

.dossier-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
}

.dossier-access-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dossier-category-grid form {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(234, 242, 255, 0.08);
  background: rgba(7, 10, 16, 0.28);
  clip-path: var(--cut);
}

.dossier-category-grid strong {
  color: var(--text);
}

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

@media (max-width: 720px) {
  .dossier-access-grid,
  .dossier-access-rules {
    grid-template-columns: 1fr;
  }

  .dossier-access-card > header {
    align-items: flex-start;
    flex-direction: column;
  }
}

.panel-mini-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.panel-mini-heading h3 {
  margin: 4px 0 0;
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.diagnostic-check {
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 12px;
  border: 1px solid rgba(234, 242, 255, 0.1);
  background: rgba(7, 10, 16, 0.44);
  clip-path: var(--cut);
}

.diagnostic-check span,
.diagnostic-check small {
  color: var(--muted);
  line-height: 1.35;
}

.diagnostic-check strong {
  color: var(--mint);
  font-size: 1.08rem;
}

.diagnostic-check.is-warning strong {
  color: var(--pink);
}

.moderation-filters,
.inline-lookup-form {
  padding: 0;
  border: 0;
  background: transparent;
  clip-path: none;
}

.case-detail-row td {
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.055), transparent 52%, rgba(255, 45, 154, 0.04)),
    rgba(255, 255, 255, 0.025);
}

.case-detail-card {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.case-detail-card div {
  display: grid;
  gap: 4px;
}

.case-detail-card span,
.case-detail-card p {
  margin: 0;
  color: var(--muted);
}

.case-detail-wide {
  grid-column: 1 / -1;
}

.user-profile-card {
  display: grid;
  gap: 14px;
}

.user-profile-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.user-profile-head img,
.user-avatar-placeholder {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 1px solid rgba(23, 231, 255, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 45, 154, 0.4), transparent 45%),
    rgba(255, 255, 255, 0.06);
}

.user-profile-head h3,
.user-profile-head small {
  margin: 0;
}

.user-profile-stats,
.user-profile-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.user-profile-stats article,
.user-profile-columns > div {
  padding: 12px;
  border: 1px solid rgba(234, 242, 255, 0.09);
  background: rgba(7, 10, 16, 0.42);
  clip-path: var(--cut);
}

.user-profile-stats span,
.user-profile-stats small,
.user-profile-columns h4 {
  color: var(--muted);
}

.user-profile-wide {
  grid-column: span 2;
}

.profile-payroll-card {
  display: grid;
  gap: 8px;
}

.profile-payroll-card div {
  display: grid;
  gap: 3px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(234, 242, 255, 0.08);
}

.profile-payroll-card div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.profile-payroll-card span,
.profile-payroll-card small {
  color: var(--muted);
}

.profile-payroll-history {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.profile-payroll-history h5 {
  margin: 0;
}

.profile-payroll-history .compact-list strong {
  text-align: right;
}

.premium-roadmap {
  border-color: rgba(255, 45, 154, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 45, 154, 0.08), transparent 46%),
    rgba(255, 255, 255, 0.04);
}

.dashboard-panel label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 900;
}

.dashboard-panel h3 .field-help {
  vertical-align: middle;
}

.field-help {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 24px;
  flex: 0 0 auto;
  color: #eaf2ff;
  border: 1px solid rgba(234, 242, 255, 0.2);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(234, 242, 255, 0.07), transparent 48%, rgba(255, 45, 154, 0.055)),
    rgba(5, 7, 12, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
  cursor: help;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  isolation: isolate;
  transition: border-color 140ms ease, box-shadow 140ms ease, color 140ms ease, transform 140ms ease;
}

.field-help::marker {
  content: "";
}

.sentinel-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  width: min(280px, calc(100vw - 48px));
  padding: 10px 12px;
  color: var(--text);
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
  border: 1px solid rgba(23, 231, 255, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.16), transparent 44%, rgba(255, 45, 154, 0.14)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 46%),
    rgba(5, 7, 12, 0.98);
  box-shadow:
    0 0 0 1px rgba(255, 45, 154, 0.08),
    0 18px 42px rgba(0, 0, 0, 0.42),
    0 0 32px rgba(23, 231, 255, 0.1);
  clip-path: var(--cut);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

:root[data-theme="western"] .sentinel-tooltip {
  border-color: rgba(240, 190, 102, 0.3);
  background:
    linear-gradient(135deg, rgba(240, 190, 102, 0.14), transparent 44%, rgba(132, 177, 100, 0.1)),
    linear-gradient(180deg, rgba(255, 239, 197, 0.055), transparent 46%),
    rgba(12, 8, 5, 0.98);
  box-shadow:
    0 0 0 1px rgba(201, 106, 54, 0.08),
    0 18px 42px rgba(0, 0, 0, 0.46),
    0 0 30px rgba(240, 190, 102, 0.08);
}

.sentinel-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  z-index: -1;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(23, 231, 255, 0.28);
  border-left: 1px solid rgba(23, 231, 255, 0.28);
  background: rgba(5, 7, 12, 0.98);
  transform: translateX(-50%) rotate(45deg);
}

.sentinel-tooltip.is-above::before {
  top: auto;
  bottom: -5px;
  transform: translateX(-50%) rotate(225deg);
}

.sentinel-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.field-help:hover,
.field-help:focus-visible {
  color: #05070c;
  border-color: rgba(255, 45, 154, 0.75);
  background:
    linear-gradient(135deg, var(--cyan), var(--pink)),
    rgba(5, 7, 12, 0.94);
  box-shadow:
    0 0 0 1px rgba(255, 45, 154, 0.16),
    0 0 22px rgba(255, 45, 154, 0.28),
    0 0 32px rgba(23, 231, 255, 0.16);
  transform: translateY(-1px);
}

.dashboard-panel input,
.dashboard-panel select,
.dashboard-panel textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(5, 7, 12, 0.88);
  outline: none;
}

.dashboard-panel input:focus,
.dashboard-panel select:focus,
.dashboard-panel textarea:focus {
  border-color: rgba(23, 231, 255, 0.58);
  box-shadow: 0 0 0 3px rgba(23, 231, 255, 0.08);
}

:root[data-theme="western"] .dashboard-panel input,
:root[data-theme="western"] .dashboard-panel select,
:root[data-theme="western"] .dashboard-panel textarea {
  border-color: rgba(237, 199, 126, 0.18);
  background: rgba(12, 8, 5, 0.9);
}

:root[data-theme="western"] .dashboard-panel input:focus,
:root[data-theme="western"] .dashboard-panel select:focus,
:root[data-theme="western"] .dashboard-panel textarea:focus {
  border-color: rgba(240, 190, 102, 0.6);
  box-shadow: 0 0 0 3px rgba(240, 190, 102, 0.08);
}

.dashboard-panel textarea {
  min-height: 132px;
  padding: 12px;
  resize: vertical;
  line-height: 1.5;
  font: inherit;
}

.form-hint {
  margin: -2px 0 2px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.dashboard-panel .file-upload-control {
  position: relative;
  display: block;
  width: 100%;
  cursor: pointer;
  font-weight: inherit;
}

.file-upload-control input[type="file"] {
  position: absolute;
  inset: 0;
  width: 1px;
  min-height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.file-upload-visual {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 60px;
  padding: 10px 12px;
  color: var(--text);
  border: 1px solid rgba(23, 231, 255, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.1), rgba(255, 45, 154, 0.045)),
    rgba(5, 7, 12, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.file-upload-symbol {
  position: relative;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 1px solid rgba(23, 231, 255, 0.36);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.18), rgba(255, 45, 154, 0.12)),
    rgba(11, 15, 23, 0.92);
}

.file-upload-symbol img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 160ms ease;
}

.file-upload-symbol::before {
  position: absolute;
  left: 9px;
  top: 12px;
  width: 18px;
  height: 12px;
  content: "";
  border: 2px solid rgba(244, 248, 255, 0.84);
  border-radius: 4px;
}

.file-upload-symbol::after {
  position: absolute;
  left: 14px;
  top: 9px;
  width: 8px;
  height: 5px;
  content: "";
  border: 2px solid rgba(244, 248, 255, 0.84);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.file-upload-control.has-file .file-upload-symbol img {
  opacity: 1;
}

.file-upload-control.has-file .file-upload-symbol::before,
.file-upload-control.has-file .file-upload-symbol::after {
  opacity: 0;
}

.file-upload-text {
  min-width: 0;
}

.file-upload-text strong,
.file-upload-text small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-upload-text strong {
  font-size: 0.92rem;
  font-weight: 950;
}

.file-upload-text small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.file-upload-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  color: #05070c;
  border-radius: var(--radius);
  background: var(--accent-gradient);
  font-size: 0.82rem;
  font-weight: 950;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.file-upload-control:hover .file-upload-visual,
.file-upload-control:focus-within .file-upload-visual {
  border-color: rgba(23, 231, 255, 0.58);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.15), rgba(255, 45, 154, 0.075)),
    rgba(5, 7, 12, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 0 0 3px rgba(23, 231, 255, 0.08);
  transform: translateY(-1px);
}

.file-upload-control.has-file .file-upload-visual {
  border-color: rgba(21, 245, 209, 0.46);
  background:
    linear-gradient(135deg, rgba(21, 245, 209, 0.13), rgba(23, 231, 255, 0.065)),
    rgba(5, 7, 12, 0.9);
}

.file-upload-control.has-file .file-upload-symbol {
  border-color: rgba(21, 245, 209, 0.62);
}

.file-upload-control.has-file .file-upload-text small {
  color: var(--mint);
}

:root[data-theme="western"] .file-upload-visual {
  border-color: rgba(237, 199, 126, 0.24);
  background:
    linear-gradient(135deg, rgba(240, 190, 102, 0.13), rgba(132, 177, 100, 0.06)),
    rgba(12, 8, 5, 0.9);
}

:root[data-theme="western"] .file-upload-symbol {
  border-color: rgba(240, 190, 102, 0.38);
  background:
    linear-gradient(135deg, rgba(240, 190, 102, 0.16), rgba(132, 177, 100, 0.1)),
    rgba(18, 12, 7, 0.92);
}

:root[data-theme="western"] .file-upload-control:hover .file-upload-visual,
:root[data-theme="western"] .file-upload-control:focus-within .file-upload-visual {
  border-color: rgba(240, 190, 102, 0.62);
  background:
    linear-gradient(135deg, rgba(240, 190, 102, 0.18), rgba(132, 177, 100, 0.085)),
    rgba(12, 8, 5, 0.94);
  box-shadow:
    inset 0 0 0 1px rgba(255, 239, 202, 0.04),
    0 0 0 3px rgba(240, 190, 102, 0.08);
}

:root[data-theme="western"] .file-upload-control.has-file .file-upload-visual {
  border-color: rgba(132, 177, 100, 0.5);
  background:
    linear-gradient(135deg, rgba(132, 177, 100, 0.14), rgba(240, 190, 102, 0.07)),
    rgba(12, 8, 5, 0.92);
}

.embed-list code {
  overflow: hidden;
  max-width: 180px;
  text-overflow: ellipsis;
}

.role-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.role-chip,
.premium-badge,
.free-badge,
.premium-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: var(--radius);
  font-weight: 900;
}

.role-chip {
  background: rgba(23, 231, 255, 0.1);
}

.role-chip button {
  color: var(--pink);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.premium-badge {
  color: #05070c;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.free-badge {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.premium-tag {
  min-height: 26px;
  margin-left: 8px;
  padding: 4px 8px;
  color: var(--pink);
  font-size: 0.72rem;
  border: 1px solid rgba(255, 45, 154, 0.42);
  background: rgba(255, 45, 154, 0.09);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.inline-premium-panel {
  border-color: rgba(255, 45, 154, 0.22);
}

.audit-filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  clip-path: var(--cut);
}

.audit-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.audit-overview article {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(23, 231, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.08), transparent 54%),
    rgba(234, 242, 255, 0.035);
  clip-path: var(--cut);
}

.audit-overview span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.audit-overview strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 950;
}

.audit-field {
  display: grid;
  align-content: end;
  gap: 8px;
  min-width: 0;
}

.audit-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.audit-scope-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  color: var(--muted);
}

.audit-scope-note span {
  color: var(--cyan);
  font-weight: 900;
}

.audit-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.audit-item {
  padding: 14px;
  border: 1px solid rgba(234, 242, 255, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.045), transparent 46%),
    rgba(255, 255, 255, 0.035);
  clip-path: var(--cut);
}

.audit-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.audit-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.audit-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.audit-date {
  color: var(--muted);
  font-size: 0.82rem;
}

.audit-source,
.audit-status {
  display: inline-flex;
  width: max-content;
  padding: 4px 8px;
  font-size: 0.78rem;
  font-weight: 900;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}

.audit-source {
  color: var(--cyan);
  border: 1px solid rgba(23, 231, 255, 0.36);
  background: rgba(23, 231, 255, 0.08);
}

.audit-status {
  color: #05070c;
  background: var(--cyan);
}

.audit-failed {
  border-color: rgba(255, 45, 154, 0.3);
}

.audit-failed .audit-status {
  background: var(--pink);
}

.audit-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 2px 0 0;
}

.audit-detail-grid div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(234, 242, 255, 0.08);
  background: rgba(5, 7, 12, 0.28);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.audit-detail-grid dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.audit-detail-grid dd {
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--text);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-table {
  min-width: 1040px;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.audit-table tbody tr {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.audit-table tbody td {
  border-top: 1px solid rgba(234, 242, 255, 0.08);
  border-bottom: 1px solid rgba(234, 242, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.audit-table tbody td:first-child {
  border-left: 1px solid rgba(234, 242, 255, 0.08);
}

.audit-table tbody td:last-child {
  border-right: 1px solid rgba(234, 242, 255, 0.08);
}

.audit-table td:nth-child(2) {
  min-width: 220px;
}

.audit-table td:nth-child(3),
.audit-table td:nth-child(4),
.audit-table td:nth-child(5) {
  max-width: 210px;
}

.audit-table td span,
.audit-table td small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audit-table tr.audit-failed td {
  background: rgba(255, 45, 154, 0.035);
}

.moderation-cases-note {
  grid-column: 1 / -1;
}

.moderation-case-table {
  min-width: 760px;
}

.case-limit-note {
  margin-top: 10px;
}

.module-panel .panel-heading {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(234, 242, 255, 0.08);
}

.module-form-grid form,
.module-form-grid .inline-form {
  min-height: 100%;
}

.split-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.service-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.service-insight,
.service-roadmap article {
  padding: 16px;
  border: 1px solid rgba(234, 242, 255, 0.11);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.055), transparent 48%, rgba(255, 45, 154, 0.045)),
    rgba(255, 255, 255, 0.035);
  clip-path: var(--cut);
}

.service-insight-wide {
  grid-column: 1 / -1;
}

.service-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.service-card-heading .eyebrow {
  margin-bottom: 6px;
}

.service-card-heading > strong {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  min-height: 38px;
  color: #05070c;
  background: var(--accent-gradient);
  font-weight: 950;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}

.active-service-grid,
.personal-service-head,
.service-roadmap {
  display: grid;
  gap: 10px;
}

.active-service-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.active-service-grid article,
.personal-service-head div,
.service-empty {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(234, 242, 255, 0.08);
  background: rgba(5, 7, 12, 0.3);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}

.active-service-grid span,
.personal-service-head span,
.service-empty p,
.service-roadmap p {
  color: var(--muted);
}

.active-service-grid strong,
.service-chart .chart-user {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-service-grid small,
.personal-service-head small {
  color: var(--cyan);
  font-weight: 900;
}

.service-chart {
  display: grid;
  gap: 12px;
}

.service-chart-row {
  display: grid;
  grid-template-columns: 40px minmax(110px, 0.85fr) minmax(120px, 1.25fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.chart-rank {
  color: var(--cyan);
  font-weight: 950;
}

.chart-bar {
  position: relative;
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(23, 231, 255, 0.18);
  background: rgba(5, 7, 12, 0.72);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}

.chart-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--mint), var(--pink));
  box-shadow: 0 0 18px rgba(23, 231, 255, 0.22);
}

.service-chart-row strong {
  justify-self: end;
  white-space: nowrap;
}

.personal-service {
  display: grid;
  gap: 14px;
}

.payroll-panel {
  display: grid;
  gap: 16px;
}

.payroll-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1.45fr);
  gap: 14px;
}

.payroll-premium-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-record-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.compact-record-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(234, 242, 255, 0.08);
  background: rgba(5, 7, 12, 0.28);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.compact-record-list article > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.compact-record-list strong,
.compact-record-list small {
  overflow-wrap: anywhere;
}

.payroll-archive-form {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(234, 242, 255, 0.1);
  background: rgba(23, 231, 255, 0.04);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.payroll-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.payroll-summary div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(234, 242, 255, 0.08);
  background: rgba(5, 7, 12, 0.32);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}

.payroll-summary span,
.payroll-table small {
  color: var(--muted);
}

.payroll-summary strong {
  overflow-wrap: anywhere;
}

.payroll-table {
  min-width: 1080px;
}

.payroll-table .status-badge {
  margin-bottom: 6px;
}

.payroll-action-form .button-small {
  min-width: 132px;
}

.payroll-archive-form > div {
  display: grid;
  gap: 5px;
}

.payroll-archive-form small,
.payroll-history-context,
.payroll-event-list small {
  color: var(--muted);
}

.payroll-history {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(234, 242, 255, 0.1);
}

.payroll-history-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 0.35fr) auto auto;
  align-items: end;
  gap: 10px;
}

.payroll-history-filters label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.payroll-history-filters label > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.payroll-history-list {
  display: grid;
  border-top: 1px solid rgba(234, 242, 255, 0.1);
}

.payroll-history-more {
  justify-self: center;
}

.payroll-history-period {
  border-bottom: 1px solid rgba(234, 242, 255, 0.1);
}

.payroll-history-period summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, auto);
  align-items: center;
  gap: 16px;
  min-height: 82px;
  padding: 14px 4px;
  cursor: pointer;
  list-style: none;
}

.payroll-history-period summary::-webkit-details-marker {
  display: none;
}

.payroll-history-period summary::before {
  content: '›';
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: 18px;
  color: var(--cyan);
  font-size: 1.5rem;
  transform: translateX(-4px);
  transition: transform 160ms ease;
}

.payroll-history-period[open] summary::before {
  transform: translateX(-4px) rotate(90deg);
}

.payroll-history-period summary > span:first-of-type {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding-left: 24px;
}

.payroll-history-period summary small {
  color: var(--muted);
}

.payroll-history-period-totals {
  display: grid;
  grid-template-columns: minmax(100px, auto) minmax(80px, auto) minmax(130px, auto);
  align-items: center;
  justify-items: end;
  gap: 10px;
  text-align: right;
}

.payroll-history-period-body {
  display: grid;
  gap: 14px;
  padding: 4px 4px 20px 28px;
}

.payroll-history-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.payroll-history-meta div {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border-left: 2px solid rgba(23, 231, 255, 0.45);
  background: rgba(5, 7, 12, 0.28);
}

.payroll-history-meta span {
  color: var(--muted);
  font-size: 0.76rem;
}

.payroll-history-context {
  margin: 0;
  font-size: 0.82rem;
}

.payroll-event-log {
  display: grid;
  gap: 10px;
}

.payroll-event-log h4 {
  margin: 0;
}

.payroll-event-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.payroll-event-list li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(234, 242, 255, 0.07);
}

.payroll-event-list li:last-child {
  border-bottom: 0;
}

.payroll-event-list li > span:last-child {
  display: block;
  min-width: 0;
}

.payroll-event-list small {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.payroll-event-marker {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  background: var(--pink);
  box-shadow: 0 0 10px rgba(255, 59, 118, 0.35);
}

.payroll-event-marker.is-paid {
  background: var(--mint);
  box-shadow: 0 0 10px rgba(76, 231, 171, 0.35);
}

.personal-service-head {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.session-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.session-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(234, 242, 255, 0.08);
}

.session-list li:last-child {
  border-bottom: 0;
}

.session-list span {
  color: var(--muted);
}

.service-roadmap {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-roadmap article {
  min-height: 168px;
}

.service-roadmap article[aria-disabled="true"] {
  opacity: 0.72;
}

.service-roadmap .premium-tag {
  margin-left: 0;
}

.compact-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 28px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 231, 255, 0.05), transparent 42%, rgba(255, 45, 154, 0.05)),
    rgba(255, 255, 255, 0.04);
  clip-path: var(--cut);
}

.dashboard-loading-state {
  align-content: center;
  gap: 16px;
  min-height: 360px;
  border-color: rgba(23, 231, 255, 0.2);
  background:
    radial-gradient(circle at 50% 0, rgba(23, 231, 255, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(23, 231, 255, 0.08), transparent 42%, rgba(255, 45, 154, 0.06)),
    rgba(7, 10, 16, 0.74);
}

.dashboard-loading-server {
  display: inline-grid;
  grid-template-columns: 34px auto;
  gap: 10px;
  align-items: center;
  justify-self: center;
  max-width: 100%;
  padding: 8px 12px;
  color: var(--text);
  border: 1px solid rgba(234, 242, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  clip-path: var(--cut);
}

.dashboard-loading-server img,
.dashboard-loading-server .guild-fallback {
  width: 34px;
  height: 34px;
}

.dashboard-loading-server strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-loading-bar {
  position: relative;
  width: min(280px, 100%);
  height: 8px;
  overflow: hidden;
  border: 1px solid rgba(23, 231, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.dashboard-loading-bar span {
  position: absolute;
  inset: 1px auto 1px 1px;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  animation: dashboardLoading 950ms ease-in-out infinite alternate;
  box-shadow: 0 0 18px rgba(23, 231, 255, 0.32);
}

@keyframes dashboardLoading {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(135%);
  }
}

.empty-state img {
  width: 92px;
  margin-bottom: 16px;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100% - 36px));
}

.toast {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 15, 25, 0.95);
  box-shadow: var(--shadow);
  line-height: 1.45;
  white-space: pre-line;
}

.toast-success {
  border-color: rgba(21, 245, 209, 0.4);
}

.toast-error {
  border-color: rgba(255, 35, 90, 0.6);
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-preview {
    width: min(100%, 860px);
    margin: 0;
  }

  .hero-emblem {
    right: -220px;
    opacity: 0.09;
  }

  .feature-grid,
  .why-grid,
  .start-board,
  .trust-grid,
  .scenario-grid,
  .command-page-grid,
  .pricing-grid,
  .troubleshoot-grid,
  .comparison-board,
  .status-grid,
  .status-detail-grid,
  .split-layout,
  .wide-card,
  .bot-help-panel,
  .install-actions,
  .support-banner,
  .dashboard-guide-grid,
  .help-band,
  .dashboard-grid,
  .dashboard-hero,
  .audit-overview {
    grid-template-columns: 1fr;
  }

  .dashboard-control-panel {
    grid-template-columns: 1fr;
  }

  .control-status {
    justify-content: flex-start;
  }

  .dashboard-plan-switch {
    width: 100%;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .dashboard-plan-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .server-home-grid {
    grid-template-columns: 1fr;
  }

  .payroll-grid {
    grid-template-columns: 1fr;
  }

  .payroll-history-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payroll-history-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-roadmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .config-hub-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .automod-toggle-grid,
  .automod-control-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diagnostic-grid,
  .dossier-category-grid,
  .user-profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-detail-card,
  .user-profile-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .release-points {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .release-notice-inner {
    grid-template-columns: 1fr;
    gap: 6px;
    width: min(100% - 32px, 1500px);
    padding: 12px 0 14px;
  }

  .release-notice strong {
    font-size: 0.76rem;
  }

  .release-notice p {
    font-size: 0.84rem;
  }

  .site-header {
    min-height: 68px;
    padding: 12px 16px;
    grid-template-columns: 1fr;
  }

  .site-header.has-collapsed-nav {
    grid-template-columns: 1fr;
  }

  .site-header.has-collapsed-nav .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
  }

  .site-header.has-collapsed-nav .header-actions {
    grid-column: 1;
    grid-row: 2;
    justify-self: stretch;
    justify-content: center;
  }

  .site-header.has-collapsed-nav .nav-toggle {
    order: 10;
  }

  .brand {
    min-width: 0;
    order: 1;
  }

  .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-actions {
    order: 2;
    justify-self: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }

  .nav-links {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
    order: 3;
  }

  .site-header.is-nav-open .nav-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .header-actions .button {
    width: auto;
  }

  .button-small {
    min-width: 84px;
  }

  .language-switch {
    grid-template-columns: repeat(2, 34px);
  }

  .theme-toggle {
    flex: 0 0 auto;
    min-width: 166px;
    min-height: 38px;
    padding-inline: 13px;
    font-size: 0.78rem;
  }

  .theme-toggle::before {
    width: 11px;
    height: 11px;
  }

  .discord-profile-button {
    max-width: min(100%, 210px);
  }

  .header-actions .button-small {
    min-width: auto;
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .header-actions .theme-toggle {
    min-width: 166px;
    padding-inline: 13px;
    font-size: 0.78rem;
  }

  .header-actions .button.theme-toggle {
    min-width: 166px;
    padding-inline: 13px;
  }

  .guild-panel.is-open {
    max-height: min(560px, calc(100vh - 120px));
  }

  .guild-list {
    max-height: calc(100vh - 250px);
  }

  h1 {
    font-size: 3.15rem;
    line-height: 1;
  }

  .hero-home h1 {
    font-size: 2.85rem;
  }

  h2 {
    font-size: 2rem;
  }

  .page-hero h1,
  .dashboard-hero h1 {
    font-size: 2.35rem;
  }

  .hero,
  .page-hero,
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    min-height: auto;
    padding-top: 52px;
    gap: 28px;
  }

  .hero-copy,
  .page-hero p,
  .dashboard-hero p:not(.eyebrow) {
    font-size: 0.98rem;
  }

  .hero-metrics div,
  .dashboard-metrics article {
    min-height: 78px;
  }

  .hero-actions,
  .hero-actions.center {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .file-upload-visual {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .file-upload-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .dashboard-quick-actions .button,
  .dashboard-control-panel .button,
  .dashboard-user {
    width: 100%;
  }

  .global-lookup-form {
    grid-template-columns: 1fr;
  }

  .split-actions {
    grid-template-columns: 1fr;
  }

  .demo-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics,
  .start-board,
  .trust-grid,
  .scenario-grid,
  .dashboard-metrics,
  .dashboard-path-grid,
  .service-insights,
  .service-roadmap,
  .personal-service-head,
  .audit-filters,
  .audit-detail-grid,
  .automod-toggle-grid,
  .automod-control-grid,
  .automod-event-list article,
  .diagnostic-grid,
  .dossier-category-grid,
  .case-detail-card,
  .user-profile-stats,
  .user-profile-columns,
  .form-grid,
  .help-panel-grid,
  .split-mini,
  .setup-step form {
    grid-template-columns: 1fr;
  }

  .user-profile-wide {
    grid-column: auto;
  }

  .setup-step-heading {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .setup-step-heading strong {
    grid-column: 2;
  }

  .config-summary-row {
    grid-template-columns: 1fr;
  }

  .command-column li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .service-chart-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .chart-bar,
  .service-chart-row strong {
    grid-column: 2;
  }

  .service-chart-row strong {
    justify-self: start;
  }

  .feature-card,
  .command-column,
  .wide-card,
  .plan-card,
  .dashboard-control-panel,
  .dashboard-panel {
    padding: 18px;
  }

  .guild-panel {
    padding-top: 0;
    padding-bottom: 0;
  }

  .guild-panel.is-open {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .troubleshoot-card {
    min-height: 0;
  }

  .site-footer,
  .row-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .storage-capacity,
  .maintenance-grid,
  .maintenance-restore form {
    grid-template-columns: 1fr;
  }

  .maintenance-file-row {
    align-items: stretch;
    flex-direction: column;
  }

  .maintenance-file-actions .button,
  .maintenance-toolbar .button,
  .maintenance-restore .button {
    width: 100%;
  }

  .payroll-archive-form,
  .payroll-history-period summary {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .payroll-archive-form {
    flex-direction: column;
  }

  .payroll-archive-form .button {
    width: 100%;
  }

  .payroll-history-filters,
  .payroll-history-meta {
    grid-template-columns: 1fr;
  }

  .payroll-history-filters .button {
    width: 100%;
  }

  .payroll-history-period summary::before,
  .payroll-history-period summary > span:first-of-type,
  .payroll-history-period-totals {
    grid-column: 1;
  }

  .payroll-history-period summary::before,
  .payroll-history-period summary > span:first-of-type {
    grid-row: 1;
  }

  .payroll-history-period-totals {
    grid-row: 2;
    grid-template-columns: 1fr;
    justify-items: start;
    padding-left: 24px;
    text-align: left;
  }

  .payroll-history-period-body {
    padding-left: 4px;
  }

  .copy-list button {
    grid-template-columns: 1fr;
  }

  .audit-filters,
  .audit-item {
    grid-template-columns: 1fr;
  }

  .audit-scope-note,
  .audit-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-command-bar,
  .command-bar-status,
  .home-block-heading,
  .resolution-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .home-block-config {
    grid-row: auto;
  }

  .dashboard-table {
    min-width: 560px;
  }

  .audit-table,
  .dossier-table,
  .moderation-case-table,
  .payroll-table {
    min-width: 780px;
  }

  .audit-table {
    min-width: 980px;
  }

  .audit-actions .button {
    width: 100%;
  }

  .automod-word-chip {
    align-items: flex-start;
    flex-direction: column;
  }

  .start-board .action-link {
    width: auto;
  }

  .audit-side {
    justify-items: start;
    text-align: left;
  }
}

@media (min-width: 1500px) {
  .hero {
    min-height: 700px;
  }

  h1 {
    font-size: 5.1rem;
  }

  .hero-home h1 {
    font-size: 4.25rem;
  }
}

/* Western dashboard: territorial ledger, dark timber and aged brass. */
:root[data-theme="western"] .dashboard-body {
  --western-parchment: #eadfc4;
  --western-brass: #b8985f;
  --western-brass-light: #cfb37a;
  --western-sage: #7c8971;
  --western-sage-deep: #4f5d51;
  --western-leather: #83553b;
  --western-ink: #17130f;
  --western-display-font: Cambria, Constantia, Georgia, "Times New Roman", serif;
  --western-copy-font: Candara, "Trebuchet MS", "Segoe UI", sans-serif;
  font-family: var(--western-copy-font);
  background:
    radial-gradient(ellipse at 8% 4%, rgba(155, 107, 61, 0.13), transparent 34%),
    radial-gradient(ellipse at 92% 14%, rgba(86, 104, 82, 0.11), transparent 32%),
    linear-gradient(112deg, rgba(7, 13, 12, 0.16), transparent 34%, rgba(92, 55, 35, 0.08) 72%, transparent),
    linear-gradient(180deg, #0b0907, #17110c 46%, #090705);
}

:root[data-theme="western"] .dashboard-body h1,
:root[data-theme="western"] .dashboard-body h2,
:root[data-theme="western"] .dashboard-body h3,
:root[data-theme="western"] .dashboard-body h4,
:root[data-theme="western"] .dashboard-body .brand,
:root[data-theme="western"] .dashboard-body .dashboard-metrics strong,
:root[data-theme="western"] .dashboard-body .dashboard-nav-copy strong,
:root[data-theme="western"] .dashboard-body .dashboard-plan-switch-label strong,
:root[data-theme="western"] .dashboard-body .premium-badge,
:root[data-theme="western"] .dashboard-body .free-badge {
  font-family: var(--western-display-font);
  font-style: normal;
  letter-spacing: 0;
}

:root[data-theme="western"] .dashboard-body .nav-links,
:root[data-theme="western"] .dashboard-body .header-actions,
:root[data-theme="western"] .dashboard-body .button,
:root[data-theme="western"] .dashboard-body .language-switch,
:root[data-theme="western"] .dashboard-body .dashboard-user,
:root[data-theme="western"] .dashboard-body .dashboard-panel input,
:root[data-theme="western"] .dashboard-body .dashboard-panel select,
:root[data-theme="western"] .dashboard-body .dashboard-panel textarea,
:root[data-theme="western"] .dashboard-body .dashboard-table,
:root[data-theme="western"] .dashboard-body .toast {
  font-family: var(--western-copy-font);
}

:root[data-theme="western"] .dashboard-body .eyebrow,
:root[data-theme="western"] .dashboard-body .dashboard-nav-kicker,
:root[data-theme="western"] .dashboard-body .dashboard-nav-copy small,
:root[data-theme="western"] .dashboard-body .dashboard-plan-switch-label small,
:root[data-theme="western"] .dashboard-body .dashboard-plan-button-copy,
:root[data-theme="western"] .dashboard-body .western-dashboard-masthead-copy span,
:root[data-theme="western"] .dashboard-body .western-dashboard-masthead-copy small {
  font-family: var(--western-copy-font);
  letter-spacing: 0;
}

:root[data-theme="western"] .dashboard-body h1,
:root[data-theme="western"] .dashboard-body h2,
:root[data-theme="western"] .dashboard-body h3,
:root[data-theme="western"] .dashboard-body h4 {
  font-weight: 700;
}

:root[data-theme="western"] .dashboard-body::before {
  background:
    radial-gradient(ellipse at 50% -12%, rgba(235, 188, 111, 0.08), transparent 46%),
    radial-gradient(ellipse at 0 55%, rgba(80, 103, 80, 0.07), transparent 38%),
    linear-gradient(122deg, transparent 0 22%, rgba(234, 192, 119, 0.018) 42%, transparent 61%);
  opacity: 0.82;
}

:root[data-theme="western"] .dashboard-body .site-header {
  border-bottom: 3px double rgba(184, 152, 95, 0.42);
  background:
    linear-gradient(180deg, rgba(234, 213, 173, 0.055), transparent 56%),
    radial-gradient(ellipse at 45% 0, rgba(184, 152, 95, 0.06), transparent 44%),
    linear-gradient(90deg, #15100c, #261b13 48%, #120e0a);
}

:root[data-theme="western"] .dashboard-body .nav-links {
  border: 2px solid rgba(139, 105, 61, 0.76);
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(251, 221, 157, 0.08), transparent 52%),
    #171008;
  box-shadow: inset 0 0 0 1px rgba(240, 199, 124, 0.08);
}

:root[data-theme="western"] .dashboard-body .nav-links a,
:root[data-theme="western"] .dashboard-body .button {
  border-radius: 2px;
}

:root[data-theme="western"] .dashboard-body .nav-links a:hover,
:root[data-theme="western"] .dashboard-body .nav-links a[aria-current="page"] {
  color: var(--western-ink);
  background: linear-gradient(135deg, var(--western-brass-light), #9c7d4e);
}

:root[data-theme="western"] .dashboard-body .button {
  color: #1d160f;
  border: 1px solid rgba(207, 179, 122, 0.58);
  background:
    linear-gradient(180deg, rgba(245, 227, 190, 0.18), transparent 46%),
    linear-gradient(135deg, #bc945b, var(--western-leather));
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
  box-shadow:
    inset 0 0 0 1px rgba(255, 235, 187, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.3);
}

:root[data-theme="western"] .dashboard-body .button-ghost {
  color: var(--western-parchment);
  border-color: rgba(184, 152, 95, 0.42);
  background:
    linear-gradient(180deg, rgba(234, 215, 177, 0.045), transparent),
    rgba(24, 18, 13, 0.96);
}

:root[data-theme="western"] .dashboard-body .language-switch {
  border-color: rgba(184, 152, 95, 0.34);
  background:
    linear-gradient(135deg, rgba(184, 152, 95, 0.08), rgba(79, 93, 81, 0.055)),
    rgba(24, 18, 13, 0.94);
}

:root[data-theme="western"] .dashboard-body .language-switch button.is-active {
  color: var(--western-ink);
  background: linear-gradient(135deg, var(--western-brass-light), #9c7d4e);
}

:root[data-theme="western"] .dashboard-body .theme-toggle::before {
  background: radial-gradient(circle, #d5ba82 0 36%, #a27d49 38% 68%, #596557 70%);
  box-shadow: 0 0 0 2px rgba(184, 152, 95, 0.16), 0 0 10px rgba(184, 152, 95, 0.16);
}

:root[data-theme="western"] .dashboard-control-panel {
  overflow: hidden;
  gap: 18px;
  padding: 0 18px 18px;
  border: 3px double rgba(184, 152, 95, 0.52);
  border-radius: 4px;
  background:
    radial-gradient(circle at 85% 10%, rgba(86, 104, 82, 0.1), transparent 28%),
    linear-gradient(102deg, rgba(248, 216, 155, 0.025), transparent 36%, rgba(80, 103, 80, 0.035)),
    linear-gradient(135deg, rgba(48, 30, 16, 0.98), rgba(20, 14, 9, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(249, 220, 160, 0.06),
    0 20px 42px rgba(0, 0, 0, 0.38);
  clip-path: none;
}

:root[data-theme="western"] .western-dashboard-masthead {
  position: relative;
  isolation: isolate;
  grid-column: 1 / -1;
  display: grid;
  align-items: center;
  min-height: 182px;
  margin: 0 -18px 2px;
  padding: 24px 250px 24px 26px;
  overflow: hidden;
  border-bottom: 3px double rgba(184, 152, 95, 0.46);
  background:
    linear-gradient(90deg, rgba(8, 6, 4, 0.97) 0%, rgba(12, 9, 6, 0.89) 35%, rgba(11, 9, 6, 0.34) 72%, rgba(7, 6, 4, 0.68) 100%),
    linear-gradient(180deg, rgba(12, 9, 6, 0.08), rgba(8, 6, 4, 0.66)),
    url("assets/western-rp-office.png") center 56% / cover no-repeat,
    #120d08;
}

:root[data-theme="western"] .western-dashboard-masthead::before {
  position: absolute;
  inset: 11px;
  z-index: -1;
  content: "";
  border: 1px solid rgba(207, 179, 122, 0.26);
  box-shadow: inset 0 0 48px rgba(0, 0, 0, 0.34);
  pointer-events: none;
}

:root[data-theme="western"] .western-dashboard-masthead::after {
  position: absolute;
  right: 204px;
  bottom: 22px;
  width: 110px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--western-brass), var(--western-sage));
  box-shadow: 0 0 16px rgba(184, 152, 95, 0.2);
}

:root[data-theme="western"] .western-dashboard-masthead-copy {
  position: relative;
  z-index: 2;
  display: grid;
  width: max-content;
  max-width: 100%;
  gap: 4px;
  padding: 0 0 0 17px;
  border-left: 4px double rgba(184, 152, 95, 0.68);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

:root[data-theme="western"] .western-dashboard-masthead-copy span,
:root[data-theme="western"] .western-dashboard-masthead-copy small {
  color: var(--western-brass-light);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

:root[data-theme="western"] .western-dashboard-masthead-copy span {
  font-size: 0.72rem;
}

:root[data-theme="western"] .western-dashboard-masthead-copy strong {
  color: var(--western-parchment);
  font-family: var(--western-display-font);
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  font-variant-caps: small-caps;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

:root[data-theme="western"] .western-dashboard-masthead-copy small {
  color: #aab39f;
  font-size: 0.68rem;
}

:root[data-theme="western"] .western-dashboard-masthead img {
  position: absolute;
  right: 18px;
  bottom: -7px;
  z-index: 1;
  width: 238px;
  height: auto;
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.66));
  transform: rotate(2deg);
}

:root[data-theme="western"] .control-summary {
  padding-left: 14px;
  border-left: 3px double rgba(184, 152, 95, 0.44);
}

:root[data-theme="western"] .control-summary h2 {
  color: var(--western-parchment);
}

:root[data-theme="western"] .control-status {
  min-width: min(100%, 560px);
}

:root[data-theme="western"] .control-status .dashboard-plan-switch {
  order: -1;
  flex: 1 0 100%;
}

:root[data-theme="western"] .dashboard-plan-switch {
  grid-template-columns: minmax(118px, auto) minmax(286px, 1fr);
  width: 100%;
  min-height: 76px;
  padding: 9px;
  border: 2px solid rgba(184, 152, 95, 0.58);
  border-radius: 3px;
  background:
    radial-gradient(circle at 9px 9px, var(--western-brass) 0 2px, transparent 3px),
    radial-gradient(circle at calc(100% - 9px) 9px, var(--western-brass) 0 2px, transparent 3px),
    linear-gradient(180deg, rgba(245, 214, 154, 0.07), transparent 55%),
    #100c08;
  box-shadow:
    inset 0 0 0 1px rgba(247, 219, 162, 0.06),
    0 12px 28px rgba(0, 0, 0, 0.38);
  clip-path: none;
}

:root[data-theme="western"] .dashboard-plan-switch-label {
  padding-left: 7px;
}

:root[data-theme="western"] .dashboard-plan-switch-label small {
  color: var(--western-brass-light);
}

:root[data-theme="western"] .dashboard-plan-switch-label strong {
  color: var(--western-parchment);
  font-family: var(--western-display-font);
  font-size: 0.9rem;
  font-weight: 700;
}

:root[data-theme="western"] .dashboard-plan-button-copy strong {
  font-family: var(--western-display-font);
  font-weight: 700;
  letter-spacing: 0;
}

:root[data-theme="western"] .dashboard-plan-buttons {
  gap: 8px;
}

:root[data-theme="western"] .dashboard-plan-button {
  min-height: 56px;
  color: #c7b99b;
  border: 1px solid rgba(184, 152, 95, 0.3);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(248, 220, 164, 0.045), transparent 58%),
    rgba(33, 23, 14, 0.92);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}

:root[data-theme="western"] .dashboard-plan-button:not(:disabled):hover {
  border-color: rgba(207, 179, 122, 0.64);
  background:
    linear-gradient(135deg, rgba(212, 159, 80, 0.16), transparent 58%),
    #25180e;
}

:root[data-theme="western"] .dashboard-plan-button-mark {
  box-shadow: inset 0 0 0 4px rgba(25, 17, 10, 0.5);
}

:root[data-theme="western"] .dashboard-plan-button[data-dashboard-plan="free"].is-active {
  color: #f0eadb;
  border-color: #8e9b85;
  background:
    linear-gradient(180deg, rgba(225, 233, 215, 0.12), transparent 46%),
    linear-gradient(135deg, var(--western-sage), var(--western-sage-deep));
  box-shadow: 0 0 0 2px rgba(124, 137, 113, 0.1), 0 8px 22px rgba(34, 50, 42, 0.26);
}

:root[data-theme="western"] .dashboard-plan-button[data-dashboard-plan="premium"].is-active {
  color: var(--western-ink);
  border-color: var(--western-brass-light);
  background:
    linear-gradient(180deg, rgba(245, 231, 198, 0.24), transparent 44%),
    linear-gradient(135deg, var(--western-brass-light), #987249 68%, #73513a);
  box-shadow: 0 0 0 2px rgba(184, 152, 95, 0.11), 0 8px 24px rgba(83, 58, 37, 0.34);
}

:root[data-theme="western"] .dashboard-plan-button.is-locked,
:root[data-theme="western"] .dashboard-plan-button:disabled {
  color: #73644d;
  border-color: rgba(139, 104, 58, 0.2);
  background:
    repeating-linear-gradient(135deg, rgba(218, 174, 104, 0.025) 0 6px, transparent 6px 12px),
    #120e09;
}

:root[data-theme="western"] .dashboard-primary-nav {
  border-color: rgba(177, 128, 65, 0.42);
  border-radius: 3px;
  background:
    linear-gradient(100deg, rgba(83, 107, 89, 0.07), transparent 42%),
    rgba(12, 10, 7, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(245, 214, 154, 0.025),
    inset 0 0 28px rgba(0, 0, 0, 0.24);
}

:root[data-theme="western"] .dashboard-nav-item {
  border-radius: 2px;
  background: rgba(246, 216, 160, 0.018);
}

:root[data-theme="western"] .dashboard-nav-item:hover {
  border-color: rgba(194, 144, 76, 0.3);
  background: rgba(124, 137, 113, 0.075);
}

:root[data-theme="western"] .dashboard-nav-item.is-active {
  border-color: rgba(207, 179, 122, 0.54);
  background:
    linear-gradient(90deg, rgba(124, 137, 113, 0.18), transparent 82%),
    rgba(34, 24, 15, 0.88);
  box-shadow: inset 3px 0 0 var(--western-sage);
}

:root[data-theme="western"] .dashboard-nav-kicker {
  color: var(--western-brass-light);
  border-right-color: rgba(211, 158, 83, 0.2);
}

:root[data-theme="western"] .dashboard-nav-copy strong {
  font-family: var(--western-display-font);
  font-weight: 700;
}

:root[data-theme="western"] .dashboard-nav-copy small {
  color: #bfa985;
}

:root[data-theme="western"] .dashboard-subnav {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

:root[data-theme="western"] .dashboard-subnav-heading {
  border-color: rgba(211, 158, 83, 0.22);
}

:root[data-theme="western"] .dashboard-subnav-heading span {
  color: var(--western-brass-light);
}

:root[data-theme="western"] .dashboard-subtab {
  border-color: rgba(194, 144, 76, 0.22);
  border-radius: 2px;
  background: linear-gradient(135deg, rgba(48, 33, 20, 0.92), rgba(24, 17, 10, 0.94));
}

:root[data-theme="western"] .dashboard-subtab:hover,
:root[data-theme="western"] .dashboard-subtab.is-active {
  border-color: rgba(207, 179, 122, 0.62);
  background: linear-gradient(90deg, rgba(100, 123, 99, 0.16), transparent 70%), #2b1e12;
  box-shadow: inset 3px 0 0 var(--western-sage);
}

:root[data-theme="western"] .dashboard-subtab small {
  color: #bfa985;
}

:root[data-theme="western"] .dashboard-tab-stage .dashboard-panel,
:root[data-theme="western"] .guild-panel,
:root[data-theme="western"] .empty-state {
  border: 3px double rgba(139, 105, 61, 0.56);
  border-radius: 4px;
  background:
    radial-gradient(circle at 100% 0, rgba(91, 119, 91, 0.08), transparent 28%),
    linear-gradient(108deg, rgba(246, 214, 153, 0.02), transparent 42%, rgba(82, 105, 82, 0.025)),
    linear-gradient(135deg, rgba(39, 27, 16, 0.97), rgba(22, 16, 10, 0.97));
  box-shadow:
    inset 0 0 0 1px rgba(246, 214, 153, 0.045),
    0 16px 34px rgba(0, 0, 0, 0.3);
}

:root[data-theme="western"] .dashboard-tab-stage .dashboard-panel::after,
:root[data-theme="western"] .guild-panel::after,
:root[data-theme="western"] .empty-state::after {
  inset: 7px;
  border-color: rgba(228, 184, 108, 0.1);
  border-radius: 2px;
}

:root[data-theme="western"] .dashboard-tab-stage .panel-heading {
  padding-bottom: 13px;
  border-bottom: 3px double rgba(203, 151, 79, 0.22);
}

:root[data-theme="western"] .dashboard-table,
:root[data-theme="western"] .dashboard-alert,
:root[data-theme="western"] .server-preset-panel,
:root[data-theme="western"] .server-preset-card,
:root[data-theme="western"] .server-preset-advice,
:root[data-theme="western"] .dashboard-path,
:root[data-theme="western"] .dashboard-path-card,
:root[data-theme="western"] .global-lookup-panel,
:root[data-theme="western"] .today-card,
:root[data-theme="western"] .plan-scope-card,
:root[data-theme="western"] .demo-dashboard-grid article,
:root[data-theme="western"] .profile-payroll-card div,
:root[data-theme="western"] .resolution-item {
  border-radius: 3px;
}

:root[data-theme="western"] .dashboard-panel input,
:root[data-theme="western"] .dashboard-panel select,
:root[data-theme="western"] .dashboard-panel textarea {
  border: 1px solid rgba(154, 119, 70, 0.5);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(245, 215, 158, 0.025), transparent),
    rgba(10, 9, 7, 0.9);
}

@media (max-width: 1100px) {
  :root[data-theme="western"] .control-status {
    min-width: 0;
  }

  :root[data-theme="western"] .dashboard-plan-switch {
    grid-template-columns: 1fr;
  }

  :root[data-theme="western"] .western-dashboard-masthead {
    min-height: 168px;
  }
}

@media (max-width: 700px) {
  :root[data-theme="western"] .dashboard-control-panel {
    padding: 0 14px 14px;
  }

  :root[data-theme="western"] .western-dashboard-masthead {
    min-height: 172px;
    margin: 0 -14px 2px;
    padding: 22px 42% 22px 19px;
    background-position: 62% 56%;
  }

  :root[data-theme="western"] .western-dashboard-masthead::after {
    display: none;
  }

  :root[data-theme="western"] .western-dashboard-masthead-copy {
    width: 100%;
    padding-left: 11px;
  }

  :root[data-theme="western"] .western-dashboard-masthead-copy strong {
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  :root[data-theme="western"] .western-dashboard-masthead-copy small {
    line-height: 1.35;
  }

  :root[data-theme="western"] .western-dashboard-masthead img {
    right: -42px;
    bottom: 0;
    width: 205px;
    opacity: 0.82;
  }

  :root[data-theme="western"] .dashboard-plan-switch {
    min-height: 0;
    padding: 8px;
  }

  :root[data-theme="western"] .dashboard-plan-switch-label {
    padding: 2px 2px 4px;
  }

  :root[data-theme="western"] .dashboard-plan-button {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 6px;
    min-height: 58px;
    padding: 7px;
  }

  :root[data-theme="western"] .dashboard-plan-button-mark {
    width: 16px;
    height: 16px;
  }

  :root[data-theme="western"] .dashboard-plan-button-copy strong {
    font-size: 0.77rem;
  }

  :root[data-theme="western"] .dashboard-plan-button-copy small {
    font-size: 0.58rem;
  }
}

.updates-hero {
  min-height: 360px;
}

.updates-layout {
  display: grid;
  gap: 28px;
}

.updates-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.updates-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 0.48fr) minmax(140px, 0.32fr) auto;
  align-items: end;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.updates-control {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.updates-control input,
.updates-control select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(5, 7, 12, 0.88);
  outline: none;
}

.updates-control input:focus,
.updates-control select:focus {
  border-color: rgba(23, 231, 255, 0.58);
  box-shadow: 0 0 0 3px rgba(23, 231, 255, 0.08);
}

:root[data-theme="western"] .updates-control input,
:root[data-theme="western"] .updates-control select {
  border-color: rgba(237, 199, 126, 0.22);
  background: rgba(12, 8, 5, 0.9);
}

.updates-results {
  min-width: 120px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: right;
  white-space: nowrap;
}

.official-updates {
  border-top: 1px solid var(--line);
}

.official-update-entry {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 0.72fr);
  gap: 16px 34px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.official-update-entry.is-featured {
  box-shadow: inset 3px 0 0 var(--cyan);
  padding-left: 18px;
}

.official-update-entry.is-archived {
  padding-top: 22px;
  padding-bottom: 22px;
}

.official-update-entry.is-archived.is-open {
  padding-bottom: 28px;
}

.official-update-meta {
  display: grid;
  align-content: start;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.official-update-meta span {
  color: var(--cyan);
  font-weight: 800;
  text-transform: uppercase;
}

.official-update-meta strong {
  color: var(--text);
  font-size: 0.9rem;
}

.official-update-latest {
  width: fit-content;
  padding: 3px 7px;
  color: #05070c;
  background: var(--cyan);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.official-update-main {
  min-width: 0;
}

.official-update-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.official-update-entry h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
}

.official-update-entry.is-archived h2 {
  font-size: 1.25rem;
}

.official-update-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 8px;
}

.official-update-action {
  min-height: 34px;
  padding: 0 10px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
}

.official-update-action:hover,
.official-update-action:focus-visible {
  color: var(--cyan);
  border-color: rgba(23, 231, 255, 0.48);
  outline: none;
}

.official-update-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.official-update-categories li {
  padding: 3px 7px;
  color: var(--muted);
  border-left: 2px solid var(--cyan);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.official-update-body {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.official-update-entry.is-archived .official-update-body {
  margin-top: 14px;
}

.official-update-body[hidden] {
  display: none;
}

.official-update-body p {
  margin: 0 0 14px;
}

.official-update-body h3 {
  margin: 24px 0 8px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: 0;
}

.official-update-body h3:first-child {
  margin-top: 0;
}

.official-update-body ul {
  display: grid;
  gap: 5px;
  margin: 0 0 16px;
  padding-left: 22px;
}

.official-update-body li::marker {
  color: var(--cyan);
}

.official-update-body--sections {
  margin: 2px 0 0;
  line-height: 1.55;
}

.official-update-body--sections .official-update-lead {
  margin: 0;
  padding: 0 0 18px;
  color: var(--text);
  font-size: 1rem;
  border-bottom: 1px solid var(--line);
}

.official-update-section {
  padding: 16px 0 14px;
  border-bottom: 1px solid var(--line);
}

.official-update-section:last-child {
  border-bottom: 0;
}

.official-update-body--sections .official-update-section h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.08rem;
}

.official-update-section-list,
.official-update-sublist {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 22px;
}

.official-update-section-list > li::marker,
.official-update-sublist > li::marker {
  color: var(--cyan);
}

.official-update-sublist {
  gap: 4px;
  margin-top: 6px;
  color: var(--muted);
}

.official-update-section-list > li {
  padding-left: 3px;
}

.official-updates-empty {
  margin: 0;
  padding: 36px 0;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .updates-tools {
    grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(150px, 0.5fr));
  }

  .updates-results {
    grid-column: 1 / -1;
    margin: 0;
    text-align: left;
  }
}

@media (max-width: 700px) {
  .updates-heading {
    align-items: start;
    flex-direction: column;
  }

  .official-update-entry {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .official-update-entry.is-featured {
    padding-left: 14px;
  }

  .updates-tools {
    grid-template-columns: 1fr;
  }

  .updates-results {
    grid-column: 1;
  }

  .official-update-heading {
    display: grid;
  }

  .official-update-actions {
    justify-content: flex-start;
  }

  .official-update-body {
    margin-top: 14px;
  }
}

/* Personal register final layer: keep shared dashboard rules from flattening it. */
.member-body .dashboard-panel.member-guild-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
}

.member-body .dashboard-panel.member-guild-panel::before,
.member-body .dashboard-panel.member-guild-panel::after {
  display: none;
}

.member-body .member-metric span {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.member-body .member-metric strong {
  display: block;
  color: var(--text);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.member-body .member-metric small {
  color: var(--muted);
  font-size: 0.78rem;
}

.member-body .member-preference-toggle,
.member-body .member-digest-setting {
  display: grid !important;
}
/* Keyboard access and trust pages */
.skip-link {
  position: fixed;
  z-index: 10000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #071116;
  background: #54e8df;
  border: 2px solid currentColor;
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #50e6ff;
  outline-offset: 3px;
}

.trust-document {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.trust-document-nav {
  position: sticky;
  top: 92px;
  padding: 18px;
  border: 1px solid var(--border, rgba(255, 255, 255, .14));
  background: var(--panel, #171b24);
}

.trust-document-nav strong,
.trust-document-nav a {
  display: block;
}

.trust-document-nav a {
  padding: 7px 0;
  color: var(--muted, #aeb8cb);
}

.trust-document-body {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--border, rgba(255, 255, 255, .14));
  background: var(--panel, #171b24);
}

.trust-document-body section + section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--border, rgba(255, 255, 255, .12));
}

.trust-document-body h2 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.trust-document-body li,
.trust-document-body p {
  overflow-wrap: anywhere;
}

html[lang="fr"] .language-en,
html[lang="en"] .language-fr {
  display: none !important;
}

@media (max-width: 760px) {
  .trust-document {
    grid-template-columns: 1fr;
    width: min(100% - 20px, 1080px);
    gap: 14px;
  }

  .trust-document-nav {
    position: static;
  }

  .trust-document-body {
    padding: 20px 16px;
  }
}

/* Guided installation, team operations and member community */
.onboarding-verification {
  display: grid;
  gap: 14px;
  margin: 18px 0 22px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(6, 13, 20, 0.34);
}

.onboarding-progress-track {
  height: 7px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.onboarding-progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), #52e6bb);
}

.onboarding-checks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.onboarding-checks article {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
  padding: 10px;
  border-left: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.onboarding-checks article > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #061016;
  background: var(--cyan);
  font-weight: 900;
}

.onboarding-checks article.is-missing > span {
  color: var(--text);
  background: #9a6470;
}

.onboarding-checks strong,
.onboarding-checks small {
  display: block;
  overflow-wrap: anywhere;
}

.onboarding-checks small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.dashboard-panel.community-suite-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
}

.dashboard-panel.community-suite-panel::before,
.dashboard-panel.community-suite-panel::after {
  display: none;
}

.community-suite-panel > .panel-heading,
.community-section {
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(24, 28, 39, 0.82);
}

.community-section {
  display: grid;
  gap: 18px;
  margin-top: 12px;
}

.community-section-heading,
.community-record header,
.community-compact-record,
.member-community-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.community-section-heading span,
.member-community-heading span {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.community-section-heading h3,
.member-community-heading h3,
.community-record h4 {
  margin: 3px 0 0;
}

.community-two-column,
.member-community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.community-create-form,
.community-panel-editor,
.member-community-form {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(7, 12, 18, 0.38);
}

.community-shift-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.community-shift-form > button,
.community-wide-field {
  grid-column: 1 / -1;
}

.community-record-list,
.member-community-list {
  display: grid;
  gap: 10px;
}

.community-record,
.community-compact-record,
.member-community-item {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.community-record header strong,
.community-record header span,
.member-community-item > span,
.member-community-item > strong,
.member-community-item > small {
  display: block;
}

.community-record > p,
.member-community-item > p {
  color: var(--muted);
  line-height: 1.55;
}

.community-record details {
  margin: 10px 0;
}

.community-answer-list p {
  display: grid;
  gap: 3px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.community-answer-list span,
.community-compact-record small,
.community-record small,
.member-community-item small {
  color: var(--muted);
}

.community-response-strip,
.member-community-actions,
.inline-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.community-response-strip span {
  padding: 5px 8px;
  border-left: 2px solid var(--cyan);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.76rem;
  font-weight: 800;
}

.community-absence-strip {
  display: grid;
  gap: 7px;
  padding: 14px;
  border-left: 3px solid #9a7bd8;
  background: rgba(154, 123, 216, 0.08);
}

.community-analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.community-analytics-grid article {
  padding: 16px;
  border-top: 2px solid var(--cyan);
  background: rgba(4, 11, 17, 0.42);
}

.community-analytics-grid span,
.community-analytics-grid strong,
.community-analytics-grid small {
  display: block;
}

.community-analytics-grid strong {
  margin: 5px 0;
  font-size: 1.55rem;
}

.community-analytics-grid span,
.community-analytics-grid small {
  color: var(--muted);
}

.community-insight {
  padding: 16px;
  border: 1px solid var(--line);
}

.community-insight p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.community-help-search {
  max-width: 620px;
}

.community-help-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.community-help-grid article {
  padding: 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.community-help-grid span,
.community-help-grid strong {
  display: block;
}

.community-help-grid span {
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.community-help-grid p,
.community-empty {
  color: var(--muted);
  line-height: 1.5;
}

.panel-color-preview {
  width: 34px;
  height: 34px;
  border: 5px solid rgba(255, 255, 255, 0.08);
  background: var(--panel-preview-color, var(--cyan));
}

.community-button-labels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
}

.community-button-labels legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.discord-panel-preview {
  position: relative;
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  gap: 13px;
  overflow: hidden;
  padding: 14px;
  color: #d9dce7;
  border: 1px solid #30333d;
  background: #2b2d31;
}

.discord-panel-preview-accent {
  background: var(--panel-preview-color, var(--cyan));
}

.discord-panel-preview strong,
.discord-panel-preview p {
  display: block;
  margin: 0 0 8px;
}

.discord-panel-preview p {
  color: #b6bac4;
  font-size: 0.82rem;
  line-height: 1.45;
}

.discord-panel-preview img {
  display: block;
  width: min(100%, 460px);
  max-height: 180px;
  margin: 8px 0;
  object-fit: cover;
}

.discord-panel-preview img[hidden] {
  display: none;
}

.discord-panel-preview-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.discord-panel-preview-buttons span {
  padding: 6px 9px;
  color: #f2f3f5;
  border-radius: 3px;
  background: #4e5058;
  font-size: 0.72rem;
  font-weight: 700;
}

.member-community-suite {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.member-community-heading {
  margin-bottom: 14px;
}

.member-suggestions-card {
  grid-column: 1 / -1;
}

.member-community-item summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.member-community-item summary span strong,
.member-community-item summary span small {
  display: block;
}

.member-community-item summary small,
.member-community-item summary em {
  color: var(--muted);
}

.member-absence-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.member-absence-form h4,
.member-absence-form button {
  grid-column: 1 / -1;
}

@media (max-width: 1100px) {
  .onboarding-checks,
  .community-help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-shift-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .onboarding-checks,
  .community-two-column,
  .community-help-grid,
  .community-analytics-grid,
  .community-shift-form,
  .member-community-grid,
  .member-absence-form {
    grid-template-columns: 1fr;
  }

  .community-button-labels {
    grid-template-columns: 1fr;
  }

  .community-section,
  .community-suite-panel > .panel-heading {
    padding: 15px;
  }

  .community-section-heading,
  .community-record header,
  .community-compact-record,
  .member-community-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .community-wide-field,
  .community-shift-form > button,
  .member-suggestions-card,
  .member-absence-form h4,
  .member-absence-form button {
    grid-column: 1;
  }
}
