/* Creator operations. Scoped to the role-gated management workspace. */
.creator-hub { --hub-quiet: #f3f7fd; --hub-selected: #eaf3ff; min-width: 0; }
.creator-hub-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.15rem; }
.creator-hub-heading h2, .creator-hub-heading p, .creator-directory h3, .creator-hub-identity h3 { margin: 0; }
.creator-hub-heading h2 { margin-block: .2rem; }
.creator-hub-heading p:not(.eyebrow) { color: var(--muted); }
.creator-hub-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; min-width: min(100%, 18rem); }
.creator-hub-stats > div { padding: .6rem .7rem; border-radius: .85rem; background: var(--hub-quiet); }
.creator-hub-stats strong, .creator-hub-stats span { display: block; }
.creator-hub-stats strong { font-size: 1.15rem; line-height: 1.25; }
.creator-hub-stats span { color: var(--muted); font-size: .74rem; }
.creator-hub-layout { display: grid; grid-template-columns: minmax(14rem,.85fr) minmax(0,1.75fr); gap: 1rem; align-items: start; }
.creator-directory, .creator-hub-detail { min-width: 0; border: 1px solid var(--edge); border-radius: 1rem; background: var(--surface); }
.creator-directory { display: grid; gap: .65rem; padding: .8rem; }
.creator-directory label, .creator-message-template label { display: grid; gap: .25rem; color: var(--ink); font-size: .83rem; font-weight: 700; min-width: 0; }
.creator-directory :is(input,select), .creator-message-template select { width: 100%; min-height: 44px; }
.creator-directory > .field-help { margin: 0; }
.creator-directory-list { list-style: none; max-height: 34rem; overflow: auto; display: grid; align-content: start; gap: .28rem; margin: 0; padding: .2rem; scrollbar-gutter: stable; }
.creator-directory-list > li { min-width: 0; }
.creator-directory-item {
  width: 100%; min-height: 64px; min-width: 0; display: grid; grid-template-columns: 2.35rem minmax(0,1fr) auto;
  align-items: center; gap: .55rem; padding: .35rem .45rem; text-align: left;
  border: 1px solid transparent; background: transparent; color: var(--ink); border-radius: .75rem;
}
.creator-directory-item:hover:not(:disabled) { background: var(--hub-quiet); filter: none; }
.creator-directory-item[aria-pressed="true"] { background: var(--hub-selected); border-color: #c4ddff; }
.creator-directory-item strong, .creator-directory-item small { display: block; overflow-wrap: anywhere; }
.creator-directory-item small, .creator-hub-identity small { color: var(--muted); font-weight: 450; }
.creator-directory-item > span:last-child { display: grid; justify-items: end; gap: .2rem; }
.creator-directory-avatar {
  border-radius: 50%; display: grid; place-items: center; width: 2.35rem; height: 2.35rem;
  overflow: hidden; background: #dfeeff; color: #144b94; font-weight: 800;
}
.creator-directory-avatar img { width: 100%; height: 100%; object-fit: cover; }
.creator-state, .creator-unread { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; }
.creator-state { background: #edf3fa; color: #2c4c76; font-size: .7rem; padding: .2rem .45rem; }
.creator-unread { background: #0866df; color: white; min-width: 1.4rem; padding: .12rem .32rem; font-size: .72rem; font-weight: 800; line-height: 1.2; }
.creator-hub-detail { padding: .9rem; min-height: 15rem; }
.creator-hub-empty { display: flex; min-height: 12rem; align-items: center; justify-content: center; text-align: center; color: var(--muted); }
.creator-hub-identity { display: flex; align-items: center; gap: .7rem; margin-bottom: .85rem; }
.creator-hub-identity > div { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.creator-hub-identity .creator-directory-avatar { width: 3.15rem; height: 3.15rem; flex: 0 0 auto; }
.creator-hub-sections { display: flex; align-items: center; gap: .24rem; flex-wrap: wrap; padding: .25rem; background: var(--hub-quiet); border-radius: .85rem; margin-bottom: .85rem; }
.creator-hub-sections button { min-height: 44px; padding: .35rem .62rem; background: transparent; color: var(--muted); gap: .35rem; }
.creator-hub-sections button[aria-pressed="true"] { background: var(--surface); color: #094a9a; border-color: #d5e4f9; box-shadow: 0 2px 6px #102b5a12; }
.creator-hub-panel { border: 1px solid var(--edge); border-radius: .9rem; margin: .75rem 0; padding: .8rem; }
.creator-hub-panel > h3 { margin: 0 0 .65rem; font-size: 1rem; }
.creator-hub-panel > h4 { margin-bottom: .4rem; }
.creator-hub-panel > p:last-child { margin-bottom: 0; }
.creator-hub-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; }
.creator-hub-metrics > div { border-radius: .65rem; background: var(--hub-quiet); padding: .55rem .65rem; }
.creator-hub-metrics strong, .creator-hub-metrics small { display: block; }
.creator-hub-metrics strong { font-size: 1.2rem; }
.creator-hub-metrics small { color: var(--muted); overflow-wrap: anywhere; }
.creator-hub-inbox > h3 { margin: 0 0 .3rem; }
.creator-hub-inbox .creator-message-list { min-height: 9rem; max-height: min(27rem, 43vh); }
.creator-message-template { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .5rem; align-items: end; }
.creator-message-template button { min-height: 44px; }
.creator-hub :is(button,input,select,textarea):focus-visible { outline-offset: 2px; }
.creator-hub :is(.actions button, form button) { min-height: 44px; }
@media (max-width: 960px) {
  .creator-hub-heading { flex-direction: column; align-items: stretch; }
}
@media (max-width: 760px) {
  .creator-hub-layout { grid-template-columns: minmax(0,1fr); }
  .creator-directory-list { max-height: 15rem; }
  .creator-hub-detail { padding: .7rem; }
  .creator-hub-sections button { flex: 1 1 38%; }
  .creator-hub-heading, .creator-hub-layout { gap: .75rem; }
}
@media (max-width: 365px) {
  .creator-message-template { grid-template-columns: minmax(0,1fr); }
  .creator-directory-item { gap: .35rem; }
}
