/* Interactive AfterShoot window on the landing page. Laid out at 1100×690 and scaled to fit. */
.demo-outer { margin: 64px auto 0; max-width: 1100px; position: relative; }
.demo-scale { width: 1100px; height: 690px; transform-origin: top left; position: absolute; left: 0; top: 0; }
.app {
  --a-bg: #1e1e1e; --a-side: #151515; --a-row: #252527; --a-row-hi: #2c2c2e;
  --a-line: rgba(255,255,255,.08); --a-text: #f2f2f2; --a-dim: #9a9a9f; --a-faint: #6b6b70;
  --a-blue: #2f7cf6; --a-green: #3fcf5e;
  width: 1100px; height: 690px; border-radius: 14px; overflow: hidden; position: relative;
  background: var(--a-bg); color: var(--a-text);
  box-shadow: 0 40px 120px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.1);
  font: 13px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  display: grid; grid-template-columns: 236px 1fr; user-select: none; -webkit-user-select: none;
  text-align: left;
}
:where(.app) button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }

/* Sidebar */
.a-side { background: var(--a-side); margin: 8px 0 8px 8px; border-radius: 11px; display: flex; flex-direction: column;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); position: relative; z-index: 1; }
.a-lights { display: flex; gap: 8px; padding: 16px 14px 12px; align-items: center; }
.a-lights i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.a-lights i:nth-child(1) { background: #ff5f57; } .a-lights i:nth-child(2) { background: #febc2e; } .a-lights i:nth-child(3) { background: #28c840; }
.a-lights .a-sbtn { margin-left: auto; width: 20px; height: 16px; border: 1.6px solid #bbb; border-radius: 4px; position: relative; opacity: .8; }
.a-lights .a-sbtn::after { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; border-left: 1.6px solid #bbb; }
.a-h { color: var(--a-faint); font-weight: 600; font-size: 11px; padding: 10px 14px 4px; }
.a-card { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 8px; margin: 0 6px; transition: background .2s; }
.a-card:hover { background: rgba(255,255,255,.05); }
.a-card .tile { width: 30px; height: 30px; }
.a-card b { display: block; font-weight: 500; font-size: 13px; }
.a-card small { color: var(--a-dim); font-size: 11px; }
.a-card .ok { margin-left: auto; width: 16px; height: 16px; opacity: 0; transform: scale(.4); transition: all .35s cubic-bezier(.3,1.6,.5,1); }
.a-card.done .ok { opacity: 1; transform: none; }
.a-card .spin { margin-left: auto; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15);
  border-top-color: var(--a-dim); animation: aspin .8s linear infinite; display: none; }
.a-card.busy .spin { display: block; }
.a-card.busy .ok { display: none; }
@keyframes aspin { to { transform: rotate(360deg); } }
.a-drive { display: grid; grid-template-columns: 26px 1fr; column-gap: 8px; padding: 6px 14px; align-items: center; }
.a-drive svg { width: 22px; height: 22px; color: #ccc; grid-row: span 2; }
.a-drive b { font-weight: 500; }
.a-drive small { color: var(--a-dim); font-size: 11px; font-variant-numeric: tabular-nums; }
.a-drive .meter { grid-column: 2; height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); margin-top: 5px; overflow: hidden; }
.a-drive .meter i { display: block; height: 100%; background: #8e8e93; border-radius: 2px; transition: width .4s; }
.a-add { color: #ddd; padding: 8px 18px; display: flex; gap: 8px; align-items: center; }
.a-brand { margin-top: auto; display: flex; gap: 9px; align-items: center; padding: 12px 14px 14px; }
.a-brand img { width: 30px; height: 30px; }
.a-brand b { display: block; font-size: 13px; } .a-brand small { color: var(--a-dim); font-size: 10.5px; }

/* Main */
.a-main { display: flex; flex-direction: column; min-width: 0; }
.a-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px 8px 18px; height: 56px; }
.a-title b { display: block; font-size: 14px; font-weight: 600; }
.a-title small { color: var(--a-dim); font-size: 11px; }
.a-tabs { margin-left: auto; display: flex; background: #2a2a2c; border-radius: 999px; padding: 3px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.a-tabs button { padding: 6px 15px; border-radius: 999px; color: #e5e5e5; font-size: 13px; transition: background .2s; }
.a-tabs button:hover { background: rgba(255,255,255,.06); }
.a-tabs button.on { background: #4a4a4d; color: #fff; }
.a-tools { margin-left: auto; display: flex; gap: 2px; background: #2a2a2c; border-radius: 999px; padding: 3px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.a-tools button { width: 32px; height: 28px; border-radius: 999px; display: grid; place-items: center; }
.a-tools button:hover { background: rgba(255,255,255,.08); }
.a-tools svg { width: 17px; height: 17px; }
.a-go { display: flex; align-items: center; gap: 7px; padding: 7px 16px; border-radius: 999px; background: var(--a-blue); color: #fff;
  font-weight: 500; font-size: 13.5px; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 4px 14px rgba(47,124,246,.35); transition: all .2s; }
.a-go:hover { filter: brightness(1.12); }
.a-go:disabled { background: #2a2a2c; color: var(--a-faint); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); cursor: default; filter: none; }
.a-go svg { width: 11px; height: 11px; }
.a-go.pulse { animation: apulse 1.6s ease-in-out infinite; }
@keyframes apulse { 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 7px rgba(47,124,246,.18), 0 4px 18px rgba(47,124,246,.5); } }

.a-crumb { color: var(--a-dim); padding: 6px 22px 10px; display: flex; gap: 6px; align-items: center; font-size: 12px; white-space: nowrap; }
.a-crumb b { color: var(--a-text); font-weight: 600; }
.a-crumb svg { width: 15px; height: 13px; color: var(--a-blue); }
.a-body { flex: 1; overflow: hidden; padding: 0 16px; position: relative; }
.a-view { position: absolute; inset: 0 16px; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none; }
.a-view.on { opacity: 1; transform: none; pointer-events: auto; }

.a-row { display: flex; align-items: center; gap: 14px; background: var(--a-row); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; transition: background .2s; }
.a-row:hover { background: var(--a-row-hi); }
.tile { position: relative; flex: none; width: 50px; height: 50px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(180deg, #f4f4f4, #d9d9d9); }
.tile img { width: 88%; }
.tile.sd { background: rgba(47,124,246,.16); }
.tile.sd svg { width: 22px; height: 22px; color: var(--a-blue); }
.tile .letter { position: absolute; right: -5px; bottom: -5px; width: 18px; height: 18px; border-radius: 5px; background: #000; color: #fff;
  font-size: 10.5px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--a-row); }
.a-card .tile { border-radius: 7px; } .a-card .tile .letter { display: none; }
.a-info { min-width: 0; flex: 1; }
.a-info b { display: block; font-size: 14px; font-weight: 600; }
.a-info small { color: var(--a-dim); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.a-prog { width: 150px; flex: none; }
.a-prog .track { height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.a-prog .track i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--a-blue); transition: background .3s; }
.a-prog.verify .track i { background: linear-gradient(90deg, #2f7cf6, #5aa0ff); }
.a-prog.done .track i { background: var(--a-green); }
.a-prog small { display: flex; justify-content: space-between; color: var(--a-dim); font-size: 11.5px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.a-state { width: 140px; flex: none; text-align: right; color: var(--a-dim); font-size: 13.5px; font-weight: 500; display: flex; align-items: center; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.a-state.ok { color: var(--a-green); }
.a-state svg { width: 17px; height: 17px; flex: none; }
.a-sec { font-weight: 600; font-size: 14px; margin: 16px 6px 10px; }
.a-mk { padding: 5px 12px; border-radius: 7px; background: #3a3a3c; font-size: 12.5px; white-space: nowrap; transition: background .2s; }
.a-mk:hover { background: #48484a; }
.a-mk.prim { background: var(--a-blue); }
.a-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 6px 12px; color: var(--a-dim); font-size: 13.5px; }

/* Sync view */
.sync-top { display: flex; align-items: center; gap: 10px; margin: 4px 6px 14px; color: var(--a-dim); }
.sync-top .pill { background: #2a2a2c; padding: 5px 11px; border-radius: 7px; color: var(--a-text); }
.sync-top .a-mk { margin-left: auto; }
.tl { background: #171718; border-radius: 12px; padding: 14px 14px 10px; position: relative; overflow: hidden; }
.tl-row { display: grid; grid-template-columns: 70px 1fr; align-items: center; height: 34px; }
.tl-row span { color: var(--a-dim); font-size: 11.5px; font-weight: 600; }
.tl-lane { position: relative; height: 24px; }
.clip { position: absolute; top: 0; height: 24px; border-radius: 5px; font-size: 10.5px; color: rgba(255,255,255,.92); padding: 0 7px;
  display: flex; align-items: center; overflow: hidden; white-space: nowrap; transition: left 1.1s cubic-bezier(.5,0,.2,1); }
.clip.audio { background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 1px, transparent 1px 3px); background-size: 100% 60%; background-repeat: no-repeat; background-position: center; }
.tl-head { position: absolute; top: 0; bottom: 0; width: 2px; background: #ff453a; left: 84px; transition: left 1.1s cubic-bezier(.5,0,.2,1); }
.sync-note { margin: 12px 6px; color: var(--a-dim); font-size: 12.5px; min-height: 18px; }
.sync-note b { color: var(--a-green); font-weight: 600; }

/* Bottom bar */
.a-foot { display: flex; align-items: center; gap: 18px; padding: 10px 20px; border-top: 1px solid var(--a-line); height: 50px; }
.a-chk { display: flex; align-items: center; gap: 7px; }
.a-chk i { width: 16px; height: 16px; border-radius: 4px; background: var(--a-blue); display: grid; place-items: center; transition: background .15s; }
.a-chk i svg { width: 11px; height: 11px; color: #fff; }
.a-chk.off i { background: #3a3a3c; } .a-chk.off i svg { opacity: 0; }
.a-sel { background: #2c2c2e; border-radius: 7px; padding: 5px 30px 5px 11px; position: relative; min-width: 104px; text-align: left; }
.a-sel::after { content: "⌃\A⌄"; white-space: pre; position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-size: 8px; line-height: 6px; color: #ccc; }
.a-foot .sum { margin-left: auto; color: var(--a-dim); font-variant-numeric: tabular-nums; }

/* Camera picker popover */
.a-pop { position: absolute; left: 248px; top: 66px; width: 300px; background: #1b1b1d; border-radius: 14px; padding: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.1); z-index: 5; opacity: 0; transform: scale(.96); transform-origin: top left;
  transition: opacity .2s, transform .2s; pointer-events: none; }
.a-pop.on { opacity: 1; transform: none; pointer-events: auto; }
.a-pop b { display: block; font-size: 14px; } .a-pop small { color: var(--a-dim); }
.a-pop .letters { display: flex; gap: 7px; margin: 14px 0; }
.a-pop .letters button { width: 30px; height: 30px; border-radius: 50%; background: #333; font-weight: 600; }
.a-pop .letters button.on { background: var(--a-blue); }
.a-pop .use { display: block; margin-left: auto; background: var(--a-blue); padding: 6px 14px; border-radius: 7px; color: #fff; }

.a-toast { position: absolute; left: 50%; bottom: 66px; transform: translate(-50%, 10px); background: rgba(50,50,52,.95); padding: 8px 14px;
  border-radius: 10px; font-size: 12.5px; opacity: 0; transition: all .25s; pointer-events: none; z-index: 6; box-shadow: 0 8px 30px rgba(0,0,0,.5); white-space: nowrap; }
.a-toast.on { opacity: 1; transform: translate(-50%, 0); }

.demo-hint { text-align: center; color: var(--faint, #6e6e73); font-size: 14px; margin-top: 18px; }
.demo-hint button { font: inherit; color: var(--dim, #a1a1a6); background: rgba(255,255,255,.08); border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer; margin-left: 8px; }
.demo-hint button:hover { background: rgba(255,255,255,.14); }
