/* Line 16010 (edit-bay-eb01-projects-r1): the edit bay on the Google path. Colours come 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 progressively over the same project. */
.eb { margin: 0; min-height: 100vh; background: var(--ns-bg); color: var(--ns-text); font: 400 16px/1.5 var(--ns-font); }
.eb *, .eb *::before, .eb *::after { box-sizing: border-box; }
.eb button, .eb label.eb-upload { font: inherit; }
.eb :focus-visible { outline: 3px solid var(--ns-gold); outline-offset: 2px; }

.eb-host { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--ns-chrome); border-bottom: 1px solid var(--ns-border); backdrop-filter: blur(8px); }
.eb-host__face { flex: 0 0 64px; width: 64px; height: 64px; display: grid; place-items: center; }
.eb-host__words { min-width: 0; }
.eb-host__name { margin: 0; font-weight: 700; font-size: 15px; }
.eb-host__name span { font-weight: 500; font-size: 12px; color: var(--ns-text-2); margin-left: 4px; }
.eb-host__caption { margin: 2px 0 0; font-size: 15px; line-height: 1.4; }

.eb-main { max-width: 1120px; margin: 0 auto; padding: 16px 16px 48px; display: grid; gap: 16px; }
.eb-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.eb h1 { margin: 0; font-size: 24px; line-height: 1.2; }
.eb h2 { margin: 0 0 10px; font-size: 18px; }
.eb h3 { margin: 16px 0 8px; font-size: 15px; color: var(--ns-text-2); }
.eb-card { background: var(--ns-surface); border: 1px solid var(--ns-border); border-radius: var(--ns-radius); padding: 16px; min-width: 0; }
.eb-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eb-row h2 { margin-bottom: 0; }
.eb-muted { margin: 8px 0; font-size: 14px; color: var(--ns-text-2); }

.eb-levels { display: inline-flex; border: 1px solid var(--ns-border-strong); border-radius: 22px; overflow: hidden; }
.eb-levels button, .eb-len button { min-height: 44px; padding: 0 14px; border: 0; background: transparent; color: var(--ns-text); cursor: pointer; }
.eb-levels button[aria-checked="true"], .eb-len button[aria-checked="true"] { background: var(--ns-gold); color: var(--ns-on-accent); font-weight: 500; }

.eb-dest { display: grid; grid-template-columns: 1fr; gap: 8px; }
.eb-dest button { display: grid; grid-template-columns: 36px auto 1fr; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; text-align: left; border: 1px solid var(--ns-border-strong); border-radius: var(--ns-radius); background: var(--ns-card); color: var(--ns-text); cursor: pointer; }
.eb-dest button[aria-checked="true"] { border-color: var(--ns-gold); box-shadow: 0 0 0 2px var(--ns-gold-glow); }
.eb-dest span:last-child { color: var(--ns-text-2); font-size: 14px; }
.eb-shape { display: block; margin: auto; border: 2px solid currentColor; border-radius: 3px; }
.eb-shape--phone { width: 14px; height: 24px; }
.eb-shape--square { width: 22px; height: 22px; }
.eb-shape--wide { width: 30px; height: 17px; }
.eb-len { display: inline-flex; flex-wrap: wrap; margin-top: 10px; border: 1px solid var(--ns-border-strong); border-radius: 22px; overflow: hidden; }

.eb-upload { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--ns-border-strong); cursor: pointer; }
.eb-bin { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
.eb-bin li { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 10px; border: 1px solid var(--ns-border); border-radius: var(--ns-radius); background: var(--ns-card); }
.eb-bin li[aria-selected="true"] { border-color: var(--ns-gold); }
.eb-bin input { width: 22px; height: 22px; accent-color: var(--ns-gold); flex: 0 0 auto; }
.eb-bin .eb-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eb-bin .eb-kind { font-size: 12px; color: var(--ns-text-2); }
.eb-bin .eb-order { min-width: 24px; text-align: center; font-weight: 700; color: var(--ns-gold); }
.eb-bin button, .eb-scenes button, .eb-inspect select { min-height: 40px; min-width: 40px; border: 1px solid var(--ns-border-strong); border-radius: 20px; background: transparent; color: var(--ns-text); cursor: pointer; }
.eb-empty { color: var(--ns-text-2); font-size: 14px; padding: 8px 0; }

.eb-primary { width: 100%; min-height: 48px; border: 0; border-radius: 24px; background: var(--ns-gold); color: var(--ns-on-accent); font-weight: 700; cursor: pointer; }
.eb-primary:disabled { opacity: .45; cursor: not-allowed; }
.eb-ghost { min-height: 40px; padding: 0 16px; border: 1px solid var(--ns-border-strong); border-radius: 20px; background: transparent; color: var(--ns-text); cursor: pointer; }
.eb-ghost:disabled { opacity: .45; cursor: not-allowed; }

.eb-summary { margin: 8px 0 12px; font-weight: 500; }
.eb-preview { display: grid; place-items: center; min-height: 160px; background: var(--ns-bg-deep); border-radius: var(--ns-radius); overflow: hidden; }
.eb-preview video, .eb-preview img { display: block; max-width: 100%; max-height: 50vh; }
.eb-preview audio { width: 100%; padding: 16px; }

.eb-scenes { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; }
.eb-scenes li { flex: 0 0 150px; display: grid; gap: 6px; padding: 8px; border: 1px solid var(--ns-border); border-radius: var(--ns-radius); background: var(--ns-card); cursor: grab; }
.eb-scenes li[aria-selected="true"] { border-color: var(--ns-gold); }
.eb-scenes li.eb-drop { outline: 2px dashed var(--ns-gold); }
.eb-scenes .eb-name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eb-scenes .eb-time { font-size: 12px; color: var(--ns-text-2); }
.eb-scenes .eb-moves { display: flex; gap: 6px; }

.eb-scroll { overflow-x: auto; }
.eb-table { width: 100%; border-collapse: collapse; font: 13px/1.4 ui-monospace, 'Roboto Mono', monospace; }
.eb-table th, .eb-table td { padding: 6px 8px; border-bottom: 1px solid var(--ns-border); text-align: left; white-space: nowrap; }
.eb-table th { font-family: var(--ns-font); color: var(--ns-text-2); font-weight: 500; }
.eb-inspect { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.eb-inspect li { padding: 8px 10px; border: 1px solid var(--ns-border); border-radius: var(--ns-radius); background: var(--ns-card); font-size: 13px; }
.eb-inspect .eb-missing { color: var(--ns-gold); font-weight: 700; }
.eb-inspect code { font: 12px ui-monospace, monospace; color: var(--ns-text-2); }
.eb-say { min-height: 1.5em; margin: 0; color: var(--ns-text-2); }

.eb-adv, .eb-exp { display: none; }
.eb[data-level="advanced"] .eb-adv, .eb[data-level="expert"] .eb-adv { display: flex; }
.eb[data-level="expert"] .eb-exp { display: block; }

@media (min-width: 768px) {
    .eb-dest { grid-template-columns: repeat(3, 1fr); }
    .eb-bin { grid-template-columns: repeat(2, 1fr); }
    .eb-primary { width: auto; padding: 0 32px; }
    .eb-host__face { flex-basis: 80px; width: 80px; height: 80px; }
}
@media (min-width: 1200px) {
    .eb-bin { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .eb * { transition: none !important; }
}
