@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Cormorant+Garamond:wght@500;600&display=swap");

:root {
  --bg-app: #0b1220;
  --bg-shell: #111827;
  --bg-panel: #162033;
  --bg-elevated: #1b2740;
  --surface-1: #1e293b;
  --surface-2: #243044;
  --surface-3: #2b3a52;
  --border-muted: #334155;
  --accent-primary: #3ba4ff;
  --accent-primary-hover: #5ab4ff;
  --accent-primary-pressed: #2f88d6;
  --accent-loot: #d4a94d;
  --accent-loot-soft: #e2bc68;
  --success: #2fbf71;
  --warning: #e6a23c;
  --danger: #e25555;
  --info: #6d8dff;
  --text-main: #e5edf8;
  --text-soft: #9fb0c9;
  --focus: #7fc7ff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-elevated: 0 12px 28px rgba(2, 8, 23, 0.46);

  --brand-ivory: #f2ede1;
  --brand-muted-gold: #c9a86a;
  --brand-steel-blue: #3e4d6b;
  --brand-slate: #0f141d;
  --brand-deep-blue: #0a0f16;
  --brand-logo-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --brand-logo-product: "Cinzel", "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at top right, rgba(59, 164, 255, 0.18), transparent 42%),
    radial-gradient(circle at 20% 20%, rgba(212, 169, 77, 0.1), transparent 55%),
    var(--bg-app);
  color: var(--text-main);
  font-family: "Exo 2", "Segoe UI", "Trebuchet MS", sans-serif;
}

body {
  font-size: 14px;
  line-height: 1.45;
}

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

button,
select,
input {
  outline: none;
}

button:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

#app {
  min-height: 100vh;
}

.route-loading {
  max-width: 620px;
  margin: 24px auto;
}

.entry-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.entry-card {
  width: min(720px, 100%);
  background: linear-gradient(160deg, rgba(22, 32, 51, 0.94), rgba(17, 24, 39, 0.98));
  border: 1px solid rgba(91, 124, 164, 0.42);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  padding: 24px;
  display: grid;
  gap: 18px;
}

.entry-card-wide {
  width: min(1080px, 100%);
}

.entry-card h1,
.entry-card h2,
.entry-card h3 {
  margin: 0;
}

.entry-subtitle {
  color: var(--text-soft);
  margin: 0;
}

.entry-section-title {
  margin-top: 6px;
  color: var(--text-strong);
  font-size: 1rem;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-actions,
.entry-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.onboarding-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.onboarding-checklist,
.onboarding-step-panel {
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(107, 138, 175, 0.34);
  border-radius: var(--radius-md);
  padding: 16px;
}

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

.onboarding-focus-card,
.onboarding-shortcut-card {
  display: grid;
  gap: 10px;
}

.onboarding-focus-card {
  align-content: start;
}

.onboarding-focus-head,
.onboarding-shortcut-card {
  align-content: start;
}

.onboarding-focus-head {
  display: grid;
  gap: 6px;
}

.onboarding-focus-head p,
.onboarding-shortcut-card p {
  margin: 0;
  color: var(--text-soft);
}

.onboarding-shortcut-grid {
  display: grid;
  gap: 12px;
}

.onboarding-shortcut-grid>.inline-banner,
.onboarding-shortcut-grid>.panel {
  margin-top: 2px;
}

.context-selection-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.context-selection-section-head h2,
.context-selection-section-head p {
  margin: 0;
}

.context-selection-section-head p {
  color: var(--text-soft);
  max-width: 72ch;
}

.context-selection-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(102, 134, 171, 0.24);
  background: rgba(20, 30, 47, 0.46);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
}

.context-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.context-selection-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(102, 134, 171, 0.28);
  background: rgba(17, 24, 39, 0.7);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.context-selection-card:hover {
  transform: translateY(-1px);
  border-color: rgba(120, 162, 209, 0.34);
  box-shadow: 0 14px 28px rgba(8, 12, 20, 0.24);
}

.context-selection-card.tone-warning {
  border-color: rgba(231, 176, 76, 0.36);
  background: linear-gradient(180deg, rgba(43, 33, 17, 0.88), rgba(24, 21, 18, 0.9));
}

.context-selection-card.tone-info {
  border-color: rgba(71, 151, 255, 0.32);
}

.context-selection-card-head {
  display: grid;
  gap: 12px;
}

.context-selection-card-copy {
  display: grid;
  gap: 6px;
}

.context-selection-card-copy h3,
.context-selection-card-copy p {
  margin: 0;
}

.context-selection-card-copy p {
  color: var(--text-soft);
}

.context-selection-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.context-selection-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(102, 134, 171, 0.24);
  background: rgba(23, 34, 52, 0.72);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
}

.context-selection-pill.tone-info {
  border-color: rgba(71, 151, 255, 0.28);
  color: #cfe4ff;
}

.context-selection-pill.tone-success {
  border-color: rgba(74, 174, 108, 0.3);
  color: #d7f6df;
}

.context-selection-pill.tone-warning {
  border-color: rgba(231, 176, 76, 0.32);
  color: #ffe2ad;
}

.context-selection-meta {
  display: grid;
  gap: 10px;
  margin: 0;
}

.context-selection-meta div {
  display: grid;
  gap: 4px;
}

.context-selection-meta dt {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.context-selection-meta dd {
  margin: 0;
  color: var(--text-strong);
  font-weight: 600;
}

.context-selection-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.onboarding-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.onboarding-summary-strip .action-panel {
  height: 100%;
  border-color: rgba(102, 134, 171, 0.22);
  background: linear-gradient(180deg, rgba(18, 27, 42, 0.78), rgba(15, 22, 35, 0.88));
}

.onboarding-shortcut-card {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(98, 128, 165, 0.28);
  background: rgba(18, 27, 42, 0.72);
}

.onboarding-shortcut-card strong {
  font-size: 15px;
}

.onboarding-shortcut-card.tone-warning {
  border-color: rgba(237, 180, 63, 0.42);
  background: rgba(64, 49, 20, 0.28);
}

.onboarding-shortcut-actions {
  margin-top: 2px;
}

.onboarding-checklist h2 {
  margin-top: 0;
}

.shell-app,
.shell-ops {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.app-topbar,
.ops-topbar {
  display: grid;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(109, 141, 255, 0.25);
  padding: 12px 16px;
  backdrop-filter: blur(10px);
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  grid-template-columns: minmax(280px, 330px) minmax(260px, 360px) minmax(0, 1fr);
  background: linear-gradient(90deg, rgba(10, 18, 32, 0.98), rgba(17, 24, 39, 0.94));
}

.ops-topbar {
  grid-template-columns: 100px minmax(220px, 1fr) auto;
  background: linear-gradient(90deg, rgba(6, 10, 18, 0.97), rgba(16, 22, 33, 0.95));
}

.topbar-brand,
.ops-topbar-brand {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar-brand {
  color: var(--accent-loot);
}

.ops-topbar-brand {
  color: var(--accent-primary);
}

.topbar-brand-stack,
.ops-topbar-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.topbar-brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: none;
}

.topbar-brand-stack {
  min-width: 0;
  max-width: none;
}

.topbar-route-hint,
.ops-topbar-copy span,
.ops-topbar-copy small {
  color: var(--text-soft);
  font-size: 12px;
}

.topbar-route-hint {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ops-topbar-copy strong {
  font-size: 15px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  line-height: 1;
  text-decoration: none;
  user-select: none;
  flex: 0 0 auto;
}

.brand-logo__image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

.brand-logo--app .brand-logo__image {
  width: 240px;
}

.brand-logo--landing .brand-logo__image {
  width: 250px;
}

.brand-logo--product-preview .brand-logo__image {
  width: 180px;
}

.brand-logo--hero .brand-logo__image {
  width: min(100%, 720px);
}

.topbar-grace {
  color: var(--warning);
  font-weight: 600;
}

.topbar-actions,
.ops-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.topbar-actions {
  min-width: 0;
}

.topbar-switchers {
  position: relative;
  display: grid;
  min-width: 0;
  justify-self: start;
  width: min(360px, 100%);
}

.topbar-context-trigger {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(82, 109, 143, 0.34);
  background: linear-gradient(180deg, rgba(19, 28, 43, 0.92), rgba(16, 24, 38, 0.96));
  color: var(--text-main);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  text-align: left;
}

.topbar-context-trigger:hover {
  border-color: rgba(104, 153, 210, 0.48);
  background: linear-gradient(180deg, rgba(21, 31, 49, 0.98), rgba(17, 27, 42, 0.98));
}

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

.topbar-context-values {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.topbar-context-values strong {
  font-size: 15px;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-context-values span,
.topbar-context-meta {
  color: var(--text-soft);
}

.topbar-context-values span {
  font-size: 12px;
}

.topbar-context-meta {
  font-size: 11px;
}

.topbar-context-chevron {
  color: var(--text-soft);
  font-size: 14px;
}


.topbar-context-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(380px, calc(100vw - 32px));
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(82, 109, 143, 0.34);
  background: linear-gradient(180deg, rgba(15, 23, 37, 0.98), rgba(12, 18, 29, 0.98));
  box-shadow: var(--shadow-elevated);
  z-index: 55;
}

.topbar-context-dropdown.hidden {
  display: none;
}

.topbar-context-dialog {
  display: grid;
  gap: 14px;
}

.topbar-context-actions {
  display: flex;
  align-items: center;
}

.topbar-context-actions .btn {
  width: 100%;
}

.topbar-context-field {
  display: grid;
  gap: 8px;
}

.topbar-clan-selector {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.topbar-switcher-card {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(82, 109, 143, 0.3);
  background: linear-gradient(180deg, rgba(19, 28, 43, 0.9), rgba(16, 24, 38, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.clan-selector-stack {
  display: grid;
  min-width: 0;
}

.clan-selector-select {
  min-width: 0;
}

.topbar-label {
  color: var(--text-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.topbar-attention-wrap {
  position: relative;
}

.topbar-attention-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, calc(100vw - 32px));
  margin-top: 0;
  z-index: 60;
}

.app-body,
.ops-body {
  display: grid;
  min-height: 0;
}

.app-body {
  grid-template-columns: 270px minmax(0, 1fr);
}

.ops-body {
  grid-template-columns: 250px minmax(0, 1fr);
}

.app-sidebar,
.ops-sidebar {
  border-right: 1px solid rgba(109, 141, 255, 0.2);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.94), rgba(13, 19, 31, 0.95));
  overflow-y: auto;
  padding: 18px 14px;
}

.ops-sidebar {
  background: linear-gradient(180deg, rgba(10, 14, 22, 0.96), rgba(8, 12, 19, 0.98));
}

.sidebar-group {
  margin-bottom: 14px;
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(79, 103, 134, 0.14);
  background: rgba(15, 22, 35, 0.38);
}

.sidebar-group.open {
  border-color: rgba(99, 133, 176, 0.24);
  background: rgba(18, 27, 42, 0.62);
}

.sidebar-group-title,
.ops-sidebar-title {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.sidebar-nav {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.sidebar-link {
  display: block;
  color: #b7c5db;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 120ms ease;
}

.sidebar-link:hover {
  border-color: rgba(91, 124, 164, 0.5);
  background: rgba(32, 46, 69, 0.7);
}

.sidebar-link.active {
  background: rgba(59, 164, 255, 0.24);
  border-color: rgba(90, 180, 255, 0.65);
  color: #e9f3ff;
}

.app-main,
.ops-main {
  overflow-y: auto;
  padding: 18px;
}

.app-main {
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.85), rgba(16, 22, 34, 0.92));
}

.ops-main {
  background: linear-gradient(180deg, rgba(8, 14, 24, 0.92), rgba(12, 17, 27, 0.97));
}

.page-grid {
  display: grid;
  gap: 14px;
}

.page-grid>* {
  min-width: 0;
}

.page-grid.with-drawer {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
}

.imports-workspace>* {
  min-width: 0;
}

.panel-grid.two-up.imports-plan-board {
  grid-template-columns: minmax(320px, 420px) minmax(980px, 1fr);
  align-items: start;
}

.panel-grid.two-up.imports-plan-board>* {
  min-width: 0;
}

.page-header {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(82, 109, 143, 0.32);
  background: rgba(25, 35, 53, 0.8);
}

.page-header>* {
  min-width: 0;
}

.page-header-copy {
  min-width: 0;
}

.page-header h1 {
  margin: 0;
  font-size: 22px;
}

.page-header p {
  margin: 4px 0 0;
  color: var(--text-soft);
}

.page-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.panel {
  background: rgba(23, 33, 51, 0.78);
  border: 1px solid rgba(82, 109, 143, 0.3);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.panel h3,
.panel h4 {
  margin-top: 0;
}

.panel-subsection {
  margin-top: 12px;
  border-top: 1px solid rgba(94, 126, 162, 0.25);
  padding-top: 12px;
}

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

.kpi-card {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(107, 139, 178, 0.3);
  border-radius: var(--radius-md);
  background: linear-gradient(170deg, rgba(35, 50, 74, 0.9), rgba(24, 35, 55, 0.85));
  padding: 12px;
}

.kpi-label {
  color: var(--text-soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.kpi-value {
  font-size: 26px;
  line-height: 1;
}

.kpi-meta {
  color: var(--text-soft);
  font-size: 12px;
}

.kpi-card.tone-loot .kpi-value {
  color: var(--accent-loot-soft);
}

.kpi-card.tone-success .kpi-value {
  color: var(--success);
}

.kpi-card.tone-warning .kpi-value {
  color: var(--warning);
}

.kpi-card.tone-danger .kpi-value {
  color: var(--danger);
}

.dashboard-panels {
  display: grid;
  gap: 12px;
  grid-template-columns: 2fr 1fr;
}

.attendance-widget,
.attendance-days {
  display: grid;
  gap: 10px;
}

.attendance-days {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.attendance-day {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(90, 115, 145, 0.34);
  padding: 8px;
  font-size: 12px;
  color: var(--text-soft);
  background: rgba(26, 39, 59, 0.82);
}

.attendance-day.status-present {
  border-color: rgba(47, 191, 113, 0.55);
  color: #a6efc6;
}

.attendance-day.status-absent {
  border-color: rgba(226, 85, 85, 0.55);
  color: #f2b2b2;
}

.attendance-day.status-pending {
  border-color: rgba(230, 162, 60, 0.55);
  color: #f7d4a2;
}

.catalog-toolbar {
  display: grid;
  gap: 8px;
}

.catalog-item-cell {
  display: grid;
  gap: 4px;
}

.catalog-item-cell strong {
  line-height: 1.35;
}

.catalog-item-meta {
  color: var(--text-soft);
  font-size: 12px;
}

.catalog-search {
  display: grid;
  gap: 6px;
  max-width: 560px;
}

.catalog-search-meta {
  color: var(--text-soft);
  font-size: 12px;
}

.disclosure-card {
  border: 1px solid rgba(86, 112, 145, 0.28);
  border-radius: var(--radius-md);
  background: rgba(18, 29, 45, 0.76);
  overflow: hidden;
}

.disclosure-card+.disclosure-card {
  margin-top: 12px;
}

.disclosure-card-toggle {
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
}

.disclosure-card-copy {
  display: grid;
  gap: 4px;
  text-align: left;
}

.disclosure-card-title {
  font-size: 15px;
}

.disclosure-card-description,
.disclosure-card-summary {
  color: var(--text-soft);
}

.disclosure-card-indicator {
  color: #d6e4ff;
  font-size: 12px;
  border: 1px solid rgba(90, 116, 148, 0.34);
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}

.disclosure-card-body {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.disclosure-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.disclosure-card.tone-info {
  border-color: rgba(59, 164, 255, 0.3);
}

.disclosure-card.tone-warning {
  border-color: rgba(230, 162, 60, 0.34);
}

.disclosure-card.tone-success {
  border-color: rgba(47, 191, 113, 0.3);
}

.quick-stack {
  display: grid;
  gap: 12px;
}

.sidebar-group-head,
.sidebar-subgroup-head {
  display: block;
}

.sidebar-disclosure {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(90, 116, 148, 0.24);
  background: rgba(22, 31, 47, 0.88);
  color: #e9f3ff;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.sidebar-disclosure:hover {
  border-color: rgba(108, 143, 190, 0.52);
  background: rgba(29, 41, 63, 0.96);
}

.sidebar-disclosure.open {
  border-color: rgba(90, 180, 255, 0.4);
  background: rgba(28, 43, 67, 0.96);
}

.sidebar-disclosure.compact {
  padding: 8px 10px;
  background: rgba(17, 24, 38, 0.74);
}

.sidebar-disclosure.secondary {
  border-style: dashed;
}

.sidebar-disclosure-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.sidebar-disclosure-title {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-chevron {
  color: var(--accent-primary-soft);
  font-size: 14px;
  line-height: 1;
}

.sidebar-subgroup {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(90, 116, 148, 0.26);
}

.sidebar-summary {
  color: var(--text-soft);
  font-size: 11px;
}

.table-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.imports-manual-actions {
  justify-content: flex-start;
  min-width: max-content;
  flex-wrap: nowrap;
  gap: 6px;
}

.imports-manual-quantity-cell {
  display: grid;
  gap: 2px;
}

.imports-manual-quantity-input {
  min-width: 84px;
  max-width: 96px;
}

.imports-manual-quantity-input .input {
  width: 100%;
  padding: 5px 8px;
}

.imports-manual-actions .btn {
  width: auto;
  white-space: nowrap;
  padding: 5px 10px;
  font-size: 12px;
}

.imports-manual-table .operational-table {
  min-width: 820px;
}

.imports-plan-command-bar,
.imports-plan-command-section,
.imports-plan-workbench,
.imports-plan-base-cell,
.imports-plan-candidate-copy,
.imports-plan-draft-meta,
.imports-plan-item-meta,
.imports-plan-empty {
  display: grid;
  gap: 10px;
}

.imports-plan-command-grid {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.imports-plan-command-actions {
  justify-items: end;
}

.imports-plan-statuses {
  align-items: center;
}

.imports-plan-main {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  align-items: start;
}

.imports-plan-main>*,
.imports-plan-composer>*,
.imports-plan-command-grid>*,
.imports-plan-selection-toolbar>* {
  min-width: 0;
}

.imports-plan-composer .select {
  min-width: 0;
}

.imports-plan-selection-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.imports-plan-selection-state,
.imports-plan-selection-actions {
  flex-wrap: wrap;
}

.imports-plan-selection-actions {
  justify-content: flex-end;
}

.imports-plan-candidate-copy strong {
  display: block;
}

.imports-plan-candidate-reason {
  line-height: 1.35;
}

.imports-plan-drafts-panel .panel-header {
  margin-bottom: 4px;
}

.imports-plan-draft-list,
.imports-plan-item-list {
  gap: 8px;
}

.imports-plan-draft-list .selection-list-item,
.imports-plan-item-list .selection-list-item {
  padding: 10px;
}

.imports-plan-drafts-panel,
.imports-plan-draft-list .selection-list-item,
.imports-plan-empty {
  min-width: 0;
}

.imports-plan-draft-meta,
.imports-plan-item-meta {
  justify-items: end;
  align-content: start;
}

.imports-plan-item-row {
  cursor: default;
}

.imports-plan-empty {
  padding: 10px 12px;
  border: 1px solid rgba(90, 116, 148, 0.24);
  border-radius: var(--radius-md);
  background: rgba(18, 28, 44, 0.54);
}

.imports-plan-empty strong,
.imports-plan-empty p {
  margin: 0;
}

.imports-plan-draft-list .selection-list-copy,
.imports-plan-draft-list .panel-muted-text,
.imports-plan-empty p {
  overflow-wrap: anywhere;
}

.imports-plan-workbench-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.imports-plan-workbench-actions {
  justify-content: flex-end;
}

.imports-plan-workbench-main {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: start;
}

.imports-plan-base-cell .status-badge {
  justify-self: start;
}

.member-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.inline-form {
  display: grid;
  gap: 10px;
}

.form-section {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(84, 110, 143, 0.32);
  border-radius: var(--radius-md);
  padding: 12px;
  background: rgba(24, 36, 54, 0.78);
}

.form-section-head h3 {
  margin: 0;
}

.form-section-head p {
  margin: 4px 0 0;
  color: var(--text-soft);
}

.form-section-fields {
  display: grid;
  gap: 8px;
}

.autocomplete-field {
  display: grid;
  gap: 6px;
}

.auction-create-mode-tabs {
  display: grid;
  gap: 8px;
}

.auction-lot-editor {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(90, 116, 148, 0.28);
  border-radius: var(--radius-sm);
  padding: 10px;
  background: rgba(20, 31, 48, 0.58);
}

.auction-lot-editor-list {
  display: grid;
  gap: 10px;
}

.auction-lot-row {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(90, 116, 148, 0.22);
  border-radius: var(--radius-sm);
  padding: 10px;
  background: rgba(18, 28, 43, 0.84);
}

.auction-lot-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.autocomplete-panel {
  display: grid;
  gap: 6px;
  max-height: 210px;
  overflow-y: auto;
  border: 1px solid rgba(90, 116, 148, 0.34);
  border-radius: var(--radius-sm);
  background: rgba(20, 31, 48, 0.88);
  padding: 8px;
}

.autocomplete-panel .btn {
  width: 100%;
  text-align: left;
}

.form-row {
  display: grid;
  gap: 6px;
}

.permission-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.permission-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 4px 8px;
  border: 1px solid rgba(90, 116, 148, 0.32);
  border-radius: var(--radius-sm);
  padding: 8px;
  background: rgba(25, 37, 56, 0.82);
}

.permission-option input[type="checkbox"] {
  margin-top: 2px;
}

.permission-option span {
  font-size: 12px;
  font-weight: 600;
}

.permission-option small {
  grid-column: 2;
  color: var(--text-soft);
  font-size: 11px;
}

.permission-option.static {
  grid-template-columns: minmax(0, 1fr);
}

.permission-option.static small {
  grid-column: 1;
}

.form-label {
  color: var(--text-soft);
  font-size: 12px;
}

.form-hint {
  color: #8ea0bb;
  font-size: 11px;
}

.field-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 7px 12px;
  cursor: pointer;
  transition: all 110ms ease;
  color: var(--text-main);
  background: rgba(35, 47, 69, 0.8);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-primary-pressed));
  border-color: rgba(130, 194, 255, 0.65);
  color: #07131f;
  font-weight: 700;
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--accent-primary-hover), var(--accent-primary));
}

.btn-secondary {
  border-color: rgba(123, 160, 202, 0.42);
  background: rgba(34, 48, 72, 0.9);
}

.btn-danger {
  background: rgba(172, 49, 49, 0.92);
  border-color: rgba(235, 123, 123, 0.55);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(88, 111, 143, 0.34);
}

.input,
.select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(93, 120, 153, 0.44);
  background: rgba(18, 26, 40, 0.95);
  color: var(--text-main);
  padding: 8px 10px;
}

.select {
  min-width: 170px;
}

.operational-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(85, 112, 147, 0.3);
  border-radius: var(--radius-md);
  background: rgba(18, 28, 44, 0.82);
}

.operational-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.operational-table th,
.operational-table td {
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(86, 112, 145, 0.23);
  vertical-align: top;
}

.operational-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  background: rgba(30, 45, 69, 0.84);
}

.operational-table tbody tr:hover {
  background: rgba(45, 65, 98, 0.32);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid rgba(116, 147, 184, 0.28);
  background: rgba(58, 76, 109, 0.4);
}

.status-badge.tone-success {
  border-color: rgba(78, 203, 132, 0.55);
  color: #9bf0c4;
}

.status-badge.tone-warning {
  border-color: rgba(230, 162, 60, 0.55);
  color: #f5ce95;
}

.status-badge.tone-danger {
  border-color: rgba(226, 85, 85, 0.56);
  color: #f4b2b2;
}

.status-badge.tone-info {
  border-color: rgba(109, 141, 255, 0.58);
  color: #c3d2ff;
}

.status-badge.tone-loot {
  border-color: rgba(212, 169, 77, 0.58);
  color: #f0d59e;
}

.badge-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.access-permission-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--text-main);
}

.inline-banner {
  border-radius: var(--radius-md);
  border: 1px solid rgba(98, 126, 161, 0.32);
  background: rgba(24, 37, 56, 0.86);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.inline-banner-content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.inline-banner-content p {
  margin: 0;
  color: var(--text-soft);
}

.inline-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.top-banner-stack {
  display: grid;
  gap: 8px;
}

.inline-banner.tone-warning {
  border-color: rgba(230, 162, 60, 0.55);
}

.inline-banner.tone-danger {
  border-color: rgba(226, 85, 85, 0.55);
}

.inline-banner.tone-success {
  border-color: rgba(47, 191, 113, 0.55);
}

.inline-banner.tone-info {
  border-color: rgba(109, 141, 255, 0.55);
}

.state-block {
  border-radius: var(--radius-md);
  border: 1px solid rgba(90, 118, 152, 0.35);
  background: rgba(24, 35, 52, 0.85);
  padding: 16px;
  display: grid;
  gap: 8px;
}

.state-block h3 {
  margin: 0;
}

.state-block p {
  margin: 0;
  color: var(--text-soft);
}

.state-error {
  border-color: rgba(226, 85, 85, 0.5);
}

.detail-drawer {
  border: 1px solid rgba(94, 124, 162, 0.32);
  border-radius: var(--radius-md);
  background: rgba(19, 31, 49, 0.9);
  padding: 12px;
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 140px);
  overflow: auto;
  position: sticky;
  top: 14px;
}

.detail-drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.detail-drawer-head h3 {
  margin: 0;
}

.detail-drawer-head p {
  margin: 4px 0 0;
  color: var(--text-soft);
}

.detail-drawer-body,
.drawer-stack {
  display: grid;
  gap: 8px;
}

.drawer-identity-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(90, 116, 148, 0.28);
  border-radius: var(--radius-md);
  background: rgba(22, 34, 52, 0.82);
}

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

.drawer-identity-copy strong {
  font-size: 15px;
}

.drawer-identity-copy span {
  color: var(--text-soft);
  font-size: 12px;
}

.drawer-stack p {
  margin: 0;
  color: var(--text-soft);
}

.auction-status-panel {
  display: grid;
  gap: 10px;
}

.auction-status-meta h3 {
  margin: 0;
}

.auction-status-meta p {
  margin: 4px 0 0;
  color: var(--text-soft);
}

.auction-status-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.auction-status-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.import-progress-panel {
  display: grid;
  gap: 10px;
}

.import-progress-panel h3,
.import-progress-panel p {
  margin: 0;
}

.import-progress-counters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

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

.panel.panel-subtle {
  background: rgba(18, 28, 44, 0.48);
  border-color: rgba(90, 116, 148, 0.22);
}

.imports-flow-panel,
.imports-batch-panel,
.imports-checklist-panel,
.imports-stage-grid,
.imports-flow-copy,
.imports-stage-actions {
  display: grid;
  gap: 10px;
}

.imports-flow-panel .context-strip {
  margin-top: 4px;
}

.imports-stage-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: start;
}

.imports-stage-actions {
  align-content: start;
}

.imports-flow-copy strong {
  font-size: 14px;
}

.imports-flow-copy p {
  margin: 0;
  color: var(--text-soft);
}

.imports-batch-panel .toolbar-grid {
  align-items: end;
}

.imports-checklist-panel .step-checklist {
  margin-top: 2px;
}

.step-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.step-checklist-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 4px 8px;
  align-items: start;
  border: 1px solid rgba(90, 116, 148, 0.32);
  border-radius: var(--radius-sm);
  padding: 8px;
  background: rgba(25, 37, 56, 0.82);
}

.step-checklist-button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-column: 1 / -1;
  gap: 4px 8px;
  align-items: start;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.step-checklist-item.is-selected {
  border-color: rgba(245, 178, 72, 0.6);
  box-shadow: 0 0 0 1px rgba(245, 178, 72, 0.2);
}

.step-checklist-index {
  display: grid;
  place-items: center;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(102, 136, 178, 0.55);
  font-size: 12px;
}

.step-checklist-title {
  grid-column: 2;
  grid-row: 1;
  font-size: 13px;
  line-height: 1.35;
  word-break: normal;
  overflow-wrap: anywhere;
}

.step-checklist-item .status-badge,
.step-checklist-button .status-badge {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
}

.step-checklist-item.status-done {
  border-color: rgba(47, 191, 113, 0.45);
}

.step-checklist-item.status-current {
  border-color: rgba(109, 141, 255, 0.5);
}

.page-top-banner {
  margin-bottom: 8px;
}

.toast-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 8px;
  width: min(320px, calc(100vw - 24px));
  z-index: 300;
}

.toast {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(90, 119, 154, 0.44);
  background: rgba(20, 30, 47, 0.95);
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.toast p {
  margin: 0;
}

.toast.tone-success {
  border-color: rgba(47, 191, 113, 0.5);
}

.toast.tone-warning {
  border-color: rgba(230, 162, 60, 0.5);
}

.toast.tone-danger {
  border-color: rgba(226, 85, 85, 0.5);
}

@media (max-width: 1120px) {
  .app-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "switchers switchers";
    align-items: start;
  }

  .topbar-brand-wrap {
    grid-area: brand;
  }

  .topbar-switchers {
    grid-area: switchers;
    width: 100%;
  }

  .topbar-actions {
    grid-area: actions;
    justify-content: flex-end;
  }

  .dashboard-panels,
  .imports-top-grid,
  .imports-stage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {

  .app-body,
  .ops-body {
    grid-template-columns: 1fr;
  }

  .app-sidebar,
  .ops-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(109, 141, 255, 0.2);
  }

  .page-grid.with-drawer {
    grid-template-columns: 1fr;
  }

  .detail-drawer {
    position: static;
    max-height: none;
  }
}

@media (max-width: 720px) {
  .entry-shell {
    padding: 12px;
  }

  .entry-card {
    padding: 16px;
  }

  .onboarding-grid {
    grid-template-columns: 1fr;
  }

  .app-topbar,
  .ops-topbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "switchers"
      "actions";
  }

  .topbar-context-trigger {
    width: 100%;
  }

  .topbar-context-dropdown {
    position: static;
    width: 100%;
    margin-top: 8px;
  }

  .topbar-context-values {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .topbar-actions,
  .ops-topbar-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .topbar-actions .btn,
  .ops-topbar-actions .btn {
    width: auto;
  }

  .page-header {
    flex-direction: column;
  }

  .page-header-actions {
    width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .field-inline {
    flex-direction: column;
    align-items: stretch;
  }

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

.page-eyebrow,
.hero-panel-eyebrow,
.page-header-meta {
  color: var(--text-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.topbar-brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: none;
}

.topbar-brand-stack {
  min-width: 0;
  max-width: none;
}

.topbar-brand-wrap .btn {
  display: none;
}

.topbar-actions .btn {
  width: auto;
  white-space: nowrap;
}

.sidebar-link.secondary {
  color: #93a8c5;
}

.toolbar-grid {
  display: grid;
  gap: 10px;
  align-items: center;
}

.toolbar-grid>* {
  min-width: 0;
}

.toolbar-grid.split {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
}

.page-grid.compact-gap {
  gap: 8px;
}

.hero-panel {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(82, 109, 143, 0.32);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: linear-gradient(155deg, rgba(23, 35, 56, 0.92), rgba(18, 27, 42, 0.94));
  box-shadow: var(--shadow-elevated);
}

.hero-panel.tone-info {
  border-color: rgba(59, 164, 255, 0.35);
}

.hero-panel.tone-loot {
  border-color: rgba(212, 169, 77, 0.35);
}

.hero-panel.tone-warning {
  border-color: rgba(230, 162, 60, 0.38);
}

.hero-panel.tone-success {
  border-color: rgba(47, 191, 113, 0.34);
}

.hero-panel-main {
  display: grid;
  gap: 8px;
}

.hero-panel-main h2 {
  margin: 0;
  font-size: 26px;
}

.hero-panel-main p {
  margin: 0;
  color: var(--text-soft);
  max-width: 75ch;
}

.hero-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-panel-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

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

.info-list.compact {
  gap: 6px;
}

.info-list-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-bottom: 1px solid rgba(90, 116, 148, 0.2);
  padding-bottom: 8px;
}

.info-list-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-list dt {
  color: var(--text-soft);
  font-size: 12px;
}

.info-list dd {
  margin: 0;
  color: var(--text-main);
}

.action-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(90, 116, 148, 0.28);
  border-radius: var(--radius-md);
  padding: 14px;
  background: rgba(21, 32, 49, 0.8);
}

.action-panel h3 {
  margin: 0;
}

.action-panel p {
  margin: 4px 0 0;
  color: var(--text-soft);
}

.action-panel.tone-warning {
  border-color: rgba(230, 162, 60, 0.36);
}

.action-panel.tone-danger {
  border-color: rgba(226, 85, 85, 0.36);
}

.action-panel.tone-info {
  border-color: rgba(59, 164, 255, 0.3);
}

.action-panel.tone-loot {
  border-color: rgba(212, 169, 77, 0.32);
}

.action-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-panels.dual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.dashboard-panels.triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.dashboard-panels.modern-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}

.dashboard-panels.dual>.page-grid,
.dashboard-panels.triple>.page-grid,
.dashboard-panels.modern-grid>.page-grid {
  align-content: start;
}

.me-panel-hero {
  align-items: stretch;
}

.me-panel-hero .panel,
.me-panel-hero .action-panel {
  min-height: 100%;
}

.power-rank-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(90, 116, 148, 0.2);
  margin-bottom: 6px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.power-rank-bar:hover {
  transform: translateX(4px);
  background: rgba(43, 58, 82, 0.82);
  border-color: rgba(109, 141, 255, 0.4);
}

.power-rank-pos {
  font-weight: bold;
  color: var(--accent);
  min-width: 28px;
}

.power-rank-name {
  flex: 1;
  font-weight: 500;
}

.power-rank-value {
  font-size: 13px;
  color: #fbbf24;
  font-weight: 700;
  background: rgba(251, 191, 36, 0.12);
  padding: 2px 8px;
  border-radius: 12px;
}

.popularity-widget {
  display: grid;
  gap: 12px;
}

.popularity-hero {
  display: grid;
  gap: 4px;
}

.popularity-hero h4 {
  margin: 0;
  font-size: 18px;
  color: var(--text);
}

.popularity-hero p {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}

.popularity-meter {
  position: relative;
  height: 24px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(90, 116, 148, 0.2);
  overflow: hidden;
  margin-top: 8px;
}

.popularity-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(59, 164, 255, 0.8), rgba(109, 141, 255, 1));
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.popularity-meter span {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.popularity-meter .popularity-percent {
  left: auto;
  right: 12px;
}

.onboarding-focus-card .entry-actions {
  align-items: flex-start;
}

.onboarding-focus-card .entry-actions .btn {
  align-self: flex-start;
}

.activity-feed {
  display: grid;
  gap: 10px;
}

.activity-feed h3 {
  margin: 0;
}

.activity-feed-list {
  display: grid;
  gap: 8px;
}

.activity-feed-item {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(90, 116, 148, 0.28);
  border-radius: var(--radius-sm);
  padding: 10px;
  background: rgba(24, 36, 55, 0.76);
}

.activity-feed-meta {
  color: var(--text-soft);
  font-size: 12px;
}

.activity-feed-item p {
  margin: 0;
  color: var(--text-soft);
}

.notification-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.notification-card p {
  margin: 10px 0;
}

.auction-status-panel {
  display: grid;
  gap: 14px;
}

.auction-drawer-layout,
.operational-drawer-layout {
  gap: 18px;
}

.auction-drawer-zone,
.operational-drawer-zone {
  display: grid;
  gap: 12px;
}

.auction-drawer-zone+.auction-drawer-zone,
.operational-drawer-zone+.operational-drawer-zone {
  border-top: 1px solid rgba(90, 116, 148, 0.24);
  padding-top: 16px;
}

.auction-drawer-zone-secondary .panel-header,
.operational-drawer-zone-secondary .panel-header {
  padding-bottom: 0;
  border-bottom: none;
}

.auction-status-hero {
  display: grid;
  gap: 14px;
}

.auction-status-copy h3 {
  margin: 6px 0 0;
}

.auction-status-copy p {
  margin: 6px 0 0;
  color: var(--text-soft);
}

.auction-lot-summary {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(90, 116, 148, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(18, 29, 45, 0.72);
}

.auction-lot-summary strong {
  font-size: 13px;
}

.auction-lot-summary span {
  color: var(--text-soft);
  font-size: 12px;
}

.auction-item-cell {
  display: grid;
  gap: 4px;
}

.auction-item-cell strong {
  font-size: 13px;
}

.auction-item-cell-meta {
  color: var(--text-soft);
  font-size: 11px;
}

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

.auction-quick-actions,
.auction-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auction-status-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

@media (max-width: 1120px) {

  .dashboard-panels.triple,
  .dashboard-panels.dual,
  .dashboard-panels.modern-grid,
  .toolbar-grid.split,
  .auction-status-grid,
  .hero-panel-metrics,
  .imports-top-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .topbar-brand-wrap .btn {
    display: inline-flex;
    width: auto;
  }

  .app-sidebar {
    display: none;
  }

  .app-sidebar.open {
    display: block;
  }

  .app-main,
  .ops-main {
    padding: 14px;
  }
}

@media (max-width: 720px) {
  .drawer-identity-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-panel-main h2 {
    font-size: 22px;
  }

  .info-list-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .hero-panel-actions,
  .action-panel-actions,
  .filter-tabs,
  .auction-status-actions,
  .auction-quick-actions {
    flex-direction: column;
  }
}


.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.panel-header>* {
  min-width: 0;
}

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

.panel-header-copy h3 {
  margin: 0;
}

.panel-header-copy p,
.panel-header-meta {
  margin: 0;
  color: var(--text-soft);
}

.panel-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.context-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.context-strip-item {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(90, 116, 148, 0.26);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: rgba(20, 31, 48, 0.7);
}

.context-strip-item.tone-warning {
  border-color: rgba(230, 162, 60, 0.38);
}

.context-strip-item.tone-danger {
  border-color: rgba(226, 85, 85, 0.38);
}

.context-strip-item.tone-success {
  border-color: rgba(47, 191, 113, 0.36);
}

.context-strip-item.tone-info {
  border-color: rgba(59, 164, 255, 0.36);
}

.context-strip-label {
  color: var(--text-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.context-strip-value {
  font-size: 16px;
}

.context-strip-meta {
  color: var(--text-soft);
}

.panel-muted-text {
  color: var(--text-soft);
  font-size: 12px;
}

.panel-grid {
  display: grid;
  gap: 12px;
}

.panel-grid>* {
  min-width: 0;
}

.panel-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editor-workspace {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
  align-items: start;
}

.editor-workspace>* {
  min-width: 0;
}

.editor-sidebar,
.editor-main {
  align-content: start;
}

.editor-status-row,
.editor-footer-actions {
  margin-top: 12px;
}

.selection-list {
  display: grid;
  gap: 8px;
}

.selection-list-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(90, 116, 148, 0.28);
  border-radius: var(--radius-md);
  background: rgba(20, 31, 48, 0.72);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.selection-list-item:hover {
  border-color: rgba(109, 141, 255, 0.42);
  background: rgba(24, 37, 57, 0.88);
}

.selection-list-item.is-selected {
  border-color: rgba(59, 164, 255, 0.52);
  box-shadow: inset 0 0 0 1px rgba(59, 164, 255, 0.18);
  background: rgba(24, 40, 62, 0.92);
}

.selection-list-copy,
.selection-list-meta {
  min-width: 0;
}

.selection-list-copy {
  display: grid;
  gap: 4px;
}

.selection-list-copy strong {
  display: block;
}


.auction-item-target-picker>.input {
  flex: 1 1 260px;
}

.auction-target-selection-item {
  cursor: default;
}

.auction-target-selection-item .selection-list-meta {
  flex-shrink: 0;
}

.penalty-assignment-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
}

.penalty-stage-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(82, 109, 143, 0.22);
  border-radius: calc(var(--radius-lg) + 2px);
  background: rgba(13, 22, 36, 0.78);
}

.penalty-stage-card {
  min-width: 124px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.penalty-stage-card span {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.penalty-stage-card:hover {
  color: var(--text-main);
  border-color: rgba(90, 180, 255, 0.24);
  background: rgba(24, 36, 58, 0.72);
}

.penalty-stage-card.is-active {
  color: var(--text-main);
  border-color: rgba(90, 180, 255, 0.46);
  box-shadow: inset 0 0 0 1px rgba(90, 180, 255, 0.18), 0 10px 20px rgba(4, 10, 20, 0.18);
  background: linear-gradient(180deg, rgba(27, 41, 63, 0.92), rgba(18, 29, 46, 0.95));
}

.penalty-stage-meta {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.penalty-stage-section,
.penalty-rules-stage {
  align-content: start;
}

.penalty-batch-shell {
  display: grid;
  gap: 18px;
}

.penalty-batch-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.penalty-batch-toolbar>.input {
  flex: 1 1 320px;
}

.penalty-batch-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.penalty-selection-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(90, 180, 255, 0.28);
  background: rgba(21, 38, 60, 0.8);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
}

.penalty-batch-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
}

.penalty-member-selector,
.penalty-batch-config {
  align-content: start;
}

.penalty-member-list {
  display: grid;
  gap: 10px;
  max-height: clamp(280px, 48vh, 520px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(106, 142, 186, 0.52) transparent;
}

.penalty-member-list::-webkit-scrollbar {
  width: 6px;
}

.penalty-member-list::-webkit-scrollbar-track {
  background: transparent;
}

.penalty-member-list::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: rgba(106, 142, 186, 0.48);
}

.penalty-member-list::-webkit-scrollbar-thumb:hover {
  background: rgba(130, 174, 226, 0.62);
}

.penalty-member-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(140px, 0.72fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(82, 109, 143, 0.24);
  background: linear-gradient(180deg, rgba(19, 29, 46, 0.74), rgba(17, 25, 40, 0.9));
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.penalty-member-row:hover {
  border-color: rgba(90, 180, 255, 0.36);
  transform: translateY(-1px);
}

.penalty-member-row.is-selected {
  border-color: rgba(90, 180, 255, 0.58);
  box-shadow: inset 0 0 0 1px rgba(90, 180, 255, 0.2), 0 12px 22px rgba(4, 10, 20, 0.2);
  background: linear-gradient(180deg, rgba(27, 41, 63, 0.94), rgba(18, 29, 46, 0.96));
}

.penalty-member-check {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid rgba(90, 116, 148, 0.36);
  background: rgba(16, 24, 38, 0.9);
  color: transparent;
  font-size: 13px;
  font-weight: 800;
}

.penalty-member-check.is-selected {
  border-color: rgba(90, 180, 255, 0.56);
  background: rgba(36, 76, 118, 0.92);
  color: #fff;
}

.penalty-chip-avatar {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(38, 61, 90, 0.94), rgba(24, 39, 60, 0.94));
  border: 1px solid rgba(110, 146, 190, 0.28);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.penalty-member-main,
.penalty-member-side {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.penalty-member-main {
  align-content: center;
}

.penalty-member-side {
  justify-items: end;
  text-align: right;
}

.penalty-member-side small {
  color: var(--text-soft);
}

.penalty-batch-form {
  display: grid;
  gap: 14px;
}

.textarea {
  resize: vertical;
  min-height: 104px;
  font: inherit;
  padding-top: 12px;
}

.penalty-batch-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(82, 109, 143, 0.24);
  background: linear-gradient(180deg, rgba(19, 29, 46, 0.7), rgba(16, 24, 39, 0.88));
}

.penalty-batch-footer {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  padding-top: 4px;
}

.penalty-batch-selection {
  display: grid;
  gap: 10px;
}

.penalty-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.penalty-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 7px;
  border-radius: 999px;
  border: 1px solid rgba(90, 116, 148, 0.3);
  background: rgba(20, 31, 48, 0.78);
  color: var(--text-main);
  cursor: pointer;
}

.penalty-chip-label {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}

.penalty-chip-remove {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1;
}

.penalty-batch-commit {
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
}

.penalty-rule-catalog {
  display: grid;
  gap: 10px;
}

.penalty-rule-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(82, 109, 143, 0.28);
  background: linear-gradient(180deg, rgba(22, 32, 49, 0.78), rgba(18, 27, 42, 0.92));
  color: var(--text-main);
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.penalty-rule-card:hover {
  border-color: rgba(90, 180, 255, 0.44);
  transform: translateY(-1px);
}

.penalty-rule-card.is-selected {
  border-color: rgba(90, 180, 255, 0.6);
  box-shadow: inset 0 0 0 1px rgba(90, 180, 255, 0.24);
}

.penalty-rule-card-main,
.penalty-rule-card-head,
.penalty-rule-card-foot {
  display: grid;
  gap: 10px;
}

.penalty-rule-card-head,
.penalty-rule-card-foot {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.penalty-rule-card-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.align-right {
  justify-items: end;
  text-align: right;
}

.penalty-application-gate .action-panel {
  background: linear-gradient(180deg, rgba(38, 33, 20, 0.72), rgba(28, 24, 15, 0.82));
}

.penalty-assignment-list {
  margin-top: 10px;
}

.penalty-assignment-item {
  align-items: center;
}

.penalty-assignment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.penalty-row-list {
  border: 1px solid rgba(90, 116, 148, 0.28);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(18, 28, 44, 0.72);
}

.penalty-row-item {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(90, 116, 148, 0.22);
}

.penalty-row-item:last-child {
  border-bottom: 0;
}

.penalty-row-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.penalty-row-main strong {
  font-size: 14px;
}

.penalty-row-impact {
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
}

.penalty-row-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.penalty-row-action {
  display: flex;
  justify-content: flex-end;
}

.event-roster-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auction-guidance-grid {
  display: grid;
  gap: 8px;
}

.shell-backdrop {
  display: none;
}

@media (max-width: 1120px) {

  .editor-workspace,
  .panel-grid.two-up,
  .panel-grid.two-up.imports-plan-board,
  .imports-plan-main,
  .imports-plan-workbench-main,
  .imports-plan-command-grid,
  .imports-plan-workbench-head {
    grid-template-columns: 1fr;
  }

  .penalty-assignment-meta {
    justify-items: start;
    text-align: left;
  }

  .penalty-rule-card-head,
  .penalty-rule-card-foot,
  .penalty-batch-layout,
  .penalty-batch-summary,
  .penalty-batch-footer {
    grid-template-columns: 1fr;
  }

  .align-right,
  .penalty-rule-card-tags,
  .penalty-batch-commit,
  .penalty-member-side {
    justify-items: start;
    justify-content: flex-start;
    text-align: left;
  }

  .penalty-member-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .penalty-member-side {
    grid-column: 2 / -1;
  }

  .penalty-row-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .penalty-row-impact,
  .penalty-row-status,
  .penalty-row-action {
    text-align: left;
    justify-content: flex-start;
  }
}

@media (max-width: 960px) {
  .shell-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(4, 10, 20, 0.65);
    z-index: 40;
  }

  .app-sidebar {
    position: fixed;
    inset: 60px 12px auto 12px;
    z-index: 50;
    border: 1px solid rgba(109, 141, 255, 0.24);
    border-radius: var(--radius-md);
    max-height: calc(100vh - 84px);
    box-shadow: var(--shadow-elevated);
  }
}

@media (max-width: 720px) {

  .panel-header,
  .event-roster-actions,
  .panel-header-actions,
  .disclosure-card-toggle,
  .sidebar-group-head,
  .sidebar-subgroup-head {
    flex-direction: column;
  }

  .topbar-brand-wrap .btn {
    width: auto;
  }

  .page-header-actions .btn {
    width: 100%;
  }

  .panel-grid.two-up,
  .context-strip {
    grid-template-columns: 1fr;
  }

  .penalty-assignment-item,
  .selection-list-item .penalty-assignment-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .penalty-stage-switcher {
    display: grid;
    width: 100%;
  }

  .penalty-stage-card {
    width: 100%;
  }

  .penalty-batch-toolbar-actions {
    width: 100%;
  }

  .penalty-batch-toolbar-actions .btn,
  .penalty-batch-commit form,
  .penalty-batch-commit form .btn {
    width: 100%;
  }

  .penalty-chip-list {
    width: 100%;
  }

}

.page-char-banner {
  margin-bottom: 10px;
}

.clan-char-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(90, 116, 148, 0.28);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(14, 23, 38, 0.92), rgba(12, 19, 31, 0.96));
  box-shadow: var(--shadow-soft);
}

.clan-char-bar.loading {
  grid-template-columns: 1fr;
}

.clan-char-bar.tone-warning {
  border-color: rgba(230, 162, 60, 0.38);
}

.clan-char-bar.tone-danger {
  border-color: rgba(226, 85, 85, 0.38);
}

.clan-char-bar-copy {
  display: grid;
  gap: 4px;
}

.clan-char-bar-copy strong {
  font-size: 16px;
}

.clan-char-bar-copy p {
  margin: 0;
  color: var(--text-soft);
}

.clan-char-bar-label {
  color: var(--text-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.clan-char-bar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.clan-char-bar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.clan-char-selector-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.clan-char-select {
  min-width: 260px;
}

.clan-char-claim {
  grid-column: 1 / -1;
  display: grid;
  gap: 2px;
  border-top: 1px solid rgba(90, 116, 148, 0.18);
  padding-top: 10px;
}

.clan-char-claim span,
.clan-char-claim p {
  margin: 0;
  color: var(--text-soft);
}

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

.char-gate-item {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(90, 116, 148, 0.24);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: rgba(17, 27, 42, 0.7);
}

.char-gate-item.is-active {
  border-color: rgba(109, 141, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(109, 141, 255, 0.18);
}

.char-gate-item span {
  color: var(--text-soft);
  font-size: 12px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
}

.checkbox-row input[type="checkbox"] {
  margin-top: 3px;
}

.inline-code-block {
  display: block;
  overflow-x: auto;
  padding: 10px 12px;
  border: 1px solid rgba(90, 116, 148, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(11, 20, 33, 0.82);
  color: var(--accent);
  font-size: 13px;
  line-height: 1.45;
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .clan-char-bar {
    grid-template-columns: 1fr;
  }

  .clan-char-bar-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .clan-char-selector-wrap {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .clan-char-select {
    min-width: 0;
    width: 100%;
  }

  .clan-char-bar-actions {
    width: 100%;
  }

  .clan-char-bar-actions .btn {
    width: 100%;
  }
}

.auction-card-confirm-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(14, 21, 33, 0.95);
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 4px;
}

.auction-card-confirm-text {
  margin: 0;
  font-size: 14px;
  color: var(--text-main);
  font-weight: 500;
  text-align: center;
}

.auction-card-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.auction-card-confirm-actions .btn {
  width: 100%;
  font-size: 13px;
  padding-inline: 4px;
}

.auction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  align-items: start;
}

.auction-card {
  display: grid;
  gap: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(82, 109, 143, 0.35);
  background: linear-gradient(160deg, rgba(23, 33, 51, 0.85), rgba(16, 24, 38, 0.95));
  padding: 16px;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
  position: relative;
  overflow: hidden;
}

.auction-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(4, 10, 20, 0.4);
  border-color: rgba(109, 141, 255, 0.5);
}

.auction-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--text-soft);
  opacity: 0.6;
}

.auction-card.tone-info::after {
  background: var(--accent-primary);
}

.auction-card.tone-warning::after {
  background: var(--warning);
}

.auction-card.tone-success::after {
  background: var(--success);
}

.auction-card.tone-danger::after {
  background: var(--danger);
}

.auction-card.tone-loot::after {
  background: var(--accent-loot);
}

.auction-card-header {
  display: grid;
  gap: 4px;
}

.auction-card-rarity,
.auction-card-template,
.auction-card-lot {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.auction-card-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  color: var(--text-main);
  word-break: break-word;
}

.auction-card-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background: rgba(10, 15, 24, 0.4);
  border-radius: var(--radius-sm);
  padding: 12px;
  border: 1px solid rgba(59, 164, 255, 0.1);
}

.auction-card-kicker {
  display: grid;
  gap: 2px;
}

.auction-card-kicker-label {
  font-size: 11px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auction-card-kicker-value {
  font-size: 24px;
  line-height: 1;
  color: var(--accent-loot-soft);
}

.auction-card-kicker-meta {
  font-size: 12px;
  color: #cddcf1;
}

.auction-card-timer-area {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.auction-card-footer {
  margin-top: 4px;
}

.auction-card-footer .btn {
  width: 100%;
  padding-block: 10px;
}

/* Wizards & Import UI */
.operation-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(14, 21, 33, 0.6);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(82, 109, 143, 0.2);
  margin-bottom: 24px;
  overflow-x: auto;
}

.stepper-step {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.stepper-step.is-active {
  opacity: 1;
}

.stepper-step.is-completed {
  opacity: 0.8;
}

.stepper-badge {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stepper-step.is-active .stepper-badge {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(109, 141, 255, 0.4);
}

.stepper-step.is-completed .stepper-badge {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

.stepper-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}

.stepper-separator {
  height: 1px;
  width: 32px;
  background: rgba(255, 255, 255, 0.1);
}

.dropzone-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px 24px;
  background: linear-gradient(160deg, rgba(23, 33, 51, 0.4), rgba(16, 24, 38, 0.6));
  border: 2px dashed rgba(109, 141, 255, 0.3);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dropzone-area:hover,
.dropzone-area.is-dragover {
  background: rgba(109, 141, 255, 0.1);
  border-color: var(--accent-primary);
  box-shadow: inset 0 0 20px rgba(109, 141, 255, 0.1);
}

.dropzone-area .kpi-card-value {
  font-size: 32px;
  color: rgba(109, 141, 255, 0.8);
  line-height: 1;
}

.dropzone-titles h3 {
  margin: 0 0 4px;
  font-size: 20px;
  color: var(--text-main);
  text-align: center;
}

.dropzone-titles p {
  margin: 0;
  color: var(--text-soft);
  text-align: center;
}

.dropzone-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  z-index: 2;
}

.dropzone-input-hidden {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

.animate-slide-up {
  animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.item-qty-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(109, 141, 255, 0.15);
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 11px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  border: 1px solid rgba(109, 141, 255, 0.4);
  margin-left: 8px;
  box-shadow: 0 0 8px rgba(109, 141, 255, 0.1);
}

/* Drafting Flow - Inventory Deck & Crates */
.drafting-hud {
  display: flex;
  gap: 16px;
  background: rgba(14, 21, 33, 0.7);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(109, 141, 255, 0.15);
  margin-bottom: 24px;
  align-items: center;
  justify-content: space-between;
}

.drafting-hud-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.drafting-hud-stat {
  display: flex;
  flex-direction: column;
}

.drafting-hud-stat-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.drafting-hud-stat-label {
  font-size: 12px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.drafting-hud-actions {
  display: flex;
  gap: 12px;
}

.inventory-deck {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inventory-row {
  display: grid;
  grid-template-columns: 32px 1fr auto auto;
  align-items: center;
  gap: 16px;
  background: rgba(16, 24, 38, 0.6);
  border: 1px solid rgba(82, 109, 143, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  transition: all 0.2s ease;
}

.inventory-row:hover {
  background: rgba(23, 33, 51, 0.8);
  border-color: rgba(109, 141, 255, 0.4);
}

.inventory-row.is-selected {
  background: rgba(109, 141, 255, 0.1);
  border-left: 3px solid var(--accent-primary);
}

.inventory-row-summary {
  grid-template-columns: minmax(0, 1fr) auto;
}

.inventory-row-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.inventory-row-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inventory-row-meta {
  font-size: 12px;
  color: var(--text-soft);
}

.inventory-row-summary-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.inventory-row-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inventory-row-qty input {
  width: 50px;
  height: 28px;
  padding: 0 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(82, 109, 143, 0.3);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  text-align: center;
}

.inventory-row-qty span {
  font-size: 12px;
  color: var(--text-muted);
}

.inventory-row-actions {
  display: flex;
  gap: 8px;
}

.inventory-row-actions .btn {
  padding: 4px 12px;
  font-size: 12px;
  height: 28px;
}

.crate-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crate-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, rgba(23, 33, 51, 0.8), rgba(16, 24, 38, 0.9));
  border: 1px solid rgba(82, 109, 143, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.crate-card:hover {
  border-color: rgba(109, 141, 255, 0.5);
  transform: translateY(-2px);
}

.crate-card.is-active-target {
  border-color: var(--warning);
  box-shadow: 0 0 15px rgba(255, 179, 71, 0.2);
}

.crate-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.crate-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.crate-card-items {
  font-size: 13px;
  color: var(--accent-primary);
  font-weight: 500;
}

.crate-card-meta {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.crate-card-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Events Dashboard Styles */
.dashboard-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 8px 0;
}

.roster-member-card {
  background: var(--surface-floating);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.roster-member-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-neutral);
}

.roster-member-card.is-selected {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--accent-primary), 0 4px 12px rgba(var(--accent-primary-rgb), 0.15);
}

.roster-member-card.is-selected::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(var(--accent-primary-rgb), 0.1) 0%, transparent 100%);
  pointer-events: none;
}

.roster-member-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.roster-member-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-main);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.presence-gauge {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.presence-gauge.tone-high {
  background: rgba(var(--accent-success-rgb), 0.15);
  color: var(--accent-success);
}

.presence-gauge.tone-med {
  background: rgba(var(--accent-warning-rgb), 0.15);
  color: var(--accent-warning);
}

.presence-gauge.tone-low {
  background: rgba(var(--accent-danger-rgb), 0.15);
  color: var(--accent-danger);
}

.roster-member-meta {
  font-size: 12px;
  color: var(--text-soft);
  display: flex;
  justify-content: space-between;
}

/* Event Console HUD */
.live-checkin-console {
  background: linear-gradient(180deg, #121820 0%, #0d1117 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 20px rgba(0, 0, 0, 0.5);
}

.live-checkin-console::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(var(--accent-info-rgb), 0.05) 0%, transparent 50%);
  pointer-events: none;
  animation: pulse-glow 4s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.console-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 600;
}

.console-code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 56px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 8px;
  color: #fff;
  text-shadow: 0 0 24px rgba(var(--accent-info-rgb), 0.6), 0 0 8px rgba(var(--accent-info-rgb), 0.4);
  margin: 8px 0;
  user-select: all;
  transition: text-shadow 0.2s;
}

.console-code:hover {
  text-shadow: 0 0 32px rgba(var(--accent-info-rgb), 0.8), 0 0 12px rgba(var(--accent-info-rgb), 0.6);
}

.console-expiry {
  font-size: 14px;
  color: var(--accent-warning);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

/* Schedule Frequency Engine Builder */
.schedule-engine-block {
  background: var(--surface-floating);
  border: 1px solid var(--border-neutral);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.schedule-engine-header {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-soft);
  letter-spacing: 1px;
}

.schedule-hint-text {
  font-size: 13px;
  color: var(--text-soft);
  font-style: italic;
  margin-top: -4px;
  padding-left: 12px;
  border-left: 2px solid var(--accent-info);
}

.quick-pills-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.quick-pill-btn {
  background: rgba(var(--accent-primary-rgb), 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.3);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-pill-btn:hover {
  background: rgba(var(--accent-primary-rgb), 0.2);
  border-color: rgba(var(--accent-primary-rgb), 0.5);
  transform: translateY(-1px);
}

.ds-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 7, 12, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.ds-dialog {
  position: relative;
  background: rgba(12, 17, 27, 0.95);
  border: 1px solid rgba(82, 109, 143, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(109, 141, 255, 0.1) inset;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  color: var(--text-primary);
  padding: 0;
  margin: 0;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ds-dialog-head {
  position: sticky;
  top: 0;
  background: rgba(12, 17, 27, 0.98);
  padding: 16px 20px;
  border-bottom: 1px solid rgba(82, 109, 143, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
}

.ds-dialog-head h3 {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.ds-dialog-head p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.ds-dialog-body {
  padding: 20px;
}


.events-operations-layout,
.events-catalog-layout {
  gap: 18px;
}

.events-operations-layout.player {
  max-width: 1120px;
}

.events-summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.events-summary-strip.compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
}

.events-summary-chip,
.events-stat-pill {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(99, 129, 255, 0.24);
  background: linear-gradient(180deg, rgba(18, 29, 47, 0.82), rgba(10, 17, 30, 0.96));
  box-shadow: 0 16px 34px rgba(2, 6, 16, 0.18);
}

.events-summary-chip span,
.events-stat-label,
.events-stat-meta,
.events-hero-metric-label,
.events-hero-metric-meta,
.events-day-time-meta,
.events-live-kicker {
  color: rgba(207, 220, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.events-summary-chip strong,
.events-stat-value,
.events-hero-metric-value {
  font-size: 24px;
}

.events-stat-pill.tone-success {
  border-color: rgba(74, 209, 127, 0.32);
}

.events-stat-pill.tone-warning {
  border-color: rgba(255, 188, 76, 0.32);
}

.panel-stack-head {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}


.panel-stack-head.compact {
  gap: 2px;
  margin-bottom: 12px;
}

.events-idle-surface {
  display: grid;
  gap: 14px;
}

.events-idle-surface.minimal {
  padding-top: 18px;
}

.events-day-panel-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
}


.events-active-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.events-active-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(99, 129, 255, 0.22);
  background: linear-gradient(180deg, rgba(13, 22, 38, 0.88), rgba(8, 14, 26, 0.96));
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.events-active-card:hover {
  transform: translateY(-1px);
  border-color: rgba(111, 146, 255, 0.32);
  box-shadow: 0 18px 30px rgba(4, 12, 30, 0.2);
}

.events-active-card.is-selected {
  border-color: rgba(95, 165, 255, 0.44);
  box-shadow: inset 0 0 0 1px rgba(95, 165, 255, 0.14), 0 20px 38px rgba(8, 18, 40, 0.26);
}

.events-active-card-title {
  font-size: 1.05rem;
}

.events-live-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 16px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(93, 125, 255, 0.22);
  background:
    radial-gradient(circle at top right, rgba(56, 104, 255, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(16, 28, 46, 0.96), rgba(8, 14, 26, 0.98));
  box-shadow: 0 28px 58px rgba(2, 8, 24, 0.28);
}

.events-live-hero.empty,
.events-live-hero.player-empty {
  grid-template-columns: 1fr;
}

.events-live-hero-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.events-live-hero-heading {
  display: grid;
  gap: 8px;
}

.events-live-hero h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2vw, 2.35rem);
}

.events-live-hero p {
  margin: 0;
  color: rgba(219, 228, 255, 0.76);
  max-width: 66ch;
}

.events-live-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.events-command-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.events-hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 12px;
}

.events-hero-metric {
  display: grid;
  gap: 4px;
  padding: 16px;
  min-width: 0;
  border-radius: 22px;
  border: 1px solid rgba(99, 129, 255, 0.2);
  background: linear-gradient(180deg, rgba(17, 26, 43, 0.92), rgba(10, 17, 31, 0.98));
}

.events-hero-metric.tone-warning {
  border-color: rgba(255, 183, 64, 0.28);
}

.events-hero-metric.tone-success {
  border-color: rgba(88, 214, 137, 0.24);
}

.events-live-empty-next {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  max-width: 280px;
  border: 1px solid rgba(104, 137, 255, 0.24);
  background: rgba(16, 25, 40, 0.72);
}

.events-day-panel {
  overflow: hidden;
}

.events-day-rail {
  display: grid;
  gap: 12px;
}

.events-day-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid rgba(91, 120, 160, 0.2);
  background: linear-gradient(180deg, rgba(14, 22, 37, 0.82), rgba(9, 15, 27, 0.92));
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.events-day-row:hover {
  transform: translateY(-1px);
  border-color: rgba(108, 144, 255, 0.28);
  box-shadow: 0 18px 30px rgba(4, 12, 30, 0.22);
}

.events-day-row.is-accent {
  border-color: rgba(255, 184, 71, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 184, 71, 0.08), 0 18px 30px rgba(28, 18, 4, 0.2);
}

.events-day-time {
  display: grid;
  gap: 2px;
  align-self: stretch;
  padding: 10px 10px;
  border-radius: 16px;
  background: rgba(18, 28, 45, 0.82);
  border: 1px solid rgba(91, 120, 160, 0.16);
}

.events-day-time-label {
  font-size: 1.15rem;
  font-weight: 700;
}

.events-day-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.events-day-copy strong {
  font-size: 1rem;
}

.events-day-headline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.events-day-headline strong {
  font-size: 1.02rem;
}

.events-day-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.events-day-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.events-day-empty {
  display: grid;
  gap: 4px;
  padding: 20px 18px;
  border-radius: 18px;
  border: 1px dashed rgba(91, 120, 160, 0.22);
  color: rgba(219, 228, 255, 0.78);
  background: rgba(10, 16, 28, 0.46);
}

.events-day-empty strong {
  font-size: 1rem;
}

.events-day-empty span {
  color: rgba(219, 228, 255, 0.62);
}

.events-open-drawer {
  border: 1px solid rgba(102, 136, 255, 0.26);
  border-radius: 24px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(64, 112, 255, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(17, 27, 44, 0.95), rgba(10, 18, 31, 0.98));
  box-shadow: 0 28px 50px rgba(2, 8, 24, 0.3);
}

.events-open-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.events-open-drawer-head h3 {
  margin: 4px 0 6px;
}

.events-open-form {
  display: grid;
  gap: 14px;
}

.events-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: start;
}

.events-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.schedule-day-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 10px;
}

.schedule-day-chip {
  display: grid;
  gap: 0;
  justify-items: center;
  padding: 16px 14px;
  border-radius: 16px;
  border: 1px solid rgba(91, 120, 160, 0.18);
  background: rgba(10, 17, 30, 0.9);
  color: var(--text-main);
  text-align: left;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.schedule-day-chip:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(108, 144, 255, 0.32);
  box-shadow: 0 12px 24px rgba(4, 12, 30, 0.14);
}

.schedule-day-chip.is-active {
  border-color: rgba(84, 148, 255, 0.44);
  background: linear-gradient(180deg, rgba(20, 37, 66, 0.94), rgba(12, 23, 43, 0.96));
  box-shadow: inset 0 0 0 1px rgba(84, 148, 255, 0.18);
}

.schedule-day-chip strong {
  font-size: 0.95rem;
}

.events-open-summary {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(19, 31, 52, 0.72);
  border: 1px solid rgba(96, 128, 255, 0.18);
}

.events-live-grid,
.events-catalog-grid,
.events-live-grid.redesigned {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
  gap: 18px;
}

.events-ops-dock {
  display: grid;
  gap: 14px;
}

.events-dock-grid {
  display: grid;
  gap: 12px;
}

.events-dock-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(91, 120, 160, 0.2);
  background: linear-gradient(180deg, rgba(14, 23, 38, 0.88), rgba(9, 15, 27, 0.96));
}

.events-dock-card h4 {
  margin: 0;
  font-size: 1.02rem;
}

.events-dock-card p {
  margin: 0;
  color: rgba(219, 228, 255, 0.74);
}

.events-token-surface {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(104, 156, 255, 0.22);
  background: linear-gradient(180deg, rgba(14, 26, 46, 0.92), rgba(9, 18, 33, 0.98));
}

.events-token-label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(164, 189, 255, 0.82);
}

.events-token-value {
  display: block;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  color: rgba(244, 248, 255, 0.96);
}

.events-dock-card.tone-info {
  border-color: rgba(102, 159, 255, 0.26);
}

.events-dock-card.tone-warning {
  border-color: rgba(255, 182, 72, 0.26);
}

.events-detail-stack {
  display: grid;
  gap: 8px;
}

.events-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(219, 228, 255, 0.74);
}

.events-detail-row strong {
  color: var(--text-main);
}

.events-manual-box {
  display: grid;
  gap: 10px;
}

.events-upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.event-preview-card,
.events-player-claim-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(93, 125, 255, 0.2);
  background: linear-gradient(180deg, rgba(18, 29, 46, 0.94), rgba(12, 20, 35, 0.98));
  box-shadow: 0 18px 36px rgba(2, 8, 24, 0.24);
}

.event-preview-card-rich {
  gap: 12px;
}

.event-preview-card {
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.event-preview-card:hover {
  transform: translateY(-2px);
  border-color: rgba(108, 144, 255, 0.34);
  box-shadow: 0 26px 42px rgba(4, 12, 30, 0.32);
}

.event-preview-card.is-selected {
  border-color: rgba(126, 174, 255, 0.52);
  box-shadow: inset 0 0 0 1px rgba(126, 174, 255, 0.16), 0 28px 46px rgba(4, 12, 30, 0.3);
}

.event-preview-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.event-preview-time {
  color: rgba(164, 189, 255, 0.82);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.event-preview-card strong {
  font-size: 18px;
}

.event-preview-card p,
.events-player-claim-copy p,
.events-player-claim-card p {
  color: rgba(219, 228, 255, 0.72);
}

.event-preview-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  color: rgba(219, 228, 255, 0.74);
}

.event-preview-footer-value {
  font-weight: 700;
  color: var(--text-main);
}

.events-upcoming-section {
  display: grid;
  gap: 14px;
}

.events-player-claim-card-rich {
  align-content: start;
}

.events-player-claim-copy {
  display: grid;
  gap: 6px;
}

.events-attendance-feed {
  display: grid;
  gap: 12px;
}

.events-attendance-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(91, 120, 160, 0.18);
  background: linear-gradient(180deg, rgba(14, 22, 37, 0.82), rgba(9, 15, 27, 0.92));
}

.events-attendance-row.is-revoked {
  opacity: 0.72;
}

.events-attendance-avatar {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  color: #09111d;
  background: linear-gradient(180deg, rgba(138, 198, 255, 0.95), rgba(92, 157, 255, 0.9));
}

.events-attendance-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.events-attendance-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.events-attendance-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(219, 228, 255, 0.68);
  font-size: 0.92rem;
}

.schedule-layout {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
}

.schedule-readonly-panel {
  display: grid;
  gap: 14px;
}

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

.schedule-calendar {
  display: grid;
  gap: 12px;
}

.schedule-calendar-weekdays,
.schedule-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.schedule-calendar-weekdays span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(207, 220, 255, 0.62);
  padding: 0 4px;
}

.schedule-calendar-cell {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 126px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(91, 120, 160, 0.16);
  background: linear-gradient(180deg, rgba(13, 22, 36, 0.78), rgba(9, 15, 27, 0.92));
  color: var(--text-main);
  text-align: left;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.schedule-calendar-cell:hover {
  transform: translateY(-1px);
  border-color: rgba(108, 144, 255, 0.3);
  box-shadow: 0 18px 28px rgba(4, 12, 30, 0.2);
}

.schedule-calendar-cell.outside {
  opacity: 0.54;
}

.schedule-calendar-cell.today {
  border-color: rgba(99, 146, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(99, 146, 255, 0.12);
}

.schedule-calendar-cell.has-events {
  background:
    radial-gradient(circle at top right, rgba(56, 104, 255, 0.12), transparent 46%),
    linear-gradient(180deg, rgba(13, 22, 36, 0.84), rgba(9, 15, 27, 0.94));
}

.schedule-calendar-cell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.schedule-calendar-cell-head strong {
  font-size: 1rem;
}

.schedule-calendar-count {
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(100, 133, 255, 0.22);
  background: rgba(24, 37, 60, 0.8);
  font-size: 12px;
  color: rgba(219, 228, 255, 0.86);
}

.schedule-calendar-preview {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.schedule-calendar-preview-item,
.schedule-calendar-preview-more,
.schedule-calendar-preview-empty {
  font-size: 12px;
  color: rgba(219, 228, 255, 0.74);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-calendar-preview-item {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(22, 34, 56, 0.78);
  border: 1px solid rgba(91, 120, 160, 0.14);
}

.schedule-calendar-preview-more {
  color: rgba(164, 189, 255, 0.82);
}

.schedule-calendar-preview-empty {
  color: rgba(219, 228, 255, 0.28);
}

.schedule-day-dialog-list {
  display: grid;
  gap: 12px;
}

.schedule-day-dialog-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(91, 120, 160, 0.18);
  background: linear-gradient(180deg, rgba(13, 22, 36, 0.8), rgba(9, 15, 27, 0.94));
}

.schedule-board {
  display: grid;
  gap: 16px;
}

.schedule-day-group {
  display: grid;
  gap: 12px;
}

.schedule-day-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(207, 220, 255, 0.78);
}

.schedule-day-group-head strong {
  color: var(--text-main);
  font-size: 1rem;
}

.schedule-slot-list {
  display: grid;
  gap: 12px;
}

.schedule-slot-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(91, 120, 160, 0.18);
  background: linear-gradient(180deg, rgba(13, 22, 36, 0.86), rgba(9, 15, 27, 0.94));
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.schedule-slot-card.is-editable {
  cursor: pointer;
}

.schedule-slot-card.is-editable:hover {
  transform: translateY(-1px);
  border-color: rgba(108, 144, 255, 0.28);
  box-shadow: 0 18px 30px rgba(4, 12, 30, 0.22);
}

.schedule-slot-card.readonly {
  box-shadow: none;
}

.schedule-slot-card strong {
  font-size: 1rem;
}

.schedule-slot-card p {
  margin: 0;
  color: rgba(219, 228, 255, 0.72);
}

.schedule-slot-meta,
.schedule-slot-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.schedule-slot-time {
  color: rgba(164, 189, 255, 0.82);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.schedule-slot-footer {
  color: rgba(219, 228, 255, 0.68);
  font-size: 0.92rem;
}

.events-upcoming-section.agenda-readonly {
  gap: 12px;
}

.muted-text {
  color: rgba(219, 228, 255, 0.7);
}

@media (max-width: 960px) {

  .events-live-grid,
  .events-catalog-grid,
  .events-live-grid.redesigned,
  .events-live-hero,
  .schedule-layout {
    grid-template-columns: 1fr;
  }

  .events-day-row {
    grid-template-columns: 1fr;
  }

  .events-day-action {
    justify-content: flex-start;
  }

  .schedule-calendar-weekdays,
  .schedule-calendar-grid {
    gap: 8px;
  }
}

@media (max-width: 720px) {

  .events-open-drawer-head,
  .events-inline-actions {
    flex-direction: column;
  }

  .schedule-calendar-weekdays {
    display: none;
  }

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

  .schedule-calendar-cell {
    min-height: 110px;
  }
}

/* Dashboard BI Refresh */
.dashboard-bi-page {
  gap: 18px;
}

.executive-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.executive-kpi {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(92, 116, 148, 0.24);
  background: linear-gradient(180deg, rgba(18, 25, 36, 0.96), rgba(12, 18, 28, 0.98));
  box-shadow: 0 14px 30px rgba(3, 8, 16, 0.28);
}

.executive-kpi-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.executive-kpi-value {
  font-size: 30px;
  line-height: 1;
  color: var(--text-main);
}

.executive-kpi-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.executive-kpi-meta {
  font-size: 12px;
  color: var(--text-soft);
}

.executive-kpi-delta {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.executive-kpi-delta.tone-success,
.executive-band-card.tone-success .executive-band-value,
.executive-bar-fill.tone-success {
  color: var(--success);
}

.executive-kpi-delta.tone-warning,
.executive-band-card.tone-warning .executive-band-value,
.executive-bar-fill.tone-warning {
  color: var(--warning);
}

.executive-kpi-delta.tone-danger,
.executive-band-card.tone-danger .executive-band-value,
.executive-bar-fill.tone-danger {
  color: var(--danger);
}

.executive-kpi-delta.tone-info,
.executive-band-card.tone-info .executive-band-value,
.executive-bar-fill.tone-info {
  color: var(--accent-primary);
}

.executive-kpi.tone-success {
  border-color: rgba(70, 170, 120, 0.24);
}

.executive-kpi.tone-warning {
  border-color: rgba(255, 185, 80, 0.24);
}

.executive-kpi.tone-danger {
  border-color: rgba(255, 104, 104, 0.24);
}

.executive-kpi.tone-info {
  border-color: rgba(109, 141, 255, 0.26);
}

.dashboard-decision-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(92, 116, 148, 0.24);
  background: radial-gradient(circle at top left, rgba(109, 141, 255, 0.18), transparent 42%), linear-gradient(180deg, rgba(18, 25, 36, 0.98), rgba(11, 16, 26, 0.98));
  box-shadow: 0 20px 46px rgba(3, 8, 16, 0.34);
}

.dashboard-decision-hero.tone-danger {
  border-color: rgba(255, 104, 104, 0.28);
}

.dashboard-decision-hero.tone-warning {
  border-color: rgba(255, 185, 80, 0.28);
}

.dashboard-decision-hero.tone-success {
  border-color: rgba(70, 170, 120, 0.28);
}

.dashboard-decision-hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.95fr);
  gap: 22px;
  align-items: start;
}

.dashboard-decision-copy {
  display: grid;
  gap: 14px;
}

.dashboard-decision-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-decision-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  color: var(--text-main);
}

.dashboard-decision-summary {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 72ch;
}

.dashboard-decision-checklist {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-decision-checklist li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
}

.dashboard-decision-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-primary);
}

.dashboard-inline-actions-tight {
  margin-top: 4px;
}

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

.dashboard-decision-highlight {
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(92, 116, 148, 0.16);
  background: rgba(9, 14, 24, 0.72);
}

.dashboard-decision-highlight.tone-success {
  border-color: rgba(70, 170, 120, 0.22);
}

.dashboard-decision-highlight.tone-warning {
  border-color: rgba(255, 185, 80, 0.22);
}

.dashboard-decision-highlight.tone-danger {
  border-color: rgba(255, 104, 104, 0.22);
}

.dashboard-decision-highlight.tone-info {
  border-color: rgba(109, 141, 255, 0.22);
}

.dashboard-decision-highlight-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.dashboard-decision-highlight-value {
  font-size: 28px;
  line-height: 1;
  color: var(--text-main);
}

.dashboard-decision-highlight-meta {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-soft);
}

.dashboard-bi-grid {
  display: grid;
  gap: 16px;
}

.dashboard-bi-grid-primary {
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
}

.dashboard-bi-grid-hero {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  align-items: stretch;
}

.dashboard-bi-grid-secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-bi-grid-full {
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-bi-stack {
  display: grid;
  gap: 16px;
}

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

.dashboard-section-header-compact {
  margin-top: 4px;
}

.dashboard-section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dashboard-section-title {
  margin: 0;
  font-size: 22px;
  color: var(--text-main);
}

.dashboard-section-description {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.executive-bar-panel,
.alert-rail-panel,
.executive-bands-panel,
.executive-action-panel,
.dashboard-today-panel {
  min-height: 100%;
}

.executive-bar-list {
  display: grid;
  gap: 12px;
}

.executive-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 1.2fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(11, 16, 26, 0.72);
  border: 1px solid rgba(79, 102, 132, 0.18);
}

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

.executive-bar-title {
  font-size: 14px;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.executive-bar-meta {
  font-size: 12px;
  color: var(--text-soft);
}

.executive-bar-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(38, 50, 70, 0.9);
  overflow: hidden;
}

.executive-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(109, 141, 255, 0.88), rgba(89, 206, 255, 0.9));
}

.executive-bar-value {
  font-size: 13px;
  color: var(--text-main);
  white-space: nowrap;
}

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

.alert-rail-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(13, 18, 28, 0.82);
  border: 1px solid rgba(94, 111, 140, 0.18);
}

.alert-rail-item strong {
  font-size: 14px;
  color: var(--text-main);
}

.alert-rail-meta {
  font-size: 12px;
  color: var(--text-soft);
}

.alert-rail-item.tone-danger {
  border-color: rgba(255, 104, 104, 0.24);
}

.alert-rail-item.tone-warning {
  border-color: rgba(255, 185, 80, 0.24);
}

.alert-rail-item.tone-info {
  border-color: rgba(109, 141, 255, 0.26);
}

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

.executive-band-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(11, 16, 26, 0.72);
  border: 1px solid rgba(79, 102, 132, 0.18);
}

.executive-band-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.executive-band-value {
  font-size: 24px;
  color: var(--text-main);
}

.executive-band-meta {
  font-size: 12px;
  color: var(--text-soft);
}

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

.executive-action-dock .btn {
  width: 100%;
  justify-content: center;
}

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

.dashboard-today-tile {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(11, 16, 26, 0.72);
  border: 1px solid rgba(79, 102, 132, 0.18);
}

.dashboard-today-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.dashboard-today-value {
  font-size: 24px;
  color: var(--text-main);
}

.dashboard-today-meta {
  font-size: 12px;
  color: var(--text-soft);
}

.dashboard-inline-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.dashboard-inline-actions .btn {
  min-width: 140px;
}


.dashboard-filter-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}

.dashboard-filter-toolbar-main {
  display: flex;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
}

.dashboard-clan-filter {
  display: grid;
  gap: 8px;
  min-width: 260px;
}

.dashboard-clan-filter-select {
  min-width: 260px;
}

.dashboard-tenant-focus-grid {
  align-items: start;
}

.dashboard-player-page .attendance-days {
  justify-content: flex-start;
}

.bonus-rule-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.bonus-rule-metric-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(92, 116, 148, 0.22);
  background: linear-gradient(180deg, rgba(18, 25, 36, 0.96), rgba(13, 19, 30, 0.98));
  box-shadow: 0 14px 30px rgba(3, 8, 16, 0.22);
}

.bonus-rule-metric-label,
.bonus-rule-preview-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.bonus-rule-metric-value {
  font-size: 28px;
  line-height: 1;
  color: var(--text-main);
}

.bonus-rule-metric-meta,
.bonus-rule-preview-meta {
  font-size: 12px;
  color: var(--text-soft);
}

.bonus-rule-workspace {
  gap: 16px;
}

.bonus-rule-toolbar {
  align-items: center;
}

.bonus-rule-master-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: start;
}

.bonus-rule-list-column,
.bonus-rule-editor-column {
  min-width: 0;
}

.bonus-rule-card-list {
  display: grid;
  gap: 10px;
}

.bonus-rule-group-list {
  display: grid;
  gap: 14px;
}

.bonus-rule-group {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(90, 116, 148, 0.18);
  background: linear-gradient(180deg, rgba(13, 20, 31, 0.9), rgba(9, 15, 24, 0.98));
}

.bonus-rule-group-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.bonus-rule-group-copy {
  display: grid;
  gap: 4px;
}

.bonus-rule-group-copy strong {
  font-size: 15px;
  color: var(--text-main);
}

.bonus-rule-group-copy span {
  font-size: 12px;
  color: var(--text-soft);
}

.field-label-with-tooltip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.field-label-text {
  min-width: 0;
}

.field-tooltip-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(109, 141, 255, 0.26);
  background: rgba(22, 34, 52, 0.9);
  color: rgba(220, 231, 255, 0.9);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
}

.field-tooltip-trigger:focus-visible,
.field-tooltip-trigger:hover {
  border-color: rgba(109, 141, 255, 0.42);
  background: rgba(28, 42, 64, 0.96);
}

.bonus-rule-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(90, 116, 148, 0.24);
  background: linear-gradient(180deg, rgba(14, 21, 32, 0.94), rgba(10, 15, 24, 0.99));
  box-shadow: 0 16px 34px rgba(2, 8, 16, 0.2);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.bonus-rule-card:hover {
  transform: translateY(-1px);
  border-color: rgba(109, 141, 255, 0.34);
  box-shadow: 0 18px 34px rgba(2, 8, 16, 0.22);
}

.bonus-rule-card.selected {
  border-color: rgba(109, 141, 255, 0.54);
  box-shadow: inset 0 0 0 1px rgba(109, 141, 255, 0.18), 0 18px 34px rgba(2, 8, 16, 0.26);
  background: linear-gradient(180deg, rgba(20, 30, 45, 0.97), rgba(12, 19, 30, 0.99));
}

.bonus-rule-card-main {
  width: 100%;
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.bonus-rule-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.bonus-rule-card-head-left {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bonus-rule-priority-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(109, 141, 255, 0.28);
  background: rgba(26, 39, 61, 0.86);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(220, 231, 255, 0.92);
}

.bonus-rule-card-title,
.bonus-rule-preview-value,
.bonus-rule-precedence-value {
  font-size: 16px;
  line-height: 1.35;
  color: var(--text-main);
}

.bonus-rule-card-meta,
.bonus-rule-card-order-copy,
.bonus-rule-precedence-meta {
  font-size: 12px;
  color: var(--text-soft);
}

.bonus-rule-card-actions {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(90, 116, 148, 0.16);
}

.bonus-rule-order-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bonus-rule-order-button {
  min-width: 70px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(90, 116, 148, 0.22);
  background: rgba(15, 20, 30, 0.88);
  color: var(--text-main);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.bonus-rule-order-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(109, 141, 255, 0.34);
  background: rgba(20, 28, 41, 0.96);
}

.bonus-rule-order-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.bonus-rule-precedence-panel {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(90, 116, 148, 0.18);
  background: linear-gradient(180deg, rgba(13, 20, 31, 0.92), rgba(11, 16, 26, 0.98));
}

.bonus-rule-precedence-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.bonus-rule-editor-panel {
  background: linear-gradient(180deg, rgba(16, 23, 34, 0.98), rgba(9, 15, 24, 1));
  border: 1px solid rgba(92, 116, 148, 0.22);
  box-shadow: 0 20px 42px rgba(2, 8, 16, 0.28);
}

.bonus-rule-preview {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(109, 141, 255, 0.22);
  background: linear-gradient(135deg, rgba(19, 31, 49, 0.96), rgba(14, 21, 32, 0.98));
}

.bonus-rule-preview-inline {
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(17, 28, 44, 0.94), rgba(13, 21, 33, 0.98));
}

.bonus-rule-toggle {
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(90, 116, 148, 0.2);
  background: rgba(13, 18, 28, 0.72);
}

.distribution-panel-body {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.distribution-panel-hero {
  padding-bottom: 20px;
}

.distribution-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.distribution-highlight {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(90, 116, 148, 0.16);
  background: rgba(11, 16, 26, 0.72);
}

.distribution-highlight.tone-success {
  border-color: rgba(70, 170, 120, 0.26);
}

.distribution-highlight.tone-warning {
  border-color: rgba(255, 185, 80, 0.24);
}

.distribution-highlight.tone-danger {
  border-color: rgba(255, 104, 104, 0.22);
}

.distribution-highlight.tone-info {
  border-color: rgba(109, 141, 255, 0.24);
}

.distribution-highlight-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.distribution-highlight-value {
  font-size: 18px;
  line-height: 1.2;
  color: var(--text-main);
}

.distribution-highlight-meta {
  font-size: 12px;
  color: var(--text-soft);
}

.distribution-chart-shell {
  display: grid;
  place-items: center;
  padding: 8px;
}

.distribution-chart {
  width: 196px;
  height: 196px;
  border-radius: 50%;
  background: conic-gradient(var(--distribution-gradient));
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 34px rgba(2, 8, 16, 0.26);
}

.distribution-chart-center {
  width: 102px;
  height: 102px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  gap: 2px;
  background: linear-gradient(180deg, rgba(10, 15, 24, 0.98), rgba(18, 25, 36, 0.98));
  border: 1px solid rgba(90, 116, 148, 0.18);
  text-align: center;
}

.distribution-chart-center strong {
  font-size: 30px;
  line-height: 1;
  color: var(--text-main);
}

.distribution-chart-center span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.distribution-legend {
  display: grid;
  gap: 10px;
}

.distribution-legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(90, 116, 148, 0.14);
  background: rgba(13, 18, 28, 0.62);
}

.distribution-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex: 0 0 12px;
}

.distribution-legend-dot.tone-info {
  background: rgba(109, 141, 255, 0.92);
}

.distribution-legend-dot.tone-success {
  background: rgba(72, 201, 176, 0.9);
}

.distribution-legend-dot.tone-warning {
  background: rgba(255, 180, 92, 0.92);
}

.distribution-legend-dot.tone-danger {
  background: rgba(255, 119, 119, 0.9);
}

.distribution-legend-dot.tone-neutral {
  background: rgba(186, 143, 255, 0.9);
}

.distribution-legend-copy {
  display: grid;
  gap: 2px;
}

.distribution-legend-copy strong {
  font-size: 13px;
  color: var(--text-main);
}

.distribution-legend-copy span {
  font-size: 12px;
  color: var(--text-soft);
}

/* Public commercial landing */
.landing-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(90, 180, 255, 0.16), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(226, 188, 104, 0.12), transparent 28%),
    linear-gradient(180deg, #f7f9fc 0%, #edf3f8 100%);
  color: #102033;
}

.landing-page a {
  color: inherit;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px 34px;
  border-bottom: 1px solid rgba(109, 141, 255, 0.25);
  background: linear-gradient(90deg, rgba(10, 18, 32, 0.98), rgba(17, 24, 39, 0.94));
  backdrop-filter: blur(16px);
}

.landing-brand {
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-nav-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  color: #8f9db0;
  font-size: 14px;
  font-weight: 750;
}

.landing-nav-links a {
  text-decoration: none;
  color: inherit;
}

.landing-nav-links a:hover,
.landing-nav-links a:focus-visible {
  color: #c9a86a;
}

.landing-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.01em;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.landing-btn:hover {
  transform: translateY(-1px);
}

.landing-btn:focus-visible {
  outline: 2px solid #2f8fdf;
  outline-offset: 3px;
}

.landing-btn-primary {
  color: #04111d;
  background: linear-gradient(180deg, #77c9ff, #2f8fdf);
  border-color: rgba(47, 143, 223, 0.48);
  box-shadow: 0 16px 32px rgba(47, 143, 223, 0.26);
}

.landing-btn-secondary {
  color: #12324f !important;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(47, 143, 223, 0.34);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.landing-btn-secondary:hover,
.landing-btn-secondary:focus-visible {
  color: #0d2740 !important;
  background: #ffffff;
  border-color: rgba(47, 143, 223, 0.48);
}

.landing-hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(500px, 1.08fr);
  gap: 46px;
  align-items: center;
  width: min(1260px, calc(100% - 48px));
  margin: 0 auto;
  padding: 62px 0 32px;
}

.landing-hero-copy {
  display: grid;
  gap: 20px;
  align-content: center;
}

.landing-eyebrow {
  color: #246a9f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.landing-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #071827;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.landing-hero-copy p {
  max-width: 640px;
  margin: 0;
  color: #33485f;
  font-size: 19px;
  line-height: 1.55;
}

.landing-hero-actions,
.landing-final-actions,
.landing-middle-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.landing-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 2px 0 0;
  list-style: none;
}

.landing-hero-proof li {
  color: #20354d;
  border: 1px solid rgba(57, 82, 112, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
}

.landing-hero-preview {
  min-width: 0;
}

.landing-product-frame {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(126, 156, 196, 0.34);
  background: linear-gradient(180deg, rgba(17, 28, 44, 0.985), rgba(6, 11, 20, 0.995));
  box-shadow: 0 30px 80px rgba(7, 14, 26, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.landing-product-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid rgba(126, 156, 196, 0.22);
  background: linear-gradient(90deg, rgba(18, 28, 44, 0.96), rgba(12, 18, 29, 0.98));
}

.landing-product-mark {
  color: #e8c878;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.landing-product-context {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.landing-product-context strong {
  color: #f2f7ff;
  font-size: 15px;
}

.landing-product-context span,
.landing-product-status {
  color: #c0cede;
  font-size: 13px;
}

.landing-product-status {
  border: 1px solid rgba(47, 191, 113, 0.42);
  border-radius: 999px;
  padding: 5px 9px;
  color: #b7f5d2;
  background: rgba(47, 191, 113, 0.08);
  font-weight: 800;
}

.landing-product-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.landing-preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.landing-metric,
.landing-preview-panel {
  display: grid;
  min-width: 0;
  border-radius: 16px;
  border: 1px solid rgba(128, 158, 197, 0.26);
  background: rgba(19, 31, 49, 0.8);
}

.landing-metric {
  gap: 5px;
  padding: 12px;
}

.landing-metric span,
.landing-metric small {
  color: #c0cede;
  font-size: 13px;
}

.landing-metric strong {
  color: #f2f7ff;
  font-size: 24px;
  line-height: 1;
}

.landing-metric.tone-loot strong,
.landing-preview-pill.tone-loot {
  color: #e8c878;
}

.landing-metric.tone-success strong,
.landing-preview-pill.tone-success {
  color: #9af0bd;
}

.landing-metric.tone-warning strong,
.landing-preview-pill.tone-warning {
  color: #ffd28a;
}

.landing-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.9fr);
  gap: 14px;
}

.landing-preview-panel {
  gap: 10px;
  padding: 13px;
}

.landing-preview-panel h3 {
  margin: 0;
  color: #f2f7ff;
  font-size: 15px;
}

.landing-preview-panel p {
  margin: 0;
  color: #c0cede;
  font-size: 13px;
  line-height: 1.45;
}

.landing-preview-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid rgba(126, 156, 196, 0.16);
}

.landing-preview-row:first-of-type {
  border-top: 0;
}

.landing-preview-row-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.landing-preview-row-copy strong,
.landing-preview-row-copy span {
  overflow-wrap: anywhere;
}

.landing-preview-row-copy strong {
  color: #f2f7ff;
  font-size: 14px;
}

.landing-preview-row-copy span {
  color: #c0cede;
  font-size: 13px;
}

.landing-preview-pill {
  border: 1px solid rgba(126, 156, 196, 0.28);
  border-radius: 999px;
  padding: 5px 8px;
  color: #e8f1fb;
  background: rgba(26, 38, 58, 0.82);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.landing-chart-panel {
  align-content: space-between;
}

.landing-chart-bars {
  min-height: 148px;
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: repeating-linear-gradient(0deg, rgba(123, 153, 190, 0.08) 0 1px, transparent 1px 28px);
}

.landing-chart-bars .bar {
  flex: 1;
  min-width: 12px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #77c9ff, #2f8fdf);
  box-shadow: 0 10px 26px rgba(59, 164, 255, 0.18);
}

.landing-chart-bars .h-40 {
  height: 40%;
}

.landing-chart-bars .h-54 {
  height: 54%;
}

.landing-chart-bars .h-62 {
  height: 62%;
}

.landing-chart-bars .h-68 {
  height: 68%;
}

.landing-chart-bars .h-78 {
  height: 78%;
}

.landing-chart-bars .h-90 {
  height: 90%;
}

.landing-value-strip {
  width: min(1180px, calc(100% - 48px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 auto 26px;
  overflow: hidden;
  border: 1px solid rgba(55, 76, 101, 0.2);
  border-radius: 20px;
  background: rgba(55, 76, 101, 0.16);
  box-shadow: 0 18px 40px rgba(25, 38, 58, 0.08);
}

.landing-value-item {
  min-height: 112px;
  display: grid;
  gap: 7px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.84);
}

.landing-value-item strong {
  color: #071827;
  font-size: 16px;
}

.landing-value-item span {
  color: #35495f;
  font-size: 14px;
  line-height: 1.45;
}

.landing-section,
.landing-final {
  width: min(1180px, calc(100% - 48px));
  margin: 26px auto 0;
}

.landing-section {
  padding: 42px;
  border: 1px solid rgba(126, 156, 196, 0.24);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(18, 28, 44, 0.97), rgba(8, 13, 22, 0.99));
  color: #f2f7ff;
  box-shadow: 0 28px 70px rgba(7, 14, 26, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.landing-section-heading {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin-bottom: 28px;
}

.landing-section .landing-eyebrow,
.landing-final .landing-eyebrow {
  color: #8bd0ff;
}

.landing-section-heading h2,
.landing-final h2 {
  margin: 0;
  color: #f2f7ff;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.landing-section-heading p,
.landing-final p {
  max-width: 840px;
  margin: 0;
  color: #c4d0df;
  font-size: 17px;
  line-height: 1.58;
}

.landing-operation-grid,
.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.landing-operation-card,
.landing-steps li,
.landing-faq-item {
  border-radius: 18px;
  border: 1px solid rgba(126, 156, 196, 0.24);
  background: rgba(20, 31, 49, 0.74);
}

.landing-operation-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.landing-operation-card strong,
.landing-steps strong {
  color: #f2f7ff;
  font-size: 16px;
}

.landing-operation-card p,
.landing-steps p,
.landing-faq-item p {
  margin: 0;
  color: #c4d0df;
  line-height: 1.55;
}

.landing-steps {
  padding: 0;
  margin: 0;
  list-style: none;
}

.landing-steps li {
  display: grid;
  gap: 9px;
  padding: 18px;
}

.landing-step-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #04111d;
  background: linear-gradient(180deg, #77c9ff, #2f8fdf);
  font-weight: 900;
}

.landing-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 880px;
  gap: 10px;
  margin-bottom: 22px;
}

.landing-faq-item {
  padding: 0;
  overflow: hidden;
}

.landing-faq-item summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: #f2f7ff;
  font-weight: 850;
  list-style: none;
}

.landing-faq-item summary::-webkit-details-marker {
  display: none;
}

.landing-faq-item summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #04111d;
  background: #77c9ff;
  font-weight: 900;
}

.landing-faq-item[open] summary::after {
  content: "−";
}

.landing-faq-item p {
  padding: 0 20px 20px;
}

.landing-middle-cta {
  margin-top: 4px;
}

.landing-final {
  display: grid;
  gap: 16px;
  padding: 56px;
  border: 1px solid rgba(126, 156, 196, 0.28);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  background: linear-gradient(135deg, rgba(23, 36, 56, 0.98), rgba(7, 11, 19, 1));
  color: #f2f7ff;
}

.landing-final h2 {
  max-width: 760px;
  font-size: clamp(32px, 4vw, 50px);
}

.landing-final p {
  max-width: 720px;
}

.landing-final .landing-btn-secondary {
  color: #f2f7ff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

@media (max-width: 1120px) {

  .landing-hero,
  .landing-dashboard-grid,
  .landing-operation-grid,
  .landing-steps {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: 0;
    padding-top: 52px;
  }

  .landing-value-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .landing-nav {
    grid-template-columns: 1fr;
    padding: 12px 18px;
  }

  .landing-nav-links {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .landing-nav .landing-btn {
    width: 100%;
  }

  .landing-hero,
  .landing-value-strip,
  .landing-section,
  .landing-final {
    width: min(100% - 28px, 1180px);
  }

  .landing-hero {
    gap: 24px;
    padding: 34px 0 24px;
  }

  .landing-hero h1 {
    font-size: 36px;
    line-height: 1.06;
  }

  .landing-hero-copy p,
  .landing-section-heading p,
  .landing-final p {
    font-size: 15px;
  }

  .landing-hero-proof li {
    font-size: 12px;
  }

  .landing-preview-metrics,
  .landing-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .landing-chart-panel {
    display: none;
  }

  .landing-product-topbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .landing-product-status {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .landing-preview-row {
    grid-template-columns: 1fr;
  }

  .landing-preview-pill {
    justify-self: start;
  }

  .landing-section {
    padding: 28px;
  }

  .landing-section-heading h2,
  .landing-final h2 {
    font-size: 28px;
  }

  .landing-final {
    padding: 30px;
  }
}

/* Clan progression observatory */
.progression-page {
  display: grid;
  gap: 16px;
  min-height: calc(100vh - 170px);
}

.progression-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 2px 0;
}

.progression-page-heading {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.progression-page-heading h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  color: var(--text-main);
}

.progression-page-heading p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}

.progression-workbench {
  display: grid;
  grid-template-columns: minmax(300px, 336px) minmax(0, 1fr);
  min-height: 650px;
  border: 1px solid rgba(105, 136, 176, 0.26);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 21, 33, 0.98), rgba(9, 14, 23, 0.99));
  box-shadow: 0 22px 46px rgba(2, 8, 16, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.progression-member-rail {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-right: 1px solid rgba(90, 116, 148, 0.26);
  background: linear-gradient(180deg, rgba(20, 30, 46, 0.92), rgba(12, 18, 29, 0.98));
}

.progression-member-rail-head {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(90, 116, 148, 0.22);
}

.progression-member-rail-copy {
  display: grid;
  gap: 3px;
}

.progression-member-rail-copy strong {
  color: var(--text-main);
  font-size: 15px;
}

.progression-member-rail-copy span,
.progression-rail-status {
  color: var(--text-soft);
  font-size: 12px;
}

.progression-rail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.progression-rail-actions .btn {
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 8px;
}

.progression-member-list {
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
}

.progression-member-row {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
  padding: 9px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-main);
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, opacity 140ms ease, box-shadow 140ms ease;
}

.progression-member-row+.progression-member-row {
  margin-top: 3px;
}

.progression-member-row:hover {
  border-color: rgba(122, 158, 202, 0.28);
  background: rgba(30, 43, 64, 0.56);
}

.progression-member-row.is-active {
  background: rgba(18, 29, 45, 0.72);
}

.progression-member-row.is-inactive {
  opacity: 0.52;
  background: rgba(8, 13, 22, 0.48);
}

.progression-member-row.is-focused {
  opacity: 1;
  border-color: rgba(90, 180, 255, 0.58);
  background: linear-gradient(180deg, rgba(31, 48, 72, 0.92), rgba(18, 29, 45, 0.92));
  box-shadow: inset 0 0 0 1px rgba(90, 180, 255, 0.14), 0 8px 18px rgba(2, 8, 16, 0.24);
}

.progression-member-color {
  width: 18px;
  height: 4px;
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.08);
}

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

.progression-member-copy strong,
.progression-member-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progression-member-copy strong {
  font-size: 13px;
  color: var(--text-main);
}

.progression-member-copy small {
  font-size: 11px;
  color: var(--text-soft);
}

.progression-member-toggle {
  width: 30px;
  height: 30px;
  position: relative;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(98, 128, 165, 0.3);
  background: rgba(11, 17, 27, 0.82);
  color: var(--text-main);
  cursor: pointer;
  line-height: 1;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.progression-member-toggle:hover,
.progression-member-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(130, 174, 226, 0.5);
  outline: 0;
  box-shadow: 0 8px 18px rgba(2, 8, 16, 0.28);
}

.progression-member-toggle.remove {
  color: rgba(214, 225, 241, 0.86);
}

.progression-member-toggle.add {
  color: #b6f4d0;
}

.progression-member-toggle.remove:hover,
.progression-member-toggle.remove:focus-visible {
  color: #f3b8bd;
  border-color: rgba(226, 107, 118, 0.42);
  background: rgba(45, 19, 27, 0.52);
}

.progression-member-toggle.add:hover,
.progression-member-toggle.add:focus-visible {
  border-color: rgba(94, 213, 149, 0.42);
  background: rgba(18, 42, 31, 0.56);
}

.progression-member-toggle-icon {
  position: relative;
  width: 12px;
  height: 12px;
  display: block;
}

.progression-member-toggle-icon::before,
.progression-member-toggle-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.progression-member-toggle-icon.is-add::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.progression-member-toggle-icon.is-remove::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.progression-member-toggle-icon.is-remove::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.progression-rail-status {
  padding: 10px 14px;
  border-top: 1px solid rgba(90, 116, 148, 0.18);
}

.progression-chart-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: radial-gradient(circle at 78% 0%, rgba(59, 164, 255, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(12, 18, 29, 0.96), rgba(7, 11, 19, 0.99));
}

.progression-chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(90, 116, 148, 0.2);
}

.progression-chart-controls {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.progression-metric-tabs,
.progression-period-tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(102, 133, 174, 0.28);
  background: rgba(8, 13, 22, 0.72);
}

.progression-metric-tab,
.progression-period-tab {
  min-height: 34px;
  padding: 7px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font-weight: 600;
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.progression-period-tab {
  min-width: 48px;
}

.progression-metric-tab:hover,
.progression-period-tab:hover {
  color: var(--text-main);
  background: rgba(41, 58, 84, 0.58);
}

.progression-metric-tab.is-active,
.progression-period-tab.is-active {
  color: #06111d;
  background: linear-gradient(180deg, var(--accent-primary-hover), var(--accent-primary));
  box-shadow: 0 8px 18px rgba(59, 164, 255, 0.18);
}

.progression-growth-card {
  min-width: min(300px, 42%);
  display: grid;
  gap: 3px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(212, 169, 77, 0.24);
  background: linear-gradient(180deg, rgba(36, 31, 20, 0.72), rgba(15, 20, 29, 0.86));
}

.progression-growth-label {
  color: var(--text-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.progression-growth-value {
  color: var(--accent-loot-soft);
  font-size: 14px;
  line-height: 1.35;
}

.progression-chart-frame {
  position: relative;
  min-width: 0;
  min-height: 500px;
  padding: 14px 16px 18px;
}

.progression-chart-svg-host {
  width: 100%;
  height: 100%;
  min-height: 500px;
}

.progression-chart-svg {
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: block;
}

.progression-chart-plot-bg {
  fill: rgba(13, 20, 31, 0.64);
  stroke: rgba(90, 116, 148, 0.18);
}

.progression-chart-grid-line {
  stroke: rgba(123, 153, 190, 0.16);
  stroke-width: 1;
  stroke-dasharray: 5 7;
}

.progression-chart-grid-line.vertical {
  stroke: rgba(123, 153, 190, 0.1);
}

.progression-chart-axis {
  stroke: rgba(154, 179, 213, 0.34);
  stroke-width: 1.2;
}

.progression-chart-axis-label {
  fill: rgba(204, 216, 235, 0.68);
  font-size: 12px;
  font-family: "Exo 2", "Segoe UI", sans-serif;
}

.progression-chart-line {
  opacity: 0.9;
  cursor: pointer;
  transition: opacity 140ms ease, stroke-width 140ms ease, filter 140ms ease;
  pointer-events: stroke;
}

.progression-chart-line.is-muted {
  opacity: 0.18;
}

.progression-chart-line.is-focused {
  opacity: 1;
  filter: url(#progression-line-glow);
}

.progression-chart-point-marker {
  cursor: pointer;
  outline: 0;
}

.progression-chart-point-hit {
  fill: transparent;
  pointer-events: all;
}

.progression-chart-point-halo {
  opacity: 0.18;
  stroke-width: 1.4;
}

.progression-chart-point-core {
  stroke-width: 2.2;
}

.progression-chart-point-marker.is-stacked .progression-chart-point-halo {
  fill: transparent;
  opacity: 0.52;
}

.progression-chart-point-marker.is-stacked .progression-chart-point-core {
  stroke-width: 2.4;
}

.progression-chart-point-marker:hover .progression-chart-point-halo,
.progression-chart-point-marker:focus-visible .progression-chart-point-halo {
  opacity: 0.34;
  stroke-width: 2;
}

.progression-empty-state,
.progression-chart-empty-samples {
  min-height: 500px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--text-soft);
  border: 1px dashed rgba(104, 136, 176, 0.26);
  border-radius: 8px;
  background: rgba(9, 14, 23, 0.46);
  padding: 24px;
}

@media (max-width: 1100px) {
  .bonus-rule-master-detail {
    grid-template-columns: 1fr;
  }

  .progression-workbench {
    grid-template-columns: 1fr;
  }

  .progression-member-rail {
    max-height: 360px;
    border-right: 0;
    border-bottom: 1px solid rgba(90, 116, 148, 0.26);
  }

  .progression-chart-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .progression-chart-controls {
    align-items: stretch;
  }

  .progression-growth-card {
    min-width: 0;
  }
}

@media (max-width: 900px) {
  .distribution-highlight-grid {
    grid-template-columns: 1fr;
  }

  .distribution-panel-body {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .distribution-legend {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .bonus-rule-metrics {
    grid-template-columns: 1fr;
  }

  .progression-page-heading h1 {
    font-size: 22px;
  }

  .progression-metric-tabs,
  .progression-period-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .progression-metric-tab,
  .progression-period-tab {
    width: 100%;
  }

  .progression-member-rail-head {
    padding: 12px;
  }

  .progression-chart-frame,
  .progression-chart-svg,
  .progression-chart-svg-host,
  .progression-empty-state,
  .progression-chart-empty-samples {
    min-height: 420px;
  }

  .bonus-rule-group-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .distribution-chart {
    width: 172px;
    height: 172px;
  }

  .distribution-chart-center {
    width: 92px;
    height: 92px;
  }
}

@media (max-width: 1100px) {

  .dashboard-bi-grid-hero,
  .dashboard-bi-grid-primary,
  .dashboard-bi-grid-secondary,
  .dashboard-decision-hero-main {
    grid-template-columns: 1fr;
  }

  .dashboard-filter-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-filter-toolbar-main {
    align-items: stretch;
  }

  .dashboard-clan-filter,
  .dashboard-clan-filter-select {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .dashboard-decision-highlight-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-decision-title {
    font-size: 24px;
  }

  .executive-kpi-grid,
  .dashboard-today-grid,
  .executive-band-grid,
  .executive-action-dock,
  .distribution-highlight-grid {
    grid-template-columns: 1fr;
  }

  .executive-bar-row {
    grid-template-columns: 1fr;
  }

  .executive-bar-value {
    justify-self: flex-start;
  }
}


@media (max-width: 900px) {
  .onboarding-summary-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .context-selection-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .context-selection-grid {
    grid-template-columns: 1fr;
  }
}


/* Landing CSS synchronization guard
   Keep this block at the end of every stylesheet served by the app.
   It prevents the commercial landing from inheriting stale split-background
   rules and guarantees readable contrast in both source and dist entrypoints. */
.landing-page {
  background:
    radial-gradient(circle at 12% 8%, rgba(90, 180, 255, 0.16), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(226, 188, 104, 0.12), transparent 28%),
    linear-gradient(180deg, #f7f9fc 0%, #edf3f8 100%) !important;
  color: #102033 !important;
}

.landing-section,
.landing-final {
  color: #f2f7ff !important;
  background: linear-gradient(145deg, rgba(18, 28, 44, 0.985), rgba(8, 13, 22, 1)) !important;
  border-color: rgba(126, 156, 196, 0.28) !important;
  box-shadow: 0 28px 70px rgba(7, 14, 26, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.landing-section .landing-eyebrow,
.landing-final .landing-eyebrow {
  color: #8bd0ff !important;
}

.landing-section-heading h2,
.landing-final h2,
.landing-operation-card strong,
.landing-steps strong,
.landing-faq-item summary {
  color: #f2f7ff !important;
}

.landing-section-heading p,
.landing-final p,
.landing-operation-card p,
.landing-steps p,
.landing-faq-item p {
  color: #c8d5e6 !important;
}

.landing-operation-card,
.landing-steps li,
.landing-faq-item {
  background: rgba(20, 31, 49, 0.82) !important;
  border-color: rgba(126, 156, 196, 0.28) !important;
}

.landing-value-item {
  color: #102033 !important;
  background: rgba(255, 255, 255, 0.88) !important;
}

.landing-value-item strong {
  color: #071827 !important;
}

.landing-value-item span {
  color: #35495f !important;
}

.landing-product-frame,
.landing-preview-panel,
.landing-metric {
  color: #f2f7ff !important;
}

.landing-product-context strong,
.landing-preview-panel h3,
.landing-preview-row-copy strong,
.landing-metric strong {
  color: #f2f7ff !important;
}

.landing-product-context span,
.landing-preview-panel p,
.landing-preview-row-copy span,
.landing-metric span,
.landing-metric small {
  color: #c8d5e6 !important;
}

.landing-final .landing-btn-secondary {
  color: #f2f7ff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
}