/* ─── Aeonik Font ─── */
@font-face {
  font-family: 'Aeonik';
  src: url('/fonts/aeonik-regular.woff2') format('woff2'),
       url('/fonts/aeonik-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aeonik';
  src: url('/fonts/aeonik-regularitalic.woff2') format('woff2'),
       url('/fonts/aeonik-regularitalic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Aeonik';
  src: url('/fonts/aeonik-semibold.woff2') format('woff2'),
       url('/fonts/aeonik-semibold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aeonik';
  src: url('/fonts/aeonik-semibolditalic.woff2') format('woff2'),
       url('/fonts/aeonik-semibolditalic.woff') format('woff');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Aeonik';
  src: url('/fonts/aeonik-black.woff2') format('woff2'),
       url('/fonts/aeonik-black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aeonik';
  src: url('/fonts/aeonik-blackitalic.woff2') format('woff2'),
       url('/fonts/aeonik-blackitalic.woff') format('woff');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ─── LANDING PAGE ─── */
.landing {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  cursor: pointer;
  overflow: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.landing-bg {
  position: absolute;
  inset: 0;
  background-size: 100% 100%;
  opacity: 0;
  animation: bgCycle 30s ease-in-out infinite;
}

.landing-bg-1 {
  background-image: url('/landing-bg-1.png');
  animation-delay: 0s;
}

.landing-bg-2 {
  background-image: url('/landing-bg-2.png');
  animation-delay: -20s;
}

.landing-bg-3 {
  background-image: url('/landing-bg-3.png');
  animation-delay: -10s;
}

@keyframes bgCycle {
  0%, 100% { opacity: 0; }
  10%, 30% { opacity: 1; }
  40% { opacity: 0; }
}

.landing.exiting {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.landing-title {
  position: absolute;
  top: 40px;
  font-family: 'Aeonik', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  z-index: 2;
  opacity: 0;
  animation: landingFadeIn 1s ease 0.3s forwards;
}

.landing-field {
  width: 90vw;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: landingFadeIn 1.2s ease 0.1s forwards;
}

.field-svg {
  width: 100%;
  height: auto;
  user-select: none;
}

.landing-hint {
  position: absolute;
  bottom: 36px;
  font-family: 'Aeonik', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  z-index: 2;
  opacity: 0;
  animation: landingFadeIn 1s ease 1.2s forwards;
}

@keyframes landingFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) and (orientation: portrait) {
  .landing-field {
    width: 85vw;
    max-width: none;
  }

  .field-svg {
    transform: rotate(90deg);
  }
}

.app-shell {
  transition: opacity 0.4s ease;
}
.app-shell.hidden {
  display: none !important;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-hover: #1a1a1a;
  --border: #222;
  --border-light: #2a2a2a;
  --text: #e8e8e8;
  --text-secondary: #777;
  --text-dim: #555;
  --accent: #e8e8e8;
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 200ms ease;
  --font: 'Aeonik', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

html { font-size: 15px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── TYPOGRAPHY ─── */
h1 { font-size: 1.1rem; font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.01em; }
h3 { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }

/* ─── HEADER ─── */
#app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

/* ─── BUTTONS ─── */
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.icon-btn:hover { color: var(--text); background: var(--surface-hover); }

.text-btn {
  padding: 7px 14px;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 450;
  cursor: pointer;
  border-radius: 6px;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}
.text-btn:hover { background: var(--surface-hover); border-color: #333; }
.text-btn.secondary { color: var(--text-secondary); border-color: transparent; }
.text-btn.secondary:hover { color: var(--text); }

/* ─── VIEWS ─── */
.view { display: none; padding: 32px 24px 80px; }
.view.active { display: block; }

/* ─── PROJECT GRID ─── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
  aspect-ratio: 4 / 3;
}
.project-card:hover { border-color: #333; transform: translateY(-2px); }

.project-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}

.project-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.project-card-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
}

.project-card-count {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  font-variant-numeric: tabular-nums;
}

/* ─── EMPTY STATE ─── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 120px 24px;
  color: var(--text-dim);
}

/* ─── PROJECT BRIEF ─── */
.project-brief {
  max-width: 1800px;
  margin: 0 auto 24px;
  position: relative;
}

.brief-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.brief-textarea {
  width: 100%;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 56px;
  max-height: 200px;
  outline: none;
  transition: border-color var(--transition);
}
.brief-textarea::placeholder { color: var(--text-dim); }
.brief-textarea:focus { border-color: #333; }

.brief-status {
  position: absolute;
  bottom: -18px;
  right: 4px;
  font-size: 0.7rem;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 300ms ease;
}
.brief-status.visible { opacity: 1; }

/* ─── BOARD TOOLBAR ─── */
.board-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 0 20px;
  max-width: 1800px;
  margin: 0 auto;
}

.image-count {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  flex: 1;
}

/* ─── URL INPUT ─── */
.url-input-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.url-input {
  width: 280px;
  padding: 7px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.8rem;
  outline: none;
  transition: border-color var(--transition);
}
.url-input::placeholder { color: var(--text-dim); }
.url-input:focus { border-color: #444; }

/* ─── BOARD MASONRY GRID ─── */
.board-grid {
  columns: 4;
  column-gap: 12px;
  max-width: 1800px;
  margin: 0 auto;
}

.board-item {
  break-inside: avoid;
  margin-bottom: 12px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
}

.board-item img {
  width: 100%;
  display: block;
  transition: transform 400ms ease;
}

.board-item:hover img {
  transform: scale(1.02);
}

.board-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 10px;
}

.board-item:hover .board-item-overlay {
  background: rgba(0,0,0,0.25);
}

.board-item-actions {
  opacity: 0;
  transition: opacity var(--transition);
  margin-left: auto;
  display: flex;
  gap: 4px;
}

.board-item:hover .board-item-actions {
  opacity: 1;
}

.delete-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: rgba(0,0,0,0.6);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}
.delete-btn:hover { background: rgba(200,50,50,0.8); color: #fff; }

.copy-url-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: rgba(0,0,0,0.6);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}
.copy-url-btn:hover { background: rgba(255,255,255,0.2); color: #fff; }
.copy-url-btn.copied { background: rgba(255,255,255,0.25); color: #fff; }

/* ─── IMAGE SELECTION ─── */
.select-toggle {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(6px);
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  transition: opacity var(--transition), border-color var(--transition), background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.board-item:hover .select-toggle { opacity: 1; }
.board-item.selected .select-toggle { opacity: 1; }

.board-item.selected .select-toggle {
  background: #fff;
  border-color: #fff;
}

.board-item.selected .select-toggle svg { display: block; }
.select-toggle svg { display: none; }

.board-item.selected {
  box-shadow: 0 0 0 2px #fff;
}

.board-item.selected img {
  filter: brightness(1.03);
}

.selection-indicator {
  font-size: 0.7rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.text-btn.small {
  padding: 4px 10px;
  font-size: 0.7rem;
}

/* ─── COLOR STORY WIDGET ─── */
.color-story {
  max-width: 1800px;
  margin: 0 auto 20px;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 20px;
}

.color-story-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.color-story-header h3 { white-space: nowrap; }

.color-swatches {
  display: flex;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.swatch-color {
  width: 100%;
  height: 32px;
  border-radius: 4px;
  transition: transform var(--transition);
  cursor: pointer;
  position: relative;
}
.swatch-color:hover { transform: scale(1.06); }

.swatch-color.copied::after {
  content: 'Copied';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 500;
  color: #fff;
  background: rgba(0,0,0,0.4);
  border-radius: 4px;
  animation: fadeOut 800ms ease forwards;
}

@keyframes fadeOut {
  0%, 60% { opacity: 1; }
  100% { opacity: 0; }
}

.swatch-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.color-story-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.75rem;
  padding: 0;
}

.color-story-loading .spinner {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--border-light);
  border-top-color: var(--text-secondary);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

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

/* ─── DROP ZONE ─── */
.drop-zone { position: relative; }

.drop-zone.drag-over::before {
  content: '';
  position: fixed;
  inset: 56px 0 0;
  background: rgba(255,255,255,0.03);
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-lg);
  margin: 16px;
  z-index: 50;
  pointer-events: none;
}

.board-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px;
}

.drop-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--text-dim);
}
.drop-prompt p { font-size: 0.9rem; }

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 380px;
  max-width: 90vw;
}

.modal h2 { margin-bottom: 20px; }

.modal input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}
.modal input[type="text"]:focus { border-color: #444; }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: rgba(255,255,255,0.6);
}
.lightbox-close:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* ─── PROJECT NAV TABS ─── */
.project-nav {
  max-width: 1800px;
  margin: 0 auto 28px;
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.project-nav-tab {
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 450;
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
}
.project-nav-tab:hover { color: var(--text-secondary); }
.project-nav-tab.active { color: var(--text); }
.project-nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--text);
}

.tab-content.hidden { display: none; }

/* ─── PROPOSAL COMPOSER ─── */
.composer-header {
  max-width: 900px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.composer-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.composer-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.composer-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.proposal-save-status {
  font-size: 0.7rem;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 300ms ease;
}
.proposal-save-status.visible { opacity: 1; }

.composer-settings {
  max-width: 900px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.composer-field-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.composer-input {
  flex: 1;
  max-width: 260px;
  padding: 7px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.8rem;
  outline: none;
  transition: border-color var(--transition);
}
.composer-input::placeholder { color: var(--text-dim); }
.composer-input:focus { border-color: #444; }

/* ─── Section Cards ─── */
.sections-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.section-card:hover { border-color: #333; }
.section-card.dragging { opacity: 0.5; }

.section-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: grab;
  user-select: none;
}
.section-card-header:active { cursor: grabbing; }

.section-drag-handle {
  color: var(--text-dim);
  flex-shrink: 0;
  display: flex;
}

.section-type-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--bg);
  padding: 2px 7px;
  border-radius: 3px;
  flex-shrink: 0;
}

.section-summary {
  flex: 1;
  font-size: 0.8rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.section-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.section-visibility-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.section-visibility-btn:hover { color: var(--text); background: var(--bg); }
.section-visibility-btn.hidden-section { color: var(--text-dim); opacity: 0.5; }

.section-expand-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.section-expand-btn:hover { color: var(--text); background: var(--bg); }

.section-delete-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.section-delete-btn:hover { color: #e55; background: var(--bg); }

.section-card-body {
  display: none;
  padding: 0 14px 14px;
}
.section-card.expanded .section-card-body { display: block; }

.section-field {
  margin-bottom: 12px;
}

.section-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-field input,
.section-field textarea,
.section-field select {
  width: 100%;
  padding: 8px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition);
}
.section-field input:focus,
.section-field textarea:focus,
.section-field select:focus { border-color: #444; }

.section-field textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.6;
}

.section-field select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23777' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.section-field-row {
  display: flex;
  gap: 10px;
}
.section-field-row .section-field { flex: 1; }

.section-field-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

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

.section-field-check label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: 0;
  text-transform: none;
  letter-spacing: 0;
}

/* Deliverables list editor */
.deliverables-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.deliverable-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.deliverable-row input {
  flex: 1;
}

.deliverable-remove {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.deliverable-remove:hover { color: #e55; }

.deliverable-add {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: none;
  border: 1px dashed var(--border);
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  transition: all var(--transition);
}
.deliverable-add:hover { border-color: #444; color: var(--text); }

/* Add Section Bar */
.add-section-bar {
  max-width: 900px;
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
}

.add-section-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-right: 4px;
}

/* Note section highlight */
.section-card[data-type="noteSection"] {
  border-left: 3px solid var(--text-dim);
}
.section-card[data-type="dividerSection"] .section-card-header {
  padding: 8px 14px;
}

/* ─── UTILITIES ─── */
.hidden { display: none !important; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1200px) {
  .board-grid { columns: 3; }
}

@media (max-width: 800px) {
  .board-grid { columns: 2; }
  .projects-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 500px) {
  .board-grid { columns: 1; column-gap: 8px; }
  .board-item { margin-bottom: 8px; }
  .view { padding: 20px 16px 80px; }
  #app-header { padding: 0 16px; }
  .color-story { padding: 12px 16px; margin-bottom: 16px; flex-wrap: wrap; }
}
