/* Change requests — the overlay.
   Deliberately not in the site's own voice: this is a tool sitting on top of
   the design, and it should never be mistaken for part of it. */

.ce-bar{position:fixed;left:16px;bottom:16px;z-index:9000;display:flex;align-items:center;
  gap:8px;font:500 12px/1 ui-sans-serif,system-ui,sans-serif}
.ce-bar button{all:unset;cursor:pointer;padding:10px 15px;border-radius:8px;
  background:#1b1d1f;color:#fff;font:inherit;
  box-shadow:0 2px 6px rgba(0,0,0,.18),0 10px 28px rgba(0,0,0,.16);
  transition:background .2s ease}
.ce-bar button:hover{background:#000}
.ce-bar button:focus-visible{outline:2px solid #6ea8fe;outline-offset:2px}
.ce-count{color:#1b1d1f;background:#fff;padding:9px 12px;border-radius:8px;
  box-shadow:0 2px 6px rgba(0,0,0,.14)}
.ce-count:empty{display:none}

body.ce-picking,body.ce-picking *{cursor:crosshair!important}
/* Motion and hover states get in the way of pointing at something. */
body.ce-picking *{animation-play-state:paused!important}

.ce-ring{position:fixed;z-index:8990;display:none;pointer-events:none;
  border:2px solid #2f6fed;border-radius:3px;
  box-shadow:0 0 0 9999px rgba(15,20,30,.28)}
.ce-label{position:fixed;z-index:8991;display:none;pointer-events:none;
  background:#2f6fed;color:#fff;padding:3px 7px;border-radius:4px;
  font:600 10px/1.4 ui-monospace,Menlo,monospace;letter-spacing:.02em}

.ce-panel{position:fixed;right:16px;bottom:16px;z-index:9001;width:min(370px,calc(100vw - 32px));
  max-height:min(76vh,640px);overflow-y:auto;background:#fff;border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,.12),0 24px 60px rgba(0,0,0,.22);
  padding:16px;font:400 13px/1.55 ui-sans-serif,system-ui,sans-serif;color:#1b1d1f;
  opacity:0;transform:translateY(10px) scale(.98);pointer-events:none;
  transition:opacity .22s ease,transform .22s cubic-bezier(.16,1,.3,1)}
.ce-panel.ce-open{opacity:1;transform:none;pointer-events:auto}

.ce-head{display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding-bottom:10px;border-bottom:1px solid rgba(27,29,31,.1);margin-bottom:12px}
.ce-head strong{font-size:13px;font-family:ui-monospace,Menlo,monospace}
.ce-close{all:unset;cursor:pointer;font-size:20px;line-height:1;opacity:.5;padding:0 4px}
.ce-close:hover{opacity:1}

.ce-quote{margin:0 0 12px;padding:9px 11px;background:#f4f5f7;border-radius:7px;
  font-size:12.5px;color:#43494c;max-height:88px;overflow:hidden}
.ce-meta{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;margin:0 0 14px}
.ce-meta div{display:flex;justify-content:space-between;gap:8px;
  border-bottom:1px solid rgba(27,29,31,.06);padding-bottom:4px}
.ce-meta dt{margin:0;font-size:11px;color:#6a7073}
.ce-meta dd{margin:0;font-size:11px;font-family:ui-monospace,Menlo,monospace}

.ce-l{display:block;font-weight:600;margin-bottom:6px;font-size:12px}
.ce-panel textarea{width:100%;box-sizing:border-box;padding:10px;border-radius:8px;
  border:1px solid rgba(27,29,31,.2);font:inherit;resize:vertical;background:#fff;color:inherit}
.ce-panel textarea:focus{outline:2px solid #2f6fed;outline-offset:-1px;border-color:transparent}

.ce-add,.ce-copy,.ce-clear{all:unset;cursor:pointer;display:inline-block;margin-top:10px;
  padding:9px 14px;border-radius:8px;background:#2f6fed;color:#fff;font:600 12px/1 inherit}
.ce-add:hover,.ce-copy:hover{background:#1f57c9}
.ce-clear{background:transparent;color:#9d4028;margin-left:8px}
.ce-clear:hover{background:rgba(157,64,40,.08)}
.ce-add:focus-visible,.ce-copy:focus-visible,.ce-clear:focus-visible{outline:2px solid #2f6fed;outline-offset:2px}

.ce-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.ce-list li{position:relative;padding:9px 30px 9px 11px;background:#f4f5f7;border-radius:7px}
.ce-where{display:block;font:600 10px/1.4 ui-monospace,Menlo,monospace;color:#6a7073;
  margin-bottom:3px}
.ce-what{display:block;font-size:12.5px}
.ce-del{all:unset;cursor:pointer;position:absolute;top:6px;right:8px;font-size:16px;
  line-height:1;opacity:.4;padding:2px 4px}
.ce-del:hover{opacity:1;color:#9d4028}
.ce-empty{margin:0;color:#6a7073}

@media (prefers-reduced-motion: reduce){.ce-panel{transition:none}}
.ce-acts{display:flex;align-items:center;gap:4px}
.ce-cls{font-weight:400;opacity:.55;margin-left:5px}
.ce-up{all:unset;cursor:pointer;font:600 10px/1 ui-sans-serif,system-ui,sans-serif;
  padding:5px 8px;border-radius:6px;background:#f0f1f3;color:#43494c}
.ce-up:hover{background:#e3e5e9}
.ce-up:focus-visible{outline:2px solid #2f6fed;outline-offset:2px}

/* ---- dropping a photograph ---------------------------------------------- */

/* Dimmed while a file is over the page, so the thing that will receive it is
   obvious against everything that will not. */
body.ce-dragging .ce-drop-on{outline:3px solid #2f6fed;outline-offset:3px;
  filter:brightness(1.06)}
body.ce-dragging::after{content:'';position:fixed;inset:0;z-index:2147483000;
  pointer-events:none;background:rgba(20,22,25,.28);
  backdrop-filter:saturate(.7)}
body.ce-dragging .ce-drop-on{position:relative;z-index:2147483001}

img.ce-uploading{opacity:.45;transition:opacity .25s ease}

.ce-toast{position:fixed;left:50%;bottom:76px;z-index:2147483004;
  transform:translate(-50%,14px);opacity:0;
  transition:opacity .3s ease,transform .3s cubic-bezier(.2,.7,.3,1);
  max-width:min(460px,calc(100vw - 32px));
  padding:11px 17px;border-radius:9px;
  background:#1b1d1f;color:#f4f2ee;
  font:500 13px/1.45 ui-sans-serif,system-ui,-apple-system,sans-serif;
  box-shadow:0 2px 6px rgba(0,0,0,.2),0 16px 40px rgba(0,0,0,.28)}
.ce-toast.ce-on{opacity:1;transform:translate(-50%,0)}
.ce-toast.ce-bad{background:#7d2f1c}

@media (prefers-reduced-motion:reduce){
  .ce-toast{transition:opacity .01s}
  img.ce-uploading{transition:none}
}

/* the choice between a hero encode and a normal one */
.ce-warn{margin:0 0 14px;padding:9px 12px;border-radius:7px;
  background:rgba(157,64,40,.1);color:#8d3a22;
  font:500 12.5px/1.5 ui-sans-serif,system-ui,-apple-system,sans-serif}
@media (prefers-color-scheme:dark){.ce-warn{background:rgba(214,110,76,.14);color:#e0a086}}

.ce-q{display:flex;flex-direction:column;gap:2px;margin:0 0 16px}
.ce-q label{display:flex;gap:10px;align-items:flex-start;cursor:pointer;
  padding:9px 11px;border-radius:8px;transition:background .15s ease}
.ce-q label:hover{background:rgba(127,127,127,.09)}
.ce-q input{margin:2px 0 0;flex:none;accent-color:#2f6fed}
.ce-q span{display:block}
.ce-q b{display:block;font-size:13px;font-weight:600}
.ce-q i{display:block;font-style:normal;font-size:11.5px;opacity:.66;margin-top:1px;line-height:1.45}
.ce-q input:focus-visible{outline:2px solid #2f6fed;outline-offset:2px}

/* ---- placing a picture inside its frame --------------------------------- */

img.ce-posing{cursor:grab;touch-action:none;user-select:none;
  outline:3px solid #2f6fed;outline-offset:2px;
  /* a moving target is impossible to drag against, so hold the ken burns
     still while it is being placed */
  animation-play-state:paused!important}
img.ce-posing:active{cursor:grabbing}

.ce-pos{position:fixed;left:0;top:0;z-index:2147483005;display:flex;align-items:center;gap:10px;
  padding:8px 9px 8px 14px;border-radius:90px;
  background:rgba(28,30,33,.94);color:#f2efea;backdrop-filter:blur(8px);
  font:500 12.5px/1 ui-sans-serif,system-ui,-apple-system,sans-serif;
  box-shadow:0 4px 10px rgba(0,0,0,.2),0 18px 44px rgba(0,0,0,.3);
  transition:transform .18s cubic-bezier(.2,.7,.3,1)}
.ce-pos-h{opacity:.72}
.ce-pos-v{font-variant-numeric:tabular-nums;font-weight:600;opacity:.95;min-width:74px}
.ce-pos button{all:unset;cursor:pointer;padding:7px 13px;border-radius:90px;
  font-size:12px;font-weight:600;transition:background .18s ease}
.ce-pos-c{background:rgba(255,255,255,.13)}
.ce-pos-c:hover{background:rgba(255,255,255,.22)}
.ce-pos-d{background:#f2efea;color:#1b1d1f}
.ce-pos-d:hover{background:#fff}
.ce-pos button:focus-visible{outline:2px solid #6ea0ff;outline-offset:2px}

.ce-move{margin-right:2px}

@media(max-width:560px){
  .ce-pos-h{display:none}
}

/* when the clipboard is denied, the text still has to be gettable */
.ce-out{width:100%;box-sizing:border-box;margin:0;padding:11px 12px;border-radius:8px;
  border:1px solid rgba(127,127,127,.3);background:rgba(127,127,127,.07);
  color:inherit;font:400 11.5px/1.55 ui-monospace,Menlo,monospace;resize:vertical}
.ce-out:focus-visible{outline:2px solid #2f6fed;outline-offset:1px}

/* asking twice, since a sandboxed frame cannot open a confirm dialog */
.ce-clear.ce-arm{background:rgba(157,64,40,.12);color:#8d3a22;font-weight:700}

/* structural actions in the panel header — reorder and delete */
.ce-mv{all:unset;cursor:pointer;font:600 11px/1 ui-sans-serif,system-ui,sans-serif;
  padding:5px 7px;border-radius:6px;background:#f0f1f3;color:#43494c}
.ce-mv:hover{background:#e3e5e9}
.ce-mv:focus-visible{outline:2px solid #2f6fed;outline-offset:2px}
.ce-rm{all:unset;cursor:pointer;font:600 10px/1 ui-sans-serif,system-ui,sans-serif;
  padding:5px 8px;border-radius:6px;background:transparent;color:#9d4028;
  border:1px solid rgba(157,64,40,.32)}
.ce-rm:hover{background:rgba(157,64,40,.08)}
.ce-rm.ce-rm-arm{background:#9d4028;color:#fff;border-color:#9d4028}
.ce-rm:focus-visible{outline:2px solid #9d4028;outline-offset:2px}

/* live text-size control */
.ce-size{display:flex;align-items:center;gap:8px;margin:2px 0 14px}
.ce-size .ce-l{margin:0}
.ce-sz{all:unset;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;
  min-width:30px;height:28px;border-radius:7px;background:#f0f1f3;color:#43494c;
  font:600 13px/1 ui-sans-serif,system-ui,sans-serif}
.ce-szd{font-size:11px}
.ce-szu{font-size:15px}
.ce-sz:hover{background:#e3e5e9}
.ce-sz:focus-visible{outline:2px solid #2f6fed;outline-offset:2px}
.ce-szv{min-width:78px;text-align:center;font:600 11px/1 ui-monospace,Menlo,monospace;color:#43494c}

/* live text-alignment control */
.ce-align{display:flex;align-items:center;gap:6px;margin:0 0 14px}
.ce-align .ce-l{margin:0;margin-right:2px}
.ce-al{all:unset;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;
  width:32px;height:28px;border-radius:7px;background:#f0f1f3;color:#5a6166}
.ce-al:hover{background:#e3e5e9}
.ce-al.on{background:#2f6fed;color:#fff}
.ce-al:focus-visible{outline:2px solid #2f6fed;outline-offset:2px}

/* the page list — every page, including the ones the nav does not link to */
.ce-pages{position:relative}
.ce-pagesbtn{all:unset;cursor:pointer;padding:10px 15px;border-radius:8px;
  background:#1b1d1f;color:#fff;font:500 12px/1 ui-sans-serif,system-ui,sans-serif;
  box-shadow:0 2px 6px rgba(0,0,0,.18),0 10px 28px rgba(0,0,0,.16)}
.ce-pagesbtn:hover{background:#000}
.ce-pagesbtn:focus-visible{outline:2px solid #6ea8fe;outline-offset:2px}
.ce-pagelist{position:absolute;left:0;bottom:calc(100% + 8px);min-width:220px;
  max-height:70vh;overflow-y:auto;padding:6px;border-radius:12px;background:#fff;
  box-shadow:0 4px 12px rgba(0,0,0,.14),0 24px 60px rgba(0,0,0,.24);
  opacity:0;transform:translateY(8px) scale(.97);pointer-events:none;
  transform-origin:bottom left;transition:opacity .2s ease,transform .2s cubic-bezier(.16,1,.3,1)}
.ce-pages.open .ce-pagelist{opacity:1;transform:none;pointer-events:auto}
.ce-pagelist a{display:block;padding:8px 11px;border-radius:7px;text-decoration:none;
  color:#1b1d1f;font:500 12.5px/1.3 ui-sans-serif,system-ui,sans-serif;white-space:nowrap}
.ce-pagelist a:hover{background:#f0f1f3}
.ce-pagelist a.on{background:#2f6fed;color:#fff}

/* Editor: which layout the requests are being recorded against. */
.ce-scope{font:600 9.5px/1 var(--label),monospace;letter-spacing:.12em;
  text-transform:uppercase;color:rgba(35,31,32,.45);padding:0 4px;white-space:nowrap}
.ce-scope.ce-mob{color:var(--ember)}

/* ---- the friendlier layer, brought over from the client tool ------------ */
.ce-head strong{font-family:ui-sans-serif,system-ui,sans-serif;font-size:14px}
/* the tag + first class, beside the plain name: what the selector is built from */
.ce-head strong .ce-cls{font:400 11px/1 ui-monospace,Menlo,monospace;opacity:.55;margin-left:7px}
.ce-pic{margin:0 0 12px;border-radius:7px;overflow:hidden;background:#f4f5f7;aspect-ratio:3/2}
.ce-pic img{width:100%;height:100%;object-fit:cover;display:block}
.ce-swap{margin:0 0 14px}
.ce-file{display:inline-block;cursor:pointer;margin:0 0 6px}
.ce-file input{position:absolute;width:1px;height:1px;opacity:0}
.ce-file span{display:inline-block;padding:9px 14px;border-radius:8px;background:#1b1d1f;color:#fff;font:600 12px/1 ui-sans-serif,system-ui,sans-serif}
.ce-file:hover span{background:#000}
.ce-file:focus-within span{outline:2px solid #2f6fed;outline-offset:2px}
.ce-hint{display:block;font-size:11.5px;color:#6a7073;line-height:1.45}
.ce-ask{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 14px;padding:10px 12px;
  border-radius:8px;background:#eef3ff;font-size:12.5px;color:#1b1d1f}
.ce-yes{all:unset;cursor:pointer;flex:none;padding:7px 11px;border-radius:7px;background:#2f6fed;color:#fff;font:600 11.5px/1 inherit}
.ce-yes:hover{background:#1f57c9}
.ce-opt{font-weight:400;color:#6a7073;margin-left:4px}
/* Copy requests: the last step, so it reads as the one to press */
.ce-copy{padding:10px 15px;background:#245c3a}
.ce-copy:hover{background:#1b4a2d}
.ce-undo{margin-left:6px}
.ce-where{font:600 11px/1.4 ui-sans-serif,system-ui,sans-serif}

/* ---- client round two ----------------------------------------------- */
.ce-bar .ce-help{background:#b33a1e}
.ce-bar .ce-help:hover{background:#8f2c15}
.ce-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:12px}
.ce-row .ce-clear,.ce-row .ce-copy,.ce-row .ce-add{margin:0}
.ce-list li{padding-right:11px}
.ce-where{color:#43494c}
.ce-pg,.ce-el{font-weight:700;color:#1b1d1f}
.ce-el{background:#eef3ff;padding:1px 5px;border-radius:4px}
/* the selector the dump will carry, under the plain line */
.ce-sel{display:block;margin-top:4px;font:400 10px/1.4 ui-monospace,Menlo,monospace;color:#6a7073;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ce-edit{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:5px;margin-top:7px;padding:5px 9px;border-radius:6px;
  background:#fff;border:1px solid rgba(27,29,31,.18);font:600 11px/1 ui-sans-serif,system-ui,sans-serif;color:#1b1d1f}
.ce-edit:hover{background:#eef3ff;border-color:#2f6fed}
.ce-ring-edit{display:block;border-color:#2f6fed;box-shadow:0 0 0 4px rgba(47,111,237,.25);pointer-events:none}
.ce-exit{margin-left:8px}

/* the tutorial */
.ce-tut-dim{position:fixed;inset:0;z-index:8980;pointer-events:none}
.ce-tut-spot{position:fixed;z-index:8985;border-radius:6px;pointer-events:none;
  box-shadow:0 0 0 9999px rgba(15,20,30,.62),0 0 0 3px #2f6fed;
  transition:top .5s cubic-bezier(.2,.7,.3,1),left .5s cubic-bezier(.2,.7,.3,1),width .5s ease,height .5s ease}
.ce-tut-cursor{position:fixed;left:0;top:0;z-index:9005;pointer-events:none;
  transition:transform .9s cubic-bezier(.2,.7,.3,1);filter:drop-shadow(0 2px 4px rgba(0,0,0,.4))}
.ce-tut-card{position:fixed;z-index:9006;width:min(360px,calc(100vw - 32px));background:#fff;border-radius:12px;padding:16px 18px;
  box-shadow:0 4px 12px rgba(0,0,0,.12),0 24px 60px rgba(0,0,0,.3);font:400 13.5px/1.55 ui-sans-serif,system-ui,sans-serif;color:#1b1d1f;
  transition:top .4s ease,left .4s ease}
.ce-tut-n{display:block;font:600 10px/1 ui-sans-serif,system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#6a7073;margin-bottom:8px}
.ce-tut-card strong{display:block;font-size:15px;margin-bottom:6px}
.ce-tut-card p{margin:0 0 6px}
.ce-tut-card .ce-row span{display:flex;gap:6px}
.ce-tut-exit,.ce-tut-back,.ce-tut-next{all:unset;cursor:pointer;padding:9px 13px;border-radius:8px;font:600 12px/1 ui-sans-serif,system-ui,sans-serif}
.ce-tut-exit{color:#9d4028}
.ce-tut-exit:hover{background:rgba(157,64,40,.08)}
.ce-tut-back{background:#f0f1f3;color:#43494c}
.ce-tut-next{background:#2f6fed;color:#fff}
.ce-tut-next:hover{background:#1f57c9}
@media (prefers-reduced-motion:reduce){.ce-tut-spot,.ce-tut-cursor,.ce-tut-card{transition:none}}

/* ---- tutorial: make Next the obvious thing to click ------------------- */
.ce-tut-next{position:relative;animation:ce-pulse 1.8s ease-in-out infinite}
@keyframes ce-pulse{
  0%,100%{box-shadow:0 0 0 0 rgba(47,111,237,.55);background:#2f6fed}
  50%{box-shadow:0 0 0 7px rgba(47,111,237,0);background:#1f57c9}
}
.ce-tut-watch{margin:0 0 4px;padding:7px 10px;border-radius:7px;background:#f4f5f7;
  font:500 11.5px/1.45 ui-sans-serif,system-ui,sans-serif;color:#6a7073}
/* the demonstration pointer is scenery, not a control */
.ce-tut-cursor{opacity:.75}
.ce-invite{animation:ce-pulse 1.6s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){
  .ce-tut-next,.ce-invite{animation:none}
  .ce-tut-next{box-shadow:0 0 0 4px rgba(47,111,237,.4)}
}

/* placement: the grid over a section, the moving element, the running tally */
body.ce-placing,body.ce-placing *{cursor:move!important}
body.ce-placing *{animation-play-state:paused!important}
.ce-grid{position:absolute;z-index:8980;display:none;pointer-events:none;
  background-image:linear-gradient(to right,rgba(47,111,237,.1) 1px,transparent 1px),linear-gradient(to bottom,rgba(47,111,237,.1) 1px,transparent 1px);
  background-size:5px 5px;outline:1px solid rgba(47,111,237,.5)}
.ce-grid i{position:absolute;top:0;bottom:0;background:rgba(47,111,237,.07);border-left:1px solid rgba(47,111,237,.35);border-right:1px solid rgba(47,111,237,.35)}
.ce-inkbox{position:fixed;z-index:8989;display:none;pointer-events:none;outline:1px dashed rgba(47,111,237,.9)}
.ce-guide.c{border-color:#15b08a}
.ce-layers{position:fixed;z-index:9002;display:none;align-items:center;gap:4px;padding:4px 6px;border-radius:8px;background:#1b1d1f;color:#fff;
  font:600 10px/1 ui-sans-serif,system-ui,sans-serif;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.ce-layers span{opacity:.6;padding:0 4px;letter-spacing:.04em;text-transform:uppercase;font-size:9px}
.ce-layers button{all:unset;cursor:pointer;padding:6px 9px;border-radius:5px;background:#2f6fed;color:#fff;font:inherit}
.ce-layers button:hover{background:#1f55c4}
.ce-moving{outline:2px solid #2f6fed!important;outline-offset:2px;z-index:8985}
.ce-badge{position:fixed;z-index:8991;display:none;pointer-events:none;background:#2f6fed;color:#fff;padding:3px 7px;border-radius:4px;
  font:600 10px/1.4 ui-monospace,Menlo,monospace;letter-spacing:.02em}
.ce-bar .ce-place{background:#2f6fed}
.ce-bar .ce-place:hover{background:#1f55c4}
.ce-guide{position:fixed;z-index:8992;display:none;pointer-events:none;border:0 dashed #e0407a}
.ce-guide.v{top:0;bottom:0;width:0;border-left-width:1px}
.ce-guide.h{left:0;right:0;height:0;border-top-width:1px}
