
/* The Front Porch · shared mailbox across GM, Owner and Team. */
.hmb-root{display:grid;grid-template-columns:minmax(240px,310px) minmax(0,1fr);min-height:min(680px,75dvh);height:min(750px,calc(100dvh - 196px));width:min(100%,1220px);margin:0 auto;color:inherit;border:1px solid var(--belles-layout-line,#d9bfc5);border-radius:17px;overflow:hidden;background:var(--belles-layout-panel,#fff8f2);box-shadow:0 9px 30px #2e16151a}
.hmb-sidebar{display:flex;flex-direction:column;min-height:0;min-width:0;border-right:1px solid var(--belles-layout-line,#d9bfc5);background:var(--belles-layout-bg,#fff4ed)}
.hmb-side-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:23px 17px 13px}
.hmb-side-header small{font-size:10px;font-weight:800;letter-spacing:.14em;color:var(--belles-layout-muted,#895e6d)}
.hmb-side-header h2{font:800 27px/1.15 Georgia,serif;margin:5px 0 0;color:inherit}
.hmb-total-unread:not(:empty){display:grid;place-items:center;min-width:29px;height:29px;padding:3px 8px;border-radius:40px;background:#af2447;color:#fff;font-size:12px;font-weight:800}
.hmb-search-label{display:block;margin:0 14px 12px}
.hmb-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.hmb-search-label input{width:100%;min-height:44px;border:1px solid var(--belles-layout-line,#dab8c1);border-radius:10px;padding:10px 13px;background:var(--belles-layout-panel,#fffaf6);font:inherit;font-size:14px;color:inherit}
.hmb-folder-nav{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:0 14px 13px}
.hmb-folder-nav button,.hmb-category-nav button{border:0;background:transparent;min-height:37px;padding:8px 10px;border-radius:9px;color:inherit;font-size:13px;font-weight:750;cursor:pointer}
.hmb-folder-nav button.active{background:#af2447;color:#fff}
.hmb-category-nav{display:flex;flex-wrap:wrap;gap:4px;padding:0 11px 10px;border-bottom:1px solid var(--belles-layout-line,#dab8c1)}
.hmb-category-nav button{font-size:12px;min-height:31px}
.hmb-category-nav button.active{box-shadow:inset 0 -2px #af2447;color:#af2447}
.hmb-conversation-list{flex:1;overflow-y:auto;min-height:0;overscroll-behavior:contain}
.hmb-conversation{width:100%;min-height:82px;display:flex;align-items:center;gap:9px;padding:12px 13px;border:0;border-bottom:1px solid var(--belles-layout-line,#dab8c1);background:transparent;color:inherit;text-align:left;cursor:pointer}
.hmb-conversation:hover,.hmb-conversation.selected{background:color-mix(in srgb,#af2447 11%,transparent)}
.hmb-conversation.selected{box-shadow:inset 4px 0 #af2447}
.hmb-avatar,.hmb-thread-avatar{display:grid;place-items:center;flex:none;width:37px;height:37px;border-radius:12px;background:color-mix(in srgb,#af2447 13%,transparent);color:#af2447;font-size:20px}
.hmb-conv-text{min-width:0;flex:1;display:grid;gap:5px}
.hmb-conv-text strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hmb-conv-text small{font-size:12px;color:var(--belles-layout-muted,#8e6d78);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hmb-conv-edge{display:flex;min-width:50px;flex-direction:column;align-items:flex-end;gap:8px}
.hmb-conv-edge time,.hmb-search-result time{font-size:10px;white-space:nowrap;color:var(--belles-layout-muted,#8e6d78)}
.hmb-unread{display:grid;place-items:center;min-width:23px;height:23px;padding:3px 6px;border-radius:30px;background:#af2447;color:#fff;font-size:11px;font-weight:800}
.hmb-search-result{min-height:100px}
.hmb-search-result .hmb-conv-text small{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hmb-search-caption{padding:8px 15px;font-size:11px;color:var(--belles-layout-muted,#8e6d78)}
.hmb-list-empty{font-size:13px;line-height:1.5;padding:22px 16px;text-align:center;color:var(--belles-layout-muted,#8e6d78)}
.hmb-invite{padding:13px 15px;border-top:1px solid var(--belles-layout-line,#dab8c1)}
.hmb-invite strong{font-size:13px}.hmb-invite p,.hmb-invite small{font-size:12px;line-height:1.5}
.hmb-invite form{display:grid;gap:8px}.hmb-invite input{min-height:39px;max-width:100%;border:1px solid var(--belles-layout-line,#dab8c1);border-radius:8px;padding:9px;color:inherit;background:var(--belles-layout-panel,#fff8f2)}
.hmb-invite button{border:0;background:#af2447;color:#fff;padding:10px;border-radius:8px;font-weight:800}
.hmb-thread{min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--belles-layout-panel,#fff8f2)}
.hmb-thread-blank{align-items:center;justify-content:center;padding:25px}
.hmb-welcome{max-width:360px;text-align:center}
.hmb-welcome>span{font-size:40px;color:#af2447}
.hmb-welcome h2{font:800 27px/1.2 Georgia,serif;margin:12px 0}
.hmb-welcome p{font-size:14px;line-height:1.65;color:var(--belles-layout-muted,#8e6d78)}
.hmb-thread-head{display:flex;align-items:center;gap:11px;min-height:78px;padding:14px 20px;border-bottom:1px solid var(--belles-layout-line,#dab8c1)}
.hmb-thread-title{min-width:0;flex:1}
.hmb-thread-title h3{font-size:17px;line-height:1.3;margin:0 0 3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit}
.hmb-thread-title small{font-size:12px;color:var(--belles-layout-muted,#8e6d78)}
.hmb-head-action,.hmb-back{width:40px;height:40px;border:1px solid var(--belles-layout-line,#dab8c1);border-radius:10px;background:transparent;color:inherit;font-size:19px;cursor:pointer}
.hmb-back{display:none}
.hmb-message-area{flex:1;display:flex;flex-direction:column;min-height:0;padding:15px 20px 0;overflow-y:auto;overscroll-behavior:contain}
.hmb-thread .fp-human-feed{flex:1;min-height:0;max-height:none;overflow-y:auto;gap:11px;padding:10px 4px 15px}
.hmb-thread .fp-human-message{border-radius:12px;max-width:min(86%,630px)}
.hmb-thread .fp-human-message.is-own{border-radius:12px 12px 4px 12px}
.hmb-thread .fp-human-compose{position:relative;padding:11px 20px 0}
.hmb-thread .fp-human-input{box-shadow:none}
.hmb-history{align-self:center;min-height:36px;padding:7px 13px;border:1px solid var(--belles-layout-line,#dab8c1);border-radius:20px;background:transparent;color:inherit;font-weight:700;font-size:12px}
.hmb-seen{align-self:flex-end;margin:-5px 10px 5px;font-size:11px;color:var(--belles-layout-muted,#8e6d78)}
.hmb-privacy{padding:0 22px 12px;text-align:center;font-size:11px;line-height:1.4;color:var(--belles-layout-muted,#8e6d78)}
.hmb-thread-status{padding:12px;font-size:13px;text-align:center}
.hmb-error{padding:10px 15px;margin:7px 12px;border:1px solid #ad3655;border-radius:9px;color:#b9264b;font-size:13px}
.hmb-error button{border:0;background:transparent;text-decoration:underline;color:inherit;font-weight:700}
.hmb-root :is(button,input,textarea):focus-visible{outline:2px solid #af2447;outline-offset:2px}
[data-theme="dark"] .hmb-root{background:#21191e;border-color:#6c4454}
[data-theme="dark"] .hmb-sidebar{background:#1b1318;border-color:#684452}
[data-theme="dark"] .hmb-thread{background:#241921}
[data-theme="dark"] .hmb-search-label input,[data-theme="dark"] .hmb-invite input{background:#291c23;border-color:#634251;color:#fff5ef}
[data-theme="dark"] .hmb-category-nav button.active{color:#ffc5d7}
[data-theme="dark"] .hmb-avatar,[data-theme="dark"] .hmb-thread-avatar{color:#ffcedb}
[data-theme="dark"] .hmb-invite,[data-theme="dark"] .hmb-thread-head,[data-theme="dark"] .hmb-conversation{border-color:#624451}
[data-theme="dark"] .hmb-conv-text small,[data-theme="dark"] .hmb-privacy{color:#d4b5c0}
@media(max-width:760px){
 .hmb-root{display:block;height:calc(100dvh - 162px);min-height:430px;border-radius:12px;position:relative}
 .hmb-sidebar{height:100%;border-right:0}
 .hmb-thread{display:none;height:100%}
 .hmb-root:has(.hmb-mobile-thread) .hmb-sidebar{display:none}
 .hmb-thread.hmb-mobile-thread{display:flex}
 .hmb-back{display:block}
 .hmb-thread-head{padding:10px 12px;gap:7px}
 .hmb-message-area{padding:8px 12px 0}
 .hmb-thread .fp-human-compose{padding:9px 10px 0}
 .hmb-privacy{padding-bottom:8px}
}
@media(min-width:761px) and (max-width:1000px){.hmb-root{grid-template-columns:minmax(220px,280px) minmax(0,1fr)}}


/* Mailbox refinement: calmer spacing, aligned controls, and balanced desktop proportions. */
.hmb-root{
  grid-template-columns: minmax(0,320px) minmax(0,1fr);
  width:min(100%,1180px);
  min-height:min(610px,78dvh);
  height:min(735px,calc(100dvh - 160px));
  border-radius:18px;
  box-shadow:0 12px 34px #2e161514;
}
.hmb-sidebar{background:var(--belles-layout-bg,#f2e7d8)}
.hmb-side-header{min-height:98px;padding:20px 20px 12px}
.hmb-side-header small{font-size:10px;letter-spacing:.17em}
.hmb-side-header h2{font-size:26px;line-height:1.12;margin-top:7px;letter-spacing:-.03em}
.hmb-search-label{margin:0 16px 12px}
.hmb-search-label input{
  min-height:44px;
  padding:10px 13px;
  border-radius:10px;
  box-shadow:0 2px 7px #4520210a;
  font-size:14px;
}
.hmb-search-label input::placeholder,.hmb-invite input::placeholder{opacity:.72}
.hmb-folder-nav{
  margin:0 16px 10px;
  padding:4px;
  gap:4px;
  border-radius:11px;
  background:color-mix(in srgb,#8d524e 8%,transparent);
}
.hmb-folder-nav button{
  min-height:36px;
  border-radius:8px;
  font-size:13px;
  font-weight:750;
}
.hmb-folder-nav button:not(.active):hover{background:color-mix(in srgb,#af2447 7%,transparent)}
.hmb-folder-nav button.active{box-shadow:0 2px 6px #8f1c3d14}
.hmb-category-nav{
  display:grid;
  grid-auto-columns:minmax(0,1fr);
  grid-auto-flow:column;
  gap:3px;
  padding:0 15px 12px;
}
.hmb-category-nav button{
  min-width:0;
  min-height:34px;
  padding:7px 4px;
  font-size:12px;
  font-weight:700;
  border-radius:7px;
}
.hmb-category-nav button.active{
  background:color-mix(in srgb,#af2447 9%,transparent);
  box-shadow:none;
  color:#af2447;
}
.hmb-conversation-list{scrollbar-width:thin;scrollbar-color:#c9a8a1 transparent}
.hmb-conversation{
  min-height:76px;
  gap:11px;
  padding:12px 17px;
  transition:background .15s ease;
}
.hmb-conversation.selected{background:color-mix(in srgb,#af2447 8%,transparent);box-shadow:inset 3px 0 #af2447}
.hmb-conversation:hover{background:color-mix(in srgb,#af2447 6%,transparent)}
.hmb-conversation.selected:hover{background:color-mix(in srgb,#af2447 10%,transparent)}
.hmb-avatar,.hmb-thread-avatar{
  width:40px;
  height:40px;
  border-radius:12px;
  font-size:19px;
}
.hmb-conv-text{gap:4px}
.hmb-conv-text strong{font-size:13px;line-height:1.3;font-weight:780}
.hmb-conv-text small{font-size:12px;line-height:1.35}
.hmb-conv-edge{min-width:0}
.hmb-invite{
  flex-shrink:0;
  padding:13px 16px 16px;
  background:color-mix(in srgb,#fff 23%,transparent);
}
.hmb-invite strong{font-size:13px;line-height:1.3}
.hmb-invite p{
  margin:6px 0 12px;
  font-size:12px;
  line-height:1.45;
  color:var(--belles-layout-muted,#895e6d);
}
.hmb-invite form{gap:7px}
.hmb-invite input{
  width:100%;
  min-height:40px;
  padding:9px 11px;
  font-size:13px;
  border-radius:9px;
}
.hmb-invite button{
  min-height:40px;
  padding:9px 12px;
  font-size:13px;
  border-radius:9px;
  cursor:pointer;
}
.hmb-invite button:hover,.hmb-thread .fp-human-input button:hover{background:#981d3c}
.hmb-thread-head{
  flex-shrink:0;
  min-height:78px;
  padding:14px 22px;
  gap:12px;
  background:color-mix(in srgb,#fff 22%,transparent);
}
.hmb-thread-title h3{font-size:17px;line-height:1.3;margin-bottom:4px}
.hmb-thread-title small{font-size:12px}
.hmb-head-action,.hmb-back{
  width:40px;height:40px;
  border-radius:11px;
  font-size:18px;
}
.hmb-head-action:hover,.hmb-back:hover{background:color-mix(in srgb,#af2447 8%,transparent)}
.hmb-message-area{padding:18px 22px 0}
.hmb-thread .fp-human-feed{padding:10px 4px 18px}
.hmb-thread .fp-human-empty{
  align-self:center;
  width:fit-content;
  max-width:320px;
  padding:12px 18px;
  margin:auto;
  border:1px solid var(--belles-layout-line,#e3cbd0);
  border-radius:12px;
  background:color-mix(in srgb,#fff 20%,transparent);
  font-size:13px;
  line-height:1.5;
  color:var(--belles-layout-muted,#895e6d);
}
.hmb-thread .fp-human-compose{
  flex-shrink:0;
  padding:14px 20px 8px;
  border-top:1px solid var(--belles-layout-line,#e3cbd0);
  background:color-mix(in srgb,#fff 18%,transparent);
}
.hmb-thread .fp-human-input{
  align-items:end;
  padding:5px;
  border-radius:12px;
  border-color:var(--belles-layout-line,#dab8c1);
  background:var(--belles-layout-panel,#fffaf6);
}
.hmb-thread .fp-human-input textarea{
  min-height:41px;
  padding:10px 12px;
  line-height:1.4;
  font-size:14px;
}
.hmb-thread .fp-human-input button{
  min-height:42px;
  padding:9px 16px;
  border-radius:9px;
  font-size:13px;
}
.hmb-privacy{
  margin:0;
  padding:0 22px 12px;
  font-size:11px;
  line-height:1.35;
  text-align:right;
}
[data-theme="dark"] .hmb-invite,
[data-theme="dark"] .hmb-thread-head,
[data-theme="dark"] .hmb-thread .fp-human-compose{
  background:color-mix(in srgb,#fff 3%,transparent);
}
[data-theme="dark"] .hmb-thread .fp-human-input{background:#241921}
[data-theme="dark"] .hmb-thread .fp-human-empty{background:#2c2028;border-color:#624451}
[data-theme="dark"] .hmb-category-nav button.active{color:#ffcfdb}
[data-theme="dark"] .hmb-conversation.selected{background:color-mix(in srgb,#af2447 20%,transparent)}
@media(max-width:760px){
  .hmb-root{display:block;width:100%;height:calc(100dvh - 162px);min-height:430px;border-radius:12px}
  .hmb-side-header{min-height:88px;padding:15px 18px 9px}
  .hmb-search-label{margin:0 15px 10px}
  .hmb-folder-nav{margin:0 15px 9px}
  .hmb-category-nav{padding:0 13px 10px}
  .hmb-conversation{min-height:76px;padding:12px 15px}
  .hmb-invite{padding:12px 15px 14px}
  .hmb-thread-head{min-height:70px;padding:10px 12px;gap:8px}
  .hmb-message-area{padding:10px 12px 0}
  .hmb-thread .fp-human-compose{padding:10px 11px 8px}
  .hmb-privacy{padding:0 13px 8px;text-align:center}
}
@media(min-width:761px) and (max-width:1000px){
  .hmb-root{grid-template-columns:minmax(0,290px) minmax(0,1fr)}
  .hmb-thread-head{padding-inline:16px}
  .hmb-message-area{padding-inline:16px}
}


/* The GM, Owner and Team shells give the same mailbox the remaining viewport. */
html[data-theme] #app#app.command-center-view .gm-work-area:has(> .sc-ranch-layout > .hmb-root),
html[data-theme] #owner-app .owner-content--porch:has(> .owner-front-porch-workspace > .hmb-root),
html[data-theme] #staff-app .bb-staff-workspace .bb-hub-scroll:has(> .hmb-root){
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:0;
  min-width:0;
  width:100%;
  max-width:none;
  height:auto;
  margin:0;
  overflow:hidden!important;
  padding:0!important;
  overscroll-behavior:contain;
}
html[data-theme] #app#app.command-center-view .gm-work-area > .sc-ranch-layout:has(> .hmb-root){
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  width:100%;
  max-width:none;
  min-width:0;
  min-height:0;
  height:100%;
  margin:0;
  padding:0;
  gap:0;
  overflow:hidden;
}
html[data-theme] :is(#app#app.command-center-view .sc-ranch-layout,
  #owner-app .owner-front-porch-workspace,
  #staff-app .bb-staff-workspace .bb-hub-scroll) > .hmb-root{
  flex:1 1 auto;
  width:100%;
  max-width:none;
  height:100%;
  max-height:none;
  min-height:0;
  min-width:0;
  margin:0;
  border:0;
  border-radius:0;
  box-shadow:none;
  overflow:hidden;
  grid-template-columns:minmax(248px,315px) minmax(0,1fr);
  grid-template-rows:minmax(0,1fr);
}
html[data-theme="light"] :is(#owner-app,#staff-app) .hmb-root{
  --belles-layout-bg:#F1E6D6;
  --belles-layout-line:#B69B85;
  --belles-layout-muted:#634D41;
  color:#391F16;
}
.hmb-message-area{overflow:hidden}
.hmb-thread .fp-human-feed{
  flex:1 1 auto;
  overflow-y:auto;
  overscroll-behavior:contain;
}
.hmb-invite{padding:0;overflow:hidden}
.hmb-invite summary{
  display:flex;align-items:center;justify-content:space-between;
  gap:10px;list-style:none;cursor:pointer;
  padding:13px 16px;font-size:13px;font-weight:780;
}
.hmb-invite summary::-webkit-details-marker{display:none}
.hmb-invite summary span{font-size:17px;line-height:1;transition:transform .15s ease}
.hmb-invite[open] summary span{transform:rotate(180deg)}
.hmb-invite summary:hover{background:color-mix(in srgb,#af2447 6%,transparent)}
.hmb-invite-body{padding:0 16px 16px}
.hmb-invite-body p{margin:0 0 12px}
.hmb-invite summary:focus-visible{outline:2px solid #af2447;outline-offset:-3px}
@media (min-width:761px) and (max-width:1000px){
  html[data-theme] :is(#app#app.command-center-view .sc-ranch-layout,
    #owner-app .owner-front-porch-workspace,
    #staff-app .bb-staff-workspace .bb-hub-scroll) > .hmb-root{
    grid-template-columns:minmax(230px,290px) minmax(0,1fr);
  }
}
@media (max-width:760px){
  /* Inbox is the only screen until a thread is selected. */
  html[data-theme] :is(#app#app.command-center-view .sc-ranch-layout,
    #owner-app .owner-front-porch-workspace,
    #staff-app .bb-staff-workspace .bb-hub-scroll) > .hmb-root{
    display:flex;
    flex-direction:column;
    width:100%;
    height:100%;
    min-height:0;
    border:0;
    border-radius:0;
  }
  .hmb-root .hmb-sidebar{
    flex:1 1 auto;
    display:flex;
    flex-direction:column;
    min-height:0;
    height:100%;
    border:0;
    overflow:hidden;
  }
  .hmb-root .hmb-sidebar.hmb-mobile-hidden{display:none}
  .hmb-root .hmb-thread{display:none;min-height:0;height:100%;overflow:hidden}
  .hmb-root .hmb-thread.hmb-mobile-thread{
    flex:1 1 auto;
    display:flex;
    flex-direction:column;
    min-height:0;
    height:100%;
  }
  .hmb-root .hmb-side-header{min-height:54px;padding:10px 17px 8px}
  .hmb-root .hmb-side-header small{display:none}
  .hmb-root .hmb-side-header h2{font-size:22px;line-height:1.2;margin:0}
  .hmb-root .hmb-search-label{margin:0 13px 9px}
  .hmb-root .hmb-search-label input{min-height:42px;font-size:16px}
  .hmb-root .hmb-folder-nav{margin:0 13px 8px}
  .hmb-root .hmb-category-nav{padding:0 12px 8px}
  .hmb-root .hmb-category-nav button{min-height:37px}
  .hmb-root .hmb-conversation-list{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  .hmb-root .hmb-conversation{min-height:74px;padding:12px 14px;gap:12px}
  .hmb-root .hmb-conv-text strong{font-size:14px}
  .hmb-root .hmb-conv-text small{font-size:12px}
  .hmb-root .hmb-invite{flex:none;margin:0;max-height:min(42dvh,340px);overflow-y:auto}
  .hmb-root .hmb-invite summary{min-height:44px;padding:10px 15px}
  .hmb-root .hmb-invite-body{padding:0 15px 12px}
  .hmb-root .hmb-invite input{font-size:16px}
  .hmb-root .hmb-thread-head{
    flex:none;min-height:62px;
    padding:9px 12px;gap:8px;
  }
  .hmb-root .hmb-thread-title h3{font-size:15px}
  .hmb-root .hmb-thread-title small{font-size:11px;line-height:1.3}
  .hmb-root .hmb-thread-avatar{width:34px;height:34px}
  .hmb-root .hmb-back{display:grid;place-items:center;width:39px;height:39px;flex:none}
  .hmb-root .hmb-head-action{width:36px;height:36px;flex:none}
  .hmb-root .hmb-message-area{
    flex:1 1 auto;
    min-height:0;
    padding:8px 12px 0;
    overflow:hidden;
  }
  .hmb-root .hmb-thread .fp-human-feed{
    flex:1 1 auto;
    min-height:0;
    max-height:none;
    overflow-y:auto;
    padding:9px 3px 13px;
  }
  .hmb-root .hmb-thread .fp-human-compose{flex:none;padding:8px 10px 8px}
  .hmb-root .hmb-thread .fp-human-input textarea{font-size:16px}
  .hmb-root .hmb-privacy{display:none}
  /* In an open conversation, its own back button and title replace page chrome. */
  html[data-theme] #app#app.command-center-view .gm-chat-wrap:has(.hmb-mobile-thread) > .gm-header,
  html[data-theme] #app#app.command-center-view .gm-chat-wrap:has(.hmb-mobile-thread) > .gm-command-switch{display:none!important}
  /* The keyboard gets the composer, not a dock covering the Send button. */
  html[data-theme] #app#app.command-center-view .gm-chat-wrap:has(.hmb-thread textarea:focus){
    padding-bottom:0!important;
  }
  html[data-theme] #app#app.command-center-view .gm-shell:has(.hmb-thread textarea:focus) .gm-mobile-bottom{
    display:none!important;
  }
}


/* Owner's bottom navigation is fixed over its workspace at this breakpoint. */
@media(max-width:850px){
  html[data-theme] #owner-app .owner-content--porch:has(> .owner-front-porch-workspace > .hmb-root){
    padding-bottom:calc(65px + env(safe-area-inset-bottom,0px))!important;
  }
}

/* Collapsible Mailbox Search and Categories keep navigation short. */
.hmb-compact-tools{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:7px;padding:0 14px 11px;
}
.hmb-tool-toggle{
 display:flex;align-items:center;justify-content:space-between;gap:6px;
 padding:9px 11px;min-width:0;min-height:39px;border-radius:9px;
 border:1px solid var(--belles-layout-line,#d9bfc5);
 background:var(--belles-layout-panel,#fffaf6);color:inherit;
 font-size:12px;font-weight:750;cursor:pointer;
}
.hmb-tool-toggle[aria-expanded="true"]{border-color:#AF2447;color:#AF2447}
.hmb-tool-toggle span{font-size:17px;line-height:1;flex-shrink:0}
.hmb-compact-tools+.hmb-search-label{margin-bottom:10px}
.hmb-category-nav{padding-top:5px}
.hmb-tool-toggle:focus-visible{outline:2px solid #AF2447;outline-offset:2px}
[data-theme="dark"] .hmb-tool-toggle{background:#291c23;border-color:#634251}
[data-theme="dark"] .hmb-tool-toggle[aria-expanded="true"]{color:#ffcedb;border-color:#AF2447}

/* GM Assistant reuses the existing Mail Box layout, without its own screen. */
.hmb-assistant-thread .fp-human-feed{scrollbar-width:thin}
.hmb-assistant-thread .fp-human-message p{white-space:pre-wrap;overflow-wrap:anywhere}
.hmb-assistant-thread .hmb-message-area{padding-bottom:5px}
.hmb-assistant-typing{display:flex;align-items:center;gap:5px;padding:10px 14px;margin:3px 0 8px;width:fit-content;border:1px solid var(--belles-layout-line,#dab8c1);border-radius:12px;color:#AF2447}
.hmb-assistant-typing span{width:6px;height:6px;background:#AF2447;border-radius:50%;animation:hmb-assistant-pulse 1s ease-in-out infinite}
.hmb-assistant-typing span:nth-child(2){animation-delay:.15s}
.hmb-assistant-typing span:nth-child(3){animation-delay:.3s}
@keyframes hmb-assistant-pulse{0%,60%,100%{opacity:.25;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
.hmb-ai-followups{display:flex;gap:6px;overflow-x:auto;flex:0 0 auto;padding:7px 18px 3px;scrollbar-width:thin}
.hmb-ai-followups button{white-space:normal;text-align:left;flex:0 0 auto;max-width:230px;min-height:33px;padding:7px 10px;border-radius:9px;border:1px solid var(--belles-layout-line,#dab8c1);background:transparent;color:inherit;font-size:11px;cursor:pointer}
.hmb-ai-followups button:hover,.hmb-ai-result:hover{border-color:#AF2447}
.hmb-assistant-compose{padding-top:10px!important}
.hmb-assistant-compose .fp-human-input{display:flex;align-items:end;gap:6px;min-width:0}
.hmb-assistant-compose .fp-human-input textarea{min-width:0;flex:1}
.hmb-assistant-compose .gm-media-plus-wrap{position:relative;flex:none}
.hmb-assistant-compose .gm-media-plus{height:39px;width:39px;border:1px solid var(--belles-layout-line,#dab8c1);background:transparent;color:inherit;border-radius:9px;font-size:23px}
.hmb-assistant-compose .gm-media-hidden{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
.hmb-assistant-compose .gm-media-menu{position:absolute;bottom:calc(100% + 7px);left:0;z-index:30;width:min(265px,calc(100vw - 38px));padding:8px;border:1px solid var(--belles-layout-line,#dab8c1);border-radius:11px;background:var(--belles-layout-panel,#fff8f2);box-shadow:0 8px 24px #0003;display:grid;gap:3px}
.hmb-assistant-compose .gm-media-menu button{border:0;background:transparent;text-align:left;color:inherit;padding:9px;border-radius:7px;font-size:12px}
.hmb-assistant-compose .gm-media-menu p{font-size:11px;margin:4px 7px}
.hmb-assistant-compose .gm-media-staged{display:flex;flex-wrap:wrap;gap:5px;padding:3px 0 7px}
.hmb-assistant-compose .gm-media-chip{display:flex;gap:7px;align-items:center;padding:5px 8px;border:1px solid var(--belles-layout-line,#dab8c1);border-radius:8px;font-size:11px}
.hmb-assistant-compose .gm-media-chip button{border:0;background:transparent;color:inherit}
.hmb-assistant-thread .gm-media-refs{display:flex;flex-wrap:wrap;gap:5px}
.hmb-assistant-thread .gm-media-refs button,.hmb-ai-result{margin:5px 4px 0 0;border:1px solid var(--belles-layout-line,#dab8c1);border-radius:8px;padding:6px 8px;color:inherit;background:transparent;font-size:11px;cursor:pointer}
.hmb-ai-expand{margin-top:6px;font-size:12px}
.hmb-ai-expand summary{cursor:pointer;color:#AF2447;font-weight:700}
.hmb-ai-expand p{white-space:pre-wrap;overflow-wrap:anywhere}
[data-theme="dark"] .hmb-assistant-compose .gm-media-menu{background:#241921}
@media(max-width:760px){.hmb-assistant-thread .hmb-thread-head{min-height:60px}.hmb-ai-followups{padding:4px 9px 0}.hmb-assistant-compose{padding:8px 9px 5px!important}.hmb-assistant-typing{margin-left:5px}}
