/* Standard Deviation — SD Shell Design System */
/* v=SD1 */

/* ============================================================
   CSS RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================================
   CUSTOM PROPERTIES (SD color palette)
   ============================================================ */
:root {
  --sd-bg: #0f0f0f;
  --sd-card: #1a1a1a;
  --sd-card-hover: #222222;
  --sd-border: #2a2a2a;
  --sd-accent: #6366f1;
  --sd-accent-hover: #4f46e5;
  --sd-text: #f0f0f0;
  --sd-text-muted: #888888;
  --sd-success: #10b981;
  --sd-warning: #f59e0b;
  --tab-height: 60px;

  /* Category pill colors */
  --cat-work: #3b82f6;
  --cat-mental: #6366f1;
  --cat-info: #10b981;
  --cat-lifestyle: #f59e0b;

  /* Deviation score colors */
  --score-green: #10b981;
  --score-yellow: #f59e0b;
  --score-red: #ef4444;
}

/* ============================================================
   FONT IMPORTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500&display=swap');

/* ============================================================
   BASE STYLES
   ============================================================ */
.sd-body {
  background: var(--sd-bg);
  color: var(--sd-text);
  font-family: 'IBM Plex Sans', 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sd-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(var(--tab-height) + env(safe-area-inset-bottom));
}

/* ============================================================
   HEADER
   ============================================================ */
.sd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--sd-border);
  background: var(--sd-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.sd-header .sd-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--sd-text);
  letter-spacing: -0.01em;
}

.sd-header .sd-platform-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--sd-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sd-header .sd-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--sd-accent);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
}

.sd-header .sd-back-btn svg {
  flex-shrink: 0;
}

.sd-header .sd-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sd-text-muted);
}

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.sd-content {
  flex: 1;
  padding: 20px 16px;
  overflow-y: auto;
}

/* ============================================================
   DEVIATION WIDGET (circular score)
   ============================================================ */
.deviation-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 20px;
  gap: 12px;
}

.deviation-circle {
  position: relative;
  width: 120px;
  height: 120px;
}

.deviation-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 6px solid var(--sd-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.deviation-ring.score-green {
  border-color: var(--score-green);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.deviation-ring.score-yellow {
  border-color: var(--score-yellow);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.deviation-ring.score-red {
  border-color: var(--score-red);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.deviation-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--sd-text);
  line-height: 1;
  letter-spacing: -0.03em;
}

.deviation-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--sd-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.deviation-subscores {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.deviation-subscore {
  font-size: 12px;
  color: var(--sd-text-muted);
  white-space: nowrap;
}

.deviation-subscore span {
  color: var(--sd-text);
  font-weight: 500;
}

/* ============================================================
   MODULE GRID
   ============================================================ */
.module-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 4px;
}

@media (max-width: 360px) {
  .module-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   MODULE CARD
   ============================================================ */
.module-card {
  background: var(--sd-card);
  border: 1px solid var(--sd-border);
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  color: var(--sd-text);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  cursor: pointer;
  min-height: 120px;
}

.module-card:hover,
.module-card:focus-visible {
  background: var(--sd-card-hover);
  border-color: var(--sd-accent);
  transform: translateY(-1px);
  outline: none;
}

.module-card:active {
  transform: translateY(0);
}

.module-card.active {
  border-color: var(--sd-accent);
}

.module-icon {
  width: 36px;
  height: 36px;
  background: rgba(99, 102, 241, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sd-accent);
}

.module-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--sd-text);
  line-height: 1.3;
}

.module-stat-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.module-stat {
  font-size: 12px;
  color: var(--sd-text-muted);
}

/* ============================================================
   SD TAB BAR (bottom navigation)
   ============================================================ */
.sd-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--tab-height) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--sd-border);
  display: flex;
  z-index: 500;
}

.sd-tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: var(--sd-text-muted);
  font-size: 11px;
  font-weight: 500;
  padding: 0 4px;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.sd-tab-item:hover,
.sd-tab-item.active {
  color: var(--sd-accent);
}

.sd-tab-item svg {
  transition: transform 0.1s;
}

.sd-tab-item:active svg {
  transform: scale(0.9);
}

/* ============================================================
   SURFACE TAB BAR (secondary, horizontal pills)
   ============================================================ */
.surface-tab-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-bottom: 1px solid var(--sd-border);
}

.surface-tab-bar::-webkit-scrollbar {
  display: none;
}

.surface-tab-item {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--sd-card);
  border: 1px solid var(--sd-border);
  color: var(--sd-text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.surface-tab-item:hover {
  background: var(--sd-card-hover);
  color: var(--sd-text);
}

.surface-tab-item.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--sd-accent);
  color: var(--sd-accent);
}

/* ============================================================
   SURFACE PANELS
   ============================================================ */
.surface-panels {
  flex: 1;
  position: relative;
}

.surface-panel {
  display: none;
  padding: 16px;
  animation: fadeIn 0.15s ease;
}

.surface-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.sd-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--sd-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  margin-top: 4px;
}

/* ============================================================
   ARTICLE CARDS (The Brief)
   ============================================================ */
.article-card {
  background: var(--sd-card);
  border: 1px solid var(--sd-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.article-source {
  font-size: 12px;
  color: var(--sd-text-muted);
  font-weight: 500;
}

.article-read-time {
  font-size: 12px;
  color: var(--sd-text-muted);
}

.article-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--sd-text);
  line-height: 1.35;
}

.article-excerpt {
  font-size: 13px;
  color: var(--sd-text-muted);
  line-height: 1.5;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.article-read-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--sd-accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-read-link:hover {
  color: var(--sd-accent-hover);
}

/* ============================================================
   BADGES + PILLS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-accent {
  background: rgba(99, 102, 241, 0.15);
  color: var(--sd-accent);
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--sd-success);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--sd-warning);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

.pill-work {
  background: rgba(59, 130, 246, 0.15);
  color: var(--cat-work);
}

.pill-mental-acuity {
  background: rgba(99, 102, 241, 0.15);
  color: var(--cat-mental);
}

.pill-information-science {
  background: rgba(16, 185, 129, 0.15);
  color: var(--cat-info);
}

.pill-lifestyle {
  background: rgba(245, 158, 11, 0.15);
  color: var(--cat-lifestyle);
}

/* ============================================================
   SEPARATOR
   ============================================================ */
.separator {
  height: 1px;
  background: var(--sd-border);
  margin: 16px 0;
}

/* ============================================================
   COVENANT CARDS
   ============================================================ */
.covenant-section {
  margin-bottom: 24px;
}

.covenant-card {
  background: var(--sd-card);
  border: 1px solid var(--sd-border);
  border-radius: 12px;
  padding: 16px;
}

.covenant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.covenant-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--sd-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.covenant-status {
  font-size: 12px;
  color: var(--sd-text-muted);
}

/* Sleep bar chart */
.sleep-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 48px;
  margin-top: 8px;
  padding-bottom: 4px;
}

.sleep-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  height: 100%;
}

.sleep-bar {
  width: 100%;
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  background: var(--sd-border);
  flex-shrink: 0;
  align-self: flex-end;
}

.sleep-bar.filled {
  background: var(--sd-accent);
}

.sleep-bar.filled.good {
  background: var(--score-green);
}

.sleep-bar-label {
  font-size: 9px;
  color: var(--sd-text-muted);
}

/* Drink selector */
.drink-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.drink-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--sd-border);
  background: var(--sd-card);
  color: var(--sd-text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drink-btn.selected {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--sd-accent);
  color: var(--sd-accent);
}

.drink-btn:hover {
  border-color: var(--sd-accent);
}

/* Engagement timer */
.engagement-timer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.timer-display {
  font-size: 28px;
  font-weight: 700;
  color: var(--sd-text);
  letter-spacing: -0.02em;
}

.timer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--sd-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  width: fit-content;
}

.timer-btn:hover {
  background: var(--sd-accent-hover);
}

.timer-btn.stop {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.timer-btn.stop:hover {
  background: rgba(239, 68, 68, 0.25);
}

.timer-check {
  font-size: 24px;
  color: var(--score-green);
}

.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--sd-warning);
  font-size: 13px;
  font-weight: 600;
}

/* ============================================================
   DEAL DESK CARDS
   ============================================================ */
.deal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 360px) {
  .deal-grid {
    grid-template-columns: 1fr;
  }
}

.deal-card {
  background: var(--sd-card);
  border: 1px solid var(--sd-border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deal-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--sd-text);
}

.deal-card-subtitle {
  font-size: 12px;
  color: var(--sd-text-muted);
}

.deal-notes {
  font-size: 13px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--sd-border);
  border-radius: 8px;
  padding: 8px 10px;
  min-height: 64px;
  width: 100%;
  resize: none;
  font-family: inherit;
  line-height: 1.5;
  color: var(--sd-text);
  cursor: default;
}

.deal-notes:focus {
  outline: none;
  border-color: var(--sd-accent);
  cursor: text;
  background: rgba(99, 102, 241, 0.05);
}

.deal-edit-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--sd-accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

/* ============================================================
   PORTAL CARD (26N Learning)
   ============================================================ */
.portal-card {
  background: var(--sd-card);
  border: 1px solid var(--sd-border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.portal-desc {
  font-size: 14px;
  color: var(--sd-text-muted);
  line-height: 1.6;
  max-width: 280px;
}

.portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--sd-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s;
}

.portal-btn:hover {
  background: var(--sd-accent-hover);
}

/* ============================================================
   CHAT INTERFACE (IC Chat modal + sparring room panel)
   ============================================================ */
.ic-fab {
  position: fixed;
  bottom: calc(var(--tab-height) + env(safe-area-inset-bottom) + 16px);
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sd-accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
  z-index: 9000;
  transition: transform 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.ic-fab:hover {
  background: var(--sd-accent-hover);
  transform: scale(1.05);
}

.ic-fab:active {
  transform: scale(0.95);
}

.ic-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9100;
  display: none;
  align-items: flex-end;
}

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

.ic-modal {
  width: 100%;
  height: 82vh;
  max-height: 82vh;
  background: var(--sd-card);
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.ic-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--sd-border);
  flex-shrink: 0;
}

.ic-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--sd-text);
}

.ic-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: none;
  cursor: pointer;
  color: var(--sd-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.ic-modal-close:hover {
  background: rgba(255,255,255,0.15);
  color: var(--sd-text);
}

.ic-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.ic-message {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  gap: 4px;
}

.ic-message.user {
  align-self: flex-end;
  align-items: flex-end;
}

.ic-message.assistant {
  align-self: flex-start;
  align-items: flex-start;
}

.ic-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.ic-message.user .ic-bubble {
  background: var(--sd-accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.ic-message.assistant .ic-bubble {
  background: #252525;
  color: var(--sd-text);
  border-bottom-left-radius: 4px;
}

.ic-timestamp {
  font-size: 11px;
  color: var(--sd-text-muted);
  padding: 0 4px;
}

.ic-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 10px 14px;
  background: #252525;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.ic-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sd-text-muted);
  animation: typingDot 1.2s infinite;
}

.ic-typing span:nth-child(2) { animation-delay: 0.2s; }
.ic-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.ic-input-area {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--sd-border);
  flex-shrink: 0;
  align-items: flex-end;
}

.ic-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--sd-border);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--sd-text);
  font-size: 14px;
  font-family: inherit;
  resize: none;
  min-height: 42px;
  max-height: 120px;
  line-height: 1.4;
  transition: border-color 0.15s;
}

.ic-input:focus {
  outline: none;
  border-color: var(--sd-accent);
}

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

.ic-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sd-accent);
  border: none;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

.ic-send-btn:hover {
  background: var(--sd-accent-hover);
}

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

/* Inline sparring room chat (panel mode) */
.sparring-chat-panel {
  background: var(--sd-card);
  border: 1px solid var(--sd-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  max-height: 60vh;
  overflow: hidden;
}

.sparring-chat-panel .ic-messages {
  flex: 1;
}

.sparring-chat-panel .ic-input-area {
  border-top: 1px solid var(--sd-border);
}

/* ============================================================
   NUMBER INPUT
   ============================================================ */
.sd-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.sd-number-input {
  width: 72px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--sd-border);
  border-radius: 8px;
  color: var(--sd-text);
  font-size: 15px;
  font-family: inherit;
  text-align: center;
  transition: border-color 0.15s;
}

.sd-number-input:focus {
  outline: none;
  border-color: var(--sd-accent);
}

.sd-save-btn {
  padding: 8px 16px;
  background: var(--sd-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.sd-save-btn:hover {
  background: var(--sd-accent-hover);
}

/* ============================================================
   EMPTY STATES
   ============================================================ */
.sd-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--sd-text-muted);
  font-size: 14px;
}

/* ============================================================
   LOADING SKELETON
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--sd-card) 25%, var(--sd-card-hover) 50%, var(--sd-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   WEEKLY STAT ROW
   ============================================================ */
.weekly-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--sd-border);
}

.weekly-stat:last-child {
  border-bottom: none;
}

.weekly-stat-label {
  font-size: 13px;
  color: var(--sd-text-muted);
}

.weekly-stat-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--sd-text);
}

/* ============================================================
   NOTICE / INFO BOX
   ============================================================ */
.sd-notice {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--sd-text-muted);
  line-height: 1.5;
}

.sd-notice strong {
  color: var(--sd-accent);
}
