
:root{color-scheme:light;--ink:#254b48;--cream:#fcf7e9;--orange:#b95335;--mint:#d3e4d4}*{box-sizing:border-box}body{margin:0;background:#c5d3bc;color:var(--ink);font-family:ui-rounded,'Trebuchet MS',Arial,sans-serif}button{font:inherit;font-weight:700;cursor:pointer;color:var(--ink);background:#e6edda;border:0;border-radius:10px;min-height:44px;padding:9px 16px}button:hover{background:#cbdcc7}button:disabled{opacity:.5;cursor:default}button:focus-visible,canvas:focus-visible{outline:3px solid #c75d35;outline-offset:2px}main{max-width:1440px;height:calc(100dvh - 24px);min-height:620px;margin:12px auto;display:flex;flex-direction:column;background:#f5f0db;border:5px solid #45695c;border-radius:22px;overflow:hidden;box-shadow:0 7px 0 #879f85}header{display:flex;align-items:center;justify-content:space-between;padding:8px 18px;gap:12px;background:var(--cream);flex-shrink:0}h1{margin:0;font:bold 25px Georgia;letter-spacing:-.6px}h1 em{color:var(--orange)}h1 small{font:11px 'Trebuchet MS',sans-serif;letter-spacing:0;margin-left:10px;color:#64735e}.tools{display:flex;gap:6px}.tools button{font-size:11px;min-height:34px;padding:7px 12px;background:#ecebdc}.hud{display:flex;align-items:center;gap:30px;padding:10px 22px;background:var(--ink);color:#fffae8;flex-shrink:0}.hud>strong{font:italic bold 25px Georgia;margin-right:auto}.hud>div{display:flex;align-items:center;gap:10px}.hud span{font-size:11px;color:#d8e5cf}.hud strong{font-size:24px;font-variant-numeric:tabular-nums}.hud strong small{font-size:11px}.hud .timer strong{background:#fff0c9;color:#5a573b;padding:3px 11px;border-radius:8px}#capacity{border-left:1px solid #5d796a;padding-left:18px;white-space:nowrap}.orderrail{padding:8px 14px;background:#eee4c7;border-bottom:3px solid #bdc2a6;flex-shrink:0}#tickets{display:flex;gap:8px;overflow-x:auto;min-height:65px;scrollbar-width:thin}.ticket{flex:0 0 155px;background:#fffaf0;border:2px solid #c4cdb4;border-top:5px solid #8bb59b;border-radius:9px;padding:6px 9px;position:relative}.ticket.queue{border-top-color:#ca955c;background:#f8eddb}.ticket.ready{border-top-color:#559a64;background:#edf6df}.tickethead{display:flex;justify-content:space-between;gap:5px;font-size:12px;align-items:center}.tickethead small{font-size:10px;color:#63705c}.steps{display:flex;gap:3px;margin-top:5px;font-size:9px}.steps span{border-radius:4px;background:#e7e7da;padding:3px 4px;color:#697467}.steps .done{background:#cbdfba;color:#395e3e}.steps .current{background:#f3ce8e;color:#684820;font-weight:bold}.ticket p{font-size:10px;margin:5px 0 0;color:#68745d}.meter{height:3px;background:#e3d8bd;border-radius:2px;margin-top:6px}.meter i{display:block;height:100%;background:#b9784e}.empty{align-self:center;padding:10px 8px;color:#6c7d65;font-size:13px}.stage{position:relative;flex:1;min-height:180px;display:flex;align-items:center;justify-content:center;background:#e7e5ce;overflow:hidden}canvas{display:block;touch-action:none;max-width:100%;max-height:100%;outline-offset:-4px!important}.shopstatus{position:absolute;top:9px;right:14px;font-size:10px;border-radius:20px;background:#fff7dddb;padding:6px 10px;color:#5d6b54;pointer-events:none}.message{font-size:13px;text-align:center;padding:8px 16px;background:#fff3d1;color:#5b6043;min-height:34px;border-top:2px solid #d5d6b7;flex-shrink:0}.controlbar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--cream);padding:9px 18px;flex-shrink:0;min-height:66px}.keyhint{display:flex;align-items:center;gap:4px;font-size:11px}.keyhint>span{margin-left:5px}.keyhint .pausehint{margin-left:14px;color:#76816c;font-size:10px}kbd{font:bold 13px 'Trebuchet MS',sans-serif;display:inline-flex;align-items:center;justify-content:center;background:#fff9eb;border:1px solid #b9c3ad;border-bottom:3px solid #a3b197;border-radius:5px;min-width:26px;height:28px;color:#3f6556}.actioncue{display:flex;align-items:center;gap:10px;background:#d7e9c3;padding:8px 16px;min-width:230px;justify-content:center;font-size:13px;border:2px solid #95b780;box-shadow:0 3px 0 #95b780}.actioncue:disabled{box-shadow:none;opacity:.65;background:#eeeee0;border-color:#d2d8c4}.actioncue kbd{background:#fffbe9}.hands{font-size:11px;max-width:210px;text-align:right;color:#64725d}.dpad{display:none}.dpad button{width:44px;height:44px;padding:0;font-size:22px;touch-action:none;user-select:none}.dpad button.pressed{background:#95b58e}dialog{border:3px solid #64816a;padding:30px 34px;border-radius:24px;width:calc(100% - 32px);max-width:490px;color:var(--ink);background:#fff9e8;box-shadow:0 15px 80px #183b3355;max-height:92dvh;overflow:auto}dialog::backdrop{background:#183d337a;backdrop-filter:blur(3px)}dialog h2{font:bold 43px/1.02 Georgia;letter-spacing:-1.5px;margin:0}dialog h2 em{color:var(--orange)}dialog p{font-size:14px;line-height:1.6}dialog .eyebrow{font-size:11px;color:#80704e;margin:14px 0}.primary{display:block;background:var(--orange);color:#fffaf0;width:100%;padding:15px 20px;margin-top:20px}.primary:hover{background:#994229}.small{font-size:11px!important;color:#718063;text-align:center;margin-bottom:0}.instructions{display:flex;flex-direction:column;gap:12px;padding:16px;background:#e8eddb;border-radius:12px;margin-top:18px}.instructions>div{display:flex;align-items:center;gap:4px}.instructions strong{font-size:12px;margin-left:7px}.dogface{margin:0 auto 8px;position:relative;width:82px;height:72px;background:#d1a46d;border-radius:45%;display:flex;justify-content:center;align-items:center;gap:6px;border:4px solid #805e45;transform:rotate(-7deg)}.dogface:before,.dogface:after{content:'';position:absolute;top:0;width:27px;height:53px;border-radius:55%;background:#805e45;z-index:-1}.dogface:before{left:-18px;transform:rotate(17deg)}.dogface:after{right:-18px;transform:rotate(-17deg)}.dogface b{font-size:9px;color:#263b30;position:relative;top:-7px}.dogface em{font-size:29px;color:#423d2b;background:#f4dcaa;border-radius:50%;font-style:normal;position:relative;top:10px}ol{padding-left:21px;line-height:1.6;font-size:13px}li{margin-bottom:8px}.upgrades{display:grid;gap:8px;margin:18px 0}.upgrade{padding:13px;background:#e7ecd8;border-radius:11px;display:flex;align-items:center;justify-content:space-between;gap:10px}.upgrade strong{display:block;font-size:14px}.upgrade small{font-size:11px;display:block;margin-top:4px;line-height:1.5}.upgrade button{font-size:12px;background:var(--ink);color:#fff9e8;white-space:nowrap}#shopnote{font-size:12px;min-height:20px}#helpdialog h2{font-size:36px}@media(max-width:1100px){main{margin:8px;height:calc(100dvh - 16px)}.hud{gap:18px}.keyhint .pausehint{display:none}.hands{max-width:170px}}@media(max-width:700px){main{border-width:3px;border-radius:14px;margin:4px;height:calc(100dvh - 8px);min-height:620px}header{padding:7px 10px}h1{font-size:20px}h1 small{display:none}.tools button{font-size:10px;padding:6px 9px}.hud{padding:8px 10px;gap:13px}.hud>strong{font-size:20px}.hud strong{font-size:20px}.hud>div{display:block}.hud span{display:block;font-size:9px;margin-bottom:2px}.hud .timer strong{padding:1px 6px;font-size:20px}#capacity{display:none}.orderrail{padding:6px}.ticket{flex-basis:139px}#tickets{min-height:66px}.shopstatus{top:5px;right:7px;font-size:9px;padding:4px 7px}.message{font-size:11px;min-height:41px;display:flex;align-items:center;justify-content:center;padding:6px 10px}.controlbar{padding:7px 10px;gap:9px;min-height:108px}.keyhint{display:none}.dpad{display:grid;grid-template-columns:44px 44px 44px;grid-template-rows:44px 44px;gap:3px}.dpad .up{grid-column:2;grid-row:1}.dpad .left{grid-column:1;grid-row:2}.dpad .down{grid-column:2;grid-row:2}.dpad .right{grid-column:3;grid-row:2}.hands{display:none}.actioncue{min-width:0;flex:1;font-size:12px;padding:12px 8px;min-height:66px}.actioncue kbd{flex-shrink:0}.stage{min-height:160px}dialog{padding:24px}dialog h2{font-size:38px}.instructions strong{font-size:11px}.instructions{padding:12px}kbd{min-width:24px}}@media(pointer:coarse) and (min-width:701px){.keyhint{display:none}.dpad{display:flex;gap:5px}.dpad .up{order:1}.dpad .left{order:0}.dpad .down{order:2}.dpad .right{order:3}}@media(max-height:600px) and (min-width:701px){main{min-height:430px}header{padding:4px 12px}.hud{padding:5px 14px}.orderrail{padding:4px 10px}.controlbar{min-height:53px;padding:5px 12px}.message{padding:5px;min-height:28px}.shopstatus{display:none}}@media(prefers-reduced-motion:reduce){dialog::backdrop{backdrop-filter:none}}
main{position:relative}header{position:relative;z-index:5}.hud{position:absolute;z-index:4;top:54px;left:0;right:0;padding:8px 20px}.orderrail{position:absolute;z-index:4;top:105px;left:6px;right:6px;padding:5px 8px;background:transparent;border:0;pointer-events:none}#tickets{pointer-events:auto}canvas:focus-visible{outline:2px solid #8ca482}.shopstatus{top:auto;bottom:10px}@media(max-width:700px){.hud{position:static;padding:8px 10px}.orderrail{position:static;background:#eee4c7;padding:6px;border-bottom:2px solid #bdc2a6}.shopstatus{bottom:5px}}@media(max-height:600px) and (min-width:701px){.hud{top:44px;padding:5px 14px}.orderrail{top:88px}}

/* Cartoon salon finish */
body{background:radial-gradient(ellipse at 30% 0,#a6c9b6,#668e84);color:#315951}
main{border-color:#365d59;box-shadow:0 5px 0 #284a49,0 12px 28px #244c4933;background:#fae9c9}
header{background:linear-gradient(#fff8df,#f8e7c7);box-shadow:0 3px 0 #d3bc8b;z-index:5}
h1{font-family:ui-rounded,'Trebuchet MS',sans-serif;font-size:26px;font-weight:900;letter-spacing:-1.1px;text-shadow:0 2px #fff9e7}
h1 em{color:#bd664d}h1 small{letter-spacing:0;color:#6b8271;font-weight:600}
.tools button{background:#e9ddbd;border:1px solid #d4c5a2;box-shadow:0 2px 0 #c6ba96;color:#4d6c60}
.hud{background:linear-gradient(#407d75,#326760);box-shadow:0 3px 0 #294f4f;color:#fff3d5}
.hud>strong{font:900 24px ui-rounded,'Trebuchet MS',sans-serif}.hud .timer strong{background:linear-gradient(#fff8d6,#f5d99d);border:2px solid #e3c285;box-shadow:0 2px 0 #294f4f;color:#6b5a3e}
.ticket{border:2px solid #c4ac82;border-top:5px solid #71ae96;border-radius:10px;background:linear-gradient(#fffbeb,#f8e7c7);box-shadow:0 3px 0 #6b695522;padding:7px 9px}.ticket.queue{background:linear-gradient(#fff3d8,#eed7ad);border-top-color:#c58a56}.ticket.ready{background:linear-gradient(#f4ffdf,#d6e9b9)}.tickethead{font-weight:800}.steps span{background:#e5d9bb;color:#6b6f57}.steps .current{background:#f0c475;color:#765026}.steps .done{background:#c7deb6;color:#4a6d43}.meter{background:#d9bd94}.meter i{background:#bb7952}
.stage{background:linear-gradient(110deg,#cab692,#e2cca7 20%,#e2cca7 80%,#bfa781)}canvas{filter:drop-shadow(0 8px 7px #4c55453d)}.shopstatus{background:#fff2d9e6;color:#617261}
.message{background:linear-gradient(#fff2d2,#f7e2b5);border-top:2px solid #bda67c;color:#6a644a;font-weight:600}.controlbar{background:linear-gradient(#fff8e2,#f6e6c9)}
.actioncue{background:linear-gradient(#daedb7,#b8d28d);border-color:#91ab6e;box-shadow:0 4px 0 #78945e;color:#3f6249}.actioncue:hover{background:#d4e8af}.actioncue:disabled{background:#e6e0cb;border-color:#ccc3aa}
kbd{background:linear-gradient(#fffced,#f4e3bd);border-color:#c6b991;border-bottom-color:#b1a079;color:#48635a}.dpad button{background:linear-gradient(#ecf0ce,#cbdbaf);box-shadow:0 3px 0 #a1b38a;border:1px solid #b6c69b}.dpad button.pressed{background:#a6c292;box-shadow:0 1px 0 #829971}
dialog{background:linear-gradient(145deg,#fffbe7,#f9e7c3);border-color:#608c75;box-shadow:0 7px 0 #355e4d,0 25px 80px #183b3366}.dogface{box-shadow:inset 5px 6px 0 #f0c895,inset -5px -5px 0 #b68655,0 6px 0 #b9ad8844}.primary{background:linear-gradient(#ce8059,#b56147);box-shadow:0 4px 0 #864b3c}.primary:hover{background:#bf7353}
@media(max-width:700px){h1{font-size:20px}.hud>strong{font-size:20px}.orderrail{background:#e8d5b0}.tools button{padding:6px 8px}}
/* Keep the room visible beside the order queue. */
@media(min-width:1101px){header{min-height:66px;padding:10px 18px}h1{font-size:25px}h1 small{display:none}.hud{top:10px;left:264px;right:185px;height:44px;padding:0;gap:22px;background:none;box-shadow:none;color:#355f55;z-index:6}.hud span{color:#6d7f67}.hud>strong{font-size:21px}.hud strong{font-size:23px}.hud>div{gap:6px}.hud .timer strong{box-shadow:0 2px 0 #c2ac7b}.hud #capacity{display:none}.orderrail{top:84px;left:15px;right:auto;bottom:119px;width:172px;padding:0}.orderrail #tickets{display:flex;flex-direction:column;gap:9px;max-height:100%;overflow-x:hidden;overflow-y:auto;padding:3px 4px 7px}.ticket{flex:0 0 auto;min-height:80px}.tickethead{font-size:13px}.steps{font-size:10px}.ticket p{font-size:11px}.empty{font-size:13px;line-height:1.5;text-align:center;background:#fff5db;border-radius:10px}.stage{padding-left:190px;padding-right:12px}.shopstatus{right:22px}}
@media(min-width:701px) and (max-width:1100px){.hud{position:static;padding:7px 15px}.orderrail{top:125px;left:12px;right:auto;bottom:110px;width:145px;padding:0}.orderrail #tickets{display:flex;flex-direction:column;max-height:100%;overflow-x:hidden;overflow-y:auto;padding:3px}.ticket{flex:0 0 auto;min-height:77px}.stage{padding-left:160px;padding-right:8px}}

.ticket.boss{border-top-color:#da6f9b;background:linear-gradient(#fff1ed,#f6d5d7)}.ticket.boss .tickethead strong{color:#a84871}@media(min-width:1101px){.hud{right:265px;gap:12px}.hud>div{gap:4px}.hud span{font-size:10px}}@media(max-width:700px){header{flex-wrap:wrap;gap:5px}.tools{margin-left:auto}.tools button{padding:6px 7px}.hud{gap:10px}}

#characterdialog{max-width:790px;padding:26px}#characterdialog h2{font-size:34px}#characterdialog>p{margin:10px 0}.charactergrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}.characterchoice{min-width:0;display:flex;align-items:center;flex-direction:column;padding:8px 8px 16px;gap:7px;background:#fff7e3;border:2px solid #d8caaa;color:#355951}.characterchoice:hover{background:#f0e8cd}.characterchoice[aria-pressed=true]{border-color:#326e62;background:#e0ebd6;box-shadow:0 0 0 2px #326e62}.characterchoice canvas{width:100%;height:auto;filter:none;max-height:none;pointer-events:none}.characterchoice strong{font-size:18px}.characterchoice span{font-size:12px;font-weight:400;line-height:1.35;text-align:center}.characterchoice span:first-of-type{font-weight:700}.secondary{display:block;width:100%;margin-top:14px;background:#e4dec9}.small a{color:#426d60}#characterdialog .primary{margin-top:12px}@media(max-width:600px){#characterdialog{padding:18px}#characterdialog h2{font-size:29px}.charactergrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.characterchoice{padding:5px 5px 12px}.characterchoice canvas{max-width:125px}.characterchoice strong{font-size:16px}.characterchoice span{font-size:11px}}

#layoutdialog{width:min(760px,calc(100vw - 24px));max-width:760px}#layoutdialog h2{font-size:30px}.layoutgrid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;background:#efd7b0;padding:12px;border-radius:0 0 12px 12px}.layoutwall{background:#427e73;color:#fff7dc;text-align:center;padding:8px;border-radius:12px 12px 0 0}.layoutcell{min-width:0;min-height:76px;padding:8px 4px;border:2px solid #899a83;font-size:13px;box-shadow:0 3px #b79d7b}.layoutcell.tub{background:#a4ddd0}.layoutcell.dryer{background:#ffdfa0}.layoutcell.groom{background:#f3b9a1}.layoutcell.desk{background:#82c4b3}.layoutcell.kennel{background:#bdcfdd}.layoutcell.emptycell{background:#f8e8ca;border-style:dashed;color:#6f725d}.layoutcell[aria-pressed=true]{outline:4px solid #bd593d;outline-offset:0;position:relative}.layoutcell:focus-visible{outline:3px solid #294f4f;outline-offset:2px}#layoutstatus{min-height:44px;font-size:14px}#shopdialog .secondary{margin-bottom:8px}@media(max-width:700px){header{flex-wrap:wrap}h1{font-size:21px}header .tools{margin-left:auto}#layoutdialog{padding:18px}#layoutdialog h2{font-size:25px}.layoutgrid{gap:5px;padding:7px}.layoutcell{font-size:11px;min-height:64px;padding:4px 2px}}
@media(max-width:380px){#layoutdialog{padding:12px}.layoutgrid{gap:4px;padding:4px}.layoutcell{font-size:10px;padding:4px 0}}

.ticket.selected{border:3px solid #ad7933;background:#fff1bd;box-shadow:0 0 0 2px #ffe6a2,0 3px 0 #b59b72}.ticket.selected .tickethead small{background:#795b2c;color:#fff6d7;padding:2px 4px;border-radius:4px}.callnotice{flex-shrink:0;text-align:center;padding:8px 14px;background:#ffe4a6;color:#684726;border-top:2px solid #c18d47;font-size:13px;font-weight:700}.callnotice[hidden]{display:none}@media(max-width:700px){.callnotice{font-size:11px;padding:6px 8px}}

.savedtrim{font-size:11px;color:#315f54;margin-top:7px;padding:6px;background:#e1edd0;border-radius:5px}.savedtrim small{display:block;font-size:10px;margin-top:4px}.savedtrim .meter{height:6px}.savedtrim .meter i{background:#578974}.ownerstatus{font-weight:700;color:#865e3d!important}.shopaddition{padding:14px;background:#e5e8ce;border-radius:12px;margin:18px 0}.shopaddition p{font-size:14px}#extras h3{font-size:19px;margin:16px 0 10px}.staffstatus{font-weight:700}#layouteditor[hidden]{display:none}
#layouteditor{display:flex;align-items:center;gap:8px;margin-left:auto}
.layoutbuttons{display:flex;gap:8px}.layoutbuttons button{font-size:13px;min-height:44px;padding:9px 12px}
.layoutchooser,#layoutstatus{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.layoutchooser:focus-within{position:static;width:auto;height:auto;margin:0;overflow:visible;clip-path:none;white-space:normal}
#layoutequipment{font:inherit;padding:8px;border-radius:6px;background:#fff9e9;color:#315951}
#layoutstatus[data-error=true]{position:absolute;top:100%;right:8px;width:auto;height:auto;max-width:calc(100% - 16px);padding:10px 14px;margin:8px 0;overflow:visible;clip-path:none;white-space:normal;background:#fff2d7;color:#8a3e29;border:2px solid #bd664d;border-radius:8px;font-size:14px;box-shadow:0 3px 8px #31594f33}
body.editing .orderrail,body.editing .controlbar,body.editing .message,body.editing .callnotice,body.editing .shopstatus,body.editing .hud,body.editing .tools{display:none!important}
body.editing .stage{min-height:0;padding:0 8px}
body.editing canvas{cursor:grab}body.editing canvas:active{cursor:grabbing}
body.editing main{min-height:0}
@media(max-width:700px){body.editing header{flex-wrap:wrap;gap:6px;padding:6px 8px}body.editing #layouteditor{width:100%;margin:0;justify-content:flex-end}.layoutbuttons{gap:6px}.layoutbuttons button{font-size:12px;padding:8px 10px}#extras .upgrade{gap:8px}#extras .upgrade button{white-space:normal}}


.couponcode{font-size:38px;font-weight:900;letter-spacing:5px;background:#f2ddb0;padding:18px;border-radius:14px;color:#31594f}#confirmreset{color:#9b4439}#resetdialog p{max-width:38ch}
[hidden]{display:none!important}
/* Reserve status space so interaction text cannot move or resize the floor. */
main{overflow-anchor:none}
.message{height:54px;min-height:54px;max-height:54px;overflow-y:auto;display:flex;align-items:center;justify-content:center}
.controlbar{height:76px;min-height:76px;max-height:76px}
.actioncue{height:54px;min-height:54px;overflow-y:auto}
.callnotice{position:absolute;z-index:5;left:200px;right:20px;bottom:138px;max-height:70px;overflow-y:auto;border:2px solid #c18d47;border-radius:9px;box-shadow:0 3px 8px #31594f33}
@media(min-width:701px) and (max-width:1100px){.callnotice{left:170px}}
@media(max-width:700px){
 main{min-height:750px}
 .orderrail{height:178px;min-height:178px;max-height:178px}
 #tickets{height:164px;min-height:164px;max-height:164px;align-items:flex-start;overflow-y:auto}
 .message{height:60px;min-height:60px;max-height:60px}
 .controlbar{height:108px;min-height:108px;max-height:108px}
 .actioncue{height:80px;min-height:80px}
 .callnotice{left:8px;right:8px;bottom:176px;max-height:80px}
}
/* Direct touch movement is enabled only on devices with touch input. */
.touch-move-hint,.touch-action-label{display:none}
.touch-controls .keyhint{display:none}
.touch-controls .touch-move-hint{display:block;font-size:12px;line-height:1.5;max-width:155px;color:#526b5b}
.touch-controls .controlbar{height:96px;min-height:96px;max-height:96px;padding:8px max(14px,env(safe-area-inset-right)) 8px max(14px,env(safe-area-inset-left));gap:18px}
.touch-controls .actioncue{flex:0 1 180px;min-width:0;height:76px;min-height:76px;max-height:76px;border-radius:24px;flex-direction:column;gap:4px;touch-action:manipulation;user-select:none;-webkit-user-select:none;font-size:12px;padding:8px}
.touch-controls .actioncue kbd{display:none}
.touch-controls .touch-action-label{display:block;font-size:22px}
.touch-controls .actioncue:active:not(:disabled){transform:translateY(2px);box-shadow:none}
.touch-controls #prompt{max-width:100%;line-height:1.2}
.touch-controls .tools button{min-height:44px;min-width:44px}
.touch-controls .callnotice{bottom:158px}
@media(max-width:700px){
 .touch-controls main{height:calc(100dvh - 8px);min-height:0}
 .touch-controls header{padding:4px 8px;gap:4px;flex-wrap:wrap}
 .touch-controls h1{font-size:19px}
 .touch-controls .tools{gap:3px;margin-left:auto}
 .touch-controls .tools button{padding:6px 8px}
 .touch-controls .hud{gap:10px;padding:5px 10px}
 .touch-controls .hud strong{font-size:18px}
 .touch-controls .orderrail{height:112px;min-height:112px;max-height:112px}
 .touch-controls #tickets{height:98px;min-height:98px;max-height:98px}
 .touch-controls .stage{min-height:0;padding:0}
 .touch-controls .message{height:44px;min-height:44px;max-height:44px;font-size:11px}
 .touch-controls .controlbar{justify-content:space-between}
 .touch-controls .actioncue{flex-basis:150px}
 .touch-controls .callnotice{left:8px;right:8px;bottom:146px;max-height:70px}
 .touch-controls .shopstatus{display:none}
}
@media(max-height:600px) and (min-width:500px){
 .touch-controls main{height:calc(100dvh - 8px);min-height:0;margin:4px}
 .touch-controls header{height:48px;min-height:48px;padding:2px 10px}
 .touch-controls h1{font-size:20px}
 .touch-controls h1 small{display:none}
 .touch-controls .hud{position:static;height:38px;padding:3px 12px;gap:18px;background:#355f55;color:#fff8dc}
 .touch-controls .hud>div{display:flex;gap:6px;align-items:center}
 .touch-controls .hud span{color:#e2e7d3;font-size:10px;margin:0}
 .touch-controls .hud strong,.touch-controls .hud .timer strong{font-size:18px}
 .touch-controls .orderrail{position:absolute;top:88px;left:6px;bottom:42px;width:120px;right:auto;height:auto;min-height:0;max-height:none;padding:0;background:transparent;border:0}
 .touch-controls .orderrail #tickets{flex-direction:column;height:100%;min-height:0;max-height:100%;overflow-y:auto;overflow-x:hidden;padding:2px}
 .touch-controls .ticket{flex:0 0 auto;min-height:75px;width:100%}
 .touch-controls .stage{min-height:0;padding:0 110px 0 130px}
 .touch-controls .message{height:36px;min-height:36px;max-height:36px;padding:4px 8px;font-size:11px}
 .touch-controls .controlbar{position:absolute;left:auto;right:6px;width:100px;bottom:42px;height:100px;min-height:100px;max-height:100px;background:none;padding:0;pointer-events:none}
 .touch-controls .actioncue{pointer-events:auto}
 .touch-controls .actioncue{flex:0 0 96px;height:90px;min-height:90px;max-height:90px;font-size:11px;border-radius:20px}
 .touch-controls .touch-action-label{font-size:19px}
 .touch-controls .hands,.touch-controls .shopstatus,.touch-controls .touch-move-hint{display:none}
 .touch-controls .callnotice{left:136px;right:116px;bottom:42px;max-height:54px;font-size:11px}
}
/* The editor uses the header, leaving the full floor available. */
@media(max-height:600px) and (min-width:500px){body.editing main{width:calc(100% - 8px);height:calc(100dvh - 8px);margin:4px}body.editing header{flex-wrap:nowrap;min-height:52px}body.editing #layouteditor{width:auto;margin-left:auto}body.editing .stage{padding:0 5px}}

.challengechoice{display:flex;align-items:center;gap:10px;margin:14px 0;font-size:14px;line-height:1.4;text-align:left}.challengechoice input{width:22px;height:22px;accent-color:#46766b;flex-shrink:0}
#decorcolors{position:absolute;right:8px;top:100%;margin-top:8px;display:flex;gap:4px;padding:6px;background:#fff2d7;border:2px solid #46766b;border-radius:12px;box-shadow:0 3px 8px #31594f33}
.colorswatch{width:44px;min-width:44px;height:44px;padding:5px;background:var(--swatch);border:2px solid #fff6e6;box-shadow:inset 0 0 0 1px #31594f44}.colorswatch:hover{background:var(--swatch);filter:brightness(1.07)}.colorswatch[aria-pressed=true]{border:3px solid #315951}.colorswatch[aria-pressed=true]::after{content:'✓';color:#254b48;font-size:22px}
@media(max-width:380px){#decorcolors{gap:2px;padding:4px;right:4px}}

#decorcolors{display:grid;grid-template-columns:repeat(6,44px)}
#decorcolors>span{grid-column:1 / -1;font-size:13px;font-weight:700;padding:1px 4px}
#wallcolor{min-height:44px;padding:8px 10px;font-size:13px}
/* Colored pencil on warm paper, matching the supplied salon reference. */
@font-face{font-family:'Salon Hand';src:url('salon-hand.ttf') format('truetype');font-display:swap}
:root{--ink:#302a26;--cream:#fff3d3;--orange:#c45437;--mint:#b0e77c}
body{background-color:#66dcd8;background-image:repeating-linear-gradient(132deg,transparent 0 3px,#fff9df40 3px 4px,transparent 4px 9px);color:var(--ink);font-family:'Salon Hand','Comic Sans MS',cursive}
main{border:3px solid #302a26;border-radius:22px 15px 24px 12px;box-shadow:3px 4px 0 #302a2655;background:#ffe8c6}
header,.controlbar,.message,dialog,.hud{background-color:#fff3d3;background-image:repeating-linear-gradient(140deg,transparent 0 5px,#d7a96812 5px 6px,transparent 6px 10px);color:#302a26;box-shadow:none}
h1,dialog h2,.hud>strong,.hud strong,kbd{font-family:'Salon Hand','Comic Sans MS',cursive;letter-spacing:0;text-shadow:none}
h1{font-size:30px}h1 small{font-family:inherit;color:#655449;font-size:14px}
button{border:2px solid #302a26;border-radius:13px 9px 14px 10px;color:#302a26;box-shadow:1px 2px 0 #302a2633}
.tools button{font-size:16px;background:#c4ed8b;border:2px solid #302a26;color:#302a26;box-shadow:1px 2px 0 #302a2633}
.tools button:hover,.primary:hover,.actioncue:hover{background:#a4ef68}
.hud{border-bottom:2px solid #302a26;color:#302a26}.hud span,.hud strong small{color:#514235;font-size:14px}.hud>strong{font-size:27px}.hud .timer strong{background:#ffe282;color:#302a26;border:2px solid #302a26;border-radius:45%;box-shadow:2px 2px 0 #d4a848}
.ticket,.ticket.queue,.ticket.ready{background:#fff3d3;border:2px solid #302a26;border-radius:16px 12px 18px 10px;box-shadow:2px 3px 0 #302a2620}.ticket.ready{background:#e0f5bc}.tickethead{font-size:18px}.tickethead small{font-size:12px;color:#544638}.ticket p{font-size:12px;color:#544638}.steps{font-size:12px}.steps span{background:#f5e2bc;color:#514235}.steps .current{background:#ffe282;color:#302a26}.meter{height:5px;border:1px solid #5b4732;background:#f6dfb6}.meter i{background:#f49d88}
.stage{background:#ffe5c5}canvas{filter:none}.shopstatus{background:#fff3d3;color:#302a26;border:2px solid #302a26;font-size:14px}
.message{font-size:17px;border-top:2px solid #302a26}.controlbar{border-top:1px solid #b18c56}.keyhint,.hands{font-size:16px;color:#302a26}.keyhint .pausehint{font-size:14px;color:#514235}
kbd{background:#fff1c9;border:2px solid #302a26;border-bottom-width:3px;font-size:20px;color:#302a26;border-radius:8px 6px 10px 7px}
.actioncue,.primary{background:#b6f16b;border:2px solid #302a26;color:#302a26;box-shadow:2px 3px 0 #302a2633;border-radius:26px;font-size:20px}.actioncue:disabled{background:#e4e6c7;border-color:#7a715c;color:#605b4c}
dialog{border:3px solid #302a26;border-radius:24px 16px 28px 18px}dialog h2{font-size:48px}dialog p,ol{font-size:17px}.small{font-size:14px!important;color:#655449}.instructions{background:#f7e6be}.instructions strong{font-size:16px}
.desktop-choice{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:16px 0}.desktop-choice>span{width:100%;font-size:18px}.desktop-choice button{flex:1;min-height:44px;background:#fff3d3;font-size:17px}.desktop-choice button[aria-pressed=true]{background:#b6f16b;box-shadow:inset 0 0 0 2px #fff3d3}
.mouse-hint{display:none;font-size:16px}.mouse-controls:not(.touch-controls) .mouse-hint{display:block}.mouse-controls:not(.touch-controls) .keyhint{display:none}.mouse-controls:not(.touch-controls) canvas{cursor:pointer}.touch-controls .desktop-choice,.touch-controls .desktop-help{display:none}
body.editing .mouse-hint{display:none}.touch-controls .hud{background:#fff3d3;color:#302a26}.touch-controls .hud span{color:#514235}
@media(max-width:700px){h1{font-size:23px}.tools button{font-size:13px;padding:5px 8px}.message{font-size:14px}.tickethead{font-size:16px}.steps{font-size:11px}.hud span{font-size:11px}.actioncue{font-size:17px}.shopstatus{font-size:12px}}
@media(max-height:600px){.tools button{font-size:13px}.message{font-size:13px}.touch-controls .hud{background:#fff3d3;color:#302a26}.touch-controls .hud span{color:#514235}}

.mouse-controls:not(.touch-controls) .actioncue kbd{display:none}.mouse-controls:not(.touch-controls) .touch-action-label{display:inline;font-size:17px}

.touch-controls #intro .instructions{display:none}
/* Mobile play uses the viewport as its camera, with controls above the floor. */
.touch-controls body{margin:0;overflow:hidden;overscroll-behavior:none}
.touch-controls main{width:100%;max-width:none;height:100dvh;min-height:0;margin:0;border:0;border-radius:0;box-shadow:none;overflow:hidden}
.touch-controls body:not(.editing) .stage{position:absolute;inset:0;width:100%;height:100%;padding:0;min-height:0;display:block;background:#ffe5c5}
.touch-controls body:not(.editing) canvas#salon{max-width:none;max-height:none;outline:none}
.touch-controls body:not(.editing) header{position:absolute;top:env(safe-area-inset-top,0px);left:0;right:0;height:48px;min-height:48px;padding:2px max(8px,env(safe-area-inset-right)) 2px max(8px,env(safe-area-inset-left));background:none;box-shadow:none;flex-wrap:nowrap;pointer-events:none}
.touch-controls body:not(.editing) header h1{font-size:16px;padding:4px 7px;border-radius:12px;background:#fff4d9cc;white-space:nowrap}
.touch-controls body:not(.editing) header h1 small{display:none}
.touch-controls body:not(.editing) .tools{pointer-events:auto;gap:3px;margin-left:auto}
.touch-controls body:not(.editing) .tools button{min-width:44px;min-height:44px;font-size:12px;padding:4px 6px;background:#fff4d9bb;box-shadow:none;border-color:#302a2680}
.touch-controls body:not(.editing) .hud{position:absolute;top:calc(51px + env(safe-area-inset-top,0px));left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));height:33px;padding:0;display:flex;justify-content:flex-start;align-items:center;gap:7px;background:none;border:0;box-shadow:none;pointer-events:none;color:#302a26}
.touch-controls body:not(.editing) .hud>strong,.touch-controls body:not(.editing) .hud>div{display:flex;gap:4px;align-items:center;border-radius:12px;background:#fff4d9cc;padding:3px 7px;margin:0;font-size:16px}
.touch-controls body:not(.editing) .hud strong{font-size:17px}.touch-controls body:not(.editing) .hud span{font-size:11px;color:#302a26;margin:0}
.touch-controls body:not(.editing) .hud .timer strong{font-size:18px;padding:0;background:none;border:0;box-shadow:none}
.touch-controls body:not(.editing) .hud .timer span,.touch-controls #capacity,.touch-controls .shopstatus,.touch-controls .orderrail{display:none}
.touch-controls body:not(.editing) .controlbar{position:absolute;z-index:7;right:max(14px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));left:auto;width:108px;height:108px;min-height:0;max-height:none;margin:0;padding:0;border:0;background:none;box-shadow:none;pointer-events:none}
.touch-controls body:not(.editing) .controlbar .actioncue{pointer-events:auto;flex:0 0 108px;width:108px;height:108px;min-height:108px;max-height:108px;border-radius:50%;padding:10px;background:rgba(255,249,224,.2);border:2px solid rgba(48,42,38,.5);color:#302a26;box-shadow:inset 0 0 0 3px #fff9e522;opacity:1;text-shadow:0 1px 2px #fff9e5;overflow:hidden}
.touch-controls body:not(.editing) .actioncue:disabled{background:rgba(255,249,224,.1);border-color:#302a2640;color:#5c5548;opacity:.55}
.touch-controls body:not(.editing) .actioncue:active:not(:disabled){background:rgba(255,249,224,.42);transform:none}
.touch-controls body:not(.editing) .touch-action-label{font-size:23px}.touch-controls body:not(.editing) #prompt{font-size:12px;line-height:1.15}
.touch-controls .hands,.touch-controls .touch-move-hint{display:none}
.touch-controls body:not(.editing) .message{position:absolute;z-index:6;left:max(12px,env(safe-area-inset-left));right:132px;bottom:max(24px,env(safe-area-inset-bottom));height:auto;min-height:0;max-height:78px;overflow:hidden;border:1px solid #302a2655;border-radius:15px;padding:8px 10px;font-size:14px;line-height:1.25;background:#fff4d9d9;box-shadow:none;pointer-events:none;visibility:hidden}
.touch-controls body:not(.editing) .message.mobile-toast{visibility:visible}
.touch-controls body:not(.editing) .callnotice{position:absolute;z-index:8;top:calc(91px + env(safe-area-inset-top,0px));left:12px;right:12px;bottom:auto;max-height:65px;overflow:auto;padding:7px 10px;font-size:14px;line-height:1.2;border-radius:14px;background:#fff0bcf0;box-shadow:none}
.touch-controls body.editing header{height:auto;min-height:48px}.touch-controls body.editing .stage{min-height:0;padding:0 5px}.touch-controls body.editing #salon{cursor:grab}
@media(max-width:360px){.touch-controls body:not(.editing) header h1{font-size:14px}.touch-controls body:not(.editing) .hud{gap:4px}.touch-controls body:not(.editing) .hud>strong,.touch-controls body:not(.editing) .hud>div{padding:3px 5px}.touch-controls body:not(.editing) .hud span{font-size:10px}}

/* Dog details stay with the dog. Retain the text rail for screen readers. */
.orderrail,.touch-controls .orderrail{display:block;position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%);pointer-events:none}
.stage,body.editing .stage{padding-left:0;padding-right:0}
.shopstatus{display:none}

.brandlogo{display:block;width:180px;height:auto;border-radius:5px} .touch-controls .brandlogo{width:108px} .colorswatch:disabled{opacity:.35;cursor:not-allowed}

.staffchoices{display:grid;gap:9px;margin:18px 0}.staffchoices button{text-align:left;min-height:48px;border:2px solid transparent}.staffchoices button[aria-pressed="true"]{background:#c9e3b4;border-color:#3f7258}.staffchoices button[aria-pressed="true"]::before{content:"✓ ";}

/* Cain's staging palette, verified November 8, 2026. */
:root{--ink:#014566;--cream:#f4f0ee;--orange:#a4472a;--mint:#dde7ea;--brand-gold:#ddb057}
body{background-color:#014566;color:var(--ink)}
main{border-color:var(--ink);background:#f4f0ee}
header,.controlbar,.message,dialog{background-color:var(--cream);color:var(--ink);border-color:var(--ink)}
h1,h1 small,dialog h2,.hud,.hud span,.hud strong small,.keyhint,.hands,.keyhint .pausehint,.mouse-hint{color:var(--ink)}
button:not(.colorswatch){color:var(--ink);border-color:var(--ink);background-color:#e3e9eb}
button:not(.colorswatch):hover{background-color:#d1dfe5}
.tools button,.primary,.actioncue{background:var(--brand-gold);color:var(--ink);border-color:var(--ink)}
.tools button:hover,.primary:hover,.actioncue:hover{background:#e9c47c}
button:focus-visible,canvas:focus-visible{outline-color:#a4472a}
.hud{background-color:var(--cream);border-color:var(--ink)}
.hud .timer strong{background:var(--brand-gold);color:var(--ink);border-color:var(--ink);box-shadow:2px 2px 0 #b78d3e}
.stage{background:#e2d7c6}
kbd{background:#fffaf4;color:var(--ink);border-color:var(--ink)}
.instructions,.shopaddition{background:#e4e9e9;color:var(--ink)}
.small,.small a{color:#335366}
.characterchoice{background:#fffaf4;color:var(--ink)}
.characterchoice[aria-pressed=true],.desktop-choice button[aria-pressed=true],.staffchoices button[aria-pressed=true]{background:#ead7ad;border-color:var(--ink);box-shadow:inset 0 0 0 2px #f4f0ee}
.actioncue:disabled{background:#e4e4df;color:#52636b;border-color:#72828a}
#decorcolors,#layoutequipment{background:#f4f0ee;color:var(--ink);border-color:var(--ink)}
.challengechoice input{accent-color:var(--ink)}
@media(min-width:1101px){.hud{background:none}}
.touch-controls .hud,.touch-controls .hud span{color:var(--ink)}
.touch-controls body:not(.editing) header h1,.touch-controls body:not(.editing) .hud>strong,.touch-controls body:not(.editing) .hud>div{background:#f4f0eed9;color:var(--ink)}
.touch-controls body:not(.editing) .tools button{background:#f4f0eebb;color:var(--ink);border-color:#01456680}
.touch-controls body:not(.editing) .hud{background:none;color:var(--ink)}
.touch-controls body:not(.editing) .hud span{color:var(--ink)}
.touch-controls body:not(.editing) .controlbar .actioncue{background:#f4f0ee33;border-color:#01456680;color:var(--ink)}
.touch-controls body:not(.editing) .actioncue:disabled{background:#f4f0ee1a;border-color:#01456640;color:#52636b}
.touch-controls body:not(.editing) .actioncue:active:not(:disabled){background:#f4f0ee6b}
.touch-controls body:not(.editing) .message{background:#f4f0eed9;color:var(--ink);border-color:#01456655}

html:not(.touch-controls) main{height:calc(100dvh - 80px);min-height:540px}
#admincontrols{position:fixed;bottom:0;left:0;right:0;z-index:9;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;padding:6px 10px;background:#f4f0ee;color:#014566;border-top:1px solid #ddb057;font-size:13px}
#admincontrols button{min-height:36px;padding:5px 9px;font-size:13px}#admincontrols input{width:60px;min-height:36px;border:1px solid #014566;border-radius:5px;font:inherit;background:#fff;padding:4px;color:#014566}#admincontrols small{font-size:11px}
.touch-controls #admincontrols{position:fixed;left:0;right:0;bottom:0;z-index:9;gap:4px;padding:3px 5px calc(3px + env(safe-area-inset-bottom,0px));font-size:12px}
.touch-controls #admincontrols button{min-height:44px;font-size:12px;padding:4px 6px}.touch-controls #admincontrols input{min-height:44px;width:49px;font-size:16px}.touch-controls #admincontrols small{display:none}
.touch-controls body:not(.editing) .controlbar{bottom:calc(70px + env(safe-area-inset-bottom,0px))}.touch-controls body:not(.editing) .message{bottom:calc(76px + env(safe-area-inset-bottom,0px))}

.ownerstory{opacity:.7;position:absolute;z-index:10;border:2px solid #014566;border-radius:18px;background:#fffaf0f5;padding:12px 14px;color:#014566;box-shadow:0 3px 0 #ddb05788;pointer-events:none;font-size:16px;line-height:1.35}.ownerstory[hidden]{display:none}.ownerstory p{min-height:44px;margin:7px 0}.ownerstory>div{display:flex;gap:8px;align-items:center;justify-content:space-between}.ownerstory small{font-size:12px}.ownerstory button{pointer-events:auto;font-size:12px;padding:5px 8px;min-height:36px}#storyhistory article{padding:10px 0;border-bottom:1px solid #ddb05766}#storyhistory h3{font-size:18px;margin:4px 0}#storyhistory p{margin:5px 0}.touch-controls .ownerstory{font-size:16px}.touch-controls .ownerstory button{min-height:44px}#storydialog input{width:20px;height:20px;vertical-align:middle}

#storypage{display:block;margin:2px 0 6px;font-size:12px}#storypage:empty{display:none}.ownerstory p{min-height:78px}#storyhistory article p+p{margin-top:12px}

#storychoices[hidden]{display:none}#storychoices{margin:8px 0;gap:8px}#storychoices button{flex:1;min-height:44px}

/* Larger purchase menu, scoped to the shop between rounds. */
#shopdialog{width:calc(100vw - 32px);max-width:780px;max-height:calc(100dvh - 32px);padding:39px 44.2px;font-size:20.8px;border-width:3.9px;border-radius:31.2px 20.8px 36.4px 23.4px}
#shopdialog h2{font-size:62.4px}
#shopdialog p{font-size:22.1px}
#shopdialog .eyebrow{font-size:14.3px;margin:18.2px 0}
#shopdialog .small{font-size:18.2px!important}
#shopdialog button{font-size:20.8px;min-height:57.2px;padding:11.7px 20.8px;border-radius:13px}
#shopdialog .primary{font-size:26px;padding:19.5px 26px;margin-top:26px;border-radius:33.8px}
#shopdialog .secondary{margin-top:18.2px;margin-bottom:10.4px}
#shopdialog .upgrades{gap:10.4px;margin:23.4px 0}
#shopdialog .upgrade{padding:16.9px;gap:13px;border-radius:14.3px}
#shopdialog .upgrade>div{min-width:0}
#shopdialog .upgrade strong{font-size:18.2px}
#shopdialog .upgrade small{font-size:14.3px;margin-top:5.2px}
#shopdialog .upgrade button{font-size:15.6px;flex-shrink:0}
#shopdialog .shopaddition{padding:18.2px;margin:23.4px 0;border-radius:15.6px}
#shopdialog .shopaddition p{font-size:18.2px}
#shopdialog #extras h3{font-size:24.7px;margin:20.8px 0 13px}
#shopdialog #extras canvas{width:156px!important;max-width:40%;height:auto}
#shopdialog #shopnote{font-size:15.6px;min-height:26px}
#shopdialog .challengechoice{font-size:20.8px;gap:13px}
#shopdialog input[type=checkbox]{width:23.4px;height:23.4px;flex-shrink:0}
@media(max-width:600px){#shopdialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:26px 20px}#shopdialog .upgrade{align-items:flex-start;flex-wrap:wrap}#shopdialog .upgrade>div{flex:1 1 170px}#shopdialog .upgrade button{margin-left:auto;white-space:normal}#shopdialog .shopaddition>button{width:100%}}

/* Customer text scrolls within a fixed bubble. */
.ownerstory{height:112px;padding:6px 8px;display:flex;flex-direction:column;gap:2px;overflow:visible}
.ownerstory .storyheading{flex:0 0 32px;min-height:32px;gap:6px}
#storyspeaker{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ownerstory .storyheading button{flex-shrink:0;min-height:32px;margin:0;padding:3px 6px}
#storyviewport{display:block;flex:0 0 2.8em;min-height:0;overflow:hidden;position:relative}
#storyviewport #storytext{min-height:0;margin:0;white-space:pre-line;line-height:1.4;transition:transform .8s linear;will-change:transform}
.ownerstory .storymeta{flex:0 0 14px;min-height:14px;gap:4px;font-size:12px;line-height:14px}
#storypage{margin:0;white-space:nowrap}
#storytiming{margin-left:auto;white-space:nowrap}
#storychoices{position:absolute;top:calc(100% + 4px);left:0;right:0;margin:0;gap:6px;padding:4px;background:#fffaf0f5;border:2px solid #014566;border-radius:12px}
#storychoices button{padding:4px 6px;font-size:12px;min-height:44px}
.touch-controls .ownerstory{height:124px}
.touch-controls .ownerstory .storyheading{flex-basis:44px;min-height:44px}
.touch-controls .ownerstory .storyheading button{min-height:44px}
@media(prefers-reduced-motion:reduce){#storyviewport #storytext{transition:none}}

#shopdialog .assistantoptions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:0 0 16px}
#shopdialog .assistantchoice{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;padding:10px;border:2px solid #c9b998;background:#f8f4e9}
#shopdialog .assistantchoice[aria-pressed=true]{border-color:#014566;background:#dce9e9;box-shadow:inset 0 0 0 2px #014566}
#shopdialog #extras .assistantchoice canvas{width:156px!important;max-width:100%;height:auto;float:none;pointer-events:none}
#shopdialog .receptionistportrait{float:right;margin:0 0 8px 12px;pointer-events:none}

/* Compact mobile groomer choice. */
#characterdialog .pickerclosemark{display:none}
#characterdialog.mobile-picker{padding:16px;max-height:calc(100dvh - 16px)}
#characterdialog.mobile-picker h2{margin:0 46px 8px 0;font-size:28px;outline:none}
#characterdialog.mobile-picker .pickerintro{display:none}
#characterdialog.mobile-picker .charactergrid{margin:8px 0 12px}
#characterdialog.mobile-picker #characterstatus:empty{display:none}
#characterdialog.mobile-picker #confirmcharacter{background:#014566;color:#e0e2e4;border-color:#014566;box-shadow:none;scroll-margin-bottom:12px}
#characterdialog.mobile-picker #confirmcharacter:disabled{opacity:.5;cursor:default}
#characterdialog.mobile-picker #cancelcharacter{position:absolute;right:10px;top:10px;display:grid;place-items:center;width:40px;height:40px;min-height:40px;margin:0;padding:0;border:1px solid #b6bdc1;border-radius:6px;background:#d9dddf;color:#59636b;box-shadow:none}
#characterdialog.mobile-picker .pickerbacktext{display:none}
#characterdialog.mobile-picker .pickerclosemark{display:block;font:28px/1 Arial,sans-serif}

/* Welcome screen, version 52. */
#intro{text-align:center;padding:28px 26px 22px}
#intro .intrologo{display:flex;flex-direction:column;align-items:center;gap:8px;margin:0 auto 14px}
#intro .intrologo img{display:block;height:auto}
#intro .intrologo img:first-child{width:104px}
#intro .intrologo img:last-child{width:190px}
#intro h2{margin:0}
#intro .introlead{margin:10px auto 0;max-width:330px;line-height:1.45}
#intro .instructions{text-align:left}
#intro .shiftcard{margin-top:18px;padding:14px 16px;background:#fffaf4;border:2px solid #d9d3cc;border-radius:18px;text-align:left;display:flex;flex-direction:column;gap:8px}
#intro .shifthead{display:flex;align-items:center;justify-content:space-between;gap:10px;font-family:'Salon Hand','Comic Sans MS',cursive;font-size:22px}
#intro .daychip{background:var(--ink);color:#f4f0ee;font:700 13px/1 ui-rounded,'Trebuchet MS',Arial,sans-serif;padding:6px 12px;border-radius:999px}
#intro .shiftline{margin:0;font-size:15px;line-height:1.4;font-weight:700}
#intro .cainteaser{color:var(--orange)}
#intro .cainteaser[hidden]{display:none}
#intro .introswitch{margin:4px 0 0;padding-top:10px;border-top:1px solid #e3ddd5;justify-content:space-between;cursor:pointer}
#intro .introswitch>span{display:flex;flex-direction:column;gap:1px}
#intro .introswitch strong{font-size:16px}
#intro .introswitch small{font-size:14px;color:#335366}
#intro .introswitch input{appearance:none;-webkit-appearance:none;position:relative;width:52px;height:30px;margin:7px 0;border-radius:999px;background:#bfc6c9;cursor:pointer;transition:background .2s;flex-shrink:0}
#intro .introswitch input::after{content:'';position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fffaf4;box-shadow:0 1px 3px #0004;transition:left .2s}
#intro .introswitch input:checked{background:var(--orange)}
#intro .introswitch input:checked::after{left:25px}
#intro .introswitch input:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
#intro .primary{margin-top:18px;background:var(--orange);color:#fffaf4;border:2px solid #6e2f1a;box-shadow:0 4px 0 #6e2f1a;font-size:24px}
#intro .primary:hover{background:#8e3d22}
#intro .secondary{margin-top:6px;background:transparent;border:0;box-shadow:none;text-decoration:underline;text-underline-offset:4px}
#intro .secondary:hover{background:transparent;color:#012f46}
#intro #introstatus:empty{display:none}
@media(prefers-reduced-motion:reduce){#intro .introswitch input,#intro .introswitch input::after{transition:none}}


/* Keep the next day action visible while purchases scroll. */
#shopdialog{padding:0;overflow:hidden}
#shopdialog[open]{display:flex;flex-direction:column}
#shopdialog .shopbody{min-height:0;overflow:auto;padding:39px 44.2px 24px;overscroll-behavior:contain}
#shopdialog .shopfooter{flex-shrink:0;padding:14px 44.2px 24px;background:#f8f4e9;border-top:2px solid #c9b998}
#shopdialog #next{margin:0;background:#014566;color:#d9d9d9;box-shadow:0 4px 0 #002e45}
#shopdialog #next:hover{background:#075b7d}
@media(max-width:600px){#shopdialog .shopbody{padding:26px 20px 20px}#shopdialog .shopfooter{padding:12px 20px max(18px,env(safe-area-inset-bottom))}#shopdialog #next{font-size:23px;padding:16px 12px}}

#pausedialog #resume{background:#014566;color:#d9d9d9;box-shadow:0 4px 0 #002e45}
#pausedialog #resume:hover{background:#075b7d}

#shopdialog details{margin:14px 0;border:2px solid #b9c9cc;border-radius:14px;background:#fcfaf3;overflow:hidden}
#shopdialog summary{cursor:pointer;padding:18px;color:#014566;background:#e2e9eb;font-weight:700;font-size:24px;min-height:60px}
#shopdialog summary:focus-visible{outline:3px solid #b7872d;outline-offset:-4px}
#shopdialog details>div,#shopdialog details>p{margin:14px}
#shopdialog .categoryhint{font-size:17px;line-height:1.5}
#shopdialog .shopsettings>button,#shopdialog .shopsettings>label{width:calc(100% - 28px);margin:14px}
#shopdialog .servicepurchase{flex-wrap:wrap;margin:12px 0}
#shopdialog .servicepurchase>div{flex:1 1 200px}
#shopdialog .stockcount{font-size:16px;margin-top:8px}
#shopdialog .supplytoggle{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;font-size:17px;cursor:pointer}

/* Mobile play keeps the floor clear, including short landscape screens. */
.mobilepauseoptions,#mobilecall{display:none}
#fullscreen{display:none;font:24px/1 Arial,sans-serif;min-width:44px;min-height:44px}
.touch-controls .mobilepauseoptions,.touch-controls #fullscreen{display:block}
.touch-controls .mobilepauseoptions summary{padding:14px 0;cursor:pointer;min-height:44px}
.touch-controls #pausedialog #admincontrols{position:static;display:flex;padding:8px 0;border:0;background:none;justify-content:flex-start}
.touch-controls body>#admincontrols{display:none}
.touch-controls body:not(.editing) header h1,.touch-controls body:not(.editing) #sound,.touch-controls body:not(.editing) #help{display:none}
.touch-controls body:not(.editing) header{height:48px;min-height:48px;z-index:12}
.touch-controls body:not(.editing) .hud{top:calc(5px + env(safe-area-inset-top,0px));right:112px;height:38px;gap:4px;z-index:11;white-space:nowrap}
.touch-controls body:not(.editing) .hud>strong,.touch-controls body:not(.editing) .hud>div{font-size:15px;padding:4px 6px}
.touch-controls body:not(.editing) .hud strong,.touch-controls body:not(.editing) .hud .timer strong{font-size:16px}
.touch-controls body:not(.editing) .hud span,.touch-controls body:not(.editing) .hud>div:nth-of-type(2),.touch-controls body:not(.editing) #cash small{display:none}
.touch-controls body:not(.editing) #cash::before{content:'●';font-size:11px;color:#b7872d;margin-right:4px}
.touch-controls body:not(.editing) .callnotice,.touch-controls body:not(.editing) .message,.touch-controls body:not(.editing) .message.mobile-toast{display:none}
.touch-controls #mobilecall:not([hidden]){display:block;position:absolute;z-index:11;top:calc(51px + env(safe-area-inset-top,0px));left:max(8px,env(safe-area-inset-left));width:auto;min-width:72px;min-height:44px;padding:6px 10px;border-radius:15px;background:#fff0bce8;font-size:17px;box-shadow:none}
.touch-controls body:not(.editing) .ownerstory{height:42px;padding:4px 8px;border-width:1px;border-radius:12px;box-shadow:none;top:auto;bottom:calc(8px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);max-width:280px;overflow:hidden;font-size:16px}
.touch-controls .ownerstory .storyheading,.touch-controls .ownerstory .storymeta{display:none}
.touch-controls .ownerstory{overflow:visible}
.touch-controls #storychoices:not([hidden]){display:flex;top:auto;bottom:calc(100% + 4px)}
.touch-controls .ownerstory #storyviewport{flex:0 0 2.8em}
.touch-controls .ownerstory #storytext{min-height:0}
.touch-controls #pausedialog{max-height:calc(100dvh - 16px)}
@media(max-height:500px){.touch-controls body:not(.editing) .tools button{font-size:12px}.touch-controls body:not(.editing) .ownerstory{max-width:260px}}

/* Home Screen guidance is visible before mobile players clock in. */
.homestarttip{display:none}
.touch-controls #intro .homestarttip{display:block;margin:14px 0 0;padding:12px 14px;border-radius:12px;background:#dde7ea;text-align:left;color:#014566}
.touch-controls #intro .homestarttip strong{font-size:16px}
.touch-controls #intro .homestarttip p{margin:5px 0 0;font-size:14px;line-height:1.4}

@media(orientation:landscape){.touch-controls body:not(.editing) .stage{display:flex;align-items:center;justify-content:center;background:#e2d7c6}}

.stafftraining{margin-top:20px;padding-top:16px;border-top:1px solid #c6d8d6}.stafftraining strong{display:block}.stafftraining button{width:100%;white-space:normal}

.roundrating{padding:18px;margin:12px 0 20px;background:#fff8e6;border:2px solid #b18c40;border-radius:16px;text-align:center;color:#014566}.roundrating h3{margin:0}.ratingstars{font:40px/1.3 Georgia,serif;color:#a37518;letter-spacing:4px}.roundrating p{margin:8px 0}.roundrating blockquote{margin:12px auto;max-width:36em;font-size:1.1em}.roundrating a{color:#014566;text-decoration:underline;font-size:.8em}.ratingimpact{font-weight:bold}

/* Compact dialogue is drawn directly over the salon. */
.ownerstory,.touch-controls body:not(.editing) .ownerstory{opacity:1;background:transparent;border:0;border-radius:0;box-shadow:none;padding:0;height:2.8em;max-width:none;bottom:auto;left:0;top:0;transform:none;overflow:hidden;pointer-events:none;font-size:16px;line-height:1.4;color:#014566;text-shadow:0 1px 2px #fff,0 -1px 2px #fff,1px 0 2px #fff,-1px 0 2px #fff,0 0 4px #fff}
.ownerstory .storyheading,.ownerstory .storymeta,.ownerstory #storychoices{display:none}
.ownerstory #storyviewport{flex:0 0 2.8em}

#shopdialog #rearrange{display:block;width:auto;max-inline-size:100%;min-height:66px;margin:0 auto 12px;padding:12px 30px;font-size:1.6875rem;line-height:1.15;white-space:normal;background:#8bbbd2;color:#014566;border:1px solid #6c9db7;box-shadow:none}
#shopdialog #rearrange:hover{background:#7aabc4}

/* Welcome arrangement button echoes the day start button at half width. */
#intro #arrangeintro{display:block;width:50%;min-height:44px;margin:12px auto 0;padding:8px 10px;border:2px solid #638da2;border-radius:26px;background:#80a2b3;color:#014566;box-shadow:0 2px 0 #638da2;font-size:18px;line-height:1.25;text-decoration:none}
#intro #arrangeintro:hover{background:#7198ad}
#intro .instructions kbd{flex-shrink:0}

#pausedialog #resetprogress{background:#e3e3e3;color:#454b50;border-color:#b4b8bb;box-shadow:0 2px 0 #b4b8bb}
#pausedialog #resetprogress:hover{background:#d4d4d4}

/* Coin totals remain visible above every shop category. */
/* Welcome controls show the physical keyboard layout beside the mouse. */
#intro .welcomecontrols{display:grid;grid-template-columns:minmax(0,1.5fr) 22px minmax(0,1fr);gap:12px;align-items:stretch;padding:16px 12px}
#intro .keyboardguide{display:flex;flex-direction:column;align-items:stretch;gap:12px}
#intro .controlrow{display:flex;align-items:center;gap:10px;font-size:17px}
#intro .welcomecontrols kbd{width:28px;height:30px;min-width:28px;font-size:16px;background:#fff9eb;border:1px solid #78939f;border-bottom:4px solid #78939f;color:#014566;box-shadow:0 1px 0 #fff}
#intro .actionkey{width:90px;display:flex;justify-content:center}
#intro .controlseparator{display:flex;flex-direction:column;gap:7px;align-items:center;font-size:16px;color:#527080}
#intro .controlseparator:after{content:'';width:1px;flex:1;background:#98adb6}
#intro .mouseguide{display:flex;flex-direction:column;justify-content:center;gap:7px;font-size:17px;white-space:nowrap}
#intro .mousepicture{width:48px;height:66px;stroke:#014566;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.touch-controls #intro .welcomecontrols{display:none}

button.speakerButton{width:44px;min-height:44px;padding:6px;line-height:1}
.speakerButton svg{display:block;margin:auto}

/* Keep the reception conversation outside the playable floor. */
html:not(.touch-controls) body:not(.editing){height:100dvh;display:flex;flex-direction:column}
html:not(.touch-controls) body:not(.editing)>#admincontrols{position:static;flex:none}
html:not(.touch-controls) body:not(.editing) main{width:100%;max-width:none;height:auto;min-height:0;flex:1 1 0;margin:0;border:0;border-radius:0}
body:not(.editing) header{height:48px;min-height:48px;padding:2px 12px;justify-content:flex-end}
html:not(.touch-controls) body:not(.editing) .hud{position:absolute;inset:0 auto auto 12px;height:48px;padding:0;display:flex;flex-wrap:nowrap;align-items:center;gap:14px;background:none;border:0;box-shadow:none}
html:not(.touch-controls) body:not(.editing) .hud>strong{margin-right:0}
html:not(.touch-controls) body:not(.editing) .stage{position:relative;flex:1 1 0;width:100%;height:auto;min-height:0;padding:0;display:flex;align-items:center;justify-content:center}
body:not(.editing) #salon{display:block;max-width:none;max-height:none;margin:0 auto}
#speechlayer{position:absolute;inset:0;pointer-events:none;z-index:7;overflow:hidden}
.customerBubble{position:absolute;width:max-content;max-width:min(280px,calc(100% - 10px));padding:7px 12px;border:2px solid #274959;border-radius:15px;background:#fffaf0;color:#163a48;font:600 18px/1.25 'Trebuchet MS',sans-serif;overflow-wrap:anywhere;box-shadow:0 2px 0 #17334125}
.customerBubble:after{content:'';position:absolute;bottom:-7px;left:var(--tail,14px);width:10px;height:10px;transform:rotate(45deg);background:#fffaf0;border:solid #274959;border-width:0 2px 2px 0}
#dialogstrip{position:relative;flex:none;color:#173e50;background:#fbf5e8;border-top:2px solid #bea373;padding:5px clamp(8px,2vw,28px);z-index:5;min-width:0}
#dialogbody:not([hidden]){display:flex;align-items:flex-start;gap:10px;padding:4px 0}
#ownerportrait{width:52px;height:52px;min-width:52px;max-width:52px;margin:0;background:#f1dfba;border:1px solid #c6ac7e;border-radius:50%;filter:none}
#readcopy{flex:1;min-width:0;max-height:clamp(84px,17vh,160px);overflow:auto;font:18px/1.4 'Trebuchet MS',sans-serif;overscroll-behavior:contain}
#readcopy p{margin:1px 0 5px;max-width:90ch}
#closeread{padding:0;width:36px;height:36px;min-height:36px;font-size:22px}
#recentlines{display:flex;gap:6px;overflow-x:auto;padding:2px 0}
#recentlines:empty{display:none}
#recentlines button{min-width:0;max-width:26rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-height:32px;padding:3px 9px;text-align:left;color:#1e4e62;background:#fffdf5;border:1px solid #b89c69}
#dialogstrip #message,.touch-controls body:not(.editing) #dialogstrip #message{display:block;position:static;height:auto;min-height:0;max-height:none;transform:none;width:auto;margin:0 auto;padding:3px 0;border:0;background:none;box-shadow:none;opacity:1;color:#234a5a;font-size:15px;text-align:left}
body:not(.editing) .controlbar{display:none}
html:not(.touch-controls) body.showHints:not(.editing) .controlbar{display:flex;justify-content:flex-start;height:auto;min-height:0;max-height:none;padding:2px 14px}
.controlbar .hands{display:none}
body.editing #dialogstrip,body.editing #speechlayer{display:none!important}
.touch-controls body:not(.editing) main{display:flex;flex-direction:column}
.touch-controls body:not(.editing) .stage{position:relative;inset:auto;flex:1 1 0;min-height:0;height:auto;display:flex;align-items:center;justify-content:center}
.touch-controls body:not(.editing) #dialogstrip{padding:3px 8px max(3px,env(safe-area-inset-bottom))}
.touch-controls body:not(.editing) #dialogstrip #message{font-size:14px}
@media(max-height:500px){#readcopy{max-height:68px}#ownerportrait{width:38px;height:38px;min-width:38px;max-width:38px}#recentlines button{min-height:25px;font-size:14px}}
@media(max-width:780px){html:not(.touch-controls) body:not(.editing) .hud{gap:5px}html:not(.touch-controls) .hud span,#capacity{display:none}}

@media(min-width:900px){
 #dialogstrip:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 14px}
 #dialogstrip.reading{grid-template-columns:minmax(0,3fr) minmax(160px,1fr);align-items:start}
 #dialogstrip.reading #dialogbody{grid-column:1;grid-row:1 / 3}
 #dialogstrip.reading #recentlines{grid-column:2;flex-wrap:wrap;max-height:74px}
 #dialogstrip.reading #message{grid-column:2}
 #dialogstrip #message{margin:0}
 #readcopy{max-height:clamp(78px,13vh,148px)}
}

body #stage.night,.touch-controls body:not(.editing) #stage.night{background:#344257}

.jacketpicker{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px;font-weight:700}
.jacketpicker select{font:inherit;color:#014566;background:#fffcf4;border:2px solid #8298a2;border-radius:8px;min-height:44px;padding:4px 10px}
#pauseheading:focus{outline:none}

#staffattire:not([hidden]){display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:8px 0 14px}
#staffattire canvas{width:88px;height:83px;flex:none;margin:0}
#staffattire .jacketpicker{margin:0}
#staffchoices[hidden]{display:none}

/* Admin tools live in a box inside Pause on every layout. */
#pausedialog #admincontrols{position:static;display:flex;flex-wrap:wrap;gap:7px;padding:4px 0 12px;border:0;background:none;justify-content:flex-start}
.adminbox{margin:10px 0;padding:0 12px;border:2px solid #8298a2;border-radius:10px;text-align:left}
.adminbox summary{box-sizing:border-box;min-height:44px;padding:11px 0;cursor:pointer;font-weight:700}
#pausedialog #admincontrols>strong{display:none}

/* One large way out of shop edit mode, over the outdoor area. */
#donelayout{display:none}
body.editing .stage{position:relative}
body.editing #donelayout{touch-action:manipulation;display:block;position:absolute;left:50%;bottom:max(14px,3%);transform:translateX(-50%);z-index:8;width:auto;min-height:64px;margin:0;padding:12px 40px;font-size:clamp(20px,2.4vw,28px);white-space:nowrap;background:#014566;color:#fff;border:2px solid #014566;border-radius:16px;box-shadow:0 4px 0 #012f45}

/* Keep the strip under the floor one steady height, so the first customer line of the day cannot nudge the salon. */
#recentlines{min-height:36px}
#dialogstrip #recentlines:empty{display:flex}
@media(max-height:500px){#recentlines{min-height:29px}}

/* Today's book: one board on the left where each dog's card moves from Coming in, to In the shop, to Going home. */
#daybook[hidden]{display:none}
#daybook{position:absolute;left:0;top:0;bottom:0;width:256px;box-sizing:border-box;z-index:8;overflow-y:auto;overscroll-behavior:contain;padding:8px 10px 10px;background:#f4f0ee;border-right:2px solid #014566;color:#014566;text-align:left;font-variant-numeric:tabular-nums}
html:not(.touch-controls) body.daybook-on:not(.editing) .stage{padding-left:256px}
#daybook h2{margin:0 0 2px;font-size:22px;line-height:1.2}
#daybook h3{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin:8px 0 4px;font-size:17px;line-height:1.2}
#daybook h3 small{font-size:14px;font-weight:400;color:#4a5a63}
.bookcard{display:grid;grid-template-columns:44px minmax(0,1fr);gap:2px 8px;align-items:center;margin:0 0 5px;padding:5px 7px;background:#fff;border:2px solid #d9d2c8;border-radius:11px}
.bookcard:hover{box-shadow:0 0 0 2px #a4472a}
.bookcard.due{border-color:#ddb057}
.bookcard.late{border-color:#a4472a}
.bookface{display:block;width:44px;height:44px;box-sizing:border-box;border:2px solid #014566;border-radius:50%;background:#eaf1f4;overflow:hidden}
.bookface canvas{display:block;width:100%;height:100%;border-radius:50%;background:#eaf1f4}
.bookface[style]{border:0;padding:4px;background:conic-gradient(#b7791f calc(var(--left)*1%),#e5ded3 0)}
.bookcard.late .bookface[style]{background:conic-gradient(#a4472a calc(var(--left)*1%),#e5ded3 0)}
.bookcard.faded .bookface{border:2px dashed #7a8b94;padding:0;background:#eaf1f4}
.bookcard.faded .bookface canvas{opacity:.55}
.bookname{display:flex;justify-content:space-between;align-items:baseline;gap:6px}
.bookname strong{min-width:0;font-size:18px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bookname small{flex:none;font-size:14px;color:#4a5a63;white-space:nowrap}
.chips{display:flex;flex-wrap:wrap;gap:3px;margin-top:3px}
.chip{display:inline-flex;align-items:center;min-height:20px;box-sizing:border-box;padding:0 6px;border:1.5px solid #014566;border-radius:10px;font-size:13px;line-height:1;white-space:nowrap}
.chip.done{background:#3f6b55;border-color:#3f6b55;color:#fff}
.chip.done:before{content:'✓';margin-right:3px}
.chip.doing{background:#ddb057;border-color:#ddb057}
.chip.extra{border-style:dashed}
.chip.extra.done{border-style:solid}
.booknote{grid-column:1 / -1;margin:2px 0 0;font-size:14px;line-height:1.25;color:#4a5a63}
.bookcard.due .booknote{padding:2px 7px;border-radius:7px;background:#fbebcb;color:#014566}
.bookcard.late .booknote{padding:2px 7px;border-radius:7px;background:#fbe3da;color:#7c2d12}
.bookempty,.bookmore{margin:0 0 4px;font-size:14px;color:#4a5a63}
.bookmore{text-align:center}
.bookhome{margin:8px 0 0;padding-top:6px;border-top:2px solid #d9d2c8;text-align:center;font-size:15px;color:#4a5a63}
@media(max-height:500px){body.editing #donelayout{bottom:6px;min-height:48px;padding:8px 26px;font-size:18px}}

#shopdialog .shopheader{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:center;align-items:center;flex-shrink:0;gap:4px 16px;min-height:110px;padding:10px 20px;background:#fff5da;border-bottom:2px solid #c9b998;color:#014566}
#shopdialog .shopwallet{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 20px;line-height:1.12;font-variant-numeric:tabular-nums}
#shopdialog .shopearned{font-size:23px}
#shopdialog .shopmath{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;gap:2px 8px;font-size:28px}
#shopdialog #wagereserve{color:#ad352e}
#shopdialog #shopavailable{font-size:38px;font-weight:800}
#shopdialog #totalstars{margin:0;padding:7px 12px;min-height:44px;background:#fff8e6;color:#014566;border:2px solid #b18c40;white-space:nowrap;font-size:22px}
#shopshortfall{grid-column:1/-1;color:#952e27;font-weight:700;font-size:19px;text-align:center;line-height:1.1}
#shopshortfall:empty{display:none}
/* Unaffordable purchases read as unavailable without fading their price text. */
#shopdialog .shortoncoins:enabled{background:#c4c8c7;color:#3d4446;border-color:#909795;box-shadow:none;filter:grayscale(1);opacity:1}
#shopdialog .shortoncoins:enabled:hover{background:#c4c8c7}
#shopdialog .upgrade:has(.shortoncoins:enabled),
#shopdialog .shopaddition:has(>button.shortoncoins:enabled){background:#dedfdb;border-color:#a4aaa6}
#shopdialog .upgrade:has(.shortoncoins:enabled) canvas,
#shopdialog .shopaddition:has(>button.shortoncoins:enabled):not(:has(>.jacketpicker))>canvas{opacity:.45;filter:grayscale(1)}
#ratingsdialog{width:min(360px,92vw)}
#ratingsdialog h2{font-size:30px}
#ratinglist{max-height:45dvh;overflow:auto;margin:12px 0}
#ratinglist p{margin:8px 0}
@media(max-width:600px){
 #shopdialog .shopheader{min-height:132px;padding:8px 12px;gap:4px 8px}
 #shopdialog .shopwallet{display:contents}
 #shopdialog .shopearned{grid-area:1/1;font-size:20px}
 #shopdialog #totalstars{grid-area:1/2;font-size:18px;padding:6px 8px}
 #shopdialog .shopmath{grid-area:2/1/3/-1;font-size:23px}
 #shopdialog #shopavailable{font-size:30px}
}
@media(max-height:500px) and (min-width:601px){
 #shopdialog .shopheader{min-height:90px;padding:6px 12px}
 #shopdialog .shopearned{font-size:20px}
 #shopdialog .shopmath{font-size:23px}
 #shopdialog #shopavailable{font-size:30px}
}

#bookingoffer:not([hidden]){position:absolute;z-index:12;width:min(212px,90%);padding:7px 10px;background:#fff8e6;color:#014566;border:2px solid #956e30;border-radius:12px;text-align:center;font-size:18px;line-height:1.1}
.bookingchoices{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:5px}
#bookingtime{min-width:30px;font-size:19px;font-variant-numeric:tabular-nums}
.bookingchoices button{margin:0;padding:0;width:44px;height:44px;border:2px solid currentColor;line-height:1;font-size:25px}
#acceptbooking{color:#155b3b;background:#c5ebc9}
#declinebooking{color:#8a312d;background:#fae0d6}

.staffchoices label{display:flex;align-items:center;gap:12px;min-height:46px;padding:7px 14px;border:1px solid #b3c5ca;border-radius:10px;background:#f8f5eb;text-align:left;cursor:pointer}
.staffchoices label:has(input:checked){background:#dbe9e3;border-color:#70968b}
.staffchoices input{width:20px;height:20px;accent-color:#07516b}

/* Difficulty is chosen only before a new salon starts. */
#difficultychoices{margin:18px 0;padding:0;border:0;text-align:left}
#difficultychoices legend{margin-bottom:8px;font-weight:700;font-size:21px}
#difficultychoices label{display:flex;align-items:center;gap:12px;min-height:54px;margin:7px 0;padding:10px 14px;border:2px solid #b3c5ca;border-radius:12px;background:#fff9eb;cursor:pointer}
#difficultychoices label:has(input:checked){border-color:#07516b;background:#dbe9e3}
#difficultychoices label:focus-within{outline:3px solid #956e30;outline-offset:2px}
#difficultychoices input{flex:none;width:22px;height:22px;margin:0;accent-color:#07516b}
#difficultychoices strong,#difficultychoices small{display:block}
#difficultychoices strong{font-size:22px}
#difficultychoices small{font-size:17px;line-height:1.25}
#difficultychoices .small{margin:8px 0 0;line-height:1.3}
#difficultychoices[hidden],#savedmode[hidden]{display:none}

.jacketpicker>span{flex-basis:100%}.jacketpicker .colorswatch{flex:0 0 44px}.jacketpicker .colorswatch[aria-pressed=true]::after{color:white;text-shadow:0 1px 3px #172b33}

/* Phone dialogue overlays the floor instead of reserving an empty bottom band. */
.touch-controls body:not(.editing) #dialogstrip{position:absolute;left:0;right:0;bottom:0;display:block;background:transparent;border:0;padding:0 8px max(0px,env(safe-area-inset-bottom));pointer-events:none}
.touch-controls body:not(.editing) #recentlines{min-height:0;padding:0;pointer-events:auto}
.touch-controls body:not(.editing) #dialogstrip #recentlines:empty{display:none}
.touch-controls body:not(.editing) #dialogstrip #message{display:none}
.touch-controls body:not(.editing) #dialogstrip #message.mobile-toast{display:block;width:fit-content;max-width:100%;padding:3px 8px;background:#fffaf0e8;border-radius:8px}
.touch-controls body:not(.editing) #dialogstrip.reading{background:#fbf5e8;pointer-events:auto}
.touch-controls body:not(.editing) #dialogstrip [hidden]{display:none}
/* Sales uses the same edge-to-edge accordion header as the other shop categories. */
#sales .upgrade{flex-wrap:wrap}#sales button{min-height:44px}

/* The phone bottom bar is only for incoming and outgoing dogs. */
#mobilebook[hidden]{display:none!important}
#mobilebook{display:none}
.touch-controls #mobilebook{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;flex:none;padding:4px max(6px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));background:#fbf5e8;border-top:2px solid #bea373;color:#014566;z-index:5}
#mobilebook section{min-width:0}#mobilebook h3{display:flex;justify-content:space-between;margin:0 0 3px;font-size:16px;line-height:20px}#mobilebook h3 small{font-size:14px}
.mobilecards{display:flex;gap:5px;overflow-x:auto;overscroll-behavior-x:contain;min-height:64px;max-height:88px;scrollbar-width:thin}
#mobilebook .bookcard{flex:0 0 174px;grid-template-columns:34px minmax(0,1fr);gap:3px;padding:3px;margin:0;font-size:13px}
#mobilebook .bookface{width:34px;height:34px}#mobilebook .bookname{display:block}#mobilebook .bookname strong{font-size:15px}#mobilebook .bookname small{display:block;font-size:12px}
#mobilebook .chip{font-size:11px;min-height:16px;padding:0 3px}#mobilebook .booknote{font-size:12px;margin:2px 0 0}#mobilebook .bookempty{font-size:13px;margin:5px 0}
.touch-controls body:not(.editing) #dialogstrip{top:52px;bottom:auto;left:8px;right:8px;padding:0;max-height:38vh;overflow:auto;border-radius:10px}
.touch-controls body:not(.editing) #dialogstrip.reading{box-shadow:0 2px 8px #0003;padding:5px}
.touch-controls body:not(.editing) #recentlines button{min-height:44px}

#scoreform[hidden],#failureDialog button[hidden]{display:none!important}
#scoreform label{display:block;text-align:left;margin:12px 0 6px}#scorename,#scoreboard{font:inherit;font-size:18px;max-width:100%;min-height:44px;padding:8px;border:2px solid #014566;border-radius:8px}
#scorelist{text-align:left}#scorelist li{font-size:18px;padding:6px 0}#dailystars{font-size:16px;white-space:nowrap}.touch-controls #dailystars{display:block!important;font-size:14px}

#placementstatus{margin:2px 8px;font-weight:700;color:#175b30}#placementstatus[data-error="true"]{color:#9a2020}

#placementstatus{max-width:220px;font-size:13px;line-height:1.2}#placementstatus[data-error="true"]{position:absolute;top:100%;right:8px;background:#fff2d7;padding:8px;border:2px dashed #c33232;border-radius:8px;z-index:5;max-width:min(360px,80vw)}

#rotationhint{position:absolute;transform:translate(-50%,-100%);display:flex;align-items:center;gap:6px;background:#fff9edee;padding:4px 7px;border-radius:8px;pointer-events:none;z-index:4;font-size:14px;white-space:nowrap}#rotationhint[hidden]{display:none}#rotationhint kbd{display:inline-block;padding:2px 7px;min-width:26px;text-align:center}

/* Separate mobile surface transparency from dog-card visibility. */
.touch-controls #mobilebook{background:rgba(251,245,232,.25)}
.touch-controls #mobilebook .bookcard{opacity:1;background:#fffaf0}
.touch-controls #mobilebook .bookcard.faded{opacity:.5}
.touch-controls #mobilebook .bookcard .bookface canvas{opacity:1}
.touch-controls #speechlayer{display:none}
.touch-controls #dialogstrip.reading #recentlines{display:none}

/* Optional dialogue: a name-label-height ellipsis, never an automatic text wall. */
#dialogstrip #recentlines button,.touch-controls body:not(.editing) #recentlines button{min-height:0;min-width:0;max-width:calc(100vw - 24px);padding:0 8px;line-height:1;text-align:center;font-size:16px;border-radius:7px;overflow:hidden;flex:none}
#dialogstrip #recentlines{min-height:0;padding:2px 0}
#dialogstrip.reading #recentlines{display:none}
#speechlayer{display:none!important}
#dialogstrip.reading #readcopy{max-height:min(100px,24vh)}

/* Keep the primary layout action at the safe right edge. */
body.editing #layouteditor{flex:1;flex-wrap:wrap;min-width:0}
#layouteditor .layoutbuttons{order:2;margin-left:auto;align-items:center;flex-wrap:wrap;max-width:100%}
#layouteditor #applylayout{width:161.2px;flex:0 0 161.2px;margin-left:auto;font-size:15.6px;background:#014566;color:#e3e9eb;border-color:#e3e9eb}
#layouteditor #applylayout:hover{background:#205d78}
body.editing header{padding-right:max(8px,env(safe-area-inset-right));padding-left:max(8px,env(safe-area-inset-left))}
@media(max-width:700px){#layouteditor .layoutbuttons{width:100%}#layouteditor #applylayout{width:144.975px;flex-basis:144.975px;font-size:14.4px}}

.receptionattention{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.bandanapicker{grid-column:1/-1;flex-wrap:wrap}.bandanapicker .colorswatch{min-width:44px;min-height:44px}.bandanapicker span{width:100%}

#addonshop .bandanapicker .colorswatch{background:var(--swatch);color:#014566}#addonshop .bandanapicker .colorswatch:hover{background:var(--swatch)}

#decorshop .decoreffect{display:block;font:inherit;font-weight:700}

#decorcolors{position:fixed;right:auto;margin-top:0;z-index:50;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:auto;box-sizing:border-box;--safe-left:env(safe-area-inset-left,0px);--safe-right:env(safe-area-inset-right,0px);--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px)}
#decorcolors .palettehandle{grid-column:1/-1;min-height:44px;padding:4px 8px;cursor:grab;touch-action:none;font-size:13px}#decorcolors .palettehandle:active{cursor:grabbing}#decorcolors .palettehandle:focus-visible{outline:3px solid #ddb057;outline-offset:2px}
#decorcolors .paletteheader{grid-column:1/-1;display:flex;gap:4px}
#decorcolors .palettehandle{flex:1}
#palettetoggle{min-height:44px;padding:4px 8px;font-size:13px;white-space:nowrap;touch-action:manipulation}
#palettecolors{display:contents}#palettecolors[hidden]{display:none}
#palettecolors>span{grid-column:1/-1;font-size:13px;font-weight:700;padding:1px 4px}
#decorcolors.palette-collapsed{grid-template-columns:auto}
#decorcolors.palette-collapsed .palettehandle{flex:none;width:44px;padding:4px}
@media(max-width:340px){#decorcolors{grid-template-columns:repeat(5,44px)}}

#stackcontrols{position:absolute;inset:0;pointer-events:none;z-index:12}.stackcontrol{position:absolute;transform:translate(-50%,-50%);width:44px;height:44px;padding:0;min-width:44px;pointer-events:auto;border:0!important;background:transparent!important;box-shadow:none;font-size:0}.stackcontrol::before{content:'+';display:grid;place-items:center;width:22px;height:22px;margin:auto;border-radius:3px;background:#9ed9a3;color:#165c26;border:2px solid #165c26;font:bold 19px sans-serif}.stackcontrol.unstack::before{content:'×';background:#f1aaaa;color:#801f24;border-color:#801f24}.stackcontrol:focus-visible{outline:3px solid #ddb057;outline-offset:1px}

#checkoutbubble{position:absolute;inset:0;pointer-events:none;z-index:8}
#checkoutbubble button{pointer-events:auto;padding:0;border:1px solid #514235;border-radius:8px;background:#fff9ed;color:#453d33;min-height:0;min-width:0;display:flex;align-items:center;justify-content:center;font-size:16px;line-height:1}
#checkoutbubble button::after{content:"";position:absolute;inset:-13px 0}

.mobileonly,#toastslot,#dogdetail{display:none}
.touch-controls .mobileonly{display:block}
.touch-controls body:not(.editing) #toastslot:not([hidden]){display:flex;flex:none;height:36px;margin-top:48px;align-items:center;justify-content:center;z-index:5;background:#fcf7e9}
.touch-controls #mobiletoast{min-height:32px;max-width:100%;padding:3px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}
.touch-controls body:not(.editing) #message{display:none!important}
.touch-controls #mobilebook{display:flex;height:56px;max-height:56px;min-height:56px;padding:4px max(4px,env(safe-area-inset-right)) 4px max(4px,env(safe-area-inset-left));gap:4px}
.dogchips{display:flex;gap:4px;overflow-x:auto;min-width:0;flex:1;scrollbar-width:thin}
#mobilebook .dogchip{position:relative;display:flex;align-items:center;gap:2px;flex:none;height:44px;min-width:100px;padding:2px 5px;border:1px solid #014566;background:#fffaf0}
.dogchip canvas{width:32px;height:32px}.dogchip.future{opacity:.5}.dogchip b{position:absolute;top:0;right:1px;background:#ffcf57;color:#014566;border-radius:50%;padding:0 4px}.dogstep{font-size:17px;border-radius:3px;padding:1px}.dogstep.pending{opacity:.3}.dogstep.done{background:#014566;color:white}.homecount{align-self:center;white-space:nowrap;font-size:18px}
.touch-controls #dogdetail:not([hidden]){display:block;position:absolute;bottom:56px;left:6px;right:6px;padding:10px;background:#fffaf0;border:2px solid #014566;border-radius:10px;z-index:9;font-size:15px}
.touch-controls #characterstatus{display:none}.touch-controls #confirmcharacter{margin-top:4px}.touch-controls #characterdialog .small{margin-bottom:2px}
.touch-controls body:not(.editing) #dialogstrip{top:86px}
@media(prefers-reduced-motion:reduce){#mobiletoast{opacity:1!important}}
@media(max-height:500px){#teamworktutorial,#mobileinstruction{padding:14px 22px;max-width:600px}#teamworktutorial h2,#mobileinstruction h2{font-size:30px;margin:0 0 8px}#teamworktutorial p,#mobileinstruction p{font-size:14px;line-height:1.4;margin:8px 0}#teamworktutorial .primary,#mobileinstruction .primary{margin-top:8px;padding:8px 12px;min-height:44px}}

.decorpurchase{flex:0 0 135px;text-align:center}.decorpurchase small{max-width:135px;white-space:normal}.decorpurchase button{max-width:100%;white-space:normal}

/* Responsive play chrome: wrap the HUD instead of covering or hiding counters. */
body:not(.editing) header,
.touch-controls body:not(.editing) header{position:absolute;inset:env(safe-area-inset-top,0px) max(8px,env(safe-area-inset-right,0px)) auto auto;width:auto;height:48px;min-height:48px;padding:2px 0;background:none;box-shadow:none;pointer-events:none}
body:not(.editing) header .tools{pointer-events:auto;flex-wrap:wrap;justify-content:flex-end}
html:not(.touch-controls) body:not(.editing) .hud,
.touch-controls body:not(.editing) .hud{position:relative;inset:auto;flex:none;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;width:100%;height:auto;min-height:52px;gap:4px clamp(4px,1vw,12px);padding:calc(5px + env(safe-area-inset-top,0px)) calc(252px + env(safe-area-inset-right,0px)) 5px max(8px,env(safe-area-inset-left,0px));background:#f4f0ee;color:var(--ink);border:0;box-shadow:none;white-space:normal;z-index:6}
html:not(.touch-controls) body:not(.editing) .hud>strong,
.touch-controls body:not(.editing) .hud>strong{margin:0;font-size:clamp(16px,2vw,24px);white-space:nowrap}
html:not(.touch-controls) body:not(.editing) .hud>div,
.touch-controls body:not(.editing) .hud>div{display:flex;flex-wrap:wrap;align-items:center;gap:2px 5px;padding:2px 4px;min-width:0;font-size:clamp(14px,1.8vw,20px)}
html:not(.touch-controls) body:not(.editing) .hud span,
.touch-controls body:not(.editing) .hud span{display:inline;font-size:clamp(11px,1.2vw,14px);margin:0;color:var(--ink)}
html:not(.touch-controls) body:not(.editing) .hud strong,
html:not(.touch-controls) body:not(.editing) .hud .timer strong,
.touch-controls body:not(.editing) .hud strong,
.touch-controls body:not(.editing) .hud .timer strong{font-size:clamp(16px,2vw,24px);white-space:nowrap}
html:not(.touch-controls) body:not(.editing) .hud #capacity,
.touch-controls body:not(.editing) .hud #capacity{display:inline-flex;align-items:center;border:0;padding:2px 4px;white-space:normal}
.touch-controls body:not(.editing) .hud{padding-right:calc(120px + env(safe-area-inset-right,0px));gap:3px 5px}
.touch-controls body:not(.editing) .hud>div{padding:2px 3px;gap:2px 4px}
.touch-controls body:not(.editing) .hud strong,
.touch-controls body:not(.editing) .hud .timer strong{font-size:clamp(16px,2vw,20px)}
.touch-controls body:not(.editing) .hud #cash small{display:inline;font-size:11px}
.touch-controls body:not(.editing) #cash::before{content:none}
.touch-controls body:not(.editing) .stage{touch-action:none}
.touch-controls body:not(.editing) main{touch-action:manipulation}
.touch-controls body:not(.editing) .tools button,
.touch-controls #closeread,
.touch-controls #recentlines button,
.touch-controls dialog button{min-width:44px;min-height:44px}
.touch-controls #closeread{width:44px;height:44px;flex:none}
.touch-controls #recentlines{min-height:48px}
.touch-controls #recentlines button{white-space:normal;flex-shrink:0;max-width:min(26rem,80vw);line-height:1.2}
#pausedialog{max-height:calc(100dvh - 16px);overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:8px}
#pausedialog #resume{position:sticky;top:0;z-index:2;margin:10px 0 14px;min-height:44px}
.touch-controls dialog{touch-action:pan-y;overscroll-behavior:contain}
@media(max-height:500px){
 #pausedialog{padding:12px 20px}
 #pausedialog h2{font-size:clamp(24px,5vh,36px)}
 #pausedialog .eyebrow{margin:4px 0}
 #pausedialog #resume{margin:8px 0 12px;padding:10px 16px}
}
body:not(.editing) header{z-index:12}
/* The first-play hint takes its own row, never covering equipment or buttons. */
#controltip:not([hidden]){display:flex;flex:none;align-items:center;gap:8px;padding:4px max(8px,env(safe-area-inset-right,0px)) 4px max(8px,env(safe-area-inset-left,0px));background:#fff3d1;color:var(--ink);font-size:clamp(13px,1.3vw,17px);line-height:1.3;min-width:0}
#controltip>span{flex:1;min-width:0;overflow-wrap:anywhere}
#dismisstip{flex:none;min-width:44px;min-height:44px;padding:6px 10px;font-size:clamp(13px,1.3vw,16px)}
#intro #whatsnew{display:block;width:fit-content;min-height:44px;max-width:100%;margin:6px auto 0;padding:8px 14px;border:2px solid #638da2;border-radius:14px;background:#dde7ea;text-decoration:none;white-space:normal;font-size:clamp(16px,2vw,20px)}
.touch-controls #intro{padding-top:12px;}

/* Keep the current phone chips and toast queue while allowing the HUD to wrap. */
.touch-controls body:not(.editing) #toastslot:not([hidden]){margin-top:0;height:44px;min-height:44px}
.touch-controls #mobiletoast{min-width:44px;min-height:44px;font-size:clamp(13px,1.6vw,16px);white-space:normal;line-height:1.2}
.touch-controls body:not(.editing) #recentlines button{min-width:44px;min-height:44px;line-height:1.2}
.touch-controls body:not(.editing) #dialogstrip{top:auto;bottom:56px;max-height:min(160px,38dvh)}
.touch-controls #dogdetail:not([hidden]){max-height:min(180px,40dvh);overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}
.touch-controls #dogdetail button{min-width:44px;min-height:44px}
#mobilebook .dogchip .dogchipname{max-width:clamp(54px,10vw,100px);font-size:clamp(12px,1.6vw,16px);line-height:1.15;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#mobilebook .dogchip:focus-visible{outline:2px solid #a4472a;outline-offset:-2px}
.touch-controls #teamworktutorial h2,.touch-controls #mobileinstruction h2{font-size:clamp(24px,5vw,38px)}
.touch-controls #teamworktutorial p,.touch-controls #mobileinstruction p{font-size:clamp(14px,2vw,18px);line-height:1.4}
@media(min-width:701px) and (max-width:1000px){
 html:not(.touch-controls) body.daybook-on:not(.editing) #daybook{width:clamp(184px,25vw,256px)}
 html:not(.touch-controls) body.daybook-on:not(.editing) .stage{padding-left:clamp(184px,25vw,256px)}
}

/* Action spotlights overlay the salon: no space is reserved for tutorial text. */
#tutorialtip{position:fixed;z-index:10002;box-sizing:border-box;background:#fff;color:#062f46;border:3px solid #ffd66a;border-radius:16px;padding:10px 16px 16px;box-shadow:0 8px 32px #0009;overflow:visible}
#tutorialtip[hidden],#tutorialring[hidden]{display:none!important}
#tutorialtip p{font:700 18px/1.3 'Trebuchet MS',sans-serif;margin:4px 0 8px}
.tutorial-tiphead{display:flex;align-items:center;justify-content:space-between;gap:8px}.tutorial-tiphead small{font:bold 14px/1.2 sans-serif;letter-spacing:.06em}

.tutorial-actions{display:flex;justify-content:center;gap:8px}.tutorial-actions button{min-height:44px;min-width:44px;font-size:18px}
.tutorial-dialog{font-size:18px;max-width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto}.tutorial-dialog p{font-size:18px;line-height:1.45}
.tutorial-dialog button,.tutorial-on .tools button,.tutorial-on #pausehelp,.tutorial-on #resume,.tutorial-on #closehelp{min-height:44px;min-width:44px;font-size:16px}
#tutorialwelcome #tutorialyes{font-size:clamp(22px,3.5vw,26px);line-height:1.2;min-height:52px;max-width:100%;white-space:normal;overflow-wrap:break-word;padding:12px 18px}
.tutorial-on #controltip{display:none!important}
#tutorialring{position:fixed;box-sizing:border-box;z-index:10001;margin:0;border:3px solid #ffd66a;border-radius:14px;box-shadow:0 0 0 200vmax #03111cdb;pointer-events:none;background:transparent}
.tutorial-on .mobilepauseoptions{display:flex;gap:8px;flex-wrap:wrap}.bookcard[role=button]{cursor:pointer}.bookcard[role=button]:focus-visible{outline:3px solid #c77d12;outline-offset:-3px}
.tutorial-hiring #extras{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tutorial-hiring #extras>[data-role="receptionist"],.tutorial-hiring #extras>.staffstatus,.tutorial-hiring #extras .stafftraining,.tutorial-hiring #extras .receptionistportrait,.tutorial-hiring #extras .shopaddition>p{display:none!important}.tutorial-hiring #extras .shopaddition{min-width:0;padding:8px}.tutorial-hiring #extras h3{font-size:18px}.tutorial-hiring #extras button{min-height:44px;font-size:16px}
@media(max-height:500px){#tutorialtip{padding:6px 12px 10px}#tutorialtip p{font-size:18px}.tutorial-tiphead small{font-size:12px}}

/* Fix list v2: one overlay, no reserved message lane. */
#controltip,.message,#recentlines,.callnotice,#mobilecall{display:none!important}
#stage{position:relative}
#toastslot,.touch-controls body:not(.editing) #toastslot:not([hidden]){position:absolute;display:flex;flex-direction:column;align-items:center;gap:5px;z-index:16;left:50%;top:6px;transform:translateX(-50%);width:min(94%,460px);height:auto;min-height:0;margin:0;padding:0;background:transparent;pointer-events:none}
#toastslot[hidden]{display:none!important}
#toastslot .salontoast,.touch-controls #toastslot .salontoast{display:block;pointer-events:auto;width:100%;min-height:44px;height:auto;max-height:none;padding:7px 12px;font-size:14px;line-height:1.25;white-space:normal;overflow:visible;text-overflow:clip;text-align:left;border-radius:16px;border:2px solid #275f87;background:#e5f2ff;color:#133e5e;box-shadow:0 2px 6px #0003;animation:toastin .2s ease-out}
#toastslot button[hidden]{display:none!important}
#toastslot .salontoast.urgent{background:#ffebc4;border-color:#a84623;color:#742e16}
#toastslot .salontoast.reward{background:#e1f4d9;border-color:#4b7e38;color:#245423}
.touch-controls #toastslot .salontoast{font-size:15px}
#dialogstrip{min-height:0!important;height:auto!important;background:transparent!important}
/* Player-facing Help: readable, bite-sized tips on every screen. */
#helpdialog{font-size:16px;line-height:1.5}
#helpdialog .helpsection p,#helpdialog .helpsection li{margin:0 0 12px}
#helpdialog .helpsection ul{padding-left:24px}
#helpdialog #closehelp{min-height:44px}

.helpsection{margin:10px 0}.helpsection summary,.pausesettings summary{font-size:18px;min-height:44px;padding:10px;cursor:pointer}.help-touch{display:none}.touch-controls .help-touch{display:block}.touch-controls .help-desktop{display:none}
.touch-controls .hud,.touch-controls .hud span,.touch-controls .hud small,.touch-controls .dogchipname,.touch-controls .dogstep,.touch-controls .controlbar{font-size:clamp(14px,2vw,17px)!important}
.touch-controls button,.touch-controls select{min-height:44px;min-width:44px}
.touch-controls .dogchipname{display:block!important}
@media(max-height:500px) and (orientation:landscape){.touch-controls .hud{padding:2px 5px!important;min-height:32px!important}.touch-controls .hud>div{padding:0 3px!important}.touch-controls .dogchip{min-height:44px}.touch-controls .controlbar{padding:0!important}}
@keyframes urgentpulse{50%{box-shadow:0 0 0 4px #e09b3844}}@keyframes toastin{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.salontoast{animation:none!important}}

#dialogstrip,.touch-controls body:not(.editing) #dialogstrip{padding:0!important;border:0!important;min-height:0!important;height:0!important;overflow:visible!important}
#dialogbody:not([hidden]){position:absolute;bottom:50px;left:5%;width:90%;pointer-events:auto;z-index:19;background:#fff8e9}
.tutorial-on #toastslot{display:flex!important}.tutorial-on #toastslot[hidden]{display:none!important}

/* Keep teaching targets clear of the ordinary toast stack. */
.tutorial-spotlight #toastslot{visibility:hidden!important}
/* Notification banners are retired; keep dialogue, tutorial and in-world cues. */
#toastslot,#toastslot .salontoast,#mobiletoast,#secondtoast,#message,#callnotice,#controltip{
 display:none!important;
 visibility:hidden!important;
 pointer-events:none!important;
}

/* A distinct, readable diagnostic action without gameplay notifications. */
button.bugbutton{background:#6b407d;color:#fff;border:2px solid #4d285d;box-shadow:0 3px 0 #4d285d;min-height:44px;}
button.bugbutton:hover{background:#573268;}
button.bugbutton:focus-visible{outline:3px solid #f6c86e;outline-offset:3px;}
#bugreportdialog{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow-y:auto;box-sizing:border-box;}
#bugreportdialog label,#bugreportdialog p,#bugreportdialog summary,#bugreportdialog button{font-size:16px;line-height:1.4;}
#bugreportdialog textarea{box-sizing:border-box;width:100%;min-height:100px;padding:12px;font:16px/1.4 sans-serif;border:2px solid #7e6c86;border-radius:10px;resize:vertical;background:#fff;color:#172e3b;}
#bugreportdialog .bugcheck{display:flex;align-items:center;gap:10px;min-height:44px;}
#bugreportdialog .bugcheck input{width:24px;height:24px;flex:none;}
#bugreportdialog summary{min-height:44px;display:flex;align-items:center;cursor:pointer;}
#bugreportdialog .bugactions{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
#bugreportdialog button{min-height:44px;}
#bugreportstatus:empty{display:none;}
@media(max-width:420px){#bugreportdialog .bugactions{grid-template-columns:1fr;}}

/* Compact visual order legend; the actual dog card stays in the spotlight. */
#tutorialorderlegend[hidden]{display:none}
.tutorial-order-services,.tutorial-order-states{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:10px 0}
.tutorial-order-service{display:inline-flex;align-items:center;gap:6px;font:600 16px/1.3 "Trebuchet MS",sans-serif}
.tutorial-order-services .chip,.tutorial-order-states .chip{font-size:16px;min-height:26px}
.tutorial-order-states{padding-top:8px;border-top:1px solid #01456633}
#tutorialtip[data-step="order"] p{font-size:18px}

/* Keep the info toggle available even when the sidebar/chips are hidden. */
#infobartoggle{min-width:44px;min-height:44px;font-size:14px;white-space:nowrap}
#infobartoggle[hidden]{display:none!important}

/* Owner dialogue is automatic, readable, and does not block salon actions. */
#dialogstrip #recentlines button{min-height:44px;font-size:14px}
.touch-controls body:not(.editing) #dialogstrip.reading{pointer-events:none}
.touch-controls #dialogbody:not([hidden]){left:2%;width:96%;bottom:8px;padding:8px;gap:6px;background:rgba(15,23,26,.82);color:#fff8e9;pointer-events:none;border-radius:8px}
.touch-controls #dialogbody #readcopy{font-size:16px;line-height:1.3;max-height:none;pointer-events:none}
.touch-controls #dialogbody #readname{color:#e5b77b}
.touch-controls #dialogbody #ownerportrait{width:36px;height:36px;pointer-events:none}
.touch-controls #dialogbody #closeread{pointer-events:auto;width:44px;height:44px;min-height:44px;flex:none}

#savewarning{position:fixed;bottom:8px;left:8px;right:8px;z-index:10000;background:#fff1ce;color:#502000;padding:10px 16px;border:2px solid #a64b00;border-radius:10px;font:600 16px/1.4 sans-serif;pointer-events:none}#savewarning[hidden]{display:none}.businesslinks{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:14px 0}.businesslinks a{display:inline-flex;align-items:center;min-height:44px;padding:6px 12px;color:#014566;text-decoration:underline;font-size:16px}

/* Top-layer prompt covers menus as well as the floor; no portrait play leaks through. */
#rotatedialog {box-sizing:border-box;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;border:0;border-radius:0;padding:max(24px,env(safe-area-inset-top)) 24px max(24px,env(safe-area-inset-bottom));background:#f4f0ee;color:#014566;text-align:center;overflow:auto;}
#rotatedialog[open] {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;}
#rotatedialog::backdrop {background:#f4f0ee;}
#rotatedialog h2 {font-size:clamp(28px,7vw,40px);margin:0;}
#rotatedialog p {font-size:20px;line-height:1.4;max-width:30ch;margin:0;}
#rotatedialog .rotatehint {font-size:16px;margin-top:12px;}
.rotatephone {width:100px;height:60px;border:5px solid #014566;border-radius:14px;font-size:48px;line-height:52px;margin:16px;}
.landscape-required #tutorialspotlight {visibility:hidden;}
/* Use the same hand-drawn service pictures as the dogs' thought bubbles. */
.service-picture{display:block;flex:none;width:28px;height:28px;object-fit:contain;pointer-events:none}
.chip:has(.service-picture){gap:3px;min-height:32px;padding:1px 6px 1px 2px}
.dogstep{position:relative;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border-radius:6px;background:#fff9ed;border:1px solid #b9c7c5;flex:none}
.dogstep.pending{opacity:1}
.dogstep.doing{background:#ffe5a1;border-color:#ac7922}
.dogstep.done{background:#e0efd9;border-color:#3f6b55}
.dogstep.done:after{content:'\2713';position:absolute;right:-2px;bottom:-3px;background:#3f6b55;color:#fff;border-radius:50%;font:700 11px/14px sans-serif;width:14px;height:14px;text-align:center}
.dogstep.done .service-picture{opacity:.65}

/* Keep hiding/showing orders attached to the panel, not the top toolbar. */
.infobartools{display:flex;justify-content:flex-end;flex:none}
#daybooktools{position:sticky;top:-8px;z-index:1;margin:-8px -10px 6px;padding:4px 10px;background:#f4f0ee;border-bottom:1px solid #01456626}
#mobilebookcontent{display:flex;flex:1;min-width:0;gap:4px}
#mobilebooktools{align-items:center}
#mobilebooktools #infobartoggle{padding:4px 8px}
#infobardock{position:absolute;left:8px;top:8px;z-index:8}
#infobardock:empty{display:none}
#infobardock #infobartoggle{box-shadow:0 2px 5px #0002}

/* Bench reminders float over the floor on every device; never reserve a row. */
#benchtip{display:flex;position:absolute;z-index:8;left:var(--bench-floor-center,50%);bottom:calc(8px + var(--bench-floor-bottom,0px));transform:translateX(-50%);inline-size:max-content;max-inline-size:min(720px,calc(var(--bench-floor-width,100%) - 16px));align-items:center;gap:8px;padding:6px 8px 6px 12px;border:1px solid #ffffff24;border-radius:10px;background:rgba(15,23,26,.82);color:#fff8e9;box-shadow:0 2px 8px #0003;font:600 16px/1.3 "Salon Hand",sans-serif;text-align:left;pointer-events:none;}
#benchtipcopy{min-width:0;max-width:70ch;align-self:center;overflow-wrap:anywhere;}
#closebenchtip{flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:1px solid #ffffff55;border-radius:8px;background:#ffffff15;color:#fff8e9;font:700 28px/1 sans-serif;box-shadow:none;pointer-events:auto;touch-action:manipulation;}
#closebenchtip:hover{background:#ffffff30;}
#benchtip[hidden]{display:none}

/* Short shop screens use one top bar and one scrolling content area. */
#compactshopbar{display:none}
#shopsummary{display:contents}
@media(max-height:500px){
 #shopdialog.compactshop{width:calc(100vw - 16px);max-width:1000px;height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);margin:auto;border-width:2px;border-radius:14px;font-size:18px}
 #shopdialog.compactshop #compactshopbar{display:grid;grid-template-columns:minmax(110px,1fr) auto minmax(110px,1fr);align-items:center;gap:8px;flex:none;padding:4px max(8px,env(safe-area-inset-right)) 4px max(8px,env(safe-area-inset-left));background:#fff5da;border-bottom:1px solid #c9b998}
 #shopdialog.compactshop #compactshopbar button{min-height:44px;margin:0;padding:5px 12px;font-size:19px;line-height:1.15;border-radius:8px;box-shadow:none;white-space:nowrap}
 #shopdialog.compactshop #shopcoins{justify-self:start;background:transparent;color:#014566;border:1px solid #b7a57e;font-variant-numeric:tabular-nums}
 #shopdialog.compactshop #compactshopnext{justify-self:end}
 #shopdialog.compactshop #next{width:auto;background:#014566;color:#fff8e9}
 #shopdialog.compactshop #shoptabs{display:flex;gap:3px}
 #shopdialog.compactshop #shoptabs button{background:transparent;color:#315666;border:1px solid transparent}
 #shopdialog.compactshop #shoptabs button[aria-selected="true"]{background:#e0ebed;border-color:#587d88;color:#014566}
 #shopdialog.compactshop .shopheader{display:none;position:absolute;z-index:10;top:56px;left:8px;width:min(420px,calc(100% - 16px));min-height:0;max-height:calc(100% - 64px);overflow:auto;padding:14px;background:#fff8e9;border:2px solid #927e53;border-radius:12px;box-shadow:0 4px 12px #0003}
 #shopdialog.compactshop.coinbreakdown .shopheader{display:block}
 #shopdialog.compactshop .shopwallet{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
 #shopdialog.compactshop .shopearned{font-size:19px}
 #shopdialog.compactshop .shopmath{display:flex;justify-content:flex-start;font-size:19px;gap:6px}
 #shopdialog.compactshop #shopavailable{font-size:22px}
 #shopdialog.compactshop .shopbody{flex:1;min-height:0;padding:12px 18px;scrollbar-gutter:stable}
 #shopdialog.compactshop .shopfooter{padding:0;border:0;background:transparent}
 #shopdialog.compactshop #shopsummary{display:block}
 #shopdialog.compactshop #shopsummary h2{font-size:28px;margin:8px 0}
 #shopdialog.compactshop #shopsummary .eyebrow{display:none}
 #shopdialog.compactshop details{margin:0 0 10px}
 #shopdialog.compactshop summary{min-height:44px;padding:10px 14px;font-size:21px}
 #shopdialog.compactshop #staffcategory>summary{display:none}
 #shopdialog.compactshop #staffcategory{border:0;background:transparent}
 #shopdialog.compactshop #staffcategory>div{margin:0}
 #shopdialog.compactshop #shopshortfall{margin-bottom:8px}
 #shopdialog.compactshop #nextrule{margin-top:16px}
 #shopdialog.compactshop:not([data-shop-tab="summary"]) #shopsummary,
 #shopdialog.compactshop:not([data-shop-tab="staff"]) #staffcategory,
 #shopdialog.compactshop:not([data-shop-tab="shop"]) .shopcategories>details:not(#staffcategory),
 #shopdialog.compactshop:not([data-shop-tab="shop"]) .shopsettings,
 #shopdialog.compactshop:not([data-shop-tab="shop"]) #shopnote,
 #shopdialog.compactshop:not([data-shop-tab="shop"]) #savestatus,
 #shopdialog.compactshop:not([data-shop-tab="shop"]) .shopfooter{display:none}
 #shopdialog.compactshop button:focus-visible{outline:3px solid #b7872d;outline-offset:1px}
}

#progressscore[hidden],#sharedchoice[hidden]{display:none!important}
#progressscore label{display:block;text-align:left;margin:12px 0 6px}
#progressname,#scoresource{font:inherit;font-size:18px;max-width:100%;min-height:44px;padding:8px;border:2px solid #014566;border-radius:8px}
#sharedchoice{display:block;text-align:left;margin:12px 0}#joinshared,#publishscore,#progressconsent{width:20px;height:20px;vertical-align:middle}

/* The score overview uses the desktop width while preserving readable rows. */
#scoresDialog{width:calc(100vw - 32px);max-width:1440px;max-height:calc(100dvh - 24px);padding:10px 16px;box-sizing:border-box;text-align:left;overflow:auto}
#scoresDialog .scoresheader{display:flex;align-items:center;justify-content:space-between;gap:12px}
#scoresDialog h2{font-size:28px;margin:0}#scoresDialog h3{font-size:20px;line-height:1.2;margin:8px 0 4px}#scoresDialog h3 small{font-size:14px;font-weight:400;margin-left:8px}
#scoresDialog p{font-size:14px;line-height:1.35;margin:6px 0}#scoresDialog .scoresactions{display:flex;gap:8px}#scoresDialog .scoresactions button{width:auto;margin:0;min-height:44px;font-size:16px;padding:8px 14px}
.scoregrid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.scorecard{min-width:0;background:#fffaf0;border:1px solid #d4c6a8;border-radius:8px;padding:8px}
#scoresDialog .scorecard h4{font-size:16px;line-height:1.25;margin:0 0 6px;min-height:20px}.scorecard ol{margin:0;padding-left:22px}.scorecard li{font:14px/1.25 Arial,sans-serif;padding:2px 0;margin:0;min-width:0}.scorecard li+li{border-top:1px solid #e8dec8}.scorename{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.scorename>span:first-child{overflow-wrap:anywhere;min-width:0;flex:1 1 70px}.scoreadmin{flex:none}.scorevalue{display:block;white-space:nowrap;font-size:13px;font-variant-numeric:tabular-nums;margin-top:1px}
.runsign{display:inline-block;flex:none;font:bold 8px/1.2 Georgia,serif;letter-spacing:.2px;border:1px solid currentColor;border-radius:2px;padding:3px 2px;position:relative;margin-top:3px}.runsign::before{content:'';position:absolute;width:8px;height:5px;left:50%;top:-5px;border:1px solid #6d746e;border-bottom:0;transform:translateX(-50%);border-radius:5px 5px 0 0}.runsign.open{background:#226238;color:#fff}.runsign.closed{background:#a82c2c;color:#fff}.runsign.unknown{background:#eee5d1;color:#514c43;font-size:12px;padding:0 6px}.runsign.unknown::before{display:none}
#scoresDialog p:empty{display:none}
#scoresDialog .scoredetails{margin-top:8px;font-size:14px}#scoresDialog summary{cursor:pointer;min-height:24px;padding:4px 0}#progressscore label{display:block;margin:8px 0}#progressname{font:16px Arial,sans-serif;min-height:44px;padding:8px;max-width:100%;box-sizing:border-box}#progressscore[hidden]{display:none!important}#personalbestsection{display:none}
@media(max-width:1100px){.scoregrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px), (pointer:coarse) and (max-width:1100px){#localboardssection{display:none}#personalbestsection{display:block}#scoresDialog{padding:12px;width:calc(100vw - 16px);max-height:calc(100dvh - 12px)}#scoresDialog h2{font-size:24px}.scorecard li{font-size:15px}.scorecard h4{min-height:0}#scoresDialog h3 small{display:block;margin:3px 0 0}}
.touch-controls #localboardssection{display:none}.touch-controls #personalbestsection{display:block}
@media(max-width:480px){.scoregrid{grid-template-columns:repeat(2,minmax(0,1fr))}#scoresDialog .scoresheader{align-items:flex-start}#scoresDialog .scoresactions{flex-direction:column}#scoresDialog .scorecard h4{font-size:15px}}

/* Updates are opt-in; keep Back visible while the dated list scrolls. */
#releasedialog{width:min(680px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:0;overflow:hidden;}
#releasedialog[open]{display:flex;flex-direction:column;}
#releasedialog .releaseheader{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 16px;flex:0 0 auto;border-bottom:1px solid #c5c9c4;}
#releasedialog h2{font-size:clamp(24px,4vw,36px);margin:0;text-align:left;}
#releasewindow{font-size:14px;margin:3px 0 0;text-align:left;}
#releasedialog .releaseheader>div{flex:1;min-width:0;}
#closerelease{width:auto;margin:0;min-width:64px;min-height:44px;flex:0 0 auto;}
#releasenotes{min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding:8px 20px 16px;text-align:left;}
#releasenotes section{padding:12px 0;border-bottom:1px solid #d6d3c8;}
#releasenotes section:last-child{border-bottom:0;}
#releasenotes h3{font-size:21px;margin:0 0 2px;}
#releasenotes time{font-size:14px;color:#546668;}
#releasenotes ul{margin:8px 0 0;padding-left:22px;font-size:17px;line-height:1.4;}
#releasenotes li+li{margin-top:6px;}

/* Native day disclosure keeps update history compact and keyboard accessible. */
#releasenotes .releaseday{margin:8px 0;border:1px solid #c5c9c4;border-radius:10px;background:#fff9ed;overflow:hidden;}
#releasenotes .releaseday>summary{box-sizing:border-box;min-height:44px;padding:12px 14px;cursor:pointer;line-height:1.4;overflow-wrap:anywhere;}
#releasenotes .releaseday>summary time{font-size:17px;font-weight:700;color:#014566;}
#releasenotes .releaseday>summary:focus-visible{outline:3px solid #014566;outline-offset:-4px;}
#releasenotes .releaseday[open]>summary{border-bottom:1px solid #d6d3c8;background:#e7f0ee;}
#releasenotes .releaseday>ul{margin:0;padding:12px 18px 14px 36px;}

/* Enlarged rearrangement control wraps instead of overflowing short-screen toolbar. */
@media(max-height:500px){
 #shopdialog.compactshop #compactshopnext{min-inline-size:0;max-inline-size:100%}
 #shopdialog.compactshop #compactshopnext #rearrange{min-height:66px;font-size:1.6875rem;padding:8px 12px;white-space:normal;max-inline-size:100%}
 #shopdialog.compactshop #next{display:block;max-inline-size:100%;margin:12px auto;white-space:normal}
 #shopdialog.compactshop:not([data-shop-tab="shop"]) .shopfooter{display:block}
}
#stackconfirm:modal{overscroll-behavior:contain}#stackconfirm::backdrop{overflow:hidden;overscroll-behavior:contain}

/* Desktop story panel: readable over the salon without becoming a click shield. */
html:not(.touch-controls) #dialogbody:not([hidden]){left:50%;bottom:76px;transform:translateX(-50%);width:min(760px,calc(100% - 40px));padding:14px 16px;gap:12px;background:rgba(15,23,26,.82);color:#fff8e9;border:1px solid #ffffff24;border-radius:8px;box-shadow:0 3px 14px #0003;pointer-events:none}
html:not(.touch-controls) #dialogbody #ownerportrait{background:#fff8e918;border-color:#ffffff40;pointer-events:none}
html:not(.touch-controls) #dialogbody #readcopy{color:#fff8e9;font-size:18px;line-height:1.4;pointer-events:none;max-height:min(140px,25vh)}
html:not(.touch-controls) #dialogbody #readname{color:#e5b77b}
html:not(.touch-controls) #dialogbody #closeread{pointer-events:auto;flex:none;width:44px;height:44px;min-height:44px;color:#fff8e9;background:#ffffff15;border:1px solid #ffffff55;border-radius:6px}
html:not(.touch-controls) #dialogbody #closeread:hover{background:#ffffff30}
html:not(.touch-controls) #dialogbody #readcopy:focus-visible{outline:2px solid #e5b77b;outline-offset:3px}

