/* ── Command Center ────────────────────────────────────────────────────────── */

/* Status banner */
.cc-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin: 0.75rem 0;
  text-align: center;
}

.cc-banner-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.8;
}

.cc-banner-text {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Debt meter inside banner */
.cc-debt-meter {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.25rem;
}

.cc-debt-meter-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.cc-debt-label {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.1rem;
}

/* State-specific banner colors */
.cc-banner--critical {
  background: rgba(180, 30, 30, 0.25);
  border: 1px solid rgba(220, 50, 50, 0.4);
  color: #f87171;
}
.cc-banner--critical .cc-debt-meter-fill { background: #ef4444; }

.cc-banner--indebted {
  background: rgba(180, 100, 20, 0.2);
  border: 1px solid rgba(220, 140, 30, 0.35);
  color: #fbbf24;
}
.cc-banner--indebted .cc-debt-meter-fill { background: #f59e0b; }

.cc-banner--good {
  background: rgba(30, 100, 60, 0.2);
  border: 1px solid rgba(50, 160, 90, 0.3);
  color: #4ade80;
}

.cc-banner--clean {
  background: rgba(30, 100, 60, 0.15);
  border: 1px solid rgba(50, 160, 90, 0.2);
  color: #86efac;
}

.cc-banner-cta {
  margin-top: 8px;
  background: none;
  border: 1px solid currentColor;
  color: inherit;
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.15s;
}
.cc-banner-cta:hover { opacity: 1; }

/* Primary command card */
.cc-command-card {
  background: var(--bg-surface);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
}

.cc-command-label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cc-command-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary, #f0ece4);
  margin: 0 0 0.35rem;
  line-height: 1.35;
}

.cc-command-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cc-command-meta .cc-due-urgent {
  color: #ef4444;
  font-weight: 600;
}

.cc-command-btn {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--accent, #c9a84c);
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-transform: uppercase;
  transition: opacity 0.15s;
}

.cc-command-btn:active { opacity: 0.85; }

/* Secondary tasks list */
.cc-secondary {
  margin-bottom: 0.75rem;
}

.cc-secondary-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.cc-secondary-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: var(--bg-subtle);
  border-radius: 8px;
  margin-bottom: 0.35rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color 0.15s;
}

.cc-secondary-item:active { border-color: var(--accent, #c9a84c); }

.cc-secondary-title {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-primary, #f0ece4);
}

.cc-secondary-pts {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.cc-secondary-arrow {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Path to relief progress */

/* Quick actions strip (non-debt state) */
.cc-quick-strip {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.cc-quick-strip::-webkit-scrollbar { display: none; }

.cc-quick-btn {
  flex: 1;
  min-width: 80px;
  padding: 0.55rem 0.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--text-secondary, #b8a898);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: border-color 0.15s;
}

.cc-quick-btn:active { border-color: var(--accent, #c9a84c); }

/* Relief earned — full-screen takeover */
.cc-relief {
  position: fixed;
  inset: 0;
  background: #0a0900;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  animation: cc-relief-in 0.4s ease;
}

@keyframes cc-relief-in {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

.cc-relief-glyph {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  animation: cc-relief-pulse 2s ease-in-out infinite;
}

@keyframes cc-relief-pulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%       { transform: scale(1.1); opacity: 0.85; }
}

.cc-relief-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent, #c9a84c);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.cc-relief-domina {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.cc-relief-note {
  font-size: 0.95rem;
  color: var(--text-secondary, #b8a898);
  max-width: 280px;
  line-height: 1.55;
  margin-bottom: 2rem;
}

.cc-relief-valid {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.cc-relief-ack {
  padding: 0.75rem 2.5rem;
  background: var(--accent, #c9a84c);
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

/* No tasks / clean state */
.cc-clean {
  text-align: center;
  padding: 1rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Debt goal line */
.cc-debt-goal {
  font-size: 0.75rem;
  opacity: 0.75;
  margin-top: 0.25rem;
}

/* Path to relief — goal line */

/* Skeleton loader */
.cc-skeleton {
  background: var(--bg-subtle);
  border-radius: 10px;
  height: 80px;
  margin-bottom: 0.75rem;
  animation: cc-shimmer 1.4s ease-in-out infinite;
}

@keyframes cc-shimmer {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

/* ── Flash Order Banner ──────────────────────────────────────────────────────── */

.flash-order-card {
  background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(201,168,76,0.04));
  border: 1.5px solid rgba(201,168,76,0.45);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin: 0.75rem 0;
  position: relative;
  overflow: hidden;
}

.flash-order-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.06), transparent);
  animation: flash-sweep 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes flash-sweep {
  0%, 100% { transform: translateX(-100%); }
  50%       { transform: translateX(100%); }
}

.flash-order-card--urgent {
  border-color: rgba(231,76,60,0.6);
  background: linear-gradient(135deg, rgba(231,76,60,0.12), rgba(231,76,60,0.04));
}

.flash-order-card--urgent::before {
  background: linear-gradient(90deg, transparent, rgba(231,76,60,0.08), transparent);
}

.flash-order-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.flash-order-badge {
  background: var(--accent);
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.flash-order-issuer {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex: 1;
}

.flash-order-timer {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.flash-order-timer--urgent {
  color: var(--error, #e74c3c);
  animation: flash-blink 0.8s ease-in-out infinite;
}

@keyframes flash-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.flash-order-type-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

.flash-order-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.flash-order-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.45;
}

.flash-order-bar-wrap {
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  height: 5px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.flash-order-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 1s linear;
}

.flash-order-card--urgent .flash-order-bar-fill {
  background: var(--error, #e74c3c);
}

.flash-order-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.flash-order-reward {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}

.flash-order-submit-btn {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.flash-order-submit-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* Accent button variant for sub card actions */
.btn.accent {
  background: var(--accent);
  color: #000;
  border: none;
}

.btn.accent:hover {
  opacity: 0.85;
}

/* ── Obey Score Goal Progress Widget ────────────────────────────────────────── */

.obey-goal-widget {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 0.75rem 0;
}

.obey-goal-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.obey-goal-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

.obey-goal-reward-label {
  font-size: 0.78rem;
  color: var(--accent);
  font-style: italic;
}

.obey-goal-period {
  margin-bottom: 0.6rem;
}

.obey-goal-period-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}

.obey-goal-period-label {
  opacity: 0.75;
}

.obey-goal-period-nums {
  font-weight: 600;
  color: var(--accent);
}

.obey-goal-bar-wrap {
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  height: 7px;
  overflow: hidden;
}

.obey-goal-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.4s ease;
  max-width: 100%;
}

.obey-goal-bar-fill--done {
  background: var(--success, #2ecc71);
}

/* Reward claim banner */

.obey-goal-reward-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.05));
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 0.75rem 0;
}

.obey-goal-reward-glyph {
  font-size: 2rem;
  flex-shrink: 0;
}

.obey-goal-reward-text {
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.45;
}

.obey-goal-reward-btn {
  flex-shrink: 0;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.obey-goal-reward-btn:hover {
  opacity: 0.85;
}

/* ── Obey Score Ring Widget ──────────────────────────────────────────────────── */

.os-widget {
  background: linear-gradient(160deg, rgba(201,168,76,0.08) 0%, rgba(201,168,76,0.02) 100%);
  border: 1.5px solid rgba(201,168,76,0.25);
  border-radius: 18px;
  padding: 1.5rem 1.25rem 1.25rem;
  margin: 0.5rem 0 0.75rem;
  text-align: center;
}

/* Ring container */
.os-ring-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 1rem;
}

.os-ring-svg {
  width: 160px;
  height: 160px;
  transform: rotate(-90deg);
}

.os-ring-track {
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 10;
}

.os-ring-track--open {
  stroke: rgba(201,168,76,0.15);
  stroke-width: 10;
  stroke-dasharray: 10 8;
}

.os-ring-fill {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(.4,0,.2,1);
}

/* Number inside the ring */
.os-ring-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
}

.os-ring-val {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color 0.4s ease;
}

.os-ring-unit {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
  opacity: 0.55;
}

.os-ring-sep {
  font-size: 0.8rem;
  opacity: 0.75;
  letter-spacing: 0.02em;
}

.os-ring-sep strong {
  font-size: 1rem;
  font-weight: 800;
  opacity: 1;
}

/* Lock icon inside ring — shown when orgasm gate is active */
.os-ring-lock {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1px;
}
.os-ring-lock svg { width: 14px; height: 14px; }
.os-ring-lock--open { color: var(--success, #5a9e6a); }

/* Gate notice text below the ring */
.os-gate-notice {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 0.25rem;
}
.os-gate-notice--open { color: var(--success, #5a9e6a); }

/* Gated ring track — more muted when permission is locked */
.os-ring-track--gated { stroke: rgba(255,255,255,0.04); }

/* Progress bar widget */
.os-bar-wrap {
  margin-bottom: 1.25rem;
}

.os-bar-track {
  width: 100%;
  height: 14px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.os-bar-fill {
  height: 100%;
  background: var(--accent, #c9a84c);
  border-radius: 8px;
  transition: width 0.6s cubic-bezier(.4,0,.2,1);
  min-width: 0;
}

.os-bar-fill--done {
  background: var(--success, #2ecc71);
}

.os-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  opacity: 0.85;
  text-align: left;
}

.os-bar-remaining {
  text-align: right;
}

.os-bar-earned strong,
.os-bar-remaining strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent, #c9a84c);
}

.os-bar-wrap--done .os-bar-earned strong,
.os-bar-wrap--done .os-bar-remaining strong {
  color: var(--success, #2ecc71);
}

/* Message below bar */
.os-widget-msg {
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 1.1rem;
  padding: 0 0.25rem;
}

.os-widget-msg strong {
  color: var(--accent);
  font-weight: 800;
}

.os-widget-msg--done {
  color: var(--success, #2ecc71);
  font-weight: 600;
}

.os-widget-msg--neutral {
  opacity: 0.6;
  font-size: 0.85rem;
}

/* Week / Month stats row */
.os-stats-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.os-stat {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 0.6rem 0.5rem 0.5rem;
  min-width: 0;
}

.os-stat-val {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.os-stat-max {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.5;
}

.os-stat-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 0.4rem;
}

.os-stat-bar {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
}

.os-stat-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.5s ease;
}

.os-stat-bar-fill--done {
  background: var(--success, #2ecc71);
}

/* AI Daily Suggestions widget */
.ai-suggestions-widget {
  background: rgba(201,168,76,0.05);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin: 0.5rem 0 0.75rem;
}

.ai-suggestions-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.ai-suggestions-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}

.ai-suggestions-from {
  font-size: 0.78rem;
  color: var(--accent, #c9a84c);
  font-style: italic;
}

.ai-suggestions-items {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ai-suggestion-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.ai-suggestion-icon {
  font-size: 1.1rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.ai-suggestion-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.88rem;
  line-height: 1.4;
}

.ai-suggestion-text strong {
  font-weight: 700;
}

.ai-suggestion-text span {
  opacity: 0.72;
  font-size: 0.82rem;
}

/* AI-generated goal attribution note */
.os-ai-goal-note {
  font-size: 0.75rem;
  opacity: 0.5;
  text-align: right;
  margin-top: -0.15rem;
  margin-bottom: 0.3rem;
  font-style: italic;
}

/* OS estimate lines in forms */
.os-estimate-line {
  font-size: 0.8rem;
  opacity: 0.65;
  margin: 0.25rem 0 0.5rem;
  color: var(--accent, #c9a84c);
}
.os-estimate-val {
  font-weight: 700;
}

/* ── Domina Presence Card ────────────────────────────────────────────────────── */

.cc-dom-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: linear-gradient(135deg, rgba(201,168,76,0.08) 0%, rgba(201,168,76,0.03) 100%);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 16px;
  padding: 1rem 1rem 1rem 1.1rem;
  margin: 0.5rem 0 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.cc-dom-card:active {
  background: linear-gradient(135deg, rgba(201,168,76,0.14) 0%, rgba(201,168,76,0.06) 100%);
  border-color: rgba(201,168,76,0.45);
}

.cc-dom-card--pleased {
  background: linear-gradient(135deg, rgba(46,204,113,0.1) 0%, rgba(46,204,113,0.03) 100%);
  border-color: rgba(46,204,113,0.3);
}

.cc-dom-card--urgent {
  background: linear-gradient(135deg, rgba(231,76,60,0.1) 0%, rgba(231,76,60,0.03) 100%);
  border-color: rgba(231,76,60,0.3);
}

.cc-dom-avatar-wrap {
  flex-shrink: 0;
  position: relative;
}

.cc-dom-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(201,168,76,0.15);
  border: 2px solid var(--accent, #c9a84c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent, #c9a84c);
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12), 0 0 16px rgba(201,168,76,0.15);
  animation: cc-avatar-pulse 4s ease-in-out infinite;
}

.cc-dom-avatar--pleased {
  border-color: var(--success, #2ecc71);
  color: var(--success, #2ecc71);
  background: rgba(46,204,113,0.1);
  box-shadow: 0 0 0 3px rgba(46,204,113,0.12), 0 0 16px rgba(46,204,113,0.15);
}

@keyframes cc-avatar-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(201,168,76,0.12), 0 0 16px rgba(201,168,76,0.1); }
  50%       { box-shadow: 0 0 0 3px rgba(201,168,76,0.22), 0 0 24px rgba(201,168,76,0.22); }
}

.cc-dom-content {
  flex: 1;
  min-width: 0;
}

.cc-dom-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent, #c9a84c);
  margin-bottom: 0.3rem;
}

.cc-dom-message {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-secondary, #c8c0b4);
  font-style: italic;
}

.cc-dom-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  opacity: 0.5;
}

/* ── Command card description line ────────────────────────────────────────────── */

.cc-command-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0.75rem;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cc-command-sep {
  opacity: 0.3;
  padding: 0 0.2rem;
}

/* ── Request-task link ───────────────────────────────────────────────────────── */

.cc-request-task-btn {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0.4rem 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s;
  margin-top: 0.25rem;
}

.cc-request-task-btn:hover { opacity: 1; }

/* ── Standing status badge ───────────────────────────────────────────────────── */

.os-standing {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  border-radius: 99px;
  margin: 0.5rem 0 0.75rem;
  border: 1px solid transparent;
}

.os-standing--unproven {
  background: rgba(230,168,23,0.12);
  border-color: rgba(230,168,23,0.3);
  color: #e6a817;
}

.os-standing--beginning {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
  color: var(--text-secondary, #b8a898);
}

.os-standing--earning {
  background: rgba(201,168,76,0.12);
  border-color: rgba(201,168,76,0.3);
  color: var(--accent, #c9a84c);
}

.os-standing--worthy {
  background: rgba(201,168,76,0.18);
  border-color: rgba(201,168,76,0.5);
  color: #e8c96e;
  box-shadow: 0 0 8px rgba(201,168,76,0.2);
}

.os-standing--pleased {
  background: rgba(46,204,113,0.12);
  border-color: rgba(46,204,113,0.35);
  color: var(--success, #2ecc71);
  box-shadow: 0 0 8px rgba(46,204,113,0.15);
}

.os-standing--neutral {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  color: var(--text-muted);
}

/* ── Submission Loading Overlay ──────────────────────────────────────────────── */

.submission-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,9,0,0.85);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cc-relief-in 0.25s ease;
}

.submission-loading-card {
  text-align: center;
  padding: 2rem;
}

.submission-loading-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  animation: cc-relief-pulse 2s ease-in-out infinite;
}

.submission-loading-name {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.submission-loading-text {
  font-size: 1rem;
  color: var(--text-secondary, #c8c0b4);
  font-style: italic;
}

.submission-loading-dots::after {
  content: '';
  animation: submission-dots 1.4s steps(4, end) infinite;
}

@keyframes submission-dots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}

/* ── Domina Reaction Modal ───────────────────────────────────────────────────── */

.dom-react-modal {
  background: var(--bg-surface, #1a1917);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 20px;
  max-width: 380px;
  width: calc(100vw - 2rem);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  animation: cc-relief-in 0.3s ease;
}

.dom-react-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(201,168,76,0.12);
  border: 2px solid var(--accent, #c9a84c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent, #c9a84c);
  margin: 0 auto 0.75rem;
  box-shadow: 0 0 20px rgba(201,168,76,0.2);
}

.dom-react-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.dom-react-message {
  font-style: italic;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text, #f0ede8);
  margin: 0 0 1.25rem;
}

.dom-react-extras {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.dom-react-extra {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 99px;
}

.dom-react-extra--pts {
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--accent, #c9a84c);
}

.dom-react-extra--streak {
  background: rgba(255,153,0,0.12);
  border: 1px solid rgba(255,153,0,0.3);
  color: #ff9900;
}

.dom-react-extra--merits {
  background: rgba(130,100,210,0.12);
  border: 1px solid rgba(130,100,210,0.3);
  color: #a07be0;
}

.dom-react-extra--bonus {
  background: rgba(255,80,120,0.12);
  border: 1px solid rgba(255,80,120,0.3);
  color: #ff5080;
  animation: cc-bonus-pop 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes cc-bonus-pop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ── All Tasks Done Celebration ──────────────────────────────────────────────── */

.cc-all-done-screen {
  position: fixed;
  inset: 0;
  background: rgba(5,4,0,0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cc-relief-in 0.4s ease;
}

.cc-all-done-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cc-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: cc-particle-fall 3s ease-in infinite;
}

.cc-particle--0 { background: #c9a84c; left: 15%; animation-delay: 0s; }
.cc-particle--1 { background: #e8c96e; left: 35%; animation-delay: 0.4s; }
.cc-particle--2 { background: #a07c30; left: 55%; animation-delay: 0.8s; }
.cc-particle--3 { background: #c9a84c; left: 75%; animation-delay: 1.2s; }

@keyframes cc-particle-fall {
  0%   { transform: translateY(-20px) scale(0); opacity: 0; }
  20%  { opacity: 1; transform: translateY(0) scale(1); }
  80%  { opacity: 0.6; }
  100% { transform: translateY(100vh) scale(0.5) rotate(360deg); opacity: 0; }
}

.cc-all-done-content {
  position: relative;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 340px;
}

.cc-all-done-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(201,168,76,0.12);
  border: 2.5px solid var(--accent, #c9a84c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent, #c9a84c);
  margin: 0 auto 1rem;
  box-shadow: 0 0 32px rgba(201,168,76,0.35);
  animation: cc-avatar-pulse 2s ease-in-out infinite;
}

.cc-all-done-from {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.cc-all-done-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent, #c9a84c);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.cc-all-done-praise {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary, #c8c0b4);
  font-style: italic;
  margin: 0 0 1.5rem;
}

.cc-all-done-summary {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.cc-all-done-summary span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent, #c9a84c);
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
}

/* ── Progress Ring (OS Widget) ────────────────────────────────────────────────── */

.os-ring-wrap--sm {
  width: 120px;
  height: 120px;
  margin: 0 auto 0.5rem;
}

.os-ring-svg--sm {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.os-ring-val--sm {
  font-size: 1.9rem;
}

.os-tasks-text {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary, #b8a898);
  margin-bottom: 0.25rem;
}

.os-goal-text {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

/* ── Today's Orders Header ───────────────────────────────────────────────────── */

.cc-orders-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0.75rem 0 0.4rem;
}

.cc-orders-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cc-orders-due {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ── Completed Today (strikethrough) ────────────────────────────────────────── */

.cc-done-today {
  margin: 1rem 0 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 0.75rem;
}

.cc-done-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.5;
  margin-bottom: 0.25rem;
}

.cc-done-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.75rem;
  background: rgba(90,158,106,0.06);
  border-radius: 8px;
  opacity: 0.65;
}

.cc-done-check {
  flex-shrink: 0;
}

.cc-done-title {
  font-size: 0.82rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

/* ── Proof type icon ─────────────────────────────────────────────────────────── */

.cc-proof-icon {
  margin-left: 0.4rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

.cc-proof-icon-sm {
  font-size: 0.78rem;
  opacity: 0.65;
}

.cc-secondary-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── Overdue task pulse ───────────────────────────────────────────────────────── */

.cc-command-card--overdue {
  animation: cc-overdue-pulse 2s ease-in-out infinite;
}

@keyframes cc-overdue-pulse {
  0%, 100% { border-color: rgba(231,76,60,0.25); }
  50%       { border-color: rgba(231,76,60,0.7); box-shadow: 0 0 10px rgba(231,76,60,0.15); }
}

.cc-command-card--overdue .cc-command-label {
  color: #ef4444;
}

/* ── Flash Order Full-Screen Interrupt ──────────────────────────────────────── */

/* Submit modal must sit above the flash order overlay */
#flash-submit-modal {
  z-index: 10004;
}

.flash-order-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,4,0,0.97);
  z-index: 10003;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cc-relief-in 0.3s ease;
}

.flash-order-interrupt {
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 360px;
  width: calc(100vw - 2rem);
}

.flash-order-interrupt-badge {
  display: inline-block;
  background: var(--accent, #c9a84c);
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  margin-bottom: 1.25rem;
  animation: flash-blink 1s ease-in-out infinite;
}

.flash-order-interrupt-badge--urgent {
  background: var(--error, #e74c3c);
  color: #fff;
}

.flash-order-interrupt-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(201,168,76,0.12);
  border: 2px solid var(--accent, #c9a84c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent, #c9a84c);
  margin: 0 auto 0.75rem;
  box-shadow: 0 0 24px rgba(201,168,76,0.3);
}

.flash-order-interrupt-from {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.flash-order-interrupt-type {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, #c9a84c);
  opacity: 0.8;
  margin-bottom: 0.4rem;
}

.flash-order-interrupt-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary, #f0ece4);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.flash-order-interrupt-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 1rem;
}

.flash-order-interrupt-timer {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent, #c9a84c);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.flash-order-interrupt-timer--urgent {
  color: var(--error, #e74c3c);
  animation: flash-blink 0.6s ease-in-out infinite;
}

.flash-order-interrupt-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.flash-order-interrupt-bar-fill {
  height: 100%;
  background: var(--accent, #c9a84c);
  border-radius: 99px;
  transition: width 1s linear;
}

.flash-order-interrupt-bar-fill--urgent {
  background: var(--error, #e74c3c);
}

.flash-order-interrupt-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.flash-order-interrupt-accept {
  background: var(--accent, #c9a84c);
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.flash-order-interrupt-accept:active {
  opacity: 0.85;
  transform: scale(0.98);
}

.flash-order-interrupt-dismiss {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.25rem;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.flash-order-interrupt-dismiss:hover { opacity: 1; }
