﻿:root {
  --bg: #f4f2ee;
  --surface: #ffffff;
  --border: #e6e3dc;
  --border-hover: #cdc9c0;
  --text: #1b1b18;
  --text-secondary: #65635d;
  --text-tertiary: #a09d95;
  --accent: #5b4cd4;
  --accent-hover: #4a3dc0;
  --accent-soft: #f0edff;

  /* Platform — brand */
  --fb-bg: #1877F2;
  --fb-text: #fff;
  --ig-bg: #E1306C;
  --ig-text: #fff;
  --tt-bg: #010101;
  --tt-text: #fff;

  /* Status */
  --idea-bg: #f0ecff;
  --idea-text: #6d4fe0;
  --draft-bg: #fef3e2;
  --draft-text: #d97c1b;
  --review-bg: #eaf2ff;
  --review-text: #2567d9;
  --scheduled-bg: #fdf8e1;
  --scheduled-text: #b58d14;
  --published-bg: #eafbf0;
  --published-text: #1a9e4a;

  /* Pillar */
  --edu-bg: #eaf2ff;
  --edu-text: #1d57c9;
  --promo-bg: #ffeeed;
  --promo-text: #d42b2b;
  --entertain-bg: #fff8e1;
  --entertain-text: #c87800;
  --info-bg: #e8f8ee;
  --info-text: #0f7f3b;

  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --transition: .2s cubic-bezier(.4, 0, .2, 1);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

/* ===== Header ===== */
header {
  background: rgba(255, 255, 255, .75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  gap: 16px;
  flex-wrap: wrap;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #7c6cf0, #5b4cd4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(91, 76, 212, .3);
}

h1 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.subcount {
  color: var(--text-tertiary);
  font-size: 11px;
}

nav.tabs {
  display: flex;
  gap: 2px;
  background: rgba(0, 0, 0, .04);
  padding: 4px;
  border-radius: var(--radius);
}

nav.tabs button {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 99px;
  font-family: inherit;
  transition: all var(--transition);
}

nav.tabs button.active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08), 0 0 1px rgba(0, 0, 0, .08);
}

nav.tabs button:not(.active):hover {
  color: var(--text);
  background: rgba(255, 255, 255, .5);
}

/* ===== Buttons ===== */
.btn {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius);
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(91, 76, 212, .25);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(91, 76, 212, .35);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(91, 76, 212, .2);
}

.btn-ghost {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius);
  font-family: inherit;
  transition: all var(--transition);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

main {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 24px 40px;
}

/* ===== Toolbar ===== */
.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

select {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  padding: 8px 32px 8px 12px;
  font-size: 13px;
  border-radius: var(--radius);
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a09d95' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

select:hover {
  border-color: var(--border-hover);
}

select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 76, 212, .12);
}

/* ===== Empty ===== */
.empty {
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
  padding: 72px 28px;
  text-align: center;
  color: var(--text-tertiary);
  background: var(--surface);
}

.empty strong {
  color: var(--text);
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
  font-weight: 600;
}

/* ===== Tags ===== */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 7px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ===== List ===== */
.list-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-tertiary);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 13px;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr {
  transition: background var(--transition);
}

tbody tr:hover {
  background: #faf9f7;
}

.title-cell {
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition);
}

.title-cell:hover {
  color: var(--accent);
}

.row-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

.icon-btn {
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  width: 32px;
  height: 32px;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition);
  text-decoration: none;
}

.icon-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ===== Kanban ===== */
.kanban {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  align-items: start;
}

.kcol {
  background: rgba(0, 0, 0, .02);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.kcol-head {
  padding: 14px 14px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kcol-head span.name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.kcol-head span.count {
  font-size: 11px;
  color: var(--text-tertiary);
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 7px;
}

.kcol-body {
  padding: 4px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 60px;
  transition: background var(--transition);
}

.kcard {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  cursor: grab;
  font-size: 13px;
  transition: all var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.kcard:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
  transform: translateY(-2px);
}

.kcard.dragging {
  opacity: .3;
}

.kcard-title {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.4;
}

.kcard-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 11px;
}

.kcol-body.drag-over {
  background: var(--accent-soft);
}

/* ===== Calendar ===== */
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.cal-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cal-title {
  font-size: 17px;
  font-weight: 700;
  min-width: 180px;
  letter-spacing: -0.02em;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--border);
  gap: 1px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.cal-dow {
  background: #f9f8f5;
  padding: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: center;
}

.cal-day {
  background: var(--surface);
  min-height: 100px;
  padding: 6px;
  cursor: pointer;
  transition: background var(--transition);
}

.cal-day:hover {
  background: #faf9f7;
}

.cal-day.other-month {
  background: #fcfbf9;
}

.cal-day.other-month .cal-daynum {
  color: var(--text-tertiary);
}

.cal-day.today .cal-daynum {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(91, 76, 212, .3);
}

.cal-daynum {
  font-size: 12px;
  font-weight: 600;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: 4px;
}

.cal-item {
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 6px;
  margin-bottom: 3px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-more {
  font-size: 10px;
  color: var(--text-tertiary);
  padding-left: 4px;
  font-weight: 600;
}

/* ===== Modal ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px;
  z-index: 100;
  overflow-y: auto;
}

.overlay.open {
  display: flex;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 500px;
  padding: 32px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .04);
  animation: modalSlide .25s cubic-bezier(.16, 1, .3, 1);
}

@keyframes modalSlide {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal h2 {
  margin: 0 0 24px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.field input[type=text],
.field input[type=url],
.field input[type=date],
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: all var(--transition);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(91, 76, 212, .1);
}

.field textarea {
  resize: vertical;
  min-height: 72px;
}

/* ===== Upload Zone ===== */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  background: #faf9f7;
}

.upload-zone:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.upload-zone.drag-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  transform: scale(1.01);
}

.upload-zone svg {
  opacity: .5;
  transition: opacity var(--transition);
}

.upload-zone:hover svg {
  opacity: 1;
}

.upload-zone span {
  font-size: 13px;
  font-weight: 600;
}

.upload-zone small {
  font-size: 11px;
  opacity: .7;
}

/* ===== Checkbox ===== */
.checkbox-group {
  display: flex;
  gap: 14px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  margin: 0;
  padding: 5px 12px 5px 8px;
  border-radius: 8px;
  transition: background var(--transition);
}

.checkbox-group label:hover {
  background: rgba(0, 0, 0, .03);
}

.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent);
}

.field-row {
  display: flex;
  gap: 12px;
}

.field-row .field {
  flex: 1;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.link-danger {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 0;
  font-family: inherit;
  font-weight: 500;
  transition: color var(--transition);
}

.link-danger:hover {
  color: #dc2626;
}

.modal-actions-right {
  display: flex;
  gap: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .kanban {
    grid-template-columns: 1fr 1fr;
  }

  .header-inner,
  main {
    padding-left: 16px;
    padding-right: 16px;
  }
}

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

  table thead {
    display: none;
  }

  tbody tr {
    display: block;
    border-bottom: 6px solid var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
  }

  tbody td {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    padding: 10px 14px;
  }

  tbody td::before {
    content: attr(data-label);
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 600;
    flex-shrink: 0;
  }

  .cal-grid {
    grid-template-columns: repeat(7, minmax(36px, 1fr));
  }

  .cal-day {
    min-height: 52px;
    padding: 3px;
  }

  .cal-item {
    display: none;
  }
}

/* ===== Media Preview ===== */
.media-preview-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.media-thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  position: relative;
  background: var(--bg);
  cursor: pointer;
  transition: all var(--transition);
}

.media-thumbnail:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 76, 212, .12);
  transform: scale(1.05);
}

.media-thumbnail.video::after {
  content: '▶';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(0, 0, 0, .4);
  font-size: 15px;
  border-radius: 10px;
}

/* ===== Lightbox ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lbFade .2s ease;
}

@keyframes lbFade {
  from {
    opacity: 0;
    transform: scale(.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 255, 255, .1);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  border-radius: var(--radius);
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, .15);
  color: #fff;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
}

/* ===== Quill Editor Overrides ===== */
.quill-wrapper {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--surface);
}

.quill-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(91, 76, 212, .1);
}

.quill-wrapper .ql-toolbar.ql-snow {
  border: none !important;
  border-bottom: 1px solid var(--border) !important;
  background: #faf9f7;
  padding: 6px 8px;
  font-family: 'Inter', sans-serif;
}

.quill-wrapper .ql-container.ql-snow {
  border: none !important;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text);
}

.quill-wrapper .ql-editor {
  min-height: 100px;
  max-height: 250px;
  overflow-y: auto;
  padding: 10px 14px;
  line-height: 1.6;
}

.quill-wrapper .ql-editor.ql-blank::before {
  color: var(--text-tertiary);
  font-style: normal;
  font-size: 13px;
}

.quill-wrapper .ql-snow .ql-stroke {
  stroke: var(--text-secondary);
}

.quill-wrapper .ql-snow .ql-fill,
.quill-wrapper .ql-snow .ql-stroke.ql-fill {
  fill: var(--text-secondary);
}

.quill-wrapper .ql-snow button:hover .ql-stroke {
  stroke: var(--accent);
}

.quill-wrapper .ql-snow button:hover .ql-fill {
  fill: var(--accent);
}

.quill-wrapper .ql-snow button.ql-active .ql-stroke {
  stroke: var(--accent);
}

.quill-wrapper .ql-snow button.ql-active .ql-fill {
  fill: var(--accent);
}

/* View notes rendered from Quill HTML */
.view-notes-content p {
  margin: 0 0 6px;
}

.view-notes-content ul,
.view-notes-content ol {
  margin: 4px 0;
  padding-left: 20px;
}

.view-notes-content li {
  margin-bottom: 2px;
}

/* ===== Field Label Row ===== */
.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 8px;
}

.field-label-row label {
  margin-bottom: 0;
}

/* ===== AI Generate Button ===== */
.btn-ai {
  background: linear-gradient(135deg, #7c6cf0, #c86cf0);
  color: #fff;
  border: none;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(124, 108, 240, .25);
  white-space: nowrap;
}

.btn-ai:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124, 108, 240, .35);
  background: linear-gradient(135deg, #6b5ce0, #b85ce0);
}

.btn-ai:active {
  transform: translateY(0);
}

.btn-ai.loading {
  pointer-events: none;
  background: linear-gradient(135deg, #9e92f0, #d4a0f0);
}

.btn-ai.loading .ai-icon {
  display: inline-block;
  animation: aiSpin 1s linear infinite;
}

.btn-ai.loading .ai-text::after {
  content: '';
  animation: aiDots 1.5s steps(4, end) infinite;
}

@keyframes aiSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes aiDots {
  0% {
    content: '';
  }

  25% {
    content: '.';
  }

  50% {
    content: '..';
  }

  75% {
    content: '...';
  }
}

/* ===== Pillar Manager ===== */
.pillar-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  max-height: 240px;
  overflow-y: auto;
}

.pillar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--radius);
  transition: background var(--transition);
}

.pillar-item:hover {
  background: #efede9;
}

.pillar-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pillar-item-actions {
  display: flex;
  gap: 4px;
}

.pillar-add-form {
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

/* ===== Color Picker ===== */
.color-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.color-input-wrap input[type="color"] {
  width: 38px;
  height: 38px;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  cursor: pointer;
  background: var(--surface);
  transition: border-color var(--transition);
}

.color-input-wrap input[type="color"]:hover {
  border-color: var(--accent);
}

.color-hex {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
}

.pillar-preview-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== Empty state for pillar list ===== */
.pillar-empty {
  text-align: center;
  padding: 20px;
  color: var(--text-tertiary);
  font-size: 13px;
}

/* ===== Idea Bank ===== */
.idea-quick-add {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.idea-quick-add input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 14px;
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .02);
  transition: all var(--transition);
}

.idea-quick-add input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(91, 76, 212, .1);
}

.idea-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  align-items: start;
}

.idea-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
  transition: all var(--transition);
  position: relative;
}

.idea-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
  transform: translateY(-2px);
}

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

.idea-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

.idea-card .idea-meta {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.idea-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

/* ===== Calendar Modes & Layouts ===== */
.cal-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cal-modes {
  display: flex;
  background: var(--bg);
  padding: 3px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.cal-modes button {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.cal-modes button:hover {
  color: var(--text);
}

.cal-modes button.active {
  background: var(--surface);
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

/* Week View */
.cal-grid-week {
  grid-template-columns: repeat(7, 1fr);
}

.cal-grid-week .cal-day {
  min-height: 280px;
}

/* Day View */
.cal-day-detail-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cal-day-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .03);
}

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

/* Year View */
.cal-grid-year {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 1100px) {
  .cal-grid-year {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .cal-grid-year {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .cal-grid-year {
    grid-template-columns: 1fr;
  }
}

.cal-year-month {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
  transition: all var(--transition);
}

.cal-year-month:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}

.cal-year-month-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  text-align: center;
  color: var(--text);
  cursor: pointer;
  padding: 2px 0;
  border-radius: 4px;
  transition: background var(--transition);
}

.cal-year-month-title:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.cal-year-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.cal-year-dow {
  font-size: 9px;
  color: var(--text-tertiary);
  font-weight: 600;
  padding-bottom: 4px;
}

.cal-year-day {
  font-size: 10px;
  height: 22px;
  line-height: 22px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-secondary);
}

.cal-year-day:hover {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.cal-year-day.has-items {
  font-weight: 700;
}

.cal-year-day.today {
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
}