/* BRADOX Gerador Pro — camada de redesign da interface.
   Os tokens desta folha não alcançam os renderizadores/exportações de banners. */
:root {
  --bg-base: var(--brx-color-background);
  --bg-sidebar: #071A1F;
  --bg-surface: #0D191C;
  --bg-surface-elevated: #112328;
  --bg-surface-hover: #183037;
  --bg-surface-active: #1D3940;
  --text-primary: var(--brx-color-text);
  --text-secondary: #C0CCCE;
  --text-muted: #91A1A4;
  --text-inverse: var(--brx-color-accent-text);
  --gold-primary: var(--brx-color-accent);
  --gold-accent: #E8CB76;
  --gold-deep: #876D25;
  --gold-muted: rgba(212, 175, 55, .12);
  --gold-glow: rgba(212, 175, 55, .16);
  --gold-border: rgba(212, 175, 55, .38);
  --text-gold: var(--gold-accent);
  --border-subtle: #1B3034;
  --border-default: #294147;
  --border-hover: #456067;
  --border-focus: var(--brx-color-focus);
  --status-success: var(--brx-color-success);
  --status-success-bg: rgba(75, 196, 155, .13);
  --status-warning: var(--brx-color-warning);
  --status-warning-bg: rgba(240, 179, 91, .13);
  --status-error: var(--brx-color-danger);
  --status-error-bg: rgba(244, 122, 122, .13);
  --status-info: #83C8D2;
  --status-info-bg: rgba(131, 200, 210, .12);
  --font-sans: var(--brx-font-family);
  --font-body: var(--font-sans);
  --border-card: var(--border-default);
  --gold-light: var(--gold-accent);
  --sidebar-width: 264px;
  --sidebar-collapsed-width: 76px;
  --header-height: 72px;
  --content-max-width: 1600px;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .18);
  --shadow-md: var(--brx-shadow-panel);
  --shadow-lg: var(--brx-shadow-popup);
  --shadow-gold: 0 8px 24px rgba(212, 175, 55, .12);
  --transition-fast: 120ms ease;
  --transition-base: 180ms ease;
}

html { font-size: 16px; scroll-padding-top: calc(var(--header-height) + 16px); }
body {
  background:
    radial-gradient(ellipse at 68% -28%, rgba(32, 75, 79, .20), transparent 48%),
    var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.55;
}
::selection { color: #11130F; background: #E8CB76; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
}

/* Shell: navegação estável, conteúdo com largura útil e sem status fictício. */
.bradox-layout { width: 100%; min-height: 100vh; min-height: 100dvh; }
.bradox-sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #0A1C20 0%, #071316 100%);
  border-right-color: var(--border-subtle);
  box-shadow: 8px 0 28px rgba(0, 0, 0, .12);
}
.sidebar-header { padding-inline: 18px; border-bottom-color: var(--border-subtle); }
.brand-emblem-wrap {
  width: 40px;
  height: 40px;
  background: #0C2024;
  border-color: rgba(212, 175, 55, .3);
  border-radius: 12px;
}
.brand-emblem-wrap img { width: 28px; height: 28px; }
.brand-name { letter-spacing: .025em; }
.brand-badge-tag { font-size: 10px; letter-spacing: .075em; }
.sidebar-nav { padding: 16px 12px 20px; gap: 5px; scrollbar-width: thin; scrollbar-color: #345157 transparent; }
.nav-group-title {
  padding: 18px 10px 7px;
  color: #A9B9B9;
  font-size: 11px;
  letter-spacing: .09em;
}
.nav-item {
  min-height: 44px;
  padding: 9px 11px;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #B8C4C5;
  font-size: 15px;
}
.nav-item:hover { background: #102428; border-color: #1D373B; color: #F7F8F6; }
.nav-item.active {
  padding-left: 10px;
  background: linear-gradient(90deg, rgba(212, 175, 55, .14), rgba(212, 175, 55, .045));
  border: 1px solid rgba(212, 175, 55, .25);
  border-left: 2px solid var(--gold-primary);
}
.nav-item-pill { font-size: 11px; padding: 3px 8px; }
.sidebar-footer { padding: 12px; border-color: var(--border-subtle); background: transparent; }
.license-compact-box { padding: 11px 12px; border-radius: 12px; background: rgba(14, 30, 33, .8); }
.license-status-row { font-size: 12px; }
.license-plan-sub { font-size: 12px; }
.license-dot { box-shadow: none; }
.bradox-main { min-width: 0; width: calc(100% - var(--sidebar-width)); background: transparent; }
body.sidebar-is-collapsed .bradox-main { width: calc(100% - var(--sidebar-collapsed-width)); }
.bradox-topbar {
  min-height: var(--header-height);
  height: auto;
  padding: 10px 28px;
  background: rgba(9, 18, 20, .92);
  border-bottom-color: var(--border-subtle);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.topbar-breadcrumb { font-size: 14px; }
.topbar-breadcrumb .crumb-root { color: #9AABAD; }
.topbar-right { gap: 12px; }
.workspace-context {
  padding: 7px 11px;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  color: #C3CECF;
  background: rgba(13, 25, 28, .8);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .02em;
  white-space: nowrap;
}
.user-profile-widget { padding: 5px 12px 5px 5px; background: #0E1C1F; border-color: #263B3F; }
.user-avatar-circle { width: 34px; height: 34px; background: linear-gradient(145deg, #E6C55F, #AC8420); }
.user-name-label { font-size: 13px; }
.user-badge-role { color: #E6C55F; font-size: 10px; }
.user-expiry-label { color: var(--text-muted); font-size: 10px; line-height: 1.2; }
.user-expiry-label:empty { display: none; }
.user-expiry-label[data-status="soon"] { color: #F4C96B; }
.user-expiry-label[data-status="urgent"] { color: #FF9A8E; font-weight: 750; }
.bradox-content { width: 100%; max-width: var(--content-max-width); padding: 32px clamp(20px, 3vw, 48px) 56px; }

/* Tipografia e superfícies compartilhadas por rotas já existentes. */
.page-title, .welcome-title, .studio-page-title { color: var(--text-primary); letter-spacing: -.035em; }
.page-title, .welcome-title { font-size: clamp(26px, 2.5vw, 34px); line-height: 1.18; font-weight: 780; }
.studio-page-header { align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.studio-page-title { font-size: clamp(27px, 2.7vw, 36px); line-height: 1.15; margin-bottom: 8px; }
.studio-page-title span { color: var(--gold-accent); }
.studio-page-eyebrow, .dash-hero-eyebrow { color: #E2C66E; font-size: 12px; letter-spacing: .08em; }
.studio-page-desc, .dash-hero-desc { max-width: 720px; color: var(--text-secondary); font-size: 15px; line-height: 1.6; }
.section-title { font-size: 22px; letter-spacing: -.025em; margin-bottom: 14px; }
.section-subtitle { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.surface-panel, .surface-elevated, .tool-card, .operational-card, .studio-card,
.integration-status-card, .fa-panel, .fa-owner, .bradox-table-wrap,
.bannerfilm-logo-box, .bannerfilm-share-card {
  background: linear-gradient(160deg, rgba(17, 35, 40, .96), rgba(12, 24, 27, .96));
  border: 1px solid var(--border-default);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.surface-panel { padding: clamp(18px, 2vw, 26px); }
.surface-elevated { padding: 20px; }
.tool-card { padding: 20px; }
.studio-card, .operational-card { box-shadow: none; }
.studio-card:hover, .layout-card:hover, .poster-model-card:hover, .football-model-card:hover,
.media-card:hover { transform: translateY(-2px); border-color: #557078; box-shadow: 0 10px 24px rgba(0, 0, 0, .24); }
.studio-card::before { opacity: .35; }
.studio-card:hover::before { opacity: .8; }
.studio-card-title { font-size: 19px; }
.studio-card-desc { font-size: 14px; color: var(--text-secondary); }
.studio-card-foot { border-top-color: var(--border-subtle); }

/* Ações e controles consistentes; áreas de toque confortáveis. */
.btn, .btn-primary, .btn-secondary, .btn-ghost, .btn-destructive, .btn-gold,
.fa-btn, .btn-theme-choose, .scope-pill, .sidebar-collapse-btn, .mobile-menu-trigger {
  min-height: 44px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}
.btn, .btn-primary, .btn-secondary, .btn-ghost, .btn-destructive, .btn-gold, .fa-btn { padding: 10px 16px; }
.btn-primary, .btn-gold, .fa-btn-primary {
  color: #19170F;
  background: linear-gradient(180deg, #E6C85F, #D4AF37);
  border: 1px solid rgba(247, 226, 151, .42);
  box-shadow: 0 5px 14px rgba(212, 175, 55, .13), inset 0 1px rgba(255,255,255,.26);
}
.btn-primary:hover:not(:disabled), .btn-gold:hover:not(:disabled), .fa-btn-primary:hover:not(:disabled) {
  background: #E8CB76;
  border-color: #F0D990;
  box-shadow: 0 7px 18px rgba(212, 175, 55, .2);
  transform: translateY(-1px);
}
.btn-secondary, .fa-btn, .scope-pill {
  color: #E2E9E8;
  background: #14272B;
  border: 1px solid #355057;
}
.btn-secondary:hover:not(:disabled), .fa-btn:hover:not(:disabled), .scope-pill:hover:not(:disabled) {
  color: #fff;
  background: #1A3439;
  border-color: #557078;
}
.scope-pill.active { color: var(--gold-accent); background: rgba(212,175,55,.12); border-color: var(--gold-primary); }
.btn-ghost { color: var(--text-secondary); border-color: transparent; background: transparent; }
.btn-ghost:hover:not(:disabled) { color: #fff; background: #14272B; }
.btn-destructive { color: #FFAAAA; background: var(--status-error-bg); border-color: rgba(244, 122, 122, .34); }
.btn-sm { min-height: 40px; padding: 8px 13px; font-size: 13px; }
.btn-icon { width: 44px; height: 44px; min-height: 44px; border-radius: 11px; }
.fa-model-actions { gap: 8px; }
.fa-model-actions button { min-height: 40px; padding: 8px 9px; font-size: 13px; }
.fa-palette-swatch { width: 24px; height: 24px; flex-basis: 24px; }
.fa-palette-name { color: var(--text-secondary); font-size: 12px; }

.form-label, .fa-field { color: #E0E7E7; font-size: 14px; font-weight: 650; }
.form-hint, .fa-hint, .metadata-text, .empty-state-desc { color: var(--text-muted); font-size: 14px; }
.input-field, .select-field, .textarea-field, .fa-field select, .fa-field input {
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid #344C51;
  background-color: #0B171A;
  color: var(--text-primary);
  font-size: 15px;
}
.input-field:focus, .select-field:focus, .textarea-field:focus,
.fa-field select:focus, .fa-field input:focus { border-color: var(--gold-primary); box-shadow: 0 0 0 3px rgba(212, 175, 55, .16); }
.form-group { gap: 8px; margin-bottom: 18px; }
.input-search-wrap input { min-height: 44px; color: var(--text-primary); font-size: 15px; }
.catalog-search-bar, .bannerfilm-search-bar { background: #0C191C; border-color: var(--border-default); border-radius: 14px; }

/* Dashboard e estúdios. */
.dash-hero {
  padding: clamp(24px, 3vw, 40px);
  background: radial-gradient(ellipse at 88% 20%, rgba(212, 175, 55, .09), transparent 40%), linear-gradient(125deg, #102529 0%, #0C191C 65%, #0B1416 100%);
  border-color: #345056;
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .2);
}
.dash-hero::before { width: 180px; height: 2px; background: linear-gradient(90deg, var(--gold-primary), rgba(212,175,55,0)); }
.dash-hero-title { font-size: clamp(27px, 3vw, 36px); line-height: 1.17; }
.dash-hero-actions { gap: 10px; }
.studios-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.studio-card { min-height: 360px; padding: 0; isolation: isolate; }
.studio-card::before { z-index: 3; pointer-events: none; }
.studio-card-art {
  position: relative;
  height: 154px;
  flex: 0 0 154px;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
  background: #0B1416;
}
.studio-card-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,20,22,0) 38%, rgba(11,20,22,.22) 68%, #0D1B1F 100%);
  pointer-events: none;
}
.studio-card-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  transition: transform 480ms cubic-bezier(.2,.7,.2,1), filter 480ms ease;
}
.studio-card:hover .studio-card-art img { transform: scale(1.045); filter: saturate(1.08); }
.studio-card-head, .studio-card-body, .studio-card-foot { position: relative; z-index: 1; margin-inline: 22px; }
.studio-card-head { margin-top: 0; }
.studio-card-body { margin-bottom: 20px; }
.studio-card-foot { margin-bottom: 22px; }
.operational-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.op-status-list li { min-height: 38px; border-bottom: 1px solid var(--border-subtle); }
.op-status-val { font-size: 12px; }

/* Bibliotecas, artefatos, editor esportivo e tabelas. */
.layout-models-grid, .poster-models-grid, .football-models-grid { gap: 16px; }
.layout-card, .poster-model-card, .football-model-card, .fa-model-card, .media-card {
  background: #0D1B1F;
  border-color: #2B444A;
  border-radius: 14px;
  box-shadow: none;
}
.layout-card.is-selected, .poster-model-card.is-selected, .football-model-card.is-selected,
.fa-model-card.is-selected { border-color: var(--gold-primary) !important; box-shadow: 0 0 0 2px rgba(212,175,55,.2) !important; }
.layout-card-name, .layout-card-label, .poster-model-name, .fa-model-copy strong,
.media-title, .studio-card-title { color: var(--text-primary); }
.layout-card-body { padding: 14px; }
.layout-card-name { font-size: 15px; }
.layout-card-desc { color: var(--text-muted); font-size: 13px; }
.poster-model-label, .football-model-label { padding: 11px 12px; font-size: 14px; color: var(--text-secondary); }
.fa-top h2 { color: var(--text-primary); font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.035em; }
.fa-top p, .fa-panel p, .fa-model-head p { color: var(--text-secondary); font-size: 14px; }
.fa-eyebrow { background: rgba(212,175,55,.09); color: var(--gold-accent); border-color: var(--gold-border); font-size: 12px; }
.fa-config-grid { grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); gap: 16px; }
.fa-panel { padding: clamp(18px, 2vw, 24px); }
.fa-panel h3 { color: var(--text-primary); font-size: 18px; }
.fa-filters { gap: 14px; }
.fa-league-list { max-height: 260px; gap: 9px; scrollbar-width: thin; scrollbar-color: #456067 transparent; }
.fa-league { min-height: 42px; padding: 8px 12px; color: #D4DEDE; border-color: #355057; background: #102226; font-size: 13px; }
.fa-league:has(input:checked) { color: #F6E9B7; border-color: #B99738; background: rgba(212,175,55,.12); }
.fa-league input { accent-color: var(--gold-primary); }
.fa-footer-bar { background: rgba(9, 24, 27, .97); border-color: #405B60; border-radius: 16px; box-shadow: 0 10px 25px rgba(0,0,0,.26); backdrop-filter: blur(8px); }
.fa-footer-bar p { color: var(--text-secondary); font-size: 13px; }
.fa-footer-bar strong { font-size: 15px; }
.fa-divider { background: linear-gradient(90deg, transparent, rgba(212,175,55,.28), transparent); }
.fa-bg-preview { min-height: 164px; border-color: rgba(212,175,55,.35); background: radial-gradient(ellipse at center, rgba(212,175,55,.09), transparent 68%), #0A171A; }
.fa-bg-preview img { height: 164px; }
.fa-bg-empty { color: var(--text-secondary); font-size: 14px; }
.fa-bg-empty strong { color: var(--text-primary); font-size: 17px; }
.upload-zone {
  border: 1px dashed #597176;
  border-radius: 14px;
  background: rgba(14, 30, 33, .75);
  color: var(--text-secondary);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}
.upload-zone:hover, .upload-zone.is-dragging { border-color: var(--gold-primary); background: rgba(212,175,55,.06); }
.upload-zone-label { color: var(--text-primary); font-size: 14px; }
.upload-zone-hint { color: var(--text-muted); font-size: 13px; }
.file-input::file-selector-button, input[type="file"]::file-selector-button { min-height: 40px; border-radius: 8px; background: #183037; color: #F5F6F7; border: 1px solid #456067; }
.bradox-table-wrap { overflow-x: auto; overscroll-behavior-x: contain; }
.bradox-table { min-width: 700px; }
.bradox-table thead th { position: sticky; top: 0; z-index: 1; padding: 14px 16px; background: #122428; color: #B7C5C7; font-size: 12px; }
.bradox-table td { padding: 14px 16px; font-size: 14px; }
.bradox-table tbody tr:hover { background: rgba(29, 57, 64, .52); }
.chat-item { min-height: 60px; background: #102226; border-color: var(--border-subtle); }

/* Diálogos, mensagens e estados. */
.modal-backdrop { padding: 24px; background: rgba(2, 8, 9, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-dialog { border-color: #365056; border-radius: 18px; background: #0D191C; box-shadow: 0 22px 72px rgba(0,0,0,.46); }
.modal-header { padding: 20px 24px; border-bottom-color: var(--border-subtle); }
.modal-title { font-size: 20px; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; background: #102024; border-top-color: var(--border-subtle); }
.bradox-modal { color: var(--text-primary); background: #0D191C !important; border-color: #405B60 !important; border-radius: 18px !important; box-shadow: 0 22px 72px rgba(0,0,0,.46); }
.bradox-modal h2 { color: var(--text-primary) !important; font-family: var(--font-sans); letter-spacing: -.025em; }
.bradox-modal span[style*="#38bdf8"] { color: var(--gold-accent) !important; }
#btnCloseRealPreview { width: 44px !important; height: 44px !important; min-width: 44px; border: 1px solid #355057 !important; border-radius: 10px !important; background: #14272B !important; }
.bradox-toast-container { right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); }
.bradox-toast { min-height: 56px; padding: 14px 16px; background: #112226; border-color: #3B555A; font-size: 14px; }
.badge, .badge-gold, .badge-neutral, .badge-success, .badge-info { min-height: 24px; font-size: 12px; padding: 4px 9px; }

/* Login com a mesma identidade da área autenticada. */
.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  background: radial-gradient(ellipse at 50% -20%, rgba(42, 86, 89, .3), transparent 54%), #090A0C;
  font-family: var(--font-sans);
}
.login-card {
  width: min(480px, 100%);
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid #365056;
  border-radius: 20px;
  background: linear-gradient(155deg, #102226, #0B171A 72%);
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
}
.login-mark { font-size: 22px; letter-spacing: .035em; }
.login-mark span, .login-eyebrow { color: var(--gold-accent); }
.login-eyebrow { margin-bottom: 30px; letter-spacing: .14em; }
.login-card h1 { font-size: 30px; letter-spacing: -.03em; }
.login-description { color: var(--text-secondary); font-size: 15px; }
.login-card label { color: #E0E7E7; font-size: 14px; }
.login-card input { min-height: 48px; border-color: #344C51; border-radius: 10px; background: #091619; font-size: 15px; }
.login-card button { min-height: 48px; border: 1px solid rgba(247, 226, 151, .42); border-radius: 10px; background: linear-gradient(180deg, #E6C85F, #D4AF37); color: #19170F; font-size: 15px; font-weight: 750; }

/* Tablet vira navegação recolhível; no celular, drawer com fundo clicável. */
@media (max-width: 1023px) {
  .bradox-sidebar { width: min(320px, calc(100vw - 48px)); transform: translateX(-105%); z-index: 120; box-shadow: 18px 0 48px rgba(0,0,0,.4); }
  body.sidebar-is-collapsed .bradox-sidebar { width: min(320px, calc(100vw - 48px)); }
  body.sidebar-is-collapsed .bradox-sidebar .brand-info,
  body.sidebar-is-collapsed .bradox-sidebar .nav-group-title,
  body.sidebar-is-collapsed .bradox-sidebar .nav-item-label,
  body.sidebar-is-collapsed .bradox-sidebar .nav-item-pill,
  body.sidebar-is-collapsed .bradox-sidebar .license-info,
  body.sidebar-is-collapsed .bradox-sidebar .license-badge-vip { display: revert; }
  body.sidebar-is-collapsed .bradox-sidebar .sidebar-header { justify-content: space-between; padding-inline: 18px; }
  body.sidebar-is-collapsed .bradox-sidebar .nav-item { justify-content: flex-start; padding: 9px 11px; }
  body.sidebar-is-collapsed .bradox-sidebar .license-compact-box { justify-content: space-between; padding: 11px 12px; }
  .bradox-sidebar.mobile-open { transform: translateX(0); }
  .bradox-main, body.sidebar-is-collapsed .bradox-main { width: 100%; margin-left: 0; }
  .mobile-menu-trigger { display: inline-flex; width: 44px; height: 44px; color: var(--text-primary); background: #102226; border: 1px solid #355057; }
  .sidebar-collapse-btn { display: none; }
  .bradox-topbar { padding-inline: 20px; }
  .bradox-content { padding: 26px clamp(18px, 3vw, 32px) 44px; }
  .fa-config-grid { grid-template-columns: 1fr; }
  .fa-panel { min-width: 0; }
  body.mobile-nav-open { overflow: hidden; }
  body.mobile-nav-open::before { content: ''; position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.62); }
}
@media (max-width: 767px) {
  .bradox-topbar { min-height: 64px; padding: 8px 14px; gap: 10px; }
  .topbar-left { gap: 10px; min-width: 0; }
  .topbar-breadcrumb { min-width: 0; }
  .topbar-breadcrumb .crumb-root, .topbar-breadcrumb .crumb-separator { display: none; }
  .topbar-breadcrumb .crumb-current { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-right { gap: 7px; }
  .workspace-context { display: none; }
  .user-profile-widget { padding: 3px 7px 3px 3px; gap: 6px; max-width: 46vw; }
  .user-avatar-circle { width: 34px; height: 34px; flex: 0 0 34px; }
  .user-meta-text { min-width: 0; }
  .user-name-label, .user-badge-role { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .user-name-label { max-width: 28vw; font-size: 12px; }
  .user-badge-role { max-width: 28vw; font-size: 9px; }
  #btnLogout { min-height: 40px; padding: 8px 10px !important; }
  .bradox-content { padding: 20px 14px calc(32px + env(safe-area-inset-bottom)); }
  .studio-page-header { align-items: stretch; flex-direction: column; gap: 16px; margin-bottom: 24px; }
  .studio-page-header-right, .studio-page-actions, .dash-hero-actions { width: 100%; }
  .studio-page-actions > *, .dash-hero-actions > * { flex: 1 1 100%; }
  .studio-page-title { font-size: clamp(25px, 7vw, 32px); }
  .studio-page-desc, .dash-hero-desc { font-size: 15px; }
  .dash-hero { align-items: stretch; flex-direction: column; padding: 23px 20px; gap: 20px; margin-bottom: 26px; }
  .dash-hero-title { font-size: 28px; }
  .studios-grid, .operational-grid { grid-template-columns: 1fr; gap: 12px; }
  .studio-card { min-height: 0; padding: 0; }
  .studio-card-art { height: 148px; flex-basis: 148px; }
  .studio-card-head, .studio-card-body, .studio-card-foot { margin-inline: 18px; }
  .studio-card-foot { margin-bottom: 18px; }
  .studio-card-body { margin-bottom: 16px; }
  .section-header-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .admin-two-col-grid, .fa-config-grid { grid-template-columns: minmax(0, 1fr); }
  .fa-filters { grid-template-columns: 1fr; }
  .fa-model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fa-model-art.has-real-preview { height: auto; aspect-ratio: 4 / 5; }
  .fa-model-actions { flex-wrap: wrap; }
  .fa-model-actions button { min-width: calc(50% - 4px); flex: 1; }
  .fa-footer-bar { position: sticky; bottom: max(8px, env(safe-area-inset-bottom)); padding: 13px; gap: 12px; }
  .fa-footer-bar > * { flex: 1 1 100%; }
  .fa-footer-bar button { width: 100%; }
  .fa-league-list { max-height: 260px; }
  .bradox-table { min-width: 680px; }
  .bradox-table thead th, .bradox-table td { padding: 12px; }
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal-dialog { width: 100%; max-width: 100%; max-height: 92dvh; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .bradox-modal-overlay { align-items: end !important; padding: 0 !important; }
  .bradox-modal { width: 100% !important; max-height: 92dvh !important; padding: 18px !important; border-radius: 18px 18px 0 0 !important; }
  .modal-header { padding: 17px 18px; }
  .modal-body { padding: 18px; }
  .modal-footer { padding: 13px 18px; }
  .modal-footer > :is(button, a) { flex: 1 1 100%; }
  .bradox-toast-container { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .bradox-toast { width: 100%; min-width: 0; max-width: none; }
  .btn-sm { min-height: 44px; font-size: 14px; }
  .fa-model-actions button { min-height: 44px; font-size: 13px; }
  .login-page { padding-inline: 16px; }
  .login-card { padding: 28px 22px; }
}
@media (max-width: 380px) {
  .topbar-right { gap: 5px; }
  .topbar-breadcrumb .crumb-current { max-width: 34vw; }
  .user-profile-widget { max-width: 42px; padding-right: 3px; }
  .user-meta-text { display: none; }
  #btnLogout { padding-inline: 8px !important; }
  .fa-model-grid { grid-template-columns: 1fr; }
  .fa-model-art.has-real-preview { aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
