/* Content planning */
.planning-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(233, 255, 77, .12), rgba(255, 255, 255, .025));
}

.planning-hero h2 { margin: 5px 0 7px; font-size: clamp(28px, 4vw, 45px); letter-spacing: -.06em; }
.planning-hero p { margin: 0; color: var(--muted); max-width: 560px; }
.planning-hero .primary-button { white-space: nowrap; }
.planning-hero-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }

.weekly-target {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(118deg, rgba(19, 49, 65, .96), rgba(10, 25, 34, .84));
}
.weekly-target__copy { max-width: 760px; }
.weekly-target h2 { margin: 4px 0 8px; font: 800 clamp(28px, 3.7vw, 43px)/1.03 Raleway, sans-serif; text-transform: uppercase; }
.weekly-target h2 span { color: var(--accent); }
.weekly-target p { margin: 0; color: #c0ced7; line-height: 1.55; }
.week-ahead-note { margin-top: 15px; padding: 10px 12px; border-left: 3px solid var(--accent); background: rgba(255, 74, 23, .1); color: #dae3e9; font-size: 12px; }
.week-ahead-note b { color: var(--accent); }

.planning-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0 14px;
}

.week-switcher { display: flex; align-items: center; gap: 10px; }
.week-switcher strong { min-width: 165px; text-align: center; }

.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}
.icon-button:hover { border-color: var(--accent); color: var(--accent); }

.post-strip {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 0 0 10px;
  scrollbar-width: thin;
}
.post-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  font-size: 12px;
}
.post-pill b { color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }

.weekly-offer { margin-bottom: 30px; }
.weekly-offer .section-head { margin: 28px 0 12px; }
.weekly-counts { display: flex; gap: 8px; color: var(--muted); font-size: 12px; }
.weekly-counts span { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.weekly-counts b { color: var(--text); }
.weekly-overview { display: grid; grid-template-columns: repeat(7, minmax(145px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.week-day-summary { min-height: 130px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(13, 27, 37, .72); }
.week-day-summary header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 11px; }
.week-day-summary header span { font-size: 12px; font-weight: 800; text-transform: uppercase; }
.week-day-summary header small, .week-day-summary > div > small { color: var(--muted); font-size: 10px; }
.week-day-summary p { margin: 0 0 7px; color: #c9d5dd; font-size: 11px; line-height: 1.3; }
.week-day-summary p.is-post { color: #8fc6ff; font-weight: 700; }
.week-day-empty { color: var(--muted) !important; }
.agenda-section .section-head { margin: 0 0 12px; }

.post-slots-section { margin: 24px 0 30px; }
.post-slots-section .section-head { margin: 0 0 12px; }
.post-slots { display: grid; grid-template-columns: repeat(5, minmax(185px, 1fr)); gap: 11px; overflow-x: auto; padding-bottom: 7px; }
.post-slot { min-height: 145px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.post-slot__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.post-slot__top span { font-size: 12px; font-weight: 800; text-transform: uppercase; }
.post-slot__top small { color: var(--muted); font-size: 10px; }
.post-slot__picker { display: grid; width: 100%; gap: 8px; padding: 11px; border: 1px dashed #385466; border-radius: 8px; background: rgba(4, 15, 22, .46); color: var(--text); text-align: left; }
.post-slot__picker:hover { border-color: var(--accent); background: rgba(255, 74, 23, .07); }
.post-slot__picker strong { font-size: 12px; line-height: 1.35; }
.post-slot__empty { color: #d9e4eb; font-size: 11px; font-weight: 700; }
.post-slot__meta { color: var(--muted); font-size: 10px; line-height: 1.35; }
.post-slot-modal { width: min(900px, 100%); }
.post-slot-choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 10px; max-height: 57vh; padding: 2px; overflow: auto; }
.post-choice-card { display: grid; min-height: 144px; align-content: start; gap: 8px; padding: 13px; border: 1px solid #294552; border-radius: 9px; background: linear-gradient(145deg, #102630, #0b1a23); color: var(--text); text-align: left; }
.post-choice-card:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-1px); }
.post-choice-card:disabled { cursor: not-allowed; opacity: .48; }
.post-choice-card h3 { margin: 0; font-size: 13px; line-height: 1.35; }
.post-choice-card p { margin: 0; color: var(--muted); font-size: 11px; }
.post-choice-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.post-choice-card__footer small { color: var(--muted); font-size: 9px; text-align: right; }

.agenda-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(210px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.agenda-day {
  min-height: 500px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}
.agenda-grid--compact .agenda-day { min-height: 340px; }
.agenda-day header {
  padding: 16px 15px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.018);
}
.agenda-day header > div { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; }
.agenda-day header span { display: block; font-size: 16px; font-weight: 800; }
.agenda-day header small { display: block; color: var(--muted); font-size: 11px; }
.agenda-day-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.day-select { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; cursor: pointer; }
.day-select input { accent-color: var(--accent); }
.day-add-task { padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--text); font-size: 10px; font-weight: 800; cursor: pointer; }
.day-add-task:hover { border-color: var(--accent); color: var(--accent); }

.agenda-hours {
  display: flex;
  justify-content: space-between;
  padding: 12px 15px 0;
  color: var(--muted);
  font-size: 11px;
}
.agenda-items { padding: 9px 11px 15px; }
.agenda-item {
  position: relative;
  margin: 0 0 9px;
  padding: 11px 10px 10px 13px;
  border: 1px solid rgba(255, 74, 23, .34);
  border-radius: 10px;
  background: rgba(255, 74, 23, .09);
}
.agenda-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 4px;
  background: var(--accent);
}
.agenda-item.post-item { border-color: rgba(116, 180, 255, .34); background: rgba(116, 180, 255, .09); }
.agenda-item.post-item::before { background: #74b4ff; }
.agenda-item--clickable { cursor: pointer; }
.agenda-item--clickable:hover { border-color: #74b4ff; background: rgba(116, 180, 255, .15); }
.agenda-item time { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.agenda-item strong { display: block; line-height: 1.3; font-size: 13px; }
.agenda-item em { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-style: normal; }
.agenda-item--compact { padding-right: 29px; }
.agenda-delete { position: absolute; top: 7px; right: 7px; width: 19px; height: 19px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 17px; line-height: 17px; cursor: pointer; }
.agenda-delete:hover { background: rgba(255, 104, 92, .18); color: #ffaaa0; }
.agenda-empty { margin: 32px 4px; color: var(--muted); font-size: 13px; text-align: center; }

.setup-notice { margin-top: 20px; padding: 14px 16px; border: 1px solid rgba(255, 190, 92, .42); border-radius: 12px; background: rgba(255, 190, 92, .07); color: #ffe0a7; font-size: 13px; }

.reference-link { display: block; overflow: hidden; padding: 10px 12px; border: 1px solid #294453; border-radius: 6px; background: #06131c; color: #8fc6ff; font-size: 11px; font-weight: 500; line-height: 1.4; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.reference-link:hover { border-color: #74b4ff; color: #c8e4ff; }
.reference-link--empty { color: var(--muted); pointer-events: none; }

@media (max-width: 700px) {
  .planning-hero { display: block; padding: 22px; }
  .weekly-target { display: block; padding: 22px; }
  .planning-hero-actions { justify-content: stretch; margin-top: 18px; }
  .planning-hero-actions button { flex: 1; }
  .planning-controls { align-items: flex-start; flex-direction: column; }
  .week-switcher strong { min-width: 150px; }
  .weekly-counts { display: none; }
}
