/* ============================================================
   MISSION CONTROL — Apple Liquid Glass UI
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #020209;
  --surface:      rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --border:       rgba(255,255,255,0.07);
  --border-bright: rgba(255,255,255,0.12);
  --text:         #f1f5f9;
  --text-muted:   #94a3b8;
  --text-faint:   #475569;
  --purple:       #818cf8;
  --purple-dim:   rgba(129,140,248,0.15);
  --blue:         #38bdf8;
  --blue-dim:     rgba(56,189,248,0.15);
  --green:        #34d399;
  --green-dim:    rgba(52,211,153,0.15);
  --orange:       #fb923c;
  --orange-dim:   rgba(251,146,60,0.15);
  --red:          #f87171;
  --red-dim:      rgba(248,113,113,0.15);
  --amber:        #fbbf24;
  --sidebar-w:    252px;
  --radius:       14px;
  --radius-sm:    10px;
  --blur:         24px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  color: var(--text);
}

html, body { height: 100%; overflow: hidden; }

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 15% 50%, rgba(99,102,241,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(139,92,246,0.06) 0%, transparent 45%),
    radial-gradient(ellipse at 55% 85%, rgba(56,189,248,0.04) 0%, transparent 40%);
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ============================================================
   LAYOUT
   ============================================================ */
#app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  background: rgba(5,5,18,0.7);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  overflow-x: hidden;
}

/* ============================================================
   STATUS WIDGET
   ============================================================ */
.status-widget {
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.status-avatar {
  font-size: 22px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(129,140,248,0.12);
  border: 1px solid rgba(129,140,248,0.2);
  border-radius: 10px;
  flex-shrink: 0;

  overflow: hidden;
}

.status-info { flex: 1; min-width: 0; }

.status-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.status-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.online { background: var(--green); box-shadow: 0 0 6px rgba(52,211,153,0.6); animation: pulse-dot 2.5s ease-in-out infinite; }
.status-dot.idle   { background: var(--amber); box-shadow: 0 0 6px rgba(251,191,36,0.5); }
.status-dot.offline{ background: var(--text-faint); }

@keyframes pulse-dot {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.35); opacity: 0.7; }
}

.status-activity {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.status-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: var(--text-faint);
  margin-bottom: 7px;
}
.meta-icon { font-size: 9px; }

.bandwidth-bar-wrap { width: 100%; }
.bandwidth-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.bandwidth-bar {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
}
.bandwidth-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  border-radius: 99px;
  transition: width 0.8s ease;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 10px 8px 4px;
  margin-top: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  font-size: 13px;
  position: relative;
}

.nav-item:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.nav-item.active {
  background: var(--purple-dim);
  color: var(--purple);
  border-color: rgba(129,140,248,0.2);
}

.nav-icon {
  font-size: 14px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  background: var(--purple-dim);
  color: var(--purple);
  border: 1px solid rgba(129,140,248,0.25);
  border-radius: 99px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 600;
}

/* ============================================================
   SIDEBAR PROFILE
   ============================================================ */
.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.profile-info { flex: 1; min-width: 0; }
.profile-name { font-size: 12px; font-weight: 600; color: var(--text); }
.profile-sub  { font-size: 10px; color: var(--text-faint); }
.profile-time { font-size: 11px; color: var(--text-faint); font-variant-numeric: tabular-nums; }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.section {
  display: none;
  padding: 28px 28px 40px;
  min-height: 100vh;
  animation: fadeIn 0.25s ease;
}
.section.active { display: block; }

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

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}

.section-date {
  font-size: 12px;
  color: var(--text-faint);
  padding-top: 6px;
}

/* ============================================================
   GLASS CARD
   ============================================================ */
.glass {
  background: var(--surface);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow:
    0 4px 24px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.card { padding: 18px 20px; }

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

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

.card-sub {
  font-size: 11px;
  color: var(--text-faint);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 600;
  border: 1px solid;
}
.badge-purple { background: var(--purple-dim); color: var(--purple); border-color: rgba(129,140,248,0.25); }
.badge-green  { background: var(--green-dim);  color: var(--green);  border-color: rgba(52,211,153,0.25); }
.badge-blue   { background: var(--blue-dim);   color: var(--blue);   border-color: rgba(56,189,248,0.25); }
.badge-orange { background: var(--orange-dim); color: var(--orange); border-color: rgba(251,146,60,0.25); }
.badge-red    { background: var(--red-dim);    color: var(--red);    border-color: rgba(248,113,113,0.25); }
.badge-gray   { background: rgba(255,255,255,0.06); color: var(--text-muted); border-color: var(--border); }

/* ============================================================
   STAT ROW
   ============================================================ */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  border: 1px solid;
}
.stat-icon.purple { background: var(--purple-dim); color: var(--purple); border-color: rgba(129,140,248,0.2); }
.stat-icon.green  { background: var(--green-dim);  color: var(--green);  border-color: rgba(52,211,153,0.2); }
.stat-icon.orange { background: var(--orange-dim); color: var(--orange); border-color: rgba(251,146,60,0.2); }
.stat-icon.blue   { background: var(--blue-dim);   color: var(--blue);   border-color: rgba(56,189,248,0.2); }

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 3px;
}

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

/* ============================================================
   TWO COL GRID
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

/* ============================================================
   WEATHER
   ============================================================ */
.weather-content { min-height: 80px; }
.weather-main {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.weather-temp {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.weather-desc { font-size: 12px; color: var(--text-muted); }
.weather-run-advice {
  font-size: 12px;
  padding: 7px 11px;
  border-radius: 8px;
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(52,211,153,0.2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.weather-run-advice.bad {
  background: var(--red-dim);
  color: var(--red);
  border-color: rgba(248,113,113,0.2);
}

/* ============================================================
   GREEK MINI
   ============================================================ */
.greek-mini { display: flex; flex-direction: column; gap: 6px; }
.greek-word { font-size: 20px; font-weight: 700; color: var(--purple); letter-spacing: -0.01em; }
.greek-roman { font-size: 12px; color: var(--text-muted); }
.greek-english { font-size: 13px; color: var(--text); }
.greek-example { font-size: 11px; color: var(--text-faint); font-style: italic; }

/* ============================================================
   WORKSHOP MINI (DASHBOARD)
   ============================================================ */
.workshop-mini {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 0;
}
.wm-col { text-align: center; }
.wm-num { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.wm-num.blue { color: var(--blue); }
.wm-num.purple { color: var(--purple); }
.wm-num.green { color: var(--green); }
.wm-label { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.wm-divider { width: 1px; height: 40px; background: var(--border); }

/* ============================================================
   CURRENT TASK DISPLAY
   ============================================================ */
.current-task-display { padding: 4px 0; }
.task-name { font-size: 14px; color: var(--text); font-weight: 500; margin-bottom: 6px; }
.task-progress-bar { height: 4px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.task-progress-fill { height: 100%; background: linear-gradient(90deg, var(--purple), var(--blue)); border-radius: 99px; transition: width 1s ease; }
.task-meta { font-size: 11px; color: var(--text-faint); margin-top: 6px; }

/* ============================================================
   WORKSHOP STATS BAR
   ============================================================ */
.workshop-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 14px 24px;
  margin-bottom: 20px;
  border-radius: var(--radius);
}
.ws-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 28px; }
.ws-stat > span:first-child { font-size: 22px; font-weight: 700; color: var(--text); }
.ws-label { font-size: 11px; color: var(--text-muted); }
.ws-divider { width: 1px; height: 36px; background: var(--border); }
.bandwidth-stat { flex: 1; }
.ws-bandwidth-bar { width: 100%; height: 4px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.ws-bandwidth-fill { height: 100%; background: linear-gradient(90deg, var(--purple), var(--blue)); border-radius: 99px; transition: width 0.8s ease; }

/* ============================================================
   KANBAN
   ============================================================ */
.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.kanban-col {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  min-height: 300px;
}

.kanban-col-header {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.col-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.col-dot.blue   { background: var(--blue); box-shadow: 0 0 6px rgba(56,189,248,0.5); }
.col-dot.yellow { background: #eab308; box-shadow: 0 0 8px rgba(234,179,8,0.6); }
.col-dot.green  { background: var(--green); box-shadow: 0 0 6px rgba(52,211,153,0.5); }
.col-title { font-size: 12px; font-weight: 600; color: var(--text); flex: 1; }
.col-count { font-size: 11px; color: var(--text-faint); background: rgba(255,255,255,0.06); padding: 1px 7px; border-radius: 99px; }

.kanban-cards { display: flex; flex-direction: column; gap: 10px; }

.k-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: default;
  transition: all 0.18s ease;
}
.k-card:hover { background: var(--surface-hover); border-color: var(--border-bright); transform: translateY(-1px); }

.k-card-title { font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.k-card-desc  { font-size: 11px; color: var(--text-muted); line-height: 1.5; margin-bottom: 10px; }
.k-card-footer { display: flex; justify-content: space-between; align-items: center; }
.k-card-agent  { font-size: 10px; color: var(--text-faint); }
.k-card-tags   { display: flex; gap: 4px; flex-wrap: wrap; }
.k-tag {
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 99px;
  background: rgba(255,255,255,0.05);
  color: var(--text-faint);
  border: 1px solid var(--border);
}

.priority-high   { border-left: 2px solid var(--red); }
.priority-medium { border-left: 2px solid var(--amber); }
.priority-low    { border-left: 2px solid var(--green); }

.k-progress { margin-top: 8px; }
.k-progress-label { font-size: 10px; color: var(--text-faint); margin-bottom: 3px; display: flex; justify-content: space-between; }
.k-progress-bar { height: 3px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; }
.k-progress-fill { height: 100%; background: linear-gradient(90deg, var(--purple), var(--blue)); border-radius: 99px; }

/* ============================================================
   AGENTS
   ============================================================ */
.commander-card {
  padding: 20px 22px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.commander-avatar {
  font-size: 28px;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(129,140,248,0.12);
  border: 1px solid rgba(129,140,248,0.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.commander-info { flex: 1; }
.commander-name { font-size: 16px; font-weight: 700; color: var(--text); }
.commander-role { font-size: 12px; color: var(--purple); margin-bottom: 4px; }
.commander-personality { font-size: 12px; color: var(--text-muted); font-style: italic; line-height: 1.5; }
.commander-status { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-faint); margin-top: 8px; }

.agents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.agent-card {
  padding: 16px 18px;
}
.agent-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.agent-avatar { font-size: 20px; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.agent-name { font-size: 13px; font-weight: 600; color: var(--text); }
.agent-role { font-size: 11px; color: var(--text-muted); }
.agent-mission { font-size: 11.5px; color: var(--text-muted); line-height: 1.5; margin-bottom: 10px; }
.agent-schedule { font-size: 10.5px; color: var(--text-faint); display: flex; align-items: center; gap: 5px; }

.hub-card { padding: 16px 18px; }
.hub-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.hub-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px rgba(52,211,153,0.6); animation: pulse-dot 2.5s ease-in-out infinite; }
.hub-messages { display: flex; flex-direction: column; gap: 12px; max-height: 280px; overflow-y: auto; }
.hub-msg { display: flex; gap: 10px; }
.hub-msg-avatar { width: 28px; height: 28px; border-radius: 7px; background: rgba(255,255,255,0.06); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.hub-msg-body { flex: 1; }
.hub-msg-header { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.hub-msg-from { font-size: 11.5px; font-weight: 600; color: var(--text); }
.hub-msg-time { font-size: 10px; color: var(--text-faint); }
.hub-msg-type { font-size: 10px; padding: 1px 7px; border-radius: 99px; }
.hub-msg-type.directive { background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(129,140,248,0.2); }
.hub-msg-type.acknowledgement { background: var(--green-dim); color: var(--green); border: 1px solid rgba(52,211,153,0.2); }
.hub-msg-text { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   CRON JOBS
   ============================================================ */
.cron-list { display: flex; flex-direction: column; gap: 10px; }
.cron-item {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cron-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cron-dot.active { background: var(--green); box-shadow: 0 0 6px rgba(52,211,153,0.5); }
.cron-dot.pending { background: var(--amber); }
.cron-dot.disabled { background: var(--text-faint); }
.cron-info { flex: 1; }
.cron-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.cron-desc { font-size: 11.5px; color: var(--text-muted); margin-bottom: 5px; }
.cron-schedule { font-size: 11px; color: var(--purple); }
.cron-meta { text-align: right; }
.cron-next { font-size: 11px; color: var(--text-faint); }
.cron-count { font-size: 10.5px; color: var(--text-faint); margin-top: 3px; }

/* ============================================================
   FITNESS
   ============================================================ */
.fitness-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.streak-row {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

.streak-card {
  flex: 1;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.streak-emoji { font-size: 22px; }
.streak-num { font-size: 26px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.streak-label { font-size: 11px; color: var(--text-muted); }

.abs-checklist { display: flex; flex-direction: column; gap: 8px; }
.abs-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.18s ease;
  background: rgba(255,255,255,0.02);
  border: 1px solid transparent;
}
.abs-item:hover { background: rgba(255,255,255,0.05); }
.abs-item.done { opacity: 0.5; }
.abs-check {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--text-faint);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  transition: all 0.18s ease;
}
.abs-item.done .abs-check { background: var(--green); border-color: var(--green); color: white; }
.abs-name { font-size: 12.5px; color: var(--text); flex: 1; }
.abs-sets { font-size: 11px; color: var(--text-faint); }

.run-list { display: flex; flex-direction: column; gap: 8px; }
.run-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 9px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
}
.run-type-badge { padding: 2px 9px; border-radius: 99px; font-size: 10px; font-weight: 600; }
.run-type-badge.easy     { background: var(--green-dim); color: var(--green); border: 1px solid rgba(52,211,153,0.2); }
.run-type-badge.interval { background: var(--orange-dim); color: var(--orange); border: 1px solid rgba(251,146,60,0.2); }
.run-type-badge.long     { background: var(--blue-dim); color: var(--blue); border: 1px solid rgba(56,189,248,0.2); }
.run-empty { font-size: 12px; color: var(--text-faint); padding: 20px 0; text-align: center; }

.calorie-meter { padding: 4px 0; }
.calorie-nums { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.calorie-current { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; margin-bottom: 2px; }
.calorie-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.calorie-fill { height: 100%; border-radius: 99px; transition: width 0.8s ease; }
.calorie-fill.good   { background: linear-gradient(90deg, var(--green), #6ee7b7); }
.calorie-fill.over   { background: linear-gradient(90deg, var(--orange), var(--red)); }
.calorie-sub { font-size: 11px; color: var(--text-faint); }

.progress-abs { padding: 4px 0; }
.progress-abs-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.progress-abs-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; }
.progress-abs-fill { height: 100%; background: linear-gradient(90deg, var(--purple), var(--blue)); border-radius: 99px; transition: width 0.8s ease; }

/* ============================================================
   GROCERIES
   ============================================================ */
.grocery-add { display: flex; gap: 10px; margin-bottom: 18px; }
.grocery-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.18s;
}
.grocery-input:focus { border-color: var(--purple); }
.btn-add {
  padding: 9px 18px;
  background: var(--purple-dim);
  color: var(--purple);
  border: 1px solid rgba(129,140,248,0.25);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}
.btn-add:hover { background: rgba(129,140,248,0.25); }

.grocery-list { display: flex; flex-direction: column; gap: 6px; }
.grocery-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.18s;
}
.grocery-item:hover { background: rgba(255,255,255,0.05); }
.grocery-item.checked { opacity: 0.4; }
.grocery-check {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--text-faint);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.grocery-item.checked .grocery-check { background: var(--green); border-color: var(--green); color: white; }
.grocery-name { flex: 1; font-size: 13px; color: var(--text); }
.grocery-item.checked .grocery-name { text-decoration: line-through; }
.grocery-cat { font-size: 10.5px; color: var(--text-faint); padding: 1px 8px; border-radius: 99px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); }
.grocery-updated { font-size: 11px; color: var(--text-faint); margin-bottom: 12px; }

/* ============================================================
   GREEK
   ============================================================ */
.greek-hero {
  padding: 24px;
  text-align: center;
  margin-bottom: 14px;
}
.greek-hero-word { font-size: 42px; font-weight: 800; color: var(--purple); letter-spacing: -0.02em; margin-bottom: 6px; }
.greek-hero-romanized { font-size: 16px; color: var(--text-muted); margin-bottom: 4px; }
.greek-hero-pron { font-size: 13px; color: var(--text-faint); font-style: italic; margin-bottom: 10px; }
.greek-hero-english { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.greek-hero-example { font-size: 13px; color: var(--text-muted); line-height: 1.6; padding: 10px 16px; background: rgba(255,255,255,0.03); border-radius: 9px; border: 1px solid var(--border); }

.greek-stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 14px; }
.greek-stat { padding: 14px 16px; text-align: center; }
.greek-stat-num { font-size: 24px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; margin-bottom: 3px; }
.greek-stat-label { font-size: 11px; color: var(--text-muted); }

.greek-progress { padding: 16px 18px; margin-bottom: 14px; }
.greek-progress-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.greek-progress-bar { height: 8px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.greek-progress-fill { height: 100%; background: linear-gradient(90deg, var(--purple), var(--blue)); border-radius: 99px; }
.greek-progress-sub { font-size: 11px; color: var(--text-faint); }

.greek-recent-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.greek-recent-list { display: flex; flex-direction: column; gap: 6px; }
.greek-recent-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 9px;
}
.greek-recent-gr { font-size: 13px; font-weight: 600; color: var(--purple); width: 120px; }
.greek-recent-rom { font-size: 11.5px; color: var(--text-muted); flex: 1; }
.greek-recent-en { font-size: 12px; color: var(--text); }

/* ============================================================
   CALENDAR
   ============================================================ */
.calendar-events { display: flex; flex-direction: column; gap: 10px; }
.cal-event {
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.cal-date-block {
  text-align: center;
  min-width: 44px;
  padding: 6px 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 9px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.cal-date-day   { font-size: 20px; font-weight: 700; color: var(--text); line-height: 1; }
.cal-date-month { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.cal-event-info { flex: 1; }
.cal-event-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.cal-event-notes { font-size: 11.5px; color: var(--text-muted); line-height: 1.5; }
.cal-event-type { padding: 2px 9px; border-radius: 99px; font-size: 10px; font-weight: 600; margin-top: 6px; display: inline-block; }
.cal-event-type.milestone { background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(129,140,248,0.2); }
.cal-event-type.task { background: var(--blue-dim); color: var(--blue); border: 1px solid rgba(56,189,248,0.2); }
.cal-event-type.review { background: var(--orange-dim); color: var(--orange); border: 1px solid rgba(251,146,60,0.2); }

/* ============================================================
   QUICK CAPTURE
   ============================================================ */
.capture-box { padding: 18px 20px; margin-bottom: 14px; }
.capture-textarea {
  width: 100%;
  min-height: 120px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  resize: none;
  outline: none;
  font-family: inherit;
}
.capture-textarea::placeholder { color: var(--text-faint); }
.capture-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.capture-hint { font-size: 11px; color: var(--text-faint); }
.btn-capture {
  padding: 8px 18px;
  background: var(--purple-dim);
  color: var(--purple);
  border: 1px solid rgba(129,140,248,0.25);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}
.btn-capture:hover { background: rgba(129,140,248,0.25); }
.capture-log-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.capture-log { display: flex; flex-direction: column; gap: 8px; }
.capture-log-item {
  padding: 11px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 9px;
}
.capture-log-text { font-size: 12.5px; color: var(--text); margin-bottom: 4px; }
.capture-log-meta { font-size: 10.5px; color: var(--text-faint); }

/* ============================================================
   SCP
   ============================================================ */
.scp-status-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 14px; }

.campaign-status-card { padding: 20px; }
.cs-status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.cs-status-badge.not_started { background: rgba(255,255,255,0.06); color: var(--text-muted); border: 1px solid var(--border); }
.cs-status-badge.live        { background: var(--green-dim); color: var(--green); border: 1px solid rgba(52,211,153,0.2); }
.cs-detail { font-size: 12px; color: var(--text-muted); line-height: 1.7; }
.cs-detail strong { color: var(--text); }

.metrics-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 14px; }
.metric-mini { padding: 12px 14px; text-align: center; }
.metric-mini-val { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; margin-bottom: 3px; }
.metric-mini-label { font-size: 10.5px; color: var(--text-muted); }

.creative-list { display: flex; flex-direction: column; gap: 8px; }
.creative-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 9px;
}
.creative-label { width: 24px; height: 24px; border-radius: 6px; background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(129,140,248,0.2); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.creative-angle { flex: 1; font-size: 12px; color: var(--text-muted); }
.creative-status { font-size: 10.5px; }

/* ============================================================
   API METRICS
   ============================================================ */
.api-top-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.api-big-card { padding: 20px 22px; }
.api-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.api-value { font-size: 32px; font-weight: 700; color: var(--text); letter-spacing: -0.03em; line-height: 1; margin-bottom: 4px; }
.api-sub { font-size: 11px; color: var(--text-faint); }

.spend-bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 50px; margin-top: 12px; }
.spend-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.spend-bar-fill { width: 100%; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--purple), rgba(129,140,248,0.4)); min-height: 3px; transition: height 0.8s ease; }
.spend-bar-label { font-size: 9px; color: var(--text-faint); }

.budget-ring { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.budget-ring-info { flex: 1; }
.budget-spent { font-size: 28px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.budget-total { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.budget-bar-wrap { height: 6px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; }
.budget-bar-fill { height: 100%; background: linear-gradient(90deg, var(--green), #6ee7b7); border-radius: 99px; }

.providers-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.provider-item { display: flex; align-items: center; gap: 10px; }
.provider-name { font-size: 12px; color: var(--text); width: 90px; flex-shrink: 0; }
.provider-bar-bg { flex: 1; height: 5px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; }
.provider-bar-fill { height: 100%; background: linear-gradient(90deg, var(--purple), var(--blue)); border-radius: 99px; }
.provider-pct { font-size: 11px; color: var(--text-faint); width: 35px; text-align: right; flex-shrink: 0; }

/* ============================================================
   LOADING / EMPTY STATES
   ============================================================ */
.loading-pulse {
  color: var(--text-faint);
  font-size: 12px;
  animation: loadpulse 1.5s ease-in-out infinite;
}
@keyframes loadpulse {
  0%,100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-faint);
  font-size: 12px;
}
.empty-state .empty-icon { font-size: 28px; margin-bottom: 8px; opacity: 0.4; }

/* ============================================================
   AI NEWS
   ============================================================ */
.ainews-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ainews-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

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

.ainews-source {
  font-size: 11px;
  color: var(--text-faint);
  font-weight: 500;
}

.ainews-date {
  font-size: 11px;
  color: var(--text-faint);
}

.ainews-link {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.ainews-link:hover { opacity: 1; }

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

.ainews-summary {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.ainews-why {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  padding: 8px 10px;
  background: rgba(168, 85, 247, 0.06);
  border-left: 2px solid rgba(168, 85, 247, 0.4);
  border-radius: 0 4px 4px 0;
  line-height: 1.5;
}

.ainews-why-label {
  color: rgba(168, 85, 247, 0.8);
  font-weight: 600;
  white-space: nowrap;
}



/* ============================================================
   CELESTE POPOVER — polished, floats right of sidebar
   ============================================================ */
.celeste-popover {
  position: fixed;
  top: 12px;
  left: calc(var(--sidebar-w) + 10px);
  width: 272px;
  z-index: 9999;
  border-radius: 20px;
  background: rgba(14, 14, 26, 0.88);
  backdrop-filter: blur(48px) saturate(200%);
  -webkit-backdrop-filter: blur(48px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.06);
  opacity: 0;
  transform: translateX(-8px) scale(0.97);
  transition: opacity 0.2s cubic-bezier(0.4,0,0.2,1), transform 0.2s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
  overflow: hidden;
}
.celeste-popover.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: all;
}

.cp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
}
.cp-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(168,85,247,0.15);
}
.cp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.cp-info { flex: 1; min-width: 0; }
.cp-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.cp-status-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
}
.cp-status-label {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}
.cp-close {
  background: rgba(255,255,255,0.06);
  border: none;
  color: rgba(255,255,255,0.3);
  font-size: 9px;
  cursor: pointer;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
  align-self: flex-start;
}
.cp-close:hover {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
}

.cp-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 0 16px;
}

.cp-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cp-activity-row { display: flex; flex-direction: column; gap: 3px; }

.cp-section-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}
.cp-activity-text {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}

.cp-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cp-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 10px 12px;
}
.cp-stat-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 4px;
}
.cp-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.cp-stat-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cp-last-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.cp-last-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}
.cp-last-value {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
}

/* Status dot colours */
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status-dot.online  { background: #22c55e; box-shadow: 0 0 6px #22c55e99; }
.status-dot.idle    { background: #eab308; box-shadow: 0 0 6px #eab30899; }
.status-dot.offline { background: #6b7280; box-shadow: none; }

/* Clean SVG nav icons */
.nav-icon-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.45;
  transition: opacity 0.15s;
}
.nav-item:hover .nav-icon-svg,
.nav-item.active .nav-icon-svg {
  opacity: 1;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin: 1px 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  transition: background 0.12s, color 0.12s;
  letter-spacing: 0.01em;
  user-select: none;
}
.nav-item:hover {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.85);
}
.nav-item.active {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.95);
  font-weight: 500;
}
.nav-section-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  padding: 14px 12px 5px;
  margin-top: 2px;
}

/* === Workshop Kanban interactive === */
.k-add-btn {
  margin-left: auto;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  width: 24px; height: 24px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.12s;
  line-height: 1;
  padding: 0;
}
.k-add-btn:hover { background: rgba(255,255,255,0.14); color: #fff; }

.k-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  align-items: center;
}
.k-move-btn {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: all 0.1s;
  white-space: nowrap;
}
.k-move-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }

.k-del-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,100,100,0.4);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.1s;
}
.k-del-btn:hover { color: rgba(255,80,80,0.9); }

.od-btn-cancel {
  padding: 8px 18px; border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6); font-size: 13px;
  cursor: pointer; font-family: inherit; transition: all 0.1s;
}
.od-btn-confirm {
  padding: 8px 18px; border-radius: 10px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff; font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: inherit; transition: all 0.1s;
}


