:root {
  --cpl1-bg: #f3f6ff;
  --cpl1-ink: #101431;
  --cpl1-muted: #5d6480;
  --cpl1-card: #ffffff;
  --cpl1-accent: #2563eb;
  --cpl1-accent-2: #f97316;
  --cpl1-accent-3: #22c55e;
  --cpl1-accent-4: #ef4444;
  --cpl1-accent-5: #14b8a6;
  --cpl1-border: #e1e7ff;
  --cpl1-shadow: 0 18px 45px rgba(27, 55, 114, 0.14);
}

.cpl1-app {
  font-family: "Avenir Next", "Futura", "Montserrat", "Gill Sans", "Trebuchet MS", sans-serif;
  color: var(--cpl1-ink);
  background: linear-gradient(135deg, #f7f8ff 0%, #eef2ff 42%, #fff0d9 100%);
  padding: 26px;
  border-radius: 22px;
  border: 1px solid var(--cpl1-border);
  position: relative;
  overflow: hidden;
}

.cpl1-app::before,
.cpl1-app::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(0);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.cpl1-app::before {
  width: 220px;
  height: 220px;
  top: -80px;
  right: -40px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.3), transparent 70%);
}

.cpl1-app::after {
  width: 260px;
  height: 260px;
  bottom: -120px;
  left: -60px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.28), transparent 70%);
}

.cpl1-app > * {
  position: relative;
  z-index: 1;
}

.cpl1-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(120deg, #ffffff 0%, #eef2ff 55%, #e0f2fe 100%);
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12);
}

.cpl1-brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cpl1-pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}

.cpl1-nav-pill {
  text-decoration: none;
  color: var(--cpl1-ink);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.95);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 18px rgba(20, 31, 75, 0.08);
  cursor: pointer;
  font-weight: 600;
}

.cpl1-nav-pill.is-active {
  background: var(--cpl1-accent);
  color: #fff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
}

.cpl1-nav-pill.is-active .cpl1-icon {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  box-shadow: none;
}

.cpl1-pill-label {
  font-size: 13px;
}

.cpl1-bottom-nav {
  display: none;
  gap: 6px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--cpl1-border);
  box-shadow: 0 16px 32px rgba(16, 20, 49, 0.18);
  align-items: center;
  justify-content: space-between;
}

.cpl1-bottom-nav-item {
  border: none;
  background: transparent;
  color: var(--cpl1-muted);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  font-size: 11px;
  text-decoration: none;
  cursor: pointer;
}

.cpl1-bottom-nav-item.is-active {
  color: var(--cpl1-accent);
}

.cpl1-bottom-nav-item.is-active .cpl1-icon {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1d4ed8;
}

.cpl1-bottom-label {
  font-size: 10px;
  font-weight: 600;
}

.cpl1-workspace-chip {
  padding: 6px 14px;
  background: #fff;
  border-radius: 999px;
  border: 1px solid var(--cpl1-border);
  font-size: 12px;
  color: var(--cpl1-muted);
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.08);
}

.cpl1-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff, #dbeafe);
  color: #1d4ed8;
  box-shadow: 0 6px 14px rgba(30, 64, 175, 0.18);
}

.cpl1-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cpl1-icon--dashboard {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  color: #3730a3;
}

.cpl1-icon--workspaces {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #166534;
}

.cpl1-icon--goals {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #b91c1c;
}

.cpl1-icon--planner {
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
  color: #c2410c;
}

.cpl1-icon--logs {
  background: linear-gradient(135deg, #cffafe, #a5f3fc);
  color: #0e7490;
}

.cpl1-icon--settings {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  color: #334155;
}

.cpl1-icon--tasks {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #166534;
}

.cpl1-icon--overdue {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #b91c1c;
}

.cpl1-nav-pill .cpl1-icon,
.cpl1-bottom-nav-item .cpl1-icon {
  width: 22px;
  height: 22px;
}

.cpl1-tabs-wrap {
  margin-bottom: 18px;
}

.cpl1-tab-panels {
  display: block;
}

.cpl1-tab-panel {
  display: none;
}

.cpl1-tab-panel.is-active {
  display: block;
  animation: cpl1-fade-in 0.35s ease;
}

@keyframes cpl1-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.cpl1-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cpl1-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.cpl1-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
  border: 1px solid var(--cpl1-border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--cpl1-shadow);
  margin-bottom: 16px;
}

.cpl1-card-title {
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cpl1-card-meta {
  font-size: 12px;
  color: var(--cpl1-muted);
}

.cpl1-stat {
  font-size: 30px;
  font-weight: 700;
  color: var(--cpl1-accent);
}

.cpl1-stat-card {
  border: 1px solid transparent;
}

.cpl1-stat-card--tasks {
  border-color: rgba(37, 99, 235, 0.35);
}

.cpl1-stat-card--logs {
  border-color: rgba(20, 184, 166, 0.35);
}

.cpl1-stat-card--overdue {
  border-color: rgba(239, 68, 68, 0.45);
}

.cpl1-input,
.cpl1-select,
.cpl1-textarea {
  width: 100%;
  border: 1px solid var(--cpl1-border);
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 10px;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.05);
}

.cpl1-input:focus-visible,
.cpl1-select:focus-visible,
.cpl1-textarea:focus-visible,
.cpl1-button:focus-visible,
.cpl1-nav-pill:focus-visible,
.cpl1-bottom-nav-item:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.3);
  outline-offset: 2px;
}

.cpl1-label {
  display: block;
  font-size: 12px;
  color: var(--cpl1-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cpl1-help {
  font-size: 12px;
  color: var(--cpl1-muted);
  margin: 4px 0 10px;
}

.cpl1-error-text {
  font-size: 12px;
  color: var(--cpl1-accent-4);
  margin: 4px 0 10px;
}

.cpl1-form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cpl1-button {
  background: linear-gradient(135deg, var(--cpl1-accent) 0%, #60a5fa 100%);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cpl1-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.3);
}

.cpl1-button--ghost {
  background: transparent;
  color: var(--cpl1-accent);
  border: 1px solid var(--cpl1-accent);
  margin-left: 8px;
}

.cpl1-button--tiny {
  padding: 6px 8px;
  font-size: 11px;
  border-radius: 8px;
  margin-right: 4px;
}

.cpl1-button--status {
  box-shadow: none;
}

.cpl1-button--status-todo {
  background: #dbeafe;
  color: #1d4ed8;
}

.cpl1-button--status-doing {
  background: #ffedd5;
  color: #c2410c;
}

.cpl1-button--status-done {
  background: #dcfce7;
  color: #166534;
}

.cpl1-link {
  background: none;
  border: none;
  color: var(--cpl1-accent);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.cpl1-link:hover {
  color: var(--cpl1-accent-2);
}

.cpl1-table {
  display: grid;
  gap: 8px;
}

.cpl1-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--cpl1-border);
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(16, 20, 49, 0.06);
}

.cpl1-table-head {
  font-weight: 700;
  background: #eef2ff;
}

.cpl1-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cpl1-inline {
  display: inline-block;
}

.cpl1-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  font-size: 11px;
  font-weight: 600;
}

.cpl1-progress-value {
  font-weight: 600;
}

.cpl1-pill--percent {
  background: #dbeafe;
  color: #1d4ed8;
}

.cpl1-pill--low {
  background: #dbeafe;
  color: #1d4ed8;
}

.cpl1-pill--med {
  background: #ffedd5;
  color: #c2410c;
}

.cpl1-pill--high {
  background: #fee2e2;
  color: #b91c1c;
}

.cpl1-pill--status-todo {
  background: #dbeafe;
  color: #1d4ed8;
}

.cpl1-pill--status-doing {
  background: #ffedd5;
  color: #c2410c;
}

.cpl1-pill--status-done {
  background: #dcfce7;
  color: #166534;
}

.cpl1-pill--goal-active {
  background: #e0f2fe;
  color: #0369a1;
}

.cpl1-pill--goal-paused {
  background: #ffedd5;
  color: #c2410c;
}

.cpl1-pill--goal-done {
  background: #dcfce7;
  color: #166534;
}

.cpl1-pill--due {
  background: #eef2ff;
  color: #1e3a8a;
}

.cpl1-pill--overdue {
  background: #fee2e2;
  color: #b91c1c;
}

.cpl1-alert {
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--cpl1-border);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(16, 20, 49, 0.08);
}

.cpl1-alert--success {
  border-color: #86efac;
  background: #ecfdf3;
}

.cpl1-alert--error {
  border-color: #fda4af;
  background: #fff1f2;
}

.cpl1-alert--info {
  border-color: #c7d2fe;
  background: #eef2ff;
}

.cpl1-alert--warn {
  border-color: #fdba74;
  background: #fff7ed;
}

.cpl1-toast-stack {
  position: fixed;
  top: 20px;
  right: 20px;
  display: grid;
  gap: 10px;
  z-index: 9999;
  max-width: 320px;
}

.cpl1-toast {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid var(--cpl1-border);
  box-shadow: 0 16px 32px rgba(16, 20, 49, 0.2);
  font-size: 13px;
  font-weight: 600;
}

.cpl1-toast--success {
  border-color: #86efac;
  color: #166534;
}

.cpl1-toast--error {
  border-color: #fda4af;
  color: #b91c1c;
}

.cpl1-toast--info {
  border-color: #c7d2fe;
  color: #1d4ed8;
}

.cpl1-toast--warn {
  border-color: #fdba74;
  color: #c2410c;
}

.cpl1-toast.is-hiding {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cpl1-bar-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 8px;
  height: 160px;
  padding: 8px;
  background: #f8faff;
  border-radius: 14px;
}

.cpl1-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
}

.cpl1-bar-fill {
  width: 100%;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--cpl1-accent) 0%, #1d4ed8 100%);
}

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

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

.cpl1-kanban-col {
  background: #f8faff;
  border-radius: 16px;
  padding: 12px;
  border: 1px solid var(--cpl1-border);
}

.cpl1-kanban-col--todo {
  border-top: 3px solid #60a5fa;
}

.cpl1-kanban-col--doing {
  border-top: 3px solid #fb923c;
}

.cpl1-kanban-col--done {
  border-top: 3px solid #34d399;
}

.cpl1-kanban-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.cpl1-kanban-col--todo .cpl1-kanban-title {
  color: #1d4ed8;
}

.cpl1-kanban-col--doing .cpl1-kanban-title {
  color: #c2410c;
}

.cpl1-kanban-col--done .cpl1-kanban-title {
  color: #166534;
}

.cpl1-kanban-empty {
  color: var(--cpl1-muted);
  font-size: 12px;
}

.cpl1-task-card {
  background: #fff;
  border: 1px solid var(--cpl1-border);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 10px 20px rgba(16, 20, 49, 0.08);
}

.cpl1-task-card--todo {
  border-left: 4px solid #60a5fa;
}

.cpl1-task-card--doing {
  border-left: 4px solid #fb923c;
}

.cpl1-task-card--done {
  border-left: 4px solid #34d399;
}

.cpl1-task-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.cpl1-task-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.cpl1-task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

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

.cpl1-list li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--cpl1-border);
}

.cpl1-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.cpl1-links a {
  color: var(--cpl1-accent);
  text-decoration: none;
}

.cpl1-links a:hover {
  color: var(--cpl1-accent-2);
}

.cpl1-empty {
  border: 1px dashed var(--cpl1-border);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(135deg, #fff7ed 0%, #fef9c3 100%);
}

.cpl1-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.cpl1-seo {
  margin-top: 24px;
}

.cpl1-seo-hero h1 {
  font-size: 26px;
  margin: 0 0 8px;
}

.cpl1-seo-subtitle {
  font-weight: 600;
  color: var(--cpl1-muted);
  margin-bottom: 8px;
}

.cpl1-seo-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--cpl1-muted);
}

.cpl1-seo-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.cpl1-seo-note {
  font-size: 12px;
  color: var(--cpl1-muted);
}

.cpl1-seo-contact {
  margin-top: 8px;
  font-size: 12px;
  color: var(--cpl1-muted);
}

.cpl1-seo-card h3,
.cpl1-template-card h3 {
  margin: 0 0 6px;
}

.cpl1-seo-card p,
.cpl1-template-card p {
  margin: 0 0 10px;
  color: var(--cpl1-muted);
}

.cpl1-seo-use h2,
.cpl1-seo-faq h2 {
  margin-top: 0;
}

.cpl1-faq-item {
  margin-bottom: 8px;
}

.cpl1-faq-item summary {
  cursor: pointer;
  font-weight: 600;
}

.cpl1-faq-item p {
  margin: 6px 0 0;
  color: var(--cpl1-muted);
}

.cpl1-pomodoro {
  text-align: center;
}

.cpl1-pomodoro-mode {
  font-weight: 700;
  color: var(--cpl1-muted);
  margin-bottom: 6px;
}

.cpl1-pomodoro-time {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cpl1-pomodoro-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

@media (max-width: 900px) {
  .cpl1-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .cpl1-pill-nav {
    display: none;
  }
  .cpl1-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 520px;
    z-index: 999;
  }
  .cpl1-app {
    padding-bottom: 140px;
  }
  .cpl1-table-row {
    grid-template-columns: 1fr;
  }
}
