/* ════════════════════════════════════════════════════════
   PERGOLA LUX — Social Calendar CSS
   Responsive / Mobile-First
   ════════════════════════════════════════════════════════ */

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

:root {
  --gold:       #C9A84C;
  --gold-light: #F0DFA0;
  --gold-pale:  #FBF6E8;
  --gold-dark:  #A8863A;
  --dark:       #1A1A1A;
  --dark-2:     #2C2C2C;
  --mid:        #6B6B6B;
  --muted:      #9A9A9A;
  --light:      #F4F2EC;
  --white:      #FFFFFF;
  --border:     rgba(0,0,0,0.08);
  --border-md:  rgba(0,0,0,0.13);
  --shadow-sm:  0 1px 8px rgba(0,0,0,0.05);
  --shadow:     0 2px 16px rgba(0,0,0,0.07);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.13);
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  14px;
  --radius-xl:  20px;

  /* Platform colors */
  --fb:        #1877F2;
  --fb-bg:     #E8F0FE;
  --fb-dark:   #0B5ED7;
  --tt:        #FF0050;
  --tt-bg:     #FFF0F4;
  --tt-dark:   #CC0040;
  --tt2:       #00F2EA;

  /* Status colors */
  --draft:     #9CA3AF;
  --approved:  #10B981;
  --published: #3B82F6;
  --scheduled: #F59E0B;

  /* Tag palette */
  --tag1-bg: #EBF5F0; --tag1-cl: #2D6A4F;
  --tag2-bg: #EEF2FB; --tag2-cl: #2D4A9A;
  --tag3-bg: #FBF0EB; --tag3-cl: #8C3A1A;
  --tag4-bg: #F5EBF8; --tag4-cl: #6A2D80;
  --tag5-bg: #FBF6EB; --tag5-cl: #7A5A1A;
  --tag6-bg: #EBF5F5; --tag6-cl: #1A6A6A;
  --tag7-bg: #F8EBEE; --tag7-cl: #802D3A;
  --tag8-bg: #EFEFEF; --tag8-cl: #444444;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'DM Sans', system-ui, sans-serif; background: var(--light); color: var(--dark); min-height: 100vh; font-size: 15px; line-height: 1.6; }

/* ── TYPOGRAPHY ───────────────────────────────────────── */
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; line-height: 1.2; }
p { color: var(--mid); }

/* ── BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 16px; border-radius: var(--radius-sm); font-size: 13px;
  font-family: 'DM Sans', sans-serif; font-weight: 500;
  cursor: pointer; border: none; transition: all 0.18s; white-space: nowrap;
  text-decoration: none; line-height: 1;
}
.btn-gold     { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-ghost    { background: transparent; color: rgba(255,255,255,0.65); border: 1px solid rgba(255,255,255,0.15); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--mid); border: 1px solid var(--border-md); }
.btn-ghost-dark:hover { background: var(--light); color: var(--dark); }
.btn-primary  { background: var(--dark); color: var(--white); }
.btn-primary:hover { background: var(--dark-2); }
.btn-danger   { background: transparent; color: #DC2626; border: 1px solid rgba(220,38,38,0.25); }
.btn-danger:hover { background: rgba(220,38,38,0.06); }
.btn-sm       { padding: 5px 12px; font-size: 12px; }
.btn-icon     { padding: 6px; border-radius: var(--radius-sm); background: transparent; border: 1px solid var(--border); cursor: pointer; color: var(--mid); transition: all 0.15s; display: inline-flex; }
.btn-icon:hover { background: var(--light); color: var(--dark); }

/* ── HEADER ───────────────────────────────────────────── */
.site-header {
  background: var(--dark); position: sticky; top: 0; z-index: 200;
  border-bottom: 1px solid rgba(201,168,76,0.25);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 1rem;
  padding: 0 1.5rem; height: 60px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--gold); color: var(--dark);
  font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.logo-name { font-family: 'Playfair Display', serif; font-size: 15px; color: var(--gold); letter-spacing: 0.04em; line-height: 1; }
.logo-sub  { font-size: 10px; color: rgba(201,168,76,0.5); letter-spacing: 0.06em; margin-top: 2px; }

.header-center { flex: 1; display: flex; justify-content: center; }
.platform-tabs { display: flex; gap: 4px; background: rgba(255,255,255,0.06); border-radius: var(--radius-sm); padding: 3px; }
.ptab {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 5px; cursor: pointer;
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.5);
  border: none; background: transparent; font-family: 'DM Sans', sans-serif;
  transition: all 0.18s;
}
.ptab:hover { color: rgba(255,255,255,0.85); }
.ptab.active { background: var(--white); color: var(--dark); }
.ptab.active[data-plat="facebook"] { color: var(--fb); }
.ptab.active[data-plat="tiktok"]   { color: var(--tt); }
.ptab-icon { width: 15px; height: 15px; }
.ptab-count {
  font-size: 10px; padding: 1px 6px; border-radius: 20px;
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.6);
  font-weight: 500;
}
.ptab.active .ptab-count { background: var(--gold-pale); color: var(--gold-dark); }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.save-badge { display: flex; align-items: center; gap: 5px; font-size: 11px; color: rgba(255,255,255,0.4); white-space: nowrap; }
.save-dot { width: 7px; height: 7px; border-radius: 50%; background: #34D399; flex-shrink: 0; }
.save-dot.unsaved { background: var(--gold); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.btn-label { display: inline; }

/* ── MAIN CONTENT ─────────────────────────────────────── */
.main-content { max-width: 1280px; margin: 0 auto; padding: 1.5rem 1.5rem 5rem; }

/* ── MONTH NAV ────────────────────────────────────────── */
.month-nav { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.month-title { font-size: 22px; color: var(--dark); }
.month-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-md);
  background: var(--white); color: var(--mid); cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center; transition: all 0.15s;
  flex-shrink: 0; box-shadow: var(--shadow-sm);
}
.month-btn:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }

/* ── VIEW BAR ─────────────────────────────────────────── */
.view-bar {
  display: flex; align-items: center; gap: 10px; margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.view-tabs { display: flex; gap: 4px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; }
.vtab {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 4px; cursor: pointer;
  font-size: 12.5px; font-weight: 500; color: var(--muted);
  border: none; background: transparent; font-family: 'DM Sans', sans-serif; transition: all 0.15s;
}
.vtab.active { background: var(--dark); color: var(--white); }
.vtab:not(.active):hover { color: var(--dark); }
.view-legend { display: flex; gap: 10px; flex-wrap: wrap; margin-left: 4px; }
.legend-item {
  font-size: 11px; padding: 3px 9px; border-radius: 20px; font-weight: 500;
}
.legend-draft     { background: rgba(156,163,175,0.15); color: var(--draft); }
.legend-approved  { background: rgba(16,185,129,0.12);  color: var(--approved); }
.legend-published { background: rgba(59,130,246,0.12);  color: var(--published); }
.legend-scheduled { background: rgba(245,158,11,0.12);  color: var(--scheduled); }

/* ── VIEW PANEL ───────────────────────────────────────── */
.view-panel { }
.hidden { display: none !important; }

/* ══════════════════════════════════════════════════════
   CALENDAR
   ══════════════════════════════════════════════════════ */
.calendar-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow);
}
.cal-dow {
  background: var(--dark); color: rgba(255,255,255,0.65);
  font-size: 11px; font-weight: 500; text-align: center;
  padding: 10px 4px; letter-spacing: 0.06em; text-transform: uppercase;
}
.cal-cell {
  border-right: 1px solid var(--border); border-top: 1px solid var(--border);
  padding: 8px 6px; min-height: 120px; cursor: default;
  transition: background 0.12s; position: relative;
  vertical-align: top;
}
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell.empty { background: rgba(0,0,0,0.015); }
.cal-cell.today { background: var(--gold-pale); }
.cal-cell.today .cal-day-num { color: var(--gold-dark); font-weight: 700; }
.cal-cell.weekend { background: rgba(0,0,0,0.012); }
.cal-day-num { font-size: 12px; font-weight: 500; color: var(--mid); margin-bottom: 5px; }
.cal-day-label { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.cal-chips { display: flex; flex-direction: column; gap: 3px; }
.cal-chip {
  font-size: 10px; font-weight: 500; padding: 2px 5px; border-radius: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer; transition: opacity 0.12s; line-height: 1.4;
  border-left: 2px solid transparent;
}
.cal-chip:hover { opacity: 0.78; }
.cal-chip.fb { background: var(--fb-bg); color: var(--fb-dark); border-left-color: var(--fb); }
.cal-chip.tt { background: var(--tt-bg); color: var(--tt-dark); border-left-color: var(--tt); }
.cal-chip.status-draft     { opacity: 0.7; }
.cal-chip.status-approved  { }
.cal-chip.status-published { }
.cal-chip.status-scheduled { }
.cal-add-btn {
  position: absolute; bottom: 4px; right: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--border); color: var(--mid);
  font-size: 12px; display: none; align-items: center; justify-content: center;
  cursor: pointer; border: none; transition: all 0.15s; line-height: 1;
}
.cal-cell:hover .cal-add-btn { display: flex; }
.cal-add-btn:hover { background: var(--gold); color: var(--dark); }

/* ══════════════════════════════════════════════════════
   LIST VIEW
   ══════════════════════════════════════════════════════ */
.day-section { margin-bottom: 1.5rem; }
.day-header { display: flex; align-items: center; gap: 10px; margin-bottom: 0.8rem; }
.day-pill {
  background: var(--dark); color: var(--gold);
  font-size: 10px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 11px; border-radius: 20px; white-space: nowrap;
}
.day-weekday { font-size: 12px; color: var(--muted); }
.day-line { flex: 1; height: 1px; background: var(--border); }

/* ── POST CARD ────────────────────────────────────────── */
.post-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  margin-bottom: 10px; overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
  border-left: 4px solid var(--border-md);
}
.post-card:hover { box-shadow: var(--shadow-lg); }
.post-card.plat-facebook { border-left-color: var(--fb); }
.post-card.plat-tiktok   { border-left-color: var(--tt); }
.post-card.status-draft     { }
.post-card.status-approved  { border-left-color: var(--approved); }
.post-card.status-published { }
.post-card.status-scheduled { border-left-color: var(--scheduled); }

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 8px; border-bottom: 1px solid var(--border); gap: 8px; flex-wrap: wrap;
}
.card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card-order { font-size: 10px; font-weight: 500; background: var(--light); color: var(--muted); padding: 2px 7px; border-radius: 20px; }
.plat-badge { font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 20px; }
.plat-badge.fb { background: var(--fb-bg); color: var(--fb-dark); }
.plat-badge.tt { background: var(--tt-bg); color: var(--tt-dark); }
.tag-badge    { font-size: 10.5px; font-weight: 500; padding: 2px 8px; border-radius: 20px; }
.status-badge { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 20px; letter-spacing: 0.03em; }
.status-badge.draft     { background: rgba(156,163,175,0.15); color: var(--draft); }
.status-badge.approved  { background: rgba(16,185,129,0.12);  color: var(--approved); }
.status-badge.published { background: rgba(59,130,246,0.12);  color: var(--published); }
.status-badge.scheduled { background: rgba(245,158,11,0.12);  color: var(--scheduled); }

.card-actions { display: flex; gap: 5px; }
.card-btn {
  font-size: 11.5px; font-family: 'DM Sans', sans-serif;
  padding: 4px 10px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid var(--border); background: transparent;
  color: var(--mid); font-weight: 500; transition: all 0.14s; white-space: nowrap;
}
.card-btn:hover { background: var(--light); color: var(--dark); }
.card-btn.copied { color: #059669; border-color: #34D399; background: rgba(16,185,129,0.06); }

.card-body { padding: 12px 14px; }

/* TikTok extra info */
.tt-meta-row { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.tt-meta-pill { font-size: 10.5px; font-weight: 500; padding: 2px 8px; border-radius: 4px; background: var(--tt-bg); color: var(--tt-dark); }
.hook-label { font-size: 10.5px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.hook-text { font-size: 13.5px; font-weight: 500; font-style: italic; color: var(--dark); border-left: 2px solid var(--tt); padding-left: 10px; margin-bottom: 10px; line-height: 1.5; }

.post-text-preview {
  font-size: 13px; line-height: 1.7; color: var(--dark);
  white-space: pre-line; max-height: 100px; overflow: hidden;
  position: relative;
}
.post-text-preview::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 30px; background: linear-gradient(transparent, white);
  pointer-events: none;
}
.post-text-preview.expanded { max-height: none; }
.post-text-preview.expanded::after { display: none; }
.expand-btn { font-size: 11.5px; color: var(--gold-dark); cursor: pointer; margin-top: 4px; display: inline-block; background: none; border: none; font-family: 'DM Sans', sans-serif; padding: 0; }

.hashtags-row { margin-top: 8px; }
.hashtags-label { font-size: 10px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 3px; }
.hashtags-text { font-size: 12px; color: #3B82F6; line-height: 1.6; }

/* ── MEDIA SECTION ────────────────────────────────────── */
.media-section { border-top: 1px solid var(--border); padding: 10px 14px; }
.media-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.media-title { font-size: 11px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
.media-thumb {
  aspect-ratio: 1; border-radius: var(--radius-sm);
  border: 1px solid var(--border); overflow: hidden;
  position: relative; background: var(--light); cursor: pointer;
  group: true;
}
.media-thumb img, .media-thumb video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.media-thumb .media-del {
  position: absolute; top: 3px; right: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,0,0,0.6); color: white; border: none;
  font-size: 10px; cursor: pointer; display: none;
  align-items: center; justify-content: center; line-height: 1;
}
.media-thumb:hover .media-del { display: flex; }
.media-type-badge {
  position: absolute; bottom: 3px; left: 3px;
  background: rgba(0,0,0,0.55); color: white; font-size: 8px;
  padding: 1px 4px; border-radius: 3px; font-weight: 600;
}
.media-empty { font-size: 12px; color: var(--muted); font-style: italic; padding: 4px 0; }
.media-upload-btn { position: relative; overflow: hidden; cursor: pointer; }
.media-upload-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }

/* ══════════════════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 300;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 2vh 1rem; overflow-y: auto;
  opacity: 0; pointer-events: none; transition: opacity 0.22s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2); width: 100%;
  transform: translateY(20px); transition: transform 0.22s;
  max-height: 96vh; overflow-y: auto; display: flex; flex-direction: column;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-small { max-width: 480px; }
.modal-large { max-width: 720px; }
.modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 1.2rem 1.4rem 1rem; border-bottom: 1px solid var(--border); flex-shrink: 0; gap: 10px;
}
.modal-title { font-size: 18px; color: var(--dark); }
.modal-subtitle { font-size: 12px; color: var(--muted); margin-top: 2px; }
.modal-close { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--muted); padding: 2px; flex-shrink: 0; line-height: 1; }
.modal-close:hover { color: var(--dark); }
.modal-body { padding: 1.2rem 1.4rem; flex: 1; overflow-y: auto; }
.modal-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.4rem; border-top: 1px solid var(--border); flex-shrink: 0; gap: 10px; flex-wrap: wrap;
}
.footer-actions { display: flex; gap: 8px; }
.status-controls { display: flex; align-items: center; gap: 8px; }
.status-label { font-size: 12px; color: var(--mid); font-weight: 500; }
.status-select {
  font-size: 12.5px; padding: 5px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-md); background: var(--white); color: var(--dark);
  cursor: pointer; font-family: 'DM Sans', sans-serif;
}

/* ── FORM ELEMENTS ────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-label { font-size: 11.5px; font-weight: 500; color: var(--mid); text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 5px; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border-md);
  border-radius: var(--radius-sm); font-size: 13.5px; font-family: 'DM Sans', sans-serif;
  color: var(--dark); background: var(--white); outline: none;
  transition: border-color 0.15s;
}
.form-input:focus, .form-textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.1); }
.form-textarea { resize: vertical; min-height: 100px; line-height: 1.7; }
.form-textarea.tall { min-height: 160px; }
.form-textarea.xl { min-height: 220px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { font-size: 11px; color: var(--muted); margin-top: 4px; }
.char-count { font-size: 11px; color: var(--muted); text-align: right; margin-top: 3px; }
.char-count.over { color: #DC2626; }
.section-divider { font-size: 12px; font-weight: 600; color: var(--gold-dark); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--gold-pale); padding-bottom: 6px; margin: 1rem 0 0.8rem; }

/* ── MEDIA UPLOAD IN MODAL ────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border-md); border-radius: var(--radius);
  padding: 1.5rem; text-align: center; cursor: pointer;
  transition: all 0.18s; background: var(--light);
  position: relative; overflow: hidden;
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--gold); background: var(--gold-pale); }
.upload-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.upload-icon { font-size: 28px; display: block; margin-bottom: 6px; }
.upload-text { font-size: 13px; color: var(--mid); }
.upload-sub  { font-size: 11px; color: var(--muted); margin-top: 3px; }

.modal-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-top: 10px; }
.modal-media-item {
  position: relative; border-radius: var(--radius-sm);
  border: 1px solid var(--border); overflow: hidden; aspect-ratio: 1;
  background: var(--light);
}
.modal-media-item img, .modal-media-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-media-del {
  position: absolute; top: 4px; right: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(220,38,38,0.85); color: white; border: none;
  font-size: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.15s;
}
.modal-media-item:hover .modal-media-del { opacity: 1; }
.modal-media-name { position: absolute; bottom: 0; left: 0; right: 0; font-size: 8px; background: rgba(0,0,0,0.5); color: white; padding: 2px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress-bar { height: 4px; background: var(--border); border-radius: 2px; margin-top: 8px; overflow: hidden; display: none; }
.progress-bar.visible { display: block; }
.progress-fill { height: 100%; background: var(--gold); border-radius: 2px; width: 0; transition: width 0.3s; }

/* ── EXPORT MODAL ─────────────────────────────────────── */
.export-desc { font-size: 13px; color: var(--mid); margin-bottom: 1rem; }
.export-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.export-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 1rem; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--white); cursor: pointer; transition: all 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.export-btn:hover { background: var(--light); border-color: var(--border-md); }
.export-icon { font-size: 24px; }
.export-label { font-size: 12.5px; font-weight: 500; color: var(--dark); }

/* ── TOAST ────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 20px; right: 20px; z-index: 999;
  background: var(--dark); color: var(--white);
  font-size: 13px; padding: 10px 18px; border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(8px);
  transition: all 0.22s; pointer-events: none; max-width: 320px;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════════════
   PRINT
   ══════════════════════════════════════════════════════ */
@media print {
  .site-header, .view-bar, .month-nav, .card-actions,
  .media-section, .modal-overlay, .toast { display: none !important; }
  .post-card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
  .post-text-preview { max-height: none; }
  .post-text-preview::after { display: none; }
  body { background: white; font-size: 12px; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .cal-cell { min-height: 90px; padding: 6px 4px; }
  .cal-chip { font-size: 9px; }
}

@media (max-width: 720px) {
  .header-inner { padding: 0 1rem; height: 54px; }
  .logo-sub, .save-badge { display: none; }
  .header-center { flex: unset; }
  .ptab { padding: 5px 10px; font-size: 12px; }
  .ptab-count { display: none; }
  .main-content { padding: 1rem 0.75rem 4rem; }
  .month-title { font-size: 18px; }
  .view-legend { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-box { border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 92vh; }
  .cal-cell { min-height: 70px; padding: 4px 3px; }
  .cal-chip { font-size: 8.5px; padding: 1px 3px; }
  .cal-day-num { font-size: 11px; }
  .export-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .btn-label { display: none; }
  .calendar-grid { grid-template-columns: repeat(7, 1fr); }
  .cal-chip { display: none; }
  .cal-cell { min-height: 50px; }
  .cal-cell.has-posts { background: var(--gold-pale); }
  .cal-dow { font-size: 9px; padding: 8px 2px; }
}
