/* Monkey TV — 60/30/10. Capa inicial, sin alterar estructura ni permisos. */
:root {
  --monkey-storm: #5a606b;
  --monkey-matte: #1c1d20;
  --monkey-orange: #ff5f00;
  --bg: var(--monkey-storm);
  --bg-2: var(--monkey-matte);
  --panel: var(--monkey-matte);
  --panel-2: #27292e;
  --panel-3: #30333a;
  --text: #ffffff;
  --muted: #d4d7dd;
  --accent: var(--monkey-orange);
  --accent-2: var(--monkey-orange);
  --accent-soft: rgba(255,95,0,.14);
}
body { background: var(--monkey-storm); color: var(--text); }
body::before { background: none; }
.sidebar, .topbar { background: var(--monkey-matte); }
.button.primary { background: var(--monkey-orange); color: #161719; border-color: var(--monkey-orange); box-shadow: none; }
.button.primary:hover { background: #ff7827; color: #161719; }
:focus-visible { outline: 2px solid #ff5f00; outline-offset: 3px; }

.admin-layout-shell { background: var(--monkey-storm); }
.admin-sidebar, .admin-topbar, .admin-sidebar-head, .admin-sidebar-bottom { background: var(--monkey-matte); }

/* Opaque surfaces over Storm Gray; preserve semantic status badges. */
.app-shell .account-metric,
.app-shell .account-metric.demo,
.app-shell .account-metric.sale,
.app-shell .accounts-toolbar,
.app-shell .accounts-empty-state,
.app-shell .service-account-card,
.app-shell .sessions-metric,
.app-shell .sessions-toolbar,
.app-shell .session-card,
.app-shell .sessions-empty,
.app-shell .content-hero-v3,
.app-shell .content-inventory,
.app-shell .content-history-panel {
  background: var(--monkey-matte);
  color: var(--text);
  border-color: #41444b;
  box-shadow: none;
}
.app-shell .accounts-search,
.app-shell .session-card-head,
.app-shell .session-facts > div,
.app-shell .session-client-strip.unmatched,
.app-shell .content-meta-item,
.app-shell .content-kpi-card,
.app-shell .content-inventory-search,
.app-shell .content-inventory-empty,
.app-shell .content-history-empty {
  background: var(--panel-2);
  border-color: #444851;
}
.app-shell .account-metric-top span,
.app-shell .account-metric-top i,
.app-shell .account-metric small,
.app-shell .accounts-search svg,
.app-shell .accounts-search input::placeholder,
.app-shell .accounts-empty-state p,
.app-shell .sessions-metric > span,
.app-shell .sessions-metric > small,
.app-shell .sessions-toolbar-live span,
.app-shell .sessions-toolbar-live small,
.app-shell .session-user small,
.app-shell .session-title-block p,
.app-shell .session-progress-meta,
.app-shell .session-facts span,
.app-shell .session-technical,
.app-shell .session-technical span,
.app-shell .session-client-strip.unmatched span,
.app-shell .session-client-strip.unmatched small,
.app-shell .sessions-empty p,
.app-shell .content-section-heading p,
.app-shell .content-inventory-head p,
.app-shell .content-inventory-empty span,
.app-shell .content-history-empty span,
.app-shell .content-meta-item small,
.app-shell .content-kpi-label {
  color: var(--muted);
}
.app-shell .account-filter {
  background: var(--panel-2);
  color: var(--text);
  border-color: #50545d;
}
.app-shell .account-filter.active,
.app-shell .content-action-primary,
.app-shell .admin-topbar .button.primary,
.public-shell .public-nav-pill a.active {
  background: var(--monkey-orange);
  color: var(--monkey-matte);
  border-color: var(--monkey-orange);
  box-shadow: none;
}
.app-shell .content-action-button:not(.content-action-primary) {
  background: var(--panel-2);
  color: var(--text);
  border-color: #50545d;
}
.app-shell .session-progress { background: #444851; }
.app-shell .session-progress span { background: var(--monkey-orange); }
.app-shell .session-action.danger { color: #ff9d9d; }
.app-shell .account-metric strong,
.app-shell .sessions-metric > strong,
.app-shell .session-facts strong { color: #fff; }

/* Administrative theme: actual shared components across every module.
   Do not reset semantic badges, state borders, shadows or layout. */
.app-shell .card,
.app-shell .metric-card,
.app-shell .server-card,
.app-shell .access-metric,
.app-shell .access-toolbar,
.app-shell .access-client-card,
.app-shell .clients-toolbar,
.app-shell .client-crm-card,
.app-shell .plan-admin-card,
.app-shell .plan-admin-card-clean,
.app-shell .team-toolbar,
.app-shell .staff-card,
.app-shell .wallet-metric,
.app-shell .wallet-toolbar,
.app-shell .wallet-transaction-card,
.app-shell .wallet-empty,
.app-shell .settings-nav-card,
.app-shell .settings-card,
.app-shell .settings-note-card,
.app-shell .settings-profile-card,
.app-shell .settings-form-card,
.app-shell .timeline-card,
.app-shell .access-empty,
.app-shell .clients-empty,
.app-shell .plans-empty-clean,
.app-shell .compact-empty,
.app-shell .identity-card,
.app-shell .sticky-card,
.app-shell .access-modal,
.app-shell .access-create-modal,
.app-shell .access-sale-modal,
.app-shell .plan-edit-modal,
.app-shell .plan-delete-modal {
  background: var(--monkey-matte);
  color: var(--text);
}
.app-shell .server-facts > div,
.app-shell .access-search,
.app-shell .clients-search,
.app-shell .access-card-service,
.app-shell .access-card-account,
.app-shell .access-detail-panel,
.app-shell .access-client-panel,
.app-shell .access-account-panel,
.app-shell .access-tv-card,
.app-shell .access-commercial-summary,
.app-shell .access-stat-grid > div,
.app-shell .client-crm-contact,
.app-shell .client-crm-stats > div,
.app-shell .plan-admin-quickfacts > div,
.app-shell .plan-delete-summary,
.app-shell .staff-wallet-stats > div,
.app-shell .staff-activity-stats > div,
.app-shell .wallet-pending-item,
.app-shell .settings-push-metric,
.app-shell .access-sale-summary,
.app-shell .access-sale-client-panel,
.app-shell .access-sale-payment-panel,
.app-shell .access-existing-client-card,
.app-shell .service-summary {
  background: var(--panel-2);
  border-color: #444851;
}
.app-shell .metric-label,
.app-shell .metric-meta,
.app-shell .server-card-copy small,
.app-shell .server-facts span,
.app-shell .access-metric-top span,
.app-shell .access-metric-top i,
.app-shell .access-metric small,
.app-shell .access-card-service > div:first-child span,
.app-shell .access-card-account-copy span,
.app-shell .access-stat-grid span,
.app-shell .access-library-row > span,
.app-shell .access-detail-panel dt,
.app-shell .client-crm-title > span,
.app-shell .client-crm-contact span,
.app-shell .client-crm-stats span,
.app-shell .client-active-label,
.app-shell .client-crm-footer > span,
.app-shell .plan-admin-card-clean .plan-description,
.app-shell .plan-admin-price.plan-admin-price-clean small,
.app-shell .plan-admin-price-clean span,
.app-shell .plan-admin-quickfacts span,
.app-shell .plan-price-grid label > small,
.app-shell .staff-wallet-stats span,
.app-shell .staff-activity-stats span,
.app-shell .staff-card-head small,
.app-shell .staff-admin-note,
.app-shell .wallet-metric-top span,
.app-shell .wallet-metric-top i,
.app-shell .wallet-metric small,
.app-shell .wallet-transaction-copy span,
.app-shell .wallet-transaction-copy small,
.app-shell .settings-nav-head p,
.app-shell .settings-panel-head p,
.app-shell .settings-card p,
.app-shell .settings-form-section-head p,
.app-shell .settings-profile-preview p,
.app-shell .settings-note-card p,
.app-shell .settings-push-metric > span,
.app-shell .settings-push-metric > small,
.app-shell .settings-section-button small,
.app-shell .timeline-item small,
.app-shell .access-sale-summary dt,
.app-shell .empty p,
.app-shell .empty small {
  color: var(--muted);
}
.app-shell .plan-admin-card-clean.inactive { opacity: 1; border-style: dashed; }
.app-shell .plan-admin-price.plan-admin-price-clean small { font-size: 12px; }
.app-shell .plan-admin-card-clean .plan-description { color: var(--muted); }
.app-shell .plan-admin-price.plan-admin-price-clean .plan-reseller-price strong { color: #8deab0; }
.app-shell .admin-side-nav a { color: var(--muted); }
.app-shell .admin-side-nav a.active,
.app-shell .admin-side-nav a:hover,
.app-shell .settings-section-button.active {
  background: #36302c;
  color: #ffd3b8;
  border-color: #ff5f00;
}
.app-shell .admin-topbar .admin-new-access,
.app-shell .plans-compact-actions .admin-action-icon,
.app-shell .access-filter.active,
.app-shell .client-filter.active,
.app-shell .button.primary,
.app-shell .account-filter.active {
  background: var(--monkey-orange);
  border-color: var(--monkey-orange);
  color: var(--monkey-matte);
  box-shadow: none;
}
.app-shell .access-filter:not(.active),
.app-shell .client-filter:not(.active) {
  background: var(--panel-2);
  color: var(--text);
  border-color: #50545d;
}
.app-shell .access-search input::placeholder,
.app-shell .clients-search input::placeholder,
.app-shell input::placeholder,
.app-shell textarea::placeholder { color: #b9bec7; opacity: 1; }
.app-shell :where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=file]), select, textarea) {
  color: var(--text);
  background-color: var(--panel-2);
  border-color: #50545d;
}
.app-shell :where(input[type=checkbox], input[type=radio], input[type=range]) { accent-color: var(--monkey-orange); }
.app-shell :where(dialog) { color: var(--text); }
.app-shell :where(dialog)::backdrop { background: rgba(0,0,0,.65); }
.app-shell :where(.modern-table, table) { color: var(--text); }
.app-shell :where(.modern-table, table) thead th { background-color: var(--panel-2); color: var(--text); }
.app-shell :where(.form-grid, .settings-form-grid) label { color: var(--muted); }
.app-shell :where(.form-grid, .settings-form-grid) label > small { color: var(--muted); }
.app-shell .access-metric.active strong { color: #a8ecc0; }
.app-shell .access-metric.expired strong { color: #ffaaa7; }

/* Public site: official palette; preserve Plex artwork and responsive layout. */
body.public-shell, .public-shell .public-site { background: var(--monkey-storm); color: var(--text); }
.public-shell .public-nav,
.public-shell .public-footer,
.public-shell .public-nav-pill,
.public-shell .mobile-public-nav,
.public-shell .public-empty,
.public-shell .public-cta,
.public-shell .plex-home-plan-card,
.public-shell .plex-home-plan-card.is-featured,
.public-shell .plex-home-steps article,
.public-shell .plex-home-faq details,
.public-shell .plex-home-help,
.public-shell .plex-home-empty,
.public-shell .catalog-tools,
.public-shell .catalog-card-copy,
.public-shell .public-collection-caption,
.public-shell .reseller-hero-card,
.public-shell .reseller-price-card,
.public-shell .reseller-info-grid article,
.public-shell .reseller-steps > div,
.public-shell .reseller-note,
.public-shell .reseller-final,
.public-shell .reseller-empty,
.public-shell .reseller-demo-grid > div,
.public-shell .reseller-faq details,
.public-shell .collection-browser-dialog,
.public-shell .collection-browser-modal,
.public-shell .public-title-dialog,
.public-shell .stream-detail-shell,
.public-shell .cartelera-detail,
.public-shell .plans-catalog-card,
.public-shell .plan-sales-card,
.public-shell .plans-sales-value,
.public-shell .plans-sales-empty,
.public-shell .help-v2-login-card,
.public-shell .help-v2-copy-card,
.public-shell .help-v2-path,
.public-shell .help-v2-quality-card,
.public-shell .help-v2-faq details,
.public-shell .help-v2-final,
.public-shell .help-credentials-preview,
.public-shell .help-v2-support-strip {
  background: var(--monkey-matte);
  border-color: #454952;
  color: var(--text);
}
.public-shell .public-stats .public-stat-link,
.public-shell .public-stats div,
.public-shell .plex-home-plan-libraries > span,
.public-shell .reseller-price-main,
.public-shell .reseller-screens,
.public-shell .reseller-flow-step > b,
.public-shell .reseller-info-icon,
.public-shell .filter-button,
.public-shell .poster-placeholder,
.public-shell .collection-placeholder,
.public-shell .public-collection-badge,
.public-shell .collection-modal-count,
.public-shell .collection-detail-count,
.public-shell .public-title-availability {
  background: var(--panel-2);
  border-color: #50545d;
  color: var(--text);
}
.public-shell .public-hero p,
.public-shell .public-section-head p,
.public-shell .public-stat-link span,
.public-shell .public-stats span,
.public-shell .plex-home-section-head p,
.public-shell .plex-home-plan-period,
.public-shell .plex-home-plan-specs,
.public-shell .plex-home-plan-libraries,
.public-shell .plex-home-plan-libraries small,
.public-shell .plex-home-steps p,
.public-shell .plex-home-help p,
.public-shell .plex-home-faq details p,
.public-shell .public-cta p,
.public-shell .public-footer,
.public-shell .catalog-card-copy p,
.public-shell .catalog-card-copy small,
.public-shell .catalog-search-state,
.public-shell .catalog-result-note,
.public-shell .catalog-heading p,
.public-shell .public-collection-caption small,
.public-shell .collection-modal-summary,
.public-shell .collection-detail-summary,
.public-shell .public-title-meta,
.public-shell .public-title-genres,
.public-shell .cartelera-detail p,
.public-shell .reseller-hero-content > p,
.public-shell .reseller-trust,
.public-shell .reseller-flow-step small,
.public-shell .reseller-section-head p,
.public-shell .reseller-plan-duration,
.public-shell .reseller-plan-summary,
.public-shell .reseller-price-main small,
.public-shell .reseller-price-detail span,
.public-shell .reseller-margin span,
.public-shell .reseller-includes,
.public-shell .reseller-fine,
.public-shell .reseller-info-grid p,
.public-shell .reseller-note,
.public-shell .reseller-steps p,
.public-shell .reseller-demo-grid span,
.public-shell .reseller-faq details p,
.public-shell .reseller-final p { color: var(--muted); }
.public-shell .public-hero:not(.has-backdrop) {
  background: linear-gradient(145deg, #30333a, var(--monkey-storm));
}
.public-shell .public-hero.has-backdrop {
  background-image: linear-gradient(90deg, rgba(28,29,32,.94), rgba(28,29,32,.25)), linear-gradient(0deg, #5a606b, transparent 52%), var(--hero-image);
}
.public-shell .public-hero-shade { background: linear-gradient(transparent, var(--monkey-storm)); }
.public-shell .public-hero-vignette { background: linear-gradient(90deg, rgba(28,29,32,.2), transparent 60%); }
.public-shell .public-cta::after { background: none; }
.public-shell .collection-modal-hero:not(.has-image) { background: linear-gradient(145deg, #30333a, var(--monkey-matte)); }
.public-shell .public-nav-pill a,
.public-shell .public-nav-pill a:first-child,
.public-shell .mobile-public-nav a { background: transparent; color: var(--muted); }
.public-shell .public-nav-pill a.active,
.public-shell .mobile-public-nav a.active,
.public-shell .filter-button.active,
.public-shell .button.primary,
.public-shell .plex-home-plan-card .button:not([aria-disabled="true"]) {
  background: var(--monkey-orange); color: var(--monkey-matte); border-color: var(--monkey-orange); box-shadow: none;
}
.public-shell .button.glass, .public-shell .button.ghost:not(.primary), .public-shell .plex-home-text-link {
  background: var(--panel-2); color: var(--text); border-color: #50545d;
}
.public-shell .eyebrow, .public-shell .hero-kicker,
.public-shell .plex-home-plan-overline, .public-shell .plex-home-steps article > span,
.public-shell .plex-home-faq summary::after, .public-shell .reseller-hero-content h1 em,
.public-shell .reseller-flow-step > b, .public-shell .reseller-info-icon, .public-shell .reseller-steps b {
  color: #ff5f00;
}
.public-shell .plex-home-faq summary, .public-shell .plex-home-help strong { color: var(--text); }
.public-shell .plex-home-featured { color: #ff5f00; border-color: #ff5f00; }
.public-shell .plex-home-plan-card.is-featured { border-color: var(--monkey-orange); }
.public-shell .reseller-margin strong, .public-shell .reseller-demo-grid b { color: #78edb0; }
.public-shell .reseller-steps > div { border-top-color: var(--monkey-orange); }
.public-shell .catalog-tools input { background: var(--panel-2); color: var(--text); border-color: #50545d; }
.public-shell .catalog-tools input::placeholder { color: var(--muted); }
.public-shell .catalog-grid .catalog-card-open:hover .poster-image,
.public-shell .collections-main .collection-grid-card:hover .public-collection-poster-wall,
.public-shell .cartelera-poster:hover { border-color: var(--monkey-orange); }
.public-shell .cartelera-poster { background: var(--monkey-matte); }
.public-shell .public-stats .public-stat-link:hover { background: var(--panel-3); border-color: var(--monkey-orange); }

/* Conversion Catalog — approved option 2. Original portrait 2:3 with overlaid metadata on home. */
body.public-shell .conversion-home .public-hero { min-height: clamp(380px,54vh,580px); padding-bottom: 36px; }
.public-shell .conversion-home .public-hero-shade { background: linear-gradient(transparent,#1c1d20); }
.public-shell .conversion-home .home-stat-band { background: var(--monkey-matte); padding: 16px clamp(22px,5vw,72px); }
body.public-shell .conversion-home .home-stat-band .public-stats { position: static; inset: auto; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 0; width: 100%; }
.public-shell .home-stat-band .public-stats > * { min-width: 0; text-align: center; background: var(--panel-2); }
.public-shell .conversion-home .home-discovery { padding-top: 28px; padding-bottom: 12px; }
.public-shell .home-discovery-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.public-shell .home-discovery-head h2 { margin: 5px 0 0; font-size: clamp(24px,3vw,40px); }
.public-shell .home-catalog-search { display: flex; align-items: center; gap: 8px; flex: 1 1 320px; max-width: 540px; }
.public-shell .home-search-label { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.public-shell .home-catalog-search input { min-width: 0; flex: 1; color: #fff; background: var(--monkey-matte); border-color: #747985; }
.public-shell .home-catalog-search input::placeholder { color: var(--muted); }
.public-shell .home-discovery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.public-shell .home-discovery-filters .button { border-radius: 999px; }
.public-shell .conversion-home .cartelera-posters { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: clamp(145px,12.5vw,215px); gap: 13px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.public-shell .conversion-home .cartelera-poster { position: relative; aspect-ratio: 2/3; display: block; overflow: hidden; scroll-snap-align: start; background: var(--monkey-matte); }
.public-shell .conversion-home .cartelera-poster img, .public-shell .conversion-home .cartelera-poster > .poster-placeholder { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; background: var(--monkey-matte); }
.public-shell .conversion-home .cartelera-poster-label { position: absolute; inset: auto 0 0; padding: 32px 12px 12px; background: linear-gradient(transparent,rgba(0,0,0,.94)); color: #fff; }
.public-shell .conversion-home .media-card-poster { position: relative; aspect-ratio: 2/3; display: block; overflow: hidden; background: var(--monkey-matte); }
.public-shell .conversion-home .media-card-poster > img, .public-shell .conversion-home .media-card-poster > .poster-placeholder { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; background: var(--monkey-matte); }
.public-shell .conversion-home .media-card:hover .media-card-poster img { transform: none; filter: none; }
.public-shell .conversion-home .media-card-gradient { display: block; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent,rgba(0,0,0,.35) 28%,rgba(0,0,0,.96) 100%); pointer-events: none; }
.public-shell .conversion-home .media-card-info { position: absolute; inset: auto 12px 12px; padding: 0; min-height: 0; background: transparent; z-index: 2; transform: none; }
.public-shell .conversion-home .media-card-info h3 { color: #fff; }
.public-shell .conversion-home .media-card-info p, .public-shell .conversion-home .media-card-info small { color: var(--muted); }
.public-shell .home-discovery-duo { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 28px clamp(22px,5vw,72px); }
.public-shell .home-discovery-duo > .public-section { min-width: 0; margin: 0; padding: 20px; border-radius: 18px; background: var(--monkey-matte); }
.public-shell .home-discovery-duo > .public-section:only-child { grid-column: 1/-1; }
.public-shell .home-discovery-duo .collection-carousel { grid-auto-columns: minmax(200px,60%); }
.public-shell .home-discovery-duo .media-carousel { grid-auto-columns: clamp(125px,10vw,175px); }
.public-shell .home-benefits-band { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); align-items: center; gap: 18px; padding: 22px; background: var(--monkey-matte); border-radius: 18px; }
.public-shell .home-benefits-band h2 { font-size: 22px; margin: 0; }
.public-shell .home-benefits-band article { border-left: 2px solid var(--monkey-orange); padding-left: 12px; }
.public-shell .home-benefits-band article p { color: var(--muted); margin: 5px 0 0; font-size: 13px; }
.public-shell .conversion-home .plex-home-plan-card { min-height: 340px; }
.public-shell .conversion-home .plex-home-plan-card .button.glass { background: var(--panel-2); color: #fff; border-color: #747985; }
.public-shell .conversion-home .plex-home-plan-card.is-featured, .public-shell .plan-sales-card.is-featured { background: var(--monkey-matte); border: 2px solid var(--monkey-orange); box-shadow: 0 0 0 2px rgba(255,95,0,.12); }
.public-shell .plex-home-featured, .public-shell .plan-sales-ribbon { background: var(--monkey-orange); color: var(--monkey-matte); border-color: var(--monkey-orange); font-weight: 850; }
.public-shell .catalog-card .poster-image, .public-shell .collection-modal-item .poster-image, .public-shell .collection-film-poster { aspect-ratio: 3/4; background: var(--monkey-matte); }
.public-shell .catalog-card .poster-image img, .public-shell .collection-modal-item .poster-image img, .public-shell .collection-film-poster img { width: 100%; height: 100%; object-fit: contain; transform: none; }
.public-shell .catalog-card:hover .poster-image img { transform: none; }
@media (max-width: 900px) {
  .public-shell .home-discovery-duo { grid-template-columns: 1fr; }
  .public-shell .home-benefits-band { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .public-shell .home-benefits-band h2 { grid-column: 1/-1; }
}
@media (max-width: 600px) {
  body.public-shell .conversion-home .public-hero { min-height: 430px; }
  body.public-shell .conversion-home .home-stat-band .public-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .public-shell .conversion-home .cartelera-posters { grid-auto-columns: 42vw; }
  .public-shell .home-discovery-duo { margin-inline: 18px; }
  .public-shell .home-discovery-duo > .public-section { padding: 14px; }
  .public-shell .home-discovery-duo .media-carousel { grid-auto-columns: 38vw; }
  .public-shell .home-catalog-search { max-width: none; }
}

/* Hybrid approved: cinematic full-width shelves (option 1), commercial sections (option 2). */
body.public-shell .hybrid-home .public-hero {
  min-height: clamp(500px,68vh,720px); padding: 100px clamp(22px,5vw,72px) 42px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 28px;
}
.public-shell .hybrid-home .public-hero.has-backdrop {
  background-image: linear-gradient(90deg,rgba(28,29,32,.96),rgba(28,29,32,.66) 38%,rgba(28,29,32,.08) 85%),linear-gradient(0deg,#5a606b,transparent 36%),var(--hero-image);
  background-position: center 25%; background-size: cover;
}
.public-shell .hybrid-home .public-hero-shade { background: linear-gradient(transparent,var(--monkey-storm)); height: 20%; }
.public-shell .hybrid-home .public-hero-content { flex: 1 1 auto; max-width: 680px; transform: none; }
.public-shell .hybrid-home .public-hero h1 { font-size: clamp(44px,5.7vw,88px); line-height: 1.03; }
.public-shell .hybrid-home .public-hero p { max-width: 570px; font-size: clamp(14px,1.15vw,17px); }
body.public-shell .hybrid-home .home-hero-stats {
  position: relative; inset: auto; display: grid; grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 8px; flex: 0 1 420px; width: 100%; margin: 0; align-self: flex-end; z-index: 2;
}
.public-shell .hybrid-home .home-hero-stats > * {
  min-width: 0; background: var(--monkey-matte); border-color: #747985; padding: 13px 10px; text-align: left;
}
.public-shell .hybrid-home .home-hero-stats strong { font-size: clamp(18px,1.65vw,27px); }
.public-shell .hybrid-home .home-hero-stats span { font-size: 10px; letter-spacing: .04em; }
.public-shell .hybrid-home .public-nav { background: var(--monkey-matte); }
.public-shell .hybrid-home .public-nav-pill { background: transparent; box-shadow: none; border-color: transparent; }
.public-shell .hybrid-home :is(.cartelera-showcase,.collection-showcase,.content-shelf) { padding-top: 24px; padding-bottom: 18px; }
.public-shell .hybrid-home .public-section-head { margin-bottom: 16px; }
.public-shell .hybrid-home .public-section-head h2 { font-size: clamp(25px,2.6vw,38px); line-height: 1.15; margin-bottom: 4px; }
.public-shell .hybrid-home .public-section-head > a, .public-shell .hybrid-home .cartelera-collection-link { color: #fff; font-weight: 650; }
.public-shell .hybrid-home .cartelera-posters, .public-shell .hybrid-home .media-carousel {
  grid-auto-columns: clamp(150px,12vw,220px); gap: 14px; scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.public-shell .hybrid-home .cartelera-posters::-webkit-scrollbar, .public-shell .hybrid-home .media-carousel::-webkit-scrollbar { display: none; }
.public-shell .hybrid-home .media-card { scroll-snap-align: start; min-width: 0; }
.public-shell .hybrid-home .media-card-poster, .public-shell .hybrid-home .cartelera-poster { border-radius: 12px; border-color: #747985; box-shadow: 0 5px 16px #1c1d2033; }
.public-shell .hybrid-home .media-card-info { min-height: 0; padding: 0; }
.public-shell .hybrid-home .media-card-info h3 { font-size: 14px; line-height: 1.3; }
.public-shell .hybrid-home .media-card-info p, .public-shell .hybrid-home .media-card-info small { font-size: 12px; }
.public-shell .hybrid-home .collection-carousel { grid-auto-columns: clamp(260px,25vw,440px); gap: 15px; }
.public-shell .hybrid-home .collection-card-media { aspect-ratio: 16/9; background: var(--monkey-matte); border-radius: 14px; }
.public-shell .hybrid-home .collection-card-copy h3 { font-size: clamp(18px,1.65vw,25px); line-height: 1.15; }
.public-shell .hybrid-home .collection-card-copy p { color: #d4d7dd; }
.public-shell .hybrid-home .collection-card-shade { background: linear-gradient(transparent 25%,rgba(28,29,32,.9)); }
.public-shell .hybrid-home :is(.carousel-arrow,.collection-arrow) { opacity: 1; background: var(--monkey-matte); color: #fff; }
.public-shell .hybrid-home :is(.carousel-arrow,.collection-arrow):hover { background: var(--monkey-orange); color: var(--monkey-matte); }
@media (max-width: 1000px) {
  body.public-shell .hybrid-home .public-hero { flex-direction: column; align-items: stretch; justify-content: flex-end; min-height: 540px; }
  body.public-shell .hybrid-home .home-hero-stats { flex: none; align-self: stretch; max-width: 600px; }
}
@media (max-width: 600px) {
  body.public-shell .hybrid-home .public-hero { min-height: 510px; padding: 95px 18px 24px; gap: 20px; }
  body.public-shell .hybrid-home .home-hero-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .public-shell .hybrid-home .cartelera-posters, .public-shell .hybrid-home .media-carousel { grid-auto-columns: 43vw; gap: 10px; }
  .public-shell .hybrid-home .collection-carousel { grid-auto-columns: 78vw; }
  .public-shell .hybrid-home :is(.cartelera-showcase,.collection-showcase,.content-shelf) { padding-top: 18px; padding-bottom: 16px; }
  .public-shell .hybrid-home .public-hero.has-backdrop { background-position: 65% center; }
}

/* Original cinematic poster treatment: neutral overlay, no separate footer. */
.public-shell .hybrid-home .media-card-poster, .public-shell .hybrid-home .cartelera-poster { border-color: #ffffff20; }
.public-shell .hybrid-home .media-card-top { z-index: 2; }
.public-shell .hybrid-home .media-card-info h3 { text-shadow: 0 2px 5px #000; }
.public-shell .hybrid-home .media-card-info p, .public-shell .hybrid-home .media-card-info small { color: #e0e2e6; text-shadow: 0 1px 4px #000; }
.public-shell .hybrid-home .media-card-top span { color: #fff; background: rgba(28,29,32,.82); }

/* Shared public navigation and original cinematic poster style. */
body.public-shell .public-site .public-nav:not(.compact-nav) {
  background: linear-gradient(180deg,rgba(0,0,0,.85),transparent);
  border: 0; box-shadow: none; backdrop-filter: none;
}
body.public-shell .public-site .public-nav.compact-nav { background: rgba(28,29,32,.94); }
body.public-shell .public-site .public-nav .public-nav-pill {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 65%; gap: 4px; padding: 5px;
  border: 1px solid rgba(255,255,255,.15); border-radius: 999px;
  background: rgba(28,29,32,.78); backdrop-filter: blur(14px);
  box-shadow: 0 5px 20px #0002;
}
body.public-shell .public-site .public-nav-pill a { border-radius: 999px; padding: 9px 15px; color: #e0e2e6; white-space: nowrap; }
body.public-shell .public-site .public-nav-pill a.active { background: #ff5f00; color: #1c1d20; font-weight: 800; }
body.public-shell .public-site .public-nav-pill a:not(.active):hover { background: #ffffff14; color: #fff; }
.public-shell .public-user-button { background: #1c1d2080; color: #fff; border-color: #ffffff30; }
.public-shell .mobile-public-nav a.active { background: var(--monkey-orange); color: var(--monkey-matte); }
.public-shell .catalog-grid .catalog-card,
.public-shell .collections-main .collection-grid-card {
  position: relative; aspect-ratio: 2/3; overflow: hidden; border-radius: 14px;
  border: 1px solid #ffffff24; background: var(--monkey-matte); min-width: 0;
  padding: 0; text-align: left;
}
.public-shell .catalog-grid .catalog-card .poster-image,
.public-shell .collections-main .collection-grid-card .public-collection-poster-wall {
  position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto;
  border: 0; border-radius: 0; overflow: hidden; background: var(--monkey-matte);
}
.public-shell .catalog-grid .catalog-card .poster-image img,
.public-shell .collections-main .collection-grid-card .public-collection-poster-wall img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: none; }
.public-shell .catalog-grid .catalog-card:hover .poster-image { transform: none; box-shadow: none; }
.public-shell .catalog-grid .catalog-card::after,
.public-shell .collections-main .collection-grid-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent,rgba(0,0,0,.42) 35%,rgba(0,0,0,.96)); pointer-events: none; z-index: 1; }
.public-shell .catalog-grid .catalog-card .catalog-card-copy,
.public-shell .collections-main .collection-grid-card .public-collection-caption { position: absolute; inset: auto 11px 11px; padding: 0; background: transparent; border: 0; z-index: 2; color: #fff; text-shadow: 0 2px 5px #000; }
.public-shell .catalog-card-copy h3, .public-shell .public-collection-caption strong { color: #fff; font-size: 14px; line-height: 1.3; }
.public-shell .catalog-card-copy p, .public-shell .catalog-card-copy small, .public-shell .public-collection-caption small { color: #e0e2e6; font-size: 12px; }
.public-shell .public-collection-badge { z-index: 2; background: #1c1d20d9; color: #fff; }
.public-shell .catalog-grid .catalog-card:hover, .public-shell .collections-main .collection-grid-card:hover { border-color: var(--monkey-orange); }
.public-shell .catalog-tools { border-radius: 14px; }
.public-shell .reseller-page .reseller-hero-content h1 em { color: var(--monkey-orange); }
.public-shell .reseller-page :is(.reseller-hero-card,.reseller-price-card,.reseller-info-grid article,.reseller-steps > div,.reseller-note,.reseller-final,.reseller-faq details,.reseller-demo-grid > div) { background: var(--monkey-matte); border-color: #ffffff20; }
.public-shell .reseller-page :is(.reseller-screens,.reseller-flow-step > b,.reseller-info-icon,.reseller-price-main) { background: var(--panel-2); border-color: #50545d; }
.public-shell .reseller-page .reseller-steps > div { border-top-color: var(--monkey-orange); }
.public-shell .reseller-page .reseller-faq details { border-radius: 12px; padding: 18px; margin-bottom: 8px; }
@media(max-width: 900px) {
  body.public-shell .public-site .public-nav .public-nav-pill { display: none !important; }
}

/* Shared catalog and collections search toolbar: a single segmented control. */
.public-shell .catalog-page .catalog-heading { max-width: none; }
.public-shell .catalog-page .catalog-tools {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px; background: var(--monkey-matte);
  border: 1px solid #ffffff20; border-radius: 16px;
}
.public-shell .catalog-page .catalog-search-wrap,
.public-shell .catalog-page .catalog-tools > input { flex: 1 1 280px; min-width: 0; }
.public-shell .catalog-page .catalog-tools input {
  min-height: 46px; border: 1px solid #50545d; border-radius: 10px;
  background: var(--panel-2); color: #fff; font-size: 14px;
  box-shadow: none;
}
.public-shell .catalog-page .catalog-filters {
  display: flex; flex: 0 0 auto; align-items: center; gap: 4px;
  padding: 4px; border: 1px solid #50545d; border-radius: 999px;
  background: var(--panel-2);
}
.public-shell .catalog-page .catalog-filters .filter-button {
  min-height: 36px; padding: 8px 20px; border: 0; border-radius: 999px;
  background: transparent; color: #e0e2e6; font: inherit; font-size: 13px;
  font-weight: 650; line-height: 1.2; white-space: nowrap; box-shadow: none;
}
.public-shell .catalog-page .catalog-filters .filter-button:not(.active):hover { background: #ffffff12; color: #fff; }
.public-shell .catalog-page .catalog-filters .filter-button.active { background: #ff5f00; color: #1c1d20; font-weight: 800; }
.public-shell .catalog-page .catalog-filters .filter-button:focus-visible { outline-offset: 3px; }
.public-shell .catalog-page .catalog-result-note { margin-top: 12px; }
@media(max-width: 700px) {
  .public-shell .catalog-page .catalog-tools { flex-direction: column; align-items: stretch; gap: 10px; padding: 10px; }
  .public-shell .catalog-page .catalog-search-wrap,
  .public-shell .catalog-page .catalog-tools > input { flex: 0 1 auto; width: 100%; }
  .public-shell .catalog-page .catalog-filters { width: 100%; }
  .public-shell .catalog-page .catalog-filters .filter-button { flex: 1 1 0; padding-inline: 8px; min-width: 0; }
}

/* Cinematic public detail system — neutral surfaces and original portrait cards. */
.public-shell dialog.cinematic-title-dialog {
  width: min(720px, calc(100vw - 28px)); max-width: calc(100vw - 28px);
  max-height: 92dvh; padding: 0; border: 1px solid #ffffff29;
  border-radius: 22px; overflow-y: auto; background: var(--monkey-matte); color: #fff;
  box-shadow: 0 24px 90px #0009;
}
.public-shell dialog.cinematic-title-dialog::backdrop,
.public-shell .collection-browser-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(7px); }
.public-shell .cinematic-title-dialog .stream-detail-shell { background: var(--monkey-matte); max-height: none; overflow: visible; }
.public-shell .cinematic-title-art { position: relative; height: clamp(190px,33vw,300px); background: #27292e center 30%/cover no-repeat; overflow: hidden; }
.public-shell .cinematic-title-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.public-shell .cinematic-title-art img:not([src]) { visibility: hidden; }
.public-shell .cinematic-title-art::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent,var(--monkey-matte)); pointer-events: none; }
.public-shell .cinematic-close, .public-shell .collection-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 5; width: 42px; height: 42px;
  display: grid; place-items: center; border-radius: 50%; background: #1c1d20e6; border: 1px solid #ffffff38;
  color: #fff; font: 600 24px/1 sans-serif; cursor: pointer;
}
.public-shell .cinematic-close:hover, .public-shell .collection-modal-close:hover { background: var(--monkey-orange); color: var(--monkey-matte); }
.public-shell .cinematic-title-body { padding: 14px 28px 28px; background: var(--monkey-matte); }
.public-shell .cinematic-title-body h2 { font-size: clamp(28px,4vw,42px); line-height: 1.12; margin: 9px 0 15px; letter-spacing: -.035em; color: #fff; }
.public-shell .cinematic-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 17px; }
.public-shell .cinematic-meta > span { background: #30333a; border: 1px solid #50545d; color: #e2e5eb; padding: 6px 10px; border-radius: 999px; font-size: 12px; line-height: 1.4; }
.public-shell .cinematic-meta > span:empty { display: none; }
.public-shell .cinematic-title-body > p { color: #dfe1e5; font-size: 15px; line-height: 1.7; margin: 10px 0 18px; }
.public-shell .cinematic-title-body > p:empty { display: none; }
.public-shell .cinematic-title-cta { border-top: 1px solid #ffffff1c; padding-top: 16px; margin-top: 22px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.public-shell .cinematic-title-cta p { flex: 1 1 180px; margin: 0; color: #c8ccd3; font-size: 13px; background: transparent; }
.public-shell .cinematic-title-cta .button { border-radius: 10px; flex: 0 0 auto; }
.public-shell .collection-browser-dialog .collection-modal-count { display: inline-flex; width: fit-content; background: #1c1d20cc; border: 1px solid #ffffff33; color: #fff; border-radius: 999px; padding: 5px 12px; }
.public-shell .collection-browser-dialog .collection-modal-hero.has-image {
  background-image: linear-gradient(90deg,#1c1d20ef,#1c1d2080 50%,#1c1d2015),linear-gradient(0deg,#1c1d20,transparent 45%),var(--collection-modal-image);
}
.public-shell .collection-browser-dialog .collection-modal-body { background: var(--monkey-matte); }
.public-shell .collection-browser-dialog .collection-modal-items { display: grid; grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: 14px; }
.public-shell #collectionModal .public-collection-film,
.public-shell .collection-browser-dialog .collection-modal-item {
  position: relative; display: block; aspect-ratio: 2/3; min-width: 0; overflow: hidden;
  border: 1px solid #ffffff24; border-radius: 13px; padding: 0; background: var(--monkey-matte);
  color: #fff; text-align: left;
}
.public-shell #collectionModal .public-collection-film .collection-film-poster,
.public-shell .collection-browser-dialog .collection-modal-item .poster-image {
  position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; overflow: hidden;
}
.public-shell #collectionModal .public-collection-film img,
.public-shell .collection-browser-dialog .collection-modal-item .poster-image img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.public-shell .collection-browser-dialog :is(.collection-modal-item,.public-collection-film)::after {
  content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent,#0006 35%,#000f); pointer-events: none; z-index: 1;
}
.public-shell .collection-browser-dialog .cinematic-poster-copy { position: absolute; inset: auto 11px 11px; z-index: 2; display: grid; gap: 4px; min-width: 0; }
.public-shell .collection-browser-dialog .cinematic-poster-copy :is(h4,strong) { display: block; margin: 0; font-size: 13px; line-height: 1.3; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.public-shell .collection-browser-dialog .cinematic-poster-copy :is(p,small) { display: block; margin: 0; color: #e0e2e6; font-size: 12px; }
.public-shell #collectionModal .public-collection-film:hover { border-color: var(--monkey-orange); }
@media(max-width: 600px) {
  .public-shell .cinematic-title-body { padding: 12px 18px 22px; }
  .public-shell .cinematic-title-art { height: 200px; }
  .public-shell .cinematic-title-cta .button { width: 100%; text-align: center; justify-content: center; }
  .public-shell .collection-browser-dialog .collection-modal-items { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
}

/* Larger cinematic posters inside both public collection dialogs. */
.public-shell .collection-browser-dialog { width: min(1180px, calc(100vw - 34px)); }
.public-shell #collectionModal .collection-modal-items,
.public-shell #landingCollectionModal .collection-modal-items {
  grid-template-columns: repeat(5,minmax(0,1fr)); gap: 18px;
  align-items: start;
}
.public-shell .collection-browser-dialog .cinematic-poster-copy { inset: auto 12px 13px; gap: 5px; }
.public-shell .collection-browser-dialog .cinematic-poster-copy :is(h4,strong) {
  font-size: 15px; line-height: 1.3; white-space: normal;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.public-shell .collection-browser-dialog .cinematic-poster-copy :is(p,small) { font-size: 13px; }
@media(max-width: 1000px) {
  .public-shell #collectionModal .collection-modal-items,
  .public-shell #landingCollectionModal .collection-modal-items { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
}
@media(max-width: 760px) {
  .public-shell #collectionModal .collection-modal-items,
  .public-shell #landingCollectionModal .collection-modal-items { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
}
@media(max-width: 540px) {
  .public-shell #collectionModal .collection-modal-items,
  .public-shell #landingCollectionModal .collection-modal-items { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .public-shell .collection-browser-dialog .cinematic-poster-copy { inset: auto 9px 10px; }
  .public-shell .collection-browser-dialog .cinematic-poster-copy :is(h4,strong) { font-size: 13px; }
}

/* Approved subscription workspace. Scoped to /plans only. */
.app-shell .plans-workspace { container-type: inline-size; }
.app-shell .plans-workspace-head { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:24px; flex-wrap:wrap; }
.app-shell .plans-workspace-head h1 { font-size:clamp(26px,3vw,36px); margin:6px 0; color:#fff; letter-spacing:-.035em; }
.app-shell .plans-workspace-head p { margin:0; color:#e1e4e9; }
.app-shell .plans-workspace-head .button { min-height:44px; padding-inline:20px; background:var(--monkey-orange); color:var(--monkey-matte); }
.app-shell .plans-overview { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:24px; }
.app-shell .plans-overview-card { display:grid; grid-template-columns:44px 1fr; grid-template-rows:auto auto; gap:3px 13px; padding:18px; align-items:center; background:var(--monkey-matte); border:1px solid #454952; border-radius:14px; color:#d4d7dd; }
.app-shell .plans-metric-icon { display:grid; place-items:center; width:44px; height:44px; border-radius:12px; background:#30333a; color:var(--monkey-orange); }
.app-shell .plans-metric-icon svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.app-shell .plans-overview-card .plans-metric-icon { grid-row:1/3; }
.app-shell .plans-overview-card strong { color:#fff; font-size:28px; line-height:1; }
.app-shell .plans-overview-card > span:last-child { font-size:13px; }
.app-shell .plans-workspace .plan-admin-grid-clean { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.app-shell .plans-workspace .plan-admin-card-clean { display:flex; flex-direction:column; gap:16px; padding:20px; min-width:0; border:1px solid #454952; border-radius:18px; background:var(--monkey-matte); }
.app-shell .plans-workspace .plan-admin-card-clean.plan-popular { border:2px solid var(--monkey-orange); padding:19px; }
.app-shell .plans-card-title { display:flex; flex-wrap:wrap; align-items:center; gap:8px; min-height:48px; }
.app-shell .plans-card-title h3 { color:#fff; font-size:22px; margin:0; letter-spacing:-.025em; overflow-wrap:anywhere; }
.app-shell .plans-popular-label { background:var(--monkey-orange); color:var(--monkey-matte); border-radius:999px; padding:4px 8px; font-size:10px; font-weight:800; }
.app-shell .plans-customer-price { display:grid; gap:7px; }
.app-shell .plans-customer-price small,.app-shell .plans-commercial-values small { color:#cbd0d8; font-size:12px; line-height:1.35; }
.app-shell .plans-customer-price strong { font-size:clamp(22px,2.1vw,34px); color:#fff; line-height:1.15; overflow-wrap:anywhere; }
.app-shell .plans-commercial-values { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; border-top:1px solid #ffffff15; padding-top:16px; }
.app-shell .plans-commercial-values > div { display:grid; gap:6px; min-width:0; }
.app-shell .plans-commercial-values strong { font-size:clamp(14px,1.2vw,19px); color:#fff; overflow-wrap:anywhere; }
.app-shell .plans-commercial-values .margin-positive { color:#8deab0; }
.app-shell .plans-commercial-values .margin-negative { color:#ffaaa7; }
.app-shell .plans-facts { display:flex; flex-wrap:wrap; gap:7px; padding:12px; background:#27292e; border:1px solid #444851; border-radius:10px; }
.app-shell .plans-facts span { font-size:12px; color:#e1e4e9; }
.app-shell .plans-facts span+span { border-left:1px solid #50545d; padding-left:7px; }
.app-shell .plans-workspace .plan-admin-tags-clean { margin:0 0 4px; }
.app-shell .plans-workspace .plan-card-toolbar { justify-content:stretch; }
.app-shell .plans-workspace .plan-card-toolbar .plan-icon-button { background:#27292e; border-color:#50545d; box-shadow:none; color:#e1e4e9; }
.app-shell .plans-workspace .plan-card-toolbar .plans-edit-button { display:flex; flex:1; align-items:center; justify-content:center; gap:7px; width:auto; font-size:12px; font-weight:700; }
.app-shell .plans-workspace .plan-card-toolbar .is-active { color:#8deab0; }
.app-shell .plans-workspace .plan-card-toolbar .is-muted { color:#ff9d66; }
.app-shell .plans-workspace .plan-card-toolbar .danger { color:#ff9999; }
.app-shell .plans-workspace .plan-card-toolbar .plan-icon-button:hover { border-color:var(--monkey-orange); }
@container (max-width:1190px) { .app-shell .plans-workspace .plan-admin-grid-clean { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@container (max-width:620px) { .app-shell .plans-workspace .plan-admin-grid-clean { grid-template-columns:1fr; } .app-shell .plans-overview { grid-template-columns:1fr; gap:8px; } .app-shell .plans-overview-card { padding:12px; } }

/* Inventory workspace — approved account cards. */
.app-shell .inventory-workspace-head { margin-bottom:22px; }
.app-shell .inventory-workspace-head h1 { margin:5px 0; font-size:clamp(26px,3vw,36px); color:#fff; }
.app-shell .inventory-workspace-head p { color:#e0e2e6; margin:0; }
.app-shell .service-account-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr)); gap:16px; align-items:start; }
.app-shell .service-account-card { position:relative; display:flex; flex-direction:column; gap:15px; padding:18px; border:1px solid #454952; border-radius:18px; background:#1c1d20; min-width:0; }
.app-shell .service-account-card .service-account-head { padding-right:34px; }
.app-shell .service-account-identity { min-width:0; }
.app-shell .service-account-identity h3 { overflow-wrap:anywhere; white-space:normal; font-size:16px; color:#fff; }
.app-shell .service-account-identity p { color:#bfc4cd; }
.app-shell .service-account-card .account-avatar-fallback { background:#30333a; color:#ff5f00; }
.app-shell .account-plex-corner { position:absolute; top:14px; right:14px; display:grid; place-items:center; width:30px; height:30px; border:1px solid #50545d; border-radius:50%; color:#bfc4cd; }
.app-shell .account-plex-corner svg { width:16px; height:16px; }
.app-shell .account-plex-corner.ready { color:#8deab0; border-color:#347d55; }
.app-shell .account-plex-corner.pending { color:#ff9d66; }
.app-shell .inventory-progress { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.app-shell .inventory-progress span { padding:8px 4px; border-radius:8px; font-size:11px; text-align:center; background:#27292e; color:#bfc4cd; border:1px solid #444851; }
.app-shell .inventory-progress .done { color:#8deab0; border-color:#347d55; }
.app-shell .inventory-progress .current { color:#ffad80; border-color:#ff5f00; }
.app-shell .inventory-credentials { display:grid; gap:8px; }
.app-shell .inventory-credential { display:flex; align-items:center; gap:6px; padding:10px; background:#27292e; border:1px solid #444851; border-radius:10px; }
.app-shell .inventory-credential > div { flex:1; min-width:0; display:grid; gap:4px; }
.app-shell .inventory-credential span { color:#bfc4cd; font-size:11px; }
.app-shell .inventory-credential strong { color:#fff; font-size:13px; overflow-wrap:anywhere; }
.app-shell .inventory-copy,.app-shell .inventory-credential .account-password-eye { display:grid; place-items:center; width:32px; height:32px; flex:0 0 32px; background:#30333a; color:#e0e2e6; border:1px solid #50545d; border-radius:8px; cursor:pointer; padding:0; }
.app-shell .inventory-copy svg,.app-shell .inventory-credential .account-password-eye svg,.app-shell .inventory-copy-all svg,.app-shell .inventory-invite-button svg { width:17px; height:17px; }
.app-shell .inventory-copy-all { display:flex; justify-content:center; align-items:center; gap:7px; padding:9px; border:1px solid #50545d; border-radius:9px; background:transparent; color:#e0e2e6; cursor:pointer; font-size:12px; }
.app-shell .inventory-copy:hover,.app-shell .inventory-copy-all:hover,.app-shell .inventory-credential .account-password-eye:hover { border-color:#ff5f00; color:#fff; }
.app-shell .inventory-state { display:grid; gap:5px; padding:11px; border-left:3px solid #ff5f00; background:#27292e; border-radius:8px; }
.app-shell .inventory-state strong { color:#fff; font-size:13px; }
.app-shell .inventory-state small { color:#cbd0d8; font-size:12px; line-height:1.45; }
.app-shell .inventory-state.is-ready { border-left-color:#8deab0; }
.app-shell .service-account-card .service-account-footer { margin:0; padding:0; border:0; }
.app-shell .service-account-card .service-account-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.app-shell .service-account-card .account-verify-form { margin:0; min-width:0; }
.app-shell .service-account-card .inventory-account-action { display:flex; align-items:center; justify-content:center; gap:6px; width:100%; height:38px; background:#27292e; color:#fff; border:1px solid #50545d; border-radius:9px; font-size:12px; }
.app-shell .service-account-card .inventory-account-action:hover { border-color:#ff5f00; }
.app-shell .service-account-card .account-manual-invitation { margin:0; padding:0; border:0; }
.app-shell .inventory-invite-button { display:flex; width:100%; align-items:center; justify-content:center; gap:8px; background:#ff5f00; color:#1c1d20; border-color:#ff5f00; }
.app-shell .plex-auto-test-dialog .plex-auto-test-submit,.app-shell .accounts-toolbar .plex-auto-test-button { background:#ff5f00; color:#1c1d20; border-color:#ff5f00; }

/* Inventory: wider cards and the approved hierarchy, without affecting other modules. */
.app-shell #serviceAccountGrid { grid-template-columns:repeat(auto-fill,minmax(min(100%,510px),1fr)); gap:22px; }
.app-shell #serviceAccountGrid .service-account-card { width:100%; max-width:none; box-sizing:border-box; padding:26px; gap:20px; border-radius:20px; border:1px solid #454952; box-shadow:none; }
.app-shell #serviceAccountGrid .service-account-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0; min-width:0; }
.app-shell #serviceAccountGrid .service-account-identity { display:flex; align-items:center; gap:14px; flex:1; }
.app-shell #serviceAccountGrid .service-account-identity > div { min-width:0; }
.app-shell #serviceAccountGrid .service-account-avatar { width:46px; height:46px; flex:0 0 46px; border-radius:12px; }
.app-shell #serviceAccountGrid .service-account-avatar[hidden] { display:none; }
.app-shell #serviceAccountGrid .service-account-identity h3 { font-size:18px; line-height:1.3; margin:0 0 4px; }
.app-shell #serviceAccountGrid .service-account-identity p { font-size:13px; margin:0; }
.app-shell #serviceAccountGrid .inventory-head-status { flex:0 0 auto; font-size:11px; padding:6px 10px; border-radius:999px; }
.app-shell #serviceAccountGrid .account-plex-corner { display:none; }
.app-shell #serviceAccountGrid .inventory-progress { border-top:1px solid #ffffff18; padding-top:18px; gap:10px; }
.app-shell #serviceAccountGrid .inventory-progress span { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; min-height:70px; padding:10px 5px; font-size:12px; line-height:1.25; }
.app-shell #serviceAccountGrid .inventory-progress i { display:grid; place-items:center; width:23px; height:23px; border:1px solid currentColor; border-radius:50%; font-style:normal; font-size:13px; }
.app-shell #serviceAccountGrid .inventory-credentials { gap:10px; }
.app-shell #serviceAccountGrid .inventory-credential { padding:14px; min-height:68px; gap:8px; border-radius:12px; }
.app-shell #serviceAccountGrid .inventory-credential span { font-size:12px; }
.app-shell #serviceAccountGrid .inventory-credential strong { font-size:15px; }
.app-shell #serviceAccountGrid :is(.inventory-copy,.account-password-eye) { width:38px; height:38px; flex-basis:38px; }
.app-shell #serviceAccountGrid .inventory-copy-all { min-height:42px; font-size:13px; border-radius:10px; }
.app-shell #serviceAccountGrid .inventory-state { padding:15px; border-radius:10px; }
.app-shell #serviceAccountGrid .inventory-state strong { font-size:15px; }
.app-shell #serviceAccountGrid .inventory-state small { font-size:13px; }
.app-shell #serviceAccountGrid .inventory-account-action { height:44px; font-size:13px; }
.app-shell #serviceAccountGrid .inventory-invite-button { min-height:46px; font-size:14px; }
@media(max-width:600px) {
 .app-shell #serviceAccountGrid { grid-template-columns:minmax(0,1fr); gap:14px; }
 .app-shell #serviceAccountGrid .service-account-card { padding:16px; gap:16px; }
 .app-shell #serviceAccountGrid .service-account-head { flex-wrap:wrap; }
 .app-shell #serviceAccountGrid .service-account-identity h3 { font-size:15px; }
 .app-shell #serviceAccountGrid .inventory-progress span { font-size:11px; }
 .app-shell #serviceAccountGrid .inventory-credential { padding:10px; }
 .app-shell #serviceAccountGrid .inventory-credential strong { font-size:13px; }
}

/* Single-use inventory: contextual actions only. */
.app-shell #serviceAccountGrid .service-account-actions { display:flex; gap:10px; }
.app-shell #serviceAccountGrid .service-account-actions > * { flex:1; }
.app-shell #serviceAccountGrid .inventory-account-action { text-transform:uppercase; color:#ffb58c; border-color:#ff5f00; background:#27292e; font-weight:750; letter-spacing:.025em; }
.app-shell #serviceAccountGrid .inventory-account-action:hover { background:#ff5f00; color:#1c1d20; }

/* Inventory credential editor. */
.app-shell .inventory-edit-dialog { width:min(690px,calc(100vw - 28px)); border-radius:20px; border:1px solid #454952; background:#1c1d20; }
.app-shell .inventory-edit-dialog .plan-edit-modal { padding:0; gap:0; }
.app-shell .inventory-edit-dialog .plan-edit-header { padding:24px 28px; margin:0; border-bottom:1px solid #ffffff18; }
.app-shell .inventory-edit-dialog .plan-edit-header h2 { color:#fff; margin:6px 0 0; font-size:26px; }
.app-shell .inventory-edit-body { display:grid; gap:22px; padding:24px 28px; }
.app-shell .inventory-edit-identity { background:#27292e; border:1px solid #454952; border-radius:14px; padding:16px; display:grid; gap:14px; }
.app-shell .inventory-edit-email,.app-shell .inventory-edit-meta > div { display:grid; gap:6px; min-width:0; }
.app-shell .inventory-edit-identity span { color:#cbd0d8; font-size:11px; letter-spacing:.04em; }
.app-shell .inventory-edit-identity strong { color:#fff; font-size:14px; overflow-wrap:anywhere; }
.app-shell .inventory-edit-email strong { font-size:18px; }
.app-shell .inventory-edit-meta { display:grid; grid-template-columns:1fr 1fr; gap:14px; border-top:1px solid #ffffff18; padding-top:14px; }
.app-shell .inventory-edit-section { display:grid; gap:12px; }
.app-shell .inventory-edit-section h3 { margin:0; color:#fff; font-size:18px; }
.app-shell .inventory-edit-section p,.app-shell .inventory-edit-section small { margin:0; color:#cbd0d8; font-size:13px; line-height:1.5; }
.app-shell .inventory-edit-body label { display:grid; gap:8px; color:#e0e2e6; font-size:13px; }
.app-shell .inventory-edit-body input,.app-shell .inventory-edit-body textarea { background:#27292e; color:#fff; border:1px solid #50545d; border-radius:10px; padding:12px; width:100%; box-sizing:border-box; }
.app-shell .inventory-edit-body input:focus,.app-shell .inventory-edit-body textarea:focus { border-color:#ff5f00; }
.app-shell .inventory-edit-dialog .plan-edit-actions { padding:18px 28px; border-top:1px solid #ffffff18; margin:0; }
@media(max-width:600px){.app-shell .inventory-edit-body,.app-shell .inventory-edit-dialog .plan-edit-header,.app-shell .inventory-edit-dialog .plan-edit-actions{padding:18px;}}

/* Crear acceso: shared three-step wizard, Monkey TV palette. */
#access-create-dialog {
  --wizard-surface: #1c1d20;
  --wizard-panel: #27292e;
  --wizard-raised: #30333a;
  --wizard-border: #50545d;
  --wizard-muted: #cbd0d8;
  --wizard-accent: #ff5f00;
  background: var(--wizard-surface);
  border-color: var(--wizard-border);
  color: #fff;
  color-scheme: dark;
}
#access-create-dialog .access-sale-modal,
#access-create-dialog .access-sale-header,
#access-create-dialog .access-sale-progress-3,
#access-create-dialog .access-sale-actions {
  background: var(--wizard-surface);
  border-color: #41444b;
}
#access-create-dialog :is(.access-sale-heading-icon,.access-create-section-title > span) {
  background: #30333a; color: var(--wizard-accent);
  border-color: var(--wizard-border); box-shadow: none;
}
#access-create-dialog .access-sale-header h2,
#access-create-dialog .access-create-section-title strong,
#access-create-dialog .access-sale-summary h3 { color: #fff; }
#access-create-dialog :is(.access-sale-header .eyebrow,.access-sale-summary .eyebrow,.access-sale-progress-counter strong) { color: var(--wizard-accent); }
#access-create-dialog :is(.access-sale-header p,.access-create-section-title small,.access-sale-step label > small,.access-sale-summary > p,.access-sale-auto-note p,.access-sale-progress-counter span,.access-existing-client-card > div > small) { color: var(--wizard-muted); }
#access-create-dialog .access-sale-progress-track { background: #41444b; }
#access-create-dialog .access-sale-progress-track > span { background: var(--wizard-accent); }
#access-create-dialog .access-sale-progress-steps > span { color: var(--wizard-muted); }
#access-create-dialog .access-sale-progress-steps > span.active { color: var(--wizard-accent); }
#access-create-dialog .access-sale-progress-steps > span.active i {
  background: var(--wizard-accent); border-color: var(--wizard-accent); color: #1c1d20;
}
#access-create-dialog .access-sale-progress-steps > span.complete { color: #8deab0; }
#access-create-dialog .access-sale-progress-steps > span.complete i { color: #8deab0; border-color: #347d55; background: #263a30; }
#access-create-dialog :is(.access-sale-step,.access-sale-client-panel,.access-sale-payment-panel,.access-existing-client-panel,.access-sale-summary,.access-sale-summary.is-demo) {
  background: var(--wizard-panel); border-color: var(--wizard-border); box-shadow: none;
}
#access-create-dialog .access-sale-step::before { background: var(--wizard-accent); }
#access-create-dialog .access-plan-option-card {
  background: var(--wizard-surface); border-color: #454952; box-shadow: none;
}
#access-create-dialog .access-plan-option:hover .access-plan-option-card {
  border-color: var(--wizard-accent); box-shadow: none;
}
#access-create-dialog .access-plan-option > input:checked + .access-plan-option-card {
  background: var(--wizard-raised); border-color: var(--wizard-accent);
  box-shadow: 0 0 0 1px var(--wizard-accent);
}
#access-create-dialog .access-plan-option > input:checked + .access-plan-option-card::after {
  background: var(--wizard-accent); border-color: var(--wizard-accent); color: #1c1d20;
}
#access-create-dialog .access-plan-option > input:focus-visible + .access-plan-option-card { outline: 2px solid #fff; outline-offset: 3px; }
#access-create-dialog :is(.access-plan-option-top strong,.access-plan-option-card > b,.reseller-plan-prices b) { color: #fff; }
#access-create-dialog :is(.access-plan-option-top i,.access-existing-client-owner,.access-existing-client-avatar) {
  color: var(--wizard-muted); border-color: var(--wizard-border); background: var(--wizard-raised);
}
#access-create-dialog .access-plan-option-card > small { color: var(--wizard-muted); }
#access-create-dialog .access-plan-option.is-unavailable .access-plan-option-card { border-color: #41444b; background: #222428; box-shadow: none; transform: none; cursor: not-allowed; }
#access-create-dialog .plan-blocked-reason { color: #ffb58c !important; }
#access-create-dialog .access-sale-summary-icon,
#access-create-dialog .access-sale-summary.is-demo .access-sale-summary-icon {
  color: var(--wizard-accent); border-color: var(--wizard-border); background: var(--wizard-raised); box-shadow: none;
}
#access-create-dialog :is(.access-sale-summary dl > div,.reseller-plan-prices > span,.access-existing-client-card) {
  background: var(--wizard-surface); border-color: #454952;
}
#access-create-dialog :is(.access-sale-summary dt,.reseller-sale-wallet span) { color: var(--wizard-muted); }
#access-create-dialog .reseller-plan-prices small { color: var(--wizard-muted) !important; }
#access-create-dialog .access-sale-summary dd { color: #fff; }
#access-create-dialog .access-sale-auto-note { border-color: #347d55; background: #22332a; }
#access-create-dialog .access-sale-auto-note > span { color: #8deab0; background: #263a30; border-color: #347d55; }
#access-create-dialog .reseller-sale-wallet { background: var(--wizard-panel); border-color: var(--wizard-border); }
#access-create-dialog :is(.access-sale-step label,.access-sale-stage-details label,.access-existing-client-notes) { color: #e0e2e6; }
#access-create-dialog :is(input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),select,textarea,.money-input) {
  background-color: var(--wizard-surface); color: #fff; border-color: var(--wizard-border); box-shadow: none;
}
#access-create-dialog :is(input:not([type="radio"]):not([type="checkbox"]),textarea) { background-image: none; }
#access-create-dialog select { background-image: linear-gradient(45deg,transparent 50%,#cbd0d8 50%),linear-gradient(135deg,#cbd0d8 50%,transparent 50%); background-size: 5px 5px,5px 5px; background-position: calc(100% - 19px) calc(50% - 2px),calc(100% - 14px) calc(50% - 2px); background-repeat:no-repeat; }
#access-create-dialog select option { background: var(--wizard-surface); color: #fff; }
#access-create-dialog :is(input,textarea)::placeholder { color: #aeb4be; }
#access-create-dialog :is(input,select,textarea):focus,
#access-create-dialog .money-input:focus-within { border-color: var(--wizard-accent); box-shadow: 0 0 0 3px #ff5f0020; }
#access-create-dialog input[type="checkbox"]:checked { background-color: var(--wizard-accent); border-color: var(--wizard-accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8 6 11 13 4' fill='none' stroke='%231c1d20' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
#access-create-dialog .access-sale-price-input .access-sale-currency { color: var(--wizard-muted) !important; background: var(--wizard-raised); }
#access-create-dialog .access-sale-actions :is(.access-sale-back,.access-sale-cancel) { background: var(--wizard-panel); border-color: var(--wizard-border); color: #fff; }
#access-create-dialog .access-sale-actions :is(.access-sale-back,.access-sale-cancel):hover { border-color: var(--wizard-accent); }
#access-create-dialog .access-sale-actions .button.primary:is(.access-sale-next,.access-sale-submit) {
  background: var(--wizard-accent); border-color: var(--wizard-accent); color: #1c1d20; box-shadow: none; font-weight: 750;
}
#access-create-dialog .access-sale-actions .button.primary:is(.access-sale-next,.access-sale-submit):hover:not(:disabled) {
  background: #ff7b2e; border-color: #ff7b2e; color: #1c1d20;
}
#access-create-dialog .access-sale-actions .button.primary:is(.access-sale-next,.access-sale-submit):disabled {
  background: var(--wizard-raised); border-color: var(--wizard-border); color: #aeb4be; cursor: not-allowed;
}

/* Approved access management card: one compact commercial overview. */
.access-management-dialog { width:min(1190px,calc(100vw - 32px)); max-width:1190px; max-height:94dvh; overflow:auto; border:1px solid #50545d; border-radius:24px; background:#1c1d20; color:#fff; }
.access-management-dialog::backdrop { background:#08090bd9; backdrop-filter:blur(8px); }
.access-management-dialog .access-modal { padding:26px; background:#1c1d20; gap:18px; }
.access-management-dialog .access-modal-header { align-items:center; gap:18px; padding-bottom:4px; }
.access-management-dialog .access-modal-identity .modal-avatar { width:68px;height:68px;flex-basis:68px;border-radius:16px; }
.access-management-dialog .access-modal-identity-copy { border-left:3px solid #ff5f00;padding-left:18px; }
.access-management-dialog .access-modal-identity-copy h2 { font-size:clamp(22px,2.5vw,32px);color:#fff;margin:0 0 5px; }
.access-management-dialog .access-modal-identity-copy p { font-size:17px;color:#cbd0d8;margin:0; }
.access-management-dialog .access-modal-head-actions { flex-wrap:wrap;gap:9px; }
.access-management-dialog .management-plan { border:1px solid #666c77;background:#30333a;border-radius:999px;padding:7px 13px;font-size:13px;font-weight:750;color:#fff; }
.access-management-dialog .access-modal-head-actions .badge { font-size:12px;padding:7px 12px;text-transform:uppercase; }
.access-management-dialog .management-subscription { display:grid;grid-template-columns:1.65fr 1fr 1fr .85fr; gap:0;align-items:center;margin:16px 0;padding:17px 20px;background:#27292e;border:1px solid #50545d;border-radius:15px; }
.access-management-dialog .management-subscription > div { display:grid;gap:6px;min-width:0;padding:0 16px; }
.access-management-dialog .management-subscription > div:first-child { padding-left:0; }
.access-management-dialog .management-subscription > div+div { border-left:1px solid #50545d; }
.access-management-dialog .management-subscription span,.access-management-dialog .management-subscription small { color:#cbd0d8;font-size:13px; }
.access-management-dialog .management-subscription strong { font-size:17px;color:#fff;overflow-wrap:anywhere; }
.access-management-dialog .management-progress > div:first-child { display:flex;gap:10px;align-items:center;flex-wrap:wrap; }
.access-management-dialog .service-meter.large { height:9px;background:#5a606b;border-radius:999px;overflow:hidden; }
.access-management-dialog .service-meter.large > span { background:#ff5f00;border-radius:999px; }
.access-management-dialog .access-detail-layout-modern { display:grid;grid-template-columns:minmax(0, .88fr) minmax(0,1.3fr);gap:16px;align-items:stretch; }
.access-management-dialog .access-detail-layout-modern .access-detail-panel { display:flex;flex-direction:column;min-width:0;padding:20px;border:1px solid #50545d;border-radius:16px;background:#27292e;box-shadow:none; }
.access-management-dialog .access-panel-heading,.access-management-dialog .access-account-heading { padding-bottom:15px;border-bottom:1px solid #50545d;margin-bottom:8px; }
.access-management-dialog .access-detail-layout-modern h3 { font-size:21px;color:#fff; }
.access-management-dialog :is(.access-info-list,.access-credential-list) > div { min-height:49px;border-color:#41444b;gap:10px; }
.access-management-dialog :is(.access-info-list,.access-credential-list) > div > span { color:#cbd0d8;font-size:12px; }
.access-management-dialog :is(.access-info-list,.access-credential-list) strong { font-size:14px;color:#fff;overflow-wrap:anywhere; }
.access-management-dialog .assigned-password-line { min-width:0;display:flex;align-items:center;gap:8px;justify-content:flex-end; }
.access-management-dialog .credential-eye-button { width:36px;height:36px;flex:0 0 36px;background:#30333a;border:1px solid #606670;border-radius:9px;color:#fff; }
.access-management-dialog .credential-eye-button:hover { border-color:#ff5f00; }
.access-management-dialog .access-client-panel .access-secondary-action { margin-top:auto; }
.access-management-dialog :is(.access-secondary-action,.access-share-button) { min-height:44px;font-size:12px;font-weight:750;border-radius:10px;background:#30333a;color:#fff; border-color:#606670; }
.access-management-dialog :is(.access-secondary-action,.access-share-button.whatsapp) { background:#20362b;color:#a4efbe;border-color:#429765; }
.access-management-dialog .access-share-actions { margin:15px 0 0; }
.access-management-dialog .access-tv-card { margin-top:15px;background:#30333a;border:1px solid #50545d;border-radius:12px;padding:13px; }
.access-management-dialog .access-tv-card-head strong { color:#fff;font-size:13px; }
.access-management-dialog .access-tv-card-head small { color:#cbd0d8;font-size:12px; }
.access-management-dialog .access-tv-link-icon { color:#ff5f00;background:#27292e;border-color:#50545d; }
.access-management-dialog .access-tv-link-controls input { background:#1c1d20;color:#fff;border-color:#606670; }
.access-management-dialog .access-tv-link-controls .button { background:#ff5f00;color:#1c1d20;border-color:#ff5f00;min-height:40px; }
.access-management-dialog .access-detail-layout-modern .management-facts { grid-column:1/-1;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:16px;padding:15px 20px; }
.access-management-dialog .management-facts > div { flex:1 1 130px;display:grid;gap:5px;min-width:0; }
.access-management-dialog .management-facts > div:first-child { flex:1.5 1 220px; }
.access-management-dialog .management-facts > div > span,.access-management-dialog .management-facts small { color:#cbd0d8;font-size:11px; }
.access-management-dialog .management-facts strong { color:#fff;font-size:13px; }
.access-management-dialog .management-libraries { display:flex;flex-wrap:wrap;gap:6px; }
.access-management-dialog .management-libraries .tag { background:#30333a;border-color:#606670;color:#fff; }
.access-management-dialog .access-modal-toolbar-actions { display:flex;justify-content:stretch;gap:10px;margin-top:18px;padding-top:18px;border-color:#50545d;flex-wrap:wrap; }
.access-management-dialog .access-modal-toolbar-actions > * { flex:1 1 auto; }
.access-management-dialog .access-modal-toolbar-actions .account-toolbar-action { width:100%;min-height:48px;justify-content:center;font-size:13px;background:#30333a!important;border-color:#606670!important;color:#fff!important;border-radius:11px; }
.access-management-dialog .access-modal-toolbar-actions .management-renew { background:#ff5f00!important;border-color:#ff5f00!important;color:#1c1d20!important; }
.access-management-dialog .access-modal-toolbar-actions .management-upgrade { border-color:#ff5f00!important;color:#ffb58c!important; }
.access-management-dialog .access-modal-toolbar-actions .access-modal-revoke-button { background:#38282a!important;border-color:#c65e60!important;color:#ffaaaa!important; }
.access-management-dialog .access-modal-toolbar-actions .account-toolbar-action:hover { filter:brightness(1.13); }
@media(max-width:800px) {
 .access-management-dialog .access-modal { padding:16px; }
 .access-management-dialog .access-modal-header { flex-wrap:wrap; }
 .access-management-dialog .access-modal-identity .modal-avatar { width:46px;height:46px;flex-basis:46px; }
 .access-management-dialog .management-subscription { grid-template-columns:1fr 1fr;gap:14px;padding:14px; }
 .access-management-dialog .management-subscription > div { padding:0;border:0!important; }
 .access-management-dialog .access-detail-layout-modern { grid-template-columns:1fr; }
 .access-management-dialog .access-detail-layout-modern .access-detail-panel { padding:15px; }
 .access-management-dialog .access-modal-toolbar-actions > * { flex:1 1 42%; }
 .access-management-dialog .access-modal-head-actions .access-owner-pill { display:inline-flex; }
}
@media(max-width:440px) {
 .access-management-dialog .access-credential-list > div { flex-wrap:wrap; }
 .access-management-dialog .assigned-password-line { flex-wrap:wrap;justify-content:flex-start; }
 .access-management-dialog .access-modal-identity-copy p { font-size:14px; }
}

/* Approved single-row access actions: defeat inherited full-width buttons. */
.access-management-dialog :is(h2,h3,.management-subscription > div > span,.management-progress > div:first-child > span,.management-subscription strong,.management-subscription small,.access-info-list > div > span,.access-credential-list > div > span,.management-facts > div > span,.management-facts small,.access-tv-card-head strong,.access-tv-card-head small,.access-payment-pill,.service-account-kind,.management-plan,.badge,.access-owner-pill,.management-libraries .tag) { text-transform:uppercase; }
.access-management-dialog .access-modal-actions.access-modal-toolbar-actions {
 display:grid; grid-template-columns:repeat(auto-fit,minmax(0,1fr)); gap:10px; align-items:stretch; justify-content:stretch;
}
.access-management-dialog .access-modal-actions.access-modal-toolbar-actions > *,
.access-management-dialog .access-modal-actions.access-modal-toolbar-actions > form:last-child {
 grid-column:auto; width:100%; min-width:0; max-width:none; margin:0;
}
.access-management-dialog .access-modal-actions.access-modal-toolbar-actions .account-toolbar-action {
 display:flex; flex-direction:column; align-items:center; justify-content:center;
 width:100%; min-width:0; max-width:none; min-height:72px; height:100%; box-sizing:border-box;
 padding:10px 5px; gap:9px; text-transform:uppercase; font-size:12px; font-weight:800; line-height:1.2; letter-spacing:.02em;
}
.access-management-dialog .access-modal-actions.access-modal-toolbar-actions .account-toolbar-action svg {
 display:block; width:19px; height:19px; flex:0 0 19px;
}
.access-management-dialog .access-modal-actions.access-modal-toolbar-actions .account-toolbar-action span { white-space:nowrap; }
@media(max-width:760px) {
 .access-management-dialog .access-modal-actions.access-modal-toolbar-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .access-management-dialog .access-modal-actions.access-modal-toolbar-actions .account-toolbar-action { min-height:56px; flex-direction:row; gap:6px; }
}
@media(max-width:360px) {
 .access-management-dialog .access-modal-actions.access-modal-toolbar-actions { grid-template-columns:1fr; }
}
