/* Inline page editor — only ever visible at /<page>/edit */
#cs-editbar{position:fixed;left:0;right:0;bottom:0;z-index:120;background:var(--navy,#131f33);color:#fff;
  padding:10px 14px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -10px 30px -18px rgba(0,0,0,.8)}
.cs-eb-in{display:flex;align-items:center;gap:9px;flex-wrap:wrap;max-width:1120px;margin:0 auto}
.cs-eb-tag{font-family:var(--mono);font-size:9.5px;letter-spacing:.11em;text-transform:uppercase;
  background:var(--teal,#2f9fb0);padding:4px 8px;border-radius:999px;font-weight:700}
.cs-eb-page{font-family:var(--mono);font-size:12px;opacity:.72}
.cs-eb-msg{font-size:12.5px;font-weight:600;color:var(--teal-soft,#8fd3de);margin-left:auto}
.cs-eb-b{min-height:40px;padding:0 14px;border-radius:9px;border:1px solid rgba(255,255,255,.28);
  background:transparent;color:#fff;font:inherit;font-size:13.5px;font-weight:700;cursor:pointer;
  display:inline-flex;align-items:center;transition:background .15s,border-color .15s}
.cs-eb-b:hover{background:rgba(255,255,255,.12)}
.cs-eb-p{background:var(--teal,#2f9fb0);border-color:var(--teal,#2f9fb0)}
.cs-eb-p:hover{background:var(--teal-d,#26808e)}
.cs-eb-hot{animation:cs-pulse 1.6s ease-in-out infinite}
@keyframes cs-pulse{0%,100%{box-shadow:0 0 0 0 rgba(47,159,176,.55)}50%{box-shadow:0 0 0 7px rgba(47,159,176,0)}}
@media(max-width:520px){.cs-eb-page{display:none}.cs-eb-msg{width:100%;margin:0;order:9}}

/* leave room so the bar never covers the last section */
body:has(#cs-editbar){padding-bottom:78px}

.cs-editable{outline:2px dashed rgba(47,159,176,.55);outline-offset:4px;border-radius:5px;
  transition:outline-color .16s,background .16s;cursor:text}
.cs-editable:hover{outline-color:var(--teal,#2f9fb0);background:rgba(47,159,176,.07)}
.cs-editable:focus{outline:2px solid var(--teal,#2f9fb0);background:rgba(47,159,176,.1)}
.cs-changed{outline-color:#e0a63a!important}
@media(prefers-reduced-motion:reduce){.cs-eb-hot{animation:none}.cs-editable{transition:none}}
