/* ═══════════════════════════════════════════
   CONTENT PILLARS v2
   ═══════════════════════════════════════════ */
.content-pillars-section { padding: 4px 0 0; }
.content-pillars-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.content-pillars-title { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-size: 19px; color: var(--ink); }
.content-pillars-subtitle { margin-top: 4px; color: var(--muted); font-size: 13px; max-width: 64ch; }
.content-pillars-header-actions { display: flex; align-items: center; gap: 8px; }

.cp-stage { display: none; animation: cpStageIn .22s ease both; }
.cp-stage.active { display: block; }
@keyframes cpStageIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

.cp-gate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 640px; }
.cp-gate-card { text-align:left; background: var(--surface); border: 1px solid var(--border2); border-radius: var(--r); padding: 24px 20px; cursor: pointer; transition: all .16s; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; font-family: inherit; }
.cp-gate-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--brand); opacity: 0; transition: opacity .16s; }
.cp-gate-card:hover { border-color: var(--brand-glow); box-shadow: var(--shadow); transform: translateY(-2px); }
.cp-gate-card:hover::before { opacity: 1; }
.cp-gate-icon { font-size: 26px; margin-bottom: 10px; display: block; }
.cp-gate-title { display:block; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 5px; letter-spacing: -.2px; }
.cp-gate-desc { display:block; font-size: 12px; color: var(--muted); line-height: 1.6; }
.cp-gate-cta { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 11px; font-weight: 600; color: var(--brand); font-family: 'DM Mono', monospace; letter-spacing: .02em; }

.cp-progress { display: flex; align-items: center; margin-bottom: 28px; max-width: 520px; }
.cp-prog-step { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; position: relative; }
.cp-prog-step:not(:last-child)::after { content: ''; position: absolute; top: 12px; left: 50%; right: -50%; height: 2px; background: var(--border2); z-index: 0; transition: background .3s; }
.cp-prog-step.done:not(:last-child)::after { background: var(--brand); }
.cp-prog-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border2); background: var(--surface); display: flex; align-items: center; justify-content: center; font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 700; color: var(--subtle); z-index: 1; transition: all .2s; }
.cp-prog-step.active .cp-prog-dot, .cp-prog-step.done .cp-prog-dot { border-color: var(--brand); background: var(--brand); color: #fff; }
.cp-prog-label { font-family: 'DM Mono', monospace; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; color: var(--subtle); white-space: nowrap; }
.cp-prog-step.active .cp-prog-label { color: var(--brand); }

.cp-journey-step { display: none; }
.cp-journey-step.active { display: block; animation: cpStageIn .22s ease both; }
.cp-lesson { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 24px 22px; box-shadow: var(--shadow-sm); max-width: 660px; margin-bottom: 14px; position: relative; overflow: hidden; }
.cp-lesson::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 4px; background: var(--brand); }
.cp-lesson-eyebrow { font-family: 'DM Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin-bottom: 8px; }
.cp-lesson-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 18px; color: var(--ink); margin-bottom: 10px; letter-spacing: -.25px; }
.cp-lesson-body { font-size: 13px; color: var(--muted); line-height: 1.75; margin-bottom: 12px; }
.cp-lesson-body strong { color: var(--ink); font-weight: 600; }
.cp-lesson-body:last-child { margin-bottom: 0; }
.cp-callout { margin-bottom:0; background:var(--brand-dim); border:1px solid var(--brand-glow); border-radius:var(--r2); padding:11px 13px; }

.cp-examples { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 12px 0; }
.cp-example-tile { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--r2); padding: 11px; }
.cp-example-tile-label { font-family: 'DM Mono', monospace; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin-bottom: 4px; }
.cp-example-tile-text { font-size: 11px; color: var(--muted); line-height: 1.55; }

.cp-trust-layers { display: flex; flex-direction: column; gap: 7px; margin: 12px 0; }
.cp-trust-layer { display: flex; align-items: flex-start; gap: 12px; padding: 11px 13px; border-radius: var(--r2); border: 1px solid var(--border); background: var(--surface2); }
.cp-trust-num { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 20px; color: var(--brand); flex-shrink: 0; line-height: 1; width: 26px; text-align: center; }
.cp-trust-title { font-weight: 600; font-size: 13px; color: var(--ink); margin-bottom: 2px; }
.cp-trust-desc { font-size: 12px; color: var(--muted); line-height: 1.55; }

.cp-tag-picker { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.cp-tag-pill { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border2); background: var(--surface); color: var(--muted); font-size: 12px; font-family: 'DM Mono', monospace; cursor: pointer; transition: all .12s; user-select: none; }
.cp-tag-pill:hover { border-color: var(--brand-glow); color: var(--brand); }
.cp-tag-pill.selected { background: var(--brand-dim); border-color: var(--brand-glow); color: var(--brand); font-weight: 600; }
.cp-journey-nav { display: flex; gap: 8px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.cp-back-btn { color: var(--subtle); font-size: 12px; font-family: 'DM Mono', monospace; cursor: pointer; background: none; border: none; padding: 6px 2px; }
.cp-back-btn:hover { color: var(--muted); }
.cp-prompt-label { font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; display: block; }
.cp-prompt-hint { font-size: 12px; color: var(--subtle); margin-top: 5px; line-height: 1.55; }

.cp-builder-layout { display: grid; grid-template-columns: 1fr 260px; gap: 16px; align-items: start; }
.cp-identity-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow-sm); margin-bottom: 12px; }
.cp-identity-label { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 3px; }
.cp-identity-sub { font-size: 12px; color: var(--muted); margin-bottom: 9px; line-height: 1.5; }
.cp-pillars-list { display: flex; flex-direction: column; gap: 10px; }
.cp-pillar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .14s; }
.cp-pillar-card:hover { box-shadow: var(--shadow); }
.cp-pillar-head { display: flex; align-items: stretch; border-bottom: 1px solid var(--border); }
.cp-pillar-tab { width: 5px; flex-shrink: 0; }
.cp-pillar-head-inner { flex: 1; padding: 12px 13px; display: flex; align-items: center; gap: 10px; min-width: 0; }
.cp-pillar-inputs { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.cp-pillar-name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 14px; color: var(--ink); border: none; background: transparent; outline: none; width: 100%; padding: 0; letter-spacing: -.2px; }
.cp-pillar-name::placeholder { color: var(--border2); }
.cp-pillar-promise { font-size: 12px; color: var(--muted); border: none; background: transparent; outline: none; width: 100%; padding: 0; font-family: 'Lato', sans-serif; }
.cp-pillar-promise::placeholder { color: var(--border2); }
.cp-pillar-head-right { display: flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 0 13px 0 0; }
.cp-layer-select, .cp-tone-select { font-size: 10px; font-family: 'DM Mono', monospace; color: var(--subtle); border: 1px solid var(--border); background: var(--surface2); border-radius: 5px; padding: 3px 7px; cursor: pointer; outline: none; -webkit-appearance: none; appearance: none; width:auto; }
.cp-layer-select:focus, .cp-tone-select:focus { border-color: var(--brand); }
.cp-usage-badge { font-family: 'DM Mono', monospace; font-size: 9px; text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: 3px; border: 1px solid var(--border); color: var(--subtle); background: var(--surface2); white-space: nowrap; }
.cp-usage-badge.used { background: var(--green-dim); border-color: rgba(15,166,114,.2); color: var(--green); }
.cp-seeds { display: flex; flex-direction: column; }
.cp-seed-row { display: flex; align-items: flex-start; gap: 7px; padding: 9px 12px 9px 9px; border-bottom: 1px solid var(--surface3); transition: background .1s; }
.cp-seed-row:hover { background: var(--surface2); }
.cp-seed-row:last-child { border-bottom: none; }
.cp-seed-idx { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--subtle); width: 16px; flex-shrink: 0; padding-top: 9px; text-align: center; }
.cp-seed-body { flex: 1; min-width: 0; }
.cp-seed-input { width: 100%; font-size: 13px; color: var(--text); border: none; background: transparent; outline: none; padding: 7px 0; font-family: 'Lato', sans-serif; line-height: 1.5; }
.cp-seed-input::placeholder { color: var(--border2); }
.cp-tone-select { padding: 2px 6px; margin-top: 3px; }
.cp-seed-actions { display: flex; align-items: flex-start; gap: 4px; padding-top: 5px; flex-shrink: 0; }
.cp-seed-btn { width: 26px; height: 26px; border-radius: 5px; border: 1px solid transparent; background: transparent; color: var(--subtle); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; transition: all .1s; flex-shrink: 0; }
.cp-seed-btn:hover { background: var(--surface3); color: var(--text); }
.cp-seed-btn.go { background: var(--brand); color: #fff; border-color: transparent; font-size: 10px; font-family: 'DM Mono', monospace; font-weight: 600; width: auto; padding: 0 8px; letter-spacing: .03em; }
.cp-seed-btn.go:hover { background: #2a2fff; }
.cp-seed-btn.del:hover { background: #fff5f5; color: #ba4a4a; border-color: #f2d4d4; }
.cp-pillar-footer { display: flex; align-items: center; justify-content: space-between; padding: 8px 13px; background: var(--surface2); border-top: 1px solid var(--border); gap: 8px; }
.cp-add-pillar { width: 100%; padding: 13px; border: 1.5px dashed var(--border2); border-radius: var(--r); background: transparent; color: var(--subtle); font-family: 'Lato', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .14s; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; }
.cp-add-pillar:hover { border-color: var(--brand-glow); color: var(--brand); background: var(--brand-dim); }
.cp-sidebar { display: flex; flex-direction: column; gap: 12px; }
.cp-sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow-sm); }
.cp-sidebar-title { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 11px; }
.cp-stat-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; gap: 8px; }
.cp-stat-label { font-size: 12px; color: var(--muted); }
.cp-stat-val { font-family: 'DM Mono', monospace; font-size: 13px; font-weight: 600; color: var(--ink); }
.cp-stat-val.brand { color: var(--brand); }
.cp-stat-val.green { color: var(--green); }
.cp-health-bar { height: 4px; border-radius: 2px; background: var(--border2); overflow: hidden; margin: 7px 0; }
.cp-health-fill { height: 100%; border-radius: 2px; background: var(--brand); transition: width .4s ease; }
.cp-health-fill.good { background: var(--green); }
.cp-health-fill.warn { background: var(--amber); }
.cp-health-msg { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--subtle); margin-top: 3px; }
.cp-tip { display: flex; align-items: flex-start; gap: 7px; padding: 7px; border-radius: var(--r2); background: var(--surface2); border: 1px solid var(--border); margin-bottom: 5px; }
.cp-tip:last-child { margin-bottom: 0; }
.cp-tip-icon { font-size: 13px; flex-shrink: 0; padding-top: 1px; }
.cp-tip-text { font-size: 11px; color: var(--muted); line-height: 1.55; }
.cp-tip-text strong { color: var(--ink); }
.cp-compact-card, .composer-pillar-mini { border: 1px solid var(--border); border-radius: var(--r2); padding: 10px; background: var(--surface2); margin-bottom: 6px; cursor: pointer; transition: border-color .12s, background .12s; }
.cp-compact-card:last-child, .composer-pillar-mini:last-child { margin-bottom: 0; }
.cp-compact-card:hover, .composer-pillar-mini:hover { border-color: var(--brand-glow); background: var(--brand-dim); }
.cp-compact-name { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.cp-compact-seed { font-size: 12px; color: var(--muted); line-height: 1.45; }
.cp-compact-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--border); padding-top: 7px; margin-top: 7px; }
@media (max-width: 900px) { .cp-builder-layout { grid-template-columns: 1fr; } .cp-sidebar { order: -1; } .cp-gate-grid { grid-template-columns: 1fr; } .cp-examples { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .cp-lesson { padding: 18px 16px; } .cp-gate-card { padding: 18px 16px; } .cp-progress { max-width:100%; } .cp-prog-label { font-size:8px; } .cp-pillar-head { flex-direction: column; } .cp-pillar-tab { width:100%; height:4px; } .cp-pillar-head-right { padding: 0 13px 12px; align-items:flex-start; } }


    /* ═══════════════════════════════════════════
   SNAPSHOT / SHARED VIEW v2
   ═══════════════════════════════════════════ */

#sharedView { min-height: 100vh; background: var(--bg); max-width: 980px; margin: 0 auto; padding: 0; }

.snap-hero { background: var(--text); color: #fff; padding: 28px 32px 24px; position: relative; overflow: hidden; }
.snap-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--brand), rgba(58,63,255,.1)); }
.snap-brand { display: flex; align-items: center; gap: 8px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 16px; color: #fff; letter-spacing: -.3px; margin-bottom: 20px; text-decoration: none; }
.snap-brand-badge { font-family: 'DM Mono', monospace; font-size: 9px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; background: var(--brand); color: #fff; padding: 2px 6px; border-radius: 3px; }
.snap-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(22px, 4vw, 32px); color: #fff; letter-spacing: -.4px; margin-bottom: 12px; line-height: 1.1; }
.snap-stats { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.snap-stat { display: flex; align-items: center; gap: 6px; font-family: 'DM Mono', monospace; font-size: 11px; color: rgba(255,255,255,.5); letter-spacing: .04em; }
.snap-stat strong { color: rgba(255,255,255,.9); font-weight: 600; font-size: 13px; }
.snap-stat-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.2); }

.snap-cal-wrap { padding: 24px 32px 40px; }
.snap-cal-label { font-family: 'DM Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--subtle); margin-bottom: 12px; }

#sharedGrid .cal-day { cursor: pointer; }
#sharedGrid .cal-day.has-content { border-color: var(--border2); }
#sharedGrid .cal-day.has-content:hover { border-color: var(--brand-glow); background: var(--brand-dim); }
#sharedGrid .cal-day.empty-day { opacity: 0.4; cursor: default; }
#sharedGrid .cal-day.empty-day:hover { border-color: var(--border); background: var(--surface); }

.snap-modal-post { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.snap-modal-post-hdr { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--surface2); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.snap-modal-post-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.snap-post-num { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); background: var(--brand-dim); border: 1px solid var(--brand-glow); padding: 2px 7px; border-radius: 3px; }
.snap-platform-badge { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--subtle); border: 1px solid var(--border2); padding: 2px 7px; border-radius: 3px; background: var(--surface); text-transform: uppercase; letter-spacing: .04em; }
.snap-scheduled-time { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--subtle); }
.snap-modal-post-body { padding: 14px; font-size: 14px; line-height: 1.75; color: var(--text); white-space: pre-wrap; word-break: break-word; background: var(--surface); }
.snap-modal-post-copy { display: flex; justify-content: flex-end; padding: 8px 14px; border-top: 1px solid var(--border); background: var(--surface2); }

.snap-modal-note { border: 1px solid rgba(245,158,11,.2); border-radius: var(--r2); padding: 12px 14px; background: rgba(245,158,11,.04); margin-bottom: 8px; }
.snap-modal-note-label { font-family: 'DM Mono', monospace; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; color: var(--amber); margin-bottom: 6px; }
.snap-modal-note-text { font-size: 13px; color: var(--text); line-height: 1.65; white-space: pre-wrap; }

.snap-footer { border-top: 1px solid var(--border); padding: 24px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--surface); }
.snap-footer-copy { font-size: 13px; color: var(--muted); line-height: 1.55; }
.snap-footer-copy strong { color: var(--ink); }

.share-modal-stat { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.share-modal-stat:last-child { border-bottom: none; }
.share-modal-stat-label { color: var(--muted); }
.share-modal-stat-val { font-weight: 600; color: var(--ink); font-family: 'DM Mono', monospace; font-size: 13px; }

@media (max-width: 768px) {
  .snap-hero { padding: 20px 16px 18px; }
  .snap-cal-wrap { padding: 16px 12px 40px; }
  .snap-footer { padding: 18px 16px; flex-direction: column; align-items: flex-start; }
  .snap-title { font-size: 22px; }
}
