/* The guide (whole-app step 10, docs/peeloff-whole-app/step10-brief.md): a player of small copies of the real screens. */
@font-face{font-family:Archivo;src:url(/fonts/archivo-latin.woff2) format('woff2');font-weight:100 900;font-stretch:62% 125%;font-display:swap}
:root{--forest:#174a43;--forest-2:#214d3c;--ink:#13201d;--muted:#5d6e68;--line:#d7dfd9;--lime:#d7f68b;--amber:#9a5b00;--amber-bg:#fff3d6;--done:#edf3e6;--canvas:#f3f5ef}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;color:var(--ink);background:radial-gradient(ellipse at 8% 0,#e4ecdc 0,transparent 46%),var(--canvas);font:16px/1.5 Archivo,ui-sans-serif,-apple-system,"Segoe UI",sans-serif}
button{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--forest);outline-offset:2px}
.guide{max-width:1180px;margin:0 auto;padding:28px clamp(16px,4vw,48px) 56px}
.guide-head h1{margin:0;font-size:clamp(28px,4.4vw,44px);line-height:1.08;font-weight:800;font-stretch:92%;letter-spacing:-.02em;color:var(--forest)}
.guide-head p{margin:8px 0 22px;font-size:18px;color:var(--muted)}

/* The player: the drawing beside the words on a wide screen, above them otherwise. */
.player{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr);grid-template-areas:"stage text" "stage nav" "stage .";grid-template-rows:auto auto 1fr;column-gap:28px;align-items:start;outline:none}
.stage{grid-area:stage}.caption{grid-area:text}.nav{grid-area:nav}
/* iPad portrait and phones: the words first, then the drawing, with Back / Next kept in reach at the bottom. */
@media(max-width:979px){.player{grid-template-columns:1fr;grid-template-areas:"text" "stage" "nav";grid-template-rows:auto;row-gap:12px}
 .nav{position:sticky;bottom:0;z-index:6;margin:0 calc(-1*clamp(16px,4vw,48px));padding:8px clamp(16px,4vw,48px) calc(8px + env(safe-area-inset-bottom));background:#f3f5efee;backdrop-filter:blur(8px);border-top:1px solid var(--line)}
 .nav .controls{margin-top:0}.nav .dots{justify-content:center}}
/* Nine 44 px dots don't fit a phone: Back and Next there, and every step in the list below. */
@media(max-width:600px){.nav .dots{display:none}}
/* A fixed window onto the drawing, so nothing below it jumps between scenes; the drawing scrolls itself to each tap. */
.stage{position:relative;height:540px;border-radius:18px;background:#fff;border:1px solid var(--line);box-shadow:0 18px 40px #173f3714,0 2px 0 #173f370d;overflow:hidden}
@media(max-width:979px){.stage{height:500px}}
@media(max-width:600px){.stage{height:clamp(300px,calc(100vh - 445px),460px);height:clamp(300px,calc(100svh - 445px),460px);border-radius:14px}.say{font-size:21px!important}.sub{font-size:15px;margin-bottom:2px}.guide{padding-top:18px}.guide-head p{margin-bottom:14px;font-size:16px}}
.screen{position:relative;height:100%;overflow:hidden;font-size:13px;line-height:1.3;color:var(--ink);user-select:none;-webkit-user-select:none}
.finger{position:absolute;left:0;top:0;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;background:#d7f68b73;border:3px solid var(--forest);box-shadow:0 6px 16px #13201d40;transform:translate(var(--x,80%),var(--y,120%));transition:transform .75s cubic-bezier(.45,.05,.3,1),opacity .3s;opacity:0;pointer-events:none;z-index:5}
.finger.on{opacity:1}
.finger::after{content:"";position:absolute;inset:15px;border-radius:50%;background:var(--forest)}
.finger.press{animation:press .32s ease}
.finger.press::before{content:"";position:absolute;inset:-3px;border-radius:50%;border:3px solid var(--forest);animation:ripple .6s ease-out}
@keyframes press{50%{scale:.8}}
@keyframes ripple{from{opacity:.8;scale:1}to{opacity:0;scale:2.1}}

/* The words. */
.caption{display:flex;flex-direction:column;gap:6px;min-width:0}
.caption-top{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}
.where{display:inline-block;padding:5px 11px;border-radius:999px;background:var(--forest);color:var(--lime);font-size:13px;font-weight:750;letter-spacing:.02em}
.count{font-size:14px;color:var(--muted);font-weight:600}
.say{margin:10px 0 0;font-size:clamp(23px,2.6vw,30px);line-height:1.22;font-weight:650;font-stretch:94%;letter-spacing:-.01em;min-height:3.66em}
.say b{font-weight:850;color:var(--forest);background:linear-gradient(transparent 62%,#d7f68b 62%);padding:0 .08em}
.sub{margin:4px 0 8px;font-size:17px;color:var(--muted);min-height:1.5em}
@media(max-width:979px){.say{min-height:0}.sub{min-height:0}}
.controls{display:flex;gap:10px;margin-top:8px}
.controls .g-btn{flex:1}
.g-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;min-width:48px;padding:10px 16px;border-radius:12px;border:1px solid var(--line);background:#fff;color:var(--forest);font-weight:750;font-size:16px;text-decoration:none;cursor:pointer;touch-action:manipulation}
.g-btn.primary{background:var(--forest);border-color:var(--forest);color:#fff}
.g-btn:disabled{opacity:.4;cursor:default}
@media(hover:hover){.g-btn:not(:disabled):hover{filter:brightness(.96)}}
.end-actions{display:flex;flex-wrap:wrap;gap:10px;margin:4px 0}
.dots{display:flex;flex-wrap:wrap;gap:0;margin:6px -6px 0}
.dots button{all:unset;box-sizing:border-box;width:44px;height:44px;display:grid;place-items:center;cursor:pointer;touch-action:manipulation;border-radius:10px}
.dots button::before{content:"";width:12px;height:12px;border-radius:50%;background:#c5d2c8;transition:background .2s,width .2s}
.dots button[aria-current="step"]::before{background:var(--forest);width:26px;border-radius:6px}
.dots button:focus-visible{outline:3px solid var(--forest);outline-offset:-3px}

/* All the steps as a list (also the version a screen reader reads). */
.all-steps{margin-top:44px;max-width:760px}
.all-steps h2{font-size:22px;margin:0 0 10px;color:var(--forest)}
.all-steps ol{margin:0;padding:0;list-style:none;counter-reset:s}
.all-steps li{counter-increment:s}
.all-steps li button{all:unset;box-sizing:border-box;display:flex;gap:14px;align-items:baseline;width:100%;min-height:48px;padding:11px 12px;border-radius:12px;cursor:pointer;font-size:17px;line-height:1.4}
.all-steps li button::before{content:counter(s);flex:none;display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;border:2px solid var(--forest);color:var(--forest);font-size:14px;font-weight:800}
.all-steps li button[aria-current="step"]{background:#fff;box-shadow:inset 0 0 0 2px var(--forest)}
.all-steps li button:focus-visible{outline:3px solid var(--forest)}
@media(hover:hover){.all-steps li button:hover{background:#ffffffb0}}
.all-steps li b{color:var(--forest)}
.small{font-size:14px;color:var(--muted)}

/* ---- The small copies of the real screens ---- */
.ms-top{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid var(--line);background:#fff}
.ms-mark{width:26px;height:26px;border-radius:8px;background:var(--forest-2);color:var(--lime);display:grid;place-items:center;font-weight:800;font-size:15px}
.ms-brand{font-weight:800;font-size:17px;color:#173f37;letter-spacing:-.04em}
.ms-switch{display:flex;gap:2px;padding:2px;background:#edf2ea;border:1px solid #dce6d9;border-radius:8px;margin-left:6px}
.ms-switch span{padding:6px 10px;border-radius:6px;font-size:12px;font-weight:700;color:#587060;white-space:nowrap}
.ms-switch span.on{background:#214d3c;color:#fff}
.ms-more{margin-left:auto;padding:5px 11px;border:1.5px solid #173f37;border-radius:8px;font-weight:750;font-size:12px;color:#173f37}
.ms-day{padding:12px 14px 2px;font-weight:800;font-size:19px;letter-spacing:-.02em}
.ms-stops{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:8px 14px 10px}
.ms-stop{border:1px solid var(--line);border-radius:10px;padding:7px 9px;background:#fff;min-height:48px;transition:background .3s,border-color .3s}
.ms-stop b{display:flex;align-items:center;gap:6px;font-size:12.5px;font-weight:750;font-stretch:90%}
.ms-stop i{font-style:normal;flex:none;width:18px;height:18px;border-radius:50%;border:2px solid var(--forest);display:grid;place-items:center;font-size:10px;font-weight:800;color:var(--forest);background:#fff}
.ms-stop small{display:block;margin-top:2px;font-size:11.5px;color:var(--muted)}
.ms-stop.cur{border:2px solid var(--forest);padding:6px 8px;background:#f3f8e8;box-shadow:0 2px 0 var(--forest)}
.ms-stop.done{background:var(--done);border-color:transparent}
.ms-stop.done i{background:var(--forest);color:#fff}
.ms-stop.warn small{color:var(--amber);font-weight:650}
.ms-body{padding:4px 14px 16px}
.ms-h{font-weight:800;font-size:15px;margin:8px 0 6px}
.ms-card{border:1px solid var(--line);border-radius:12px;background:#fff;padding:10px 12px}
.ms-green{background:#1f4a40;color:#fff;border-radius:12px;padding:12px 14px;display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;font-size:14px}
.ms-green big{font-size:24px;font-weight:800;color:#fff;font-variant-numeric:tabular-nums}
.ms-green .meo big,.ms-green .meo{color:var(--lime)}
.ms-flash{animation:flash .9s ease}
@keyframes flash{0%{background:#d7f68b}100%{background:transparent}}
.ms-rows{margin-top:8px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
.ms-row{display:flex;align-items:center;gap:10px;min-height:46px;padding:6px 10px;border-top:1px solid #edf0ed;transition:opacity .3s,background .3s}
.ms-row:first-child{border-top:0}
.ms-row .rn{font-weight:750;min-width:46px}
.ms-row .bars{flex:1;display:flex;gap:4px;min-width:0;overflow:hidden}
.ms-row .bars span{height:12px;border-radius:3px;background:#2e5a4e}
.ms-toggle{display:flex;flex:none;border:1px solid var(--line);border-radius:8px;font-size:12px;font-weight:700}
.ms-toggle span{padding:7px 9px;border-radius:7px}
.ms-toggle span.on{background:#214d3c;color:#fff}
.ms-row.out{background:#f5f6f3}
.ms-row.out .rn,.ms-row.out .bars{opacity:.4}
.ms-pos{font-size:12px;color:var(--muted);font-weight:650;min-width:66px;text-align:right}
.ms-name{font-weight:750;flex:1;min-width:0}
.ms-name small{display:block;font-weight:500;color:var(--muted);font-size:11.5px}
.ms-tag{flex:none;padding:3px 8px;border-radius:999px;font-size:11.5px;font-weight:750;background:var(--done);color:var(--forest)}
.ms-tag.meo{background:var(--forest);color:var(--lime)}
.ms-tag.next{background:var(--amber-bg);color:var(--amber)}
.ms-tag.lime{background:var(--lime);color:var(--forest)}
.ms-row.grey .ms-name{color:#8a9892}
.ms-btn{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 12px;border-radius:9px;border:1px solid var(--line);background:#fff;font-weight:750;font-size:12.5px;color:var(--forest);white-space:nowrap}
.ms-btn.primary{background:var(--forest);border-color:var(--forest);color:#fff}
.ms-btn.needs{background:var(--amber-bg);border:1px dashed #d8a64a;color:var(--amber)}
.ms-btn.put{background:var(--lime);border-color:#a9cf4f;color:var(--forest)}
.ms-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;align-items:center}
.ms-ok{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:10px;font-weight:700;color:var(--forest);font-size:13px}
.ms-pop{animation:pop .45s ease}
@keyframes pop{0%{opacity:0;transform:translateY(4px)}100%{opacity:1;transform:none}}
.ms-split{display:grid;grid-template-columns:150px 1fr;gap:12px;align-items:start}
.ms-open .room{display:inline-flex;align-items:center;gap:6px;margin-top:6px;min-height:36px;padding:6px 12px;border-radius:9px;border:1.5px solid var(--forest);font-weight:800;background:#fff;color:var(--forest)}
.ms-open .room.hold{background:var(--lime);border-color:#a9cf4f}
.ms-open .room.hold::after{content:"holding";font-size:10.5px;font-weight:700}
.ms-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ms-cards p{margin:2px 0 0;color:var(--muted);font-size:12px}
.ms-cards .ms-acts{flex-direction:column;align-items:stretch}
.ms-change{background:var(--amber-bg);border-radius:12px;padding:10px 12px;margin-top:10px}
.ms-change b{display:block}
.ms-change ul{margin:4px 0 0;padding-left:18px}
.ms-ready{display:grid;place-items:center;text-align:center;padding:26px 10px;gap:6px}
.ms-ready big{font-size:26px;font-weight:850;color:var(--forest)}
.ms-skel{display:grid;gap:8px;margin-top:10px}
.ms-skel span{height:30px;border-radius:8px;background:#eef2ee}

/* Narrow screens: the drawing keeps its words short, as the phone app does. */
@media(max-width:600px){
 .ms-switch span{padding:6px 7px;font-size:11px}
 .ms-more{display:none}
 .ms-stop small{display:none}
 .ms-stop b{font-size:11.5px;gap:4px}
 .ms-split{grid-template-columns:1fr}
 .ms-cards{grid-template-columns:1fr}
 .ms-row .bars{display:none}
 .ms-pos{min-width:56px;font-size:11px}
}

/* Reduced motion: no finger and nothing moves; the button to tap is ringed. */
.ring{box-shadow:0 0 0 3px #fff,0 0 0 6px var(--forest)!important}
@media(prefers-reduced-motion:reduce){.finger{display:none}.ms-pop,.ms-flash{animation:none}.ms-stop,.ms-row{transition:none}}
/* The app's send boxes, drawn over the screen. */
.ms-dim{position:absolute;left:0;right:0;height:100%;display:grid;place-items:center;padding:14px;background:#17372c59;z-index:3}
.ms-dialog{display:flex;flex-direction:column;gap:7px;width:min(330px,100%);padding:16px;border-radius:13px;background:#fff;box-shadow:0 20px 50px #13201d40}
.ms-dialog small{color:var(--muted)}
.ms-label{font-size:12px;font-weight:700;margin-top:4px}
.ms-pin{display:flex;align-items:center;min-height:38px;padding:7px 11px;border:1px solid #c9d4cd;border-radius:9px;background:#fff;color:#8a9892;font-size:13px;min-width:90px}
.ms-pin.typed{color:var(--ink);letter-spacing:.25em;font-weight:800}
.ms-msg{padding:9px 11px;border:1px solid #c9d4cd;border-radius:9px;background:#fbfcfb}
.ms-dialog .ms-btn{align-self:flex-end}
@media(max-width:700px){.ms-toggle span:not(.on){display:none}}
.ms-layout{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:2px 0 8px;font-size:12px;color:var(--muted)}
.ms-layout .ms-switch{margin-left:0}
/* The Count stop's phone layout (only under 700 px, as in the app). */
.ms-phone-only{display:none}
.ms-pinbar{background:#1f4a40;color:#fff;border-radius:12px;padding:12px 14px;font-weight:700;font-size:14px}
.ms-pinbar b{color:var(--lime)}.ms-pinbar u{font-weight:600;color:#cfe3d8;margin-left:6px}
.ms-sendbar{position:absolute;left:0;right:0;bottom:0;z-index:2;display:none;gap:8px;align-items:center;padding:10px 14px;background:#1f4a40;box-shadow:0 -8px 20px #0f363133}
.ms-sendbar .ms-btn.primary{flex:1;min-height:42px;background:var(--lime);border-color:var(--lime);color:var(--forest)}
.ms-sendbar .ms-ok{color:#fff;margin:0}
@media(max-width:700px){.ms-wide-only{display:none}.ms-phone-only{display:block}.ms-sendbar.ms-phone-only{display:flex}.ms-body:has(+.ms-sendbar){padding-bottom:80px}}
/* The MEO button on each Peeloff list row (Take MEO back on an MEO row). */
.ms-meo{min-height:30px;padding:4px 10px;font-size:11.5px;border-radius:999px;margin-left:6px}
.ms-meo.on{border-color:var(--forest)}
.ms-row b{white-space:nowrap}
@media(max-width:600px){.ms-meo{padding:4px 8px}.ms-meo.on{font-size:10.5px}}
/* A mouse doesn't need 44 px dots; twelve then fit on one line beside the drawing. */
@media(pointer:fine){.dots button{width:34px;height:34px}}
.ms-callable{color:var(--muted);font-weight:650}
/* Very narrow phones: a name keeps its room; the room and buttons wrap under it. */
@media(max-width:600px){.ms-rows .ms-row{flex-wrap:wrap;row-gap:4px}.ms-row .ms-name{min-width:5.5em}}
/* The Count stop's Who can take a room panel. */
.ms-sum{background:#1f4a40;color:#fff;border-radius:12px;padding:12px 14px;display:grid;gap:6px}
.ms-sum-h{font-weight:800;font-size:13px;color:#cfe3d8}
.ms-sum .ln{display:flex;align-items:baseline;gap:8px}
.ms-sum .ln .op{width:12px;color:#cfe3d8;text-align:center}
.ms-sum .ln>b{font-size:20px;min-width:24px;text-align:right;font-variant-numeric:tabular-nums}
.ms-sum .ln small{display:block;font-size:11.5px;color:#cfe3d8}
.ms-sum .ln.res{border-top:1px solid #ffffff33;padding-top:6px}
.ms-sum .ln.meo b,.ms-sum .ln.meo span{color:var(--lime)}
.ms-sum .ms-acts{margin:0 0 0 20px}
.ms-sum .ms-btn{background:transparent;color:#fff;border-color:#ffffff55}
.ms-sum .ms-pin{min-width:110px}
.ms-x{margin-left:auto;color:#cfe3d8}
.ms-sum .ms-pin.typed{letter-spacing:0}
