.member-work-notice { margin: 22px 0 0; color: #777; font-size: 12px; line-height: 1.7; }
.member-work-notice[hidden], .product-quantity[hidden], .member-message-notice[hidden], .product-admin-form label[hidden] { display: none; }
.favorite-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); gap: 20px; }
.favorite-card { padding: 16px; border: 1px solid #e7e1dc; min-width: 0; }
.favorite-open { display: grid; gap: 10px; width: 100%; padding: 0; background: white; color: #292929; border: 0; text-align: center; cursor: pointer; }
.favorite-open strong, .favorite-open small { overflow-wrap: anywhere; }
.favorite-open img { width: 100%; height: 150px; object-fit: contain; }
.favorite-actions { display: flex; flex-wrap: nowrap; gap: 8px; margin-top: 16px; }
.favorite-actions button { flex: 1; width: auto; min-width: 0; min-height: 32px; font-size: 12px; line-height: 1.3; padding: 6px 8px; overflow-wrap: anywhere; }
.member-inbox { margin-bottom: 28px; }
.member-inbox h3 { font-size: 17px; font-weight: 500; }
.message-kind-tabs { display: flex; justify-content: center; width: min(100%, 340px); margin: 0 auto 24px; }
.message-kind-tabs button { flex: 1; width: auto; min-width: 0; min-height: 40px; padding: 9px 14px; border: 1px solid #f5661c; background: white; color: #f5661c; font: inherit; font-size: 14px; cursor: pointer; }
.message-kind-tabs button + button { border-left: 0; }
.message-kind-tabs button.is-current { background: #f5661c; color: white; }
.message-kind-tabs button:focus-visible { outline: 2px solid #a44c24; outline-offset: 3px; }
.message-system-panel .message-toolbar { justify-content: flex-end; }
.member-inbox[hidden], .message-system-panel[hidden] { display: none; }
.member-thread-list { display: grid; gap: 10px; }
.member-thread { display: grid; gap: 6px; padding: 14px; background: #fff; color: #292929; border: 1px solid #e7e1dc; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.member-thread.is-unread { border-color: #f5661c; background: #fff8f1; }
.member-thread small { color: #777; }
.member-thread span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-message-notice { position: fixed; right: 20px; bottom: 24px; z-index: 10020; max-width: calc(100vw - 40px); border: 1px solid #f5661c; padding: 12px 18px; background: white; color: #b9440b; box-shadow: 0 4px 24px #0002; cursor: pointer; }
.member-chat-dialog { width: min(600px,calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 22px; border: 0; color: #292929; background: #fff; }
.member-chat-dialog::backdrop { background: #0008; backdrop-filter: blur(4px); }
.member-chat-dialog header { display: flex; justify-content: space-between; gap: 18px; }
.member-chat-dialog h2 { margin: 0; font-size: 20px; }
.member-chat-dialog header p { margin: 6px 0; font-size: 13px; color: #777; }
.member-chat-close { align-self: flex-start; border: 0; background: none; color: #777; font-size: 26px; cursor: pointer; }
.member-chat-log { height: min(380px,45dvh); overflow-y: auto; padding: 12px 4px; overscroll-behavior: contain; }
.member-chat-message { width: fit-content; max-width: 90%; margin: 10px 0; padding: 10px 12px; background: #f5f3f0; border-radius: 10px; overflow-wrap: anywhere; }
.member-chat-message.is-self { margin-left: auto; background: #fff0e3; }
.member-chat-message p { margin: 0; white-space: pre-wrap; font-size: 14px; }
.member-chat-message time { display: block; font-size: 11px; color: #888; margin-top: 6px; }
.member-chat-row { display: flex; align-items: flex-start; gap: 9px; margin: 12px 0; }
.member-chat-row.is-self { flex-direction: row-reverse; }
.member-chat-avatar { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; object-fit: cover; background: #f5f3f0; }
.member-chat-row .member-chat-message { min-width: 0; max-width: calc(100% - 43px); margin: 0; }
.member-chat-dialog form { display: flex; gap: 10px; margin-top: 12px; }
.member-chat-dialog textarea { min-width: 0; flex: 1; border: 1px solid #d7d0c9; padding: 10px; font: inherit; resize: vertical; }
.member-chat-dialog.is-support-chat form { align-items: stretch; }
.member-chat-dialog.is-support-chat input[name=text] { height: 42px; min-width: 0; flex: 1; border: 1px solid #d7d0c9; padding: 0 10px; font: inherit; box-sizing: border-box; }
.member-chat-dialog.is-support-chat form button { height: 42px; padding: 0 18px; box-sizing: border-box; }
.member-chat-dialog form button { border: 1px solid #f5661c; background: #f5661c; color: white; padding: 10px 18px; cursor: pointer; }
.member-chat-status { color: #a44c24; font-size: 13px; }
.member-chat-earlier { background: none; border: 0; color: #a44c24; cursor: pointer; }
.support-admin-layout, .support-chat-pane { min-width: 0; }
.support-conversation-list[hidden], .member-chat-dialog form[hidden] { display: none; }
.member-chat-dialog.is-admin-support { width: min(980px, calc(100vw - 24px)); padding: 0; }
.is-admin-support .support-admin-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: min(600px, 85dvh); }
.is-admin-support .support-conversation-list { padding: 20px 12px; border-right: 1px solid #e7e1dc; background: #f6f4f1; overflow-y: auto; max-height: min(720px, 90dvh); }
.support-conversation-list h3 { font-size: 17px; margin: 0 4px 18px; }
.support-conversation-list .member-thread-list { gap: 0; }
.support-conversation-list .member-thread { border: 0; border-bottom: 1px solid #e7e1dc; padding: 14px 10px; }
.support-conversation-list .member-thread.is-selected { background: #ffe8d7; box-shadow: inset 3px 0 #f5661c; }
.support-conversation-list .member-thread { grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 10px; }
.support-member-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #eee; }
.member-chat-work[hidden] { display: none; }
.is-admin-support .support-chat-pane { padding: 22px; display: flex; flex-direction: column; }
.is-admin-support .member-chat-log { flex: 1; height: min(390px, 48dvh); min-height: 150px; }
.is-admin-support .member-chat-status { margin-bottom: 0; }
@media (max-width: 600px) {
  .is-admin-support .support-admin-layout { grid-template-columns: 125px minmax(0, 1fr); }
  .is-admin-support .support-conversation-list { padding: 16px 5px; }
  .support-conversation-list h3 { font-size: 14px; }
  .support-conversation-list .member-thread { padding: 12px 6px; font-size: 12px; }
  .support-conversation-list .member-thread { grid-template-columns: 28px minmax(0, 1fr); gap: 6px; }
  .support-member-avatar { width: 28px; height: 28px; }
  .support-conversation-list .member-thread small { font-size: 11px; }
  .is-admin-support .support-chat-pane { padding: 14px 10px; }
  .member-chat-dialog.is-admin-support h2 { font-size: 16px; }
  .is-admin-support form { flex-wrap: wrap; }
  .is-admin-support input[name=text] { flex-basis: 100%; }
  .is-admin-support form button { margin-left: auto; }
}
