[hidden] { display: none !important; }
.rcorp-ai { position: fixed; right: 24px; bottom: 24px; z-index: 9999; font-family: "Noto Sans JP", "Yu Gothic", YuGothic, sans-serif; }
.rcorp-ai-launcher { min-height: 56px; padding: 8px 18px 8px 8px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; background: #081729; color: #fff; box-shadow: 0 14px 38px rgba(8,23,41,.28); cursor: pointer; font: inherit; font-weight: 700; }
.rcorp-ai-launcher-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #075bd8; font: 800 12px/1 Arial,sans-serif; letter-spacing: .04em; }
.rcorp-ai-launcher-text { font-size: 13px; white-space: nowrap; }
.rcorp-ai-panel { width: min(390px, calc(100vw - 28px)); height: min(640px, calc(100vh - 110px)); position: absolute; right: 0; bottom: 70px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #d8dde4; border-radius: 18px; background: #fff; box-shadow: 0 26px 70px rgba(7,17,29,.24); opacity: 0; transform: translateY(10px) scale(.985); transition: opacity .18s ease, transform .18s ease; }
.rcorp-ai-panel.is-open { opacity: 1; transform: translateY(0) scale(1); }
.rcorp-ai-header { padding: 18px 18px 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; color: #fff; background: linear-gradient(135deg,#071522,#0b3975); }
.rcorp-ai-header strong { display: block; font-size: 15px; }
.rcorp-ai-header span { display: block; margin-top: 5px; color: #c9d8e9; font-size: 11px; }
.rcorp-ai-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; font-size: 21px; line-height: 1; }
.rcorp-ai-messages { flex: 1; min-height: 0; padding: 18px; overflow-y: auto; background: #f5f7f9; }
.rcorp-ai-message { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 9px; }
.rcorp-ai-message.is-user { justify-content: flex-end; }
.rcorp-ai-avatar { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #081729; color: #fff; font: 700 15px/1 Georgia,serif; }
.rcorp-ai-bubble { max-width: 82%; padding: 11px 13px; border-radius: 4px 14px 14px 14px; background: #fff; color: #202833; box-shadow: 0 1px 2px rgba(0,0,0,.05); font-size: 13px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.rcorp-ai-message.is-user .rcorp-ai-bubble { border-radius: 14px 4px 14px 14px; background: #075bd8; color: #fff; }
.rcorp-ai-bubble.is-loading { color: #69717c; }
.rcorp-ai-quick { padding: 10px 14px 0; display: flex; gap: 7px; overflow-x: auto; background: #fff; }
.rcorp-ai-quick button { padding: 7px 9px; border: 1px solid #cfd6df; border-radius: 999px; background: #fff; color: #334155; white-space: nowrap; cursor: pointer; font-size: 11px; }
.rcorp-ai-quick button:hover { border-color: #075bd8; color: #075bd8; }
.rcorp-ai-form { padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; background: #fff; }
.rcorp-ai-form textarea { min-height: 44px; max-height: 120px; padding: 11px 12px; resize: none; border: 1px solid #cfd6df; border-radius: 10px; outline: 0; font: inherit; font-size: 13px; line-height: 1.55; }
.rcorp-ai-form textarea:focus { border-color: #075bd8; box-shadow: 0 0 0 3px rgba(7,91,216,.08); }
.rcorp-ai-form button { min-width: 62px; height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: #075bd8; color: #fff; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; }
.rcorp-ai-note { margin: 0; padding: 0 14px 13px; background: #fff; color: #77808b; font-size: 9.5px; line-height: 1.6; }
.rcorp-ai-note a { color: #075bd8; text-decoration: underline; }
@media (max-width: 650px) {
  .rcorp-ai { right: 14px; bottom: 14px; }
  .rcorp-ai-panel { position: fixed; left: 10px; right: 10px; bottom: 82px; width: auto; height: min(68vh, 620px); }
  .rcorp-ai-launcher { min-height: 52px; padding-right: 15px; }
  .rcorp-ai-launcher-icon { width: 36px; height: 36px; }
}

.rcorp-ai-limit-bubble { max-width: 90%; }
.rcorp-ai-contact-button { display: inline-flex; margin-top: 11px; padding: 10px 14px; border-radius: 9px; background: #075bd8; color: #fff !important; text-decoration: none !important; font-size: 12px; font-weight: 700; }
.rcorp-ai-contact-button:hover { opacity: .9; }
.rcorp-ai-form textarea:disabled { background: #f1f3f5; color: #7b8490; cursor: not-allowed; }
.rcorp-ai-form button:disabled, .rcorp-ai-quick button:disabled { opacity: .45; cursor: not-allowed; }
