.zb-root{box-sizing:border-box;max-width:850px;margin:1.5rem auto;border:1px solid #e7dfe3;border-radius:16px;padding:20px;background:#fff;font-family:system-ui,-apple-system,"Yu Gothic","Meiryo",sans-serif;color:#29242a}
.zb-root *{box-sizing:border-box}.zb-header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding-bottom:12px;border-bottom:1px solid #eee5e9}.zb-header small,.zb-label,.zb-status{font-size:12px;color:#756970}.zb-status{margin:10px 0}.zb-form label{display:block;font-size:14px;font-weight:600;margin-bottom:7px}.zb-compose{display:flex;gap:10px;align-items:stretch}.zb-compose textarea{width:100%;min-width:0;padding:10px;border:1px solid #d9cbd2;border-radius:10px;resize:vertical;line-height:1.55;background:#fff}.zb-root button{cursor:pointer;border:0;border-radius:10px;padding:8px 18px;background:#ce6d94;color:#fff;font-weight:600}.zb-root button:hover{filter:brightness(.94)}.zb-root button:disabled{opacity:.6;cursor:wait}.zb-choices{margin-top:10px}.zb-prompt{font-weight:600;font-size:14px;margin-bottom:7px}.zb-button-row{display:flex;gap:8px}.zb-button-row .zb-confirm:last-child{background:#736870}.zb-select{max-width:100%;margin:8px 0;border:1px solid #c8bdc3;background:#fff;padding:8px;border-radius:8px}.zb-option-label{font-size:13px;display:block;margin-top:10px}.zb-messages{display:flex;flex-direction:column;gap:16px;margin-top:20px;max-height:630px;overflow-y:auto;overscroll-behavior:contain;padding:8px;border-top:1px solid #eee6eb}.zb-entry{max-width:91%;display:flex;flex-direction:column;gap:4px}.zb-entry.zb-user{align-self:flex-end}.zb-entry.zb-bot{align-self:flex-start}.zb-label{padding:0 7px}.zb-bubble{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;background:#f6f4f5;border-radius:13px;padding:13px 15px}.zb-user .zb-bubble{background:#faedf1}.zb-footer{margin-top:16px}@media(max-width:560px){.zb-root{padding:12px}.zb-entry{max-width:98%}.zb-compose{flex-direction:column}}

.zb-root .zb-delete{margin-left:0;padding:4px 9px;border:1px solid #9c8793;color:#7c425c;background:transparent;font-size:12px}.zb-root .zb-delete:hover{background:#fceff4}

/* v3.8.4: Match ZERUCH message text (A) to the compose-field text (B).
   Scope: only the board's reply bubbles and compose textarea; no other UI resized. */
.zb-root .zb-compose textarea,
.zb-root .zb-bot .zb-bubble {
  font-size: 14px;
}

/* 旧522状況を用いた訂正候補。確定前の選択肢であり、回答ではない。 */
.zb-root .zb-related-candidates{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0 12px;}
.zb-root .zb-related-candidates .zb-option-label{flex-basis:100%;}
.zb-root .zb-candidate{background:#fff7fa;border:1px solid #e0b8c8;color:#663d50;border-radius:10px;padding:7px 10px;cursor:pointer;text-align:left;font:inherit;font-size:13px;}
.zb-root .zb-candidate:focus-visible{outline:2px solid #a84871;outline-offset:2px;}
.zb-root .zb-catalog-choices{margin:10px 0;display:grid;gap:8px;}

/* 検索中だけ掲示板の先頭に表示する一時メッセージ。履歴には保存しない。 */
.zb-root .zb-thinking .zb-bubble{background:#f7f2f5;color:#65535f;}

/* v3.9.4: Free member history and optional read-only reference links. */
.zb-root .zb-session-tools{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.zb-root .zb-session-tools button,.zb-root .zb-saved-item button{background:#f9eff3;color:#75455b;border:1px solid #ddbfcb;font-size:12px;padding:6px 10px}
.zb-root .zb-saved-sessions{border:1px solid #efdee5;border-radius:10px;padding:10px;margin:8px 0;max-height:210px;overflow-y:auto}
.zb-root .zb-saved-sessions[hidden]{display:none}
.zb-root .zb-saved-item{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #f0e8ec;padding:8px 0}
.zb-root .zb-saved-caption{font-size:12px;max-width:75%;overflow-wrap:anywhere}
.zb-root .zb-reference-options{display:flex;gap:14px;flex-wrap:wrap;padding:6px 2px;color:#645360;font-size:12px}
.zb-root .zb-reference-options label{display:flex;gap:5px;align-items:center;cursor:pointer}

.zb-root .zb-reference-state{font-size:12px;color:#685d66;margin:0 0 4px}

/* v3.9.13: Unregistered visitor ten-message trial and membership invitation. */
.zb-root [hidden]{display:none!important}
.zb-root .zb-guest-status{background:#fff4f8;border:1px solid #ead4dd;border-radius:10px;padding:9px 12px;color:#694457;font-size:13px;margin:12px 0}
.zb-root .zb-signup{padding:15px;border:1px solid #dfb9ca;border-radius:12px;background:#fff9fc;margin:12px 0}
.zb-root .zb-signup p{margin:0 0 12px;font-size:14px}
.zb-root .zb-signup-link,.zb-root .zb-login-link{display:inline-block;margin:2px 9px 2px 0;padding:8px 12px;border-radius:9px;background:#ce6d94;color:white;text-decoration:none;font-size:14px}
.zb-root .zb-login-link{background:#f7eaf0;color:#743950;border:1px solid #dcb6c5}
