/* AllCoding rung 1. S1: one rule sizes both home buttons; no per-button style anywhere. */
body { margin: 0; font: 16px/1.4 system-ui, sans-serif; background: #f6f6f4; color: #1b1b1b; }
h1 { text-align: center; }
.choices { display: flex; justify-content: center; gap: 24px; margin-top: 15vh; }
.choice { width: 240px; height: 120px; font-size: 20px; border: 2px solid #333; border-radius: 12px; background: #fff; color: #1b1b1b; cursor: pointer; }
#desk { position: fixed; inset: 0 0 40px 0; pointer-events: none; }
#dock { position: fixed; left: 0; right: 0; bottom: 0; height: 40px; display: flex; gap: 8px; padding: 4px; }
.panel { position: absolute; display: flex; flex-direction: column; background: #fff; border: 1px solid #555; border-radius: 8px; pointer-events: auto; overflow: hidden; }
.panel.full { border-radius: 0; }
.panel-bar { display: flex; gap: 6px; align-items: center; padding: 4px 8px; background: #e4e4e0; cursor: move; user-select: none; }
.panel-title { flex: 1; font-weight: 600; }
.panel-grip { position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; cursor: nwse-resize; }
.room { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.msgs { flex: 1; overflow: auto; margin: 0; padding: 8px 12px; list-style: none; }
.msgs .who { font-weight: 600; margin-right: 6px; }
.msgs .at { color: #666; font-size: 12px; margin-right: 6px; }
.msgs .text { white-space: pre-wrap; }
.panel.shrunk .room, .panel.shrunk .panel-grip { display: none; }
.msgs button.who { border: 0; background: none; color: inherit; font: inherit; font-weight: 600; padding: 0; cursor: pointer; }
#agree form, #gate form { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
#status { min-height: 1.4em; text-align: center; color: #a33; }
.keep-notice { margin: 0; padding: 4px 12px; font-size: 12px; color: #555; }
.post { display: flex; gap: 6px; padding: 6px; }
.post textarea { flex: 1; height: 48px; }
@media (prefers-color-scheme: dark) {
  body { background: #161616; color: #eee; }
  .choice { background: #222; color: #eee; border-color: #aaa; }
  .panel { background: #1e1e1e; }
  .panel-bar { background: #2b2b2b; }
}
