/* ── Event row (calendar/timeline) ────────── */
.event-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-subtle);
  min-height: var(--row-height);
}

.event-row:last-child { border-bottom: none; }

.event-time {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
  min-width: 50px;
  flex-shrink: 0;
}

.event-title {
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.event-meta {
  font-size: var(--text-xs);
  color: var(--text-ghost);
  margin-top: 2px;
}

/* ── Task row ─────────────────────────────── */
.task-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: opacity var(--duration-fast);
  min-height: var(--row-height);
}

.task-row:hover { opacity: 0.7; }
.task-row:last-child { border-bottom: none; }

.task-check {
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--duration-fast) var(--ease-out);
}

.task-check:hover {
  border-color: var(--green);
  background: var(--green-dim);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.2);
}

.task-content {
  font-size: var(--text-sm);
  color: var(--text-primary);
  flex: 1;
}

.task-content.overdue { color: var(--red); }
.task-content.carry   { color: var(--amber); }

.task-due {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-ghost);
  flex-shrink: 0;
}

.task-due.overdue { color: var(--red); }
.task-due.today   { color: var(--amber); }

.task-count-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--green-dim);
  color: var(--green);
}

.task-count-badge.has-overdue {
  background: var(--amber-dim);
  color: var(--amber);
}

.task-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.task-badge.agent {
  background: var(--cyan-dim);
  color: var(--cyan);
}

.task-project {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 2px;
  background: var(--surface-3);
  color: var(--text-ghost);
  margin-left: var(--space-xs);
}

/* ── Approval card ────────────────────────── */
.approval-card {
  background: var(--surface-1);
  border-radius: var(--radius-md);
  border-left: 2px solid var(--text-ghost);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  transition: background var(--duration-fast);
}

.approval-card[data-type="email"]    { border-left-color: var(--cyan); }
.approval-card[data-type="task"]     { border-left-color: var(--green); }
.approval-card[data-type="pipeline"] { border-left-color: var(--accent); }

.approval-card:hover {
  background: var(--surface-2);
}

.approval-card.urgent {
  border-left-color: var(--amber);
}

.approval-head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  cursor: pointer;
  user-select: none;
}

.approval-type-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-md);
  flex-shrink: 0;
}

.approval-type-icon.email   { background: var(--cyan-dim); color: var(--cyan); }
.approval-type-icon.task    { background: var(--green-dim); color: var(--green); }
.approval-type-icon.pipeline { background: var(--amber-dim); color: var(--amber); }
.approval-type-icon.generic  { background: var(--surface-2); color: var(--text-muted); }

.approval-info { flex: 1; min-width: 0; }

.approval-title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.approval-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-ghost);
  margin-top: 2px;
  display: flex;
  gap: var(--space-sm);
}

.approval-agent {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--surface-3);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.approval-expand {
  color: var(--text-ghost);
  transition: transform var(--duration-fast);
  flex-shrink: 0;
}

.approval-card.open .approval-expand {
  transform: rotate(180deg);
}

.approval-body {
  display: none;
  padding: 0 var(--space-md) var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

.approval-card.open .approval-body {
  display: block;
}

.approval-preview {
  background: var(--surface-0);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  white-space: pre-wrap;
  max-height: 300px;
  overflow-y: auto;
}

.approval-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}

/* ── Buttons ──────────────────────────────── */
.btn {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.btn.btn-sm {
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-xs);
}

.btn-approve {
  background: var(--green-dim);
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.2);
}

.btn-approve:hover {
  background: rgba(52, 211, 153, 0.25);
  border-color: var(--green);
}

.btn-reject {
  background: var(--red-dim);
  color: var(--red);
  border-color: rgba(248, 113, 113, 0.2);
}

.btn-reject:hover {
  background: rgba(248, 113, 113, 0.25);
  border-color: var(--red);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-subtle);
}

.btn-ghost:hover {
  color: var(--text-secondary);
  border-color: var(--border-medium);
}

.btn-ghost-sm {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}
.btn-ghost-sm:hover {
  color: var(--text-secondary);
  background: var(--glass-hover);
  border-color: rgba(255,255,255,0.12);
}

/* ── Priority indicator ────────────────────── */
.priority-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.priority-dot.urgent { background: var(--red); }
.priority-dot.high   { background: var(--amber); }
.priority-dot.normal { background: var(--text-ghost); }
.priority-dot.low    { background: var(--surface-3); }

/* ── Status badge ─────────────────────────── */
.status-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-badge.pending  { background: var(--amber-dim); color: var(--amber); }
.status-badge.executed { background: var(--green-dim); color: var(--green); }
.status-badge.rejected { background: var(--red-dim); color: var(--red); }
.status-badge.failed   { background: var(--red-dim); color: var(--red); }

/* ── Filter bar ───────────────────────────── */
.filter-bar {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.filter-btn:hover {
  border-color: var(--border-medium);
  color: var(--text-secondary);
}

.filter-btn.active {
  border-color: var(--accent-dim);
  color: var(--accent);
  background: var(--accent-glow);
}

/* ── Badge pill ──────────────────────────── */
.badge-pill {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--green-dim);
  color: var(--green);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.15);
}
.badge-pill.badge-warn {
  background: var(--red-dim);
  color: var(--red);
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.2);
}

/* ── Loading states ────────────────────────── */
.loading-state {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.loading-shimmer {
  height: 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    90deg,
    var(--surface-1) 25%,
    var(--surface-2) 50%,
    var(--surface-1) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.loading-shimmer.short { width: 65%; }
.loading-shimmer.shorter { width: 40%; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton {
  background: linear-gradient(90deg,
    var(--surface-1) 25%,
    rgba(255,255,255,0.06) 50%,
    var(--surface-1) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

/* ── Error state ─────────────────────────── */
.error-state {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
}

.error-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red-dim);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.error-message {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.error-hint {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-ghost);
}

/* ── Empty state ──────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  color: var(--text-ghost);
}

.empty-state .icon {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
  opacity: 0.3;
}

.empty-state .message {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

/* ── Notification toast ───────────────────── */
.toast {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-elevated);
  font-size: var(--text-sm);
  color: var(--text-primary);
  z-index: 100;
  animation: toast-in var(--duration-normal) var(--ease-out);
  max-width: 340px;
}

.toast.hiding {
  animation: toast-out var(--duration-fast) var(--ease-out) forwards;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(8px); }
}

/* ── Modal overlay ───────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in var(--duration-fast) var(--ease-out);
}

.modal {
  background: var(--surface-1);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  width: 400px;
  max-width: 90vw;
  box-shadow: var(--shadow-elevated);
}

.modal h3 {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
}

.modal textarea {
  width: 100%;
  min-height: 80px;
  background: var(--surface-0);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  resize: vertical;
  margin-bottom: var(--space-md);
}

.modal textarea:focus {
  outline: none;
  border-color: var(--accent-dim);
}

.modal-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}

/* ── Glass panel (reusable) ──────────────── */
.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.05),
    0 2px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  overflow: hidden;
  transition: border-color var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}
.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.14);
  border-top-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.08),
    0 4px 24px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.glass-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-md);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-panel-body {
  padding: var(--space-md);
}
.glass-panel-body.flush {
  padding: 0;
}

/* Glass-panel base applied to known section selectors */
.today-section,
.oc-agents,
.oc-shared,
.oc-feed,
.oc-outputs,
.oc-calendar {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.05),
    0 2px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  overflow: hidden;
  transition: border-color var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}
.today-section:hover,
.oc-agents:hover {
  border-color: rgba(255, 255, 255, 0.14);
  border-top-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.08),
    0 4px 24px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ── Auth indicator ──────────────────────── */
.auth-indicator {
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: opacity var(--duration-fast);
}

.auth-indicator:hover {
  opacity: 0.8;
}

.auth-indicator.auth-ok {
  background: var(--green-dim);
  color: var(--green);
}

.auth-indicator.auth-none {
  background: var(--surface-3);
  color: var(--text-ghost);
}

/* ── Auth prompt overlay ─────────────────── */
#auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in var(--duration-fast) var(--ease-out);
}

.auth-modal {
  background: var(--surface-1);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  width: 380px;
  max-width: 90vw;
  box-shadow: var(--shadow-elevated);
}

.auth-title {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.auth-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.4;
}

.auth-input {
  width: 100%;
  background: var(--surface-0);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  outline: none;
  margin-bottom: var(--space-md);
}

.auth-input:focus {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 1px var(--accent-dim);
}

.auth-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}

.auth-btn {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: opacity var(--duration-fast);
}

.auth-btn:hover { opacity: 0.85; }

.auth-btn-save {
  background: var(--accent);
  color: var(--surface-0);
}

.auth-btn-dismiss {
  background: var(--surface-3);
  color: var(--text-muted);
}

.auth-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-ghost);
  margin-top: var(--space-sm);
  text-align: center;
}

/* ── Shortcut help overlay ───────────────── */
#shortcut-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in var(--duration-fast) var(--ease-out);
}

.shortcut-modal {
  background: var(--surface-1);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  width: 440px;
  max-width: 90vw;
  box-shadow: var(--shadow-elevated);
}

.shortcut-title {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
  padding-top: var(--space-sm);
}

.shortcut-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.shortcut-section-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border-subtle);
}

.shortcut-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 3px 0;
}

.shortcut-row kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  background: var(--surface-3);
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  color: var(--text-secondary);
}

.shortcut-row span {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ── Shared markdown body ────────────────── */
.md-body {
  font-size: var(--text-base, 0.9rem);
  line-height: 1.75;
  color: var(--text-secondary);
}
.md-body .md-p { margin: 0 0 0.75rem; }
.md-body .md-p:last-child { margin-bottom: 0; }
.md-body .md-h {
  color: var(--text-primary);
  font-family: var(--font-sans, inherit);
  letter-spacing: -0.01em;
  margin: 1.5rem 0 0.5rem;
  line-height: 1.3;
}
.md-body .md-h:first-child { margin-top: 0; }
.md-body .md-h1 { font-size: 1.5rem; font-weight: 700; padding-bottom: 0.4rem; border-bottom: 1px solid var(--border-subtle); }
.md-body .md-h2 { font-size: 1.25rem; font-weight: 700; padding-bottom: 0.3rem; border-bottom: 1px solid var(--border-subtle); }
.md-body .md-h3 { font-size: 1.1rem; font-weight: 600; }
.md-body .md-h4 { font-size: 1rem; font-weight: 600; }
.md-body .md-h5 { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.md-body .md-h6 { font-size: 0.85rem; font-weight: 600; color: var(--text-ghost); }
.md-body strong { color: var(--text-primary); font-weight: 600; }
.md-body em { font-style: italic; }
.md-body code.md-inline {
  font-family: var(--font-mono); font-size: 0.85em;
  background: rgba(255,255,255,0.06); padding: 0.15em 0.4em;
  border-radius: 4px; color: var(--cyan);
  border: 1px solid rgba(255,255,255,0.04);
}
.md-body pre.md-block {
  font-family: var(--font-mono); font-size: 0.82em;
  background: rgba(0,0,0,0.35); padding: 0.8rem 1rem;
  border-radius: 6px; margin: 0.75rem 0; line-height: 1.6;
  overflow-x: auto; white-space: pre-wrap;
  border: 1px solid rgba(255,255,255,0.04);
  color: var(--text-primary);
}
.md-body .md-list { margin: 0.5rem 0; padding-left: 1.5rem; }
.md-body .md-list li { margin-bottom: 0.3rem; line-height: 1.6; }
.md-body .md-list li::marker { color: var(--text-ghost); }
.md-body .md-link {
  color: var(--cyan); text-decoration: none;
  border-bottom: 1px solid rgba(34, 211, 238, 0.3);
  transition: border-color 0.12s;
}
.md-body .md-link:hover { border-bottom-color: var(--cyan); }
.md-body .md-hr { border: none; border-top: 1px solid var(--border-subtle); margin: 1.5rem 0; }
.md-body .md-table {
  width: 100%; border-collapse: collapse;
  margin: 0.75rem 0; font-size: 0.88em;
}
.md-body .md-table th {
  text-align: left; font-weight: 600; color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--border-medium);
  background: var(--surface-1);
}
.md-body .md-table td {
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.md-body .md-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Shared issue-docs sidebar/content ───── */
.issue-docs-sidebar {
  padding: 1rem 0.5rem;
  overflow-y: auto;
  border-right: 1px solid var(--border-subtle);
  background: var(--surface-1);
}
.issue-docs-group { margin-bottom: 1rem; }
.issue-docs-group:last-child { margin-bottom: 0; }
.issue-docs-group-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-ghost);
  padding: 0 0.5rem;
  margin-bottom: 0.35rem;
}
.issue-docs-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.4rem 0.5rem;
  border: none;
  background: none;
  border-radius: var(--radius-sm, 4px);
  cursor: pointer;
  transition: all 0.12s;
  text-align: left;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}
.issue-docs-item:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}
.issue-docs-item.active {
  background: rgba(34, 211, 238, 0.08);
  color: var(--cyan);
  border-left: 2px solid var(--cyan);
}
.issue-docs-item-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.issue-docs-content {
  padding: 1.5rem 2rem;
  overflow-y: auto;
}
.issue-doc-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}
.issue-doc-path {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-ghost);
  letter-spacing: 0.3px;
}
.issue-doc-body {
  font-size: var(--text-base, 0.9rem);
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ── Reduced motion ──────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .beacon,
  .live-pulse,
  .loading-shimmer,
  .skeleton,
  .scard-dot.green,
  .scard-dot.red,
  .scard.s-blocked,
  .today-session-health,
  .agents-agent::after,
  .agents-active-dot,
  .oc-chat-thinking,
  .tab-panel.active,
  .toast,
  .toast.hiding,
  .today-approval-strip,
  .today-approval-drawer {
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0ms !important;
  }
}

/* ── Mobile overrides ────────────────────── */
@media (max-width: 768px) {
  .grid-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal {
    width: 95vw;
    padding: var(--space-md);
  }

  .auth-modal {
    width: 95vw;
    padding: var(--space-md);
  }

  .shortcut-modal {
    width: 95vw;
    padding: var(--space-md);
  }

  .shortcut-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .approval-actions {
    flex-wrap: wrap;
  }

  .btn {
    padding: var(--space-sm) var(--space-lg);
    min-height: 40px;
  }

  .filter-btn {
    padding: var(--space-sm) var(--space-md);
    min-height: 36px;
  }

  .toast {
    bottom: 72px;
    right: var(--space-md);
    left: var(--space-md);
    max-width: none;
  }
}
