body.portal-studio {
  --theme-primary: #0966af;
  --theme-secondary: #102b47;
  --theme-tercery: #f6b53a;
  --theme-accent: #f6b53a;
  --theme-text-base: #18344c;
  --theme-button-text: #fff;
  background: #f0f5fa;
  color: #18344c;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
body.portal-studio.portal-login-page { background: #0d243d; }
body.portal-login-page-admin .portal-network-hud { position: absolute; inset: 12px; z-index: 2; pointer-events: none; border: 1px solid #468cb04d; border-radius: 8px; overflow: hidden; }
body.portal-login-page-admin .portal-network-node { position: absolute; font: 10px/1.5 ui-monospace, monospace; letter-spacing: .06em; color: #99c9ea; background: #071c2dcc; padding: 4px 6px; }
body.portal-login-page-admin .portal-network-node.is-identity { top: 8px; left: 8px; }
body.portal-login-page-admin .portal-network-node.is-api { top: 8px; right: 8px; }
body.portal-login-page-admin .portal-network-node.is-data { bottom: 8px; left: 8px; }
body.portal-login-page-admin .portal-network-node.is-ops { bottom: 8px; right: 8px; }
body.portal-login-page-admin .portal-network-sweep { position: absolute; inset: 0; background: linear-gradient(transparent 48%, #63c2ff33 50%, transparent 52%); animation: portal-network-scan 6s ease-in-out infinite; }
@keyframes portal-network-scan { 0%, 100% { transform: translateY(-45%); opacity: 0; } 20%, 80% { opacity: 1; } 50% { transform: translateY(45%); } }
body.portal-login-page-admin:is([data-universe-paused="true"], [data-scenes-suspended="true"]) .portal-network-sweep { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { body.portal-login-page-admin .portal-network-sweep { animation: none; display: none; } }
body.portal-dashboard-page-admin #shared-dashboard .portal-dashboard-shell { display: flex; flex-direction: column; }
body.portal-dashboard-page-admin .portal-dashboard-hero { order: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
body.portal-dashboard-page-admin .portal-dashboard-hero-copy { max-width: 580px; }
body.portal-dashboard-page-admin .portal-dashboard-grid { order: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 12px; }
body.portal-dashboard-page-admin .portal-admin-filters { order: 2; border: 1px solid #cddce8; border-radius: 8px; background: #fff; }
body.portal-dashboard-page-admin .portal-admin-filters summary { padding: 14px 18px; min-height: 48px; cursor: pointer; font-weight: 600; font-size: 14px; }
body.portal-dashboard-page-admin .portal-admin-filters .portal-filter-bar { border: 0; margin: 0; }
body.portal-dashboard-page-admin .portal-workspace-grid-admin { order: 3; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 18px; align-items: start; }
body.portal-dashboard-page-admin .portal-stat-card { display: flex; flex-direction: column; gap: 5px; text-decoration: none; transition: border-color .2s, background .2s; }
body.portal-dashboard-page-admin .portal-stat-card:hover { background: #f5faff; border-color: #0966af; }
body.portal-studio .portal-stat-action { font-size: 12px; color: #0966af; }
body.portal-studio :is(.portal-projects-table, .portal-session-table) th { background: #edf4fa; color: #25445e; font-weight: 600; white-space: nowrap; }
body.portal-studio :is(.portal-projects-table, .portal-session-table) tbody tr:hover { background: #f5faff; }
body.portal-studio :is(.portal-projects-table, .portal-session-table) td { vertical-align: middle; }
@media (max-width: 1100px) {
  body.portal-dashboard-page-admin .portal-workspace-grid-admin { grid-template-columns: minmax(0, 1fr); }
  body.portal-dashboard-page-admin .portal-dashboard-hero { flex-direction: column; align-items: flex-start; }
}
body.portal-studio.portal-login-page .portal-login-stage { --portal-accent: #0966af; --portal-accent-strong: #102b47; }
body.portal-studio :is(h1, h2, h3, h4, .portal-stat-value, .portal-sidebar-link, .portal-login-kicker, .portal-dashboard-kicker) { font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace; letter-spacing: -.025em; }
body.portal-studio h1,
body.portal-studio .portal-app-main h1 { font-size: clamp(28px, 3vw, 36px); line-height: 1.2; }
body.portal-studio h2,
body.portal-studio .portal-app-main h2 { font-size: 24px; line-height: 1.3; }
body.portal-studio h3,
body.portal-studio .portal-app-main h3 { font-size: 18px; line-height: 1.4; }
body.portal-studio h4,
body.portal-studio .portal-app-main h4 { font-size: 16px; }
body.portal-studio p { font-size: 14px; line-height: 1.65; }
body.portal-studio .color-main { color: #0966af !important; }
body.portal-studio .form-control { min-width: 0; min-height: 44px; height: 44px; padding: 9px 12px; border: 1px solid #b9cbda; border-radius: 5px; background: #fff; color: #193a55; font-size: 16px; letter-spacing: 0; text-align: left; text-transform: none; box-shadow: none; }
body.portal-studio .form-control::placeholder { text-align: left; letter-spacing: 0; text-transform: none; font-size: 14px; }
body.portal-studio textarea.form-control { height: auto; min-height: 100px; }
body.portal-studio .portal-field label { font-size: 13px; letter-spacing: 0; text-transform: none; color: #25445e; margin-bottom: 6px; }
body.portal-studio .btn { min-height: 44px; padding: 10px 16px; border-radius: 5px; font-size: 13px; line-height: 1.6; letter-spacing: 0; text-transform: none; white-space: normal; }
body.portal-studio :is(.btn-maincolor, .btn-maincolor2, .btn-maincolor3) { background: #0966af; border-color: #0966af; color: #fff; }
body.portal-studio :is(.btn-outline-maincolor, .btn-outline-maincolor2, .btn-outline-maincolor3) { background: transparent; border-color: #0966af; color: #0966af; }
body.portal-studio :focus-visible { outline: 3px solid #f0ae32; outline-offset: 3px; }
body.portal-studio .portal-app-shell { padding-left: 256px; }
body.portal-studio .portal-app-main { padding: 26px 28px 36px; }
body.portal-studio .portal-sidebar { width: 256px; padding: 22px 16px; background: #102b47; border-right: 1px solid #35526f; z-index: 100; }
body.portal-studio .portal-sidebar-main { gap: 4px; }
body.portal-studio .portal-sidebar-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
body.portal-studio .portal-sidebar-brand p { margin: 0; font-size: 11px; letter-spacing: .06em; }
body.portal-studio .portal-sidebar-brand span { font-size: 12px; color: #a7bfd4; }
body.portal-studio .portal-studio-logo { width: 40px; height: 40px; object-fit: contain; display: block; margin: 0; }
body.portal-studio .portal-sidebar-user { padding: 10px; border-radius: 5px; margin-bottom: 14px; grid-template-columns: 36px minmax(0, 1fr); gap: 8px; }
body.portal-studio .portal-sidebar-user p { font-size: 11px; overflow-wrap: anywhere; }
body.portal-studio .portal-sidebar-avatar { width: 36px; height: 36px; border-radius: 5px; background: #f6b53a; color: #102b47; font-size: 16px; }
body.portal-studio .portal-sidebar-link { min-height: 44px; border-radius: 4px; padding: 10px 12px; font-size: 13px; letter-spacing: 0; color: #dce9f5; }
body.portal-studio .portal-sidebar-link.is-active { background: #215780; color: #fff; box-shadow: inset 3px 0 #f6b53a; }
body.portal-studio .portal-sidebar-section { border-radius: 5px; }
body.portal-studio .portal-sidebar-section summary { font-size: 12px; padding: 10px 12px; }
body.portal-studio .portal-sidebar-bottom { padding-top: 14px; }
body.portal-studio .portal-dashboard-shell { gap: 20px; }
body.portal-studio .portal-dashboard-hero { padding: 24px; border-radius: 8px; background: #102b47; border: 1px solid #3a6387; box-shadow: none; }
body.portal-studio .portal-dashboard-hero::after { width: 100px; height: 100px; border: 1px solid #6889a9; border-radius: 8px; transform: rotate(30deg); background: transparent; right: -25px; bottom: -60px; }
body.portal-studio .portal-dashboard-hero :is(h1, h2, h3) { color: #fff; }
body.portal-studio .portal-dashboard-hero .portal-dashboard-kicker { color: #f6bf54 !important; font-size: 12px; margin-bottom: 8px; }
body.portal-studio .portal-dashboard-hero p { font-size: 14px; color: #ccdceb; }
body.portal-studio .portal-dashboard-hero .btn-outline-maincolor { color: #daeafa; border-color: #84a4c1; }
body.portal-studio :is(.portal-dashboard-panel, .portal-stat-card, .portal-filter-bar, .portal-resource-card, .portal-request-card, .portal-account-card, .portal-empty-state, .portal-admin-column, .portal-client-insight-card) { padding: 20px; border-radius: 8px; border: 1px solid #cddce8; background: #fff; box-shadow: none; }
body.portal-studio :is(.portal-stat-value, .portal-resource-stat-value) { font-size: 28px; }
body.portal-studio .portal-admin-grid { gap: 14px; }
body.portal-studio :is(.portal-admin-column-head h3, .portal-dashboard-panel-head h3, .portal-admin-mini-stat strong) { font-size: 18px; }
body.portal-studio :is(.portal-resource-card-title, .portal-request-title, .portal-client-project-name) { font-size: 17px; }
body.portal-studio .portal-admin-board { gap: 16px; }
body.portal-studio table { font-size: 13px; }
body.portal-studio :is(th, td) { padding: 10px 12px; }
body.portal-studio .table-responsive { overflow-x: auto; }
body.portal-studio .portal-login { padding: 36px 0; }
body.portal-studio .portal-login-shell { max-width: 1060px; margin-inline: auto; }
body.portal-studio .portal-login-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 8px; border: 1px solid #537796; box-shadow: 0 18px 50px #0002; background: #fff; backdrop-filter: none; }
body.portal-studio .portal-login-aside,
body.portal-studio .portal-password-aside { padding: 28px; background: #102b47 !important; }
body.portal-studio .portal-login-aside .color-main { color: #f6bf54 !important; }
body.portal-studio .portal-login-title { font-size: clamp(26px, 3vw, 34px); margin-bottom: 12px; color: #fff; }
body.portal-studio .portal-login-lead { font-size: 14px; color: #ccdeed; }
body.portal-studio .portal-login-metric { padding: 10px 12px; border-radius: 5px; }
body.portal-studio .portal-login-metric-value { font-size: 20px; color: #f6bf54; }
body.portal-studio .portal-login-metric-label { font-size: 11px; }
body.portal-studio .portal-login-point { padding-block: 10px; }
body.portal-studio .portal-login-point p { font-size: 13px; }
body.portal-studio .portal-login-noise,
body.portal-studio .portal-login-orb { display: none; }
body.portal-studio .portal-login-card { padding: 28px; background: #fff; }
body.portal-studio .portal-login-card::before { display: none; }
body.portal-studio .portal-login-card-top h2 { font-size: 24px; line-height: 1.3; }
body.portal-studio .portal-login-trust { margin-block: 14px; }
body.portal-studio .portal-login-actions .btn-outline-maincolor { border-color: #7997b4; color: #e1edf7; }
body.portal-studio .portal-password-shell { border-radius: 8px; overflow: hidden; border: 1px solid #c5d7e5; }
body.portal-studio .portal-password-card { padding: 24px; border-radius: 0; }
body.portal-studio .portal-password-aside h2 { color: #fff; }
body.portal-studio .portal-password-aside p { color: #caddf0; }
body.portal-studio .portal-modal-dialog { width: min(560px, calc(100vw - 24px)); max-height: min(640px, calc(100dvh - 32px)); padding: 22px; margin: 16px auto; border-radius: 8px; background: #fff; }
body.portal-studio .portal-modal-head { padding-right: 34px; margin-bottom: 16px; }
body.portal-studio .portal-modal-head h3 { font-size: 20px; line-height: 1.35; }
body.portal-studio .portal-modal-close { top: 8px; right: 8px; width: 44px !important; height: 44px !important; border-radius: 4px !important; }
body.portal-studio .portal-modal-dialog .portal-field { margin-bottom: 12px; }
body.portal-studio .portal-modal-dialog .portal-access-actions { gap: 8px; }
body.portal-studio [data-portal-reveal] { opacity: 1; transform: none; }
body.portal-studio .portal-studio-scene { margin: 18px 0; max-width: 300px; }
body.portal-studio .portal-studio-scene .studio-scene { border-color: #4b7194; border-radius: 6px; }
body.portal-studio .portal-motion-toggle { border: 1px solid #6485a4; padding: 6px 10px; min-height: 36px; border-radius: 4px; background: transparent; color: #d5e5f2; font-size: 12px; letter-spacing: 0; text-transform: none; }
body.portal-studio .portal-menu-toggle { display: none; }
body.portal-studio .portal-password-control { position: relative; min-width: 0; }
body.portal-studio .portal-password-control input.form-control { padding-right: 52px; }
body.portal-studio .portal-password-control button.portal-password-toggle { position: absolute; right: 0; top: 0; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 0 5px 5px 0; background: transparent; color: #0966af; font-size: 18px; letter-spacing: 0; }
body.portal-studio.portal-login-page .portal-password-control button.portal-password-toggle { background: transparent; border: 0; color: #a9cde9; }
body.portal-studio .portal-security-password-only { overflow: visible; }
body.portal-studio .portal-security-password-only .portal-security-slider-track { display: block; transform: none; }
body.portal-studio.portal-admin-workspace { font-size: 14px; line-height: 1.5; }
body.portal-admin-workspace .portal-app-main { padding: 18px 20px 26px; }
body.portal-admin-workspace .portal-app-main h1,
body.portal-admin-workspace .portal-app-main .portal-dashboard-hero h1 { font-size: 24px; line-height: 1.25; margin-bottom: 8px; }
body.portal-admin-workspace .portal-app-main h2 { font-size: 20px; line-height: 1.3; }
body.portal-admin-workspace .portal-app-main h3,
body.portal-admin-workspace .portal-app-main #shared-timeline h3 { font-size: 16px; line-height: 1.4; margin-bottom: 6px; }
body.portal-admin-workspace .portal-app-main h4 { font-size: 14px; line-height: 1.4; }
body.portal-admin-workspace .portal-app-main p { font-size: 13px; line-height: 1.5; }
body.portal-admin-workspace :is(.portal-dashboard-panel, .portal-stat-card, .portal-filter-bar, .portal-resource-card, .portal-resource-record, .portal-traffic-kpi-card, .portal-traffic-panel, .portal-request-card, .portal-account-card, .portal-empty-state, .portal-admin-column),
body.portal-admin-workspace #shared-timeline { padding: 14px; border-radius: 6px; min-height: 0; }
body.portal-admin-workspace .portal-dashboard-hero { padding: 16px 18px; gap: 14px; border-radius: 6px; }
body.portal-admin-workspace .portal-dashboard-hero::after { display: none; }
body.portal-admin-workspace .portal-dashboard-hero-copy p:last-child { margin-bottom: 0; }
body.portal-admin-workspace .portal-dashboard-shell { gap: 14px; }
body.portal-admin-workspace .portal-dashboard-panel-head { margin-bottom: 12px; }
body.portal-admin-workspace .portal-stat-card { gap: 4px; position: relative; }
body.portal-admin-workspace .portal-stat-action { position: absolute; right: 10px; top: 10px; font-size: 13px; }
body.portal-admin-workspace a.portal-stat-card .portal-stat-label { padding-right: 16px; }
body.portal-admin-workspace .portal-stat-label { min-height: 0; margin: 0; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; line-height: 1.4; }
body.portal-admin-workspace :is(.portal-stat-value, .portal-resource-stat-value) { font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
body.portal-admin-workspace .portal-traffic-kpi-card strong { font-size: 24px; line-height: 1.2; }
body.portal-admin-workspace .portal-traffic-kpi-card p { font-size: 12px; letter-spacing: 0; text-transform: none; }
body.portal-admin-workspace :is(.portal-traffic-kpi-card, .portal-traffic-panel, .portal-resource-record) { box-shadow: none; }
body.portal-admin-workspace :is(.portal-resource-card-grid, .portal-traffic-grid, .portal-resource-meta-grid) { gap: 12px; }
body.portal-admin-workspace .portal-resource-meta-item { padding: 8px 10px; border-radius: 5px; }
body.portal-admin-workspace .portal-resource-meta-item span { letter-spacing: 0; text-transform: none; }
body.portal-admin-workspace .portal-resource-summary { margin-bottom: 10px; }
body.portal-admin-workspace .portal-resource-actions { margin-top: 10px; gap: 6px; }
body.portal-admin-workspace .portal-dashboard-grid { gap: 10px; }
body.portal-admin-workspace :is(.btn, .portal-pagination-link, .portal-sidebar-link) { min-height: 36px; padding: 7px 10px; font-size: 13px; line-height: 1.5; letter-spacing: 0; }
body.portal-admin-workspace .portal-app-main .btn { border-width: 1px; }
body.portal-admin-workspace .form-control { min-height: 36px; height: 36px; padding: 7px 10px; font-size: 14px; }
body.portal-admin-workspace textarea.form-control { height: auto; min-height: 90px; }
body.portal-admin-workspace .portal-password-control input.form-control { min-height: 44px; height: 44px; font-size: 16px; padding-right: 52px; }
body.portal-admin-workspace .portal-filter-controls { gap: 10px; }
body.portal-admin-workspace .portal-filter-group label { margin-bottom: 4px; font-size: 12px; letter-spacing: 0; text-transform: none; }
body.portal-admin-workspace .portal-admin-filters summary { padding: 10px 14px; min-height: 40px; font-size: 13px; }
body.portal-admin-workspace .portal-workspace-grid-admin { grid-template-columns: minmax(0, 1fr); gap: 14px; }
body.portal-admin-workspace :is(.portal-workspace-main, .portal-workspace-side, .portal-dashboard-panel, .portal-resource-page-panel) { min-width: 0; }
body.portal-admin-workspace .portal-workspace-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
body.portal-admin-workspace :is(.portal-status-grid, .portal-next-actions, .portal-timeline-list, .portal-account-list) { gap: 8px; }
body.portal-admin-workspace .portal-status-card { padding: 10px 12px; border-radius: 5px; gap: 4px; }
body.portal-admin-workspace .portal-status-card span { font-size: 12px; letter-spacing: 0; text-transform: none; }
body.portal-admin-workspace .portal-status-card strong { font-size: 22px; }
body.portal-admin-workspace :is(.portal-account-item, .portal-next-action, .portal-timeline-item) { padding: 10px; border-radius: 5px; }
body.portal-admin-workspace .portal-account-item { gap: 10px; }
body.portal-admin-workspace .portal-account-item :is(span, strong) { font-size: 13px; letter-spacing: 0; text-transform: none; overflow-wrap: anywhere; }
body.portal-admin-workspace .portal-request-status { padding: 4px 8px; font-size: 12px; letter-spacing: 0; text-transform: none; white-space: nowrap; }
body.portal-admin-workspace .portal-results-meta { font-size: 12px; }
body.portal-admin-workspace .portal-pagination-wrap { margin-top: 12px; gap: 10px; }
body.portal-admin-workspace .table-responsive { max-width: 100%; }
body.portal-admin-workspace .portal-app-main table { font-size: 13px; line-height: 1.45; }
body.portal-admin-workspace .portal-app-main table :is(th, td) { padding: 8px 10px; vertical-align: middle; }
body.portal-admin-workspace .portal-app-main table thead th { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; }
body.portal-admin-workspace .portal-app-main table td { max-width: 280px; overflow-wrap: anywhere; }
body.portal-admin-workspace .portal-admin-request-table { min-width: 800px; margin-bottom: 0; }
body.portal-admin-workspace .portal-admin-request-table th.portal-admin-request-subject { background: transparent; font-weight: 400; white-space: normal; min-width: 210px; max-width: 300px; }
body.portal-admin-workspace .portal-admin-request-subject a { display: block; font: 12px/1.5 ui-monospace, monospace; margin-bottom: 3px; }
body.portal-admin-workspace .portal-admin-request-subject span { display: block; font-size: 13px; overflow-wrap: anywhere; }
body.portal-admin-workspace .portal-table-actions { flex-wrap: nowrap; gap: 6px; }
body.portal-admin-workspace .portal-table-actions .btn { min-width: 36px; width: auto; min-height: 36px; height: auto; padding: 7px 9px; font-size: 13px; white-space: nowrap; }
@media (min-width: 1200px) {
  body.portal-admin-workspace .portal-sidebar { width: 220px; padding: 16px 12px; }
  body.portal-admin-workspace .portal-app-shell { padding-left: 220px; }
}
@media (max-width: 767px) {
  body.portal-admin-workspace .portal-app-main { padding: 14px 10px 24px; }
  body.portal-admin-workspace .portal-sidebar { padding: 12px; }
  body.portal-admin-workspace .portal-app-main :is(.portal-dashboard-panel, .portal-stat-card, .portal-resource-card) { padding: 12px; }
  body.portal-admin-workspace .portal-workspace-side { grid-template-columns: minmax(0, 1fr); }
  body.portal-admin-workspace .portal-app-main .form-control { min-height: 44px; height: 44px; font-size: 16px; }
  body.portal-admin-workspace .portal-app-main textarea.form-control { height: auto; }
  body.portal-admin-workspace :is(.btn, .portal-table-actions .btn, .portal-pagination-link, .portal-sidebar-link) { min-height: 44px; }
  body.portal-admin-workspace .portal-app-main .portal-table-actions .btn { min-height: 44px; }
}
body.portal-studio .btn:not(:disabled):hover,
body.portal-studio .btn:not(:disabled):focus-visible { background-color: #174d78; border-color: #174d78; color: #fff; }
body.portal-studio #toTop { background: #0966af; border: 1px solid #527798; border-radius: 5px; color: #fff; }
body.portal-studio #toTopHover { background: #102b47; }
body.portal-studio .portal-security-nav-btn { color: #174d78; border-color: #9ebcd3; }
body.portal-studio .portal-security-nav-btn.is-active { background: #0966af; color: #fff; }
body.portal-studio [hidden] { display: none !important; }
@media (max-width: 1199px) {
  body.portal-studio .portal-app-shell { padding-left: 0; }
  body.portal-studio .portal-sidebar { position: relative; width: auto; overflow: visible; }
  body.portal-studio .portal-sidebar-brand { display: flex; align-items: center; gap: 12px; margin: 0; }
  body.portal-studio .portal-sidebar-brand .portal-sidebar-kicker { display: none; }
  body.portal-studio .portal-studio-logo { width: 44px; height: 44px; margin: 0; }
  body.portal-studio .portal-menu-toggle { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #577898; border-radius: 4px; padding: 10px 14px; min-height: 44px; margin-top: 10px; background: #173c60; color: #fff; font-size: 13px; letter-spacing: 0; text-transform: none; }
  body.portal-studio .portal-sidebar.is-collapsed :is(.portal-sidebar-user, .portal-sidebar-nav, .portal-sidebar-bottom) { display: none; }
  body.portal-studio .portal-sidebar-user { margin-top: 14px; }
}
@media (max-width: 767px) {
  body.portal-studio .portal-login-stage { grid-template-columns: minmax(0, 1fr); }
  body.portal-studio .portal-login-aside,
  body.portal-studio .portal-login-card,
  body.portal-studio .portal-password-aside,
  body.portal-studio .portal-password-card { padding: 20px; }
  body.portal-studio .portal-login-aside .portal-login-points,
  body.portal-studio .portal-login-aside .portal-login-metrics { display: none; }
  body.portal-studio .portal-studio-scene { max-width: 220px; margin: 12px 0; }
  body.portal-studio .portal-login { padding: 18px 0; }
  body.portal-studio .portal-app-main { padding: 18px 12px 30px; }
  body.portal-studio :is(.portal-dashboard-hero, .portal-dashboard-panel, .portal-stat-card, .portal-resource-card, .portal-admin-column) { padding: 16px; }
  body.portal-studio .portal-dashboard-hero h1 { font-size: 28px; }
  body.portal-studio .portal-modal-dialog { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  body.portal-studio *,
  body.portal-studio *::before,
  body.portal-studio *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

body.portal-login-page .portal-login { min-height: 100svh; padding: 24px; display: grid; align-items: center; background: radial-gradient(ellipse at 30% 45%, #123d63, transparent 55%), #061422; }
body.portal-login-page .portal-login > .container { width: 100%; max-width: 1280px; padding: 0; }
body.portal-login-page .portal-login-shell { max-width: none; }
body.portal-login-page .portal-login-stage { position: relative; min-height: min(720px, calc(100svh - 48px)); display: grid; grid-template-columns: minmax(0, 1fr) 390px; align-items: center; gap: 44px; padding: 32px; border: 1px solid #294b67; border-radius: 16px; background: linear-gradient(120deg, #0c2843aa, #071422aa); box-shadow: 0 30px 90px #0005; overflow: hidden; }
body.portal-login-page .portal-login-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(#467aa014 1px, transparent 1px), linear-gradient(90deg, #467aa014 1px, transparent 1px); background-size: 48px 48px; }
body.portal-login-page .portal-login-aside { padding: 0; background: transparent !important; position: relative; min-width: 0; }
body.portal-login-page .portal-access-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
body.portal-login-page .portal-access-brand .portal-login-kicker { color: #94b8d5; margin: 0; font-size: 11px; letter-spacing: .1em; }
body.portal-login-page .portal-access-code { margin: 0 0 8px; color: #f6b53a; font-family: ui-monospace, monospace; }
body.portal-login-page .portal-login-title { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.05em; line-height: 1.15; margin: 0 0 12px; }
body.portal-login-page .portal-login-lead { max-width: 350px; margin: 0; color: #abc6dc; }
body.portal-login-page .portal-access-universe { margin: -22px 0 0; position: relative; }
body.portal-login-page .studio-universe-stage { position: relative; height: clamp(200px, 34svh, 320px); }
body.portal-login-page .studio-universe-canvas,
body.portal-login-page .studio-universe-fallback { width: 100%; height: 100%; display: block; object-fit: contain; }
body.portal-login-page .studio-universe-fallback svg { width: 100%; height: 100%; }
body.portal-login-page .studio-universe-canvas { touch-action: pan-y; cursor: grab; }
body.portal-login-page .studio-universe-canvas.is-dragging { cursor: grabbing; }
body.portal-login-page .studio-universe-status { font-size: 11px; margin: 0 0 8px; color: #94b8d5; }
body.portal-login-page .studio-universe-controls { display: flex; flex-wrap: wrap; gap: 6px; }
body.portal-login-page .studio-universe-controls button { min-height: 36px; min-width: 36px; padding: 6px 10px; background: #103453; border: 1px solid #426786; border-radius: 5px; color: #d2e7f8; font-size: 11px; text-transform: none; letter-spacing: 0; }
body.portal-login-page .portal-login-actions { margin: 18px 0 0; display: flex; gap: 16px; }
body.portal-login-page .portal-login-actions .btn { width: auto; min-width: 0; min-height: 32px; padding: 4px 0; border: 0; background: transparent; color: #b7d2e8; font-size: 12px; }
body.portal-login-page .portal-login-card { position: relative; border: 1px solid #456b89; border-radius: 12px; background: #0c2133; padding: 28px; box-shadow: 0 20px 60px #0004; }
body.portal-login-page .portal-login-card::before { display: block; content: ""; position: absolute; width: 48px; height: 3px; top: -1px; left: 28px; background: #f6b53a; }
body.portal-login-page .portal-login-card-top { margin-bottom: 22px; }
body.portal-login-page .portal-login-card-kicker { margin: 0 0 12px; color: #8aaccc; font-size: 10px; letter-spacing: .08em; }
body.portal-login-page .portal-login-card-top h2 { margin: 0 0 8px; color: #eef7ff; font-size: 26px; }
body.portal-login-page .portal-login-card-top p { margin: 0; color: #a7c0d5; font-size: 13px; }
body.portal-login-page .portal-login-card .portal-field { margin: 0 0 16px; }
body.portal-login-page .portal-login-card .portal-field label { color: #c4d9e9; }
body.portal-login-page .portal-login-card .form-control { color: #eef7ff; background: #081928; border-color: #426786; }
body.portal-login-page .portal-login-card .form-control::placeholder { color: #92abc0; }
body.portal-login-page .portal-login-card .alert { padding: 10px 12px; margin: 0 0 12px; font-size: 13px; line-height: 1.5; }
body.portal-login-page .portal-login-submit { margin: 20px 0 0; }
body.portal-login-page .portal-login-submit .btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; padding: 8px 12px; background: #f6b53a; border-color: #f6b53a; color: #102b47; min-width: 0; }
body.portal-login-page .portal-login-helper-actions { margin: 12px 0 0; }
body.portal-login-page .portal-login-helper-actions .btn { width: 100%; min-width: 0; color: #b7d2e8; border: 0; padding: 4px; background: transparent; }
body.portal-studio.portal-login-page .portal-login-card .portal-login-submit button.btn { background: #f6b53a; border: 1px solid #f6b53a; color: #102b47; }
body.portal-studio.portal-login-page .portal-login-card .portal-login-submit button.btn:hover { background: #ffca67; border-color: #ffca67; }
body.portal-studio.portal-login-page .portal-login-card .portal-login-helper-actions button.btn { background: transparent; color: #b7d2e8; }
body.portal-studio.portal-login-page .studio-universe-controls button[data-universe-action] { background: #103453; border: 1px solid #426786; color: #d2e7f8; }
body.portal-login-page-admin .portal-login-stage { border-color: #3c718e; background: radial-gradient(ellipse at 18% 50%, #0b406566, transparent 65%), #06131fea; }
body.portal-login-page-admin .portal-login-stage::before { background-size: 32px 32px; }
body.portal-login-page-admin .portal-login-title { font-size: clamp(28px, 3.1vw, 40px); }
body.portal-login-page-admin .portal-access-universe { margin-top: -24px; }
body.portal-login-page-admin .studio-universe-stage { height: clamp(180px, 28svh, 260px); }
body.portal-login-page-admin .portal-login-card { border-color: #5a8cac; box-shadow: 0 0 0 6px #16375255, 0 24px 64px #0006; }
body.portal-login-page-admin .portal-login-card-top h2 { font-size: 22px; }
body.portal-login-page-admin .portal-admin-console { margin-top: 14px; padding: 12px 14px; background: #04111dcc; border: 1px solid #31546f; border-radius: 6px; font: 11px/1.6 ui-monospace, monospace; color: #a2cce8; }
body.portal-login-page-admin .portal-admin-console-head { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid #25435b; color: #f6b53a; }
body.portal-login-page-admin .portal-admin-console-head span:last-child { color: #96afc1; font-size: 10px; }
body.portal-login-page-admin .portal-admin-console ol { list-style: none; margin: 8px 0 0; padding: 0; }
body.portal-login-page-admin .portal-admin-console li { display: flex; align-items: center; gap: 10px; padding: 2px 0; }
body.portal-login-page-admin .portal-admin-console code { color: #c4e6fc; font: inherit; overflow-wrap: anywhere; }
body.portal-login-page-admin .portal-admin-console li > span { color: #577b98; }
body.portal-login-page-admin .portal-admin-console i { margin-left: auto; flex-shrink: 0; width: 5px; height: 5px; background: #f6b53a; animation: portal-data-pulse 3s ease-in-out infinite; }
body.portal-login-page-admin .portal-admin-console li:nth-child(2) i { animation-delay: 1s; }
body.portal-login-page-admin .portal-admin-console li:nth-child(3) i { animation-delay: 2s; }
body.portal-login-page-admin:is([data-universe-paused="true"], [data-scenes-suspended="true"]) .portal-admin-console i { animation-play-state: paused; }
@keyframes portal-data-pulse { 0%, 70%, 100% { opacity: .2; transform: scale(1); } 35% { opacity: 1; transform: scale(1.8); } }

body.portal-dashboard-page-client .portal-dashboard { padding: 0; }
body.portal-dashboard-page-client .portal-dashboard-content-wrap { max-width: 1440px; margin: auto; }
body.portal-dashboard-page-client .portal-dashboard-shell { display: flex; flex-direction: column; gap: 16px; }
body.portal-dashboard-page-client .portal-dashboard-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; }
body.portal-dashboard-page-client .portal-dashboard-hero h1 { font-size: clamp(24px, 2.4vw, 30px); margin: 0 0 8px; overflow-wrap: anywhere; }
body.portal-dashboard-page-client .portal-dashboard-hero p { margin: 0; }
body.portal-dashboard-page-client .portal-dashboard-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; flex-shrink: 0; }
body.portal-dashboard-page-client .portal-dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }
body.portal-dashboard-page-client .portal-stat-card { padding: 16px; position: relative; border-top: 3px solid #0966af; }
body.portal-dashboard-page-client .portal-stat-label { font-size: 11px; letter-spacing: .02em; text-transform: none; }
body.portal-dashboard-page-client .portal-client-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
body.portal-dashboard-page-client .portal-client-shortcuts a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 16px; background: #e5eef6; border: 1px solid #c6d8e7; border-radius: 6px; color: #174b74; font-size: 13px; }
body.portal-dashboard-page-client .portal-client-shortcuts a span { margin-left: auto; }
body.portal-dashboard-page-client .portal-client-filters { border: 1px solid #cddce8; background: #fff; border-radius: 8px; }
body.portal-dashboard-page-client summary { cursor: pointer; color: #25445e; font-size: 13px; font-weight: 600; }
body.portal-dashboard-page-client .portal-client-filters > summary { padding: 12px 16px; min-height: 44px; }
body.portal-dashboard-page-client .portal-filter-bar { padding: 16px; margin: 0; border: 0; }
body.portal-dashboard-page-client .portal-filter-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
body.portal-dashboard-page-client .portal-filter-search { grid-column: auto; }
body.portal-dashboard-page-client .portal-filter-group label { font-size: 12px; letter-spacing: 0; text-transform: none; }
body.portal-dashboard-page-client .portal-workspace-grid-client { grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 16px; }
body.portal-dashboard-page-client :is(.portal-workspace-main, .portal-workspace-side, .portal-client-workspace) { min-width: 0; gap: 16px; }
body.portal-dashboard-page-client .portal-results-meta { min-width: 0; padding: 8px 10px; border-radius: 5px; }
body.portal-dashboard-page-client .portal-results-meta strong { font-size: 13px; }
body.portal-dashboard-page-client .portal-empty-state { padding: 24px 16px; background: #f6f9fc; }
body.portal-dashboard-page-client .portal-empty-illustration { width: 52px; height: 52px; border-radius: 8px; font-size: 18px; color: #0966af; background: #dfedf8; }
body.portal-dashboard-page-client .portal-request-detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
body.portal-dashboard-page-client .portal-request-item { padding: 16px; border-radius: 6px; box-shadow: none; border: 1px solid #d7e2eb; }
body.portal-dashboard-page-client .portal-dashboard-summary[open] summary { margin-bottom: 16px; }
body.portal-dashboard-page-client .portal-next-action { padding: 12px 0; border-radius: 0; background: transparent; }
body.portal-dashboard-page-client .portal-next-action:first-child { padding-top: 0; }
body.portal-dashboard-page-client .btn { min-width: 0; border-width: 1px; }
body.portal-dashboard-page-client .portal-stat-card { display: grid; gap: 8px; }
body.portal-dashboard-page-client .portal-stat-value { margin: 0; }
body.portal-dashboard-page-client .portal-dashboard-panel-head { margin-bottom: 16px; }
body.portal-dashboard-page-client .portal-dashboard-panel { min-height: 0; }
body.portal-dashboard-page-client .portal-status-grid { gap: 8px; }
body.portal-dashboard-page-client .portal-status-card { padding: 10px; border-radius: 5px; }
body.portal-dashboard-page-client .portal-status-card span { font-size: 11px; letter-spacing: 0; text-transform: none; }
body.portal-dashboard-page-client .portal-status-card strong { font-size: 24px; margin-top: 4px; }
body.portal-dashboard-page-client .portal-next-action p { margin-block: 8px; }
body.portal-dashboard-page-client :is(.portal-resource-list, .portal-dashboard-timeline) > p { margin: 0; }
@media (max-width: 1100px) {
  body.portal-login-page .portal-login-stage { grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; padding: 24px; }
  body.portal-dashboard-page-client .portal-workspace-grid-client { grid-template-columns: minmax(0, 1fr); }
  body.portal-dashboard-page-client .portal-workspace-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body.portal-login-page .portal-login { padding: 12px; }
  body.portal-login-page .portal-login-stage { min-height: calc(100svh - 24px); padding: 18px; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: center; overflow: hidden; }
  body.portal-login-page .portal-login-aside { position: static; }
  body.portal-login-page .portal-access-brand { position: relative; z-index: 1; margin: 0; }
  body.portal-login-page .portal-access-heading { position: absolute; left: 18px; top: 12px; }
  body.portal-login-page .portal-access-heading :is(.portal-access-code, .portal-login-lead) { display: none; }
  body.portal-login-page .portal-access-heading .portal-login-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); }
  body.portal-login-page .portal-access-universe { position: absolute; inset: -40px -100px auto; margin: 0; }
  body.portal-login-page .studio-universe-stage { opacity: .5; }
  body.portal-login-page .studio-universe-stage { height: 360px; }
  body.portal-login-page .portal-access-universe figcaption { position: absolute; top: 62px; right: 118px; z-index: 2; }
  body.portal-login-page .studio-universe-status,
  body.portal-login-page .studio-universe-controls button:not([data-universe-action="pause"]) { display: none; }
  body.portal-login-page .portal-login-card { padding: 22px; background: #0c2133ed; }
  body.portal-login-page .portal-login-card-top { margin-bottom: 16px; }
  body.portal-login-page .portal-login-card .portal-field { margin-bottom: 12px; }
  body.portal-login-page .portal-login-submit { margin-top: 12px; }
  body.portal-login-page .portal-login-helper-actions { margin-top: 6px; }
  body.portal-login-page .portal-login-actions { position: relative; z-index: 1; margin: 0; }
  body.portal-login-page .portal-login-actions .btn { font-size: 11px; }
  body.portal-dashboard-page-client .portal-dashboard-hero { flex-direction: column; align-items: flex-start; gap: 16px; padding: 18px; }
  body.portal-dashboard-page-client .portal-dashboard-actions { flex-shrink: 1; }
  body.portal-dashboard-page-client .portal-dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.portal-dashboard-page-client .portal-client-shortcuts { gap: 6px; }
  body.portal-dashboard-page-client .portal-client-shortcuts a { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px; font-size: 12px; }
  body.portal-dashboard-page-client .portal-client-shortcuts a span { display: none; }
  body.portal-dashboard-page-client .portal-workspace-side { grid-template-columns: minmax(0, 1fr); }
  body.portal-dashboard-page-client .portal-filter-controls { grid-template-columns: minmax(0, 1fr); }
  body.portal-dashboard-page-client .portal-request-detail-grid { grid-template-columns: minmax(0, 1fr); }
  body.portal-dashboard-page-client .portal-panel-head-split { flex-wrap: wrap; }
}
@media (max-height: 650px) and (min-width: 768px) {
  body.portal-login-page .portal-login { padding: 12px; }
  body.portal-login-page .portal-login-stage { min-height: calc(100svh - 24px); padding: 18px 24px; }
  body.portal-login-page .portal-access-brand { margin-bottom: 12px; }
  body.portal-login-page .portal-login-title { font-size: 28px; }
  body.portal-login-page .studio-universe-stage { height: 170px; }
}
@media (max-height: 500px) {
  body.portal-login-page .portal-login { padding: 8px; }
  body.portal-login-page .portal-login-stage { min-height: calc(100svh - 16px); padding: 8px 18px; gap: 12px; }
  body.portal-login-page .portal-login-card { padding: 10px; }
  body.portal-login-page .portal-login-card-top { margin-bottom: 12px; }
  body.portal-login-page .portal-login-card-top :is(p, .portal-login-card-kicker) { display: none; }
  body.portal-login-page .portal-login-card .portal-field { margin-bottom: 8px; }
  body.portal-login-page .portal-login-card .portal-field label { font-size: 12px; line-height: 1.25; margin-bottom: 4px; }
  body.portal-login-page .portal-login-submit { margin-top: 8px; }
  body.portal-login-page .portal-login-helper-actions { margin-top: 4px; }
  body.portal-login-page .portal-access-heading :is(.portal-access-code, .portal-login-lead) { display: none; }
  body.portal-login-page .portal-login-title { font-size: 22px; }
  body.portal-login-page .portal-login-title br { display: none; }
  body.portal-login-page .studio-universe-stage { height: 120px; }
}
@media (max-height: 650px) and (max-width: 767px) {
  body.portal-login-page .portal-login-stage { padding: 14px; gap: 14px; }
  body.portal-login-page .portal-login-card { padding: 16px; }
  body.portal-login-page .portal-login-card-top > p { display: none; }
}
@media (max-width: 767px) {
  body.portal-login-page-admin .portal-admin-console { display: none; }
  body.portal-login-page-admin .studio-universe-stage { height: 360px; }
}
@media (max-height: 650px) and (min-width: 768px) {
  body.portal-login-page-admin .portal-admin-console { padding: 8px 12px; margin-top: 10px; }
  body.portal-login-page-admin .studio-universe-stage { height: 140px; }
  body.portal-login-page-admin .portal-login-lead { display: none; }
  body.portal-login-page-admin .portal-login-title { font-size: 26px; }
}
@media (max-height: 500px) {
  body.portal-login-page-admin .portal-admin-console { display: none; }
  body.portal-login-page-admin .studio-universe-stage { height: 120px; }
}
.portal-showcase-review {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #b78526;
  border-radius: 6px;
  background: #fff3d7;
  overflow-wrap: anywhere;
}
.portal-showcase-review img { display: block; width: 100%; height: 180px; object-fit: contain; object-position: top; background: #fff; }
