/* Line 16014 (edit-bay-eb05-finish-r1): brand, titles, B-roll, transitions and sound on the Google path. Colours only from
   public/css/ns-tokens.css (dark by default, light under prefers-color-scheme: light); 375 px first. The level on
   <body data-level> reveals the advanced (.eb-adv) and expert (.eb-exp) controls over the same project. The overlay draws the
   titles, logo and B-roll over the program monitor where the render draws them (positions from the server, in %). */
.ebf { display: grid; gap: 16px; margin-top: 16px; }
.ebf-block { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--ns-border); min-width: 0; }
.ebf h3 { margin: 0; color: var(--ns-text); font-size: 16px; }
.ebf h4 { margin: 8px 0 0; color: var(--ns-text); font-size: 14px; font-weight: 500; }
.ebf-go { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.ebf-go .eb-primary { width: auto; min-height: 44px; padding: 0 20px; }
.ebf-notes { margin: 0; min-height: 1.2em; font-size: 14px; color: var(--ns-text-2); }
.ebf-adv, .ebf-exp { gap: 10px; }
.eb[data-level="advanced"] .ebf-adv, .eb[data-level="expert"] .ebf-adv, .eb[data-level="expert"] .ebf-exp { display: grid; }
.ebf-exp-inline { display: none; }
.eb[data-level="expert"] .ebf-exp-inline { display: grid; }
.ebf-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; min-width: 0; }
.ebf-field { display: grid; gap: 4px; font-size: 13px; color: var(--ns-text-2); min-width: 0; }
.ebf-grow { flex: 1 1 180px; }
.ebf input[type="text"], .ebf input[type="number"], .ebf select {
    min-height: 40px; padding: 6px 10px; border: 1px solid var(--ns-border-strong); border-radius: 10px; background: var(--ns-card); color: var(--ns-text); font: inherit; max-width: 100%; }
.ebf input[type="number"] { width: 96px; }
.ebf input[type="color"] { width: 48px; height: 40px; padding: 2px; border: 1px solid var(--ns-border-strong); border-radius: 10px; background: var(--ns-card); }
.ebf-looks, .ebf-music { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.ebf-looks button, .ebf-music button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--ns-border-strong);
    border-radius: 22px; background: transparent; color: var(--ns-text); font: inherit; cursor: pointer; }
.ebf-looks button[aria-checked="true"], .ebf-music button[aria-checked="true"] { border-color: var(--ns-gold); background: var(--ns-gold); color: var(--ns-on-accent); font-weight: 500; }
.ebf-swatch { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 12px; font-weight: 700; }
.ebf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ebf-sug { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--ns-border); border-radius: var(--ns-radius); background: var(--ns-card); min-width: 0; }
.ebf-sug p { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.ebf-sug .eb-ghost { justify-self: start; }
.ebf-sug__said { color: var(--ns-text-2); }
.ebf-table input[type="text"] { width: 100%; min-width: 120px; }
.ebf-beats { display: flex; flex-wrap: wrap; gap: 6px; }
.ebf-beat { min-height: 32px; padding: 2px 10px; border: 1px solid var(--ns-border-strong); border-radius: 16px; background: transparent; color: var(--ns-text); font: inherit; font-size: 13px; cursor: pointer; font-variant-numeric: tabular-nums; }
.ebf-beat:hover, .ebf-beat:focus-visible { border-color: var(--ns-gold); }
.ebf button:focus-visible, .ebf input:focus-visible, .ebf select:focus-visible { outline: 2px solid var(--ns-gold); outline-offset: 2px; }

/* The program monitor overlay (inside .ebt-screen or the plain preview). */
.ebf-overlay { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.ebf-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ebf-logo { position: absolute; height: auto; }
.ebf-safe { position: absolute; border: 1px dashed rgba(255, 255, 255, 0.55); }
.ebf-title { position: absolute; display: grid; justify-items: start; gap: 0; line-height: 1.25; font-family: "DejaVu Sans", var(--ns-font, system-ui), sans-serif; font-weight: 700; color: var(--ebf-color); }
.ebf-overlay[data-font="serif"] .ebf-title { font-family: "DejaVu Serif", Georgia, serif; }
.ebf-overlay[data-font="mono"] .ebf-title { font-family: "DejaVu Sans Mono", ui-monospace, monospace; }
.ebf-title--center { transform: translateX(0); justify-items: center; }
.ebf-line { padding: 0 0.2em; background: color-mix(in srgb, var(--ebf-accent) 81%, transparent); white-space: pre; }
.ebf-sub { font-size: 0.7em; font-weight: 400; }
