/* BramhaVani universal typography R116
   Reference: main Chat dashboard visual scale.
   Purpose: prevent secondary/admin pages from rendering materially smaller UI text. */
:root{
  --bv-type-page:22px;
  --bv-type-section:14px;
  --bv-type-body:13px;
  --bv-type-ui:12px;
  --bv-type-label:11px;
  --bv-type-meta:10.5px;
  --bv-leading:1.5;
}

/* Workspace Settings */
.workspace-settings-page{font-size:var(--bv-type-body)!important;line-height:var(--bv-leading)!important}
.workspace-settings-page .back-link{font-size:var(--bv-type-ui)!important}
.workspace-settings-page .workspace-brand strong{font-size:13px!important}
.workspace-settings-page .workspace-brand small{font-size:var(--bv-type-meta)!important}
.workspace-settings-page .nav-group>span{font-size:var(--bv-type-meta)!important}
.workspace-settings-page .nav-group button{font-size:var(--bv-type-ui)!important;line-height:1.35}
.workspace-settings-page .page-head h1{font-size:var(--bv-type-page)!important}
.workspace-settings-page .page-head p{font-size:var(--bv-type-label)!important}
.workspace-settings-page .page-actions button,
.workspace-settings-page .live-pill{font-size:var(--bv-type-label)!important}
.workspace-settings-page .section-head h2,
.workspace-settings-page .panel-toolbar h2,
.workspace-settings-page .feature-hero h2,
.workspace-settings-page .modal h2{font-size:var(--bv-type-section)!important}
.workspace-settings-page .section-head p,
.workspace-settings-page .panel-toolbar p,
.workspace-settings-page .feature-hero p,
.workspace-settings-page .modal header p{font-size:var(--bv-type-label)!important}
.workspace-settings-page .pill,
.workspace-settings-page .tool-chip{font-size:var(--bv-type-meta)!important}
.workspace-settings-page .form-grid label,
.workspace-settings-page .modal label,
.workspace-settings-page .button-row,
.workspace-settings-page .empty-state,
.workspace-settings-page .notice{font-size:var(--bv-type-label)!important}
.workspace-settings-page .form-grid input,
.workspace-settings-page .form-grid select,
.workspace-settings-page .field-row input,
.workspace-settings-page .modal input,
.workspace-settings-page .modal select,
.workspace-settings-page .modal textarea,
.workspace-settings-page .member-toolbar input,
.workspace-settings-page .member-toolbar select,
.workspace-settings-page .button-link,
.workspace-settings-page .button-row button,
.workspace-settings-page .member-toolbar button{font-size:var(--bv-type-ui)!important}
.workspace-settings-page .toggle-row b{font-size:var(--bv-type-ui)!important}
.workspace-settings-page .toggle-row small{font-size:var(--bv-type-meta)!important}
.workspace-settings-page .tabbar button{font-size:var(--bv-type-ui)!important}
.workspace-settings-page .seat-card>div:first-child span,
.workspace-settings-page .seat-band small,
.workspace-settings-page .seat-card>button{font-size:var(--bv-type-meta)!important}
.workspace-settings-page th,
.workspace-settings-page td,
.workspace-settings-page .inline-select{font-size:var(--bv-type-label)!important}
.workspace-settings-page th{font-size:var(--bv-type-meta)!important}
.workspace-settings-page td strong,
.workspace-settings-page .list-row b,
.workspace-settings-page .card-item b,
.workspace-settings-page .role-row b{font-size:var(--bv-type-ui)!important}
.workspace-settings-page td small,
.workspace-settings-page .list-row small,
.workspace-settings-page .card-item small,
.workspace-settings-page .role-row span,
.workspace-settings-page .role-row em,
.workspace-settings-page .metric small{font-size:var(--bv-type-meta)!important}
.workspace-settings-page .list-actions button,
.workspace-settings-page #toast{font-size:var(--bv-type-meta)!important}
.workspace-settings-page .metric strong{font-size:18px!important}

/* Workbench */
.workbench-page{font-size:var(--bv-type-body)!important}
.workbench-page .brand strong{font-size:13px!important}
.workbench-page .brand small,
.workbench-page .status,
.workbench-page .tabs button,
.workbench-page .project-item,
.workbench-page .file-row,
.workbench-page .primary,
.workbench-page .file-new input,
.workbench-page .editor-toolbar input,
.workbench-page .editor-toolbar select,
.workbench-page .file-new button,
.workbench-page .editor-toolbar button,
.workbench-page .panel-head button{font-size:var(--bv-type-ui)!important}
.workbench-page .side-head strong,
.workbench-page .eyebrow,
.workbench-page .stats span,
.workbench-page .card small,
.workbench-page .pill,
.workbench-page .mini-head,
.workbench-page .output-head,
.workbench-page .danger,
.workbench-page .analysis-box small,
.workbench-page .preview-head,
.workbench-page .gitbar button,
.workbench-page .gitbar input,
.workbench-page .connector-provider,
.workbench-page .connector-actions button{font-size:var(--bv-type-meta)!important}
.workbench-page .hero p,
.workbench-page .section-head p,
.workbench-page .panel-head p,
.workbench-page .card p,
.workbench-page .list-item p,
.workbench-page .runtime-note p,
.workbench-page .analysis-result{font-size:var(--bv-type-label)!important}
.workbench-page .section-head h2,
.workbench-page .panel-head h2{font-size:var(--bv-type-section)!important}
.workbench-page .card strong,
.workbench-page .list-item strong,
.workbench-page .runtime-note strong,
.workbench-page .analysis-box strong{font-size:var(--bv-type-ui)!important}
.workbench-page #editor,
.workbench-page .promptbox{font-size:13px!important}
.workbench-page #output,
.workbench-page .jobbox{font-size:12px!important}

/* Account security */
.security-page{font-size:var(--bv-type-body)!important}
.security-page header small,
.security-page .hero span,
.security-page .badge,
.security-page .totp-setup label,
.security-page .session small,
.security-page .event small,
.security-page .delete-check,
.security-page .external-delete{font-size:var(--bv-type-meta)!important}
.security-page .hero p,
.security-page .card p,
.security-page .session strong,
.security-page .event strong,
.security-page button,
.security-page input,
.security-page textarea{font-size:var(--bv-type-ui)!important}
.security-page .head h2{font-size:var(--bv-type-section)!important}

/* Operations */
.operations-page{font-size:var(--bv-type-body)!important}
.operations-page header small,
.operations-page .hero span,
.operations-page .hero b,
.operations-page .stat small,
.operations-page .row small,
.operations-page th{font-size:var(--bv-type-meta)!important}
.operations-page .card h2,
.operations-page .row strong,
.operations-page table,
.operations-page button{font-size:var(--bv-type-ui)!important}

/* Share surfaces */
.share-page,.chat-share-page{font-size:var(--bv-type-body)!important}
.share-page header span,.share-page .hero>span,.share-page .file small,
.chat-share-page header span,.chat-share-page .hero>span,.chat-share-page .role{font-size:var(--bv-type-meta)!important}
.share-page section h2,.share-page .file span,
.chat-share-page .body{font-size:var(--bv-type-ui)!important}

/* Authentication */
.auth-page .brand small,
.auth-page .beta,
.auth-page .field>span,
.auth-page .auth-v3-field>span,
.auth-page .auth-v3-or,
.auth-page .auth-v3-message,
.auth-page .auth-link,
.auth-page .auth-v3-legal,
.auth-page .auth-invite-banner small{font-size:var(--bv-type-meta)!important}
.auth-page .intro,
.auth-page .message,
.auth-page .switch,
.auth-page .consent,
.auth-page .trust,
.auth-page .auth-v3-sub,
.auth-page .auth-secondary-action,
.auth-page .auth-identity-chip,
.auth-page .auth-invite-banner strong{font-size:var(--bv-type-ui)!important}
.auth-page .box input,
.auth-page .submit,
.auth-page .auth-v3-field>input,
.auth-page .auth-password-box,
.auth-page .auth-provider,
.auth-page .auth-v3-primary{font-size:14px!important}

/* Public/legal pages are already at or above the dashboard scale.
   This class prevents future reductions below the shared readable body baseline. */
.bv-public-page{font-size:15px!important}
.bv-public-page nav,
.bv-public-page .links a,
.bv-public-page .btn,
.bv-public-page button,
.bv-public-page label{font-size:13px!important}
.bv-public-page footer,.bv-public-page .eyebrow{font-size:11px!important}

@media(max-width:700px){
  :root{--bv-type-page:20px;--bv-type-section:14px;--bv-type-body:13px;--bv-type-ui:12px;--bv-type-label:11px;--bv-type-meta:10px}
}

/* R117 workspace roles/readability hardening */
@media(min-width:901px){
  .workspace-settings-page .admin-shell{grid-template-columns:250px minmax(0,1fr)!important}
}
.workspace-settings-page .workspace-brand>div:last-child{min-width:0;flex:1}
.workspace-settings-page .workspace-brand strong{
  max-width:none!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  line-height:1.25!important;
  overflow-wrap:anywhere;
}
.workspace-settings-page .workspace-brand small{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.workspace-settings-page .role-row{
  grid-template-columns:130px minmax(0,1fr) minmax(150px,auto)!important;
  gap:18px!important;
  min-width:0;
}
.workspace-settings-page .role-row b{
  font-size:13px!important;
  line-height:1.4!important;
}
.workspace-settings-page .role-row span{
  font-size:12px!important;
  line-height:1.5!important;
  min-width:0;
  overflow-wrap:anywhere;
}
.workspace-settings-page .role-row em{
  font-size:11.5px!important;
  line-height:1.4!important;
  white-space:normal!important;
  overflow-wrap:anywhere;
  text-align:right!important;
}
.workspace-settings-page .roles-actions button{
  font-size:12px!important;
  line-height:1.35!important;
  white-space:normal;
}
.workspace-settings-page .roles-actions span{
  font-size:11.5px!important;
  line-height:1.4!important;
  white-space:normal;
}
@media(max-width:900px) and (min-width:701px){
  .workspace-settings-page .admin-shell{grid-template-columns:220px minmax(0,1fr)!important}
  .workspace-settings-page .role-row{
    grid-template-columns:105px minmax(0,1fr)!important;
  }
  .workspace-settings-page .role-row em{
    grid-column:2;
    text-align:left!important;
  }
}
@media(max-width:700px){
  .workspace-settings-page .role-row{
    grid-template-columns:1fr!important;
    gap:6px!important;
    padding:14px 0!important;
  }
  .workspace-settings-page .role-row em{
    grid-column:auto;
    text-align:left!important;
  }
  .workspace-settings-page .roles-actions{
    align-items:flex-start!important;
    flex-wrap:wrap;
  }
}
