#shared-street {
  border: 1px solid #d4dfce;
  border-radius: 18px;
  padding: .85rem 1rem;
  margin: .8rem 0;
  background: #f2f6ed;
  color: #33463a;
}
.shared-street-bar { display:flex; flex-wrap:wrap; align-items:center; gap:.45rem .85rem; }
#shared-street button {
  font:inherit; color:inherit; background:#fffdf6; border:1px solid #c4d2c0;
  border-radius:12px; padding:.4rem .7rem; min-height:42px; cursor:pointer;
}
#shared-street button[aria-pressed=true] { background:#dae9d9; border-color:#779983; font-weight:700; }
#shared-street button:disabled { opacity:.55; cursor:default; }
#shared-street button:focus-visible { outline:2px solid #446d55; outline-offset:2px; }
#shared-street-summary, #shared-street-feedback { font-size:.86rem; }
#shared-street-feedback:empty { display:none; }
.shared-street-tabs, .shared-street-actions { display:flex; flex-wrap:wrap; gap:.45rem; margin:.65rem 0; }
.shared-street-notes p { margin:.4rem 0; }
.shared-street-log { list-style:none; margin:.3rem 0 0; padding:0; }
.shared-street-log li { display:flex; align-items:baseline; flex-wrap:wrap; gap:.2rem .65rem; border-top:1px solid #dbe4d7; padding:.4rem 0; }
.shared-street-log time { font-size:.77rem; color:#536257; }
.shared-street-log strong { font-size:.77rem; color:#3e644b; }
#shared-street h3 { font-size:.95rem; margin:.8rem 0 .3rem; }
#shared-scene-hint {
  background:#fffdf5; border:1px solid #e3dfcc; color:#465448;
  border-radius:12px; padding:.48rem .7rem; margin:.55rem 0 0; font-size:.87rem;
}
#shared-street [hidden], #shared-scene-hint[hidden] { display:none; }
#manbi-bench-rest {
  min-height:44px; margin:.45rem 0 0; padding:.4rem .8rem; cursor:pointer;
  font:inherit; color:#3e5242; background:#edf3e8; border:1px solid #bdccba; border-radius:12px;
}
#manbi-bench-rest:focus-visible { outline:2px solid #446d55; outline-offset:2px; }


.shared-chain-object {cursor:pointer;outline:none;}
.shared-chain-object:focus-visible>rect {stroke:#627d65;stroke-width:4;}
.shared-chain-object:hover>rect {fill:#fff0cc;}
.shared-paper-play {animation:paper-sway 2.8s ease-in-out infinite;}
@keyframes paper-sway {50%{transform:translateY(-4px) rotate(2deg);}}
.shared-chain-card {margin:.8rem 0;padding:1rem;border:1px solid #cfceb6;border-radius:20px;background:#fffaf0;color:#515d4d;}
.shared-chain-card[hidden] {display:none;}
.shared-chain-card h3 {font-size:1rem;margin:0 0 .5rem;}
.shared-chain-card p {margin:.5rem 0;line-height:1.7;}
.shared-chain-card small {display:block;margin-top:.6rem;color:#6d7462;}
.shared-chain-actions {display:flex;flex-wrap:wrap;gap:.5rem;}
.shared-chain-actions button {font:inherit;background:#f0efdb;border:1px solid #b9c3a8;border-radius:14px;padding:.65rem .85rem;min-height:44px;color:#465342;cursor:pointer;}
.shared-chain-actions button:disabled {opacity:.5;}
.shared-chain-actions button:last-child {background:#fffdf7;}
@media(prefers-reduced-motion:reduce){.shared-paper-play{animation:none;}}


.resident-call {position:absolute;top:65px;left:18px;z-index:9;display:flex;gap:8px;align-items:start;max-width:min(340px,87%);padding:12px 14px;border:1px solid #c8bfa5;border-radius:20px;background:#fffaf0f5;box-shadow:0 5px 18px #59664c18;animation:resident-hello .4s ease-out;}
.resident-call[hidden],.resident-reaction[hidden]{display:none;}
.resident-face{flex:0 0 42px;width:42px;}.resident-face svg{display:block;width:42px;}
.resident-call strong{font-size:12px;}.resident-call p{font-size:12px;margin:5px 0 8px;line-height:1.65;}
.resident-call-actions{display:flex;gap:6px;flex-wrap:wrap;}.resident-call button{font-size:12px;min-height:40px;padding:8px 10px;background:#e9eddb;border:1px solid #c6ceb9;border-radius:13px;}.resident-call button:last-child{background:transparent;border:0;font-size:11px;}
.resident-reaction{position:absolute;bottom:16px;left:6%;right:6%;padding:11px 16px;background:#fff9e9f5;border:1px solid #dfceb0;border-radius:18px;font-size:13px;line-height:1.7;z-index:8;pointer-events:none;}
.resident-reaction.arrive{animation:resident-hello .4s ease-out;}.resident-changed .shared-chain-object{animation:resident-pop .55s ease-out;}.resident-folding{animation:paper-sway 2s ease-in-out infinite;}
@keyframes resident-hello{from{opacity:0;transform:translateY(12px);}to{opacity:1;transform:translateY(0);}}
@media(prefers-reduced-motion:reduce){.resident-call,.resident-reaction.arrive,.resident-changed .shared-chain-object,.resident-folding{animation:none;}}

@keyframes resident-pop{from{opacity:.3;}to{opacity:1;}}

.shared-street-shortcut{margin:12px 0}
.shared-street-shortcut[hidden],.shared-street-shortcut p:empty{display:none}
.shared-street-shortcut button{
  min-height:44px;
  padding:8px 15px;
  border:1px solid #b7c4ae;
  border-radius:16px;
  background:#e7eddd;
  color:#415641;
  cursor:pointer;
  font-size:13px;
}
.shared-street-shortcut button[aria-disabled=true]{opacity:.65}
.shared-street-shortcut p{margin:8px 0 0;font-size:13px;line-height:1.65}

.manbi-hello{
  margin:12px 0;
  padding:12px 15px;
  background:#fff9e9;
  border:1px solid #dfceb0;
  border-radius:16px;
  font-size:14px;
  line-height:1.65;
}
.manbi-hello p{margin:4px 0 0}
.manbi-hello-line{
  display:grid;
  grid-template-columns:62px minmax(0,1fr);
  align-items:center;
  gap:10px;
  margin-bottom:8px;
}
.manbi-hello-portrait{
  width:62px;
  height:62px;
  border-radius:50%;
  background:url("./manbi-theater-poses.webp") -23px 0/294px 196px no-repeat;
}
.manbi-hello-actions{display:flex;flex-wrap:wrap;gap:8px}
.manbi-hello button{min-height:44px;padding:6px 12px;border:1px solid #b7c4ae;border-radius:14px;background:#e7eddd;color:#415641;cursor:pointer}
.manbi-hello button[aria-disabled=true]{opacity:.7}
