/* ══════════════════════════════════════════════════════════════
   DEVOSUIT NEWSROOM - MODERN DARK THEME (NIOND DESIGN SYSTEM)
   ══════════════════════════════════════════════════════════════ */

:root {
  /* Color Palette */
  --bg: #0b0e14;
  --bg-sidebar: #0f131a;
  --bg-card: #151922;
  --bg-card-elevated: #1a202c;
  --bg-card-hover: #1f2635;
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.05);
  --border-strong: rgba(255, 255, 255, 0.15);

  /* Signature Lime Accent (From Reference Image) */
  --lime: #c8f435;
  --lime-hover: #d7fb4a;
  --lime-ink: #0d1205;
  --lime-glow: rgba(200, 244, 53, 0.25);
  --lime-wash: rgba(200, 244, 53, 0.12);

  /* Functional Status Colors */
  --success: #4ade80;
  --success-wash: rgba(74, 222, 128, 0.14);
  --warning: #fbbf24;
  --warning-wash: rgba(251, 191, 36, 0.14);
  --danger: #f87171;
  --danger-wash: rgba(248, 113, 113, 0.14);
  --purple: #c084fc;
  --purple-wash: rgba(192, 132, 252, 0.14);
  --blue: #38bdf8;
  --blue-wash: rgba(56, 189, 248, 0.14);

  /* Typography Colors */
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Dimensions & Radius */
  --sidebar-width: 260px;
  --radius-card: 22px;
  --radius-inner: 16px;
  --radius-pill: 999px;
  --radius-btn: 14px;
}

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

html {
  font-size: 15px;
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--lime);
  color: var(--lime-ink);
  padding: 10px 18px;
  font-weight: 700;
  border-radius: var(--radius-btn);
  z-index: 1000;
  transition: top 180ms ease;
}
.skip-link:focus {
  top: 20px;
}

/* ─────────────────────────────────────────────────────────────
   LAYOUT ARCHITECTURE
   ───────────────────────────────────────────────────────────── */
.app-frame {
  display: flex;
  min-height: 100vh;
}

/* ─────────────────────────────────────────────────────────────
   SIDEBAR (NIOND STYLE)
   ───────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  padding: 24px 18px;
}

.sidebar-top {
  padding-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(200, 244, 53, 0.2), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(200, 244, 53, 0.3);
  border-radius: 12px;
}

.brand-mark img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.brand-copy strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-copy small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Navigation List */
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-inner);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 160ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.nav-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

/* Active Nav Pill (Exact Niond Lime Style) */
.nav-item.is-active {
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 700;
  box-shadow: 0 4px 16px var(--lime-glow);
}

.nav-item.is-active svg {
  fill: var(--lime-ink);
}

/* Sidebar Footer & User Profile */
.sidebar-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.user-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-inner);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

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

.user-info strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-info small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.logout-form {
  margin: 0;
}

.icon-button-logout {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 150ms ease, background 150ms ease;
}

.icon-button-logout svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.icon-button-logout:hover {
  color: var(--danger);
  background: var(--danger-wash);
}

.sidebar-status-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.system-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.phase-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(200, 244, 53, 0.05);
  border: 1px solid rgba(200, 244, 53, 0.15);
  border-radius: 10px;
  font-size: 0.72rem;
}

.phase-note span {
  color: var(--lime);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.phase-note strong {
  color: var(--text-muted);
  font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────
   STAGE & COMMAND BAR
   ───────────────────────────────────────────────────────────── */
.app-stage {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.command-bar {
  height: 68px;
  padding: 0 clamp(20px, 4vw, 48px);
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
}

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

.desktop-breadcrumb-context {
  display: flex;
  align-items: center;
  gap: 12px;
}

.desktop-context {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.today-date-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--lime);
  background: var(--lime-wash);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(200, 244, 53, 0.2);
}

.mobile-brand {
  display: none;
  font-size: 1rem;
  font-weight: 800;
}

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

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mobile-logout {
  display: none;
}

.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 150ms ease;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.icon-button:hover {
  background: var(--bg-card-hover);
  color: var(--text);
  border-color: var(--border-strong);
}

.warning {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 48px;
  background: rgba(251, 191, 36, 0.12);
  border-bottom: 1px solid rgba(251, 191, 36, 0.25);
  color: var(--warning);
  font-size: 0.84rem;
  font-weight: 600;
}

.warning svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────
   WORKSPACE & MAIN CONTENT
   ───────────────────────────────────────────────────────────── */
.workspace {
  flex: 1;
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(24px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ─────────────────────────────────────────────────────────────
   HERO / OVERVIEW (NIOND STYLE)
   ───────────────────────────────────────────────────────────── */
.dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 32px 36px;
  background: linear-gradient(135deg, #171c26 0%, #131720 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.dashboard-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--lime-glow) 0%, transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}

.hero-text-side {
  max-width: 680px;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.hero-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
}

.dashboard-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
}

.dashboard-hero h1 em {
  font-style: normal;
  color: var(--lime);
}

.hero-description {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-action-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.collect-form {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.collect-form small {
  color: var(--text-dim);
  font-size: 0.74rem;
}

/* Primary Button (Niond Lime) */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 160ms cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.button-primary {
  background: var(--lime);
  color: var(--lime-ink);
  box-shadow: 0 4px 18px var(--lime-glow);
}

.button-primary:hover:not(:disabled) {
  background: var(--lime-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(200, 244, 53, 0.4);
}

.button-primary:active:not(:disabled) {
  transform: translateY(0);
}

.button-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button-secondary {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border);
  color: var(--text);
}

.button-secondary:hover:not(:disabled) {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.button-danger-quiet {
  background: var(--danger-wash);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: var(--danger);
}

.button-danger-quiet:hover {
  background: rgba(248, 113, 113, 0.25);
}

/* Spinner Animation */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Live Pulse Dot */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--lime-glow);
  animation: live-pulse 2s infinite;
  margin-right: 6px;
  vertical-align: middle;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 244, 53, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(200, 244, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 244, 53, 0); }
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
}

.status-dot.is-muted {
  background: var(--text-dim);
}

/* ─────────────────────────────────────────────────────────────
   COLLECTION STATUS BANNER
   ───────────────────────────────────────────────────────────── */
.collection-status {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-radius: var(--radius-inner);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.status-running {
  border-color: rgba(200, 244, 53, 0.35);
  background: linear-gradient(90deg, rgba(200, 244, 53, 0.08) 0%, var(--bg-card) 100%);
}

.status-completed {
  border-color: rgba(74, 222, 128, 0.3);
  background: linear-gradient(90deg, rgba(74, 222, 128, 0.08) 0%, var(--bg-card) 100%);
}

.status-symbol {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--lime);
  flex-shrink: 0;
}

.status-content {
  flex: 1;
}

.status-content strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.status-content small {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.refresh-link {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--lime);
  padding: 6px 14px;
  background: var(--lime-wash);
  border-radius: var(--radius-pill);
  transition: all 150ms ease;
}

.refresh-link:hover {
  background: rgba(200, 244, 53, 0.22);
}

.batch-id {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 8px;
}

/* ─────────────────────────────────────────────────────────────
   METRICS GRID (NIOND COLORFUL PASTEL/GLOW CARDS)
   ───────────────────────────────────────────────────────────── */
.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.section-kicker span {
  width: 4px;
  height: 18px;
  background: var(--lime);
  border-radius: 2px;
}

.section-kicker h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

.metric-card {
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  border-color: var(--border-strong);
}

/* Distinct Niond Pastel Tints */
.metric-purple {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, #151922 100%);
  border-color: rgba(168, 85, 247, 0.25);
}
.metric-purple .metric-icon {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
}

.metric-blue {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, #151922 100%);
  border-color: rgba(56, 189, 248, 0.25);
}
.metric-blue .metric-icon {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

.metric-lime {
  background: linear-gradient(135deg, rgba(200, 244, 53, 0.12) 0%, #151922 100%);
  border-color: rgba(200, 244, 53, 0.28);
}
.metric-lime .metric-icon {
  background: rgba(200, 244, 53, 0.2);
  color: var(--lime);
}

.metric-coral {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.12) 0%, #151922 100%);
  border-color: rgba(244, 63, 94, 0.25);
}
.metric-coral .metric-icon {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
}

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

.metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.metric-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.metric-body {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.metric-number {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 8px;
}

.metric-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.metric-trend {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--lime);
  background: var(--lime-wash);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* ─────────────────────────────────────────────────────────────
   OPERATIONS GRID (SCHEDULE + QUEUE)
   ───────────────────────────────────────────────────────────── */
.operations-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 24px;
}

.surface-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

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

.card-header h2 {
  margin: 4px 0 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.card-sub-desc {
  margin: 0 0 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}

.status-paused {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.status-live {
  background: var(--lime-wash);
  color: var(--lime);
}

.rate-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--lime);
  background: var(--lime-wash);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(200, 244, 53, 0.2);
}

/* Schedule Timeline */
.schedule-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.schedule-timeline li {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-inner);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 150ms ease;
}

.schedule-timeline li:hover {
  border-color: var(--border-strong);
}

.schedule-timeline time {
  font-size: 1rem;
  font-weight: 800;
  color: var(--lime);
  letter-spacing: -0.01em;
}

.schedule-timeline strong {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}

.slot-pending {
  border-left: 3px solid var(--text-dim) !important;
}

.slot-completed {
  border-left: 3px solid var(--lime) !important;
  background: rgba(200, 244, 53, 0.05) !important;
}

.slot-running {
  border-left: 3px solid var(--blue) !important;
  animation: live-pulse 2s infinite;
}

.slot-failed {
  border-left: 3px solid var(--danger) !important;
}

.slot-test-row {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

.slot-test-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slot-test-form small {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.button-slot-test {
  padding: 8px 16px;
  font-size: 0.82rem;
  width: 100%;
}

/* ─────────────────────────────────────────────────────────────
   READY RECORDS (HIGHLIGHT CARDS)
   ───────────────────────────────────────────────────────────── */
.ready-records-section {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.ready-records-header {
  margin-bottom: 16px;
}

.ready-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lime-wash);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(200, 244, 53, 0.3);
  margin-bottom: 6px;
}

.ready-badge-pill h3 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ready-records-header small {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.ready-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.ready-card {
  background: var(--bg-card-elevated);
  border: 1px solid rgba(200, 244, 53, 0.25);
  border-radius: var(--radius-inner);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 180ms ease, border-color 180ms ease;
}

.ready-card:hover {
  transform: translateY(-3px);
  border-color: var(--lime);
}

.ready-card-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.ready-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ready-card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.ready-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ready-card-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.ready-card-title:hover {
  color: var(--lime);
}

.ready-card-text {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ready-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.button-sm {
  padding: 8px 14px;
  font-size: 0.8rem;
}

.queue-stat-item {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-inner);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.queue-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.queue-dot.pending { background: var(--warning); }
.queue-dot.running { background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.queue-dot.retry { background: var(--blue); }
.queue-dot.done { background: var(--success); }
.queue-dot.error { background: var(--danger); }

.queue-stat-item strong {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.queue-stat-item small {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ─────────────────────────────────────────────────────────────
   NEWS POOL (STYLED LIKE "TOP STORE" IN NIOND REFERENCE)
   ───────────────────────────────────────────────────────────── */
.news-card {
  padding: 28px 32px;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}

.news-header-left h2 {
  margin: 4px 0 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.counter-badge {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--lime);
  background: var(--lime-wash);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  margin-left: 8px;
  vertical-align: middle;
}

/* State Filter Select & Pool Actions */
.news-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.state-filter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.state-filter label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}

.state-filter select {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color 150ms ease;
}

.state-filter select:focus {
  border-color: var(--lime);
}

.button-danger-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 75, 75, 0.08);
  border: 1px solid rgba(255, 75, 75, 0.28);
  color: #ff5e5e;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.button-danger-outline:hover {
  background: rgba(255, 75, 75, 0.18);
  border-color: rgba(255, 75, 75, 0.55);
  color: #ff7d7d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 75, 75, 0.18);
}

.button-danger-outline:active {
  transform: translateY(0);
}

.button-danger-outline svg {
  flex-shrink: 0;
}

/* Filter Chips (Categories) */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 160ms cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-chip:hover {
  color: var(--text);
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.filter-chip.is-active {
  background: var(--lime);
  color: var(--lime-ink);
  border-color: var(--lime);
  font-weight: 700;
  box-shadow: 0 2px 10px var(--lime-glow);
}

.filter-chip.is-active .category-dot {
  background: var(--lime-ink) !important;
}

/* Category Dot Colors */
.category-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-girisim, .dot-startup { background: #fb923c; }
.dot-teknoloji, .dot-tech { background: #38bdf8; }
.dot-ai { background: #c084fc; }
.dot-yazilim, .dot-code { background: var(--lime); }

/* Table Wrap & Structure */
.news-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.news-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.news-table th {
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}

.news-row {
  border-bottom: 1px solid var(--border-soft);
  transition: background 150ms ease;
}

.news-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.news-table td {
  padding: 16px;
  vertical-align: middle;
}

/* Col: News Title */
.col-title {
  max-width: 520px;
}

.news-title-link {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  transition: color 150ms ease;
}

.news-title-link:hover {
  color: var(--lime);
}

.news-meta {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Col: Category Badge */
.category-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}

/* Col: Score Display */
.score-display {
  display: flex;
  align-items: center;
  gap: 10px;
}

.score-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--lime);
  min-width: 28px;
}

.score-track {
  width: 60px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  display: block;
}

.score-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, var(--lime));
  border-radius: 3px;
}

.score-empty {
  color: var(--text-dim);
  font-weight: 700;
}

/* Col: State Badges */
.state-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
}

.state-badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.state-collected {
  background: rgba(251, 191, 36, 0.12);
  color: var(--warning);
}

.state-scored {
  background: rgba(56, 189, 248, 0.12);
  color: var(--blue);
}

.state-drafted {
  background: var(--lime-wash);
  color: var(--lime);
}

.state-approved {
  background: var(--success-wash);
  color: var(--success);
}

.state-rejected {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
}

.state-failed {
  background: var(--danger-wash);
  color: var(--danger);
}

/* Col: Action Button */
.row-action {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 160ms ease;
}

.row-action svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.row-action:hover {
  background: var(--lime);
  color: var(--lime-ink);
  border-color: var(--lime);
  transform: translateX(2px);
}

/* Empty State */
.empty-state {
  padding: 56px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}

.empty-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.empty-state h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.empty-state p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 400px;
}

/* ─────────────────────────────────────────────────────────────
   DETAIL PAGE (EDITORIAL LAYOUT)
   ───────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--lime);
}

.breadcrumb svg {
  width: 16px;
  height: 16px;
  fill: var(--text-dim);
}

.breadcrumb span {
  color: var(--text);
}

.detail-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.detail-title {
  max-width: 840px;
}

.detail-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.detail-title h1 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
}

.source-line {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.84rem;
  color: var(--text-dim);
}

.source-line a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lime);
  font-weight: 700;
}

.source-line a svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.hero-score {
  background: linear-gradient(135deg, rgba(200, 244, 53, 0.15) 0%, rgba(200, 244, 53, 0.05) 100%);
  border: 1px solid rgba(200, 244, 53, 0.3);
  border-radius: var(--radius-inner);
  padding: 18px 24px;
  text-align: center;
  flex-shrink: 0;
}

.hero-score span {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lime);
  margin-bottom: 2px;
}

.hero-score strong {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.hero-score small {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.editorial-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}

.article-panel {
  padding: 28px;
}

.article-header {
  margin-bottom: 20px;
}

.read-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.article-copy {
  font-size: 1rem;
  line-height: 1.75;
  color: #cbd5e1;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 8px;
}

.article-copy::-webkit-scrollbar {
  width: 6px;
}

.article-copy::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}

.intelligence-rail {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.spark-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--lime);
}

.analysis-score-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-card-elevated);
  border-radius: var(--radius-inner);
}

.score-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--lime);
  flex-shrink: 0;
}

.analysis-score-row strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text);
}

.analysis-score-row small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.insight-block {
  margin-top: 16px;
}

.insight-block h3 {
  margin: 0 0 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fact-list, .risk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fact-list li, .risk-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
}

.fact-list span { color: var(--success); font-weight: 800; }
.risk-list span { color: var(--danger); font-weight: 800; }
.safe-note { color: var(--success); font-size: 0.88rem; margin: 0; display: flex; align-items: center; gap: 8px; }

/* Visual Card */
.visual-card {
  padding: 24px;
}

.visual-preview-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-inner);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.visual-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.visual-actions {
  display: flex;
  gap: 10px;
}

.visual-placeholder {
  padding: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.visual-orbit {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-orbit img {
  width: 28px;
  height: 28px;
}

.visual-placeholder h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.visual-placeholder p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Composer Card */
.composer-card {
  padding: 28px 32px;
}

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

.publish-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.composer-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.composer-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.composer-label span {
  font-size: 0.76rem;
  color: var(--text-dim);
  font-weight: 500;
}

textarea#edited_text {
  width: 100%;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-inner);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  padding: 16px;
  resize: vertical;
  outline: none;
  transition: border-color 150ms ease;
}

textarea#edited_text:focus {
  border-color: var(--lime);
}

.editor-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.action-helper {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 12px;
}

.finalized-draft {
  padding: 24px;
  background: var(--bg-card-elevated);
  border-radius: var(--radius-inner);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.finalized-draft p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
}

.finalized-draft small {
  color: var(--text-dim);
}

.composer-empty {
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.composer-empty span svg {
  width: 32px;
  height: 32px;
  fill: var(--text-dim);
}

.composer-empty h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.composer-empty p {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────────────────────
   AUTH SHELL / LOGIN PAGE
   ───────────────────────────────────────────────────────────── */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-story {
  background: linear-gradient(135deg, #161b24 0%, #0d1017 100%);
  padding: clamp(36px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark-large {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.brand-mark-large img {
  width: 28px;
  height: 28px;
}

.auth-brand strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
}

.auth-brand small {
  display: block;
  font-size: 0.8rem;
  color: var(--lime);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-copy h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 12px 0;
}

.story-copy h1 em {
  font-style: normal;
  color: var(--lime);
}

.story-copy p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.workflow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.workflow-steps li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-inner);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.workflow-steps span {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--lime);
}

.workflow-steps strong {
  font-size: 1rem;
  font-weight: 700;
}

.workflow-steps small {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 56px);
  background: var(--bg);
}

.login-card {
  max-width: 420px;
  width: 100%;
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.login-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--lime-wash);
  color: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.login-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.login-card h2 {
  margin: 4px 0 8px;
  font-size: 1.5rem;
  font-weight: 800;
}

.login-card .muted {
  margin: 0 0 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-stack label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
}

.form-stack input {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 150ms ease;
}

.form-stack input:focus {
  border-color: var(--lime);
}

.field-error {
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 600;
  margin: -6px 0 0;
}

.button-full {
  width: 100%;
}

.security-note {
  margin: 20px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-dim);
}

.security-note svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE DESIGN
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .operations-grid {
    grid-template-columns: 1fr;
  }
  .editorial-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar-width: 0px;
  }
  .sidebar {
    display: none;
  }
  .app-stage {
    margin-left: 0;
  }
  .mobile-brand {
    display: block;
  }
  .desktop-context, .today-date-badge {
    display: none;
  }
  .mobile-logout {
    display: block;
  }
  .dashboard-hero {
    flex-direction: column;
    padding: 24px;
  }
  .hero-action-side {
    align-items: flex-start;
  }
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-story {
    display: none;
  }
}

@media (max-width: 640px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .schedule-timeline {
    grid-template-columns: 1fr 1fr;
  }
  .queue-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .news-table th:nth-child(2),
  .news-table td:nth-child(2),
  .news-table th:nth-child(3),
  .news-table td:nth-child(3) {
    display: none;
  }
}
