/* Real member connections; scoped additions to the ENISHI workspace. */
.live-network { min-width: 0; }
.live-network > *, .live-network .people-grid > *, .live-network .messages-shell > * { min-width: 0; }
.live-page-heading { align-items: flex-start; }
.live-heading-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.live-state-panel { padding: 45px 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: center; }
.live-state-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 17px; border: 1px solid #e5cbd7; border-radius: 50%; background: #faf0f4; color: #a7834d; }
.live-state-icon > .icon { width: 24px; height: 24px; }
.live-state-panel h2 { font-size: 19px; line-height: 1.8; font-weight: 500; color: #654151; }
.live-state-panel p { max-width: 500px; margin: 12px auto 0; color: #7c6470; font-size: 12px; line-height: 2; overflow-wrap: anywhere; }
.live-state-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 23px; }
.live-loading-spinner { width: 21px; height: 21px; border: 2px solid #e8ccd9; border-top-color: #98546e; border-radius: 50%; animation: live-network-spin .8s linear infinite; }
@keyframes live-network-spin { to { transform: rotate(360deg); } }
.live-home-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 32px; }
.live-summary-card { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 21px 22px; border: 1px solid #ead8e1; border-radius: 13px; background: #fffdfc; transition: border-color .2s, background .2s; }
.live-summary-card:hover { border-color: #d3a5b9; background: #fff8fb; }
.live-summary-card > span { color: #7b606e; font-size: 11px; }
.live-summary-card > strong { color: var(--green); font-family: Georgia, serif; font-size: 27px; font-weight: 400; line-height: 1.1; }
.live-summary-card small { margin-left: 5px; color: #8d7380; font-family: var(--font); font-size: 10px; }
.live-section-title { margin-top: 8px; }
.live-invite-panel { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 27px 29px; margin-top: 30px; border: 1px solid #e5c9d6; border-radius: 15px; background: linear-gradient(125deg, #f9e8ef, #fcf2f5 65%, #f8f0e2); }
.live-invite-panel > div { min-width: 0; }
.live-invite-panel h2 { color: #6d4257; font-family: 'Noto Serif JP', serif; font-size: 20px; font-weight: 500; line-height: 1.8; }
.live-invite-panel p { max-width: 560px; margin-top: 8px; color: #7c5a6c; font-size: 11px; line-height: 1.95; }
.live-invite-panel .live-heading-actions { flex-direction: column; align-items: stretch; flex-shrink: 0; gap: 8px; }
.live-invite-panel .text-link { justify-content: center; white-space: normal; }
.live-network .person-card .tag-row { min-width: 0; }
.live-network .person-card .tag { overflow-wrap: anywhere; }
.live-network .person-card .card-footer { gap: 12px; flex-wrap: wrap; }
.live-network .person-card .status-badge { font-size: 9px; }
.live-tag-empty { color: #8c727f; font-size: 10px; }
.live-network .person-name, .live-network .profile-heading h1 { overflow-wrap: anywhere; }
.live-network .person-role { overflow-wrap: anywhere; }
.live-network .profile-section p { white-space: pre-wrap; overflow-wrap: anywhere; }
.live-network .tag-row { overflow-wrap: anywhere; }
.live-profile-cover { background: linear-gradient(110deg, #f1d8e3, #f9e9f0 65%, #f4e9d8); }
.live-member-hidden-note { padding: 12px 15px; border: 1px solid #dfc9d5; border-radius: 9px; background: #fbf2f7; color: #7c596b; font-size: 11px; line-height: 1.9; margin-bottom: 25px; }
.live-poll-hint { color: #876b7b; font-size: 9px; line-height: 1.9; margin-top: 15px; }
.live-network .profile-aside .live-poll-hint { margin-top: 15px; font-size: 10px; }
.live-action-error { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 13px 15px; border: 1px solid #e1b8c8; border-radius: 9px; background: #fff0f5; color: #8c425c; font-size: 11px; line-height: 1.9; margin: 0 0 20px; overflow-wrap: anywhere; }

.live-filter-panel { padding: 20px 22px; margin-bottom: 24px; border: 1px solid #e7d0db; border-radius: 13px; background: #fffdfc; }
.live-filter-panel > summary { display: flex; justify-content: space-between; align-items: center; gap: 15px; color: #754b61; font-size: 12px; font-weight: 500; cursor: pointer; list-style: none; }
.live-filter-panel > summary::-webkit-details-marker { display: none; }
.live-filter-panel > summary .icon { width: 17px; height: 17px; color: #a88450; }
.live-filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 28px; padding-top: 24px; }
.live-filter-field { display: flex; flex-direction: column; min-width: 0; gap: 9px; padding: 0; margin: 0; border: 0; color: #745365; font-size: 11px; }
.live-filter-field > span, .live-filter-field > legend { font-weight: 500; }
.live-filter-field > legend { float: left; padding: 0; margin-bottom: 9px; }
.live-filter-field > legend + * { clear: both; }
.live-filter-field select { min-width: 0; width: 100%; background-color: #fffdfc; }
.live-filter-wide { grid-column: 1 / -1; }
.live-filter-checks { display: flex; flex-wrap: wrap; gap: 7px; }
.live-filter-checks .choice-label { padding: 8px 10px; margin: 0; font-size: 11px; }
.live-filter-checks input { accent-color: var(--green); }
.live-filter-caption { color: #806974; font-size: 10px; line-height: 1.9; }
.live-filter-actions { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding-top: 18px; margin-top: 24px; border-top: 1px solid var(--line); }
.live-filter-actions .text-link { flex-shrink: 0; }
.live-area-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.live-area-chip { display: inline-flex; justify-content: center; align-items: center; min-height: 35px; padding: 7px 12px; border: 1px solid #e0c2cf; border-radius: 20px; background: #fffafc; color: #815c70; font-size: 11px; line-height: 1.7; }
.live-area-chip[aria-pressed='true'] { border-color: var(--green); background: var(--green); color: #fff8fb; }
.live-search-form input { font-size: 12px; }
.live-network .active-filter { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.live-network .connection-info { min-width: 0; }
.live-network .connection-card p { white-space: pre-wrap; overflow-wrap: anywhere; }
.live-network .connection-actions { flex-wrap: wrap; }
.live-network .connection-badge { white-space: normal; }

.live-network .messages-shell { min-width: 0; }
.live-network .conversation-link > div { min-width: 0; }
.live-network .chat-header { min-width: 0; }
.live-network .chat-header > a:not(.text-link) { min-width: 0; }
.live-network .chat-header .person-name, .live-network .chat-header .person-role { max-width: 230px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.live-network .chat-header .text-link { flex-shrink: 0; }
.live-network .chat-thread { min-height: 280px; max-height: min(56dvh, 560px); overflow-anchor: none; overscroll-behavior: contain; }
.live-network .chat-thread .chat-message { flex-shrink: 0; }
.live-network .chat-bubble { overflow-wrap: anywhere; }
.live-chat-empty { max-width: 380px; color: #8b7180; font-size: 12px; line-height: 2; text-align: center; align-self: center; margin: 50px auto; }
.live-chat-status { padding: 9px 15px; border-bottom: 1px solid #f0e3ea; background: #fdf6f9; color: #846977; font-size: 9px; line-height: 1.9; text-align: center; }
.live-chat-error { padding: 10px 15px; background: #fff0f5; border-bottom: 1px solid #e7c8d6; color: #8a405b; font-size: 10px; line-height: 1.9; overflow-wrap: anywhere; }
.live-chat-error .text-link { display: inline-flex; font-size: 10px; }
.live-message-more { width: 100%; flex-shrink: 0; display: flex; justify-content: center; padding: 12px 0; }
.live-chat-form { min-width: 0; }
.live-chat-form textarea { min-width: 0; }
.live-chat-form button { flex-shrink: 0; min-width: 44px; }
.live-network .chat > .live-poll-hint { margin: 0; padding: 0 24px 12px; font-size: 9px; text-align: right; }

dialog.live-dialog { width: min(510px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 0; margin: auto; overflow-y: auto; border: 1px solid #e6ced9; border-radius: 18px; background: #fffafc; color: #382a30; box-shadow: 0 24px 80px #48253630; }
dialog.live-dialog::backdrop { background: #38222d80; backdrop-filter: blur(5px); }
.live-dialog-content { padding: 28px; }
.live-dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 21px; }
.live-dialog-heading h2 { color: #694052; font-size: 19px; font-weight: 500; line-height: 1.75; }
.live-dialog-heading .icon-button { margin-top: -5px; margin-right: -6px; flex-shrink: 0; }
.live-dialog-intro { color: #816773; font-size: 12px; line-height: 1.95; margin: 0 0 20px; overflow-wrap: anywhere; }
.live-dialog-form { min-width: 0; }
.live-dialog-form .field { font-size: 12px; }
.live-dialog-note { min-height: 130px; max-height: 320px; font-size: 13px; }
.live-dialog-actions { display: flex; justify-content: flex-end; align-items: center; gap: 9px; margin-top: 24px; }
.live-dialog-error { color: #8c425c; font-size: 11px; line-height: 1.95; padding: 12px 14px; margin-top: 16px; border: 1px solid #e2b9c9; border-radius: 8px; background: #fff0f5; overflow-wrap: anywhere; }
.live-dialog-error:empty { display: none; }
.live-notification { display: flex; align-items: center; gap: 11px; width: 100%; min-width: 0; padding: 17px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: #724d62; text-align: left; }
.live-notification > span:not(.avatar) { min-width: 0; flex: 1; }
.live-notification strong { display: block; color: #744b61; font-size: 12px; font-weight: 500; line-height: 1.9; overflow-wrap: anywhere; }
.live-notification small { display: block; color: #8c7280; font-size: 10px; margin-top: 2px; overflow-wrap: anywhere; }
.live-notification > .icon { width: 16px; height: 16px; }

@media (max-width: 980px) {
  .live-home-summary { gap: 12px; }
  .live-summary-card { padding: 18px 16px; gap: 10px; }
  .live-invite-panel { padding: 25px; align-items: flex-start; }
  .live-invite-panel h2 { font-size: 18px; }
  .live-invite-panel .live-heading-actions { max-width: 170px; }
  .live-filter-grid { gap: 20px; }
}
@media (max-width: 760px) {
  .live-invite-panel { flex-direction: column; gap: 20px; }
  .live-invite-panel .live-heading-actions { flex-direction: row; max-width: none; flex-wrap: wrap; align-items: center; gap: 14px; }
  .live-summary-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .live-summary-card > span { font-size: 10px; }
}
@media (max-width: 620px) {
  .live-page-heading { flex-direction: column; gap: 14px; }
  .live-heading-actions .button { font-size: 11px; padding: 9px 12px; }
  .live-state-panel { padding: 34px 22px; border-radius: 14px; }
  .live-state-panel h2 { font-size: 17px; }
  .live-state-panel p { font-size: 11px; }
  .live-home-summary { gap: 9px; margin-bottom: 27px; }
  .live-summary-card { padding: 16px 11px; border-radius: 11px; }
  .live-summary-card > span { font-size: 9px; line-height: 1.8; }
  .live-summary-card > strong { font-size: 25px; }
  .live-summary-card small { font-size: 9px; }
  .live-invite-panel { margin-top: 25px; padding: 23px 21px; border-radius: 13px; }
  .live-invite-panel h2 { font-size: 18px; }
  .live-invite-panel p { font-size: 11px; }
  .live-invite-panel .live-heading-actions { flex-direction: column; align-items: stretch; width: 100%; gap: 10px; }
  .live-network .profile-actions { flex-wrap: wrap; }
  .live-network .profile-actions > .connection-badge { width: 100%; text-align: center; }
  .live-member-hidden-note { font-size: 10px; margin-bottom: 22px; }
  .live-filter-panel { padding: 18px 16px; margin-bottom: 21px; }
  .live-filter-panel > summary { font-size: 11px; line-height: 1.8; }
  .live-filter-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 23px; }
  .live-filter-wide { grid-column: auto; }
  .live-filter-field { font-size: 11px; }
  .live-filter-field .input, .live-search-form input { font-size: 16px; }
  .live-filter-field .input { min-height: 45px; }
  .live-filter-checks .choice-label { padding: 9px 10px; font-size: 11px; }
  .live-area-buttons { gap: 7px; }
  .live-area-chip { min-height: 36px; padding: 7px 11px; font-size: 11px; }
  .live-filter-actions { align-items: flex-start; gap: 10px; }
  .live-filter-caption { font-size: 9px; }
  .live-filter-actions .text-link { font-size: 10px; }
  .live-network .search-toolbar { align-items: flex-start; gap: 12px; }
  .live-network .search-toolbar > .live-filter-caption { max-width: 110px; text-align: right; }
  .live-network .chat-header .person-name, .live-network .chat-header .person-role { max-width: 150px; }
  .live-network .chat-thread { min-height: 285px; max-height: 49dvh; padding: 20px 15px; }
  .live-chat-status { padding: 9px 12px; font-size: 9px; }
  .live-chat-error { padding: 10px 13px; }
  .live-chat-form textarea { font-size: 16px; min-height: 76px; }
  .live-network .chat > .live-poll-hint { padding: 0 15px 12px; font-size: 8px; }
  .live-dialog-content { padding: 24px 21px; }
  .live-dialog-heading h2 { font-size: 18px; }
  .live-dialog-intro { font-size: 11px; }
  .live-dialog-note { font-size: 16px; min-height: 140px; }
  .live-dialog-actions .button { font-size: 11px; padding: 10px 13px; }
  .live-dialog-error { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .live-loading-spinner { animation: none; }
  .live-summary-card { transition: none; }
}
