

/* Account Team layout, sizing and interaction geometry.
   Visual ownership: design-system/adapters/account-team-theme.css and account-team-payment-theme.css. */

body[data-page="account"]:has(#team-dashboard){
  min-height:100vh;
  overflow-y:auto
}

body[data-page="account"]:has(#team-dashboard) #app{
  display:block;
  height:auto;
}

body[data-page="account"]:has(#team-dashboard) #app>.shell{
  flex:none;
  grid-template-rows:auto auto auto!important;
  min-height:100vh;
  height:auto!important
}

body[data-page="account"]:has(#team-dashboard) #app>.shell>main.account-layout{
  min-height:calc(100vh - 150px)!important;
  align-self:start
}

body[data-page="account"]:has(#team-dashboard) #app>.shell>[data-include*="footer"],
body[data-page="account"]:has(#team-dashboard) #app>.shell>footer{
  position:relative!important;
  inset:auto!important;
  margin-top:12px!important
}

body[data-page="account"]:has(#team-dashboard) .account-layout{
  display:grid;
  grid-template-columns:240px minmax(0,1fr);
  gap:14px;
  margin-top:10px
}

@media(max-width:1000px){
  body[data-page="account"]:has(#team-dashboard) .account-layout{grid-template-columns:1fr}
}

body[data-page="account"]:has(#team-dashboard) .account-layout>section.panel{
  padding:0
}

body[data-page="account"]:has(#team-dashboard) .team-loading-state{
  text-align:center;
  padding:30px 0
}

body[data-page="account"]:has(#team-dashboard) .team-create-form{
  margin-top:16px;
  display:flex;
  align-items:center;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap
}

body[data-page="account"]:has(#team-dashboard) .team-create-input{
  padding:8px 14px;
  border-radius:8px;
  font-size:14px;
  width:260px;
  outline:none
}

body[data-page="account"]:has(#team-dashboard) .team-create-submit{white-space:nowrap}

body[data-page="account"]:has(#team-dashboard) .team-avatar{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;font-size:22px;font-weight:800}

body[data-page="account"]:has(#team-dashboard) .stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin:12px 0}
body[data-page="account"]:has(#team-dashboard) .stat-box{border-radius:12px;padding:12px;text-align:center}
body[data-page="account"]:has(#team-dashboard) .stat-value{font-size:22px;font-weight:700}
body[data-page="account"]:has(#team-dashboard) .stat-label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;margin-top:4px}

body[data-page="account"]:has(#team-dashboard) .member-table{width:100%;border-collapse:collapse;margin-top:10px}
body[data-page="account"]:has(#team-dashboard) .member-table th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.08em;padding:8px 10px}
body[data-page="account"]:has(#team-dashboard) .member-table td{padding:10px;font-size:13px}
body[data-page="account"]:has(#team-dashboard) .role-badge{display:inline-flex;padding:2px 8px;border-radius:999px;font-size:10px;text-transform:uppercase;letter-spacing:.06em;font-weight:600}

body[data-page="account"]:has(#team-dashboard) .usage-bar{width:100%;height:6px;border-radius:3px;overflow:hidden;margin-top:4px}
body[data-page="account"]:has(#team-dashboard) .usage-bar-fill{height:100%;border-radius:3px;transition:width .3s}

body[data-page="account"]:has(#team-dashboard) .invite-section{margin-top:14px;padding:14px;border-style:dashed;border-radius:14px}
body[data-page="account"]:has(#team-dashboard) .invite-link-box{display:flex;align-items:center;gap:8px;margin-top:10px;padding:8px 12px;border-radius:10px;font-family:monospace;font-size:12px;word-break:break-all}
body[data-page="account"]:has(#team-dashboard) .invite-link-box .link-text{flex:1;overflow:hidden;text-overflow:ellipsis}

body[data-page="account"]:has(#team-dashboard) .input{border-radius:12px;padding:10px 12px;font-size:14px;outline:none;width:100%;box-sizing:border-box;height:42px}
body[data-page="account"]:has(#team-dashboard) select.input{appearance:none;cursor:pointer;height:42px;padding-right:34px}
body[data-page="account"]:has(#team-dashboard) .form-row{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin-top:10px}
body[data-page="account"]:has(#team-dashboard) .form-row>.btn{align-self:flex-end;padding:10px 14px;box-sizing:border-box;height:42px;white-space:nowrap}
body[data-page="account"]:has(#team-dashboard) .form-group{display:flex;flex-direction:column;gap:4px}
body[data-page="account"]:has(#team-dashboard) .form-group label{font-size:11px;text-transform:uppercase;letter-spacing:.08em}

body[data-page="account"]:has(#team-dashboard) .empty-state{text-align:center;padding:40px 20px}
body[data-page="account"]:has(#team-dashboard) .empty-state .icon{font-size:48px;margin-bottom:12px}
body[data-page="account"]:has(#team-dashboard) .empty-state p{font-size:14px;margin:6px 0}

body[data-page="account"]:has(#team-dashboard) .pending-invite{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;border-radius:10px;margin-top:8px}
body[data-page="account"]:has(#team-dashboard) .pending-invite .invite-info{font-size:12px}
body[data-page="account"]:has(#team-dashboard) .pending-invite .invite-meta{font-size:11px}

body[data-page="account"]:has(#team-dashboard) .tab-bar{display:flex;gap:4px;margin-bottom:14px;padding-bottom:6px}
body[data-page="account"]:has(#team-dashboard) .tab-btn{padding:8px 16px;border:none;font-size:13px;font-weight:600;cursor:pointer;border-radius:8px 8px 0 0;transition:.12s}
body[data-page="account"]:has(#team-dashboard) .tab-content{display:none}
body[data-page="account"]:has(#team-dashboard) .tab-content.active{display:block}

body[data-page="account"]:has(#team-dashboard) .toast-copy{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);padding:10px 20px;border-radius:8px;font-size:13px;font-weight:600;z-index:9999;opacity:0;transition:opacity .3s;pointer-events:none}
body[data-page="account"]:has(#team-dashboard) .toast-copy.show{opacity:1}

body[data-page="account"]:has(#team-dashboard) .transfer-row{display:flex;align-items:center;gap:8px;padding:8px 0;font-size:12px}
body[data-page="account"]:has(#team-dashboard) .transfer-amount{font-weight:700}
body[data-page="account"]:has(#team-dashboard) .transfer-date{margin-left:auto}

body[data-page="account"]:has(#team-dashboard) .mode-hint{margin-top:12px;padding:10px 14px;border-radius:12px;font-size:13px;line-height:1.5}
body[data-page="account"]:has(#team-dashboard) .mode-hint strong{font-weight:600}
body[data-page="account"]:has(#team-dashboard) .mode-hint .mode-hint__title{font-weight:700;font-size:13px;margin-bottom:4px}

body[data-page="account"]:has(#team-dashboard) .form-row--transfer{flex-wrap:wrap}
body[data-page="account"]:has(#team-dashboard) .form-group--transfer-select{flex:1 1 220px;min-width:180px}
body[data-page="account"]:has(#team-dashboard) .form-group--transfer-amount{flex:0 0 120px}

body[data-page="account"]:has(#team-dashboard) .aidc-select{width:100%}
body[data-page="account"]:has(#team-dashboard) .aidc-select .aidc-select__btn{border-radius:12px;padding:10px 12px;font-size:14px;width:100%;box-sizing:border-box;text-align:left;min-height:42px}

body[data-page="account"]:has(#team-dashboard) .team-card{margin-bottom:12px}
body[data-page="account"]:has(#team-dashboard) .team-card__header{display:flex;align-items:center;gap:14px;cursor:pointer;user-select:none;-webkit-user-select:none}
body[data-page="account"]:has(#team-dashboard) .team-card__header:hover{opacity:.85}
body[data-page="account"]:has(#team-dashboard) .team-avatar--sm{width:44px;height:44px;font-size:18px}
body[data-page="account"]:has(#team-dashboard) .team-card__chevron{transition:transform .2s}
body[data-page="account"]:has(#team-dashboard) .team-card__body{margin-top:14px}
body[data-page="account"]:has(#team-dashboard) .team-card__actions-row{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}
body[data-page="account"]:has(#team-dashboard) .team-section-title{font-size:13px;text-transform:uppercase;letter-spacing:.08em;margin:18px 0 8px}

body[data-page="account"]:has(#team-dashboard) .aidc-scroll{
  overflow:visible!important;
  max-height:none!important;
  height:auto!important
}
body[data-page="account"]:has(#team-dashboard) .account-layout>section.panel{
  overflow:visible!important
}

body[data-page="account"]:has(#team-dashboard) .team-seat-billing{margin:12px 0 6px;padding:13px 14px;border-radius:14px;display:grid;gap:8px}
body[data-page="account"]:has(#team-dashboard) .team-seat-billing__title{display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:750}
body[data-page="account"]:has(#team-dashboard) .team-seat-billing__badge{padding:3px 9px;border-radius:999px;font-size:11px;white-space:nowrap}
body[data-page="account"]:has(#team-dashboard) .team-seat-billing__hint{font-size:13px;line-height:1.45}
body[data-page="account"]:has(#team-dashboard) .team-seat-billing__actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
body[data-page="account"]:has(#team-dashboard) .team-seat-billing__price{font-size:12px;font-weight:650}

body[data-page="account"]:has(#team-dashboard) .aidc-seat-modal{position:fixed;inset:0;z-index:12000;display:flex;align-items:center;justify-content:center;padding:16px}
body[data-page="account"]:has(#team-dashboard) .aidc-seat-modal__backdrop{position:absolute;inset:0}
body[data-page="account"]:has(#team-dashboard) .aidc-seat-modal__panel{position:relative;width:min(560px,100%);max-height:88vh;overflow:auto;border-radius:18px;padding:18px}
body[data-page="account"]:has(#team-dashboard) .aidc-seat-modal__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
body[data-page="account"]:has(#team-dashboard) .aidc-seat-modal__head h3{margin:2px 0 0;font-size:18px}
body[data-page="account"]:has(#team-dashboard) .aidc-seat-modal__eyebrow{font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:800}
body[data-page="account"]:has(#team-dashboard) .aidc-seat-modal__close{border:none;background:transparent;font-size:24px;line-height:1;cursor:pointer}
body[data-page="account"]:has(#team-dashboard) .aidc-seat-modal__body{display:grid;gap:12px}
body[data-page="account"]:has(#team-dashboard) .aidc-seat-modal__text{margin:0;font-size:13px;line-height:1.5}
body[data-page="account"]:has(#team-dashboard) .aidc-seat-modal__grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
body[data-page="account"]:has(#team-dashboard) .aidc-seat-modal__grid label,
body[data-page="account"]:has(#team-dashboard) .aidc-seat-modal__field{display:grid;gap:5px;font-size:11px;text-transform:uppercase;letter-spacing:.08em}
body[data-page="account"]:has(#team-dashboard) .aidc-seat-modal__quote{border-radius:13px;padding:12px;font-size:13px}
body[data-page="account"]:has(#team-dashboard) .aidc-seat-quote__row{display:flex;justify-content:space-between;gap:14px;padding:4px 0}
body[data-page="account"]:has(#team-dashboard) .aidc-seat-modal__methods{display:grid;grid-template-columns:1fr 1fr;gap:8px}
body[data-page="account"]:has(#team-dashboard) .aidc-seat-method{border-radius:12px;padding:10px 12px;cursor:pointer;font-weight:700}
body[data-page="account"]:has(#team-dashboard) .aidc-seat-modal__consent{display:flex;gap:9px;align-items:flex-start;font-size:12px;line-height:1.45}
body[data-page="account"]:has(#team-dashboard) .aidc-seat-modal__consent input{margin-top:2px;width:16px;height:16px;flex-shrink:0}
body[data-page="account"]:has(#team-dashboard) .aidc-seat-modal__error{display:none;font-size:12px}
body[data-page="account"]:has(#team-dashboard) .aidc-seat-modal__actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px;flex-wrap:wrap}

@media(max-width:560px){
  body[data-page="account"]:has(#team-dashboard) .aidc-seat-modal__grid,
  body[data-page="account"]:has(#team-dashboard) .aidc-seat-modal__methods{grid-template-columns:1fr}
}

body[data-page="account"]:has(#team-dashboard) .member-card{padding:12px;border-radius:12px;margin-bottom:8px}
body[data-page="account"]:has(#team-dashboard) .member-card__header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
body[data-page="account"]:has(#team-dashboard) .member-card__name{font-weight:600;font-size:14px}
body[data-page="account"]:has(#team-dashboard) .member-card__email{font-size:11px}
body[data-page="account"]:has(#team-dashboard) .member-card__row{font-size:12px;margin-bottom:4px}
body[data-page="account"]:has(#team-dashboard) .member-card__actions{margin-top:8px}

body[data-page="account"]:has(#team-dashboard) .plan-gate{text-align:center;padding:36px 24px 30px}
body[data-page="account"]:has(#team-dashboard) .plan-gate__icon{margin-bottom:16px}
body[data-page="account"]:has(#team-dashboard) .plan-gate__title{font-size:20px;font-weight:700;margin:0 0 8px}
body[data-page="account"]:has(#team-dashboard) .plan-gate__subtitle{font-size:14px;margin:0 0 24px;line-height:1.5}
body[data-page="account"]:has(#team-dashboard) .plan-gate__features{list-style:none;padding:0;margin:0 auto 26px;display:inline-flex;flex-direction:column;gap:12px;text-align:left;max-width:420px}
body[data-page="account"]:has(#team-dashboard) .plan-gate__features li{display:flex;align-items:flex-start;gap:12px;font-size:14px;line-height:1.45}
body[data-page="account"]:has(#team-dashboard) .plan-gate__features li svg{flex-shrink:0;margin-top:2px}
body[data-page="account"]:has(#team-dashboard) .plan-gate__features li strong{font-weight:600}
body[data-page="account"]:has(#team-dashboard) .plan-gate__cta{display:inline-flex;align-items:center;gap:10px;padding:14px 32px;border-radius:14px;font-size:15px;font-weight:700;text-decoration:none;transition:transform .12s,box-shadow .12s}
body[data-page="account"]:has(#team-dashboard) .plan-gate__cta:hover{transform:translateY(-1px)}
body[data-page="account"]:has(#team-dashboard) .plan-gate__cta svg{flex-shrink:0}
body[data-page="account"]:has(#team-dashboard) .plan-gate__note{margin-top:16px;font-size:12px}
