/* ═══════════ MXCP FRONTEND CSS ═══════════ */
/* Private TPE Relationship Management System */
/* Dark, sophisticated, premium Gothic aesthetic */

/* ═══════════ CSS VARIABLES ═══════════ */
:root {
  --bg: transparent; /* Rely on theme background */
  --bg2: rgba(18, 18, 18, 0.4);
  --surface: rgba(22, 22, 22, 0.5);
  --surface2: rgba(28, 28, 28, 0.5);
  --surface3: rgba(36, 36, 36, 0.5);
  --border: rgba(255, 255, 255, 0.08);
  --border2: rgba(255, 255, 255, 0.12);
  
  /* Modern Multi-Color Accent System */
  --primary: #3b82f6;        /* Sapphire Blue */
  --primary-lt: #60a5fa;
  --primary-dk: #1d4ed8;
  
  --teal: #14b8a6;           /* Cool Teal / Mint */
  --teal-lt: #2dd4bf;
  --teal-dk: #0f766e;
  
  --emerald: #10b981;        /* Emerald Green */
  --emerald-lt: #34d399;
  --emerald-dk: #047857;
  
  --purple: #8b5cf6;         /* Imperial Violet */
  --purple-lt: #a78bfa;
  --purple-dk: #6d28d9;
  
  --indigo: #6366f1;         /* Indigo / Royal */
  --indigo-lt: #818cf8;
  --indigo-dk: #4338ca;
  
  --cyan: #06b6d4;           /* Cold Cyan / Steel */
  --cyan-lt: #38bdf8;
  --cyan-dk: #0e7490;
  
  --rose: #be123c;           /* Deep Velvet Rose / Burgundy */
  --rose-lt: #e11d48;        /* Vivid Ruby Red */
  --rose-dk: #881337;
  
  --orange: #f97316;         /* Orange / Flame */
  --orange-lt: #fb923c;
  --orange-dk: #c2410c;
  
  --gold: #f59e0b;           /* Warm Amber Gold */
  --gold-lt: #fbbf24;
  --gold-dk: #d97706;
  
  --crimson: #dc2626;        /* True Crimson Red */
  --crimson-dk: #991b1b;     /* Deep Blood Red */
  --crimson-lt: #ef4444;     /* Vivid Pure Red */
  
  --text: #ffffff;
  --text2: #e2e8f0;
  --text3: #94a3b8;
  --success: #10b981;        /* Emerald Green */
  --success-dk: #059669;
  --success-lt: #34d399;
  --warning: #f59e0b;
  --danger: #dc2626;
  --danger-lt: #ef4444;
  --danger-dk: #991b1b;
  --info: #38bdf8;
  
  --font-h: 'Montserrat', 'Inter', system-ui, -apple-system, sans-serif;
  --font-b: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;
  --r: 6px;
  --r-lg: 12px;
  --r-xl: 16px;
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-gold: 0 0 30px rgba(245, 158, 11, 0.18);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.15);
  --t: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --border-gold-dim: rgba(245, 158, 11, 0.3);
  --border-dim: rgba(255, 255, 255, 0.15);
  --glass-blur: blur(16px);
}

/* ═══════════ SECTION 1: RESET & BASE ═══════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.portal-page-title,
h1.portal-page-title {
  font-family: 'Montserrat', 'Arial Black', Impact, sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.35), 0 0 20px rgba(255, 255, 255, 0.15);
}

html, body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Webkit scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--surface);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--r);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Selection */
::selection {
  background-color: var(--primary);
  color: white;
}
::-moz-selection {
  background-color: var(--primary);
  color: white;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

a {
  color: var(--cyan-lt);
  text-decoration: none;
  transition: var(--t);
}

a:hover {
  text-decoration: underline;
  color: #ffffff;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* ═══════════ SECTION 2: TYPOGRAPHY ═══════════ */
.mxcp-module-container h1, .mxcp-module h1 {
  font-family: var(--font-h);
  font-size: 2.4rem;
  color: #ffffff;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 0.5em;
  font-weight: 700;
}

.mxcp-module-container h2, .mxcp-module h2 {
  font-family: var(--font-h);
  font-size: 1.8rem;
  color: #ffffff;
  letter-spacing: 0.03em;
  line-height: 1.3;
  margin-bottom: 0.4em;
  font-weight: 600;
}

.mxcp-module-container h3, .mxcp-module h3 {
  font-family: var(--font-h);
  font-size: 1.35rem;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin-bottom: 0.3em;
  font-weight: 600;
}

.mxcp-module-container h4, .mxcp-module h4 {
  font-family: var(--font-h);
  font-size: 1.1rem;
  color: var(--text2);
  letter-spacing: 0.02em;
  margin-bottom: 0.25em;
  font-weight: 600;
}

.mxcp-module-container h5, .mxcp-module-container h6, .mxcp-module h5, .mxcp-module h6 {
  font-family: var(--font-h);
  color: var(--text2);
  margin-bottom: 0.2em;
  font-weight: 500;
}

p {
  margin-bottom: 1em;
  color: var(--text);
  line-height: 1.7;
}

strong, b {
  color: white;
  font-weight: 700;
}

em, i {
  color: var(--text2);
  font-style: italic;
}

small {
  font-size: 0.82rem;
  color: var(--text3);
}

code {
  font-family: monospace;
  background-color: var(--surface3);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  padding: 2px 6px;
  font-size: 0.85em;
  color: var(--cyan-lt);
}

pre {
  background-color: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  overflow-x: auto;
  font-size: 0.85rem;
}

pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font-size: 1em;
}

blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 20px;
  margin: 20px 0;
  color: var(--text2);
  font-style: italic;
}

.text-teal {
  color: var(--teal) !important;
}

.text-emerald {
  color: var(--emerald) !important;
}

.text-purple {
  color: var(--purple) !important;
}

.text-indigo {
  color: var(--indigo) !important;
}

.text-cyan {
  color: var(--cyan) !important;
}

.text-rose {
  color: var(--rose) !important;
}

.text-orange {
  color: var(--orange) !important;
}

.text-blue {
  color: var(--primary) !important;
}

.text-amber {
  color: var(--warning) !important;
}

.text-gold {
  color: var(--gold);
}

.text-crimson {
  color: var(--crimson);
}

.text-muted {
  color: var(--text3);
}

.text-success {
  color: var(--success);
}

.text-danger {
  color: var(--danger);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ═══════════ SECTION 3: TABLES ═══════════ */
.mxcp-table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}

.mxcp-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--surface2);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  text-align: left;
  font-size: 0.9rem;
}

.mxcp-table th {
  background-color: var(--surface3);
  color: var(--text2);
  font-family: var(--font-h);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px 20px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.mxcp-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border2);
  color: var(--text2);
  vertical-align: middle;
}

.mxcp-table tr:last-child td {
  border-bottom: none;
}

.mxcp-table tr {
  transition: var(--t);
}

.mxcp-table tbody tr:hover {
  background-color: rgba(227, 174, 4, 0.04);
}

/* ═══════════ SECTION 4: LAYOUT ═══════════ */
.mxcp-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.mxcp-wrap-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.mxcp-page {
  padding: 40px 0 80px;
}

.mxcp-section {
  margin-bottom: 48px;
}

.mxcp-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mxcp-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mxcp-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.mxcp-flex {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mxcp-flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.mxcp-flex-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mxcp-flex-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mxcp-spacer {
  height: 40px;
}

.mxcp-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.mxcp-hidden {
  display: none !important;
}

.mxcp-visible {
  display: block !important;
}

/* ═══════════ SECTION 4: MODULE HEADER ═══════════ */
.mxcp-module-header {
  position: relative;
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--gold);
  margin-bottom: 40px;
  background: radial-gradient(ellipse at top, rgba(227, 174, 4,0.04) 0%, transparent 70%);
}

.mxcp-module-pretitle {
  font-size: 0.75rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
  display: block;
}

.mxcp-module-title {
  font-family: 'Montserrat', 'Arial Black', Impact, sans-serif;
  font-size: 2.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 6px;
  line-height: 1;
  /* Hollow Outline Effect */
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.mxcp-module-subtitle {
  color: var(--text2);
  font-size: 0.95rem;
  margin: 0;
}

.mxcp-module-meta {
  position: absolute;
  top: 40px;
  right: 0;
  text-align: right;
}

.mxcp-module-timestamp {
  display: block;
  font-size: 0.78rem;
  color: var(--text3);
  font-family: var(--font-b);
}

.mxcp-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.mxcp-role-badge.master {
  background: linear-gradient(135deg, #8a6e2f, #c9a84c);
  color: #1a1200;
}

.mxcp-role-badge.slave {
  background: linear-gradient(135deg, #8b1a1a, #c0392b);
  color: white;
}

.mxcp-role-badge.guest {
  background-color: var(--surface3);
  color: var(--text2);
  border: 1px solid var(--border2);
}

/* ─────────────────────────────────────────────────────────────────────────────
     SECTION 5: MODULE NAVIGATION PILLS
───────────────────────────────────────────────────────────────────────────── */
.mxcp-module-nav {
  margin-bottom: 36px;
  padding-bottom: 8px;
}

.mxcp-module-nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mxcp-module-nav-menu li {
  margin: 0;
  padding: 0;
}

.mxcp-module-nav-menu a, .mxcp-module-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border: 1px solid var(--border2);
  white-space: nowrap;
  color: var(--text-muted);
  border-radius: var(--r);
  transition: var(--t);
  font-family: var(--font-h);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mxcp-module-nav-menu a:hover, .mxcp-module-nav a:hover {
  border-color: var(--cyan-lt);
  color: #ffffff;
  background-color: rgba(56, 189, 248, 0.08);
  text-decoration: none;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.mxcp-module-nav a.active {
  border-color: var(--primary-lt);
  color: #ffffff;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
  font-weight: 600;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
}

.mxcp-module-nav-icon {
  font-size: 0.9em;
}

/* ═══════════ SECTION 6: CARDS ═══════════ */
.mxcp-card {
  background-color: var(--surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 24px;
  padding: 24px;
  transition: var(--t);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: mxcpFadeIn 0.35s ease;
}

/* Dashboard-style hover animated bottom bar */
.mxcp-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.mxcp-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.mxcp-card:hover::after {
  transform: scaleX(1);
}

.mxcp-card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.mxcp-card-title {
  font-family: var(--font-h);
  font-size: 1.15rem;
  color: #ffffff;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.mxcp-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.mxcp-card-body {
  padding: 24px;
}

.mxcp-card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background-color: var(--surface2);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.mxcp-card--teal {
  border-left: 4px solid var(--teal);
}

.mxcp-card--emerald {
  border-left: 4px solid var(--emerald);
}

.mxcp-card--purple {
  border-left: 4px solid var(--purple);
}

.mxcp-card--indigo {
  border-left: 4px solid var(--indigo);
}

.mxcp-card--cyan {
  border-left: 4px solid var(--cyan);
}

.mxcp-card--rose {
  border-left: 4px solid var(--rose);
}

.mxcp-card--blue {
  border-left: 4px solid var(--primary);
}

.mxcp-card--gold {
  border-left: 4px solid var(--gold);
}

.mxcp-card--crimson {
  border-left: 4px solid var(--crimson);
}

.mxcp-card--crimson::after {
  background: var(--crimson);
}

.mxcp-card--flat {
  border-radius: 0;
  margin-bottom: 1px;
}

.mxcp-stat-card {
  text-align: center;
  padding: 40px 24px;
}

.mxcp-stat-number {
  font-family: var(--font-h);
  font-size: 2.2rem;
  font-weight: 800;
  display: block;
  line-height: 1.1;
  margin-bottom: 4px;
  color: #ffffff;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
}

.mxcp-stat-label {
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.mxcp-stat-change {
  font-size: 0.85rem;
  margin-top: 6px;
  display: block;
}

.mxcp-stat-change.up {
  color: var(--success);
}

.mxcp-stat-change.down {
  color: var(--crimson);
}

/* ═══════════ SECTION 8: FORMS ═══════════ */
.mxcp-form {
  display: block;
}

.mxcp-form-group {
  margin-bottom: 20px;
}

.mxcp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.mxcp-form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.mxcp-label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.78rem;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.mxcp-label.required::after {
  content: ' *';
  color: var(--crimson);
}

.mxcp-input, .mxcp-textarea, .mxcp-select {
  width: 100%;
  background-color: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  color: var(--text);
  padding: 10px 14px;
  font-family: var(--font-b);
  font-size: 0.9rem;
  transition: var(--t);
  outline: none;
  appearance: none;
}

.mxcp-input:focus, .mxcp-textarea:focus, .mxcp-select:focus {
  border-color: var(--primary-lt);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
  background-color: var(--surface3);
}

.mxcp-input:disabled, .mxcp-textarea:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.mxcp-textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}

.mxcp-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 32px;
}

.mxcp-select option {
  background-color: var(--surface);
  color: var(--text);
}

.mxcp-input::placeholder, .mxcp-textarea::placeholder {
  color: var(--text3);
}

.mxcp-form-hint {
  font-size: 0.78rem;
  color: var(--text3);
  margin-top: 5px;
}

.mxcp-form-error {
  font-size: 0.78rem;
  color: var(--crimson-lt);
  margin-top: 5px;
  display: none;
}

.mxcp-form-error.visible {
  display: block;
}

.mxcp-input.error, .mxcp-textarea.error, .mxcp-select.error {
  border-color: var(--crimson);
}

.mxcp-checkbox-wrap, .mxcp-radio-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: var(--t);
  margin-bottom: 8px;
}

.mxcp-checkbox-wrap:hover, .mxcp-radio-wrap:hover {
  border-color: var(--primary-lt);
  background-color: rgba(59, 130, 246, 0.05);
}

.mxcp-checkbox-wrap input, .mxcp-radio-wrap input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.mxcp-checkbox-label, .mxcp-radio-label {
  font-size: 0.88rem;
  color: var(--text);
  flex: 1;
}

.mxcp-upload-zone {
  border: 2px dashed var(--border2);
  border-radius: var(--r-lg);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--t);
  background-color: var(--surface2);
}

.mxcp-upload-zone:hover, .mxcp-upload-zone.dragover {
  border-color: var(--primary-lt);
  background-color: rgba(59, 130, 246, 0.05);
}

.mxcp-upload-icon {
  font-size: 2.5rem;
  color: var(--text3);
  display: block;
  margin: 0 auto 12px;
}

.mxcp-upload-text {
  color: var(--text2);
  font-size: 0.88rem;
}

.mxcp-upload-sub {
  color: var(--text3);
  font-size: 0.78rem;
  margin-top: 4px;
}

.mxcp-file-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.mxcp-file-preview-item {
  width: 80px;
  height: 80px;
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border2);
}

.mxcp-file-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mxcp-file-preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: rgba(0,0,0,0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════ SECTION 9: BUTTONS ═══════════ */
.mxcp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--r);
  font-family: var(--font-b);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 1px solid var(--border2);
  background-color: var(--surface3);
  color: var(--text);
  transition: var(--t);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
  vertical-align: middle;
}

.mxcp-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.mxcp-btn:focus-visible {
  outline: 2px solid var(--primary-lt);
  outline-offset: 2px;
}

/* ── Primary Gold Button ── */
.mxcp-btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%) !important;
  background-color: var(--gold) !important;
  color: #120e00 !important;
  font-weight: 700 !important;
  border: 1px solid var(--gold) !important;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25) !important;
}

.mxcp-btn-primary:hover,
.mxcp-btn.mxcp-btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-lt) 0%, #ffffff 100%) !important;
  background-color: var(--gold-lt) !important;
  color: #000000 !important;
  border-color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45) !important;
  transform: translateY(-1px);
  text-decoration: none !important;
}

.mxcp-btn-primary:active {
  transform: translateY(0);
}

/* ── Gold Outline Button ── */
.mxcp-btn-gold {
  background-color: transparent !important;
  color: var(--gold) !important;
  border: 1px solid var(--gold) !important;
}

.mxcp-btn-gold:hover,
.mxcp-btn.mxcp-btn-gold:hover {
  background-color: rgba(245, 158, 11, 0.15) !important;
  color: var(--gold-lt) !important;
  border-color: var(--gold-lt) !important;
  text-decoration: none !important;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25) !important;
}

/* ── Ghost Button ── */
.mxcp-btn-ghost {
  background-color: var(--surface2) !important;
  color: var(--text2) !important;
  border: 1px solid var(--border2) !important;
}

.mxcp-btn-ghost:hover,
.mxcp-btn.mxcp-btn-ghost:hover {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  background-color: rgba(255, 255, 255, 0.09) !important;
  text-decoration: none !important;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1) !important;
}

/* ── Success / Emerald Button ── */
.mxcp-btn-success {
  background: #10b981 !important;
  background-color: #10b981 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: 1px solid #059669 !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

.mxcp-btn-success:hover,
.mxcp-btn.mxcp-btn-success:hover {
  background: #059669 !important;
  background-color: #059669 !important;
  color: #ffffff !important;
  border-color: #047857 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5) !important;
  transform: translateY(-1px);
}

.mxcp-btn-success:active,
.mxcp-btn.mxcp-btn-success:active {
  background: #047857 !important;
  background-color: #047857 !important;
  transform: translateY(0);
}

/* ── Danger / Crimson Button ── */
.mxcp-btn-danger, .mxcp-btn-crimson {
  background: #dc2626 !important;
  background-color: #dc2626 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border: 1px solid #b91c1c !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3) !important;
}

.mxcp-btn-danger:hover, .mxcp-btn-crimson:hover,
.mxcp-btn.mxcp-btn-danger:hover, .mxcp-btn.mxcp-btn-crimson:hover {
  background: #b91c1c !important;
  background-color: #b91c1c !important;
  border-color: #991b1b !important;
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.5) !important;
  transform: translateY(-1px);
}

.mxcp-btn-danger:active, .mxcp-btn-crimson:active,
.mxcp-btn.mxcp-btn-danger:active, .mxcp-btn.mxcp-btn-crimson:active {
  background: #991b1b !important;
  background-color: #991b1b !important;
  transform: translateY(0);
}

/* ── Warning / Amber Button ── */
.mxcp-btn-warning {
  background: #f59e0b !important;
  background-color: #f59e0b !important;
  color: #1a1000 !important;
  font-weight: 700 !important;
  border: 1px solid #d97706 !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3) !important;
}

.mxcp-btn-warning:hover,
.mxcp-btn.mxcp-btn-warning:hover {
  background: #d97706 !important;
  background-color: #d97706 !important;
  color: #ffffff !important;
  border-color: #b45309 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.5) !important;
  transform: translateY(-1px);
}

/* ── Info / Blue Button ── */
.mxcp-btn-info {
  background: #0284c7 !important;
  background-color: #0284c7 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border: 1px solid #0369a1 !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3) !important;
}

.mxcp-btn-info:hover,
.mxcp-btn.mxcp-btn-info:hover {
  background: #0369a1 !important;
  background-color: #0369a1 !important;
  border-color: #075985 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.5) !important;
  transform: translateY(-1px);
}

.mxcp-btn-sm {
  padding: 6px 14px;
  font-size: 0.78rem;
}

.mxcp-btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.mxcp-btn-block {
  width: 100%;
  display: flex;
}

.mxcp-btn:disabled, .mxcp-btn[disabled] {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}

.mxcp-btn-group {
  display: inline-flex;
  gap: 0;
}

.mxcp-btn-group .mxcp-btn {
  border-radius: 0;
}

.mxcp-btn-group .mxcp-btn:first-child {
  border-radius: var(--r) 0 0 var(--r);
}

.mxcp-btn-group .mxcp-btn:last-child {
  border-radius: 0 var(--r) var(--r) 0;
}

.mxcp-spin-btn {
  background: linear-gradient(135deg, #1a0a1e, #2d1052);
  border: 1px solid #7b2fa0;
  color: #b44bde;
  padding: 16px 32px;
  font-family: var(--font-h);
  font-size: 1rem;
  border-radius: var(--r);
  cursor: pointer;
  transition: var(--t);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mxcp-spin-btn:hover {
  background: linear-gradient(135deg, #2d1052, #461879);
  box-shadow: 0 0 24px rgba(180,75,222,0.5);
  transform: translateY(-2px);
}

/* ═══════════ SECTION 10: TABLES ═══════════ */
.mxcp-table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}

.mxcp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.mxcp-table thead th {
  color: var(--gold);
  font-family: var(--font-h);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gold);
  text-align: left;
  white-space: nowrap;
  background-color: var(--surface2);
}

.mxcp-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.mxcp-table tbody tr:nth-child(odd) td {
  background-color: rgba(255,255,255,0.012);
}

.mxcp-table tbody tr:hover td {
  background-color: rgba(227, 174, 4,0.04);
}

.mxcp-table tbody tr:last-child td {
  border-bottom: none;
}

.mxcp-table-empty td {
  text-align: center;
  color: var(--text3);
  padding: 48px 16px;
  font-style: italic;
}

.mxcp-table tfoot td {
  font-size: 0.8rem;
  color: var(--text2);
  padding: 10px 16px;
  border-top: 1px solid var(--border2);
  background-color: var(--surface2);
}

/* ═══════════ SECTION 11: BADGES & STATUS ═══════════ */
.mxcp-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.mxcp-badge-success {
  background-color: rgba(39,174,96,0.12);
  color: #2ecc71;
  border: 1px solid rgba(39,174,96,0.25);
}

.mxcp-badge-danger {
  background-color: rgba(220, 38, 38, 0.15);
  color: #ef4444;
  border: 1px solid rgba(220, 38, 38, 0.35);
}

.mxcp-badge-warning {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--gold-lt);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.mxcp-badge-info {
  background-color: rgba(56, 189, 248, 0.15);
  color: var(--cyan-lt);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.mxcp-badge-gold {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--gold-lt);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.mxcp-badge-ghost {
  background-color: var(--surface3);
  color: var(--text2);
  border: 1px solid var(--border2);
}

.mxcp-badge-master {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--gold-lt);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.mxcp-badge-slave {
  background-color: rgba(220, 38, 38, 0.15);
  color: #ef4444;
  border: 1px solid rgba(220, 38, 38, 0.35);
}

.mxcp-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 5px;
}

.mxcp-status-dot.green {
  background-color: var(--success);
  box-shadow: 0 0 6px var(--success);
}

.mxcp-status-dot.red {
  background-color: var(--crimson);
  box-shadow: 0 0 6px var(--crimson);
}

.mxcp-status-dot.yellow {
  background-color: var(--warning);
}

.mxcp-status-dot.pulse {
  animation: mxcpPulse 2s ease infinite;
}

.mxcp-traffic-light {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mxcp-tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--t);
  opacity: 0.25;
  border: 1px solid transparent;
}

.mxcp-tl-dot.active {
  opacity: 1;
  border-color: rgba(255,255,255,0.2);
}

.mxcp-tl-dot:hover {
  opacity: 0.7;
}

.mxcp-tl-dot.green {
  background-color: #27ae60;
}

.mxcp-tl-dot.yellow {
  background-color: #f39c12;
}

.mxcp-tl-dot.red {
  background-color: var(--crimson);
}

/* ═══════════ SECTION 12: TIMELINE ═══════════ */
.mxcp-timeline {
  position: relative;
  padding-left: 30px;
  margin: 8px 0;
}

.mxcp-timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.mxcp-timeline-item {
  position: relative;
  margin-bottom: 28px;
}

.mxcp-timeline-item:last-child {
  margin-bottom: 0;
}

.mxcp-timeline-dot {
  position: absolute;
  left: -25px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--gold);
  border: 2px solid var(--bg);
}

.mxcp-timeline-date {
  font-size: 0.76rem;
  color: var(--text3);
  margin-bottom: 6px;
  display: block;
  letter-spacing: 0.04em;
}

.mxcp-timeline-body {
  background-color: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 18px;
}

.mxcp-timeline-title {
  font-family: var(--font-h);
  color: var(--gold);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 6px;
}

.mxcp-timeline-text {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

/* ═══════════ SECTION 13: CHASTITY TIMER ═══════════ */
.mxcp-timer-section {
  text-align: center;
  padding: 32px 0;
}

.mxcp-timer-status-label {
  font-family: var(--font-h);
  font-size: 0.75rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
  display: block;
}

.mxcp-timer-frozen-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(41,128,185,0.1);
  border: 1px solid rgba(41,128,185,0.3);
  border-radius: 20px;
  padding: 6px 18px;
  color: #3498db;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.mxcp-timer-display {
  display: inline-flex;
  align-items: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 8px 0 28px;
}

.mxcp-timer-seg {
  text-align: center;
  min-width: 58px;
}

.mxcp-timer-val {
  display: block;
  background-color: var(--surface2);
  border: 1px solid rgba(227, 174, 4,0.3);
  border-radius: var(--r);
  padding: 10px 12px;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  font-family: 'Courier New', Courier, monospace;
  line-height: 1;
  letter-spacing: -0.02em;
  transition: color 0.5s;
}

.mxcp-timer-lbl {
  display: block;
  font-size: 0.62rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 5px;
}

.mxcp-timer-sep {
  color: var(--text3);
  font-size: 2rem;
  padding-bottom: 20px;
  line-height: 1;
}

.mxcp-timer-overdue .mxcp-timer-val {
  color: var(--crimson);
  border-color: rgba(221, 4, 4,0.4);
}

.mxcp-timer-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.mxcp-timer-add-form {
  background-color: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-top: 16px;
}

.mxcp-timer-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 12px 0;
}

.mxcp-timer-field {
  text-align: center;
}

.mxcp-timer-field input {
  width: 64px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
}

.mxcp-timer-field label {
  display: block;
  font-size: 0.68rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* ═══════════ SECTION 14: CHECK-IN BUTTONS ═══════════ */
.mxcp-checkin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

.mxcp-checkin-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px;
  border: 1px solid var(--border2);
  border-radius: var(--r-xl);
  cursor: pointer;
  background-color: var(--surface);
  transition: var(--t);
  font-family: var(--font-h);
  color: var(--text);
  border-top-width: 3px;
}

.mxcp-checkin-btn.morning {
  border-top-color: var(--warning);
  color: var(--warning);
}

.mxcp-checkin-btn.evening {
  border-top-color: var(--gold);
  color: var(--gold);
}

.mxcp-checkin-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.mxcp-checkin-btn.done {
  opacity: 0.4;
  cursor: default;
  transform: none;
  pointer-events: none;
}

.mxcp-checkin-btn:not(.done) {
  animation: mxcpPulse 4s ease infinite;
}

.mxcp-checkin-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
  display: block;
}

.mxcp-checkin-name {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.mxcp-checkin-status {
  font-size: 0.75rem;
  color: var(--text3);
  font-family: var(--font-b);
  text-transform: none;
}

/* ═══════════ SECTION 15: STAR RATING ═══════════ */
.mxcp-stars {
  display: inline-flex;
  gap: 3px;
  cursor: pointer;
}

.mxcp-star {
  font-size: 1.6rem;
  color: var(--border2);
  transition: color 0.15s;
  line-height: 1;
  user-select: none;
}

.mxcp-star.on, .mxcp-stars:hover .mxcp-star {
  color: var(--gold);
}

.mxcp-stars .mxcp-star:hover ~ .mxcp-star {
  color: var(--border2);
}

.mxcp-stars.readonly {
  cursor: default;
  pointer-events: none;
}

.mxcp-rating-value {
  font-family: var(--font-h);
  font-size: 2.5rem;
  color: var(--gold);
  margin-right: 12px;
  vertical-align: middle;
}

.mxcp-rating-count {
  font-size: 0.82rem;
  color: var(--text3);
}

/* ═══════════ SECTION 16: MEDIA GRID ═══════════ */
.mxcp-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

.mxcp-media-thumb {
  aspect-ratio: 1;
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background-color: var(--surface2);
  border: 1px solid var(--border);
}

.mxcp-media-thumb img, .mxcp-media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.mxcp-media-thumb:hover img, .mxcp-media-thumb:hover video {
  transform: scale(1.05);
}

.mxcp-media-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.55);
  opacity: 0;
  transition: var(--t);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
}

.mxcp-media-thumb:hover .mxcp-media-overlay {
  opacity: 1;
}

.mxcp-media-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--text3);
  font-style: italic;
}

/* ═══════════ SECTION 17: SHAME BANNER ═══════════ */
.mxcp-shame-wrap {
  margin-bottom: 28px;
}

.mxcp-shame-banner {
  background: linear-gradient(135deg, #150000, #200000);
  border: 1px solid rgba(221, 4, 4,0.35);
  border-radius: var(--r-lg);
  padding: 24px 32px;
  position: relative;
  overflow: hidden;
}

.mxcp-shame-banner::before {
  content: 'VIOLATION';
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  font-family: var(--font-h);
  font-size: 5rem;
  color: rgba(221, 4, 4,0.05);
  letter-spacing: 0.2em;
  pointer-events: none;
  white-space: nowrap;
}

.mxcp-shame-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.mxcp-shame-icon {
  font-size: 1.4rem;
}

.mxcp-shame-title {
  font-family: var(--font-h);
  color: var(--crimson);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

.mxcp-shame-body {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.6;
}

.mxcp-shame-penalty {
  margin-top: 10px;
  color: var(--text2);
  font-size: 0.82rem;
}

.mxcp-shame-penalty strong {
  color: var(--crimson-lt);
}

/* ═══════════ SECTION 18: TOAST NOTIFICATIONS ═══════════ */
.mxcp-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
  max-width: 420px;
}

.mxcp-toast {
  background-color: var(--surface3);
  border-left: 4px solid var(--gold);
  border-radius: var(--r);
  padding: 14px 16px;
  pointer-events: all;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow);
  animation: mxcpSlideIn 0.3s ease;
  max-width: 100%;
}

.mxcp-toast.success {
  border-left-color: var(--success);
}

.mxcp-toast.error {
  border-left-color: var(--crimson);
}

.mxcp-toast.warning {
  border-left-color: var(--warning);
}

.mxcp-toast.info {
  border-left-color: var(--info);
}

.mxcp-toast.removing {
  animation: mxcpFadeOut 0.3s ease forwards;
}

.mxcp-toast-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.mxcp-toast-msg {
  flex: 1;
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.5;
}

.mxcp-toast-title {
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
  color: white;
}

.mxcp-toast-close {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: var(--t);
  line-height: 1;
}

.mxcp-toast-close:hover {
  color: white;
}

/* ═══════════ SECTION 19: MODAL ═══════════ */
.mxcp-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.88);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.mxcp-modal-overlay.open {
  display: flex;
}

.mxcp-modal {
  background-color: var(--surface);
  border: 1px solid rgba(227, 174, 4,0.3);
  border-radius: var(--r-xl);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: mxcpSlideUp 0.3s ease;
  position: relative;
}

.mxcp-modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background-color: var(--surface);
  z-index: 1;
}

.mxcp-modal-title {
  font-family: var(--font-h);
  color: var(--gold);
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mxcp-modal-close {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 1.6rem;
  cursor: pointer;
  transition: var(--t);
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r);
}

.mxcp-modal-close:hover {
  color: white;
  background-color: var(--surface3);
}

.mxcp-modal-body {
  padding: 28px;
}

.mxcp-modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background-color: var(--surface2);
}

/* ═══════════ SECTION 20: PROGRESS BAR ═══════════ */
.mxcp-progress {
  background-color: var(--surface3);
  border-radius: 100px;
  height: 6px;
  overflow: hidden;
  margin: 8px 0;
}

.mxcp-progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--crimson), var(--gold));
  border-radius: 100px;
  transition: width 0.6s ease;
  min-width: 3px;
}

.mxcp-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text3);
  margin-bottom: 4px;
}

/* ═══════════ SECTION 21: SPINNER & LOADING ═══════════ */
.mxcp-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: mxcpSpin 0.7s linear infinite;
  vertical-align: middle;
}

.mxcp-spinner-lg {
  width: 40px;
  height: 40px;
  border-width: 3px;
}

.mxcp-spinner-crimson {
  border-top-color: var(--crimson);
}

.mxcp-skeleton {
  border-radius: var(--r);
  background: linear-gradient(90deg, var(--surface2) 25%, var(--surface3) 50%, var(--surface2) 75%);
  background-size: 800px 100%;
  animation: mxcpShimmer 1.5s infinite;
}

.mxcp-skeleton-line {
  height: 14px;
  margin-bottom: 10px;
  border-radius: 100px;
}

.mxcp-skeleton-line.short {
  width: 60%;
}

.mxcp-skeleton-block {
  height: 120px;
}

.mxcp-loading-wrap {
  text-align: center;
  padding: 48px;
  color: var(--text3);
}

.mxcp-loading-wrap .mxcp-spinner {
  width: 32px;
  height: 32px;
  border-width: 3px;
  margin-bottom: 12px;
}

/* ═══════════ SECTION 22: POINTS DISPLAY ═══════════ */
.mxcp-points-hero {
  text-align: center;
  padding: 32px;
  background-color: var(--surface2);
  border: 1px solid var(--border-gold-dim);
  border-radius: var(--r-xl);
  margin-bottom: 24px;
}

.mxcp-points-big {
  font-family: var(--font-h);
  font-size: 5.5rem;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.mxcp-points-big.negative {
  color: var(--crimson);
}

.mxcp-points-lbl {
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
}

.mxcp-points-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  margin-top: 8px;
}

.mxcp-points-change.up {
  background-color: rgba(39,174,96,0.12);
  color: var(--success);
}

.mxcp-points-change.down {
  background-color: rgba(221, 4, 4,0.12);
  color: var(--crimson);
}

/* ═══════════ SECTION 23: GUEST PORTAL ═══════════ */
.mxcp-guest-portal {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.mxcp-guest-header {
  text-align: center;
  padding: 60px 0 48px;
  border-bottom: 1px solid var(--gold);
  margin-bottom: 56px;
}

.mxcp-guest-logo {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 3.2rem;
  color: var(--gold);
  letter-spacing: 0.25em;
  margin: 0;
  text-transform: uppercase;
}

.mxcp-guest-tagline {
  color: var(--text2);
  margin-top: 10px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.mxcp-guest-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}

.mxcp-guest-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border: 1px solid var(--border2);
  border-radius: 20px;
  color: var(--text2);
  font-size: 0.8rem;
  font-family: var(--font-b);
  text-decoration: none;
  transition: var(--t);
  white-space: nowrap;
}

.mxcp-guest-nav a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background-color: rgba(227, 174, 4,0.06);
  text-decoration: none;
}

.mxcp-guest-nav a.active {
  border-color: var(--gold);
  color: var(--gold);
  background-color: rgba(227, 174, 4,0.1);
  font-weight: 600;
}

.mxcp-guest-section {
  margin-bottom: 64px;
}

.mxcp-section-anchor {
  display: block;
  height: 1px;
  margin-top: -80px;
  padding-top: 80px;
  visibility: hidden;
}

.mxcp-section-divider {
  text-align: center;
  margin: 56px 0 40px;
  position: relative;
}

.mxcp-section-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--border);
}

.mxcp-section-divider-text {
  position: relative;
  display: inline-block;
  background-color: var(--bg);
  padding: 0 24px;
  font-family: var(--font-h);
  color: var(--gold);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* ═══════════ SECTION 24: ANIMATIONS ═══════════ */
@keyframes mxcpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes mxcpSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mxcpSlideIn {
  from { opacity: 0; transform: translateX(32px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes mxcpFadeOut {
  to { opacity: 0; transform: translateX(32px); }
}
@keyframes mxcpFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mxcpSpin {
  to { transform: rotate(360deg); }
}
@keyframes mxcpPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227, 174, 4,0.5); }
  70% { box-shadow: 0 0 0 12px rgba(227, 174, 4,0); }
}
@keyframes mxcpShimmer {
  0% { background-position: -800px 0; }
  100% { background-position: 800px 0; }
}
@keyframes mxcpBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes mxcpCountIn {
  from { transform: scale(1.3); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ═══════════ SECTION 25: RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
  .mxcp-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .mxcp-grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mxcp-grid-2, .mxcp-grid-3, .mxcp-grid-4 {
    grid-template-columns: 1fr;
  }
  .mxcp-module-title {
    font-size: 1.9rem;
  }
  .mxcp-timer-val {
    font-size: 1.6rem;
    min-width: 44px;
    padding: 8px 8px;
  }
  .mxcp-timer-display {
    gap: 3px;
  }
  .mxcp-form-row, .mxcp-form-row-3 {
    grid-template-columns: 1fr;
  }
  .mxcp-checkin-grid {
    grid-template-columns: 1fr;
  }
  .mxcp-module-meta {
    position: static;
    margin-top: 12px;
    text-align: left;
  }
  .mxcp-role-badge {
    position: static;
    display: inline-flex;
    margin-bottom: 12px;
  }
  .mxcp-module-header {
    padding: 28px 0 20px;
  }
  .mxcp-wrap {
    padding: 0 16px;
  }
  .mxcp-card-body {
    padding: 16px;
  }
  .mxcp-card-header {
    padding: 14px 16px;
  }
  .mxcp-btn-lg {
    padding: 12px 22px;
  }
}

@media (max-width: 480px) {
  .mxcp-module-title {
    font-size: 1.5rem;
    letter-spacing: 0.05em;
  }
  .mxcp-timer-seg {
    min-width: 40px;
  }
  .mxcp-timer-val {
    font-size: 1.3rem;
    padding: 6px;
  }
  .mxcp-guest-logo {
    font-size: 2rem;
  }
  .mxcp-points-big {
    font-size: 4rem;
  }
  .mxcp-module-nav a {
    font-size: 0.74rem;
    padding: 5px 12px;
  }
}

/* ═══════════ SECTION 26: PRINT ═══════════ */
@media print {
  .mxcp-module-nav, .mxcp-btn, .mxcp-toast-container, .mxcp-modal-overlay, .mxcp-spin-btn, .mxcp-card-footer {
    display: none !important;
  }
  .mxcp-card {
    border: 1px solid #ccc !important;
    break-inside: avoid;
    box-shadow: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
  .mxcp-card-title, h1, h2, h3, h4 {
    color: #111 !important;
  }
  a {
    color: #333 !important;
    text-decoration: underline !important;
  }
}

/* ═══════════ SECTION 27: ROLE BODY CLASSES ═══════════ */
body.mxcp-role-master .mxcp-module-header {
  background: radial-gradient(ellipse at top, rgba(227, 174, 4,0.06) 0%, transparent 65%);
}
body.mxcp-role-slave .mxcp-module-header {
  background: radial-gradient(ellipse at top, rgba(221, 4, 4,0.06) 0%, transparent 65%);
}
body.mxcp-role-master .mxcp-role-badge {
  box-shadow: 0 0 16px rgba(227, 174, 4,0.3);
}
body.mxcp-role-slave .mxcp-role-badge {
  box-shadow: 0 0 16px rgba(221, 4, 4,0.3);
}

/* ═══════════ SECTION 28: MISCELLANEOUS UTILITIES ═══════════ */
.mxcp-notice {
  background-color: var(--surface2);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  border-radius: var(--r);
  color: var(--text);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.mxcp-notice.info {
  border-color: var(--info);
}

.mxcp-notice.warning {
  border-color: var(--warning);
}

.mxcp-notice.error {
  border-color: var(--crimson);
}

.mxcp-empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--text3);
}

.mxcp-empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.3;
}

.mxcp-empty-state-title {
  font-family: var(--font-h);
  color: var(--text2);
  font-size: 1rem;
  margin-bottom: 8px;
}

.mxcp-empty-state-text {
  font-size: 0.86rem;
  line-height: 1.6;
}

.mxcp-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  background-color: var(--surface3);
  border: 1px solid var(--border2);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--text2);
  gap: 5px;
}

.mxcp-tag-remove {
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
  line-height: 1;
}

.mxcp-copy-btn {
  background-color: transparent;
  color: var(--text2);
  border: 1px solid var(--border2);
  padding: 6px 14px;
  font-size: 0.78rem;
}

.mxcp-copy-btn:hover {
  color: white;
  border-color: var(--text2);
  background-color: rgba(255,255,255,0.04);
  text-decoration: none;
}

.mxcp-kbd {
  background-color: var(--surface3);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  padding: 2px 8px;
  font-size: 0.78rem;
  font-family: monospace;
  color: var(--text2);
}

.mxcp-module-nav-menu .current-menu-item > a, .mxcp-module-nav a.active { border-color: var(--gold); color: var(--gold); background-color: rgba(227, 174, 4,0.1); font-weight: 600; }



/* ═══════════ NEW DATA DISPLAY & FORM OVERHAUL ═══════════ */

/* Replaces standard tables for record displays */
.mxcp-data-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 15px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 8px; /* Room for scrollbar */
}

/* Global Shame Banner */
.mxcp-global-shame-banner {
  background: linear-gradient(135deg, #dd0404, #9c0303);
  color: white;
  text-align: center;
  padding: 15px;
  font-family: var(--font-h);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 30px;
  border-radius: var(--r-lg);
  box-shadow: 0 4px 15px rgba(221,4,4,0.4);
  animation: mxcpPulse 2s infinite;
}

.mxcp-data-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background-color: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--r-lg);
  transition: var(--t);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mxcp-data-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.mxcp-data-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mxcp-data-primary {
  font-family: var(--font-h);
  font-size: 1.05rem;
  color: #ffffff;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.mxcp-data-secondary {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.4;
}

.mxcp-data-meta {
  font-size: 0.75rem;
  color: var(--text3);
  margin-top: 4px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.mxcp-data-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Form Overhaul */
.mxcp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.mxcp-form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

/* HIDE DUPLICATE HEADERS GLOBALLY */
.mxcp-module-header {
  display: none !important;
}

.mxcp-label {
  font-family: var(--font-h);
  font-size: 0.8rem;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  font-weight: 600;
}

  /* Button overrides to ensure STRICT consistency */
  .mxcp-btn, .mxcp-input, .mxcp-textarea, .mxcp-select, .mxcp-card, .mxcp-data-item {
    border-radius: var(--r) !important;
  }
  
  .mxcp-input, .mxcp-textarea, .mxcp-select {
    border: 1px solid var(--border2) !important;
  }
  
  .mxcp-input:focus, .mxcp-textarea:focus, .mxcp-select:focus {
    border-color: var(--primary-lt) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18) !important;
  }

  .mxcp-btn-sm {
    padding: 6px 14px !important;
    font-size: 0.78rem !important;
  }

/* Stat panel for massive numbers (points, ratings) */
.mxcp-stat-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  border: 1px solid var(--border2);
  border-radius: var(--r-xl);
  margin-bottom: 20px;
}
.mxcp-stat-panel .mxcp-stat-number {
  font-size: 6rem;
  margin-bottom: 0;
}

.mxcp-scrollable-list {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 10px;
}
.mxcp-scrollable-list::-webkit-scrollbar {
  width: 6px;
}
.mxcp-scrollable-list::-webkit-scrollbar-track {
  background: var(--surface);
}
.mxcp-scrollable-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

/* ═══════════ SECTION BARS & DRAWERS ═══════════ */
.mxcp-section-bar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 20px !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

.mxcp-section-bar h2,
.mxcp-section-bar h3,
.mxcp-section-bar .mxcp-section-title {
  margin: 0 !important;
  font-family: var(--font-h) !important;
  font-size: 1.15rem !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.mxcp-drawer {
  background-color: var(--surface2) !important;
  border: 1px solid var(--border2) !important;
  border-radius: var(--r-lg) !important;
  padding: 24px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4) !important;
}

.mxcp-btn-toggle {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  padding: 8px 20px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  border-radius: 30px !important;
  transition: all 0.25s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
  text-decoration: none !important;
  outline: none !important;
  white-space: nowrap !important;
}

.mxcp-btn-toggle:hover, .mxcp-btn-toggle.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--cyan-lt) 100%) !important;
  border-color: var(--cyan-lt) !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45) !important;
  transform: translateY(-2px) !important;
  text-decoration: none !important;
}

.mxcp-btn-toggle.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--indigo) 100%) !important;
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.6) !important;
}

.mxcp-btn-toggle i {
  font-size: 0.95rem !important;
}

/* ═══════════ STANDARDIZED STAT GRIDS ═══════════ */
.mxcp-stat-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 28px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.mxcp-stat-card {
  background-color: var(--surface2) !important;
  border: 1px solid var(--border2) !important;
  border-radius: var(--r-lg) !important;
  padding: 18px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  position: relative !important;
  overflow: hidden !important;
  transition: var(--t) !important;
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.mxcp-stat-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.mxcp-stat-card.border-teal   { border-left: 4px solid var(--teal) !important; }
.mxcp-stat-card.border-emerald{ border-left: 4px solid var(--emerald) !important; }
.mxcp-stat-card.border-cyan   { border-left: 4px solid var(--cyan) !important; }
.mxcp-stat-card.border-indigo { border-left: 4px solid var(--indigo) !important; }
.mxcp-stat-card.border-rose   { border-left: 4px solid var(--rose) !important; }
.mxcp-stat-card.border-orange { border-left: 4px solid var(--orange) !important; }
.mxcp-stat-card.border-gold   { border-left: 4px solid var(--gold) !important; }
.mxcp-stat-card.border-red    { border-left: 4px solid var(--crimson) !important; }
.mxcp-stat-card.border-green  { border-left: 4px solid var(--success) !important; }
.mxcp-stat-card.border-blue   { border-left: 4px solid var(--primary) !important; }
.mxcp-stat-card.border-purple { border-left: 4px solid var(--purple) !important; }
.mxcp-stat-card.border-amber  { border-left: 4px solid var(--warning) !important; }

/* Highlighted / Featured Card (e.g. Service Star Rating) */
.mxcp-stat-card.mxcp-stat-card--featured {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(26, 26, 26, 0.95) 100%) !important;
  border: 1.5px solid var(--indigo) !important;
  border-left: 5px solid var(--indigo) !important;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.25) !important;
}

.mxcp-stat-card.mxcp-stat-card--featured:hover {
  box-shadow: 0 0 26px rgba(99, 102, 241, 0.45) !important;
  transform: translateY(-3px) !important;
}

.mxcp-stat-label {
  font-family: var(--font-h) !important;
  font-size: 0.72rem !important;
  color: var(--text3) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  margin-bottom: 6px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.mxcp-stat-number,
.mxcp-stat-value,
.mxcp-stat-val {
  font-family: var(--font-h) !important;
  font-size: 1.9rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.1 !important;
}

.mxcp-stat-card.border-teal .mxcp-stat-number,
.mxcp-stat-card.border-teal .mxcp-stat-value,
.mxcp-stat-card.border-teal .mxcp-stat-val { color: var(--teal-lt) !important; }

.mxcp-stat-card.border-emerald .mxcp-stat-number,
.mxcp-stat-card.border-emerald .mxcp-stat-value,
.mxcp-stat-card.border-emerald .mxcp-stat-val { color: var(--emerald-lt) !important; }

.mxcp-stat-card.border-cyan .mxcp-stat-number,
.mxcp-stat-card.border-cyan .mxcp-stat-value,
.mxcp-stat-card.border-cyan .mxcp-stat-val { color: var(--cyan-lt) !important; }

.mxcp-stat-card.border-indigo .mxcp-stat-number,
.mxcp-stat-card.border-indigo .mxcp-stat-value,
.mxcp-stat-card.border-indigo .mxcp-stat-val { color: var(--indigo-lt) !important; }

.mxcp-stat-card.border-rose .mxcp-stat-number,
.mxcp-stat-card.border-rose .mxcp-stat-value,
.mxcp-stat-card.border-rose .mxcp-stat-val { color: var(--rose-lt) !important; }

.mxcp-stat-card.border-orange .mxcp-stat-number,
.mxcp-stat-card.border-orange .mxcp-stat-value,
.mxcp-stat-card.border-orange .mxcp-stat-val { color: var(--orange-lt) !important; }

.mxcp-stat-card.border-gold .mxcp-stat-number,
.mxcp-stat-card.border-gold .mxcp-stat-value,
.mxcp-stat-card.border-gold .mxcp-stat-val { color: var(--gold-lt) !important; }

.mxcp-stat-card.border-red .mxcp-stat-number,
.mxcp-stat-card.border-red .mxcp-stat-value,
.mxcp-stat-card.border-red .mxcp-stat-val { color: var(--crimson-lt) !important; }

.mxcp-stat-card.border-green .mxcp-stat-number,
.mxcp-stat-card.border-green .mxcp-stat-value,
.mxcp-stat-card.border-green .mxcp-stat-val { color: #2ecc71 !important; }

.mxcp-stat-card.border-blue .mxcp-stat-number,
.mxcp-stat-card.border-blue .mxcp-stat-value,
.mxcp-stat-card.border-blue .mxcp-stat-val { color: var(--primary-lt) !important; }

.mxcp-stat-card.border-purple .mxcp-stat-number,
.mxcp-stat-card.border-purple .mxcp-stat-value,
.mxcp-stat-card.border-purple .mxcp-stat-val { color: var(--purple-lt) !important; }

.mxcp-stat-card.border-amber .mxcp-stat-number,
.mxcp-stat-card.border-amber .mxcp-stat-value,
.mxcp-stat-card.border-amber .mxcp-stat-val { color: var(--warning) !important; }

.mxcp-stat-sub,
.mxcp-stat-desc {
  font-size: 0.75rem !important;
  color: var(--text2) !important;
  margin-top: 4px !important;
}

@media (max-width: 600px) {
  .mxcp-stat-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ═══════════ COCKPIT COMMAND CENTER ═══════════ */
.mxcp-cockpit-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.mxcp-cockpit-hero-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 1100px) {
  .mxcp-cockpit-hero-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .mxcp-cockpit-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 460px) {
  .mxcp-cockpit-hero-grid {
    grid-template-columns: 1fr;
  }
}

.mxcp-cockpit-kpi-card {
  padding: 16px 18px;
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: var(--r);
  box-sizing: border-box;
}

.mxcp-cockpit-decks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
  align-items: start;
}
@media (max-width: 960px) {
  .mxcp-cockpit-decks-grid {
    grid-template-columns: 1fr;
  }
}

.mxcp-cockpit-deck-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mxcp-cockpit-sound-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (max-width: 540px) {
  .mxcp-cockpit-sound-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mxcp-cockpit-keys-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
@media (max-width: 540px) {
  .mxcp-cockpit-keys-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mxcp-cockpit-bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
@media (max-width: 500px) {
  .mxcp-cockpit-bio-grid {
    grid-template-columns: 1fr;
  }
}

.mxcp-cockpit-triage-row {
  background: var(--surface2);
  padding: 12px 14px;
  border-radius: var(--r);
  border: 1px solid var(--border2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .mxcp-cockpit-triage-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .mxcp-cockpit-triage-row .mxcp-cockpit-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ═══════════ NOTIFICATION CENTER & DRAWER ═══════════ */
.mxcp-notif-bell-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fafc;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
  flex-shrink: 0;
}
.mxcp-notif-bell-btn:hover {
  background: rgba(221, 4, 4, 0.15);
  color: #ff4d4d;
  border-color: rgba(221, 4, 4, 0.5);
  box-shadow: 0 0 10px rgba(221, 4, 4, 0.3);
}
.mxcp-notif-bell-btn .mxcp-bell-svg {
  display: block;
  fill: currentColor;
  width: 18px;
  height: 18px;
}
.mxcp-notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--crimson);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 10px;
  border: 2px solid var(--surface);
  box-shadow: 0 0 8px rgba(220,38,38,0.5);
  pointer-events: none;
}
.mxcp-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mxcp-mobile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mxcp-notif-drawer {
  position: fixed;
  top: 0;
  right: -440px;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: #111116;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.75);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mxcp-notif-drawer.open {
  right: 0 !important;
}
.mxcp-notif-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.mxcp-notif-overlay.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}
.mxcp-notif-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
}
.mxcp-notif-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.mxcp-notif-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mxcp-notif-close-btn {
  background: transparent;
  border: none;
  color: var(--text3);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: var(--t);
}
.mxcp-notif-close-btn:hover {
  color: var(--crimson);
}
.mxcp-notif-body-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mxcp-notif-loading,
.mxcp-notif-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text3);
  font-size: 14px;
}
.mxcp-notif-item {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  transition: var(--t);
}
.mxcp-notif-item:hover {
  border-color: var(--border);
  background: var(--surface3);
}
.mxcp-notif-item.mxcp-notif-unread {
  border-left: 3px solid var(--gold);
  background: rgba(212, 175, 55, 0.04);
}
.mxcp-notif-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  background: var(--surface3);
  color: var(--text2);
}
.mxcp-notif-icon.mxcp-notif-type-summon {
  background: rgba(220, 38, 38, 0.15);
  color: var(--crimson);
}
.mxcp-notif-icon.mxcp-notif-type-reward,
.mxcp-notif-icon.mxcp-notif-type-points {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
}
.mxcp-notif-icon.mxcp-notif-type-punishment,
.mxcp-notif-icon.mxcp-notif-type-infraction {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}
.mxcp-notif-content {
  flex: 1;
  min-width: 0;
}
.mxcp-notif-title {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mxcp-notif-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}
.mxcp-notif-body {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.4;
  word-break: break-word;
  margin-bottom: 4px;
}
.mxcp-notif-time {
  font-size: 11px;
  color: var(--text3);
}
.mxcp-notif-mark-btn {
  background: transparent;
  border: none;
  color: var(--text3);
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
  transition: var(--t);
}
.mxcp-notif-mark-btn:hover {
  color: var(--success);
}
.mxcp-notif-tabs-bar {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
  padding: 8px 14px;
  gap: 8px;
}
.mxcp-notif-tab-btn {
  background: transparent;
  border: none;
  color: var(--text3);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--t);
}
.mxcp-notif-tab-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.mxcp-notif-tab-btn.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}
.mxcp-notif-actions-item {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.mxcp-notif-del-btn {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text3);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--t);
}
.mxcp-notif-del-btn:hover {
  border-color: var(--crimson);
  color: var(--crimson);
  background: rgba(220, 38, 38, 0.15);
}

/* ═══════════ BULK ACTIONS TOOLBAR ═══════════ */
.mxcp-bulk-toolbar {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--r);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.mxcp-bulk-info {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mxcp-bulk-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mxcp-filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}




/* ═══════════ TABLES: never require sideways scrolling ═══════════ */
.mxcp-table-wrap {
  overflow-x: visible;
  max-width: 100%;
}
.mxcp-table {
  table-layout: auto;
  max-width: 100%;
}
.mxcp-table thead th {
  white-space: normal;
  padding: 12px 10px;
}
.mxcp-table td {
  padding: 10px;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}
.mxcp-table td .mxcp-badge {
  white-space: normal;
  text-align: left;
}
.mxcp-table td input,
.mxcp-table td select,
.mxcp-table td textarea {
  max-width: 100%;
  min-width: 0;
}
.mxcp-table td form.mxcp-flex,
.mxcp-table td .mxcp-flex {
  flex-wrap: wrap;
}

/* Narrow screens: each row becomes a small card, labelled from the column headings (labels added by mxcp-frontend.js) */
@media (max-width: 720px) {
  .mxcp-table,
  .mxcp-table tbody,
  .mxcp-table tr,
  .mxcp-table td {
    display: block;
    width: 100%;
  }
  .mxcp-table thead {
    position: absolute;
    left: -9999px;
    top: -9999px;
  }
  .mxcp-table tbody tr {
    border-bottom: 1px solid var(--border);
    padding: 6px 0;
  }
  .mxcp-table td {
    border-bottom: none;
    padding: 5px 12px;
    background: transparent !important;
  }
  .mxcp-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--gold);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
  }
}

/* ===== Simplification, stage A: shared status colours, grouped dashboard, bottom bar ===== */
:root { --st-action: #f97316; --st-live: #ef4444; --st-done: #22c55e; --st-wait: #94a3b8; --ok-text: #2ecc71; --gold-text: var(--gold); }  /* --ok-text / --gold-text: coloured words, darker in light mode */
.mxcp-st-action { border-color: var(--st-action) !important; }
.mxcp-st-live { border-color: var(--st-live) !important; }
.mxcp-st-done { border-color: var(--st-done) !important; }
.mxcp-st-wait { border-color: var(--st-wait) !important; }

.mxcp-attn { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); padding: 12px 14px; margin-bottom: 20px; }
.mxcp-attn-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text3); margin-bottom: 6px; }
.mxcp-attn.is-clear .mxcp-attn-title { color: var(--st-done); }
.mxcp-attn-empty { color: var(--text2); }
.mxcp-attn-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 12px; margin-top: 6px; border: 1px solid var(--border); border-left-width: 4px; border-radius: var(--r-md, 10px); text-decoration: none; color: var(--text); font-weight: 600; }
.mxcp-attn-row:hover { text-decoration: none; background: rgba(255, 255, 255, 0.04); }
.mxcp-dash-h { font-size: 1.05rem; margin: 0 0 4px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mxcp-dash-h small { font-weight: 400; font-size: 0.78rem; color: var(--text3); }

.mxcp-bnav, .mxcp-bsheet { display: none; }
/* Shared by the mobile nav sheet AND the "Do something" dialog (.mxcp-dosheet), which is not
   mobile-only, so this layout must not be trapped inside the max-width:768px query below —
   otherwise the close × has no "space-between" to push it to the right on a normal desktop screen. */
.mxcp-bsheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
@media (max-width: 768px) {
  body.mxcp-has-bnav { padding-bottom: 76px; }
  .mxcp-bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; background: #121316; border-top: 1px solid var(--border); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .mxcp-bnav-i { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; background: none; border: none; color: var(--text2); text-decoration: none; font-size: 0.75rem; font-family: inherit; cursor: pointer; }
  .mxcp-bnav-i i { font-size: 1.2rem; }
  .mxcp-bnav-i:hover, .mxcp-bnav-i:active { color: var(--primary); text-decoration: none; }
  .mxcp-bnav-badge { position: absolute; top: 4px; left: 54%; background: var(--st-action); color: #fff; border-radius: 999px; font-size: 0.65rem; padding: 0 6px; min-width: 16px; text-align: center; }
  .mxcp-bnav-dot { position: absolute; top: 8px; left: 56%; width: 9px; height: 9px; border-radius: 50%; background: var(--st-live); }
  .mxcp-bsheet:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 9995; background: rgba(0, 0, 0, 0.6); }
  .mxcp-bsheet-in { position: absolute; left: 0; right: 0; bottom: 0; max-height: 82vh; overflow-y: auto; background: #121316; border-top: 1px solid var(--border); border-radius: 18px 18px 0 0; padding: 14px 16px calc(20px + env(safe-area-inset-bottom)); }
  .mxcp-bsheet-x { background: none; border: none; color: var(--text); font-size: 1.8rem; line-height: 1; padding: 4px 10px; cursor: pointer; }
  .mxcp-bsheet-sec h4 { margin: 12px 0 4px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text3); }
  .mxcp-bsheet-sec a { display: block; padding: 13px 4px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); font-size: 1rem; }
}

/* ── Stage C: Do something, hints, empty states ── */
.mxcp-fab { position: fixed; right: 16px; bottom: 20px; z-index: 9990; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 999px; background: var(--gold, #c9a227); color: #111; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.45); }
.mxcp-fab:hover { filter: brightness(1.08); }
.mxcp-has-bnav .mxcp-fab { bottom: 78px; }
@media (min-width: 900px) { .mxcp-has-bnav .mxcp-fab { bottom: 20px; } }
.mxcp-dosheet { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; }
.mxcp-dosheet[hidden] { display: none; }
.mxcp-dosheet-in { background: #121316; color: #eee; width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; border-radius: 16px 16px 0 0; padding: 16px 16px 24px; border: 1px solid rgba(255,255,255,.08); }
@media (min-width: 700px) { .mxcp-dosheet { align-items: center; } .mxcp-dosheet-in { border-radius: 16px; } }
.mxcp-do-x { background: none; border: 0; color: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.mxcp-do-sub { margin: 14px 0 6px; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; opacity: .65; }
.mxcp-do-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.mxcp-do-list { display: grid; gap: 8px; }
.mxcp-do-choice { text-align: left; padding: 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: inherit; font: inherit; font-size: 1rem; cursor: pointer; }
.mxcp-do-choice:hover { border-color: var(--gold, #c9a227); }
.mxcp-do-choice i { width: 1.4em; color: var(--gold, #c9a227); }
.mxcp-do-title { font-weight: 700; font-size: 1.05rem; margin: 6px 0 10px; }
.mxcp-do-back { background: none; border: 0; color: inherit; opacity: .7; cursor: pointer; font: inherit; padding: 0; }
.mxcp-do-field { display: block; margin-bottom: 10px; }
.mxcp-do-field > span { display: block; font-size: .78rem; opacity: .7; margin-bottom: 3px; }
.mxcp-do-field small { display: block; opacity: .55; margin-bottom: 3px; }
.mxcp-do-field .mxcp-input, .mxcp-dosheet .mxcp-input { width: 100%; box-sizing: border-box; }
.mxcp-do-check { display: block; margin: 8px 0; font-size: .9rem; }
.mxcp-do-msg { padding: 10px 12px; border-radius: 10px; margin: 8px 0; font-size: .92rem; }
.mxcp-do-msg.ok { background: rgba(46,204,113,.14); border: 1px solid rgba(46,204,113,.4); }
.mxcp-do-msg.bad { background: rgba(231,76,60,.14); border: 1px solid rgba(231,76,60,.4); }
.mxcp-do-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.mxcp-hint { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0 0 14px; border-radius: 10px; background: rgba(201,162,39,.1); border: 1px solid rgba(201,162,39,.35); font-size: .9rem; }
.mxcp-hint > i { color: var(--gold, #c9a227); }
.mxcp-hint > span { flex: 1; min-width: 0; }
.mxcp-hint-x { background: none; border: 1px solid rgba(255,255,255,.25); color: inherit; border-radius: 8px; padding: 4px 10px; font: inherit; font-size: .8rem; cursor: pointer; white-space: nowrap; }
.mxcp-empty { text-align: center; padding: 18px 10px; opacity: .85; }
.mxcp-empty p { margin: 0 0 10px; }

/* ── Stage D: Today, check-in, pause, what's active ── */
.mxcp-today { margin-bottom: 22px; }
.mxcp-today-date { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .65; margin-bottom: 10px; }
.mxcp-checkin-form { margin: 0 0 16px; }
.mxcp-checkin-big { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 26px 16px; border: 1px solid rgba(46,204,113,.5); border-radius: 22px; background: linear-gradient(160deg, rgba(46,204,113,.22), rgba(46,204,113,.08)); color: inherit; font: inherit; cursor: pointer; min-height: 132px; justify-content: center; }
.mxcp-checkin-big:hover { border-color: rgba(46,204,113,.9); }
.mxcp-checkin-big i { font-size: 2.2rem; color: #2ecc71; }
.mxcp-checkin-big span { font-size: 1.6rem; font-weight: 700; }
.mxcp-checkin-big small { opacity: .7; font-size: .85rem; }
.mxcp-checkin-done { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 16px; border-radius: 18px; border: 1px solid rgba(46,204,113,.35); background: rgba(46,204,113,.08); }
.mxcp-checkin-done i { font-size: 1.8rem; color: #2ecc71; }
.mxcp-checkin-done small { display: block; opacity: .7; }
.mxcp-today-list { display: grid; gap: 8px; margin-bottom: 16px; }
.mxcp-today-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); border-left-width: 4px; }
.mxcp-today-row.mxcp-st-action { border-left-color: var(--st-action, #e67e22); }
.mxcp-today-row.mxcp-st-live { border-left-color: var(--st-live, #e74c3c); }
.mxcp-today-row.mxcp-st-wait { border-left-color: var(--st-wait, #f1c40f); }
.mxcp-today-row > i { width: 1.4em; text-align: center; opacity: .85; }
.mxcp-today-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mxcp-today-row form { margin: 0; }
.mxcp-today-empty { padding: 18px 14px; text-align: center; opacity: .8; border-radius: 14px; border: 1px dashed rgba(255,255,255,.18); }
.mxcp-rules-today { padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); margin-bottom: 10px; }
.mxcp-today-h { margin: 0 0 8px; font-size: 1rem; }
.mxcp-rt-row { display: flex; gap: 10px; padding: 5px 0; }
.mxcp-rt-row i { width: 1.4em; text-align: center; color: var(--gold, #c9a227); }
.mxcp-today-more { margin: 0 0 6px; font-size: .9rem; }
.mxcp-pause-fab { position: fixed; left: 16px; bottom: 20px; z-index: 9990; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(231,76,60,.6); background: #1d1214; color: #f1a9a0; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.mxcp-pause-fab.is-paused { border-color: rgba(46,204,113,.6); background: #10201a; color: #9be3b8; }
.mxcp-has-bnav .mxcp-pause-fab { bottom: 78px; }
@media (min-width: 900px) { .mxcp-has-bnav .mxcp-pause-fab { bottom: 20px; } }
/* 4.6: with the theme's side menu open on wide screens, sit just right of it (it used to cover the role badge at the menu's foot). */
@media (min-width: 769px) { body:has(.mxcp-sidebar) .mxcp-pause-fab { left: calc(var(--sidebar-width, 280px) + 16px); } }
.mxcp-pausesheet { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center; padding: 16px; }
.mxcp-pausesheet[hidden] { display: none; }
.mxcp-pausesheet-in { background: #121316; color: #eee; max-width: 440px; width: 100%; border-radius: 16px; padding: 20px; border: 1px solid rgba(255,255,255,.1); }
.mxcp-pausesheet-in h3 { margin: 0 0 8px; }
.mxcp-pausesheet-in p { margin: 0 0 12px; opacity: .85; }
.mxcp-pausesheet-in textarea { width: 100%; box-sizing: border-box; }
.mxcp-active-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }
.mxcp-active-dot.on { background: #2ecc71; }
.mxcp-active-dot.off { background: #7f8c8d; }
.mxcp-weeknav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.mxcp-weeknav span { text-align: center; }
.mxcp-weeknav small { display: block; opacity: .65; }
/* Stage E: guest Welcome page and the Guests screen */
.mxcp-guest-page { max-width: 820px; margin: 0 auto; }
.mxcp-guest-safety { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(46,204,113,.35); background: rgba(46,204,113,.08); margin: 0 0 16px; font-size: .92rem; }
.mxcp-guest-safety i { color: #2ecc71; margin-top: 3px; }
.mxcp-guest-hi { margin: 0 0 4px; }
.mxcp-guest-can { margin: 0 0 16px; opacity: .85; }
.mxcp-guest-sec { margin: 0 0 22px; scroll-margin-top: 16px; }
.mxcp-guest-more-note { font-size: .85rem; opacity: .8; margin: 8px 0 0; }
.mxcp-guest-h { margin: 18px 0 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.mxcp-guest-opt { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.07); cursor: pointer; }
.mxcp-guest-opt input { margin-top: 4px; }
.mxcp-guest-opt small { display: block; opacity: .7; }
.mxcp-guest-ov { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.mxcp-guest-ov span { flex: 1; min-width: 0; }
.mxcp-guest-ov select { max-width: 55%; }
.mxcp-guest-link input { width: 100%; box-sizing: border-box; font-size: .8rem; }
@media (max-width: 600px) { .mxcp-guest-ov { flex-direction: column; align-items: stretch; } .mxcp-guest-ov select { max-width: none; } }
.mxcp-guest-tabs { display: flex; gap: 12px; overflow-x: auto; margin: 0 0 28px; padding: 2px 2px 10px; -webkit-overflow-scrolling: touch; }
.mxcp-guest-tabs .mxcp-btn { white-space: nowrap; flex: 0 0 auto; }

/* Guest portal: the site's own menus and sidebars are not needed there. */
body.mxcp-guest-view :is(#secondary, .widget-area, aside.sidebar, #sidebar, .sidebar, .site-sidebar, .wp-block-template-part nav, header nav, #site-navigation, .main-navigation, .primary-navigation, .site-navigation, .nav-menu, .menu-toggle, .wp-block-navigation, .wp-block-page-list, .side-menu, .left-menu, .off-canvas, #off-canvas, .mobile-menu, .site-menu) { display: none !important; }
body.mxcp-guest-view :is(#primary, .site-main, .content-area, main, .site-content, .entry-content) { width: 100% !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; float: none !important; }
body.mxcp-guest-view :is(#mxcp-sidebar, .mxcp-sidebar, .mxcp-mobile-header, .mxcp-sidebar-backdrop) { display: none !important; }
body.mxcp-guest-view :is(.mxcp-main-wrapper, .site-footer) { margin-left: 0 !important; }

/* ═══════════════════════════════════════════════════════════════
   RULE BOOK: shared across admin, slave and guest so a large,
   deeply-sectioned rule set (many sections, dozens of rules each)
   stays navigable — search, jump nav, collapsible sections.
═══════════════════════════════════════════════════════════════ */
.mxcp-rulebook { --mxcp-rule-accent: var(--purple-lt); }
.mxcp-rulebook-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 22px; }
.mxcp-rulebook-toolbar .mxcp-rules-search { flex: 1 1 220px; min-width: 0; }
.mxcp-rulebook-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mxcp-rules-toc-wrap { margin-bottom: 28px; }
.mxcp-rules-toc-label {
	display: block;
	font-size: 0.72rem;
	color: var(--text3, var(--text-muted));
	text-transform: uppercase;
	letter-spacing: 0.15em;
	margin-bottom: 10px;
}
.mxcp-rules-toc { display: flex; flex-wrap: wrap; gap: 10px; }
.mxcp-rules-toc a {
	font-size: 0.82rem;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid var(--border);
	color: var(--mxcp-rule-accent);
	text-decoration: none;
	white-space: nowrap;
	background: rgba(255,255,255,0.035);
	transition: border-color 0.15s ease, background 0.15s ease;
}
.mxcp-rules-toc a:hover { border-color: var(--mxcp-rule-accent); background: rgba(255,255,255,0.07); }
.mxcp-rules-empty { text-align: center; padding: 28px 10px; }
.mxcp-rule-sec { border: 1px solid var(--border); border-radius: var(--r-lg); margin-bottom: 22px; overflow: hidden; scroll-margin-top: 16px; }
.mxcp-rule-sec-summary {
	cursor: pointer;
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	background: rgba(255,255,255,0.02);
	user-select: none;
}
.mxcp-rule-sec-heading {
	font-family: var(--font-h);
	font-size: 1.1rem;
	color: var(--mxcp-rule-accent);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.mxcp-rule-sec-count {
	font-family: inherit;
	font-size: 0.85rem;
	text-transform: none;
	letter-spacing: 0;
	color: var(--text2, var(--text-muted));
	font-weight: 400;
}
.mxcp-rule-sec-body { padding: 20px 20px 12px; border-top: 1px solid var(--border); }
.mxcp-rule-sublist { margin: 10px 0 16px 24px; padding: 0; list-style: disc; }
.mxcp-rule-sublist li { margin-bottom: 7px; line-height: 1.5; }
.mxcp-rule-text p { margin: 0 0 13px; }
.mxcp-rule-text p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
	.mxcp-rulebook-toolbar { flex-direction: column; align-items: stretch; }
	.mxcp-rulebook-actions { justify-content: stretch; }
	.mxcp-rulebook-actions .mxcp-btn { flex: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   HOME (the cockpit, 4.0): status bar, needs-you, tiles, cards, feed
   ═══════════════════════════════════════════════════════════════ */
.mxcp-home { display: flex; flex-direction: column; gap: 16px; }
.mxcp-home > * { margin-top: 0; margin-bottom: 0; }
.mxcp-home-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.mxcp-home-date { color: var(--text2); font-size: 0.85rem; }
.mxcp-home-date i { color: var(--text3); margin-right: 4px; }
.mxcp-home-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mxcp-live-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--border2); border-radius: 999px; font-size: 0.78rem; color: var(--text2); text-decoration: none; }
.mxcp-live-chip:hover { color: var(--text); border-color: var(--text3); text-decoration: none; }
.mxcp-live-chip.is-live { border-color: var(--st-live, #ef4444); color: var(--text); }
.mxcp-live-chip b { color: var(--st-live, #ef4444); font-size: 0.7rem; letter-spacing: 0.06em; }

.mxcp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mxcp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border2); border-radius: 999px; font-size: 0.82rem; color: var(--text2); text-decoration: none; background: transparent; }
.mxcp-chip:hover { color: var(--text); text-decoration: none; border-color: var(--text3); }
.mxcp-chip.is-on { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.mxcp-home-feed .mxcp-chips { margin-bottom: 10px; }

.mxcp-home-alert { padding: 12px 14px; border: 1px solid var(--border); border-left: 4px solid var(--st-action, #f97316); border-radius: var(--r-lg); background: var(--surface); color: var(--text); }
.mxcp-home-alert a { margin-left: 6px; }
.mxcp-home-alert ul { margin: 6px 0 6px 18px; padding: 0; }
.mxcp-home-alert--shame { border-left-color: var(--crimson); }

/* status tiles */
.mxcp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 12px; }
.mxcp-tile { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--border2); border-radius: var(--r-lg); color: var(--text); text-decoration: none; }
a.mxcp-tile:hover { text-decoration: none; border-color: var(--text3); }
.mxcp-tile-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text3); }
.mxcp-tile-label i { margin-right: 3px; }
.mxcp-tile-value { font-family: var(--font-h); font-size: 1.35rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.mxcp-tile-value small { font-size: 0.8rem; font-weight: 400; color: var(--text2); font-family: var(--font-b); }
.mxcp-tile-na { font-size: 1rem; color: var(--text2); font-weight: 600; }
.mxcp-tile-sub { font-size: 0.78rem; color: var(--text2); line-height: 1.45; overflow-wrap: anywhere; }
.mxcp-tile--good { border-top-color: var(--st-done, #22c55e); }
.mxcp-tile--bad  { border-top-color: var(--crimson); }
.mxcp-tile--warn { border-top-color: var(--gold); }
.mxcp-tile--live { border-top-color: var(--st-action, #f97316); }
.mxcp-pill { display: inline-block; padding: 1px 7px; margin: 2px 2px 0 0; border: 1px solid var(--border2); border-radius: 999px; font-size: 0.72rem; color: var(--text2); white-space: nowrap; }
.mxcp-pill.ok { border-color: var(--st-done, #22c55e); color: var(--text); }
.mxcp-pill.bad { border-color: var(--crimson); color: var(--text); }

/* cards and columns */
.mxcp-home-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.mxcp-home-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mxcp-home-card { padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); min-width: 0; }
.mxcp-home-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.mxcp-home-card-head h3 { margin: 0; font-family: var(--font-h); font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); }
.mxcp-home-card-head h3 i { color: var(--crimson); margin-right: 4px; }
.mxcp-home-card-right { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mxcp-home-empty { margin: 4px 0; color: var(--text2); font-size: 0.9rem; }
.mxcp-home-sub { margin: 12px 0 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text3); }
.mxcp-home-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mxcp-home-btns form { margin: 0 !important; }
.mxcp-home-form { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; }
.mxcp-home-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.mxcp-home-row .mxcp-input { flex: 1 1 140px; min-width: 0; width: auto; }
.mxcp-home-form .mxcp-home-row { margin: 0; }
.mxcp-home-row select.mxcp-input { flex: 0 1 auto; }
.mxcp-home-lbl { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text3); }
.mxcp-home-check { display: inline-flex; gap: 6px; align-items: center; font-size: 0.85rem; color: var(--text2); }
.mxcp-home-needs .mxcp-inbox-item { background: var(--bg2, transparent); }
.mxcp-home-foot { margin: 0; color: var(--text3); font-size: 0.8rem; }
.mxcp-home-tabs { margin-top: -4px; }
.mxcp-quicklogs { display: flex; flex-direction: column; gap: 8px; }
.mxcp-quicklog .mxcp-drawer { margin-top: 8px; }

/* the feed */
.mxcp-feed-day { margin: 14px 0 4px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text3); }
.mxcp-feed-day:first-of-type { margin-top: 2px; }
.mxcp-feed { list-style: none; margin: 0; padding: 0; }
.mxcp-feed-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; padding: 9px 0 9px 10px; border-bottom: 1px solid var(--border); border-left: 3px solid transparent; }
.mxcp-feed-row:last-child { border-bottom: 0; }
.mxcp-feed-ic { margin-top: 3px; color: var(--text3); text-align: center; }
.mxcp-feed--good { border-left-color: var(--st-done, #22c55e); }
.mxcp-feed--good .mxcp-feed-ic { color: var(--st-done, #22c55e); }
.mxcp-feed--bad { border-left-color: var(--crimson); }
.mxcp-feed--bad .mxcp-feed-ic { color: var(--crimson); }
.mxcp-feed--live { border-left-color: var(--st-action, #f97316); }
.mxcp-feed--live .mxcp-feed-ic { color: var(--st-action, #f97316); }
.mxcp-feed-main { min-width: 0; }
.mxcp-feed-title { font-weight: 600; font-size: 0.9rem; color: var(--text); overflow-wrap: anywhere; }
.mxcp-feed-title a { color: inherit; }
.mxcp-feed-who { display: inline-block; margin-left: 4px; padding: 0 6px; border: 1px solid var(--border2); border-radius: 999px; font-size: 0.68rem; font-weight: 500; color: var(--text3); vertical-align: 1px; }
.mxcp-feed-text { margin-top: 2px; font-size: 0.82rem; color: var(--text2); overflow-wrap: anywhere; }
.mxcp-feed-when { font-size: 0.75rem; color: var(--text3); white-space: nowrap; padding-top: 2px; }
.mxcp-feed-more { margin: 10px 0 0; font-size: 0.85rem; }

@media (max-width: 900px) {
  .mxcp-home-cols { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .mxcp-tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mxcp-tile { padding: 12px; }
  .mxcp-tile-value { font-size: 1.1rem; }
  .mxcp-home-card { padding: 14px; }
}

/* ═══════════════════════════════════════════════════════════════
   UI KIT (mxcp_g_* helpers in modules/roulette/games-helpers.php)
   These rules replace the inline styles the helpers used to print.
   ═══════════════════════════════════════════════════════════════ */
.mxcp-card.mxcp-g-card { margin-bottom: 20px; }
.mxcp-g-card > .mxcp-section-bar { flex-wrap: wrap; gap: 8px; }
.mxcp-g-card-ic { color: var(--gold); margin-right: 8px; }
.mxcp-g-card > .mxcp-stage { margin-bottom: 0; }
.mxcp-g-row { padding: 10px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.mxcp-g-row.is-last { border-bottom: 0; }
.mxcp-g-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--mxcp-g-min, 180px), 1fr)); gap: 10px; }
label.mxcp-g-field { display: block; min-width: 0; }
.mxcp-g-label { font-size: 0.75rem; color: var(--text3); }
.mxcp-input.mxcp-g-input { width: 100%; }
p.mxcp-text-muted.mxcp-g-muted { margin: 6px 0 10px; font-size: 0.85rem; }
.mxcp-btn.mxcp-g-submit { margin-top: 8px; }
form.mxcp-ajax-form.mxcp-g-inline { display: inline-block; margin: 2px 4px 2px 0; }
a.mxcp-g-proof { color: var(--gold); }
.mxcp-g-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }

/* ═══════════════════════════════════════════════════════════════
   CHASTITY PAGE (4.1)
   ═══════════════════════════════════════════════════════════════ */
.mxcp-ch { display: flex; flex-direction: column; gap: 0; }
.mxcp-ch > .mxcp-tiles { margin-bottom: 20px; }
.mxcp-ch-clock { display: flex; justify-content: center; margin: 12px 0 4px; }
.mxcp-ch-note { text-align: center; font-weight: 600; margin: 0 0 12px; }
.mxcp-ch-note.is-warn { color: var(--gold); }
.mxcp-ch-dates { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 8px 16px; padding: 10px 14px; margin: 0 0 16px; background: var(--surface2); border-radius: var(--r); font-size: 0.86rem; color: var(--text2); }
.mxcp-ch-dates i { color: var(--gold); margin-right: 4px; }
.mxcp-ch-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 12px; }
.mxcp-ch-actions.is-left { justify-content: flex-start; margin: 0; }
.mxcp-ch-actions form.mxcp-g-inline { margin: 0; }
.mxcp-g-toggles { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--surface3); }
.mxcp-g-toggles.is-left { justify-content: flex-start; border-top: 0; padding-top: 0; margin-bottom: 12px; }
.mxcp-g-toggles > .mxcp-g-drawer { flex: 1 1 100%; }
.mxcp-g-panel { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--surface2); border: 1px solid var(--surface3); border-radius: var(--r); text-align: left; }
.mxcp-g-panel.is-center { text-align: center; align-items: center; }
.mxcp-g-panel .mxcp-card-subtitle { margin: 0; }
.mxcp-g-panel .mxcp-card-subtitle i { color: var(--gold); margin-right: 6px; }
.mxcp-g-panel > .mxcp-btn { align-self: flex-start; }
.mxcp-g-panel.is-center > .mxcp-btn { align-self: center; }
.mxcp-ch-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 8px; }
.mxcp-ch-num { text-align: center; }
.mxcp-ch-penalty { padding: 12px; background: var(--surface3); border-radius: var(--r); }
.mxcp-ch-penalty-h { margin-bottom: 8px; font-size: 0.85rem; font-weight: 600; color: var(--danger, var(--crimson)); }
.mxcp-ch-center { text-align: center; margin: 4px 0 10px; }
.mxcp-ch-task { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; padding-left: 10px; border-left: 3px solid var(--border2); }
.mxcp-ch-task.is-pending { border-left-color: var(--gold); }
.mxcp-ch-task.is-completed { border-left-color: var(--st-done, #22c55e); }
.mxcp-ch-task.is-failed { border-left-color: var(--crimson); }
.mxcp-ch-task-main { flex: 1 1 260px; min-width: 0; }
.mxcp-ch-task-desc { margin-top: 3px; color: var(--text2); font-size: 0.88rem; }
.mxcp-ch-task-pen { margin-top: 4px; color: var(--crimson); font-size: 0.82rem; font-weight: 600; }
.mxcp-ch-task-proof { margin-top: 6px; font-size: 0.85rem; }
.mxcp-ch-task-act { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px; }
.mxcp-ch-task-form { flex: 1 1 100%; margin: 4px 0 0; }
.mxcp-ch-task-form .mxcp-home-row { margin: 4px 0 0; }
.mxcp-ch-proofs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.mxcp-ch-proof { position: relative; margin: 0; padding: 8px; background: var(--surface2); border: 1px solid var(--surface3); border-radius: var(--r); }
.mxcp-ch-proof img, .mxcp-ch-proof video { display: block; width: 100%; height: 130px; object-fit: cover; border-radius: 4px; }
.mxcp-ch-proof figcaption { margin-top: 6px; font-size: 0.8rem; text-align: center; }
.mxcp-ch-proof figcaption span { display: block; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mxcp-ch-proof figcaption small { color: var(--text3); }
.mxcp-ch-proof-del { position: absolute; top: 12px; right: 12px; z-index: 1; }
.mxcp-ch-proof-del form.mxcp-g-inline { margin: 0; }
.mxcp-ch-log { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 0.88rem; }
.mxcp-ch-log small { display: block; color: var(--text3); }
.mxcp-ch-log-amt { color: var(--gold); font-weight: 600; }
.mxcp-ch-log-amt.is-minus { color: var(--st-done, #22c55e); }
.mxcp-ch-log-by { color: var(--text3); font-size: 0.8rem; white-space: nowrap; }
.mxcp-g-fold { margin-top: 10px; }
.mxcp-g-fold > summary { cursor: pointer; color: var(--text2); font-size: 0.88rem; padding: 6px 0; }

/* TASKS PAGE (4.1) */
.mxcp-tk-selall { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 0.82rem; color: var(--text2); cursor: pointer; }
.mxcp-tk-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; padding-left: 10px; border-left: 3px solid var(--border2); }
.mxcp-tk-row.is-pending { border-left-color: var(--gold); }
.mxcp-tk-row.is-overdue, .mxcp-tk-row.is-failed { border-left-color: var(--crimson); }
.mxcp-tk-row.is-completed { border-left-color: var(--st-done, #22c55e); }
.mxcp-tk-row > .mxcp-bulk-check { margin-top: 5px; }
.mxcp-tk-main { flex: 1 1 240px; min-width: 0; }
.mxcp-tk-desc { margin-top: 3px; color: var(--text2); font-size: 0.88rem; }
.mxcp-tk-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 0.8rem; color: var(--text3); }
.mxcp-tk-meta .is-late { color: var(--crimson); font-weight: 600; }
.mxcp-tk-pts { color: var(--gold); font-weight: 600; }
.mxcp-tk-proof { margin-top: 6px; font-size: 0.85rem; }
.mxcp-tk-act { display: flex; flex-wrap: wrap; gap: 4px; }
.mxcp-tk-act form.mxcp-g-inline { margin: 0; }
.mxcp-tk-done { flex: 1 1 100%; margin: 2px 0 0; padding: 10px 12px; background: var(--surface2); border-radius: var(--r); }
.mxcp-tk-done .mxcp-home-row { margin: 4px 0 0; }
.mxcp-tk > .mxcp-tiles { margin-bottom: 20px; }

/* PHONE FIT (4.2): the main column may shrink below its content's natural width (it is a flex item), wide file pickers
   shrink, and a page wrap inside the page wrap does not pad the sides twice on small screens. */
.mxcp-layout > .mxcp-main-wrapper { min-width: 0; }
input[type="file"].mxcp-input { max-width: 100%; min-width: 0; }
@media (max-width: 640px) {
  .mxcp-wrap .mxcp-wrap { padding-left: 0; padding-right: 0; }
  .mxcp-g-card.mxcp-card { padding-left: 16px; padding-right: 16px; }
}

/* CALENDAR (4.3) */
.mxcp-sc-list { display: flex; flex-direction: column; }
.mxcp-sc-sub { margin: 4px 0 6px; }
.mxcp-sc-list + .mxcp-sc-sub { margin-top: 16px; }
.mxcp-sc-item { display: flex; align-items: center; gap: 10px 14px; padding: 8px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.mxcp-sc-item:last-child { border-bottom: 0; }
.mxcp-sc-item.is-now { background: var(--surface2); border-left: 3px solid var(--gold); padding-left: 8px; }
.mxcp-sc-time { flex: 0 0 auto; min-width: 7.5em; font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 600; font-size: 0.9rem; }
.mxcp-sc-what { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.mxcp-sc-item .mxcp-g-inline { margin: 0; }
.mxcp-sc-nowtxt { color: var(--gold); }
.mxcp-sc-week { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.mxcp-sc-day { padding: 10px 12px; background: var(--surface2); border: 1px solid var(--surface3); border-radius: var(--r); min-width: 0; }
.mxcp-sc-day.is-today { border-color: var(--gold); }
.mxcp-sc-day h4 { margin: 0 0 6px; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.mxcp-sc-none { margin: 0; font-size: 0.85rem; }
.mxcp-sc-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.mxcp-sc-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--surface3); border: 1px solid var(--border); border-radius: 20px; cursor: pointer; font-size: 0.9rem; }
.mxcp-sc-pill input { accent-color: var(--gold); }
.mxcp-sc-rename { display: flex; flex: 1 1 200px; gap: 8px; margin: 0; min-width: 0; }
.mxcp-sc-rename .mxcp-input { flex: 1 1 auto; min-width: 0; }
.mxcp-sc-gen { margin: 14px 0 4px; }
.mxcp-sc > .mxcp-card { margin-bottom: 20px; }

/* BOOKINGS (4.3) */
.mxcp-bk > .mxcp-tiles, .mxcp-bk > .mxcp-card { margin-bottom: 20px; }
.mxcp-bk-stars { color: var(--gold); white-space: nowrap; }
.mxcp-bk-marks { width: 5.5em; }
.mxcp-bk-rating { text-align: center; }
.mxcp-bk-rating-num { font-size: 3rem; font-weight: 800; color: var(--gold); line-height: 1.1; }

/* ROUTINE (4.3) */
.mxcp-rt > .mxcp-tiles, .mxcp-rt > .mxcp-card { margin-bottom: 20px; }
.mxcp-rt-kind { margin: 14px 0 4px; }
.mxcp-rt-kind:first-child { margin-top: 0; }
.mxcp-rt-proofs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mxcp-rt-proofs img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); display: block; }
.mxcp-rt-day { border-bottom: 1px solid var(--border); padding: 4px 0; }
.mxcp-rt-day > summary { padding: 6px 0; }

/* LOCATION (4.3) */
.mxcp-lc > .mxcp-tiles, .mxcp-lc > .mxcp-card { margin-bottom: 20px; }
.mxcp-lc-form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.mxcp-lc-form > .mxcp-btn { align-self: flex-start; }
.mxcp-lc-gps { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px; background: var(--surface2); border: 1px solid var(--surface3); border-radius: var(--r); }
.mxcp-lc-gps > .fa-satellite { font-size: 1.6rem; color: var(--gold); }
.mxcp-lc-gps-txt { flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
.mxcp-lc-gps-txt .mxcp-text-muted { font-size: 0.82rem; }
.mxcp-lc .mxcp-btn-sm { max-width: 100%; white-space: normal; text-align: left; }

/* POINTS TAB (4.2) */
.mxcp-pt > .mxcp-tiles { margin-bottom: 20px; }
.mxcp-pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 12px; }
.mxcp-pt-item { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: var(--surface2); border: 1px solid var(--surface3); border-left: 3px solid var(--gold); border-radius: var(--r); min-width: 0; }
.mxcp-pt-item.is-off { opacity: 0.6; border-left-color: var(--border2); }
.mxcp-pt-item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; overflow-wrap: anywhere; }
.mxcp-pt-item .mxcp-g-inline { margin: 0; }
.mxcp-pt-need { font-size: 0.85rem; }
.mxcp-pt-setting { margin: 0 0 14px; font-size: 0.9rem; color: var(--text2); }
.mxcp-pt-amt { font-weight: 700; display: inline-block; min-width: 3.5em; }
.mxcp-pt-amt.is-plus { color: var(--st-done, #22c55e); }
.mxcp-pt-amt.is-minus { color: var(--crimson); }

/* PUNISHMENTS TAB (4.2) */
.mxcp-pn > .mxcp-tiles { margin-bottom: 20px; }
.mxcp-tk-row.is-reported { border-left-color: var(--gold); }
.mxcp-pn-inf { margin-top: 6px; overflow-wrap: anywhere; line-height: 1.5; }
.mxcp-pn-note { margin-top: 6px; padding: 6px 10px; font-size: 0.86rem; color: var(--text2); background: var(--surface2); border-left: 2px solid var(--border2); border-radius: 3px; overflow-wrap: anywhere; }
.mxcp-pn-note.is-master { border-left-color: var(--gold); }
.mxcp-pn-note.is-guest { border-left-color: #3498db; }
.mxcp-tk-done .mxcp-g-grid { margin-bottom: 8px; }
.mxcp-tk-done { min-width: 0; box-sizing: border-box; }
.mxcp-tk-done textarea { margin: 4px 0; width: 100%; max-width: 100%; box-sizing: border-box; }
.mxcp-tk-done .mxcp-home-row { flex-wrap: wrap; }
.mxcp-g-inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }

/* CHECK-IN PAGE (4.1) */
.mxcp-ci > .mxcp-tiles { margin-bottom: 20px; }
.mxcp-ci-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 20px; align-items: start; }
.mxcp-ci-grid > .mxcp-card { min-width: 0; }
.mxcp-ci-today { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.mxcp-ci-period { padding: 12px 14px; background: var(--surface2); border: 1px solid var(--surface3); border-left: 3px solid var(--border2); border-radius: var(--r); min-width: 0; }
.mxcp-ci-period.is-now { border-left-color: var(--gold); }
.mxcp-ci-period.mxcp-ci-done { border-left-color: var(--st-done, #22c55e); }
.mxcp-ci-period-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 8px; }
.mxcp-ci-form { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.mxcp-ci-form .mxcp-btn { align-self: flex-start; }
.mxcp-ci-note { margin-top: 4px; color: var(--text2); font-size: 0.88rem; overflow-wrap: anywhere; }
.mxcp-ci-note.is-quote { font-style: italic; }
.mxcp-ci-sub { margin: 18px 0 4px; }
.mxcp-ci-list > .mxcp-g-row:last-child { border-bottom: 0; }
.mxcp-ci-pending { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; }
.mxcp-ci-more { text-align: center; padding-top: 8px; }
.mxcp-ci-check { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text2); cursor: pointer; }
.mxcp-ci-check input { accent-color: var(--crimson); width: 16px; height: 16px; }
@media (max-width: 640px) { .mxcp-ci-grid { grid-template-columns: 1fr; } }

/* RULE BOOK (4.4) */
.mxcp-rb > .mxcp-tiles, .mxcp-rb > .mxcp-card { margin-bottom: 20px; }
.mxcp-rb-rule { margin-bottom: 10px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--r); }
.mxcp-rb-rule.is-off { opacity: 0.65; }
.mxcp-rb-sum, .mxcp-rule-sec-summary { list-style: none; }
.mxcp-rb-sum::-webkit-details-marker, .mxcp-rule-sec-summary::-webkit-details-marker { display: none; }
.mxcp-rb-sum { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; font-weight: 600; }
.mxcp-rb-sum::after { content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid var(--mxcp-rule-accent, var(--gold)); border-bottom: 2px solid var(--mxcp-rule-accent, var(--gold)); transform: rotate(45deg); transition: transform 0.2s ease; }
.mxcp-rb-rule[open] > .mxcp-rb-sum::after { transform: rotate(-135deg); }
.mxcp-rb-title { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
.mxcp-rb-sum .mxcp-badge { flex-shrink: 0; }
@media (max-width: 600px) { .mxcp-rulebook-toolbar .mxcp-rules-search { flex: 0 0 auto; } }
.mxcp-rb-label { flex-shrink: 0; padding: 3px 9px; border-radius: var(--r); background: var(--crimson); color: #fff; font-size: 0.85rem; font-weight: 700; }
.mxcp-rulebook[style*="--gold"] .mxcp-rb-label { background: var(--gold); color: var(--background, #111); }
.mxcp-rb-body { padding: 14px 16px; border-top: 1px solid var(--border); color: var(--text2); line-height: 1.6; overflow-wrap: anywhere; }
.mxcp-rb-act { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--border); }
.mxcp-rb-act form.mxcp-g-inline { margin: 0; }
.mxcp-rb-act > .mxcp-g-drawer { flex: 1 1 100%; }
.mxcp-rb-secrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mxcp-rb-seclist { margin-top: 12px; }

/* LIMITS (4.4) */
.mxcp-lm > .mxcp-tiles, .mxcp-lm > .mxcp-card { margin-bottom: 20px; }
.mxcp-tk-row.is-green { border-left-color: var(--st-done, #22c55e); }
.mxcp-tk-row.is-yellow { border-left-color: var(--gold); }
.mxcp-tk-row.is-red { border-left-color: var(--crimson); }
.mxcp-lm-stars span { color: var(--gold); letter-spacing: 1px; }

/* CONSENT (4.4) */
.mxcp-cs > .mxcp-card { margin-bottom: 20px; }
.mxcp-cs-form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.mxcp-cs-form > .mxcp-btn { align-self: flex-start; }
.mxcp-btn.mxcp-cs-safeword { background: var(--crimson, #c0392b); color: #fff; font-size: 1.05rem; padding: 14px 24px; font-weight: 800; white-space: normal; }
.mxcp-cs-sw { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mxcp-cs-sw > span { flex-shrink: 0; white-space: nowrap; }
label.mxcp-cs-sw { cursor: pointer; }
.mxcp-cs-log { overflow-wrap: anywhere; font-size: 0.9rem; }
.mxcp-cs-when { color: var(--text3); font-size: 0.82rem; white-space: nowrap; margin-right: 4px; }
.mxcp-cs-reason { flex: 1 1 160px; min-width: 0; max-width: 260px; }
.mxcp-lm-act { flex: 1 1 100%; margin-top: 4px; padding-top: 0; border-top: 0; }
.mxcp-lm-act > .mxcp-g-drawer { order: 3; }

/* SEX CONTROL and HUMILIATION (4.4) */
.mxcp-sx > .mxcp-tiles, .mxcp-sx > .mxcp-card, .mxcp-hm > .mxcp-tiles, .mxcp-hm > .mxcp-card { margin-bottom: 20px; }
.mxcp-sx-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; }
.mxcp-sx-proto { margin: 0; }
.mxcp-sx-proto > summary { color: var(--text); font-weight: 600; }
.mxcp-tk-done .mxcp-g-inline-form input[type="file"] { flex: 1 1 180px; }
.mxcp-hm-notice { font-weight: 600; color: var(--crimson-lt, #e74c3c); overflow-wrap: anywhere; line-height: 1.45; }
.mxcp-hm-pen { flex: 1 1 180px; min-width: 0; }
.mxcp-hm-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mxcp-hm-item form.mxcp-g-inline { margin: 0; align-self: flex-start; }
.mxcp-hm-cap { font-size: 0.8rem; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mxcp-hm-tag { position: absolute; right: 5px; bottom: 5px; padding: 2px 5px; border-radius: 3px; background: rgba(0,0,0,.7); font-size: 10px; color: #fff; }
.mxcp-tk-done > form.mxcp-g-inline { margin: 6px 0 0; }

/* WHEELS (4.5) */
.mxcp-wh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mxcp-wh-chip { display: inline-block; padding: 3px 8px; border-radius: 4px; background: var(--mxcp-wh-c, #475569); color: #fff; font-size: 0.78rem; font-weight: 600; overflow-wrap: anywhere; }
.mxcp-wh-chip small { font-weight: 400; opacity: 0.85; }
.mxcp-wh-seg { display: grid; grid-template-columns: minmax(0, 3fr) 44px minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 6px; margin: 6px 0; align-items: center; }
.mxcp-wh-seg input[type="color"] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--border); background: transparent; border-radius: 4px; }
@media (max-width: 560px) { .mxcp-wh-seg { grid-template-columns: minmax(0, 1fr) 44px; } .mxcp-wh-seg select, .mxcp-wh-seg input[type="number"] { grid-column: span 1; } }
.mxcp-wh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.mxcp-wh-wheel { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; text-align: center; background: var(--surface2); border: 1px solid var(--surface3); border-top: 3px solid var(--crimson); border-radius: var(--r); min-width: 0; }
.mxcp-wh-wheel.is-reward { border-top-color: var(--st-done, #22c55e); }
.mxcp-wh-wheel h4 { margin: 0; }
.mxcp-wh-canvas { width: min(280px, 100%); height: auto; aspect-ratio: 1; border-radius: 50%; }
.mxcp-wh-result { min-height: 1.6em; font-weight: 700; overflow-wrap: anywhere; }
.mxcp-wh-result.is-bad { color: var(--crimson); }
.mxcp-wh-wheel .mxcp-g-fold { align-self: stretch; text-align: left; }

/* REPORT / DOSSIER (4.5) */
.mxcp-an > .mxcp-tiles, .mxcp-an > .mxcp-card { margin-bottom: 20px; }
.mxcp-an-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px; margin-bottom: 12px; }
.mxcp-an-grid.is-small { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
.mxcp-an-tile, .mxcp-an-rec, .mxcp-an-badge { position: relative; min-width: 0; padding: 12px 14px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--r-lg); overflow-wrap: anywhere; }
.mxcp-an-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text3); }
.mxcp-an-value { font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.mxcp-an-value small { font-size: 0.8rem; font-weight: 400; }
.mxcp-an-sub { font-size: 0.78rem; color: var(--text3); }
.mxcp-an-trend { font-size: 0.75rem; color: var(--text3); }
.mxcp-an-trend.is-good { color: var(--st-done, #22c55e); }
.mxcp-an-trend.is-bad { color: var(--crimson); }
.mxcp-an-rec > i { color: var(--gold); font-size: 1.3rem; }
.mxcp-an-rec.is-new { border-color: var(--gold); }
.mxcp-an-rec > .mxcp-badge { position: absolute; top: 8px; right: 8px; }
.mxcp-an-badge { padding: 10px 12px; opacity: 0.55; }
.mxcp-an-badge.is-earned { opacity: 1; border-color: var(--gold); }
.mxcp-an-badge-ic { font-size: 1.4rem; }
.mxcp-an-note { margin: 4px 0 0; color: var(--text2); line-height: 1.6; }
.mxcp-an-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.mxcp-an-heat-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.mxcp-an-heat { width: max-content; --mxcp-cell: 13px; }
.mxcp-an-months, .mxcp-an-cells { display: grid; grid-template-columns: repeat(var(--mxcp-weeks, 53), var(--mxcp-cell)); gap: 3px; }
.mxcp-an-months { height: 14px; margin-bottom: 4px; font-size: 0.7rem; color: var(--text3); }
.mxcp-an-months span { grid-row: 1; white-space: nowrap; }
.mxcp-an-cells { grid-template-rows: repeat(7, var(--mxcp-cell)); grid-auto-flow: column; }
.mxcp-an-cells > div { width: var(--mxcp-cell); height: var(--mxcp-cell); border-radius: 3px; }
.mxcp-an-legend { margin-top: 10px; font-size: 0.8rem; line-height: 1.9; }
.mxcp-an-sw { display: inline-flex; align-items: center; gap: 5px; margin-right: 12px; }
.mxcp-an-sw > span { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.mxcp-an-filter { margin-bottom: 16px; }
.mxcp-an-filter-btns { margin-top: 10px; }
.mxcp-an-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 12px; }
.mxcp-an-photo { margin: 0; min-width: 0; overflow: hidden; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--r-lg); }
.mxcp-an-photo img, .mxcp-an-photo video { display: block; width: 100%; height: 130px; object-fit: cover; background: #000; }
.mxcp-an-file { display: flex; align-items: center; justify-content: center; height: 130px; color: var(--gold); font-size: 2rem; }
.mxcp-an-photo figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 8px 10px; font-size: 0.8rem; overflow-wrap: anywhere; }
.mxcp-an-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; }
.mxcp-cert-wrap { margin-bottom: 18px; }
.mxcp-cert { --c-b: #c9a227; --c-bg: linear-gradient(135deg,#1c1a12,#2a2410); --c-ink: #f3e3a3; --c-sub: #b9a662; border: 3px double var(--c-b); background: var(--c-bg); color: var(--c-ink); border-radius: 12px; padding: 26px 22px; text-align: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.mxcp-cert.is-crimson { --c-b: #b3202f; --c-bg: linear-gradient(135deg,#1d0f12,#2d1217); --c-ink: #f3c9cf; --c-sub: #c58b93; }
.mxcp-cert.is-midnight { --c-b: #6f8fd6; --c-bg: linear-gradient(135deg,#0e1424,#161f3a); --c-ink: #d8e3ff; --c-sub: #8ea2cf; }
.mxcp-cert-kicker { font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--c-sub); }
.mxcp-cert-to { margin-top: 14px; font-size: 0.9rem; color: var(--c-sub); }
.mxcp-cert-name { margin: 6px 0; font-size: 1.9rem; font-weight: 700; overflow-wrap: anywhere; }
.mxcp-cert-title { margin: 10px 0; font-size: 1.25rem; font-weight: 600; overflow-wrap: anywhere; }
.mxcp-cert-msg { max-width: 520px; margin: 10px auto; line-height: 1.7; font-style: italic; overflow-wrap: anywhere; }
.mxcp-cert-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--c-b); font-size: 0.85rem; color: var(--c-sub); }
.mxcp-cert-act { display: flex; gap: 8px; margin-top: 8px; }
.mxcp-cert-act form.mxcp-g-inline { margin: 0; }
@media print {
  body.mxcp-print-one * { visibility: hidden !important; }
  body.mxcp-print-one .mxcp-print-this, body.mxcp-print-one .mxcp-print-this * { visibility: visible !important; }
  body.mxcp-print-one .mxcp-print-this { position: absolute; left: 0; top: 0; width: 100%; }
  body.mxcp-print-one #mxcp-report.mxcp-print-this, body.mxcp-print-one #mxcp-report.mxcp-print-this * { color: #000 !important; background: transparent !important; border-color: #999 !important; box-shadow: none !important; }
  .mxcp-no-print { display: none !important; }
}

/* GAMES overview (4.5) */
.mxcp-gm-waiting { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 10px; }
.mxcp-gm-wait { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--r-lg); color: var(--text); text-decoration: none; }
.mxcp-gm-wait strong { font-size: 1.3rem; color: var(--text3); }
.mxcp-gm-wait.is-on { border-color: var(--gold); }
.mxcp-gm-wait.is-on strong { color: var(--gold); }
.mxcp-module > .mxcp-tiles { margin-bottom: 20px; }

/* INSPECTION and DRESS CODE (4.5) */
.mxcp-dly-photo { display: inline-block; flex-shrink: 0; }
.mxcp-dly-photo img { display: block; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); width: 96px; height: 96px; }
.mxcp-dly-photo.is-s img { width: 40px; height: 40px; border-radius: 4px; }
.mxcp-dly-photo.is-l img { width: 140px; height: 140px; }
.mxcp-dly-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.mxcp-dly-head > .mxcp-tk-desc, .mxcp-dly-head > .mxcp-tk-main { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; margin: 0; }
.mxcp-dly-item { display: flex; padding: 6px 0; }
.mxcp-dly-fix { margin: 6px 0 0 18px; padding: 0; }
.mxcp-dly-verdict { display: grid; grid-template-columns: minmax(0, 2fr) auto minmax(0, 3fr); gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--border); }
.mxcp-dly-verdict .is-ok { color: var(--st-done, #22c55e); }
.mxcp-dly-verdict .is-bad { color: var(--crimson); }
.mxcp-dly-radios { white-space: nowrap; }
@media (max-width: 560px) { .mxcp-dly-verdict { grid-template-columns: minmax(0, 1fr) auto; } .mxcp-dly-verdict > input { grid-column: 1 / -1; } }
.mxcp-dly-hist { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; overflow-wrap: anywhere; }
.mxcp-dly-hist > span:first-child { min-width: 96px; }
.mxcp-dly-outfit { padding: 12px 14px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: var(--r-lg); }
.mxcp-dly-outfit.is-waiting { border-color: var(--gold); }
.mxcp-dly-outfit-h { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 8px; overflow-wrap: anywhere; }
.mxcp-dly-archive { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 1fr)); gap: 10px; padding-top: 10px; }
.mxcp-dly-arch { font-size: 0.8rem; overflow-wrap: anywhere; }
.mxcp-dly-arch .mxcp-dly-photo img { width: 100%; height: 120px; }

/* Notification drawer (4.6) */
.mxcp-notif-empty-ic { font-size: 36px; color: var(--mxcp-text-muted); opacity: .4; margin-bottom: 12px; display: block; }
.mxcp-notif-empty p { margin: 0; color: var(--mxcp-text-muted); font-size: 13px; }
.mxcp-notif-link { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.mxcp-notif-link .fa-external-link-alt { font-size: .7rem; opacity: .6; }


/* ═══ UTILITIES (4.6) ═══
   Small one-job classes that replaced inline style="…" strings in the newer pages. Spacing, text and border
   ones are !important so they behave like the inline styles they replaced; display ones are not, so JavaScript
   can still hide and show those elements. Prefer a kit helper or a named class for anything new. */
.mxcp-u-m0 { margin:0 !important; }
.mxcp-u-my2 { margin:2px 0 !important; }
.mxcp-u-my4 { margin:4px 0 !important; }
.mxcp-u-my6 { margin:6px 0 !important; }
.mxcp-u-my8 { margin:8px 0 !important; }
.mxcp-u-my10 { margin:10px 0 !important; }
.mxcp-u-mt0 { margin-top:0 !important; }
.mxcp-u-mt2 { margin-top:2px !important; }
.mxcp-u-mt4 { margin-top:4px !important; }
.mxcp-u-mt6 { margin-top:6px !important; }
.mxcp-u-mt8 { margin-top:8px !important; }
.mxcp-u-mt10 { margin-top:10px !important; }
.mxcp-u-mt12 { margin-top:12px !important; }
.mxcp-u-mt14 { margin-top:14px !important; }
.mxcp-u-mt16 { margin-top:16px !important; }
.mxcp-u-mt18 { margin-top:18px !important; }
.mxcp-u-mb4 { margin-bottom:4px !important; }
.mxcp-u-mb6 { margin-bottom:6px !important; }
.mxcp-u-mb8 { margin-bottom:8px !important; }
.mxcp-u-mb10 { margin-bottom:10px !important; }
.mxcp-u-mb12 { margin-bottom:12px !important; }
.mxcp-u-mb14 { margin-bottom:14px !important; }
.mxcp-u-mb16 { margin-bottom:16px !important; }
.mxcp-u-mb20 { margin-bottom:20px !important; }
.mxcp-u-mb24 { margin-bottom:24px !important; }
.mxcp-u-mr8 { margin-right:8px !important; }
.mxcp-u-mr10 { margin-right:10px !important; }
.mxcp-u-p8 { padding:8px !important; }
.mxcp-u-p10 { padding:10px !important; }
.mxcp-u-p12 { padding:12px !important; }
.mxcp-u-p14 { padding:14px !important; }
.mxcp-u-py3 { padding:3px 0 !important; }
.mxcp-u-py4 { padding:4px 0 !important; }
.mxcp-u-py6 { padding:6px 0 !important; }
.mxcp-u-py8 { padding:8px 0 !important; }
.mxcp-u-pt8 { padding-top:8px !important; }
.mxcp-u-pt10 { padding-top:10px !important; }
.mxcp-u-pt12 { padding-top:12px !important; }
.mxcp-u-flex { display:flex; }
.mxcp-u-iflex { display:inline-flex; }
.mxcp-u-grid { display:grid; }
.mxcp-u-block { display:block; }
.mxcp-u-iblock { display:inline-block; }
.mxcp-u-inline { display:inline; }
.mxcp-u-wrap { flex-wrap:wrap !important; }
.mxcp-u-between { justify-content:space-between !important; }
.mxcp-u-jc-center { justify-content:center !important; }
.mxcp-u-ai-c { align-items:center !important; }
.mxcp-u-ai-s { align-items:flex-start !important; }
.mxcp-u-gap2 { gap:2px !important; }
.mxcp-u-gap4 { gap:4px !important; }
.mxcp-u-gap6 { gap:6px !important; }
.mxcp-u-gap8 { gap:8px !important; }
.mxcp-u-gap10 { gap:10px !important; }
.mxcp-u-gap14 { gap:14px !important; }
.mxcp-u-gap6-10 { gap:6px 10px !important; }
.mxcp-u-gap8-12 { gap:8px 12px !important; }
.mxcp-u-gap6-12 { gap:6px 12px !important; }
.mxcp-u-grow { flex:1 !important; }
.mxcp-u-f180 { flex:1 1 180px !important; }
.mxcp-u-f200 { flex:1 1 200px !important; }
.mxcp-u-f260 { flex:1 1 260px !important; }
.mxcp-u-min0 { min-width:0 !important; }
.mxcp-u-full-row { grid-column:1 / -1 !important; }
.mxcp-u-cols130 { grid-template-columns:repeat(auto-fit,minmax(130px,1fr)) !important; }
.mxcp-u-cols180 { grid-template-columns:repeat(auto-fit,minmax(180px,1fr)) !important; }
.mxcp-u-cols200 { grid-template-columns:repeat(auto-fit,minmax(200px,1fr)) !important; }
.mxcp-u-cols280 { grid-template-columns:repeat(auto-fit,minmax(280px,1fr)) !important; }
.mxcp-u-w100 { width:100% !important; }
.mxcp-u-pointer { cursor:pointer !important; }
.mxcp-u-anywhere { overflow-wrap:anywhere !important; }
.mxcp-u-nowrap { white-space:nowrap !important; }
.mxcp-u-normal { white-space:normal !important; }
.mxcp-u-tc { text-align:center !important; }
.mxcp-u-tl { text-align:left !important; }
.mxcp-u-float-r { float:right !important; }
.mxcp-u-italic { font-style:italic !important; }
.mxcp-u-mono { font-family:monospace !important; }
.mxcp-u-gold { color:var(--gold) !important; }
.mxcp-u-text2 { color:var(--text2) !important; }
.mxcp-u-text3 { color:var(--text3) !important; }
.mxcp-u-crimson { color:var(--crimson) !important; }
.mxcp-u-fs68 { font-size:0.68rem !important; }
.mxcp-u-fs75 { font-size:0.75rem !important; }
.mxcp-u-fs78 { font-size:.78rem !important; }
.mxcp-u-fs80 { font-size:0.8rem !important; }
.mxcp-u-fs82 { font-size:.82rem !important; }
.mxcp-u-fs85 { font-size:0.85rem !important; }
.mxcp-u-fs88 { font-size:0.88rem !important; }
.mxcp-u-fs90 { font-size:.9rem !important; }
.mxcp-u-fs110 { font-size:1.1rem !important; }
.mxcp-u-fs120 { font-size:1.2rem !important; }
.mxcp-u-fs140 { font-size:1.4rem !important; }
.mxcp-u-fs150 { font-size:1.5rem !important; }
.mxcp-u-fs160 { font-size:1.6rem !important; }
.mxcp-u-fs200 { font-size:2rem !important; }
.mxcp-u-fw6 { font-weight:600 !important; }
.mxcp-u-fw7 { font-weight:700 !important; }
.mxcp-u-fw8 { font-weight:800 !important; }
.mxcp-u-upper { text-transform:uppercase !important; }
.mxcp-u-track { letter-spacing:0.08em !important; }
.mxcp-u-bd { border:1px solid var(--border) !important; }
.mxcp-u-bb { border-bottom:1px solid var(--border) !important; }
.mxcp-u-bt { border-top:1px solid var(--border) !important; }
.mxcp-u-bd-gold { border:1px solid var(--gold) !important; }
.mxcp-u-bd-crimson { border:1px solid var(--crimson) !important; }
.mxcp-u-r8 { border-radius:8px !important; }
.mxcp-u-rlg { border-radius:var(--r-lg) !important; }
.mxcp-u-bg2 { background:var(--surface2) !important; }
.mxcp-u-bg3 { background:var(--surface3, #2a2a33) !important; }
.mxcp-u-lh16 { line-height:1.6 !important; }
.mxcp-u-m2 { margin: 2px !important; }
.mxcp-u-m4 { margin: 4px !important; }
.mxcp-u-sec { margin: 22px 0 8px !important; }
.mxcp-u-dim { opacity: .5; }
.mxcp-u-green { color: #2ecc71 !important; }
.mxcp-u-red { color: #e74c3c !important; }
.mxcp-u-fs125 { font-size: 1.25rem !important; }
.mxcp-u-fs240 { font-size: 2.4rem !important; }
.mxcp-u-min220 { min-width: 220px !important; }
.mxcp-u-w120 { width: 120px !important; }
.mxcp-u-maxw160 { max-width: 160px !important; }
.mxcp-u-maxw190 { max-width: 190px !important; }

/* Named pieces that replaced inline styles (4.6) */
.mxcp-panel { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 10px 12px; min-width: 0; }
.mxcp-panel.is-roomy { padding: 16px 18px; }
.mxcp-box { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px 14px; }
.mxcp-box.is-small { border-radius: var(--r); padding: 8px 12px; }
.mxcp-box.is-dashed { border: 1px dashed var(--gold); padding: 16px 18px; }
.mxcp-hr { border: 0; border-top: 1px solid var(--border); margin: 14px 0; }
.mxcp-meter { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.mxcp-meter > * { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.mxcp-meter.is-10 { height: 10px; background: var(--surface2); border-radius: 6px; }
.mxcp-disc-ladder-row { display: grid; grid-template-columns: auto minmax(160px,3fr) minmax(70px,1fr) minmax(120px,2fr); gap: 8px; align-items: center; margin-bottom: 6px; }
.mxcp-disc-days { display: grid; grid-template-columns: 90px 1fr; gap: 8px; margin-bottom: 8px; }
.mxcp-disc-ceremony { max-width: 560px; margin: 0 auto; line-height: 1.7; overflow-wrap: anywhere; }
.mxcp-agr-card { border-top: 3px solid var(--gold); }
.mxcp-agr-list { margin: 0 0 10px 18px; }
.mxcp-agr-list.is-last { margin-bottom: 4px; }
.mxcp-agr-snap { padding: 10px 4px; }
.mxcp-agr-snap.is-tight { padding: 8px 4px; }
.mxcp-wb-grace { max-width: 220px; }
.mxcp-g-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.mxcp-g-tiles.is-150 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.mxcp-g-tiles.is-240 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.mxcp-g-tile { border: 2px solid var(--border); border-radius: 12px; padding: 14px; background: var(--surface2); }
.mxcp-g-tile.is-gold { border-color: var(--gold); }
.mxcp-g-tile.is-used { opacity: .75; }
.mxcp-g-tile.is-card { padding: 12px; min-height: 130px; position: relative; }
.mxcp-g-tile.is-card.is-lit { border-color: var(--c); }
.mxcp-g-tile.is-card.is-dim { opacity: .55; }
.mxcp-g-rarity { font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.mxcp-g-corner { position: absolute; top: 8px; right: 8px; }
.mxcp-g-emoji { font-size: 2.6rem; }
.mxcp-g-emoji.is-small { font-size: 2.4rem; }
.mxcp-g-barlabel { width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mxcp-g-barnum { width: 60px; text-align: right; }
.mxcp-g-narrow { max-width: 520px; margin-left: auto; margin-right: auto; }
.mxcp-g-narrow.is-560 { max-width: 560px; }
.mxcp-g-narrow.is-360 { max-width: 360px; }
.mxcp-g-tdcard { max-width: 520px; margin: 0 auto; padding: 20px; border: 3px solid #4a8fe7; border-radius: 14px; background: var(--surface2); text-align: center; }
.mxcp-g-tdcard.is-dare { border-color: #b3202f; }
.mxcp-g-tdkind { letter-spacing: .2em; text-transform: uppercase; font-size: .75rem; }
.mxcp-g-secret { margin-top: 6px; padding: 8px; background: var(--surface2); border-left: 3px solid var(--gold); border-radius: 6px; }
.mxcp-live-frame { margin-bottom: 20px; border: 2px solid var(--crimson, #c0392b); }
.mxcp-live-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: #2ecc71; }
.mxcp-live-dot.is-yellow { background: #f1c40f; }
.mxcp-live-dot.is-red { background: #e74c3c; }
.mxcp-live-alert { margin: 10px 0; padding: 12px; border-radius: 8px; background: rgba(241,196,15,.15); border: 1px solid #f1c40f; font-weight: 700; }
.mxcp-live-log { max-height: 260px; overflow: auto; margin-top: 12px; }
.mxcp-btn.mxcp-live-color { flex: 1; min-width: 90px; padding: 18px; font-weight: 800; }
.mxcp-btn.mxcp-live-color.is-green { background: #2ecc71; color: #08210f; }
.mxcp-btn.mxcp-live-color.is-yellow { background: #f1c40f; color: #2b2300; }
.mxcp-btn.mxcp-live-color.is-red { background: #e74c3c; color: #fff; }
.mxcp-call-stage { position: relative; background: #000; border-radius: 10px; min-height: 220px; overflow: hidden; margin-bottom: 12px; }
.mxcp-call-remote { width: 100%; max-height: 70vh; display: block; background: #000; }
.mxcp-call-local { position: absolute; right: 8px; bottom: 8px; width: 28%; max-width: 160px; border-radius: 8px; border: 2px solid #fff; background: #111; }
.mxcp-inbox-item { position: relative; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px 14px; margin-bottom: 10px; touch-action: pan-y; }
.mxcp-inbox-item.is-urgent { border-color: var(--crimson); }
.mxcp-inbox-hint { position: absolute; top: 50%; transform: translateY(-50%); font-weight: 700; }
.mxcp-inbox-hint-yes { left: 14px; color: #2ecc71; }
.mxcp-inbox-hint-no { right: 14px; color: #e74c3c; }
.mxcp-inbox-batch { padding: 8px 0 12px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.mxcp-desk-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; margin-right: 6px; }
.mxcp-u-sec26 { margin: 26px 0 8px !important; }
.mxcp-u-rel { position:relative !important; }

/* ═══ SERVICE RECORD: PRIVILEGES (4.7) ═══ */
.mxcp-pv-state { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; border: 1px solid currentColor; white-space: nowrap; }
.mxcp-pv-state.is-allowed { color: #2ecc71; }
.mxcp-pv-state.is-limited { color: var(--gold); }
.mxcp-pv-state.is-restricted { color: #e74c3c; }
.mxcp-pv-row.is-allowed { border-left-color: #2ecc71; }
.mxcp-pv-row.is-limited { border-left-color: var(--gold); }
.mxcp-pv-row.is-restricted { border-left-color: #e74c3c; }
.mxcp-pv-row.is-changed .mxcp-tk-main > strong::after { content: ' •'; color: var(--gold); }
.mxcp-pv-cond { color: var(--text); font-style: italic; }
.mxcp-pv-act { flex: 0 1 auto; margin-left: auto; align-items: center; justify-content: flex-end; gap: 4px 14px; }
.mxcp-pv-row:has(details[open]) .mxcp-pv-act { flex: 1 1 100%; justify-content: flex-start; }
.mxcp-pv-row { align-items: center; }
.mxcp-pv-fold { margin: 0; }
.mxcp-pv-fold[open] { flex: 1 1 100%; order: 2; }
.mxcp-pv-fold > summary { font-size: 0.85rem; padding: 2px 0; }

/* ═══ SERVICE RECORD: PROFILE (4.7) ═══ */
.mxcp-pf-row { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; }
.mxcp-pf-main { flex: 1 1 140px; min-width: 0; }
.mxcp-pf-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text3); }
.mxcp-pf-val { font-size: 1.1rem; font-weight: 700; overflow-wrap: anywhere; }
.mxcp-pf-val.is-empty { font-size: 0.9rem; font-weight: 400; color: var(--text3); }
.mxcp-pf-act { flex: 0 1 auto; margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 14px; }
.mxcp-pf-row:has(details[open]) .mxcp-pf-act { flex: 1 1 100%; justify-content: flex-start; }
.mxcp-pf-row { align-items: center; }
.mxcp-pf-fold { margin: 0; }
.mxcp-pf-fold[open] { flex: 1 1 100%; order: 2; }
.mxcp-pf-fold > summary { font-size: 0.85rem; }
.mxcp-pf-hist { padding: 4px 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; overflow-wrap: anywhere; }
.mxcp-pf-hist form.mxcp-g-inline { display: inline-block; margin: 0; }
.mxcp-pf-meaning { font-style: italic; }
.mxcp-pf-spark { margin: 6px 0 8px; max-width: 420px; }
.mxcp-pf-spark svg { display: block; width: 100%; height: 64px; overflow: visible; }
.mxcp-pf-line { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.mxcp-pf-dot { fill: var(--gold); stroke: var(--surface, #16171b); stroke-width: 2; }
.mxcp-pf-hit { fill: transparent; }
.mxcp-pf-pt:hover .mxcp-pf-dot { r: 5; }
.mxcp-pf-spark figcaption { display: flex; justify-content: space-between; font-size: 0.75rem; margin-top: 2px; }
.mxcp-pf-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 12px; margin: 8px 0 12px; }
.mxcp-tk-redo { color: var(--crimson); }

/* ═══ SURPRISE CHECKS (4.8) ═══ */
.mxcp-ping-ov { position: fixed; inset: 0; z-index: 2147483000; background: rgba(8, 4, 6, 0.92); display: flex; align-items: center; justify-content: center; padding: 16px; }
.mxcp-ping-box { width: 100%; max-width: 420px; text-align: center; background: var(--surface, #16171b); border: 2px solid var(--crimson, #c0392b); border-radius: var(--r-lg, 12px); padding: 24px 20px; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.mxcp-ping-ov.is-drill .mxcp-ping-box { border-color: var(--gold); }
.mxcp-ping-title { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--crimson, #e74c3c); }
.mxcp-ping-ov.is-drill .mxcp-ping-title { color: var(--gold); }
.mxcp-ping-prompt { margin: 10px 0 0; color: var(--text); }
.mxcp-ping-clock { font-size: 3.2rem; font-weight: 800; font-variant-numeric: tabular-nums; margin: 12px 0; }
.mxcp-ping-clock.is-urgent { color: #e74c3c; }
.mxcp-ping-form { display: flex; flex-direction: column; gap: 10px; }
.mxcp-ping-pick { position: relative; overflow: hidden; justify-content: center; }
.mxcp-ping-pick.is-ready { border-color: #2ecc71; color: #2ecc71; }
.mxcp-ping-file { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mxcp-ping-go { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; }
.mxcp-ping-ack { padding: 22px; font-size: 1.2rem; }
.mxcp-ping-msg { margin: 10px 0 0; font-size: 0.85rem; color: var(--text2); min-height: 1em; }
body.mxcp-ping-on { overflow: hidden; }
.mxcp-ping-card { text-align: center; }
.mxcp-ping-card .mxcp-ping-left { font-size: 1.6rem; font-weight: 800; margin: 8px 0 12px; }
.mxcp-pt-twist { color: var(--gold); font-style: italic; }
.mxcp-ch-est { margin: 12px 0; padding: 12px 14px; border: 1px dashed var(--border); border-radius: var(--r-lg); }
.mxcp-ch-est.is-on { border-color: var(--gold); }
.mxcp-ch-est-h { font-size: 0.9rem; margin-bottom: 6px; overflow-wrap: anywhere; }
.mxcp-ch-est-h i { color: var(--gold); }

/* ═══ SCENE PLANNER (4.9) ═══ */
.mxcp-scene-limits { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 16px; margin-bottom: 10px; }
.mxcp-scene-grp { display: flex; flex-direction: column; gap: 4px; }
.mxcp-scene-list { margin: 0 0 10px 18px; padding: 0; }
.mxcp-scene-list li { margin: 4px 0; overflow-wrap: anywhere; }
.mxcp-scene-list.is-plain { list-style: none; margin-left: 0; }
.mxcp-scene-at { display: inline-block; min-width: 42px; color: var(--text3); font-variant-numeric: tabular-nums; }
.mxcp-auto-act { padding: 8px 0; border-top: 1px dashed var(--border); }
.mxcp-eff-wrap { overflow-x: auto; }
.mxcp-eff { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.mxcp-eff th, .mxcp-eff td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.mxcp-eff th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text3); font-weight: 600; }
.mxcp-eff-rate { white-space: nowrap; }
.mxcp-eff-bar { display: inline-block; width: 70px; vertical-align: middle; }
@media (max-width: 600px) { .mxcp-eff th:nth-child(5), .mxcp-eff td:nth-child(5) { display: none; } }

/* ═══ SEARCH (4.9) ═══ */
.mxcp-search-form { display: flex; gap: 8px; margin: 0 0 12px; }
.mxcp-search-form .mxcp-input { flex: 1 1 auto; min-width: 0; font-size: 1rem; }
.mxcp-search-hit { display: flex; flex-direction: column; gap: 2px; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.mxcp-search-hit:hover strong { color: var(--gold); }
.mxcp-search-snip { color: var(--text2); font-size: 0.88rem; }
.mxcp-search mark { background: rgba(251, 191, 36, 0.3); color: inherit; padding: 0 1px; border-radius: 2px; }
.mxcp-sidenav-everything { display: block; margin-top: 6px; font-size: 0.82rem; color: var(--gold); text-decoration: none; overflow-wrap: anywhere; }
.mxcp-sidenav-everything[hidden] { display: none; }

/* ═══ PHONE SHORTCUTS (4.9) ═══ */
.mxcp-go-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.mxcp-go-tab { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 1px solid var(--border); border-radius: var(--r-lg); color: var(--text2); text-decoration: none; font-size: 0.8rem; text-align: center; }
.mxcp-go-tab i { font-size: 1.2rem; }
.mxcp-go-tab.is-on { border-color: var(--gold); color: var(--gold); }
.mxcp-go-form { margin: 0; }
.mxcp-go-btn { width: 100%; justify-content: center; padding: 18px 10px; font-size: 1.15rem; font-weight: 800; }
.mxcp-go-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 12px; }

/* ═══ TYPE-TO-FIND PICKER (4.9.2) — mxcp_g_picker() ═══ */
.mxcp-pick { margin: 0 0 8px; }
.mxcp-pick-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; min-height: 30px; align-items: center; }
.mxcp-pick-none { font-size: 0.88rem; }
.mxcp-pick-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 4px 4px 4px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface2); color: var(--text); font-size: 0.86rem; overflow-wrap: anywhere; }
.mxcp-pick-chip.is-good { border-color: rgba(16, 185, 129, 0.55); }
.mxcp-pick-chip.is-warn { border-color: rgba(245, 158, 11, 0.6); }
.mxcp-pick-chip.is-free { border-style: dashed; border-color: var(--text3); }
.mxcp-pick-chip.is-good::before, .mxcp-pick-chip.is-warn::before, .mxcp-pick-chip.is-free::before { font-size: 0.7rem; font-weight: 700; margin-right: 2px; }
.mxcp-pick-chip.is-good::before { content: "✓"; color: var(--success); }
.mxcp-pick-chip.is-warn::before { content: "!"; color: var(--warning); }
.mxcp-pick-chip.is-free::before { content: "?"; color: var(--text3); }
.mxcp-pick-x { border: 0; background: transparent; color: var(--text3); cursor: pointer; font-size: 1.05rem; line-height: 1; width: 24px; height: 24px; border-radius: 50%; flex: 0 0 auto; }
.mxcp-pick-x:hover, .mxcp-pick-x:focus-visible { color: var(--text); background: rgba(255,255,255,0.08); }
.mxcp-pick-box { position: relative; }
.mxcp-pick-q { width: 100%; }
.mxcp-pick-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; max-height: 320px; overflow-y: auto; background: #121316; border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg, 10px); box-shadow: 0 10px 30px rgba(0,0,0,0.45); }
.mxcp-pick-list[hidden] { display: none; }
.mxcp-pick-opt { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.mxcp-pick-opt small { color: var(--text3); font-size: 0.78rem; text-align: right; flex: 0 1 auto; }
.mxcp-pick-opt:hover, .mxcp-pick-opt.is-hi { background: rgba(245, 158, 11, 0.12); }
.mxcp-pick-opt.is-blocked { cursor: not-allowed; opacity: 0.75; }
.mxcp-pick-opt.is-blocked:hover { background: transparent; }
.mxcp-pick-opt.is-blocked small { color: var(--danger); }
.mxcp-pick-l { overflow-wrap: anywhere; }
.mxcp-pick-l.is-warn + small { color: var(--warning); }
.mxcp-pick-opt.is-free .mxcp-pick-l { font-style: italic; }
.mxcp-pick-more { padding: 8px 10px; color: var(--text3); font-size: 0.82rem; }

/* ═══ TIDY-UP (4.10.0): classes that replaced inline styles ═══ */
.mxcp-u-self-end { align-self: end; }
/* Desk inbox: yes/no animation (was a <style> block printed with the inbox) */
.mxcp-inbox-item { transition: transform .18s ease, opacity .25s ease, max-height .3s ease; }
.mxcp-inbox-item.mxcp-out { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin: 0; overflow: hidden; }
.mxcp-inbox-item.mxcp-yes { background: rgba(46,204,113,.12); }
.mxcp-inbox-item.mxcp-no { background: rgba(231,76,60,.12); }
/* What's active: the count badges */
.mxcp-act-count { margin: 2px 6px 2px 0; }
/* Safety: the big real-life alert button and the card address field */
.mxcp-safe-alert-big { width: 100%; padding: 16px; background: #b00020; color: #fff; font-weight: 800; }
.mxcp-safe-card-url { width: min(100%, 380px); }
/* Record: the big number tiles, and a disabled pager link */
.mxcp-st-stat { padding: 16px; text-align: center; }
.mxcp-st-stat-n { font-size: 2.3rem; font-weight: 800; }
.mxcp-btn.is-disabled { opacity: .35; pointer-events: none; }
/* Settings › Alerts: the notification preferences */
.mxcp-np-group { margin-bottom: 8px; border: 1px solid var(--border); border-radius: var(--r); padding: 8px 12px; }
.mxcp-np-group > summary { cursor: pointer; font-weight: 600; }
.mxcp-np-group > summary .mxcp-text-muted { font-weight: 400; }
.mxcp-np-list { margin-top: 8px; display: grid; gap: 6px; }
.mxcp-np-check { display: flex; gap: 8px; align-items: center; }
.mxcp-np-monthly { margin: 8px 0 14px; }
.mxcp-np-h { margin: 18px 0 6px !important; }
/* The "portal paused" banner */
.mxcp-safety-banner { margin: 0 0 20px; padding: 14px 18px; border-left: 4px solid var(--crimson, #c0392b); background: rgba(221,4,4,0.12); }
.mxcp-safety-banner .fa-hand-paper { margin-right: 8px; }
/* Public video */
.mxcp-cast-video { width: 100%; max-width: 480px; margin-top: 8px; border-radius: 8px; background: #000; }
.mxcp-cast-video--watch { max-width: none; margin-top: 10px; }
.mxcp-cast-watch { max-width: 560px; margin: 20px auto; padding: 18px; }
.mxcp-g-span2 { grid-column: span 2; }
.mxcp-g-full { grid-column: 1 / -1; }

/* ═══ 5.0 ═══ */
/* Pin star next to the page heading (theme hook mx_portal_title_after) */
.portal-page-wrap { position: relative; }
.mxcp-pin-btn { position: absolute; top: calc(1rem + 6px); right: 1rem; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border2); background: var(--surface); color: var(--text3); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.mxcp-pin-btn:hover { color: var(--text); border-color: var(--border-gold-dim); }
.mxcp-pin-btn.is-on { color: var(--gold-text, var(--gold)); border-color: var(--border-gold-dim); }
@media (max-width: 600px) { .mxcp-pin-btn span { display: none; } .mxcp-pin-btn { padding: 6px 10px; } }
/* Today screen (modules/today) */
.mxcp-today-next { margin-bottom: 18px; }
.mxcp-today-next-h { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-text, var(--gold)); font-weight: 700; margin-bottom: 6px; }
.mxcp-today-next .mxcp-today-row { border-color: var(--border-gold-dim); box-shadow: var(--shadow-gold); }
.mxcp-today-part { margin-bottom: 16px; }
.mxcp-today-part-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text3); }
.mxcp-today-part-h small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.mxcp-today-part.is-now .mxcp-today-part-h { color: var(--text); }
.mxcp-today-row { align-items: flex-start; flex-wrap: wrap; }
.mxcp-today-row > i { margin-top: 3px; }
.mxcp-today-row.mxcp-st-done { border-left-color: var(--st-done, #22c55e); }
.mxcp-today-row.is-done, .mxcp-today-row.is-missed { opacity: .78; }
.mxcp-today-row.is-later .mxcp-today-line strong { font-weight: 600; }
.mxcp-today-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mxcp-today-note { display: block; color: var(--text3); margin-top: 2px; }
.mxcp-today-detail { margin-top: 6px; color: var(--text2); font-size: .9rem; }
.mxcp-today-step { margin: 8px 0 4px; font-size: 1.1rem; font-weight: 600; }
.mxcp-today-act { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.mxcp-today-act .mxcp-g-inline { display: inline-block; }
.mxcp-today-open { margin-left: auto; }
.mxcp-today-do { margin-top: 8px; }
.mxcp-today-do > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-gold-dim); color: var(--gold-text, var(--gold)); font-weight: 600; font-size: .85rem; list-style: none; }
.mxcp-today-do > summary::-webkit-details-marker { display: none; }
.mxcp-today-do[open] > summary { margin-bottom: 8px; }
.mxcp-today-form .mxcp-g-form { margin: 0; }
.mxcp-today-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border: 1px solid var(--border2); color: var(--text3); }
.mxcp-today-badge.is-live { color: var(--st-live, #ef4444); border-color: currentColor; }
.mxcp-today-badge.is-late, .mxcp-today-badge.is-missed { color: var(--danger-lt, #ef4444); border-color: currentColor; }
.mxcp-today-badge.is-todo { color: var(--st-action, #f97316); border-color: currentColor; }
.mxcp-today-badge.is-done { color: var(--ok-text, #2ecc71); border-color: currentColor; }
.mxcp-today-done { margin: 6px 0 16px; }
.mxcp-today-more-fold { margin-top: 8px; }
.mxcp-today-form.is-open { margin-top: 10px; }
.mxcp-today-sum { margin: 4px 0 14px; color: var(--text2); }
@media (max-width: 600px) { .mxcp-today-act { margin-left: 0; width: 100%; } .mxcp-today-open { margin-left: 0; } }
:where(html[data-mxcp-mode="light"]) .mxcp-today-badge.is-late, :where(html[data-mxcp-mode="light"]) .mxcp-today-badge.is-missed, :where(html[data-mxcp-mode="light"]) .mxcp-today-badge.is-live { color: #b91c1c; }
:where(html[data-mxcp-mode="light"]) .mxcp-today-badge.is-todo { color: #c2410c; }
/* ═══ 5.1 protocol modes and discreet ═══ */
.mxcp-mode-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border2); background: var(--surface); color: var(--text2); font-size: .78rem; font-weight: 600; text-decoration: none; }
.mxcp-mode-chip:hover { color: var(--text); text-decoration: none; }
.mxcp-mode-chip.is-high { border-color: var(--border-gold-dim); color: var(--gold-text, var(--gold)); }
.mxcp-mode-chip.is-holiday { border-color: rgba(56,189,248,.45); }
.mxcp-sidenav-mode { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 12px 10px; }
.mxcp-discreet-mini { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--border2); background: var(--surface); color: var(--text3); cursor: pointer; }
.mxcp-discreet-mini.is-on { color: var(--text); border-color: var(--text3); }
.mxcp-mode-now { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.mxcp-mode-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-gold-dim); font-weight: 700; }
.mxcp-mode-fx { margin: 6px 0 12px; padding-left: 18px; color: var(--text2); }
.mxcp-mode-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.mxcp-mode-btns .mxcp-g-inline { display: inline-block; }
.mxcp-mode-switches { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 12px; margin-bottom: 10px; }
.mxcp-mode-item > summary small { margin-left: 6px; }
.mxcp-today-mode { margin: 0 0 14px; padding: 8px 12px; border-radius: var(--r); border-left: 3px solid var(--info); background: var(--surface); color: var(--text2); font-size: .9rem; }
.mxcp-guest-mode { padding: 10px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); }
.mxcp-rule-mode { margin-left: 6px; }
.mxcp-rule-mode.is-out { opacity: .85; }
.mxcp-rb-rule.is-out-of-mode > summary { opacity: .55; }
/* Discreet look: plain grey accents, no glow, a neutral pause button (html[data-mxcp-discreet="1"]). */
html[data-mxcp-discreet="1"] { --gold: #6b7280; --gold-lt: #9ca3af; --gold-dk: #4b5563; --gold-text: var(--text2); --primary: #6b7280; --primary-lt: #9ca3af; --primary-dk: #4b5563; --crimson: #6b7280; --accent-primary: #6b7280; --border-gold-dim: var(--border2); --shadow-gold: none; }
html[data-mxcp-discreet="1"] body { background-image: none !important; }
html[data-mxcp-discreet="1"] .mxcp-sidebar-header .site-title a, html[data-mxcp-discreet="1"] .mxcp-mobile-branding a { -webkit-text-stroke-color: var(--text3) !important; text-shadow: none !important; }
html[data-mxcp-discreet="1"] .mxcp-pause-fab { color: var(--text2) !important; border-color: var(--border2) !important; }
html[data-mxcp-discreet="1"] .mxcp-global-shame-banner { display: none !important; }
html[data-mxcp-discreet="1"] .role-badge { visibility: hidden; }
html[data-mxcp-discreet="1"] .mxcp-nav-icon { filter: grayscale(1); }

/* ═══ 5.2 messages and voice notes (spacing reworked in 5.2.1) ═══ */
.mxcp-voice { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.mxcp-voice audio { height: 38px; max-width: 100%; }
.mxcp-voice.is-gone { color: var(--text3); font-size: .85rem; }
.mxcp-voice.is-once > i { color: var(--gold-text, var(--gold)); }
/* The recorder: its own box, so the buttons have room and don't run into the fields around it. */
.mxcp-voice-rec { margin: 16px 0; padding: 14px 16px; border: 1px dashed var(--border2); border-radius: var(--r-lg); background: var(--surface); }
.mxcp-voice-rec [hidden] { display: none !important; } /* the button styles must not show Stop / Remove / the preview before they're needed */
.mxcp-voice-rec > .mxcp-g-label { margin-bottom: 12px; }
.mxcp-voice-rec-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mxcp-voice-rec-row .mxcp-btn { padding: 9px 16px; }
.mxcp-voice-rec.can-record .mxcp-voice-file { display: none; }
.mxcp-voice-rec .mxcp-voice-file { margin-top: 4px; }
.mxcp-voice-rec .mxcp-ci-check { display: flex; margin-top: 14px; }
.mxcp-voice-preview { height: 38px; max-width: 100%; flex: 1 1 220px; }
.mxcp-chat-wrap { max-width: 820px; }
.mxcp-chat-settings { margin-bottom: 22px; }
.mxcp-chat-settings .mxcp-g-form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.mxcp-chat-settings .mxcp-g-form > p { margin: 0; }
.mxcp-chat-settings .mxcp-g-submit { align-self: flex-start; margin-top: 4px; }
.mxcp-chat-pinned { margin-bottom: 18px; padding: 12px 16px; border-radius: var(--r-lg); border: 1px solid var(--border-gold-dim); background: var(--surface); }
.mxcp-chat-pinned-row { padding: 6px 0; overflow-wrap: anywhere; }
.mxcp-chat-pinned-row + .mxcp-chat-pinned-row { border-top: 1px solid var(--border); }
.mxcp-chat-pinned-row i { color: var(--gold-text, var(--gold)); margin-right: 6px; }
.mxcp-chat-thread { display: flex; flex-direction: column; gap: 14px; max-height: 60vh; overflow-y: auto; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--bg2); margin-bottom: 20px; }
.mxcp-chat-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 82%; }
.mxcp-chat-msg.is-mine { align-self: flex-end; flex-direction: row-reverse; }
.mxcp-chat-msg.is-theirs { align-self: flex-start; }
.mxcp-chat-bubble { padding: 11px 15px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--border); min-width: 0; }
.mxcp-chat-msg.is-mine .mxcp-chat-bubble { background: var(--surface3); border-color: var(--border-gold-dim); }
.mxcp-chat-msg.is-pinned .mxcp-chat-bubble { box-shadow: var(--shadow-gold); }
.mxcp-chat-text { overflow-wrap: anywhere; color: var(--text); line-height: 1.5; }
.mxcp-chat-photo img { display: block; max-width: 240px; max-height: 240px; border-radius: 10px; margin-top: 8px; }
.mxcp-chat-meta { display: flex; gap: 8px; align-items: center; justify-content: flex-end; font-size: .72rem; color: var(--text3); margin-top: 8px; }
.mxcp-chat-tick.is-read { color: var(--info); }
.mxcp-chat-tick i + i { margin-left: -5px; }
.mxcp-chat-pin-form { margin: 0; }
.mxcp-chat-pin { background: none; border: none; color: var(--text3); cursor: pointer; opacity: .5; padding: 8px; }
.mxcp-chat-pin:hover { opacity: 1; color: var(--gold-text, var(--gold)); }
.mxcp-chat-msg.is-pinned .mxcp-chat-pin { opacity: 1; color: var(--gold-text, var(--gold)); }
.mxcp-chat-input { width: 100%; resize: vertical; min-height: 64px; padding: 12px 14px; }
.mxcp-chat-extra { margin-top: 16px; }
.mxcp-chat-extra[open] > summary { margin-bottom: 14px; }
.mxcp-chat-send-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.mxcp-chat-send-row .mxcp-btn { margin-left: auto; padding: 11px 22px; }
@media (max-width: 600px) {
  .mxcp-chat-msg { max-width: 92%; }
  .mxcp-chat-thread { max-height: 55vh; padding: 12px; gap: 12px; }
  .mxcp-voice-rec { padding: 12px; }
  .mxcp-voice-rec-row .mxcp-btn { flex: 1 1 auto; justify-content: center; }
  .mxcp-chat-send-row .mxcp-btn { flex: 1 1 100%; justify-content: center; }
}

/* ═══ 5.3 automations 2.0, punishment appointments, orgasm control ═══ */
.mxcp-auto-more { margin: 14px 0; }
.mxcp-auto-more[open] > summary { margin-bottom: 12px; }
.mxcp-appt { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-lg); border: 1px solid var(--border2); background: var(--surface); }
.mxcp-appt.is-started { border-color: var(--gold); }
.mxcp-appt.is-move_asked { border-style: dashed; }
.mxcp-appt-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mxcp-appt-line > i { color: var(--gold-text, var(--gold)); }
.mxcp-appt-badge { white-space: normal; text-align: left; }
.mxcp-appt-badge.is-good { background: rgba(16, 185, 129, .15); color: var(--emerald-lt); }
.mxcp-appt-badge.is-wait { background: rgba(148, 163, 184, .15); color: var(--text2); }
.mxcp-appt-badge.is-live { background: rgba(245, 158, 11, .18); color: var(--gold-lt); }
.mxcp-appt-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.mxcp-appt .mxcp-g-form, .mxcp-appt-move { margin-top: 12px; }
.mxcp-appt-book { margin-top: 10px; }
.mxcp-oc-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mxcp-oc-nav strong { font-size: 1.05rem; }
.mxcp-oc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mxcp-oc-dow { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text3); text-align: center; padding-bottom: 2px; }
.mxcp-oc-cell { min-height: 78px; padding: 6px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mxcp-oc-cell.is-blank { background: none; border: none; }
.mxcp-oc-cell.is-past { opacity: .55; }
.mxcp-oc-cell.is-today { outline: 2px solid var(--gold); outline-offset: 1px; }
.mxcp-oc-cell.is-good { border-color: rgba(16, 185, 129, .55); background: rgba(16, 185, 129, .08); }
.mxcp-oc-cell.is-bad { border-color: rgba(220, 38, 38, .55); background: rgba(220, 38, 38, .08); }
.mxcp-oc-cell.is-wait { border-color: rgba(148, 163, 184, .45); }
.mxcp-oc-cell.is-gold { border-color: rgba(245, 158, 11, .6); background: rgba(245, 158, 11, .08); }
.mxcp-oc-num { font-weight: 700; font-size: .85rem; color: var(--text2); }
.mxcp-oc-kind { font-size: .74rem; color: var(--text2); line-height: 1.25; overflow-wrap: anywhere; }
.mxcp-oc-out { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text3); margin-top: auto; }
.mxcp-oc-sel { width: 100%; min-width: 0; font-size: .74rem; padding: 4px 2px; border-radius: 6px; border: 1px solid var(--border2); background: var(--bg2); color: var(--text); }
.mxcp-oc-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: .8rem; color: var(--text3); }
.mxcp-oc-legend .is-good i { color: var(--emerald-lt); }
.mxcp-oc-legend .is-bad i { color: var(--crimson-lt); }
.mxcp-oc-legend .is-gold i { color: var(--gold); }
.mxcp-oc-today { padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid var(--border2); background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.mxcp-oc-today-k { font-size: 1.35rem; font-weight: 800; letter-spacing: .02em; }
.mxcp-oc-today.is-good { border-color: rgba(16, 185, 129, .6); }
.mxcp-oc-today.is-good .mxcp-oc-today-k { color: var(--emerald-lt); }
.mxcp-oc-today.is-bad { border-color: rgba(220, 38, 38, .6); }
.mxcp-oc-today.is-bad .mxcp-oc-today-k { color: var(--crimson-lt); }
.mxcp-oc-today.is-gold .mxcp-oc-today-k { color: var(--gold-text, var(--gold)); }
.mxcp-oc-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.mxcp-oc-h { margin: 18px 0 10px; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text3); }
.mxcp-oc-begfold { margin-top: 14px; }
.mxcp-oc-beg .mxcp-g-form { margin-top: 12px; }
.mxcp-oc-run { margin-bottom: 12px; }
.mxcp-oc-week { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.mxcp-oc-wk { padding: 8px 6px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); text-align: center; display: flex; flex-direction: column; gap: 2px; font-size: .78rem; min-width: 0; }
.mxcp-oc-wk span { color: var(--text3); }
.mxcp-oc-wk strong { overflow-wrap: normal; word-break: normal; hyphens: auto; }
.mxcp-oc-wk.is-good { border-color: rgba(16, 185, 129, .55); }
.mxcp-oc-wk.is-bad { border-color: rgba(220, 38, 38, .55); }
.mxcp-oc-wk.is-gold { border-color: rgba(245, 158, 11, .6); }
@media (max-width: 600px) {
  .mxcp-oc-grid { gap: 3px; }
  .mxcp-oc-cell { min-height: 58px; padding: 4px 3px; border-radius: 7px; }
  .mxcp-oc-kind { font-size: 0; }
  .mxcp-oc-kind i { font-size: .85rem; }
  .mxcp-oc-sel { font-size: .62rem; padding: 2px 0; }
}

/* ═══ 5.4 training, levels of trust, starter packs ═══ */
.mxcp-tr-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.mxcp-tr-head .mxcp-badge { align-self: flex-start; }
.mxcp-tr-st.is-active { background: rgba(245, 158, 11, .18); color: var(--gold-text, var(--gold-lt)); }
.mxcp-tr-st.is-done { background: rgba(16, 185, 129, .15); color: var(--emerald-lt); }
.mxcp-tr-bar { height: 10px; border-radius: 999px; background: var(--surface3); border: 1px solid var(--border); overflow: hidden; margin: 6px 0 4px; }
.mxcp-tr-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-dk), var(--gold)); border-radius: 999px; }
.mxcp-tr-act { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.mxcp-tr-cur { margin: 16px 0; padding: 14px 16px; border-radius: var(--r-lg); border: 1px solid var(--border-gold-dim); background: var(--surface); }
.mxcp-tr-cur-h { margin-bottom: 8px; }
.mxcp-tr-notes { margin: 6px 0 10px; color: var(--text2); }
.mxcp-tr-tasks { margin: 10px 0; }
.mxcp-tr-tasks ul { margin: 6px 0 0 18px; padding: 0; }
.mxcp-tr-tasks li { margin: 3px 0; }
.mxcp-tr-checks { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mxcp-tr-checks li { display: grid; grid-template-columns: 18px 1fr; column-gap: 8px; row-gap: 2px; align-items: baseline; }
.mxcp-tr-checks li > small { grid-column: 2; }
.mxcp-tr-checks li > i { color: var(--text3); }
.mxcp-tr-checks li.is-met > i { color: var(--emerald-lt); }
.mxcp-tr-ready { margin: 10px 0 0; color: var(--emerald-lt); font-weight: 600; }
.mxcp-tr-sign { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.mxcp-tr-sign .mxcp-g-fold { margin-top: 12px; }
.mxcp-tr-stages { margin-top: 12px; }
.mxcp-tr-stage { padding: 10px 0; border-bottom: 1px solid var(--border); }
.mxcp-tr-stage > i { color: var(--text3); margin-right: 4px; }
.mxcp-tr-stage.is-passed > i { color: var(--emerald-lt); }
.mxcp-tr-stage.is-current > i { color: var(--gold); }
.mxcp-tr-edit { margin-top: 10px; }
.mxcp-tr-edit .mxcp-g-form { margin-top: 10px; }
.mxcp-tr-builtins { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 12px 0 16px; }
.mxcp-tr-builtin { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r-lg); border: 1px solid var(--border2); background: var(--surface); }
.mxcp-tr-builtin > form, .mxcp-tr-builtin .mxcp-g-inline { margin-top: auto; }
.mxcp-trust-now { display: flex; flex-direction: column; gap: 6px; padding: 6px 0 4px; }
.mxcp-trust-steps { display: flex; gap: 8px; margin-bottom: 6px; }
.mxcp-trust-steps span { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; border: 2px solid var(--border2); color: var(--text3); }
.mxcp-trust-steps span.is-past { border-color: var(--gold-dk); color: var(--gold-text, var(--gold)); }
.mxcp-trust-steps span.is-cur { background: var(--gold); border-color: var(--gold); color: #111; }
.mxcp-trust-name { font-size: 1.3rem; font-weight: 800; }
.mxcp-trust-act { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.mxcp-trust-lv { border: 1px solid var(--border2); border-radius: var(--r-lg); padding: 12px 14px; margin: 0 0 14px; }
.mxcp-trust-lv legend { padding: 0 6px; font-weight: 700; }
.mxcp-trust-lv .mxcp-g-label { margin-top: 10px; }
.mxcp-trust-privs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; margin-top: 10px; }
.mxcp-trust-chip i { color: var(--gold-text, var(--gold)); }
.mxcp-pt-lock { color: var(--text3); }
.mxcp-pt-lock.is-locked { color: var(--gold-text, var(--gold)); }
.mxcp-pack { margin: 8px 0; }
.mxcp-pack > summary small { display: block; margin: 2px 0 0 18px; font-weight: 400; }
.mxcp-pack[open] > summary { margin-bottom: 10px; }
.mxcp-pack-kind { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; }
.mxcp-pack-up { margin-top: 16px; }

/* ═══ 5.5 camera proof and working offline ═══ */
.mxcp-cam-field { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 8px 0; }
.mxcp-cam-hidden { display: none !important; }
.mxcp-cam-only { display: block; }
.mxcp-cam-preview:empty { display: none; }
.mxcp-cam-preview { display: flex; flex-direction: column; gap: 4px; }
.mxcp-cam-preview img, .mxcp-cam-preview video { max-width: 240px; max-height: 240px; border-radius: 10px; border: 1px solid var(--border2); }
.mxcp-cam { position: fixed; inset: 0; z-index: 100000; background: rgba(0, 0, 0, .88); display: flex; align-items: center; justify-content: center; padding: 16px; }
.mxcp-cam[hidden] { display: none; }
.mxcp-cam-box { width: min(720px, 100%); display: flex; flex-direction: column; gap: 12px; }
.mxcp-cam-view { position: relative; border-radius: 14px; overflow: hidden; background: #000; }
.mxcp-cam-view video { display: block; width: 100%; max-height: 70vh; object-fit: contain; }
.mxcp-cam-rec { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(220, 38, 38, .9); color: #fff; font-weight: 700; font-size: .85rem; }
.mxcp-cam-rec[hidden] { display: none; }
.mxcp-cam-note { margin: 0; color: #e5e7eb; font-size: .85rem; }
.mxcp-cam-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mxcp-cam-actions [hidden] { display: none !important; }
html.mxcp-cam-open, html.mxcp-cam-open body { overflow: hidden; }
.mxcp-offline-pill { position: fixed; left: 16px; bottom: 84px; z-index: 9990; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--gold); background: var(--surface, #161616); color: var(--gold-text, var(--gold)); font-weight: 700; font-size: .85rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); cursor: pointer; }
html.mxcp-is-offline body::before { content: "Offline: what you do is kept on this phone and sent later"; position: fixed; top: 0; left: 0; right: 0; z-index: 99999; padding: 5px 12px; background: #92400e; color: #fff; font-size: .78rem; font-weight: 600; text-align: center; }
.mxcp-today-row.is-queued { opacity: .75; }
.mxcp-today-row.is-queued .mxcp-today-line::after { content: "Waiting to send"; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(245, 158, 11, .18); color: var(--gold-text, var(--gold)); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.mxcp-proof-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 16px; margin-bottom: 14px; }

/* ═══ 5.6 insights and the year in review ═══ */
.mxcp-chart-fig { margin: 0 0 18px; }
.mxcp-chart-fig figcaption { font-size: .85rem; color: var(--text2); margin-bottom: 8px; font-weight: 600; }
.mxcp-chart { display: block; width: 100%; height: auto; max-height: 180px; overflow: visible; }
.mxcp-chart-base { stroke: var(--border2); stroke-width: 1; }
.mxcp-chart-bar path { fill: var(--gold-text, var(--gold)); }
.mxcp-chart.is-crimson .mxcp-chart-bar path { fill: var(--crimson-lt, var(--crimson)); }
.mxcp-chart-bar.is-empty path { fill: var(--border2); }
.mxcp-chart-hit { fill: transparent; }
.mxcp-chart-bar:hover path { opacity: .8; }
.mxcp-chart-labs { display: grid; gap: 6px; margin-top: 6px; font-size: .75rem; color: var(--text3); text-align: center; }
.mxcp-chart-labs span { overflow: visible; white-space: nowrap; }
.mxcp-chart-tablefold { margin-top: 6px; font-size: .85rem; }
.mxcp-chart-table, .mxcp-ins-table { border-collapse: collapse; margin-top: 8px; font-size: .85rem; }
.mxcp-chart-table th, .mxcp-chart-table td, .mxcp-ins-table th, .mxcp-ins-table td { padding: 4px 12px 4px 0; text-align: left; border-bottom: 1px solid var(--border); font-weight: 400; }
.mxcp-ins-table thead th { color: var(--text3); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.mxcp-ins-range { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.mxcp-ins-points { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; line-height: 1.5; }
.mxcp-ins-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 24px; }
.mxcp-ins-trust { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.mxcp-rv-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.mxcp-rv-pick { display: flex; flex-direction: column; gap: 4px; min-width: 220px; }
.mxcp-rv-hero { padding: 26px 22px; margin-bottom: 20px; border-radius: var(--r-lg); border: 1px solid var(--border-gold-dim); background: var(--surface); text-align: center; }
.mxcp-rv-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--gold-text, var(--gold)); font-weight: 700; }
.mxcp-rv-hero h2 { margin: 6px 0 20px; font-size: 1.25rem; }
.mxcp-rv-big { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 16px; }
.mxcp-rv-big > div { display: flex; flex-direction: column; gap: 2px; }
.mxcp-rv-big b { font-size: clamp(1.4rem, 3.4vw, 1.9rem); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mxcp-rv-big { container-type: inline-size; }
@container (max-width: 520px) { .mxcp-rv-big b { font-size: 1.4rem; } }
@media (max-width: 560px) { .mxcp-rv-big { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mxcp-rv-big span { font-size: .8rem; color: var(--text3); }
.mxcp-rv-line { margin: 4px 0 0; }
.mxcp-rv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mxcp-rv-list li { display: grid; grid-template-columns: 22px 56px 1fr; gap: 8px; align-items: baseline; }
.mxcp-rv-list li > i { color: var(--gold-text, var(--gold)); }
.mxcp-rv-list li .mxcp-tk-desc { grid-column: 3; }
.mxcp-rv-star { padding: 4px 10px; }
.mxcp-rv-star.is-on i { color: var(--gold-text, var(--gold)); }

/* Guest safety line at the top of every guest tab */
.mxcp-guest-safety-line { margin: 0 0 14px; padding: 8px 12px; border-left: 3px solid var(--success); border-radius: var(--r); background: var(--surface); color: var(--text2); font-size: .85rem; }
.mxcp-guest-safety-line i { color: var(--success); margin-right: 4px; }

/* ═══════════════════════════════════════════════════════════════
   LIGHT MODE (4.11.0)
   <html data-mxcp-mode="light"> is set by MXCP_Theme (each person's choice, or the device's for "match").
   Clean white and gold: white cards on a very light grey page, dark text, the same gold and red accents
   (gold text a shade darker so it stays readable on white). Dark mode is untouched by everything below.
   ═══════════════════════════════════════════════════════════════ */
html[data-mxcp-mode="light"] {
  color-scheme: light;
  --bg: transparent;
  --bg2: #f3f4f6;
  --surface: #ffffff;
  --surface2: #f9fafb;
  --surface3: #f3f4f6;
  --border: rgba(15, 23, 42, 0.10);
  --border2: rgba(15, 23, 42, 0.16);
  --border-dim: rgba(15, 23, 42, 0.14);
  --border-gold-dim: rgba(180, 83, 9, 0.35);
  --text: #111827;
  --text2: #374151;
  --text3: #6b7280;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-gold: 0 0 0 1px rgba(180, 83, 9, 0.12), 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 4px 16px rgba(15, 23, 42, 0.06);
  --info: #0284c7;
  --st-wait: #6b7280;
}
/* ═══ 5.7 connected toys ═══ */
.mxcp-toys-remote [hidden], .mxcp-toys-hub [hidden] { display: none !important; }
.mxcp-u-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mxcp-chip-s { display: inline-block; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--border2); font-size: .72rem; color: var(--text2); vertical-align: middle; }
.mxcp-toys-hub-status { margin: 0 0 12px; font-weight: 600; color: var(--text2); }
.mxcp-toys-hub.is-on .mxcp-toys-hub-status { color: var(--success); }
.mxcp-toys-hub-status::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--text3); vertical-align: 1px; }
.mxcp-toys-hub.is-on .mxcp-toys-hub-status::before { background: var(--success); }
.mxcp-toys-kinds { border: 0; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mxcp-toys-kinds .mxcp-ci-check { align-items: flex-start; }
.mxcp-toys-kinds .mxcp-ci-check input { margin-top: 3px; }
.mxcp-toys-kinds .mxcp-ci-check span { display: flex; flex-direction: column; gap: 2px; }
.mxcp-toys-kinds .mxcp-ci-check strong { color: var(--text); }
.mxcp-toys-nobt { margin: -4px 0 0 24px; font-size: .82rem; }
.mxcp-toys-hub-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mxcp-toys-hub-list i { color: var(--success); }
.mxcp-toys-help { font-size: .88rem; color: var(--text2); }
.mxcp-toys-help ol { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.mxcp-toys-r-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.mxcp-toys-r-hub { font-size: .88rem; color: var(--text2); }
.mxcp-toys-r-hub::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--text3); }
.mxcp-toys-r-hub.is-on::before { background: var(--success); }
.mxcp-toys-r-list { display: flex; flex-direction: column; gap: 12px; }
.mxcp-toys-toy { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface2); }
.mxcp-toys-t-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mxcp-toys-t-head .mxcp-toys-t-stop { margin-left: auto; }
.mxcp-toys-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text3); flex: none; }
.mxcp-toys-toy.is-online .mxcp-toys-dot { background: var(--success); }
.mxcp-toys-t-run { margin: 6px 0 0; font-size: .86rem; color: var(--text2); }
.mxcp-toys-t-run i { color: var(--gold); margin-right: 4px; }
.mxcp-toys-pattern { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.mxcp-toys-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mxcp-toys-chip { position: relative; cursor: pointer; }
.mxcp-toys-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mxcp-toys-chip span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border2); font-size: .82rem; color: var(--text2); background: var(--surface); }
.mxcp-toys-chip input:checked + span { border-color: var(--gold); color: var(--text); background: var(--surface3); box-shadow: inset 0 0 0 1px var(--gold); }
.mxcp-toys-chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.mxcp-toys-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.mxcp-toys-row .mxcp-toys-dur, .mxcp-toys-manual .mxcp-toys-dur { width: auto; min-width: 110px; }
.mxcp-toys-slider { display: grid; grid-template-columns: auto minmax(120px, 1fr) 3.2em; align-items: center; gap: 10px; font-size: .85rem; color: var(--text2); flex: 1 1 240px; }
.mxcp-toys-slider input[type="range"] { width: 100%; accent-color: var(--gold); }
.mxcp-toys-slider output { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.mxcp-toys-sliders { display: flex; flex-direction: column; gap: 10px; margin: 10px 0; }
.mxcp-toys-sliders .mxcp-toys-slider { flex: none; }
.mxcp-toys-manual { margin-top: 10px; }
.mxcp-toys-manual .mxcp-toys-manual-go { margin-left: 10px; }
.mxcp-toys-quick { padding-top: 4px; border-top: 1px solid var(--border); }
.mxcp-toys-quick small { display: block; margin-top: 6px; }
.mxcp-toys-setup { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.mxcp-toys-setup:last-child { border-bottom: 0; }
.mxcp-toys-setup small { display: block; margin-top: 2px; }
.mxcp-toys-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--border-gold-dim); border-radius: var(--r); background: var(--surface); }
.mxcp-toys-strip > i { color: var(--gold); font-size: 1.1rem; }
.mxcp-toys-strip > div { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; }
.mxcp-toys-strip small { color: var(--text2); }
.mxcp-toys-pill { position: fixed; left: 16px; bottom: 20px; z-index: 9989; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-gold-dim); background: var(--surface); color: var(--text); font-size: .82rem; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.mxcp-toys-pill i { color: var(--success); }
@media (max-width: 782px) { .mxcp-toys-pill { bottom: calc(76px + env(safe-area-inset-bottom)); } }

/* ═══ 5.8 factory reset (Settings › Factory reset) ═══ */
.mxcp-reset-intro { margin: 0 0 14px; color: var(--text2); }
.mxcp-reset-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0 0 16px; }
.mxcp-reset-col { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px 14px; background: var(--surface2); min-width: 0; }
.mxcp-reset-col h4 { margin: 0 0 8px; font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.mxcp-reset-col.is-gone h4 i { color: var(--crimson-lt); }
.mxcp-reset-col.is-kept h4 i { color: var(--success); }
.mxcp-reset-col.is-out h4 i { color: var(--gold); }
.mxcp-reset-col ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: .86rem; color: var(--text2); }
.mxcp-reset-form { border: 1px solid rgba(220, 38, 38, .45); border-radius: var(--r-lg); padding: 16px; background: rgba(220, 38, 38, .06); display: flex; flex-direction: column; gap: 12px; }
.mxcp-reset-form .mxcp-g-field { max-width: 360px; }
.mxcp-reset-phrase { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; }
.mxcp-reset-ack { align-items: flex-start; }
.mxcp-reset-ack input { margin-top: 3px; flex: none; }
.mxcp-reset-form .mxcp-reset-go { align-self: flex-start; }
.mxcp-reset-form .mxcp-form-error { margin: 0; font-size: .86rem; }
.mxcp-reset-done { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; background: #0a0a0a; color: #e2e8f0; text-align: center; font-size: 1rem; }

/* ═══ 5.9 MEDIA (Play › Media) ═══ */
.mxcp-md .mxcp-tiles { margin-bottom: 14px; }
.mxcp-md .mxcp-g-tabs { margin-top: 12px; }
.mxcp-md-row .mxcp-tk-main > strong { overflow-wrap: anywhere; }
.mxcp-md-log-row.is-cancelled .mxcp-tk-main > strong { text-decoration: line-through; color: var(--text3); }
.mxcp-md-stars { color: var(--gold-text, var(--gold)); letter-spacing: 1px; }
.mxcp-md-rule-help { margin: 0 0 12px; padding-left: 18px; font-size: .86rem; color: var(--text2); display: flex; flex-direction: column; gap: 3px; }
.mxcp-md-rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 8px 16px; margin-bottom: 12px; }
.mxcp-md-rule { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 150px) auto; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.mxcp-md-rule:has(select + select) { grid-template-columns: minmax(0, 1fr) minmax(0, 140px) minmax(0, 190px) auto; }
.mxcp-md-rule-k { font-size: .9rem; display: flex; align-items: center; gap: 8px; min-width: 0; }
.mxcp-md-rule-k i { width: 16px; text-align: center; color: var(--text3); }
.mxcp-md-rule .mxcp-g-input { margin: 0; }
.mxcp-md-rule-p { margin: 0; font-size: .8rem; white-space: nowrap; }
.mxcp-today-media { margin: 14px 0 0; }
.mxcp-md-days { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0 10px; }
.mxcp-md-day { margin: 0; }
.mxcp-md-limits { margin: 10px 0; }
.mxcp-md-check { align-self: end; }
.mxcp-md-why { color: var(--text2); font-size: .86rem; }
.mxcp-md-why i { color: var(--gold-text, var(--gold)); margin-right: 4px; }
.mxcp-md-prog { margin-top: 6px; max-width: 360px; }
.mxcp-md-prog small { display: block; margin-top: 3px; }
.mxcp-md-past { margin: 6px 0 0; padding-left: 18px; font-size: .86rem; color: var(--text2); }
.mxcp-md-domains { overflow-wrap: anywhere; font-size: .82rem; }
.mxcp-rv-list.is-top { list-style: none; padding-left: 0; }
.mxcp-rv-rank { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface2); border: 1px solid var(--border); font-size: .78rem; font-weight: 700; margin-right: 6px; }
.mxcp-md-mode { margin: 0 0 12px; padding: 8px 12px; border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: var(--r); color: var(--text2); font-size: .9rem; }
@media (max-width: 560px) { .mxcp-md-rule, .mxcp-md-rule:has(select + select) { grid-template-columns: minmax(0, 1fr) minmax(0, 150px); } .mxcp-md-rule select + select { grid-column: 1 / -1; } .mxcp-md-rule-p { grid-column: 1 / -1; } }

/* light:generated:start */
:where(html[data-mxcp-mode="light"]) .portal-page-title,
:where(html[data-mxcp-mode="light"]) h1.portal-page-title { border-bottom: 1px solid rgba(15, 23, 42, 0.104); -webkit-text-stroke: 1.2px #111827; text-shadow: none; }
:where(html[data-mxcp-mode="light"]) ::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, 0.234); }
:where(html[data-mxcp-mode="light"]) ::-webkit-scrollbar-thumb:hover { background: rgba(15, 23, 42, 0.455); }
:where(html[data-mxcp-mode="light"]) a { color: #0369a1; }
:where(html[data-mxcp-mode="light"]) a:hover { color: var(--text); }
:where(html[data-mxcp-mode="light"]) .mxcp-module-container h1,
:where(html[data-mxcp-mode="light"]) .mxcp-module h1 { color: var(--text); }
:where(html[data-mxcp-mode="light"]) .mxcp-module-container h2,
:where(html[data-mxcp-mode="light"]) .mxcp-module h2 { color: var(--text); }
:where(html[data-mxcp-mode="light"]) .mxcp-module-container h3,
:where(html[data-mxcp-mode="light"]) .mxcp-module h3 { color: var(--text); }
:where(html[data-mxcp-mode="light"]) strong,
:where(html[data-mxcp-mode="light"]) b { color: var(--text); }
:where(html[data-mxcp-mode="light"]) code { color: #0369a1; }
:where(html[data-mxcp-mode="light"]) .text-teal { color: #047857 !important; }
:where(html[data-mxcp-mode="light"]) .text-emerald { color: #047857 !important; }
:where(html[data-mxcp-mode="light"]) .text-purple { color: #6d28d9 !important; }
:where(html[data-mxcp-mode="light"]) .text-indigo { color: #6d28d9 !important; }
:where(html[data-mxcp-mode="light"]) .text-cyan { color: #0369a1 !important; }
:where(html[data-mxcp-mode="light"]) .text-orange { color: #c2410c !important; }
:where(html[data-mxcp-mode="light"]) .text-blue { color: #1d4ed8 !important; }
:where(html[data-mxcp-mode="light"]) .text-amber { color: #b45309 !important; }
:where(html[data-mxcp-mode="light"]) .text-gold { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .text-success { color: #047857; }
:where(html[data-mxcp-mode="light"]) .mxcp-module-title { -webkit-text-stroke: 1.5px #111827; text-shadow: none; }
:where(html[data-mxcp-mode="light"]) .mxcp-module-nav-menu a:hover,
:where(html[data-mxcp-mode="light"]) .mxcp-module-nav a:hover { color: var(--text); }
:where(html[data-mxcp-mode="light"]) .mxcp-card:hover { border-color: rgba(15, 23, 42, 0.208); }
:where(html[data-mxcp-mode="light"]) .mxcp-card-title { color: var(--text); }
:where(html[data-mxcp-mode="light"]) .mxcp-stat-number { color: var(--text); }
:where(html[data-mxcp-mode="light"]) .mxcp-stat-change.up { color: #047857; }
:where(html[data-mxcp-mode="light"]) .mxcp-form-error { color: #b91c1c; }
:where(html[data-mxcp-mode="light"]) .mxcp-btn:hover { background-color: rgba(15, 23, 42, 0.156); border-color: rgba(15, 23, 42, 0.455); color: var(--text); }
:where(html[data-mxcp-mode="light"]) .mxcp-btn-gold { color: #b45309 !important; }
:where(html[data-mxcp-mode="light"]) .mxcp-btn-gold:hover,
:where(html[data-mxcp-mode="light"]) .mxcp-btn.mxcp-btn-gold:hover { color: #b45309 !important; }
:where(html[data-mxcp-mode="light"]) .mxcp-btn-ghost:hover,
:where(html[data-mxcp-mode="light"]) .mxcp-btn.mxcp-btn-ghost:hover { color: var(--text) !important; border-color: rgba(15, 23, 42, 0.52) !important; background-color: rgba(15, 23, 42, 0.117) !important; box-shadow: 0 0 15px rgba(15, 23, 42, 0.13) !important; }
:where(html[data-mxcp-mode="light"]) .mxcp-spin-btn { background: var(--surface); }
:where(html[data-mxcp-mode="light"]) .mxcp-spin-btn:hover { background: var(--surface); }
:where(html[data-mxcp-mode="light"]) .mxcp-table thead th { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-table tbody tr:nth-child(odd) td { background-color: rgba(15, 23, 42, 0.016); }
:where(html[data-mxcp-mode="light"]) .mxcp-badge-success { color: #047857; }
:where(html[data-mxcp-mode="light"]) .mxcp-badge-danger { color: #b91c1c; }
:where(html[data-mxcp-mode="light"]) .mxcp-badge-warning { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-badge-info { color: #0369a1; }
:where(html[data-mxcp-mode="light"]) .mxcp-badge-gold { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-badge-master { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-badge-slave { color: #b91c1c; }
:where(html[data-mxcp-mode="light"]) .mxcp-tl-dot.active { border-color: rgba(15, 23, 42, 0.26); }
:where(html[data-mxcp-mode="light"]) .mxcp-timeline-title { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-timer-frozen-badge { color: #0369a1; }
:where(html[data-mxcp-mode="light"]) .mxcp-timer-val { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-checkin-btn.morning { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-checkin-btn.evening { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-star.on,
:where(html[data-mxcp-mode="light"]) .mxcp-stars:hover .mxcp-star { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-rating-value { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-shame-banner { background: var(--surface); }
:where(html[data-mxcp-mode="light"]) .mxcp-shame-penalty strong { color: #b91c1c; }
:where(html[data-mxcp-mode="light"]) .mxcp-toast-title { color: var(--text); }
:where(html[data-mxcp-mode="light"]) .mxcp-toast-close:hover { color: var(--text); }
:where(html[data-mxcp-mode="light"]) .mxcp-modal-title { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-modal-close:hover { color: var(--text); }
:where(html[data-mxcp-mode="light"]) .mxcp-points-big { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-points-change.up { color: #047857; }
:where(html[data-mxcp-mode="light"]) .mxcp-guest-logo { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-guest-nav a:hover { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-guest-nav a.active { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-section-divider-text { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-copy-btn:hover { color: var(--text); background-color: rgba(15, 23, 42, 0.052); }
:where(html[data-mxcp-mode="light"]) .mxcp-module-nav-menu .current-menu-item > a,
:where(html[data-mxcp-mode="light"]) .mxcp-module-nav a.active { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-data-item:hover { background-color: rgba(15, 23, 42, 0.039); border-color: rgba(15, 23, 42, 0.208); }
:where(html[data-mxcp-mode="light"]) .mxcp-data-primary { color: var(--text); }
:where(html[data-mxcp-mode="light"]) .mxcp-scrollable-list::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, 0.26); }
:where(html[data-mxcp-mode="light"]) .mxcp-section-bar h2,
:where(html[data-mxcp-mode="light"]) .mxcp-section-bar h3,
:where(html[data-mxcp-mode="light"]) .mxcp-section-bar .mxcp-section-title { color: var(--text) !important; }
:where(html[data-mxcp-mode="light"]) .mxcp-btn-toggle { background: linear-gradient(135deg, rgba(15, 23, 42, 0.104) 0%, rgba(15, 23, 42, 0.026) 100%) !important; border: 1px solid rgba(15, 23, 42, 0.234) !important; color: var(--text) !important; }
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.mxcp-stat-card--featured { background: var(--surface) !important; }
:where(html[data-mxcp-mode="light"]) .mxcp-stat-number,
:where(html[data-mxcp-mode="light"]) .mxcp-stat-value,
:where(html[data-mxcp-mode="light"]) .mxcp-stat-val { color: var(--text) !important; }
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-teal .mxcp-stat-number,
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-teal .mxcp-stat-value,
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-teal .mxcp-stat-val { color: #047857 !important; }
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-emerald .mxcp-stat-number,
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-emerald .mxcp-stat-value,
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-emerald .mxcp-stat-val { color: #047857 !important; }
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-cyan .mxcp-stat-number,
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-cyan .mxcp-stat-value,
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-cyan .mxcp-stat-val { color: #0369a1 !important; }
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-indigo .mxcp-stat-number,
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-indigo .mxcp-stat-value,
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-indigo .mxcp-stat-val { color: #6d28d9 !important; }
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-rose .mxcp-stat-number,
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-rose .mxcp-stat-value,
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-rose .mxcp-stat-val { color: #be123c !important; }
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-orange .mxcp-stat-number,
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-orange .mxcp-stat-value,
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-orange .mxcp-stat-val { color: #c2410c !important; }
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-gold .mxcp-stat-number,
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-gold .mxcp-stat-value,
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-gold .mxcp-stat-val { color: #b45309 !important; }
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-red .mxcp-stat-number,
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-red .mxcp-stat-value,
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-red .mxcp-stat-val { color: #b91c1c !important; }
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-green .mxcp-stat-number,
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-green .mxcp-stat-value,
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-green .mxcp-stat-val { color: #047857 !important; }
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-blue .mxcp-stat-number,
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-blue .mxcp-stat-value,
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-blue .mxcp-stat-val { color: #1d4ed8 !important; }
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-purple .mxcp-stat-number,
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-purple .mxcp-stat-value,
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-purple .mxcp-stat-val { color: #6d28d9 !important; }
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-amber .mxcp-stat-number,
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-amber .mxcp-stat-value,
:where(html[data-mxcp-mode="light"]) .mxcp-stat-card.border-amber .mxcp-stat-val { color: #b45309 !important; }
:where(html[data-mxcp-mode="light"]) .mxcp-notif-bell-btn { background: rgba(15, 23, 42, 0.078); border: 1px solid rgba(15, 23, 42, 0.234); color: var(--text2); }
:where(html[data-mxcp-mode="light"]) .mxcp-notif-bell-btn:hover { color: #b91c1c; }
:where(html[data-mxcp-mode="light"]) .mxcp-notif-drawer { background: var(--surface); border-left: 1px solid rgba(15, 23, 42, 0.156); }
:where(html[data-mxcp-mode="light"]) .mxcp-notif-icon.mxcp-notif-type-reward,
:where(html[data-mxcp-mode="light"]) .mxcp-notif-icon.mxcp-notif-type-points { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-notif-icon.mxcp-notif-type-punishment,
:where(html[data-mxcp-mode="light"]) .mxcp-notif-icon.mxcp-notif-type-infraction { color: #b91c1c; }
:where(html[data-mxcp-mode="light"]) .mxcp-notif-mark-btn:hover { color: #047857; }
:where(html[data-mxcp-mode="light"]) .mxcp-notif-tabs-bar { background: rgba(15, 23, 42, 0.039); }
:where(html[data-mxcp-mode="light"]) .mxcp-notif-tab-btn:hover { background: rgba(15, 23, 42, 0.078); }
:where(html[data-mxcp-mode="light"]) .mxcp-notif-tab-btn.active { background: rgba(15, 23, 42, 0.156); }
:where(html[data-mxcp-mode="light"]) .mxcp-bulk-info { color: #b45309; }
@media (max-width: 720px) {
  :where(html[data-mxcp-mode="light"]) .mxcp-table td[data-label]::before { color: #b45309; }
}
:where(html[data-mxcp-mode="light"]) .mxcp-attn-row:hover { background: rgba(15, 23, 42, 0.052); }
@media (max-width: 768px) {
  :where(html[data-mxcp-mode="light"]) .mxcp-bnav { background: var(--surface); }
  :where(html[data-mxcp-mode="light"]) .mxcp-bnav-i:hover,
:where(html[data-mxcp-mode="light"]) .mxcp-bnav-i:active { color: #1d4ed8; }
  :where(html[data-mxcp-mode="light"]) .mxcp-bsheet-in { background: var(--surface); }
}
:where(html[data-mxcp-mode="light"]) .mxcp-dosheet-in { background: var(--surface); color: var(--text2); border: 1px solid rgba(15, 23, 42, 0.104); }
:where(html[data-mxcp-mode="light"]) .mxcp-do-choice { border: 1px solid rgba(15, 23, 42, 0.156); background: rgba(15, 23, 42, 0.052); }
:where(html[data-mxcp-mode="light"]) .mxcp-do-choice i { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-hint > i { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-hint-x { border: 1px solid rgba(15, 23, 42, 0.325); }
:where(html[data-mxcp-mode="light"]) .mxcp-checkin-big i { color: #047857; }
:where(html[data-mxcp-mode="light"]) .mxcp-checkin-done i { color: #047857; }
:where(html[data-mxcp-mode="light"]) .mxcp-today-row { border: 1px solid rgba(15, 23, 42, 0.13); background: rgba(15, 23, 42, 0.052); }
:where(html[data-mxcp-mode="light"]) .mxcp-today-empty { border: 1px dashed rgba(15, 23, 42, 0.234); }
:where(html[data-mxcp-mode="light"]) .mxcp-rules-today { border: 1px solid rgba(15, 23, 42, 0.13); background: rgba(15, 23, 42, 0.039); }
:where(html[data-mxcp-mode="light"]) .mxcp-rt-row i { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-pause-fab { background: var(--surface); }
:where(html[data-mxcp-mode="light"]) .mxcp-pause-fab.is-paused { background: var(--surface); }
:where(html[data-mxcp-mode="light"]) .mxcp-pausesheet-in { background: var(--surface); color: var(--text2); border: 1px solid rgba(15, 23, 42, 0.13); }
:where(html[data-mxcp-mode="light"]) .mxcp-guest-safety i { color: #047857; }
:where(html[data-mxcp-mode="light"]) .mxcp-guest-opt { border-bottom: 1px solid rgba(15, 23, 42, 0.091); }
:where(html[data-mxcp-mode="light"]) .mxcp-guest-ov { border-bottom: 1px solid rgba(15, 23, 42, 0.078); }
:where(html[data-mxcp-mode="light"]) .mxcp-rules-toc a { background: rgba(15, 23, 42, 0.046); }
:where(html[data-mxcp-mode="light"]) .mxcp-rules-toc a:hover { background: rgba(15, 23, 42, 0.091); }
:where(html[data-mxcp-mode="light"]) .mxcp-rule-sec-summary { background: rgba(15, 23, 42, 0.026); }
:where(html[data-mxcp-mode="light"]) .mxcp-g-card-ic { color: #b45309; }
:where(html[data-mxcp-mode="light"]) a.mxcp-g-proof { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-ch-note.is-warn { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-ch-dates i { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-g-panel .mxcp-card-subtitle i { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-ch-log-amt { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-tk-pts { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-sc-time { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-sc-nowtxt { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-bk-stars { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-bk-rating-num { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-lc-gps > .fa-satellite { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-lm-stars span { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-an-rec > i { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-an-photo img,
:where(html[data-mxcp-mode="light"]) .mxcp-an-photo video { background: var(--surface); }
:where(html[data-mxcp-mode="light"]) .mxcp-an-file { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-gm-wait.is-on strong { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-u-gold { color: #b45309 !important; }
:where(html[data-mxcp-mode="light"]) .mxcp-u-green { color: #047857 !important; }
:where(html[data-mxcp-mode="light"]) .mxcp-u-red { color: #b91c1c !important; }
:where(html[data-mxcp-mode="light"]) .mxcp-call-stage { background: var(--surface); }
:where(html[data-mxcp-mode="light"]) .mxcp-call-remote { background: var(--surface); }
:where(html[data-mxcp-mode="light"]) .mxcp-call-local { background: var(--surface); }
:where(html[data-mxcp-mode="light"]) .mxcp-inbox-hint-yes { color: #047857; }
:where(html[data-mxcp-mode="light"]) .mxcp-inbox-hint-no { color: #b91c1c; }
:where(html[data-mxcp-mode="light"]) .mxcp-pv-state.is-allowed { color: #047857; }
:where(html[data-mxcp-mode="light"]) .mxcp-pv-state.is-limited { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-pv-state.is-restricted { color: #b91c1c; }
:where(html[data-mxcp-mode="light"]) .mxcp-pv-row.is-changed .mxcp-tk-main > strong::after { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-ping-ov { background: var(--surface); }
:where(html[data-mxcp-mode="light"]) .mxcp-ping-ov.is-drill .mxcp-ping-title { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-ping-clock.is-urgent { color: #b91c1c; }
:where(html[data-mxcp-mode="light"]) .mxcp-ping-pick.is-ready { color: #047857; }
:where(html[data-mxcp-mode="light"]) .mxcp-pt-twist { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-ch-est-h i { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-search-hit:hover strong { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-sidenav-everything { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-go-tab.is-on { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-pick-chip.is-good::before { color: #047857; }
:where(html[data-mxcp-mode="light"]) .mxcp-pick-chip.is-warn::before { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-pick-x:hover,
:where(html[data-mxcp-mode="light"]) .mxcp-pick-x:focus-visible { background: rgba(15, 23, 42, 0.104); }
:where(html[data-mxcp-mode="light"]) .mxcp-pick-list { background: var(--surface); border: 1px solid rgba(15, 23, 42, 0.156); }
:where(html[data-mxcp-mode="light"]) .mxcp-pick-l.is-warn + small { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-cast-video { background: var(--surface); }
:where(html[data-mxcp-mode="light"]) .mxcp-chat-tick.is-read { color: #0369a1; }
:where(html[data-mxcp-mode="light"]) .mxcp-appt-badge.is-good { color: #047857; }
:where(html[data-mxcp-mode="light"]) .mxcp-appt-badge.is-live { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-oc-legend .is-good i { color: #047857; }
:where(html[data-mxcp-mode="light"]) .mxcp-oc-legend .is-bad i { color: #b91c1c; }
:where(html[data-mxcp-mode="light"]) .mxcp-oc-legend .is-gold i { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-oc-today.is-good .mxcp-oc-today-k { color: #047857; }
:where(html[data-mxcp-mode="light"]) .mxcp-oc-today.is-bad .mxcp-oc-today-k { color: #b91c1c; }
:where(html[data-mxcp-mode="light"]) .mxcp-tr-st.is-done { color: #047857; }
:where(html[data-mxcp-mode="light"]) .mxcp-tr-checks li.is-met > i { color: #047857; }
:where(html[data-mxcp-mode="light"]) .mxcp-tr-ready { color: #047857; }
:where(html[data-mxcp-mode="light"]) .mxcp-tr-stage.is-passed > i { color: #047857; }
:where(html[data-mxcp-mode="light"]) .mxcp-tr-stage.is-current > i { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-cam-view { background: var(--surface); }
:where(html[data-mxcp-mode="light"]) .mxcp-cam-note { color: var(--text2); }
:where(html[data-mxcp-mode="light"]) .mxcp-guest-safety-line i { color: #047857; }
:where(html[data-mxcp-mode="light"]) .mxcp-toys-hub.is-on .mxcp-toys-hub-status { color: #047857; }
:where(html[data-mxcp-mode="light"]) .mxcp-toys-hub-list i { color: #047857; }
:where(html[data-mxcp-mode="light"]) .mxcp-toys-t-run i { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-toys-strip > i { color: #b45309; }
:where(html[data-mxcp-mode="light"]) .mxcp-toys-pill i { color: #047857; }
/* light:generated:end */

/* Light mode, by hand (4.11.0): things the generated block above cannot know about. */
html[data-mxcp-mode="light"] { --ok-text: #047857; --gold-text: #b45309; }
html[data-mxcp-mode="light"] .mxcp-wh-chip small { color: rgba(255, 255, 255, 0.9); }
html[data-mxcp-mode="light"] .mxcp-pt-amt.is-plus { color: #047857; }
html[data-mxcp-mode="light"] .mxcp-rule-sec-heading,
html[data-mxcp-mode="light"] .mxcp-rules-toc a { color: color-mix(in srgb, var(--mxcp-rule-accent, #6d28d9) 60%, #000); }
html[data-mxcp-mode="light"] .mxcp-pause-fab { color: #b91c1c; box-shadow: var(--shadow); }
html[data-mxcp-mode="light"] .mxcp-pause-fab.is-paused { color: #047857; }
html[data-mxcp-mode="light"] .mxcp-btn.mxcp-btn-success { background: #059669 !important; }
html[data-mxcp-mode="light"] .mxcp-btn.mxcp-btn-success:hover { background: #047857 !important; }
html[data-mxcp-mode="light"] .mxcp-checkin-big small { opacity: 1; color: var(--text2); }
html[data-mxcp-mode="light"] .mxcp-reset-col.is-gone h4 i { color: #b91c1c; }
html[data-mxcp-mode="light"] .mxcp-reset-col.is-out h4 i { color: #b45309; }
html[data-mxcp-mode="light"] .mxcp-reset-form { border-color: rgba(185, 28, 28, .45); background: rgba(185, 28, 28, .05); }
html[data-mxcp-mode="light"] .mxcp-reset-done { background: #f4f5f7; color: #1f2937; }

/* 6.0 punishments with parts (script steps, strokes, service) */
.mxcp-pun-parts { margin-top: 8px; display: grid; gap: 8px; }
.mxcp-pun-prog { font-size: 0.85rem; color: var(--text2); }
.mxcp-pun-step { border: 1px solid var(--border2); border-radius: 10px; padding: 10px 12px; }
.mxcp-pun-stepno { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text3); }
.mxcp-pun-steptext { font-weight: 600; margin: 2px 0 4px; }
.mxcp-pun-steps, .mxcp-pun-log { margin: 6px 0 0 18px; padding: 0; }
.mxcp-pun-steprows { display: grid; gap: 6px; margin-bottom: 6px; }
.mxcp-pun-steprow { display: grid; grid-template-columns: 26px minmax(0, 1fr) 72px 104px; gap: 6px; align-items: center; }
@media (max-width: 520px) { .mxcp-pun-steprow { grid-template-columns: 26px minmax(0, 1fr) 64px; } .mxcp-pun-steprow select { grid-column: 2 / 4; } }
.mxcp-pn-src { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.mxcp-rule-cost { white-space: nowrap; }
.mxcp-desk-defs { display: grid; gap: 6px; margin: 8px 0; }
.mxcp-desk-defrow { display: grid; grid-template-columns: minmax(0, 1fr) 120px 72px auto; gap: 6px; align-items: center; }
@media (max-width: 520px) { .mxcp-desk-defrow { grid-template-columns: minmax(0, 1fr) 100px 60px; } .mxcp-desk-defrow small { display: none; } }

/* 6.0.1 punishment features */
.mxcp-pp-cards { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.mxcp-pp-cards .mxcp-pp-card { min-width: 72px; min-height: 64px; font-size: 1.1rem; }
.mxcp-pp-reveal { margin: 6px 0 0 18px; padding: 0; }
.mxcp-pp-reveal .is-picked { font-weight: 700; }
.mxcp-pp-terms { flex-direction: column; align-items: stretch; gap: 6px; }
.mxcp-pp-terms .mxcp-btn { white-space: normal; text-align: left; }
.mxcp-pp-menu { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; align-items: center; margin: 4px 0; }
.mxcp-pp-forecast { font-weight: 700; color: var(--crimson); }
.mxcp-pp-lvs { display: flex; gap: 3px; align-items: flex-end; height: 28px; margin-top: 6px; }
.mxcp-pp-lv { width: 10px; border-radius: 2px; background: var(--crimson); opacity: .9; }
.mxcp-pp-lv.is-0 { height: 25%; opacity: .45; } .mxcp-pp-lv.is-1 { height: 50%; } .mxcp-pp-lv.is-2 { height: 75%; } .mxcp-pp-lv.is-3 { height: 100%; }
.mxcp-pp-fail { display: inline-block; margin-left: 6px; }

/* ─── 6.1 one calendar ─── */
.mxcp-cal-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mxcp-cal-nav, .mxcp-cal-views { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mxcp-cal-title { margin-left: 6px; font-size: 1.05rem; }
.mxcp-cal-head, .mxcp-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mxcp-cal-head span { text-align: center; font-size: .75rem; color: var(--text3); padding: 2px 0; }
.mxcp-cal-cell { min-height: 92px; padding: 4px; background: var(--surface2); border: 1px solid var(--surface3); border-radius: 8px; min-width: 0; overflow: hidden; }
.mxcp-cal-cell.is-out { opacity: .45; }
.mxcp-cal-cell.is-today, .mxcp-cal-wday.is-today { border-color: var(--gold); }
.mxcp-cal-cell.is-drop, .mxcp-cal-wday.is-drop { outline: 2px dashed var(--gold); }
.mxcp-cal-num { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--text2); text-decoration: none; margin-bottom: 3px; }
.mxcp-cal-count { display: none; font-size: .65rem; background: var(--gold); color: #000; border-radius: 9px; padding: 0 5px; }
.mxcp-cal-evs { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mxcp-cal-ev { display: block; font-size: .72rem; line-height: 1.25; padding: 2px 5px; border-radius: 5px; background: var(--surface3); border-left: 3px solid var(--primary); color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mxcp-cal-ev.is-move { cursor: grab; }
.mxcp-cal-ev.is-move::before { content: "\f58e"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free"; font-weight: 900; font-size: .6rem; opacity: .6; margin-right: 4px; }
.mxcp-cal-t { color: var(--text3); }
.mxcp-cal-ev.is-task, .mxcp-cal-kind.is-task { border-color: var(--primary); }
.mxcp-cal-ev.is-body, .mxcp-cal-kind.is-body { border-color: var(--teal); }
.mxcp-cal-ev.is-pun, .mxcp-cal-kind.is-pun { border-color: var(--crimson); }
.mxcp-cal-ev.is-game, .mxcp-cal-kind.is-game { border-color: var(--purple); }
.mxcp-cal-ev.is-media, .mxcp-cal-kind.is-media { border-color: var(--indigo); }
.mxcp-cal-ev.is-guest, .mxcp-cal-kind.is-guest { border-color: var(--orange); }
.mxcp-cal-ev.is-mode, .mxcp-cal-kind.is-mode { border-color: var(--gold); }
.mxcp-cal-ev.is-plan, .mxcp-cal-kind.is-plan { border-color: var(--text3); }
.mxcp-cal-ev.is-secret, .mxcp-cal-kind.is-secret { border-color: var(--rose-lt); border-style: dashed; }
.mxcp-cal-more { font-size: .7rem; color: var(--gold); text-decoration: none; }
.mxcp-cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mxcp-cal-wday { padding: 6px; background: var(--surface2); border: 1px solid var(--surface3); border-radius: 8px; min-width: 0; min-height: 140px; }
.mxcp-cal-wname { display: block; font-weight: 600; font-size: .85rem; color: var(--text2); text-decoration: none; margin-bottom: 4px; }
.mxcp-cal-week .mxcp-cal-ev { white-space: normal; }
.mxcp-cal-none { color: var(--text3); font-size: .8rem; }
.mxcp-cal-day { display: flex; flex-direction: column; gap: 8px; }
.mxcp-cal-drow { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 8px 10px; background: var(--surface2); border: 1px solid var(--surface3); border-radius: 8px; }
.mxcp-cal-drow .mxcp-cal-ev { font-size: .9rem; white-space: normal; flex: 1 1 200px; background: none; }
.mxcp-cal-kind { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text3); border-left: 3px solid var(--primary); padding-left: 6px; }
.mxcp-cal-fold { flex-basis: 100%; }
.mxcp-cal-fold summary { cursor: pointer; font-size: .8rem; color: var(--gold); }
.mxcp-cal-moveform { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.mxcp-cal-tip { font-size: .8rem; margin-top: 10px; }
@media (max-width: 760px) {
  .mxcp-cal-week { grid-template-columns: 1fr; }
  .mxcp-cal-wday { min-height: 0; }
}
@media (max-width: 560px) {
  .mxcp-cal-cell { min-height: 54px; padding: 3px; }
  .mxcp-cal-cell .mxcp-cal-evs { display: none; }
  .mxcp-cal-count { display: inline-block; }
  .mxcp-cal-title { flex-basis: 100%; margin: 4px 0 0; }
}

/* ─── 6.1 plan builder ─── */
.mxcp-plan-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.mxcp-plan-panel[hidden] { display: none; }
.mxcp-plan-qa { margin: 8px 0; display: grid; gap: 4px; }
.mxcp-plan-qa dt { font-weight: 600; color: var(--text2); font-size: .85rem; }
.mxcp-plan-qa dd { margin: 0 0 6px; padding-left: 10px; border-left: 2px solid var(--surface3); white-space: pre-wrap; }

/* ─── 6.1 control room ─── */
.mxcp-cr-live { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 8px; }
.mxcp-cr-cell { display: flex; gap: 10px; align-items: flex-start; padding: 10px; background: var(--surface2); border: 1px solid var(--surface3); border-radius: 8px; min-width: 0; }
.mxcp-cr-cell > i { color: var(--gold); margin-top: 3px; }
.mxcp-cr-cell small { display: block; color: var(--text3); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.mxcp-cr-cell strong { font-size: .92rem; word-break: break-word; }
.mxcp-cr-cell.is-bad { border-color: var(--crimson); }
.mxcp-cr-cell .mxcp-g-inline { display: inline-block; margin-top: 4px; }
.mxcp-cr-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--text3); margin-top: 4px; flex: none; }
.mxcp-cr-dot.is-on { background: var(--emerald); box-shadow: 0 0 0 4px rgba(16, 185, 129, .2); }
.mxcp-cr-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.mxcp-cr-shot { flex: 0 0 160px; margin: 0; scroll-snap-align: start; }
.mxcp-cr-shot img { width: 160px; height: 200px; object-fit: cover; border-radius: 8px; display: block; }
.mxcp-cr-shot figcaption { font-size: .75rem; color: var(--text2); margin-top: 4px; }
.mxcp-cr-reviewfold { margin: 12px 0; }
.mxcp-cr-card { padding: 12px; background: var(--surface2); border: 1px solid var(--surface3); border-radius: 10px; min-height: 120px; }
.mxcp-cr-card-h { margin-bottom: 6px; }
.mxcp-cr-card h4 { margin: 8px 0 4px; font-size: .9rem; }
.mxcp-cr-count { font-size: .75rem; color: var(--text3); margin: 8px 0 4px; }
.mxcp-cr-nav { display: flex; justify-content: space-between; margin-top: 10px; }

/* ─── 6.1 scratch cards and bingo ─── */
.mxcp-sc-cards { display: flex; flex-wrap: wrap; gap: 10px; }
.mxcp-sc-card { width: 170px; padding: 10px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--surface3); display: flex; flex-direction: column; gap: 8px; }
.mxcp-sc-foil { height: 80px; border-radius: 8px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px; font-weight: 600; color: #1f2937; background: repeating-linear-gradient(135deg, #cbd5e1 0 8px, #e2e8f0 8px 16px); }
.mxcp-bingo { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.mxcp-bingo-sq { position: relative; min-height: 84px; padding: 5px; border-radius: 6px; background: var(--surface2); border: 1px solid var(--surface3); font-size: .74rem; display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow: hidden; }
.mxcp-bingo-sq.is-ok { background: rgba(16, 185, 129, .18); border-color: var(--emerald); }
.mxcp-bingo-sq.is-sent { border-color: var(--gold); }
.mxcp-bingo-sq.is-rej { border-color: var(--crimson); }
.mxcp-bingo-sq.is-free { background: rgba(245, 158, 11, .2); font-weight: 700; align-items: center; justify-content: center; }
.mxcp-bingo-t { word-break: break-word; }
.mxcp-bingo-ok { position: absolute; right: 5px; bottom: 5px; color: var(--emerald); }
.mxcp-bingo-rej { color: var(--crimson-lt); }
.mxcp-bingo-act { display: flex; gap: 4px; }
.mxcp-bingo-do summary { cursor: pointer; color: var(--gold); font-size: .72rem; }
.mxcp-bingo-do .mxcp-g-form { margin-top: 4px; }
.mxcp-bingo-do input[type=file] { font-size: .7rem; max-width: 100%; }
@media (max-width: 560px) { .mxcp-bingo { gap: 2px; } .mxcp-bingo-sq { min-height: 64px; padding: 3px; font-size: .64rem; } }
.mxcp-bingo-ph img { width: 100%; max-height: 54px; object-fit: cover; border-radius: 4px; }

/* ─── 6.1.1 mind games ─── */
.mxcp-puppet-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.mxcp-puppet-btns .mxcp-g-inline { display: inline-block; }
.mxcp-mind-tl { display: flex; flex-direction: column; gap: 3px; }
.mxcp-mind-tl-row { display: flex; gap: 10px; padding: 5px 8px; border-left: 3px solid var(--teal); background: var(--surface2); border-radius: 4px; font-size: .85rem; }
.mxcp-mind-tl-row.is-gap { border-color: var(--crimson); color: var(--crimson-lt); }
.mxcp-mind-tl-t { color: var(--text3); min-width: 92px; font-variant-numeric: tabular-nums; }
.mxcp-mind-list { margin: 6px 0 0 18px; padding: 0; font-size: .85rem; }
.mxcp-mind-stages { margin: 8px 0 0 18px; padding: 0; font-size: .85rem; color: var(--text3); }
.mxcp-mind-stages li.is-done { color: var(--emerald-lt); }
.mxcp-mind-stages li.is-now { color: var(--gold); font-weight: 600; }

/* ─── 6.2.0 slideshow ─── */
.mxcp-show { position: relative; background: #000; color: #fff; border-radius: 12px; min-height: 70vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mxcp-show:fullscreen { border-radius: 0; min-height: 100vh; width: 100vw; }
.mxcp-show.is-background { position: fixed; inset: 0; z-index: 1; border-radius: 0; min-height: 100vh; }
.mxcp-show-start, .mxcp-show-end { text-align: center; padding: 24px; max-width: 460px; }
.mxcp-show-stage { position: absolute; inset: 0; }
.mxcp-show-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.mxcp-show-img.is-fade { transition: opacity .8s ease; }
.mxcp-show-img.is-on { opacity: 1; }
.mxcp-show-msg { position: absolute; left: 50%; bottom: 72px; transform: translateX(-50%); width: min(92%, 560px); background: rgba(0, 0, 0, .78); border: 1px solid var(--gold); border-radius: 12px; padding: 16px 18px; text-align: center; z-index: 3; }
.mxcp-show-msg p { margin: 0 0 8px; font-size: 1.35rem; font-weight: 700; line-height: 1.3; }
.mxcp-show-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: linear-gradient(transparent, rgba(0,0,0,.7)); z-index: 2; }
.mxcp-show-time { font-variant-numeric: tabular-nums; color: #ddd; }
.mxcp-show-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 10px 0; }
.mxcp-show-thumb { display: flex; flex-direction: column; gap: 4px; position: relative; font-size: .7rem; color: var(--text3); min-width: 0; }
.mxcp-show-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: var(--surface3); }
.mxcp-show-thumb input[type=checkbox] { position: absolute; top: 6px; left: 6px; width: 18px; height: 18px; z-index: 1; }
.mxcp-show-msgrow { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 70px minmax(0, 2fr) 70px minmax(0, 2fr); gap: 6px; margin: 6px 0; }
.mxcp-show-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 640px) { .mxcp-show-msgrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-bottom: 6px; border-bottom: 1px solid var(--surface3); } .mxcp-show-msgrow input[name="msg_text[]"] { grid-column: span 2; } }

/* ─── 6.2.1 rhythm and poppers ─── */
.mxcp-rh { position: relative; min-height: 70vh; border-radius: 12px; background: #0b0b0f; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; overflow: hidden; }
.mxcp-rh:fullscreen { border-radius: 0; min-height: 100vh; }
.mxcp-show.is-background .mxcp-show-start, .mxcp-show.is-background .mxcp-show-bar, .mxcp-show.is-background .mxcp-show-end { display: none; }
.mxcp-show.is-background { opacity: .55; }
.mxcp-rh-start, .mxcp-rh-stage, .mxcp-pp, .mxcp-rh-end { position: relative; z-index: 5; text-align: center; max-width: 520px; width: 100%; }
.mxcp-rh-start .mxcp-ci-check { display: block; text-align: left; margin: 6px 0; }
.mxcp-pp-safety { text-align: left; background: rgba(255,255,255,.05); border: 1px solid var(--surface3); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.mxcp-rh-heart { font-size: 92px; color: var(--crimson-lt); line-height: 1; margin: 6px 0; transform: scale(.85); transition: transform .12s ease-out; }
.mxcp-rh-heart.is-beat { animation: mxcp-rh-pulse .28s ease-out; }
@keyframes mxcp-rh-pulse { 0% { transform: scale(1.15); } 100% { transform: scale(.85); } }
.mxcp-rh-bpm { font-size: 2.2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.mxcp-rh-phase { font-size: 1.6rem; font-weight: 700; color: var(--gold); min-height: 2rem; }
.mxcp-rh-cmd { position: absolute; left: 0; right: 0; top: -8px; font-size: 2.2rem; font-weight: 900; color: #000; background: var(--gold); border-radius: 10px; padding: 8px; z-index: 6; text-transform: uppercase; }
.mxcp-rh-stats { color: #bbb; margin: 8px 0 12px; font-variant-numeric: tabular-nums; }
.mxcp-rh-btns { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(140px, 45%), 1fr)); gap: 6px; margin-bottom: 12px; }
.mxcp-rh-btns .mxcp-btn { justify-content: center; }
.mxcp-pp { margin-top: 12px; padding: 10px; border: 1px solid var(--surface3); border-radius: 10px; background: rgba(0,0,0,.6); z-index: 8; }
.mxcp-pp-count { font-size: 1.6rem; font-weight: 800; color: var(--cyan-lt); margin-bottom: 8px; }
.mxcp-pp-cuebtns, .mxcp-pp-line { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; align-items: center; }
.mxcp-pp-ok { margin: 10px 0; font-size: 1.1rem; }
.mxcp-pp-ok .mxcp-btn { font-size: 1.3rem; padding: 14px 26px; }
.mxcp-pp-paused { color: var(--gold); font-weight: 700; margin: 8px 0; }
.mxcp-pp-stop { position: fixed; right: 16px; bottom: 96px; z-index: 100000; width: 92px; height: 92px; border-radius: 50%; border: 4px solid #fff; background: #dc2626; color: #fff; font-size: 1.3rem; font-weight: 900; letter-spacing: .05em; box-shadow: 0 6px 24px rgba(0,0,0,.6); cursor: pointer; }
.mxcp-rh:fullscreen .mxcp-pp-stop { bottom: 24px; }
.mxcp-rh-cbig { font-size: 1.15rem; margin-bottom: 10px; }
.mxcp-rh-cbpm { font-size: 1.8rem; font-weight: 800; color: var(--gold); }
.mxcp-rh-cmds { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.mxcp-rh-log { max-height: 260px; overflow: auto; font-size: .9rem; padding-left: 20px; }
.mxcp-rh-log li.is-hot { color: var(--crimson-lt); font-weight: 700; }
.mxcp-rh-heart i { color: var(--crimson-lt); }

/* ─── 6.2.2 torment tools (Session › Live) ─── */
.mxcp-tm-part { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--surface3); border-radius: 10px; margin-bottom: 8px; }
.mxcp-tm-part.is-due, .mxcp-tm-show.is-due { border-color: var(--crimson-lt); background: rgba(220,38,38,.12); }
.mxcp-tm-ctl { display: flex; flex-wrap: wrap; gap: 6px; }
.mxcp-tm-num { font-size: 1.4rem; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.mxcp-tm-tools .mxcp-tm-tool { margin-top: 6px; }
.mxcp-tm-list { padding-left: 18px; margin: 6px 0; }
.mxcp-tm-list li { margin-bottom: 6px; overflow-wrap: anywhere; }
.mxcp-tm-audio { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.mxcp-tm-audio audio { max-width: 100%; height: 36px; }
.mxcp-tm-show { text-align: center; padding: 14px 10px; border: 1px solid var(--surface3); border-radius: 12px; margin-bottom: 10px; background: rgba(0,0,0,.25); }
.mxcp-tm-big { font-size: 2.6rem; font-weight: 900; line-height: 1.1; color: var(--gold); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mxcp-tm-show.is-countdown .mxcp-tm-big { font-size: 4.5rem; }
.mxcp-tm-big small { font-size: 1.2rem; color: var(--text2); }
.mxcp-tm-sub { margin: 6px 0 10px; color: var(--text2); }
.mxcp-tm-show .mxcp-tm-ctl { justify-content: center; }
.mxcp-tm-bigbtn { font-size: 1.15rem; padding: 12px 22px; }
.mxcp-tm-flash { text-align: center; font-size: 1.8rem; font-weight: 900; color: #000; background: var(--gold); border-radius: 10px; padding: 10px; margin-bottom: 10px; text-transform: uppercase; }
.mxcp-tm-rateone { margin-bottom: 10px; }
.mxcp-tm-rateone > div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-top: 4px; max-width: 320px; }
.mxcp-tm-r { min-width: 38px; justify-content: center; }
.mxcp-tm-beg { padding: 10px; border: 1px solid var(--gold); border-radius: 10px; margin-bottom: 10px; }
.mxcp-tm-sum { margin: 4px 0; padding-left: 18px; }

/* ─── 6.2.3 body training and fitness ─── */
.mxcp-bt-ladder { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.mxcp-bt-chip { display: inline-flex; flex-direction: column; align-items: center; min-width: 46px; padding: 4px 6px; border: 1px solid var(--surface3); border-radius: 8px; font-weight: 700; line-height: 1.1; }
.mxcp-bt-chip small { font-weight: 400; font-size: .72rem; color: var(--text2); }
.mxcp-bt-chip.is-past { opacity: .55; }
.mxcp-bt-chip.is-now { border-color: var(--gold); background: rgba(212,175,55,.15); color: var(--gold); }
.mxcp-bt-chip.is-goal { box-shadow: inset 0 -3px 0 var(--crimson-lt); }
.mxcp-bt-now { margin-top: 6px; overflow-wrap: anywhere; }
.mxcp-bt-wear { border: 1px solid var(--gold); border-radius: 12px; padding: 12px; margin: 10px 0; }
.mxcp-bt-wear.is-check { border-color: var(--crimson-lt); box-shadow: 0 0 0 2px rgba(220,38,38,.25); }
.mxcp-bt-wear-h { font-weight: 700; margin-bottom: 8px; }
.mxcp-bt-times { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: center; margin-bottom: 8px; }
.mxcp-bt-times > div { background: rgba(0,0,0,.25); border-radius: 10px; padding: 8px; }
.mxcp-bt-times small { display: block; color: var(--text2); }
.mxcp-bt-times strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; color: var(--gold); }
.mxcp-bt-until.is-over { color: var(--crimson-lt); }
.mxcp-bt-col { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; }
.mxcp-bt-stops .mxcp-g-inline { display: block; margin: 4px 0; }
.mxcp-bt-start { margin: 10px 0; }
.mxcp-bt-gears { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.mxcp-bt-list { padding-left: 18px; margin: 6px 0; }
.mxcp-bt-list li { margin-bottom: 6px; overflow-wrap: anywhere; }
.mxcp-bt-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mxcp-bt-pair figure { margin: 0; }
.mxcp-bt-pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; display: block; }
.mxcp-bt-pair figcaption { font-size: .78rem; color: var(--text2); margin-top: 3px; }
.mxcp-bt-cmp { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mxcp-bt-cmp select { flex: 1 1 140px; min-width: 0; }
.mxcp-fit-days { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.mxcp-fit-tbl { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 6px 0 10px; }
.mxcp-fit-tbl th, .mxcp-fit-tbl td { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--surface3); }
.mxcp-fit-log { border: 1px solid var(--gold); border-radius: 12px; padding: 10px; margin: 8px 0; }
.mxcp-fit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.mxcp-fit-row > span { flex: 1 1 100%; }
.mxcp-fit-row input[type=number] { width: 110px; }
.mxcp-fit-row .mxcp-fit-sets { width: 70px; }
.mxcp-fit-rev { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.mxcp-fit-poses { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 10px; }
.mxcp-fit-pose img { width: 100%; max-width: 200px; max-height: 160px; object-fit: cover; opacity: .7; border-radius: 8px; display: block; margin: 4px 0 2px; }
.mxcp-fit-tls { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 200px)); gap: 12px; margin-top: 12px; }
.mxcp-fit-tl-img { position: relative; margin: 6px 0; }
.mxcp-fit-tl-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; display: block; }
.mxcp-fit-tl-img span { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.7); color: #fff; padding: 2px 6px; border-radius: 6px; font-size: .8rem; }
