@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&family=Inter:wght@400;500;600&display=swap');

:root {
  --pf-blue: #0b63ce;
  --pf-blue-dark: #084d9c;
  --pf-light: #ffffff;
  --pf-muted: #1e293b;
  --pf-border: rgba(255, 255, 255, 0.4);
  --pf-bg: #f4f7ff;
  --pf-purple: #8c6ff7;
  --pf-gradient: linear-gradient(135deg, #0b63ce, #8c6ff7);
}

* {
  box-sizing: border-box;
  font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
}

body.theme-light {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(120% 120% at 50% 0%, #ffffff 0%, #eaf2ff 50%, #f9f5ff 100%);
  color: var(--pf-muted);
  position: relative;
}

body.modal-open {
  overflow: hidden;
}

body.theme-light::before {
  content: '';
  position: fixed;
  inset: 10% auto auto 60%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(11, 99, 206, 0.25), transparent 70%);
  filter: blur(50px);
  z-index: 0;
}

body.theme-light::after {
  content: '';
  position: fixed;
  inset: auto auto 5% 10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(140, 111, 247, 0.25), transparent 70%);
  filter: blur(60px);
  z-index: 0;
}

body.theme-light > * {
  position: relative;
  z-index: 1;
}

/* Auth */
.auth-card {
  max-width: 420px;
  margin: 6vh auto;
  background: rgba(255, 255, 255, 0.9);
  padding: 2.75rem;
  border-radius: 26px;
  box-shadow: 0 40px 100px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
}

.auth-card h1 {
  margin: 0 0 0.35rem;
  color: var(--pf-blue);
  font-size: 2.2rem;
}

.subtitle {
  margin-top: 0;
  color: rgba(30, 41, 59, 0.75);
}

.section-lede {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: rgba(15, 23, 42, 0.7);
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

label {
  font-size: 0.9rem;
  color: rgba(30, 41, 59, 0.8);
}

input[type='email'],
input[type='password'] {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(11, 99, 206, 0.25);
  border-radius: 14px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.85);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  outline: none;
  border-color: #8c6ff7;
  box-shadow: 0 0 0 4px rgba(140, 111, 247, 0.2);
}

button {
  padding: 0.95rem 1rem;
  border: none;
  border-radius: 14px;
  background: var(--pf-gradient);
  color: var(--pf-light);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 15px 30px rgba(11, 99, 206, 0.25);
}

button:hover {
  transform: translateY(-2px);
}

button:active {
  transform: scale(0.98);
}

button.ghost {
  background: transparent;
  color: var(--pf-blue);
  border: 1px solid rgba(11, 99, 206, 0.4);
  box-shadow: none;
}

button.btn-success {
  background: #0f9d58;
  border-color: #0f9d58;
  box-shadow: 0 18px 32px rgba(15, 157, 88, 0.25);
}

button.btn-success:hover {
  background: #0c7f47;
}

.error {
  background: rgba(248, 113, 113, 0.15);
  color: #b91c1c;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  margin-top: 1rem;
}

/* App chrome */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.global-mit-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 3rem;
  background: linear-gradient(120deg, #0b63ce, #0b386f);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 18px 40px rgba(11, 99, 206, 0.18);
}

.global-mit-banner .banner-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.global-mit-banner .banner-subtitle {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

.global-mit-banner .banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--pf-gradient);
  color: var(--pf-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 0.05em;
  box-shadow: 0 18px 40px rgba(11, 99, 206, 0.25);
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 700;
  background: var(--pf-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(11, 56, 111, 0.75);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  flex-direction: column;
  gap: 4px;
  margin-right: 1rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #0f172a;
  display: block;
}

.nav-close {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  align-self: flex-end;
  cursor: pointer;
}

.side-nav-overlay {
  display: none;
}

.user-chip {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(11, 99, 206, 0.08);
  color: #0b386f;
  font-size: 0.9rem;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 90px);
  padding: 2rem 2.5rem 3rem;
  gap: 2rem;
}

.side-nav {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 2rem 1.75rem;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.nav-section {
  display: flex;
  flex-direction: column;
}

.nav-section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(30, 41, 59, 0.6);
  margin: 0 0 0.6rem;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  color: rgba(15, 23, 42, 0.75);
  text-decoration: none;
  border-radius: 0.8rem;
  margin-bottom: 0.25rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  background: rgba(11, 99, 206, 0.1);
  color: var(--pf-blue);
  transform: translateX(2px);
}

.nav-link.active {
  background: rgba(11, 99, 206, 0.18);
  color: var(--pf-blue);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(11, 99, 206, 0.2);
}

.content-area {
  padding: 0;
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.content-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(30, 41, 59, 0.6);
  margin: 0 0 0.2rem;
}

.content-header h1 {
  margin: 0;
  color: var(--pf-blue);
  font-size: 2rem;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 32px;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 50px 120px rgba(15, 23, 42, 0.12);
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.hero-panel h1 {
  margin-top: 0;
  font-size: 2.4rem;
}

.hero-actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 1rem;
}

.stat-badge {
  background: rgba(11, 99, 206, 0.08);
  color: var(--pf-blue);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.insight-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  padding: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.insight-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: rgba(15, 23, 42, 0.6);
  margin: 0;
}

.insight-value {
  margin: 0.35rem 0 0;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--pf-blue);
}

.sort-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.task-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.task-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.task-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.leverage-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
  border-radius: 12px;
  background: rgba(11, 99, 206, 0.12);
  color: var(--pf-blue);
}

.task-progress {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.panel {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  padding: 1.9rem;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px);
}

.content-area > section {
  margin-bottom: 2rem;
}

.panel h2 {
  margin-top: 0;
  color: var(--pf-blue);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.85rem;
  color: rgba(30, 41, 59, 0.7);
}

.form-group input,
.form-group select,
.form-group textarea {
  border-radius: 14px;
  border: 1px solid rgba(11, 99, 206, 0.2);
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.weekday-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.35rem;
  font-size: 0.85rem;
}

.weekday-grid label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.5rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.05);
}

.monthly-pattern {
  display: flex;
  gap: 0.5rem;
}

.monthly-pattern select {
  flex: 1;
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(140, 111, 247, 0.7);
  box-shadow: 0 0 0 3px rgba(140, 111, 247, 0.15);
}

.full-width {
  grid-column: 1 / -1;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.data-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.item-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.item-title {
  font-weight: 600;
  color: var(--pf-muted);
}

.item-body {
  margin: 0.4rem 0 0.3rem;
  color: rgba(30, 41, 59, 0.75);
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: rgba(30, 41, 59, 0.7);
}

.task-actions {
  margin-top: 0.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.2rem 0.9rem;
  font-size: 0.78rem;
  background: rgba(11, 99, 206, 0.1);
  color: var(--pf-blue);
}

.pill.tonal {
  background: rgba(140, 111, 247, 0.15);
  color: #5b39b5;
}

.chip-btn {
  border: 1px solid rgba(11, 99, 206, 0.3);
  background: transparent;
  color: var(--pf-blue);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.chip-btn:hover {
  background: rgba(11, 99, 206, 0.08);
}

.chip-btn.primary {
  background: #0f9d58;
  color: #fff;
  border-color: #0f9d58;
  box-shadow: 0 12px 24px rgba(15, 157, 88, 0.25);
}

.chip-btn.primary:hover {
  background: #0c7f47;
}

.chip-btn.ghost {
  border-color: rgba(15, 23, 42, 0.3);
  color: rgba(15, 23, 42, 0.7);
}

.task-completed {
  opacity: 0.75;
}

.field-hint {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(30, 41, 59, 0.45);
}

.empty-state {
  text-align: center;
  padding: 2rem 0;
  color: rgba(30, 41, 59, 0.6);
}

.task-dialog {
  border: none;
  border-radius: 30px;
  padding: 2rem 2.5rem 2.5rem;
  width: min(720px, calc(100% - 2rem));
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 45px 120px rgba(15, 23, 42, 0.2);
}

.task-dialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: rgba(15, 23, 42, 0.6);
  cursor: pointer;
}

.modal-subtitle {
  margin-top: 0.35rem;
  color: rgba(30, 41, 59, 0.65);
}

.status-chip {
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0f172a;
}

.status-active {
  background: rgba(14, 165, 233, 0.2);
  color: #0369a1;
}

.status-paused {
  background: rgba(234, 179, 8, 0.2);
  color: #b45309;
}

.status-completed {
  background: rgba(34, 197, 94, 0.2);
  color: #15803d;
}

.status-archived {
  background: rgba(148, 163, 184, 0.3);
  color: #475569;
}

.progress-bar {
  margin-top: 0.75rem;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--pf-gradient);
  border-radius: inherit;
}

@media (max-width: 1200px) {
  .app-shell {
    grid-template-columns: 240px 1fr;
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .top-nav {
    padding: 1rem;
  }

  .hero-panel {
    padding: 2rem;
  }
}

.date-selector {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.date-selector input {
  padding: 0.4rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--pf-border);
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.checklist label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.meeting-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.meeting-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
}

.meeting-header .meeting-savings {
  margin: 0.25rem 0 0;
  color: rgba(15, 23, 42, 0.65);
}

.meeting-header .meeting-savings strong {
  color: var(--pf-blue);
}

.meeting-info {
  flex: 1;
}

.meeting-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.impact-pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.impact-pill.impact-high {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}

.impact-pill.impact-medium {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.impact-pill.impact-low {
  background: rgba(249, 115, 22, 0.15);
  color: #c2410c;
}

.meeting-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.meeting-flagged {
  border-color: rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.08);
}

.meeting-title {
  margin: 0;
  font-weight: 600;
}

.meeting-meta {
  margin: 0.2rem 0 0;
  color: rgba(15, 23, 42, 0.6);
  font-size: 0.9rem;
}

.mit-pill {
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  background: rgba(234, 88, 12, 0.15);
  color: #c2410c;
  font-weight: 600;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
}

.status-pill.green {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}

.status-pill.amber {
  background: rgba(245, 158, 11, 0.2);
  color: #b45309;
}

.status-pill.red {
  background: rgba(239, 68, 68, 0.2);
  color: #b91c1c;
}

.recommendation-box {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.03);
}


.waiting-group {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.waiting-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.waiting-group ul,
.waiting-complete-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.waiting-group li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.waiting-group li > div:first-child {
  flex: 1;
}

.waiting-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.waiting-actions form {
  margin: 0;
}

.waiting-complete-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.waiting-complete-list li:last-child {
  border-bottom: none;
}

.waiting-panel + .waiting-panel {
  margin-top: 2rem;
}

.daily-plan .panel + .panel {
  margin-top: 2rem;
}

.task-card.task-overdue {
  border: 1px solid rgba(239, 68, 68, 0.6);
  box-shadow: 0 20px 50px rgba(239, 68, 68, 0.15);
}

.task-card.task-no-estimate .warning-text {
  display: inline-flex;
}

.warning-text {
  color: #dc2626;
  font-weight: 600;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.inline-form select {
  min-width: 220px;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--pf-border, rgba(15, 23, 42, 0.15));
}

.manual-plan-tools .field-hint {
  margin-top: 1rem;
}

.quick-add-task {
  margin-top: 0.75rem;
}

.quick-add-task .inline-form {
  margin-top: 0.75rem;
}

.quick-add-task input,
.quick-add-task select {
  min-width: 160px;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--pf-border, rgba(15, 23, 42, 0.15));
}

.quick-add-task input[type='text'] {
  flex: 1 1 240px;
}

.nav-alert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: #dc2626;
  color: #fff;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.today-hero {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.today-main {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.08);
}

.today-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.today-chip {
  padding: 1rem 1.25rem;
  border-radius: 18px;
  background: rgba(240, 247, 255, 0.8);
  border: 1px solid rgba(11, 99, 206, 0.12);
}

.today-chip span {
  display: block;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.6);
}

.today-chip strong {
  font-size: 1.4rem;
  color: var(--pf-blue);
}

.today-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.throughput-panel {
  margin-top: 1.5rem;
}

.throughput-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.throughput-card {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.throughput-card p.label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(15, 23, 42, 0.55);
  margin-bottom: 0.35rem;
}

.throughput-card h3 {
  margin: 0;
  font-size: 1.6rem;
}

.throughput-card .subtitle {
  margin: 0.35rem 0 0;
  color: rgba(15, 23, 42, 0.65);
}

.next-meeting-card {
  background: rgba(5, 19, 44, 0.9);
  color: #fff;
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 40px 80px rgba(5, 19, 44, 0.65);
}

.next-meeting-card h2 {
  margin: 0.3rem 0 0.35rem;
  color: #fff;
}

.next-meeting-card .subtitle {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}


@media (max-width: 960px) {
  .dashboard-hero {
    grid-template-columns: 1fr;
  }
  .today-side {
    flex-direction: column;
  }
}
.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.hero-stat .stat-value {
  font-size: 2rem;
  margin: 0;
  color: var(--pf-blue);
}

.hero-stat .stat-label {
  margin: 0;
  color: rgba(15, 23, 42, 0.65);
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-alerts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-alerts li {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.metric-card h3 {
  margin: 0;
}

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

.metric-header a {
  font-size: 0.85rem;
  color: var(--pf-blue);
  text-decoration: none;
}

.metric-value {
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
}

.metric-subtext {
  margin: 0.2rem 0 1rem;
  color: rgba(15, 23, 42, 0.65);
  font-size: 0.9rem;
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: var(--pf-gradient);
}

.progress-label {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.65);
}

.trend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.trend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.trend-badge {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(11, 99, 206, 0.1);
  color: var(--pf-blue);
  font-size: 0.75rem;
}

.trend-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  min-height: 140px;
}

.trend-chart.intake .bar-fill {
  background: rgba(140, 111, 247, 0.35);
}

.trend-chart.backlog .bar-fill {
  background: rgba(15, 157, 88, 0.35);
}

.trend-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 18px;
}

.bar-fill {
  width: 100%;
  border-radius: 6px 6px 0 0;
  background: rgba(11, 99, 206, 0.3);
  transition: height 0.3s ease;
}

.trend-value {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.3rem;
  color: var(--pf-muted);
}

.trend-bar small {
  font-size: 0.7rem;
  color: rgba(30, 41, 59, 0.6);
}

.trend-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.trend-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.trend-list li strong {
  color: var(--pf-blue);
}

.timer-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.timer-main {
  display: grid;
  gap: 1.5rem;
}

.timer-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.timer-actions {
  display: flex;
  gap: 0.5rem;
}

.timer-card select {
  width: 100%;
  margin-bottom: 1rem;
}

.timer-display {
  font-size: 4rem;
  font-weight: 600;
  text-align: center;
  margin: 1rem 0;
  color: var(--pf-blue);
}

.timer-controls {
  display: flex;
  gap: 1rem;
}

.timer-sidebar {
  min-width: 260px;
  height: fit-content;
}

.timer-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.timer-stats li {
  display: flex;
  justify-content: space-between;
}

.break-countdown {
  margin-top: 1rem;
  font-size: 2rem;
  text-align: center;
}

#focus-task-select.pulse {
  animation: pulse 0.6s ease;
}

@keyframes pulse {
  from { box-shadow: 0 0 0 0 rgba(11, 99, 206, 0.6); }
  to { box-shadow: 0 0 0 12px rgba(11, 99, 206, 0); }
}

.global-timer {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(11, 99, 206, 0.15);
  color: var(--pf-blue);
  text-decoration: none;
  font-size: 0.85rem;
}

.global-timer .timer-mode {
  font-weight: 600;
}

.planned-box {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.planned-box-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.planned-task-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 360px;
  overflow-y: auto;
}

.planned-task-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0.2rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.planned-task-list li:last-child {
  border-bottom: none;
}

.planned-task-list li.done {
  opacity: 0.65;
}

.planned-task-name {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.planned-task-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.7);
}

.status-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(14, 159, 110, 0.15);
  color: #0f9f6e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chip-mit {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}

.chip-count {
  background: rgba(11, 99, 206, 0.12);
  color: var(--pf-blue);
}

.goal-momentum {
  margin-top: 1.5rem;
}

.momentum-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
}

.momentum-chip {
  border-radius: 18px;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.9), rgba(255, 255, 255, 0.95));
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.momentum-chip.active {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 18px 35px rgba(16, 185, 129, 0.18);
}

.momentum-chip.idle {
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 18px 35px rgba(249, 115, 22, 0.15);
}

.chip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.chip-label {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
}

.chip-status {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(15, 23, 42, 0.6);
}

.chip-icon {
  font-size: 1.2rem;
}

.chip-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.65);
}

.chip-metrics span strong {
  margin-left: 0.2rem;
  font-weight: 600;
  color: #0f172a;
}

.chip-tip {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.6);
}

.mini-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--pf-blue);
  text-decoration: none;
  font-weight: 600;
}

.mini-link::after {
  content: '→';
  font-size: 0.9rem;
}

.insight-box {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: 18px;
  background: rgba(11, 99, 206, 0.06);
}

.insight-box-header h4 {
  margin: 0;
  font-size: 1.1rem;
}

.insight-summary {
  margin: 0.75rem 0 1rem;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.75);
}

.insight-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.insight-card {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  padding: 0.85rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.insight-card .insight-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(15, 23, 42, 0.7);
}

.insight-card .insight-action {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(8, 77, 156, 0.9);
  font-weight: 600;
}

.insight-card.on-track {
  border-left: 4px solid #16a34a;
}

.insight-card.behind {
  border-left: 4px solid #dc2626;
}

.insight-card.heavy {
  border-left: 4px solid #f97316;
}

.insight-card.light {
  border-left: 4px solid #0ea5e9;
}

.insight-card.info {
  border-left: 4px solid rgba(15, 23, 42, 0.2);
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.data-table th {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(15, 23, 42, 0.6);
}

.admin-metrics .metric-card {
  min-height: 140px;
}

.nav-section.admin-section {
  margin-top: auto;
}

.timer-mode-switch {
  display: inline-flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.mode-btn {
  border: 1px solid rgba(11, 99, 206, 0.3);
  background: transparent;
  color: var(--pf-blue);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-btn.active {
  background: var(--pf-blue);
  color: #fff;
  box-shadow: 0 10px 20px rgba(11, 99, 206, 0.25);
}

.timer-mode-panels .mode-panel {
  display: none;
}

.timer-mode-panels .mode-panel.active {
  display: block;
}

.mode-wrapper {
  padding-bottom: 2rem;
}

.form-field.compact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field.compact input[type='range'] {
  width: 100%;
}

.progress-value {
  text-align: right;
  font-weight: 600;
  color: var(--pf-muted);
}

.form-actions.stacked {
  flex-direction: column;
  gap: 0.5rem;
}

.form-actions.stacked button {
  width: 100%;
}

.meeting-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.meeting-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.meeting-list strong {
  display: block;
  font-size: 0.9rem;
  color: var(--pf-blue);
}

.meeting-list span {
  display: block;
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.7);
}

.meeting-metrics {
  text-align: right;
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* Insight engine */
.insight-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
  align-items: stretch;
}

.insight-panel > :first-child {
  min-width: 260px;
}

@media (min-width: 1200px) {
  .insight-panel > :first-child {
    grid-column: span 2;
  }
}

.insight-score {
  background: linear-gradient(160deg, rgba(11, 99, 206, 0.12), rgba(140, 111, 247, 0.12));
  border: 1px solid rgba(11, 99, 206, 0.15);
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.insight-score h2 {
  margin: 0;
  font-size: 2.75rem;
  color: var(--pf-blue-dark);
}

.insight-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.metric-chip {
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(11, 99, 206, 0.12);
  min-width: 120px;
}

.metric-chip span {
  display: block;
  font-size: 0.75rem;
  color: rgba(30, 41, 59, 0.6);
}

.metric-chip strong {
  display: block;
  font-size: 1rem;
  color: var(--pf-muted);
}

.insight-column {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(11, 99, 206, 0.08);
  border-radius: 20px;
  padding: 1.5rem;
}

.insight-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  color: rgba(30, 41, 59, 0.85);
}

.insight-list li {
  padding-left: 1rem;
  position: relative;
}

.insight-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--pf-blue);
}

@media (max-width: 1100px) {
  .insight-panel {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .insight-panel {
    grid-template-columns: 1fr;
  }
}

/* Daily schedule */
.day-schedule {
  border: 1px solid rgba(11, 99, 206, 0.12);
  border-radius: 28px;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.9));
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1.5rem;
}

.schedule-times {
  display: grid;
  justify-items: flex-end;
  font-weight: 600;
  color: rgba(30, 41, 59, 0.6);
  font-size: 0.85rem;
}

.schedule-times span {
  align-self: center;
}

.schedule-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 22px;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.04) 0,
    rgba(15, 23, 42, 0.04) 1px,
    transparent 1px,
    transparent 45px
  );
  padding: 0 1.5rem;
}

.schedule-grid::before {
  content: '';
  position: absolute;
  left: 1.2rem;
  top: 0;
  bottom: 0;
  border-left: 2px solid rgba(11, 99, 206, 0.18);
}

.schedule-block {
  width: 100%;
  position: relative;
  padding: 0.85rem 1.15rem;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 4px solid rgba(11, 99, 206, 0.55);
  border: 1px solid rgba(15, 23, 42, 0.08);
  margin: 4px 0;
}

.schedule-block strong {
  font-size: 1rem;
  font-weight: 600;
}

.schedule-block-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.schedule-range {
  font-weight: 600;
}

.schedule-title {
  color: rgba(15, 23, 42, 0.8);
}

.schedule-block.schedule-meeting {
  border-left-color: #f87171;
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.15), #fff 45%);
}

.schedule-block.schedule-task {
  border-left-color: #2563eb;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.12), #fff 45%);
}

.schedule-block.schedule-email {
  border-left-color: #10b981;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.15), #fff 45%);
}

.schedule-block.schedule-lunch {
  border-left-color: #facc15;
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.2), #fff 45%);
}

.schedule-tag {
  align-self: flex-start;
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.7);
  color: var(--pf-muted);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

/* Make Time */
.make-time-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.kpi-card {
  padding: 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.kpi-card.highlight {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(34, 197, 94, 0.18));
  border-color: transparent;
}

.leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.delegate-card {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.02), rgba(59, 130, 246, 0.05));
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.card-name {
  margin: 0;
  font-weight: 600;
  font-size: 1.1rem;
}

.card-hint {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.6);
}

.card-open {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.open-number {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
}

.card-metrics {
  display: flex;
  gap: 1.25rem;
}

.card-metrics > div {
  flex: 1;
}

.metric-label {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(15, 23, 42, 0.55);
}

.metric-value {
  margin: 0.2rem 0 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
}

.progress-label {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.65);
}

@media (max-width: 640px) {
  .card-metrics {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.quadrant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.quadrant-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quadrant-card header h3 {
  margin: 0.2rem 0 0;
}

.quadrant-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.quadrant-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.quadrant-list .item-meta {
  font-size: 0.75rem;
  color: rgba(15, 23, 42, 0.6);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quadrant-card.quadrant-focus { border-top: 4px solid #10b981; }
.quadrant-card.quadrant-schedule { border-top: 4px solid #3b82f6; }
.quadrant-card.quadrant-delegate { border-top: 4px solid #f97316; }
.quadrant-card.quadrant-batch { border-top: 4px solid #94a3b8; }

.quadrant-list .chip-btn {
  white-space: nowrap;
}

.delegate-list,
.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.delegate-list li,
.history-list li {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.95);
  align-items: center;
}

.delegate-list .item-meta span,
.history-list .item-meta span {
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.65);
  margin-right: 0.75rem;
}

@media (max-width: 1024px) {
  .make-time-grid {
    grid-template-columns: 1fr;
  }
  .detail-list {
    grid-template-columns: 1fr;
  }
}

.reinvest-panel {
  background: rgba(15, 23, 42, 0.03);
}

.reinvest-body {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.reinvest-body > div {
  flex: 1 1 240px;
}

.reinvest-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.time-saved-panel .trend-badge {
  background: rgba(15, 23, 42, 0.05);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}

.sparkline {
  width: 100%;
  color: #2563eb;
}

.sparkline svg {
  width: 100%;
  height: 80px;
}

.sparkline-area {
  fill: rgba(37, 99, 235, 0.15);
}

.sparkline circle {
  fill: #fff;
  stroke: currentColor;
  stroke-width: 1.2;
}

.sparkline-line {
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.sparkline-area.intake {
  fill: rgba(59, 130, 246, 0.18);
}

.sparkline-line.intake {
  stroke: #3b82f6;
}

.sparkline-area.backlog {
  fill: rgba(249, 115, 22, 0.15);
}

.sparkline-line.backlog {
  stroke: #f97316;
}

.time-saved-panel .sparkline-area {
  fill: rgba(16, 185, 129, 0.2);
}

.time-saved-panel .sparkline-line {
  stroke: #10b981;
}

.sparkline-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(15, 23, 42, 0.55);
  margin-top: 0.35rem;
}

.sparkline-value-text {
  display: none;
}

.sparkline-intake { color: #3b82f6; }
.sparkline-backlog { color: #f97316; }
.sparkline-saved { color: #10b981; }

.time-saved-panel {
  border-top: 4px solid #10b981;
}

.time-saved-breakdown {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.65);
}

.time-saved-breakdown strong {
  font-weight: 600;
}

/* Weekly Review */
.weekly-review .review-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.goal-activity .goal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}

.goal-card {
  border-radius: 20px;
  padding: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(236, 252, 203, 0.5));
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.goal-card.active {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.9), rgba(255, 255, 255, 0.95));
}

.goal-card.idle {
  border-color: rgba(249, 115, 22, 0.4);
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.9), rgba(255, 255, 255, 0.95));
}

.goal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.goal-card-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
}

.goal-parent {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.6);
}

.goal-card-icon {
  font-size: 1.4rem;
}

.goal-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.7rem;
}

.goal-tip {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.65);
}

.pill-btn {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pill-btn.primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.pill-btn.primary.danger {
  background: linear-gradient(135deg, #f97316, #f43f5e);
}

.timer-readout {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', 'SFMono-Regular', monospace;
  color: #0f172a;
}

.review-hero {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.hero-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 1.5rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.hero-card.secondary {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.08), rgba(16, 185, 129, 0.08));
}

.hero-meta {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.hero-meta li span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(15, 23, 42, 0.5);
}

.review-checklist .review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.review-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 1rem 1.25rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.review-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.review-card label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.review-card input[type='checkbox'] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #2563eb;
}

.review-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.action-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.action-list li {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(248, 249, 255, 0.75);
}

.inline-form.mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.inline-form.mini input,
.inline-form.mini select,
.inline-form.mini button {
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  flex: 1 1 120px;
}

.inline-form.mini button {
  flex: 0 0 auto;
  background: #2563eb;
  color: #fff;
  border: none;
  font-weight: 600;
}

.meeting-review .meeting-table {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.meeting-row {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.meeting-row .item-meta {
  margin: 0.35rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.65);
}

.meeting-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.meeting-actions form {
  margin: 0;
}

.meeting-stats {
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.meeting-load-row {
  border-radius: 16px;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(59, 130, 246, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.meeting-load-row.status-amber {
  background: rgba(249, 115, 22, 0.12);
}

.meeting-load-row.status-red {
  background: rgba(248, 113, 113, 0.15);
}

@media (max-width: 720px) {
  .meeting-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .meeting-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.goal-momentum .panel-header {
  margin-bottom: 0.85rem;
}


/* Training Wizard */
.wizard-open {
  overflow: hidden;
}

.training-wizard {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1200;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
  box-sizing: border-box;
}

.training-wizard.open {
  display: flex;
}

.training-wizard .wizard-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
}

.wizard-modal {
  position: relative;
  width: min(560px, 100%);
  max-height: 90vh;
  background: #fff;
  border-radius: 28px;
  padding: 2.25rem;
  margin: auto;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 1300;
  overflow-y: auto;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.wizard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wizard-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(15, 23, 42, 0.6);
  margin: 0;
}

.wizard-skip,
.wizard-close {
  border: none;
  background: transparent;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.6);
  cursor: pointer;
}

.wizard-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  line-height: 1;
}

.wizard-slides {
  min-height: 260px;
}

.wizard-slide {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}

.wizard-slide.active {
  display: flex;
}

.wizard-slide ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
  color: rgba(15, 23, 42, 0.75);
}

.wizard-slide li + li {
  margin-top: 0.35rem;
}

.wizard-illustration {
  font-size: 2.4rem;
}

.wizard-progress {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.wizard-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.2);
}

.wizard-dot.active {
  background: var(--pf-blue, #2563eb);
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 640px) {
  .training-wizard {
    padding: 1rem;
  }

  .wizard-modal {
    width: 100%;
    max-height: 92vh;
    padding: 1.75rem;
  }
}

/* Pareto Radar */
.radar-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.radar-summary {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.radar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.radar-card {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 20px;
  padding: 1.25rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.radar-card.status-at_risk {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.05);
}

.radar-card.status-drifting {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.05);
}

.radar-card.status-on_track {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.05);
}

.radar-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.radar-task {
  font-weight: 600;
  margin: 0 0 0.2rem;
  color: #0f172a;
}

.radar-meta {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.6);
}

.radar-chip {
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.radar-chip.at_risk {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}

.radar-chip.drifting {
  background: rgba(245, 158, 11, 0.15);
  color: #92400e;
}

.radar-chip.on_track {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}

.radar-details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.radar-details li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.1);
  padding-top: 0.5rem;
  font-size: 0.9rem;
}

.radar-details li span {
  color: rgba(15, 23, 42, 0.6);
}

.detail-hint {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.55);
}

.radar-actions {
  display: flex;
  justify-content: flex-end;
}

.radar-mini-panel .radar-mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mini-card {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.mini-card.status-at_risk {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.03);
}

.mini-card.status-drifting {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.03);
}

.mini-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
}

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

.due-date-suggestion {
  margin-top: 0.4rem;
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 12px;
  padding: 0.5rem 0.8rem;
}

.due-date-suggestion ul {
  margin: 0.3rem 0 0;
  padding-left: 1rem;
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.7);
}

.due-date-suggestion li {
  list-style: disc;
}

.weekday-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.weekday-pill {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.9rem;
}

.weekday-pill input {
  accent-color: var(--pf-blue);
}

.scorecard-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.scorecard-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.scorecard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.scorecard-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 1rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.scorecard-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.scorecard-card .label {
  margin: 0;
  font-weight: 600;
  color: #0f172a;
}

.scorecard-delta {
  font-weight: 600;
  font-size: 0.85rem;
}

.scorecard-delta.up {
  color: #16a34a;
}

.scorecard-delta.down {
  color: #dc2626;
}

.scorecard-card h3 {
  margin: 0;
  font-size: 1.8rem;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.scorecard-card h3 span {
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.6);
}

.scorecard-sparkline {
  height: 40px;
}

.scorecard-sparkline svg {
  width: 100%;
  height: 40px;
}

.scorecard-heading {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.scorecard-icon {
  font-size: 1.2rem;
}

.scorecard-delta {
  background: rgba(15, 23, 42, 0.08);
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
}

.scorecard-card.theme-focus {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: #fff;
  box-shadow: 0 15px 30px rgba(29, 78, 216, 0.35);
}

.scorecard-card.theme-plan {
  background: linear-gradient(135deg, #6d28d9, #a855f7);
  color: #fff;
  box-shadow: 0 15px 30px rgba(109, 40, 217, 0.35);
}

.scorecard-card.theme-mit {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff;
  box-shadow: 0 15px 30px rgba(15, 118, 110, 0.35);
}

.scorecard-card.theme-tasks {
  background: linear-gradient(135deg, #c2410c, #f97316);
  color: #fff;
  box-shadow: 0 15px 30px rgba(249, 115, 22, 0.35);
}

.scorecard-card.theme-time {
  background: linear-gradient(135deg, #be185d, #ec4899);
  color: #fff;
  box-shadow: 0 15px 30px rgba(236, 72, 153, 0.35);
}

.scorecard-card.theme-waiting {
  background: linear-gradient(135deg, #0f172a, #475569);
  color: #fff;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.45);
}

.scorecard-card[class*='theme-'] .label,
.scorecard-card[class*='theme-'] .scorecard-delta,
.scorecard-card[class*='theme-'] h3 span {
  color: rgba(255, 255, 255, 0.9);
}

.scorecard-card[class*='theme-'] .scorecard-delta {
  background: rgba(255, 255, 255, 0.2);
}

.scorecard-card[class*='theme-'] .sparkline-line {
  stroke: rgba(255, 255, 255, 0.9);
}

.scorecard-card[class*='theme-'] .sparkline circle {
  fill: rgba(255, 255, 255, 0.95);
}

.streak-chip {
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #0f172a;
}

.focus-toast {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
  padding: 1rem 1.2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  z-index: 60;
}

.focus-toast-title {
  margin: 0;
  font-weight: 700;
  color: #0f172a;
}

.focus-toast-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.7);
}

.focus-toast-actions {
  display: flex;
  gap: 0.5rem;
}

.focus-nudge {
  border: 1px dashed rgba(37, 99, 235, 0.6);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.focus-nudge-title {
  margin: 0;
  font-weight: 700;
  color: #1d4ed8;
}

.focus-nudge-text {
  margin: 0.2rem 0 0;
  color: rgba(15, 23, 42, 0.8);
}

.focus-nudge-actions {
  display: flex;
  gap: 0.5rem;
}

.meeting-toast {
  border-color: rgba(16, 185, 129, 0.4);
}

.meeting-toast .focus-toast-title {
  color: #047857;
}

.prep-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.prep-toggle .checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.prep-controls select {
  width: auto;
  min-width: 140px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.focus-toast-actions {
  flex-wrap: wrap;
}

.focus-toast-actions .chip-btn {
  white-space: nowrap;
}

.thinking-page .panel {
  margin-bottom: 1.5rem;
}

.thinking-session-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.thinking-form .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.thinking-session-preview {
  border: 1px dashed rgba(15, 23, 42, 0.2);
  border-radius: 18px;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.02);
  min-height: 250px;
}

.thinking-session-preview ul {
  padding-left: 1.2rem;
  margin: 0.75rem 0 0;
}

.mental-model-panel .model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.model-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 1rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.model-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.idea-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 1.5rem;
}

@media (max-width: 960px) {
  .idea-layout {
    grid-template-columns: 1fr;
  }
}

.idea-form {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 1rem;
  background: #fff;
}

.idea-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.idea-column {
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(248, 250, 252, 0.8);
  min-height: 200px;
}

.idea-column-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.count-pill {
  background: rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.idea-card {
  background: #fff;
  border-radius: 16px;
  padding: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 0.75rem;
}

.idea-card .idea-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.idea-card .tag {
  font-size: 0.8rem;
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
}

.idea-status-form select {
  margin-left: 0.25rem;
}

.reflection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.reflection-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 1rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.reflection-card ul {
  padding-left: 1.2rem;
  margin: 0;
}

.rate-limit-hint {
  background: #fff7e6;
  border: 1px solid #f5c06d;
  color: #7a4700;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.projected-metrics-placeholder {
  height: 0;
}

@media (min-width: 768px) {
  .daily-plan .projected-metrics-panel.is-floating {
    position: fixed;
    left: 2.5rem;
    right: auto;
    bottom: 2rem;
    width: min(360px, 95vw);
    max-height: calc(100vh - 3rem);
    overflow: auto;
    z-index: 40;
  }

  .daily-plan .projected-metrics-panel.is-floating .panel-header {
    position: sticky;
    top: -0.25rem;
    padding-top: 0.25rem;
    background: rgba(255, 255, 255, 0.95);
    z-index: 2;
  }
}
.flash-message {
  border-radius: 18px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.flash-message.success {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.35);
  color: #166534;
}

.flash-message.error {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.35);
  color: #7f1d1d;
}

.template-create-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-top: 1rem;
}

.template-create-form .form-group {
  flex: 1 1 240px;
}

.template-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.template-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
}

.template-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.template-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.template-form textarea {
  font-family: 'JetBrains Mono', 'SFMono-Regular', Menlo, Monaco, monospace;
  font-size: 0.9rem;
}

.template-form .form-actions {
  display: flex;
  justify-content: flex-end;
}
.notification-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.notification-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.9);
}

.notification-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.toggle-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: #0f172a;
}

.toggle-checkbox input[type='checkbox'] {
  width: 20px;
  height: 20px;
  accent-color: #2563eb;
}
