/* PicPlayer-compatible chrome: 48px + 42px, 174px brand and 30px profile. */
.topbar { grid-area: top; display: flex; align-items: stretch; min-width: 0; height: var(--topbar-h); padding: 0 9px 0 0; background: #10141b; border-bottom: 1px solid #252b35; position: relative; z-index: 30; user-select: none; font-size: 12px; }
.brand-block { display: flex; align-items: center; flex: 0 0 174px; gap: 10px; padding: 0 14px; border-right: 1px solid #2a3240; }
.brand-block .brand-mark { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 8px; }
.brand-copy { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; white-space: nowrap; }
.brand-name { display: inline-flex; align-items: baseline; color: #f6f7fb; font-size: 13px; letter-spacing: -.02em; line-height: 1; }
.brand-name strong { font-weight: 800; }
.brand-name > span { font-weight: 400; }
.brand-copy small { color: #939dac; font-size: 9px; font-weight: 600; line-height: 1; letter-spacing: .025em; }
.profile-button{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border:1px solid #414c5f;border-radius:50%;background:#202938;color:#cfdbeb;cursor:pointer;padding:0;transition:background .15s,border-color .15s}
.profile-button:hover,.profile-button.active{background:#33435a;border-color:#6e9bc7}
.profile-button.is-signed-in{border-color:#469b81;background:#153b32;color:#a1eed5}
.profile-initials{font-size:13px;font-weight:750;line-height:1}
.menu-bar{display:flex;align-items:center;flex:0 1 auto;min-width:0;white-space:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
.menu-bar::-webkit-scrollbar{display:none}
.application-menu{padding:0 4px}
.network-menu{margin-left:auto;padding-left:16px}
.menu-bar>button{flex:0 0 auto;height:30px;border-radius:5px;border:0;background:transparent;padding:0 8px;cursor:pointer;color:#d4d9e1;white-space:nowrap}
.menu-bar>button:hover,.menu-bar>button.active{background:#2a313d}
.menu-bar>button:focus-visible,.profile-button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.menu-popovers{position:fixed;inset:0;pointer-events:none;z-index:100}
.menu-popover{display:none;position:absolute;top:calc(var(--titlebar-height) + 3px);min-width:min(245px,calc(100vw - 16px));max-width:calc(100vw - 16px);padding:5px;background:#252b35;border:1px solid #3a424f;border-radius:7px;box-shadow:0 18px 50px #000b;pointer-events:auto;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#566274 #252b35}
.menu-popover.open{display:block}
.menu-popover button,.menu-popover a{display:flex;align-items:center;justify-content:space-between;gap:24px;width:100%;border:0;background:transparent;padding:7px 9px;border-radius:4px;text-align:left;cursor:pointer;color:inherit;text-decoration:none;white-space:nowrap;line-height:1.35}
.menu-popover button:hover,.menu-popover a:hover,.menu-popover button:focus-visible,.menu-popover a:focus-visible{background:#3a4656;outline:none}
.menu-popover button:focus-visible,.menu-popover a:focus-visible{box-shadow:inset 0 0 0 1px #80b7e3}
.menu-popover button[data-planned=true]{color:#7e8795}
.menu-popover kbd{color:#8994a5;font-family:inherit;font-size:10px}
.menu-separator{height:1px;background:#46505f;margin:5px 5px}
.network-popover{min-width:min(215px,calc(100vw - 16px))}
.current-app-badge{font-size:9px;color:#86c8f7;font-weight:500}
.profile-popover{width:245px}
.profile-summary{display:grid;gap:5px;padding:8px 9px 9px;overflow-wrap:anywhere}
.profile-summary strong{font-size:13px;font-weight:650}
.profile-summary>span{font-size:11px;color:#a0adbf}
.profile-popover .profile-join{color:#90ceff}
.profile-popover .profile-legal-link{font-size:11px;color:#adb9ca}

.application-menu { flex: 0 0 auto; }
.menu-popovers { font-size: 12px; z-index: 100; }
.menu-popover .danger-text { color: var(--danger); }
.editor-header { grid-area: controls; display: grid; grid-template-columns: var(--left-w) minmax(0,1fr) auto; min-width: 0; height: var(--editor-header-h); background: #1b2029; border-bottom: 1px solid #303640; z-index: 25; }
.editor-header .panel-tabs { border-bottom: 0; height: 100%; padding-top: 0; background: transparent; }
.editor-header .panel-tab { height: 100%; flex: 0 0 auto; padding: 0 15px; font-size: 11px; }
.left-panel-tabs { padding-left: var(--tool-w); border-right: 1px solid var(--line); }
.editor-controls-scroll { overflow-x: auto; overflow-y: hidden; min-width: 0; scrollbar-width: none; }
.editor-controls-scroll::-webkit-scrollbar { display: none; }
.editor-controls { display: flex; align-items: center; justify-content: center; gap: 10px; height: 100%; min-width: max-content; padding: 0 12px; }
.editor-controls > * { flex-shrink: 0; }
.header-action-tools { display: flex; align-items: center; gap: 5px; }
.header-action-tools .button { min-height: 28px; padding: 0 9px; font-size: 11px; gap: 5px; }
.header-action-tools .button:hover { transform: none; }
.inspector-header-actions { display: flex; align-items: center; gap: 10px; padding-right: 9px; padding-left: 4px; border-left: 1px solid var(--line); }
.inspector-header-actions .panel-tabs { display: flex; }
.inspector-header-actions .panel-tab { padding: 0 12px; }
.profile-button svg { width: 19px; height: 19px; }
.selection-quickbar { top: 10px; z-index: 10; max-width: calc(100% - 16px); }
.tool-rail { overflow-y: auto; overflow-x: hidden; }
.tool-rail > * { flex-shrink: 0; }
.project-tab { padding: 16px 14px; gap: 12px; overflow-y: auto; }
.project-panel-heading { display: flex; gap: 8px; align-items: center; color: var(--text-2); }
.project-panel-heading svg { color: var(--accent-2); }
.project-panel-heading h2 { font-size: 12px; font-weight: 650; margin: 0; }
.project-tab .project-name-field { display: flex; flex-direction: column; align-items: stretch; gap: 7px; }
.project-tab .project-name { width: 100%; min-width: 0; height: 34px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--bg-0); color: var(--text); font-size: 12px; text-align: left; }
.project-tab .save-status { display: flex; gap: 6px; font-size: 10px; }
.project-hint { margin: 0; color: var(--text-3); font-size: 10px; line-height: 1.6; }
.project-details { margin: 0; display: grid; gap: 9px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 10px; }
.project-details > div { display: flex; justify-content: space-between; gap: 8px; }
.project-details dt { color: var(--text-3); }
.project-details dd { margin: 0; color: var(--text-2); }
.project-panel-actions { display: grid; gap: 7px; }
.project-panel-actions .button { justify-content: flex-start; font-size: 10px; }
.project-storage-note { margin-top: auto; padding-top: 4px; }
.shared-ad-rail { grid-area: ads; width: 316px; min-width: 316px; min-height: 0; height: 100%; overflow: hidden; background: #12171e; }
.shared-ad-rail[hidden] { display: none !important; }
/* A disabled or remotely paused manager must release its entire layout column. */
.app-shell.ads-collapsed { --ad-rail-w: 0px; }
.app-shell.ads-collapsed .shared-ad-rail { display: none; }
@media (max-width: 1279px) {
  .app-shell { --ad-rail-w: 0px; }
  .shared-ad-rail { display: none; }
}
@media (max-width: 1100px) {
  .editor-header .panel-tab { padding: 0 10px; }
  .editor-controls { gap: 6px; padding: 0 8px; }
}
.canvas-size-dialog { position: fixed; margin: 0; max-height: calc(100vh - 100px); overflow-y: auto; }
.ad-preferences-modal { width: min(510px, calc(100vw - 36px)); }
.ad-preferences-body { padding: 20px; font-size: 12px; line-height: 1.65; color: var(--text-2); }
.ad-preferences-body > p { margin: 0 0 14px; }
.ad-preferences-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ad-preferences-body a { color: var(--accent-2); }
.statusbar > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
