/* Mowbray quick chat (mowbray-talk.php). Paper, ink and red pencil, matching the October 2026 redesign. */
.mwt{--k:#17191B;--p:#F6F6F3;--w:#FFFFFF;--r:#C4321A;--ri:#A3260F;--g:#5E6064;--ln:rgba(23,25,27,.15);--ln2:rgba(23,25,27,.08);
  --se:'Source Serif 4',Georgia,serif;--sa:'Hanken Grotesk',system-ui,sans-serif;--ha:'Caveat','Segoe Print','Bradley Hand',cursive;
  font-family:var(--sa);color:var(--k);-webkit-font-smoothing:antialiased}
.mwt *,.mwt *::before,.mwt *::after{box-sizing:border-box}
.mwt button{font:inherit;color:inherit;cursor:pointer}
.mwt svg{display:block}

/* ---------- launcher ---------- */
.mwt-launch{position:fixed;right:22px;bottom:22px;z-index:190;display:flex;align-items:center;gap:10px;
  padding:10px 20px 10px 12px;background:var(--w);border:1.5px solid var(--k);border-radius:999px;
  box-shadow:0 1px 0 var(--k),0 14px 34px rgba(23,25,27,.16);
  opacity:0;transform:translateY(18px);transition:opacity .45s ease,transform .45s cubic-bezier(.2,.8,.2,1),box-shadow .2s ease}
.mwt.in .mwt-launch{opacity:1;transform:none}
.mwt-launch:hover{box-shadow:0 1px 0 var(--k),0 18px 40px rgba(23,25,27,.22);transform:translateY(-2px)}
.mwt-launch:focus-visible{outline:2px solid var(--r);outline-offset:4px}
.mwt-l-ico{width:34px;height:34px;border-radius:50%;background:var(--p);display:grid;place-items:center;flex:none}
.mwt-l-ico svg{width:26px;height:26px;fill:none;stroke-linecap:round;stroke-linejoin:round}
.mwt-l-b1{stroke:var(--k);stroke-width:1.9;fill:var(--w)}
.mwt-l-b2{stroke:var(--r);stroke-width:1.9}
.mwt-l-ico circle{fill:var(--k);stroke:none}
.mwt-launch:hover .mwt-l-ico svg{animation:mwt-wig .6s ease}
.mwt-l-txt{position:relative;font-family:var(--se);font-weight:600;font-size:17px;letter-spacing:-.005em;line-height:1;white-space:nowrap}
.mwt-l-pen{position:absolute;left:58px;right:18px;bottom:6px;height:8px;width:calc(100% - 76px);overflow:visible}
.mwt-l-pen path{fill:none;stroke:var(--r);stroke-width:3;stroke-linecap:round;stroke-dasharray:110;stroke-dashoffset:110;transition:stroke-dashoffset .5s ease .1s}
.mwt.in .mwt-l-pen path{stroke-dashoffset:0;transition-delay:.7s}
.mwt-note{position:absolute;right:100%;top:-30px;margin-right:-26px;font-family:var(--ha);font-size:23px;line-height:1;color:var(--r);
  white-space:nowrap;transform:rotate(-7deg) translateY(6px);opacity:0;pointer-events:none;transition:opacity .4s ease,transform .4s ease}
.mwt-note::after{content:"";position:absolute;right:-16px;top:16px;width:20px;height:16px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpath d='M1 2c7 0 13 4 15 11M16 13l-4-1.5M16 13l1.5-4' fill='none' stroke='%23C4321A' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/contain}
.mwt.noting .mwt-note{opacity:1;transform:rotate(-7deg)}
body:has(.ckbar.on) .mwt-launch{opacity:0;pointer-events:none}

/* ---------- panel ---------- */
.mwt-panel{position:fixed;right:22px;bottom:88px;z-index:191;width:392px;max-height:calc(100vh - 112px);max-height:calc(100dvh - 112px);
  overflow:auto;overscroll-behavior:contain;background:var(--p);border:1.5px solid var(--k);border-radius:8px;
  box-shadow:0 2px 0 var(--k),0 30px 70px rgba(23,25,27,.26);
  opacity:0;transform:translateY(14px) scale(.98);transform-origin:bottom right;transition:opacity .22s ease,transform .26s cubic-bezier(.2,.8,.2,1)}
.mwt.open .mwt-panel{opacity:1;transform:none}
.mwt-panel[hidden]{display:none}

.mwt-head{position:relative;display:grid;grid-template-columns:52px 1fr 30px;gap:12px;align-items:start;padding:16px 16px 14px 18px;
  background:var(--w) repeating-linear-gradient(180deg,transparent 0 25px,var(--ln2) 25px 26px);border-bottom:1px solid var(--ln);border-radius:7px 7px 0 0}
.mwt-head::before{content:"";position:absolute;left:78px;top:0;bottom:0;width:1.5px;background:rgba(196,50,26,.28)}
.mwt-art{width:52px;height:40px;margin-top:2px;fill:none;stroke-linecap:round;stroke-linejoin:round}
.mwt-art .a1{stroke:var(--k);stroke-width:2.2;fill:var(--w)}
.mwt-art .a2{stroke:var(--r);stroke-width:2.2}
.mwt-art .a3{stroke:var(--k);stroke-width:2;opacity:.45}
.mwt-art .a4{stroke:var(--r);stroke-width:2.6;stroke-dasharray:30;stroke-dashoffset:30}
.mwt.open .mwt-art .a4{animation:mwt-draw .6s ease .25s forwards}
.mwt-hgroup{padding-left:8px}
.mwt-kick{margin:0 0 4px;font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--r)}
.mwt-title{margin:0;font-family:var(--se);font-weight:600;font-size:21px;line-height:1.12;letter-spacing:-.012em;color:var(--k)}
.mwt-sub{margin:5px 0 0;font-size:13px;line-height:1.45;color:var(--g)}
.mwt-x{width:30px;height:30px;margin:-4px -4px 0 0;border:0;background:none;border-radius:50%;display:grid;place-items:center}
.mwt-x svg{width:18px;height:18px;fill:none;stroke:var(--k);stroke-width:2;stroke-linecap:round}
.mwt-x:hover{background:var(--p)}
.mwt-x:focus-visible,.mwt-opt:focus-visible,.mwt-back:focus-visible,.mwt-send:focus-visible,.mwt-close2:focus-visible{outline:2px solid var(--r);outline-offset:2px}

.mwt-prog{display:flex;gap:6px;padding:14px 20px 0}
.mwt-prog i{flex:1;height:3px;border-radius:2px;background:var(--ln);transition:background .3s ease}
.mwt-prog i.now{background:var(--k)}
.mwt-prog i.done{background:var(--r)}

.mwt-body{padding:14px 20px 20px}
.mwt-step{border:0;margin:0;padding:0;min-width:0;animation:mwt-in .28s ease both}
.mwt-q{display:block;padding:0;margin:0 0 12px;font-family:var(--se);font-weight:600;font-size:18px;line-height:1.25;color:var(--k)}
.mwt-opts{display:grid;gap:8px}
.mwt-grid{grid-template-columns:1fr 1fr}
.mwt-opt{position:relative;display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:11px 36px 11px 12px;text-align:left;
  background:var(--w);border:1.5px solid var(--ln);border-radius:6px;font-size:14.5px;font-weight:500;line-height:1.25;
  transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease}
.mwt-grid .mwt-opt{flex-direction:column;align-items:flex-start;gap:6px;min-height:80px;padding:11px 28px 11px 12px;font-size:14px}
.mwt-opt:hover{border-color:var(--k);transform:translateY(-1px);box-shadow:0 6px 14px rgba(23,25,27,.08)}
.mwt-oi{width:24px;height:24px;fill:none;stroke:var(--k);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
.mwt-opt:hover .mwt-oi,.mwt-opt.on .mwt-oi{stroke:var(--r)}
.mwt-dot{width:16px;height:16px;border:1.5px solid var(--k);border-radius:50%;flex:none;transition:border-color .15s ease}
.mwt-opt.on .mwt-dot{border-color:var(--r);background:radial-gradient(circle,var(--r) 0 4px,transparent 4.5px)}
.mwt-tick{position:absolute;right:10px;top:50%;width:20px;height:20px;margin-top:-10px;fill:none;stroke:var(--r);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:24;stroke-dashoffset:24}
.mwt-grid .mwt-tick{top:12px;margin-top:0}
.mwt-opt.on{border-color:var(--r);box-shadow:0 0 0 3px rgba(196,50,26,.12)}
.mwt-opt.on .mwt-tick{animation:mwt-draw .3s ease forwards}
.mwt-picked .mwt-opt:not(.on){opacity:.45;transition:opacity .2s ease}
.mwt-back{display:inline-flex;margin:14px 0 0;padding:4px 0;border:0;background:none;font-size:13.5px;font-weight:600;color:var(--g);
  text-decoration:underline;text-decoration-color:var(--ln);text-underline-offset:3px}
.mwt-back:hover{color:var(--k);text-decoration-color:var(--r)}

.mwt-form{animation:mwt-in .28s ease both}
.mwt-trail{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;margin:-2px 0 10px;font-family:var(--ha);font-size:22px;line-height:1.1;color:var(--r)}
.mwt-trail i{font-style:normal;color:var(--g);opacity:.6}
.mwt-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.mwt-f{display:block;margin:0 0 10px}
.mwt-f span{display:block;margin:0 0 5px;font-size:12.5px;font-weight:600;color:var(--k)}
.mwt-f em{font-style:normal;font-weight:500;color:var(--g)}
.mwt .mwt-f input,.mwt .mwt-f textarea{display:block;margin:0;box-shadow:none;width:100%;padding:11px 12px;font:inherit;font-size:16px;color:var(--k);background:var(--w);
  border:1.5px solid var(--ln);border-radius:5px;resize:vertical;transition:border-color .15s ease,box-shadow .15s ease}
.mwt-f textarea{min-height:52px}
.mwt .mwt-f input:focus,.mwt .mwt-f textarea:focus{outline:0!important;border-color:var(--k)!important;box-shadow:0 3px 0 -1px var(--r)!important}
.mwt-f.bad input{border-color:var(--r)}
.mwt-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.mwt-err{margin:2px 0 10px;font-size:13.5px;line-height:1.4;color:var(--ri)}
.mwt-err a{color:var(--ri);font-weight:600}
.mwt-send{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:4px;padding:13px 18px;border:0;border-radius:5px;
  background:var(--r);color:#fff!important;font-size:16px;font-weight:600;transition:background .15s ease}
.mwt-send svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s ease}
.mwt-send:hover{background:var(--ri)}
.mwt-send:hover svg{transform:translateX(3px)}
.mwt-send.busy{opacity:.75;cursor:progress}
.mwt-send.busy svg{animation:mwt-nudge .8s ease-in-out infinite}
.mwt-small{margin:10px 0 0;font-size:12px;line-height:1.45;color:var(--g)}
.mwt-small a{color:var(--g);text-decoration:underline;text-underline-offset:2px}

.mwt-done{text-align:center;padding:8px 6px 4px;animation:mwt-in .3s ease both}
.mwt-big{width:76px;height:76px;margin:0 auto 12px;fill:none;stroke-linecap:round;stroke-linejoin:round}
.mwt-big .r{stroke:var(--r);stroke-width:2.6;stroke-dasharray:170;stroke-dashoffset:170;animation:mwt-draw .7s ease forwards}
.mwt-big .t{stroke:var(--k);stroke-width:3.4;stroke-dasharray:44;stroke-dashoffset:44;animation:mwt-draw .35s ease .6s forwards}
.mwt-done .mwt-sub{max-width:300px;margin:8px auto 0}
.mwt-close2{margin-top:16px;padding:10px 22px;background:none;border:1.5px solid var(--k);border-radius:5px;font-weight:600;font-size:14.5px}
.mwt-close2:hover{border-color:var(--r);color:var(--r)}

@keyframes mwt-draw{to{stroke-dashoffset:0}}
@keyframes mwt-in{from{opacity:0;transform:translateX(10px)}to{opacity:1;transform:none}}
@keyframes mwt-wig{0%,100%{transform:rotate(0)}30%{transform:rotate(-9deg)}60%{transform:rotate(6deg)}}
@keyframes mwt-nudge{0%,100%{transform:translateX(0)}50%{transform:translateX(4px)}}

/* ---------- phones ---------- */
@media (max-width:560px){
  .mwt-launch{right:14px;bottom:14px;padding:8px 16px 8px 9px;gap:8px}
  .mwt-l-ico{width:30px;height:30px}
  .mwt-l-ico svg{width:23px;height:23px}
  .mwt-l-txt{font-size:16px}
  .mwt-l-pen{left:50px;width:calc(100% - 66px)}
  .mwt.open .mwt-launch{opacity:0;pointer-events:none}
  .mwt-panel{left:10px;right:10px;bottom:10px;width:auto;max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);border-radius:12px;transform-origin:bottom center}
  .mwt-head{grid-template-columns:44px 1fr 30px;gap:10px;padding:14px 12px 12px 14px;border-radius:11px 11px 0 0}
  .mwt-head::before{left:64px}
  .mwt-art{width:44px;height:34px}
  .mwt-title{font-size:20px}
  .mwt-body{padding:12px 16px 18px}
  .mwt-prog{padding:12px 16px 0}
}
@media (max-width:340px){.mwt-grid{grid-template-columns:1fr}.mwt-grid .mwt-opt{min-height:52px;flex-direction:row;align-items:center}.mwt-grid .mwt-tick{top:50%;margin-top:-10px}}
@media (prefers-reduced-motion:reduce){.mwt *,.mwt *::before,.mwt *::after{animation:none!important;transition:none!important}
  .mwt-l-pen path,.mwt-art .a4,.mwt-opt.on .mwt-tick,.mwt-big .r,.mwt-big .t{stroke-dashoffset:0}.mwt-launch{opacity:1;transform:none}}
@media print{.mwt{display:none!important}}
.mwt .mwt-back{font-size:13.5px!important;line-height:1.3!important;min-height:0!important}
/* on phones the tools need the bottom of the screen for their own buttons: no floating launcher there */
@media (max-width:620px){body:has(#mwr-tool) .mwt-launch,body:has(#lp-app) .mwt-launch,body:has(.lp-dock) .mwt-launch{display:none!important}}
