/*
  PROTOTYPE (ticket 10), throwaway. The simulated After Effects around the plugin.

  Colours are measured, not remembered. From Adobe's own screenshot of the After Effects workspace
  (helpx.adobe.com/after-effects/desktop/get-started/get-familiar-with-the-interface/workspaces-panels-viewers.html,
  read 2026-10-03) and Spectrum Web Components 1.12.4 in its "darkest" theme (opensource.adobe.com/
  spectrum-web-components, read 2026-10-03), both sampled pixel by pixel:
    panel fill #1D1D1D (the same in both), the gap between docked panels #000, a Spectrum hairline #373737,
    a Spectrum field at rest #303030, the timeline's header band #0E0E0E.
  Everything else here (the 24px menu bar, 36px tool row, 20px list rows, 12px text) is a stand-in drawn by
  eye from that screenshot: After Effects documents no sizes.
*/
@import url("/assets/fonts.css");

:root {
  --ae-frame: #000;
  --ae-panel: #1d1d1d;
  --ae-band: #0e0e0e;
  --ae-hair: #373737;
  --ae-field: #303030;
  --ae-text: #e6e6e6;
  --ae-text-2: #a8a8a8;
  --ae-select: #3d3d3d;
  --ae-blue: #5eaaf7;
  --ae-font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --panel-w: 440px;
}
/* A scrollbar that appears must not move the content: both scrollers reserve their gutter (MDN scrollbar-gutter,
   read 2026-10-03; the bar itself is assets/native.css). The plugin's body gives the gutter back from its right
   padding so its edge stays at 16px, level with the header and the footer. */
.p-body, .ae-list { scrollbar-gutter: stable; }
.pl .p-body { padding-right: calc(16px - var(--nu-size)); }
/* Section dividers run edge to edge like the header's and the footer's hairlines, not inset by the body's padding. */
.pl .p-sec { margin-left: -16px; margin-right: calc(var(--nu-size) - 16px); padding-left: 16px; padding-right: calc(16px - var(--nu-size)); }
/* Full-bleed strips pull out by the body's padding: right now 16px minus the gutter, or they overflow sideways. */
.pl .p-tabs { margin-right: calc(var(--nu-size) - 16px); padding-right: calc(16px - var(--nu-size)); }  /* .pl: plugin.css loads later and would win at equal specificity */
.ui-tooltip { position: fixed; z-index: 130; max-width: 280px; padding: 7px 10px; background: #3d3d3d; color: #fff; font: 400 12px/1.4 var(--ae-font); pointer-events: none; box-shadow: 0 8px 24px #000a; }

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: #0b0b0b; color: var(--ae-text); font: 400 12px/1.3 var(--ae-font); -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; }

.ae { height: 100vh; min-height: 640px; display: grid; grid-template-rows: 24px 36px 1fr; background: var(--ae-frame); }

/* menu bar and tool row */
.ae-menu { display: flex; align-items: center; gap: 2px; padding: 0 8px; background: var(--ae-panel); color: var(--ae-text); }
.ae-menu span { padding: 3px 8px; }
.ae-menu .ae-title { margin: 0 auto; color: var(--ae-text-2); }
.ae-tools { display: flex; align-items: center; gap: 4px; padding: 0 10px; background: var(--ae-panel); box-shadow: 0 1px 0 #000; }
.ae-tools i { width: 24px; height: 24px; display: grid; place-items: center; color: #b9b9b9; }
.ae-tools i.is-on { background: #2680eb; color: #fff; }
.ae-tools svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.ae-tools .sep { width: 1px; height: 18px; background: var(--ae-hair); margin: 0 8px; }
.ae-ws { margin-left: auto; display: flex; gap: 18px; align-items: center; color: var(--ae-text-2); }
.ae-ws b { font-weight: 600; color: var(--ae-text); padding-bottom: 2px; box-shadow: 0 2px 0 var(--ae-text); }

/* workspace: panels on a black frame, 4px apart */
.ae-work { display: grid; gap: 4px; grid-template-columns: 320px minmax(0, 1fr) var(--panel-w); grid-template-rows: minmax(0, 1fr) 176px; min-height: 0; padding: 0 0 0; position: relative; }
.ae-panel { background: var(--ae-panel); min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.ae-tab { height: 26px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 10px; color: var(--ae-text-2); box-shadow: inset 0 -1px 0 #000; }
.ae-tab b { font-weight: 500; color: var(--ae-text); height: 100%; display: flex; align-items: center; box-shadow: inset 0 -2px 0 var(--ae-text); }
.ae-tab .ham { margin-left: auto; letter-spacing: 1px; }

/* Project */
.ae-proj { grid-row: 1 / 3; }
.ae-info { display: flex; gap: 10px; padding: 10px; flex: none; }
.ae-thumb { width: 84px; height: 52px; background: #000; flex: none; display: grid; place-items: center; overflow: hidden; }
.ae-thumb svg { display: block; width: 100%; height: 100%; }
.ae-info div { min-width: 0; line-height: 1.35; color: var(--ae-text-2); }
.ae-info b { color: var(--ae-text); font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ae-search { margin: 0 10px 8px; height: 22px; padding: 0 8px; display: flex; align-items: center; background: #000; color: var(--ae-text-2); flex: none; }
.ae-list { flex: 1; overflow: auto; min-height: 0; }
/* The reviewer's guide, not After Effects: Gerar with no hero asks for a click here, and says where. */
.ae-hint { margin: 0 10px 8px; padding: 6px 8px; flex: none; border-left: 2px solid var(--accent); background: rgba(255, 255, 6, 0.08); color: var(--ae-text); line-height: 1.35; }
.ae-row.is-pick { box-shadow: inset 2px 0 0 var(--accent); cursor: pointer; }
.ae-cols, .ae-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px 56px; align-items: center; height: 20px; padding: 0 10px; white-space: nowrap; }
.ae-cols { color: var(--ae-text-2); box-shadow: inset 0 -1px 0 #000; position: sticky; top: 0; background: var(--ae-panel); z-index: 1; }
.ae-row { cursor: default; }
.ae-row:hover { background: #262626; }
.ae-row.is-selected { background: var(--ae-select); color: #fff; }
.ae-row .nm { overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; min-width: 0; padding-right: 10px; }
.ae-row .nm span { overflow: hidden; text-overflow: ellipsis; }
.ae-row .nm svg { flex: none; }
.ae-row .tp, .ae-row .sz { color: var(--ae-text-2); overflow: hidden; text-overflow: ellipsis; }
.ae-ic { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; }
.ae-ic.is-folder { color: #c9a24a; fill: #c9a24a33; }
.ae-ic.is-comp { color: #8fb9d9; }
.ae-ic.is-file { color: #a6a6a6; }
.ae-caret { width: 8px; height: 8px; flex: none; fill: currentColor; opacity: .7; transition: transform .12s; }
.ae-caret.is-open { transform: rotate(90deg); }
.ae-pfoot { height: 24px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 10px; color: var(--ae-text-2); box-shadow: inset 0 1px 0 #000; }

/* Composition viewer */
.ae-view { min-width: 0; }
.ae-stage { flex: 1; min-height: 0; position: relative; display: grid; place-items: center; padding: 14px 18px; background: var(--ae-panel); }
.ae-frame { position: relative; max-width: 100%; max-height: 100%; background: #000; box-shadow: 0 0 0 1px #000; display: block; }
.ae-frame svg { display: block; width: 100%; height: 100%; }
.ae-banner { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 5px 10px; background: #e6e6e6; color: #111; font-weight: 600; white-space: nowrap; z-index: 2; max-width: calc(100% - 16px); }
.ae-banner span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ae-vbar { height: 28px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 12px; color: var(--ae-text-2); box-shadow: inset 0 1px 0 #000; }
.ae-vbar .blue { color: var(--ae-blue); }
.ae-vbar .grow { margin-left: auto; }

/* Timeline */
.ae-time { grid-column: 2 / 3; }
.ae-th { display: grid; grid-template-columns: 230px minmax(0, 1fr); flex: none; height: 24px; background: var(--ae-band); align-items: center; }
.ae-th .tc { padding: 0 10px; color: var(--ae-blue); font-weight: 600; font-size: 13px; }
.ae-ruler { position: relative; height: 100%; color: var(--ae-text-2); font-size: 11px; }
.ae-ruler span { position: absolute; top: 5px; transform: translateX(-50%); }
.ae-tl { flex: 1; overflow: hidden; }
.ae-lr { display: grid; grid-template-columns: 230px minmax(0, 1fr); height: 22px; align-items: center; box-shadow: inset 0 -1px 0 #000; }
.ae-lr .ln { display: flex; align-items: center; gap: 8px; padding: 0 10px; min-width: 0; }
.ae-lr .lb { width: 10px; height: 10px; flex: none; }
.ae-lr .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ae-lr .num { width: 14px; color: var(--ae-text-2); text-align: right; flex: none; }
.ae-lr .bar { position: relative; height: 100%; }
.ae-lr .bar i { position: absolute; top: 3px; bottom: 3px; left: 0; right: 0; opacity: .75; }
.ae-empty { padding: 14px 10px; color: var(--ae-text-2); }

/* Dock holding the plugin */
.ae-dock { grid-row: 1 / 3; grid-column: 3; }
.ae-host { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* The review's own controls, laid over the timeline's empty corner. Light inverted neutral ([site] --mf-logo
   #e5e5e5) against the dark host, square corners, the yellow only on the active segment and the top edge:
   it reads as the review's, and clearly above everything under test. Open by default; the operator closes it. */
.proto { position: fixed; z-index: 100; right: calc(var(--panel-w) + 16px); bottom: 16px; color: #0e0e0e; font: 500 12px/1.2 "Anybody", Arial, sans-serif; font-feature-settings: "tnum" 1; }
.proto.is-open { width: 344px; background: #e5e5e5; border-top: 2px solid #ffff06; box-shadow: 0 0 0 1px #000, 0 20px 56px rgba(0, 0, 0, .75); }
.proto button { all: unset; box-sizing: border-box; cursor: pointer; }
.proto button:focus-visible { outline: 2px solid #0e0e0e; outline-offset: 1px; }
/* `.proto button { all: unset }` outranks a bare class, so the two buttons below are `.proto .x`; written as `.x`
   they lost fill and size and read as loose text. Both are primary but quiet: the plugin stays the loudest thing
   on the screen. Closed, the control is the open panel's own surface, so it is found without competing. */
.proto .rc-open { display: flex; align-items: center; height: 36px; padding: 0 14px; background: #e5e5e5; color: #0e0e0e; border-top: 2px solid #ffff06; font-size: 13px; font-weight: 600; box-shadow: 0 0 0 1px #000, 0 10px 28px rgba(0, 0, 0, .6); }
.proto .rc-open svg { width: 14px; height: 14px; margin-right: 9px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.proto .rc-open:hover { background: #fff; }
.proto .rc-open:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.rc__head { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 8px 0 14px; border-bottom: 1px solid rgba(0, 0, 0, .14); }
.rc__title { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.proto .rc__x { display: flex; align-items: center; height: 28px; padding: 0 10px 0 12px; background: #0e0e0e; color: #fff; font-size: 12px; font-weight: 600; }
.proto .rc__x i { margin-left: 8px; font: 400 16px/1 Arial, sans-serif; }  /* Anybody draws × about 3px wide (ADR-0004) */
.proto .rc__x:hover { background: #ffff06; color: #000; }
.proto .rc__x:focus-visible { outline-color: #0e0e0e; outline-offset: 3px; }
.rc__body { padding: 12px 14px 14px; }
.rc__row { margin-top: 12px; }
.rc__label { display: block; margin-bottom: 6px; color: #5c5c5c; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.rc__seg { display: flex; padding: 2px; background: #d0d0d0; }
.rc__seg button { flex: 1 1 0; min-width: 0; height: 26px; line-height: 24px; padding: 0 4px; text-align: center; color: #2b2b2b; border-bottom: 2px solid transparent; white-space: nowrap; }
.rc__seg button:hover { background: rgba(0, 0, 0, .09); }
.rc__seg button[aria-pressed=true] { background: #0e0e0e; color: #fff; border-bottom-color: #ffff06; }
.proto .rc__seg button[aria-pressed=true]:focus-visible { outline-color: #ffff06; outline-offset: -3px; }

/* The simulated file dialog */
.os { position: fixed; z-index: 120; left: 0; right: 0; top: 0; bottom: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .5); }
.os-dlg { width: min(700px, 94vw); background: #2b2b2b; color: var(--ae-text); box-shadow: 0 0 0 1px #000, 0 24px 64px #000c; outline: none; }
.os-title { padding: 8px 14px; background: #1f1f1f; color: var(--ae-text-2); font-size: 12px; }
.os-path { padding: 10px 14px; color: var(--ae-text-2); border-bottom: 1px solid #000; }
.os-list { min-height: 196px; background: #1d1d1d; }
.os-cols, .os-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px 132px; align-items: center; height: 28px; padding: 0 14px; column-gap: 12px; }
.os-cols { color: var(--ae-text-2); border-bottom: 1px solid #000; }
.os-row { cursor: default; }
.os-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.os-row span + span { color: var(--ae-text-2); }
.os-row:hover { background: #2a2a2a; }
.os-row.is-sel { background: #1f4f87; color: #fff; }
.os-row.is-sel span + span { color: #d6e4f5; }
.os-foot { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid #000; }
.os-foot label { color: var(--ae-text-2); }
.os-foot input { flex: 1; min-width: 0; height: 28px; padding: 0 8px; background: #1d1d1d; border: 1px solid #000; color: var(--ae-text); font: inherit; }
.os-btn { height: 28px; padding: 0 16px; background: #3d3d3d; border: 1px solid #000; color: var(--ae-text); font: inherit; cursor: pointer; }
.os-btn:hover:not(:disabled) { background: #4a4a4a; }
.os-btn.is-primary { background: #2680eb; border-color: #2680eb; color: #fff; }
.os-btn.is-primary:hover:not(:disabled) { background: #3a8ff0; }
.os-btn:disabled { opacity: .45; cursor: default; }
.os-btn:focus-visible { outline: 2px solid #5eaaf7; outline-offset: 1px; }
