/* The counter and speech bubbles keep characters outside the playable board. */
.street-social-layout{
  display:grid;
  grid-template-areas:"map counter" "map side";
  grid-template-columns:minmax(0,1.6fr) minmax(290px,.85fr);
  grid-template-rows:max-content max-content;
  align-items:start;
  row-gap:16px;
}
.street-social-layout>.map{grid-area:map;width:100%;max-width:100%;min-width:0;align-self:start;min-height:510px;aspect-ratio:1.15}
.street-social-layout>.reception{grid-area:counter}
.street-social-layout>.street-side{grid-area:side}
.reception{
  --counter-trim:#d8af96;
  position:relative;overflow:hidden;
  background:radial-gradient(ellipse at 13% 88%,#fff0c6 0,transparent 62%),linear-gradient(165deg,#fff9ed,#f8e5dc);
  border:2px solid var(--counter-trim);border-radius:23px;
  box-shadow:0 4px #c6a18a,0 8px 15px #795a4820;
}
.counter-title{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px 16px 0}
.counter-title h2{font-size:18px;line-height:1.4;letter-spacing:0;color:#785957}
.counter-visit{min-height:44px;padding:5px 10px;border:1px solid #d8b998;border-radius:12px;background:#fff8e5;color:#755c4d;font-size:13px;font-weight:750}
.social-scene{display:grid;grid-template-columns:clamp(105px,10vw,140px) minmax(0,1fr);align-items:center;gap:7px;padding:3px 13px 12px}
.social-figure{display:flex;align-items:flex-end;justify-content:center;position:relative;min-width:0;padding:0;background:none;border:0;border-radius:14px}
button.social-figure{min-height:150px;touch-action:manipulation}
.social-figure .tk-person{--person-scale:.88}
.social-bubble{
 position:relative;min-width:0;align-self:center;margin:3px 0 5px;
 padding:11px 12px;border-radius:17px 18px 18px 7px;
 border:1.5px solid #e4c9b6;background:#fffdf3;box-shadow:0 3px #dfbeab66;
}
.social-bubble::before{
 content:"";position:absolute;left:-6px;bottom:21px;width:9px;height:9px;
 transform:rotate(35deg);border:solid #e4c9b6;border-width:0 0 1.5px 1.5px;
 background:#fffdf3;border-radius:0 0 0 3px;
}
.social-signature{display:flex;align-items:center;gap:4px 7px;flex-wrap:wrap;color:#84614e}
.social-signature strong{font-size:15px}.social-signature small{font-size:12px;font-weight:650;color:#856d61}
.social-line,.sheet-body .social-line{margin:4px 0 0;text-align:left;color:#654f48;font-size:14px;line-height:1.55}
.social-greet{
 display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:4px 0 0;margin:0;
 background:none;border:0;color:#89594d;font-size:13px;font-weight:750;text-align:left;
}
.social-greet span{color:#bb746c;font-size:15px}
.counter-edge{position:relative;height:21px;background:repeating-linear-gradient(90deg,#eabfae 0 23px,#fff1d6 23px 46px);border-top:5px solid #c99a7c;box-shadow:inset 0 3px #dcb09c}
.counter-edge b,.counter-edge i{position:absolute;right:20px;bottom:20px;width:26px;height:9px;border:1px solid #b88c69;border-radius:50%;background:#f4d8a5;box-shadow:0 2px #e9c994,0 4px #b98c70}
.counter-edge i{right:57px;bottom:19px;width:15px;height:18px;border:1.5px solid #91b0a0;border-radius:3px 3px 6px 6px;background:#c3d9c4;box-shadow:none}
.social-scene.is-compact{grid-template-columns:85px minmax(0,1fr);gap:8px;padding:3px 1px;margin-bottom:7px}
.is-compact .social-figure .tk-person{--person-scale:.62}
.is-compact .social-bubble{padding:7px 10px;box-shadow:0 2px #dfbeab5e}
.is-compact .social-bubble::before{bottom:14px}
.is-compact .social-signature strong{font-size:14px}
.is-compact .social-line,.sheet-body .is-compact .social-line{font-size:13px}
.order-panel .panel-top{margin-bottom:7px}
.board-layout .order-panel .social-scene{margin-bottom:2px}
.social-visitor{display:inline-flex;align-items:flex-end;justify-content:center;width:58px;height:74px;scale:1}
.social-visitor .tk-person{--person-scale:.45}
.page-frame>.reception{margin:4px 0 18px}
.page-frame>.reception .social-scene{grid-template-columns:140px minmax(0,1fr);max-width:720px;margin:auto}
.page-frame>.reception .social-figure{min-height:125px}.page-frame>.reception .social-figure .tk-person{--person-scale:.83}
.neighbors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.neighbor-card{
 display:flex;flex-direction:column;align-items:stretch;gap:5px;min-width:0;padding:9px 13px 13px;text-align:left;
 border:1.5px solid #debea8;border-radius:18px;background:linear-gradient(115deg,#fffae9,#faecd6);box-shadow:0 3px #d4b49d;
}
.neighbor-card:nth-child(2){background:linear-gradient(115deg,#f7fbec,#e9f0df);border-color:#c7d6ba;box-shadow:0 3px #b8cab0}
.neighbor-card:nth-child(3){background:linear-gradient(115deg,#fff7ed,#f4e5df)}
.neighbor-figure{display:grid;place-items:center;min-width:0;min-height:115px;background:radial-gradient(ellipse at center bottom,#e9dabc88,transparent 61%)}
.neighbor-figure .tk-person{--person-scale:.75}
.neighbor-info{display:grid;gap:5px;color:#776255;font-size:13px}
.neighbor-info strong{font-size:18px;color:#6f5249}
.neighbor-info small{font-size:12px}.neighbor-quote{color:#715951;line-height:1.55}
.neighbor-info .meter{height:7px;margin-top:3px}
.profile-chat-action{display:flex;align-items:center;gap:10px;margin-top:7px}
.profile-chat-action small{color:#7b6659;font-size:13px}
.recipe-title-art{margin:2px auto -3px;text-align:center}
#toast.cast-toast{display:flex;align-items:center;gap:8px;text-align:left;padding:5px 14px 5px 4px;color:#604d43;background:#fff6e2;border:1.5px solid #c99e86;box-shadow:0 3px #ac8a72,0 5px 14px #75513844}
.toast-figure{display:grid;place-items:center;flex-shrink:0}
.toast-figure .tk-person{--person-scale:.42}
#toast.cast-toast strong{color:#986e60}
@media(max-width:850px) and (min-width:651px){
 .street-social-layout{grid-template-columns:minmax(0,1.25fr) minmax(260px,.9fr)}
 .social-scene{grid-template-columns:89px minmax(0,1fr);padding:2px 7px 9px;gap:3px}
 .social-figure .tk-person{--person-scale:.68}.social-bubble{padding:8px}
 .counter-title{padding-inline:10px}.social-signature{gap:2px 5px}
}
@media(max-width:650px){
 .street-social-layout{display:flex;flex-direction:column;gap:12px}
 .street-social-layout>.reception{order:0}.street-social-layout>.map{order:1;min-height:0}.street-social-layout>.street-side{order:2}
 .reception{border-radius:17px}.counter-title{padding:7px 12px 0}.counter-title h2{font-size:16px}
 .counter-visit{min-height:44px;padding:4px 9px;font-size:12px}
 .social-scene,.page-frame>.reception .social-scene{grid-template-columns:min(30vw,112px) minmax(0,1fr);gap:6px;padding:0 11px 8px}
 button.social-figure,.page-frame>.reception .social-figure{min-height:109px}
 .social-figure .tk-person,.page-frame>.reception .social-figure .tk-person{--person-scale:.75}
 .social-bubble{padding:7px 10px}.social-greet{font-size:12px;min-height:44px}
 .social-line,.sheet-body .social-line{font-size:13px}.counter-edge{height:16px}
 .counter-edge i,.counter-edge b{bottom:14px}
 .social-scene.is-compact{grid-template-columns:64px minmax(0,1fr);gap:4px;padding:0 1px}
 .is-compact .social-figure .tk-person{--person-scale:.46}
 .order-panel .is-compact .social-bubble{margin:0;padding:4px 8px}
 .order-panel .is-compact .social-signature{font-size:12px}.order-panel .is-compact .social-signature small{display:none}
 .order-panel .is-compact .social-line{font-size:12px;line-height:1.4}
 .neighbors{grid-template-columns:1fr;gap:10px}
 .neighbor-card{display:grid;grid-template-columns:90px minmax(0,1fr);gap:10px;align-items:center;padding:7px 10px 9px 4px}
 .neighbor-figure{min-height:108px}.neighbor-figure .tk-person{--person-scale:.67}
 .neighbor-info{gap:2px}.neighbor-info strong{font-size:16px}.neighbor-info small{font-size:12px}
 .page-frame>.reception{margin-bottom:15px}
}
@media(max-width:360px){
 .social-scene,.page-frame>.reception .social-scene{grid-template-columns:78px minmax(0,1fr);gap:5px;padding-inline:7px}
 .social-figure .tk-person,.page-frame>.reception .social-figure .tk-person{--person-scale:.60}
 .social-bubble{padding:6px 8px}.social-signature small{font-size:11px}
 .social-scene.is-compact{grid-template-columns:53px minmax(0,1fr)}.is-compact .social-figure .tk-person{--person-scale:.38}
 .neighbor-card{grid-template-columns:75px minmax(0,1fr)}.neighbor-figure .tk-person{--person-scale:.56}
}

.i-ledger::before{inset:1px 2px;background:linear-gradient(90deg,#81a89b 0 3px,#eee4bd 3px);border:2px solid #668678;border-radius:3px 5px 4px 3px}
.i-ledger::after{left:8px;top:7px;width:6px;height:2px;background:#ad816a;box-shadow:0 4px #ad816a;border-radius:2px}
.machine-list.two-stoves{grid-template-columns:repeat(4,minmax(0,1fr))}
.machine-list.two-stoves .machine{min-width:0}
.workbook-shortcuts{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap;margin:10px 0 0}
.workbook-shortcuts .btn{min-height:44px}
.panel-tabs{flex-wrap:wrap}
.panel-tabs button{flex:1 0 auto;padding-inline:8px}
.order-slots,.stove-picker{display:flex;flex-wrap:wrap;gap:6px}
.order-slots{padding:5px 10px 0}
.order-slots button,.stove-picker button{min-height:44px;flex:1;padding:5px 9px;border-radius:10px;border:1px solid #d9c2aa;background:#fffae9;color:#725a4f;font-size:13px;font-weight:700}
.order-slots button[aria-pressed="true"],.stove-picker .selected{color:#3f6c59;border-color:#93b39a;background:#e6f0da;box-shadow:inset 0 -2px #acc4a8}
.cell .instance-level.quality-care,.mastered{background:#fff0c3;color:#7b562e;border:1px solid #d4af65}
.mastered{display:inline-block;justify-self:start;padding:2px 7px;border-radius:7px;font-size:11px;font-weight:700;line-height:1.3}
.wear-sign{position:absolute;right:1%;top:44%;z-index:1;max-width:94%;padding:2px 4px;color:#684b36;background:#ffdd9a;border:1.5px solid #ad784d;border-radius:4px;font-size:clamp(9px,1.1vw,12px);line-height:1.2;font-weight:bold;box-shadow:1px 2px #79644b30;transform:rotate(5deg)}
.wear-sign[data-decoration="breakfast"]{background:#f8d88b;color:#765032}
.wear-sign[data-decoration="tea"]{background:#f4dfec;border-color:#ad8ba4;color:#765578}
.settlement-lines{display:grid;gap:2px;margin:12px 0;color:#725c4e}
.settlement-lines div{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.settlement-lines dt,.settlement-lines dd{margin:0;font-size:13px;line-height:1.65}
.settlement-lines dd{font-weight:750;white-space:nowrap}
@media(max-width:650px){
 .nav-dock button{gap:3px}
 .board-layout .panel-tabs button{padding-inline:6px}
}
@media(max-width:390px){
 .nav-dock button{flex-direction:column;gap:1px;line-height:1.15}
 .machine-list.two-stoves{grid-template-columns:repeat(2,minmax(0,1fr))}
 .machine-list.two-stoves .machine{display:grid;grid-template-columns:25px minmax(0,1fr);align-items:center;gap:0 4px;min-height:52px}
 .machine-list.two-stoves .tk-art{grid-row:1/3;justify-self:center}
 .machine-list.two-stoves .machine b,.machine-list.two-stoves .machine>span:last-child{text-align:left}
 .board-layout .panel-tabs button{font-size:13px}
}
.legacy-art{display:inline-grid;place-items:center;width:36px;height:36px;border:2px dashed #a38c6f;border-radius:9px;background:#eee2cc;color:#75654f;font-size:22px;font-weight:800}

.wear-sign{display:inline-flex;align-items:center;gap:2px}
.ornament-icon{display:grid;place-items:center;width:1.35em;height:1.35em;font-style:normal;line-height:1}
.ornament-icon::before{content:"✦";font-size:1.1em}
.wear-sign[data-decoration="breakfast"] .ornament-icon::before{content:"☀"}
.wear-sign[data-decoration="tea"] .ornament-icon::before{content:"☕︎"}
.wear-sign[data-decoration="guest-0"]{background:#f5df9e;border-color:#9d8555;color:#705d31}
.wear-sign[data-decoration="guest-0"] .ornament-icon::before{content:"🌾"}
.wear-sign[data-decoration="guest-1"]{background:#ddeddf;border-color:#83a496;color:#517466}
.wear-sign[data-decoration="guest-1"] .ornament-icon::before{content:"♫"}
.wear-sign[data-decoration="guest-2"]{background:#f7d8c8;border-color:#b87b69;color:#8b493d}
.wear-sign[data-decoration="guest-2"] .ornament-icon::before{content:"❖";color:#ac4f48}
