      #chrome-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        z-index: 22;
        display: flex;
        flex-direction: column;
        user-select: none;
        background: var(--bg-strip);
      }


      .browser-frame {
        position: fixed;
        inset: 0;
        top: var(--header-h);
        width: 100%;
        height: calc(100% - var(--header-h));
        border: none;
        background: var(--bg-canvas);
        z-index: 17 !important;
        display: block;
        visibility: hidden;
        pointer-events: none;
      }

      .browser-frame.visible { visibility: visible; pointer-events: auto; }


      .browser-frame.devtools-open { height: calc(100% - var(--header-h) - min(42vh, 360px)); }


      #settings-frame {
        position: fixed;
        inset: var(--header-h) 0 0;
        width: 100%;
        height: calc(100% - var(--header-h));
        border: none;
        background: var(--bg-canvas);
        z-index: 17;
        display: none;
      }

      #settings-frame.visible { display: block; }


      #load-bar {
        position: fixed;
        top: var(--header-h);
        left: 0;
        height: 2px;
        width: 0%;
        background: var(--accent);
        z-index: 25;
        opacity: 0;
      }

      #frame-load-status {
        position: fixed;
        top: calc(var(--header-h) + 8px);
        right: 12px;
        z-index: 26;
        height: 24px;
        display: none;
        align-items: center;
        background: var(--bg-surface);
        border: 1px solid var(--border-focus);
        border-radius: 8px;
        padding: 0 10px;
        color: var(--text-secondary);
        font-size: 11px;
        pointer-events: none;
      }
