/* FEBRY.OPS V277 — mobile layout hotfix for per-account Threads quota */
#threadsOauthCard .threads-quota-tools{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:10px 0 7px;flex-wrap:wrap}
#threadsOauthCard .threads-quota-tools>span{font-size:11px;color:#F5F9F3;line-height:1.4}
#threadsOauthCard .threads-quota-tools .btn{font-size:11px;padding:6px 10px;min-height:30px;white-space:nowrap}
#threadsOauthCard .threads-quota-tools .btn:disabled{opacity:.58}
/* Row must stay in ONE vertical flex column. flex-wrap + flex-basis:100%
   previously created a second column on phones and giant empty account cards. */
#threadsOauthCard .threads-account-row{
  display:flex;
  flex-direction:column!important;
  flex-wrap:nowrap!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:9px!important;
  width:100%;
  min-width:0;
  height:auto!important;
  min-height:0;
  box-sizing:border-box;
}
#threadsOauthCard .threads-account-row>.threads-account-main,
#threadsOauthCard .threads-account-row>.threads-account-actions,
#threadsOauthCard .threads-account-row>.threads-quota-card{
  width:100%;min-width:0;max-width:100%;flex:0 0 auto!important;
  box-sizing:border-box;
}
#threadsOauthCard .threads-account-row>.threads-account-main{align-self:stretch}
#threadsOauthCard .threads-account-row>.threads-account-actions{
  justify-content:flex-start;gap:7px;align-self:stretch;
}
#threadsOauthCard .threads-account-row>.threads-account-actions .threads-disconnect{
  margin-left:auto;
}
#threadsOauthCard .threads-account-row .threads-account-main>div{min-width:0}
#threadsOauthCard .threads-account-row .threads-account-main strong,
#threadsOauthCard .threads-account-row .threads-account-main small{overflow-wrap:anywhere}

#threadsOauthCard .threads-quota-card{flex:0 0 auto!important;width:100%;min-width:0;border:1px solid #27452d;border-radius:11px;background:#08150e;padding:10px 11px;color:#F5F9F3;box-sizing:border-box}
#threadsOauthCard .threads-quota-title{display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap}
#threadsOauthCard .threads-quota-title>span{color:#F5F9F3;letter-spacing:.06em;font-weight:700;font-size:10px}
#threadsOauthCard .threads-quota-title>strong{color:#B6FF40;font-size:15px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
#threadsOauthCard .threads-quota-track{width:100%;height:7px;margin:8px 0 7px;border-radius:6px;background:#18291b;overflow:hidden}
#threadsOauthCard .threads-quota-fill{height:100%;display:block;border-radius:6px;transition:width .25s;background:#B6FF40}
#threadsOauthCard .threads-quota-fill.warning{background:#f6c84e}
#threadsOauthCard .threads-quota-fill.danger{background:#ff656e}
#threadsOauthCard .threads-quota-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;color:#F5F9F3;font-size:11px}
#threadsOauthCard .threads-quota-state{font-weight:800;color:#B6FF40}
#threadsOauthCard .threads-quota-state.warning{color:#F5F9F3}
#threadsOauthCard .threads-quota-state.danger{color:#F5F9F3}
#threadsOauthCard .threads-quota-replies{margin-top:8px;padding-top:7px;border-top:1px solid #25402a;color:#F5F9F3;font-size:10.5px;line-height:1.45}
#threadsOauthCard .threads-quota-replies strong{color:#F5F9F3}
#threadsOauthCard .threads-quota-foot{margin-top:8px;color:#F5F9F3;font-size:10px;line-height:1.5}
#threadsOauthCard .threads-quota-unavailable{font-size:11px;color:#F5F9F3;line-height:1.5}
@media(max-width:900px){#chatView .mobile-me-wrap #threadsOauthCard .threads-quota-tools{align-items:stretch}#chatView .mobile-me-wrap #threadsOauthCard .threads-quota-tools .btn{width:100%;text-align:center}#chatView .mobile-me-wrap #threadsOauthCard .threads-quota-card{margin-top:3px}}

#threadsOauthCard .threads-quota-tools .btn.secondary{background:#08160f!important;border:1px solid #305f3b!important;color:#B6FF40 !important;-webkit-text-fill-color:#B6FF40 !important}
/* Protect narrow mobile panes even when the connection list has long handles. */
@media(max-width:900px){
  #chatView .mobile-me-wrap,#chatView .mobile-me-wrap #threadsOauthCard,
  #chatView .mobile-me-wrap #threadsAccountList{min-width:0;max-width:100%;overflow-x:clip}
  #chatView .mobile-me-wrap #threadsOauthCard .threads-account-row{align-items:stretch!important}
  #chatView .mobile-me-wrap #threadsOauthCard .threads-account-actions{width:100%;gap:6px}
  #chatView .mobile-me-wrap #threadsOauthCard .threads-account-actions .threads-disconnect{margin-left:auto}
  #chatView .mobile-me-wrap #threadsOauthCard .threads-quota-title>strong{white-space:normal}
}

/* V278 — One source note for the whole account list, not per-account */
#threadsOauthCard .threads-quota-global-foot{
  margin:10px 1px 0; padding:8px 3px 2px;
  color:#F5F9F3; font-size:10.5px; line-height:1.55;
  overflow-wrap:anywhere;
}
#threadsOauthCard .threads-quota-replies{font-size:11px}

/* FEBRY.OPS Website V279 — two compact, independent API quota progress bars */
#threadsOauthCard .threads-quota-section{min-width:0}
#threadsOauthCard .threads-quota-section+.threads-quota-section{margin-top:12px;padding-top:11px;border-top:1px solid #25402a}
#threadsOauthCard .threads-quota-section .threads-quota-track{margin:7px 0 0}
#threadsOauthCard .threads-quota-title{flex-wrap:nowrap;min-width:0}
#threadsOauthCard .threads-quota-title>span{min-width:0;overflow-wrap:anywhere}
#threadsOauthCard .threads-quota-title>strong{white-space:nowrap;font-size:15px;flex:0 0 auto}
#threadsOauthCard .threads-quota-fill{max-width:100%}
#threadsOauthCard .threads-quota-optional{margin-top:9px;color:#F5F9F3;font-size:10.5px;line-height:1.45}
@media(max-width:370px){#threadsOauthCard .threads-quota-title>span{font-size:9.5px}#threadsOauthCard .threads-quota-title>strong{font-size:13px}}


/* FEBRY.OPS V340 — compact accordion for Threads account list */
#threadsOauthCard .threads-account-item{
  border:1px solid #21442b;
  border-radius:15px;
  background:linear-gradient(180deg,#0a140f,#09100c);
  overflow:hidden;
  margin-top:10px;
}
#threadsOauthCard .threads-account-item:first-child{margin-top:0}
#threadsOauthCard .threads-account-item[open]{border-color:#32653f;background:linear-gradient(180deg,#0d1812,#0a130f)}
#threadsOauthCard .threads-account-summary{
  list-style:none;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 13px;
  cursor:pointer;
  min-width:0;
}
#threadsOauthCard .threads-account-summary::-webkit-details-marker{display:none}
#threadsOauthCard .threads-account-summary:focus-visible{outline:2px solid #B6FF40;outline-offset:-2px}
#threadsOauthCard .threads-account-summary .threads-account-main{flex:1 1 auto;min-width:0}
#threadsOauthCard .threads-account-summary .threads-account-main img{width:42px;height:42px}
#threadsOauthCard .threads-account-summary .threads-account-main strong{display:block;font-size:13px}
#threadsOauthCard .threads-account-summary .threads-account-main small{display:block;margin-top:3px;font-size:10.5px;line-height:1.45}
#threadsOauthCard .threads-account-summary .threads-account-summary-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end;flex:0 0 auto}
#threadsOauthCard .threads-account-summary .threads-account-summary-meta .account-slot-badge{margin:0}
#threadsOauthCard .threads-account-summary .threads-accordion-arrow{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:999px;border:1px solid #28492f;color:#F5F9F3;background:#0d1812;font-size:12px;transition:transform .18s ease}
#threadsOauthCard .threads-account-item[open] .threads-accordion-arrow{transform:rotate(180deg)}
#threadsOauthCard .threads-account-panel{padding:0 13px 13px;border-top:1px solid rgba(182,255,64,.08)}
#threadsOauthCard .threads-account-panel .threads-account-actions{padding-top:10px}
#threadsOauthCard .threads-account-panel .threads-quota-card{margin-top:8px}
#threadsOauthCard .threads-account-panel .threads-disconnect{margin-left:auto}
#threadsOauthCard .threads-account-summary .status{font-size:10px;padding:4px 8px;border-radius:999px;white-space:nowrap}
#threadsOauthCard .threads-account-panel .threads-account-actions .btn{min-height:32px}
@media(max-width:900px){
  #chatView .mobile-me-wrap #threadsOauthCard .threads-account-summary{padding:11px 12px;align-items:flex-start}
  #chatView .mobile-me-wrap #threadsOauthCard .threads-account-summary .threads-account-summary-meta{justify-content:flex-start;width:100%}
  #chatView .mobile-me-wrap #threadsOauthCard .threads-account-panel{padding:0 12px 12px}
}
