:root {
  --ink: #070a0a;
  --ink-2: #0d1110;
  --panel: #121716;
  --panel-hi: #18201e;
  --line: #2b3431;
  --muted: #a4afaa;
  --paper: #f1f4ef;
  --lime: #baff39;
  --lime-soft: rgba(186, 255, 57, .14);
  --teal: #073e3a;
  --teal-hi: #0c625a;
  --cut: #ff6868;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { background: var(--ink); color: var(--paper); font-family: Inter, "IBM Plex Sans", "Noto Sans JP", sans-serif; }
body { margin: 0; min-width: 320px; min-height: 100vh; background:
  linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px), var(--ink);
  background-size: 46px 46px; overflow-x: hidden; }
button, input, select { font: inherit; }
button { color: inherit; }
.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(100px); pointer-events: none; opacity: .18; }
.ambient-a { width: 500px; height: 500px; background: var(--teal-hi); left: 24%; top: 8%; }
.ambient-b { width: 280px; height: 280px; background: var(--lime); right: -140px; top: 36%; opacity: .06; }

.site-header { min-height: 62px; padding: 8px 14px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); background: rgba(7,10,10,.94); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 30; }
.site-brand { display:flex;align-items:center;gap:8px;color:var(--paper);text-decoration:none;min-width:max-content }
.site-brand img { width:30px;height:30px;object-fit:contain;border-radius:6px }
.site-brand>span { display:flex;flex-direction:column;font-weight:800;line-height:1;font-size:14px;letter-spacing:.06em }
.site-brand small { color:var(--muted);font:7px/1.8 ui-monospace,monospace;letter-spacing:.16em }
.site-tabs { display:flex;align-items:center;border:1px solid var(--line);border-radius:5px;overflow:hidden;margin-left:8px }
.site-tabs a { padding:9px 10px;color:#b6bfbb;text-decoration:none;font-size:10px;border-right:1px solid var(--line);white-space:nowrap }
.site-tabs a:last-child { border-right:0 }.site-tabs a:hover { color:var(--lime);background:var(--lime-soft) }
.site-spacer { flex:1 }.site-account { color:#b6bfbb;font:9px ui-monospace,monospace;white-space:nowrap;max-width:190px;overflow:hidden;text-overflow:ellipsis }
.site-icon { width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--line);border-radius:5px;background:var(--ink-2);color:var(--paper);text-decoration:none;font-weight:800;cursor:pointer;position:relative }
.site-icon:hover { color:var(--lime);border-color:var(--teal-hi) }.notice-dot::after { content:"";position:absolute;right:5px;top:5px;width:5px;height:5px;background:var(--cut);border-radius:50% }
.site-lang { color:#b6bfbb;text-decoration:none;font:10px ui-monospace,monospace;padding:8px 4px }
.site-menu-wrap { position:relative }.site-menu { display:none;position:absolute;right:0;top:40px;width:190px;padding:6px;background:#101514;border:1px solid var(--line);border-radius:6px;box-shadow:0 18px 40px #0008 }
.site-menu.show { display:grid }.site-menu a,.site-menu button { text-align:left;padding:10px;border:0;background:transparent;color:#c8cfcc;text-decoration:none;font-size:11px;cursor:pointer }.site-menu a:hover,.site-menu button:hover { color:var(--lime);background:var(--lime-soft) }
.brand { display: flex; align-items: center; gap: 12px; color: var(--paper); text-decoration: none; letter-spacing: .06em; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-size: 15px; font-weight: 780; }
.brand small { color: var(--muted); font: 9px/1.7 ui-monospace, monospace; letter-spacing: .17em; }
.brand-mark { width: 31px; height: 31px; border: 1px solid var(--paper); position: relative; display: block; }
.brand-mark i { position: absolute; background: var(--lime); height: 2px; transform-origin: left center; }
.brand-mark i:nth-child(1) { width: 22px; transform: rotate(45deg); left: 7px; top: 6px; }
.brand-mark i:nth-child(2) { width: 14px; transform: rotate(-45deg); left: 4px; top: 23px; }
.brand-mark i:nth-child(3) { width: 16px; left: 8px; top: 15px; }
.engine-pill { border: 1px solid var(--line); border-radius: 99px; padding: 7px 11px; color: var(--muted); font: 9px ui-monospace, monospace; letter-spacing: .12em; display: flex; align-items: center; gap: 7px; }
.engine-pill span { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.ghost-link { color: var(--muted); font: 10px ui-monospace, monospace; letter-spacing: .14em; text-decoration: none; }
.export-top { border: 1px solid var(--lime); color: var(--lime); background: transparent; border-radius: 4px; height: 35px; padding: 0 15px; font: 700 10px ui-monospace, monospace; letter-spacing: .13em; cursor: pointer; }
.export-top span { margin-left: 15px; }
.export-top:disabled { opacity: .25; cursor: not-allowed; border-color: var(--muted); color: var(--muted); }
.login-gate { color:#202124 }.login-gate button { color:#fff }.login-gate img { object-fit:contain }
@media (max-width: 1180px) { .site-tabs { display:none }.engine-pill { display:none } }
@media (max-width: 680px) { .site-header { flex-wrap:wrap }.site-account { order:5;width:100%;max-width:none }.site-brand { margin-right:auto } }

.app-shell { display: grid; grid-template-columns: 326px minmax(0, 1fr); min-height: calc(100vh - 62px); }
.control-panel { border-right: 1px solid var(--line); padding: 27px 22px 34px; background: rgba(9,13,12,.76); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.eyebrow { color: var(--muted); font: 9px/1 ui-monospace, monospace; letter-spacing: .17em; }
.step-no { color: var(--lime); font: 12px ui-monospace, monospace; }

.dropzone { min-height: 132px; border: 1px dashed #4b5854; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px; cursor: pointer; background: rgba(255,255,255,.018); transition: .2s ease; text-align: center; padding: 15px; }
.dropzone:hover, .dropzone.dragging { border-color: var(--lime); background: var(--lime-soft); transform: translateY(-1px); }
.dropzone.has-file { border-style: solid; border-color: var(--teal-hi); background: rgba(12,98,90,.11); }
.dropzone input { display: none; }
.drop-icon { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--lime); font-size: 20px; font-weight: 200; }
.dropzone b { font-size: 13px; font-weight: 630; max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropzone > span:last-child { color: var(--muted); font: 9px/1.5 ui-monospace, monospace; }

.settings-block { margin-top: 23px; border-top: 1px solid var(--line); padding-top: 19px; }
.section-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 11px; font-weight: 650; }
.section-label span:last-child { color: #5c6864; font: 8px ui-monospace, monospace; letter-spacing: .16em; }
.field { display: grid; gap: 8px; margin-bottom: 14px; }
.field > span { color: #c7ceca; font-size: 10px; }
.field em { color: #56615e; float: right; font: normal 8px ui-monospace, monospace; letter-spacing: .13em; }
select { appearance: none; width: 100%; height: 39px; border: 1px solid var(--line); border-radius: 5px; padding: 0 32px 0 11px; color: var(--paper); background-color: var(--ink-2); background-image: linear-gradient(45deg, transparent 50%, var(--lime) 50%), linear-gradient(135deg, var(--lime) 50%, transparent 50%); background-position: calc(100% - 15px) 16px, calc(100% - 11px) 16px; background-size: 4px 4px; background-repeat: no-repeat; font-size: 10px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.switch-row { display: flex; align-items: center; gap: 12px; cursor: pointer; margin: 3px 0; }
.switch-row > span { flex: 1; display: grid; gap: 3px; }
.switch-row b { font-size: 11px; font-weight: 600; }
.switch-row small { color: var(--muted); font-size: 8px; }
.switch-row input { position: absolute; opacity: 0; }
.switch-row > i { width: 34px; height: 18px; border-radius: 20px; background: #303735; position: relative; transition: .2s; }
.switch-row > i::after { content: ""; width: 12px; height: 12px; background: #7b8581; border-radius: 50%; position: absolute; left: 3px; top: 3px; transition: .2s; }
.switch-row input:checked + i { background: var(--teal-hi); box-shadow: inset 0 0 0 1px rgba(186,255,57,.18); }
.switch-row input:checked + i::after { transform: translateX(16px); background: var(--lime); box-shadow: 0 0 8px rgba(186,255,57,.6); }

.range-field { display: grid; gap: 8px; margin-bottom: 16px; }
.range-field > span:first-child { display: flex; align-items: center; justify-content: space-between; }
.range-field b { font-size: 10px; font-weight: 550; }
.range-field output { color: var(--lime); background: var(--lime-soft); min-width: 39px; padding: 3px 5px; border-radius: 3px; text-align: center; font: 9px ui-monospace, monospace; }
input[type="range"] { width: 100%; height: 2px; appearance: none; background: linear-gradient(90deg, var(--teal-hi), var(--lime)); border-radius: 3px; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px; background: var(--lime); border: 2px solid var(--ink); box-shadow: 0 0 0 1px var(--lime), 0 0 8px rgba(186,255,57,.45); border-radius: 50%; cursor: pointer; }
.range-ends { display: flex; justify-content: space-between; color: #59635f; font: 8px ui-monospace, monospace; }
.range-ends i { font-style: normal; }
.check-row { display: flex; gap: 9px; align-items: center; color: #bbc3bf; font-size: 10px; margin: 10px 0; cursor: pointer; }
.check-row input { position: absolute; opacity: 0; }
.check-row i { display: grid; place-items: center; width: 15px; height: 15px; border: 1px solid #46504d; border-radius: 3px; color: transparent; font-style: normal; font-size: 10px; }
.check-row input:checked + i { background: var(--lime); border-color: var(--lime); color: var(--ink); }

.primary-button, .secondary-button { width: 100%; border: 0; cursor: pointer; transition: .2s; }
.primary-button { height: 48px; background: var(--lime); color: var(--ink); border-radius: 5px; margin-top: 25px; display: flex; justify-content: space-between; align-items: center; padding: 0 16px; font: 760 11px ui-monospace, monospace; letter-spacing: .08em; box-shadow: 0 8px 30px rgba(186,255,57,.08); }
.primary-button:hover:not(:disabled) { box-shadow: 0 8px 30px rgba(186,255,57,.2); transform: translateY(-1px); }
.primary-button:disabled { background: #2c3331; color: #616a67; cursor: not-allowed; box-shadow: none; }
.secondary-button { height: 37px; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; margin-top: 8px; font-size: 10px; }
.secondary-button:hover:not(:disabled) { color: var(--lime); border-color: var(--lime); }
.secondary-button:disabled { opacity: .35; cursor: not-allowed; }

.job-status { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.job-status > div { display: flex; align-items: center; gap: 7px; }
.job-status b, .job-status em { font: 8px ui-monospace, monospace; letter-spacing: .12em; }
.job-status em { margin-left: auto; color: var(--muted); font-style: normal; }
#statusDot { width: 5px; height: 5px; background: #5f6965; border-radius: 50%; }
.job-status.running #statusDot { background: var(--lime); box-shadow: 0 0 8px var(--lime); animation: pulse 1.2s infinite; }
.job-status.error #statusDot { background: var(--cut); }
@keyframes pulse { 50% { opacity: .3; } }
.job-status progress { appearance: none; width: 100%; height: 2px; border: 0; display: block; margin: 10px 0 8px; background: #27302d; }
.job-status progress::-webkit-progress-bar { background: #27302d; }
.job-status progress::-webkit-progress-value { background: var(--lime); transition: width .25s; }
.job-status small { color: var(--muted); font-size: 9px; }
#btnCancel { float: right; color: #a1aaa6; border: 0; border-bottom: 1px solid #5c6662; background: none; padding: 2px 0; font-size: 9px; cursor: pointer; }

.workspace { padding: 38px clamp(24px, 4vw, 64px) 70px; min-width: 0; }
.workspace-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 30px; }
.workspace-title { display:flex;align-items:baseline;gap:12px;min-width:0 }
.workspace-head h1 { white-space:nowrap;font-size:11px;line-height:1;letter-spacing:.01em;margin:0;font-weight:520;color:#929c98 }
.workspace-head h1 em { font-style: normal; color: var(--lime); }
.ae-script-trigger { flex:0 0 auto;min-height:27px;padding:0 10px;border:1px solid var(--lime);border-radius:4px;background:var(--lime);color:var(--ink);font:760 8px ui-monospace,monospace;letter-spacing:.05em;cursor:pointer;box-shadow:0 5px 18px rgba(186,255,57,.1) }
.ae-script-trigger:hover { filter:brightness(1.08);box-shadow:0 5px 20px rgba(186,255,57,.2) }
.summary-stats { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex: 0 0 auto; }
.summary-stats span { min-width: 82px; padding: 10px 14px; display: grid; gap: 4px; border-left: 1px solid var(--line); }
.summary-stats span:first-child { border-left: 0; }
.summary-stats b { font: 17px ui-monospace, monospace; }
.summary-stats small { color: var(--muted); font: 7px ui-monospace, monospace; letter-spacing: .13em; }

.viewer-card, .timeline-card { border: 1px solid var(--line); background: rgba(13,17,16,.7); border-radius: var(--radius); overflow: hidden; }
.viewer-toolbar { min-height: 42px; padding: 0 13px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); color: var(--muted); font: 8px ui-monospace, monospace; letter-spacing: .1em; }
.viewer-toolbar > span:last-child { justify-self: end; }
.pose-transport { display: flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid #27312e; border-radius: 5px; background: #090d0c; }
.pose-transport button { height: 25px; min-width: 62px; padding: 0 8px; border: 0; border-radius: 3px; color: #aab3af; background: #19201e; font: 7px ui-monospace, monospace; letter-spacing: .08em; cursor: pointer; }
.pose-transport button:hover:not(:disabled) { color: var(--ink); background: var(--lime); }
.pose-transport button:disabled { opacity: .25; cursor: default; }
.pose-transport > span { min-width: 96px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pose-transport b { color: var(--lime); font: 8px ui-monospace, monospace; }
.pose-transport em { color: #6f7a76; font: normal 7px ui-monospace, monospace; }
.viewer-stage { aspect-ratio: 16/8.4; min-height: 300px; max-height: 670px; background: #000; position: relative; display: grid; place-items: center; overflow: hidden; }
.viewer-stage video { position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:50% 50%;background:#000;display:block; }
.viewer-stage.empty video { display: none; }
.empty-viewer { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; }
.viewer-stage:not(.empty) .empty-viewer { display: none; }
.empty-viewer b { margin-top: 21px; font: 10px ui-monospace, monospace; letter-spacing: .2em; }
.empty-viewer p { color: #5e6965; font-size: 10px; line-height: 1.8; }
.target-glyph { width: 60px; height: 60px; border: 1px solid #26312e; border-radius: 50%; position: relative; }
.target-glyph::before, .target-glyph::after { content: ""; position: absolute; background: #34413d; }
.target-glyph::before { width: 84px; height: 1px; left: -13px; top: 29px; }
.target-glyph::after { height: 84px; width: 1px; top: -13px; left: 29px; }
.target-glyph i { position: absolute; border-radius: 50%; border: 1px solid var(--teal-hi); inset: 11px; }
.target-glyph i:nth-child(2) { inset: 22px; background: var(--lime); border: 0; box-shadow: 0 0 15px var(--lime); }
.viewer-corner { position: absolute; width: 19px; height: 19px; border-color: rgba(186,255,57,.42); border-style: solid; pointer-events: none; }
.corner-a { left: 12px; top: 12px; border-width: 1px 0 0 1px; }.corner-b { right: 12px; top: 12px; border-width: 1px 1px 0 0; }
.corner-c { left: 12px; bottom: 12px; border-width: 0 0 1px 1px; }.corner-d { right: 12px; bottom: 12px; border-width: 0 1px 1px 0; }

.timeline-card { margin-top: 14px; padding: 17px 17px 10px; }
.timeline-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.timeline-edit-actions { display:flex;gap:7px;margin-left:auto }.timeline-edit-actions button { border:1px solid var(--line);background:var(--ink-2);color:#c9d0cd;border-radius:4px;padding:7px 9px;font:8px ui-monospace,monospace;cursor:pointer }.timeline-edit-actions button:hover:not(:disabled) { border-color:var(--lime);color:var(--lime) }.timeline-edit-actions button:disabled { opacity:.3;cursor:not-allowed }
.timeline-edit-hint { margin:7px 0 0;color:var(--muted);font-size:9px;line-height:1.6 }
.timeline-head > div:first-child { display: grid; gap: 5px; }
.timeline-head b { font-size: 11px; font-weight: 550; }
.legend { display: flex; gap: 13px; color: var(--muted); font-size: 8px; }
.legend span::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-right: 5px; }
.legend .start { color: var(--lime); }.legend .accent { color: #f2f4ef; }.legend .end { color: #5ad6ca; }.legend .cut { color: var(--cut); }
.timeline-wrap { height: 132px; position: relative; border-top: 1px solid #242d2a; border-bottom: 1px solid #242d2a; }
#motionCanvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
#timelineEmpty { position: absolute; inset: 0; display: grid; place-items: center; color: #56605d; font-size: 9px; }
.timeline-foot { display: flex; justify-content: space-between; padding-top: 8px; color: #69736f; font: 8px ui-monospace, monospace; }

.poses-section { margin-top: 37px; }
.poses-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.poses-head h2 { margin: 7px 0 0; font-size: 22px; font-weight: 590; letter-spacing: -.03em; }
.selection-actions { display: flex; align-items: center; gap: 8px; }
.selection-actions button { color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 4px; padding: 6px 9px; font-size: 8px; cursor: pointer; }
.selection-actions button:hover:not(:disabled) { border-color: var(--lime); color: var(--lime); }
.selection-actions button:disabled { opacity: .3; cursor: not-allowed; }
.selection-actions span { color: var(--muted); font: 8px ui-monospace, monospace; margin-left: 8px; }
.selection-actions b { color: var(--lime); }
.pose-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 11px; }
.pose-empty { min-height: 150px; border: 1px dashed var(--line); border-radius: var(--radius); display: grid; place-items: center; color: #5d6864; font-size: 10px; grid-column: 1/-1; }
.pose-card { border: 1px solid var(--line); border-radius: 9px; background: #0e1312; overflow: hidden; cursor: pointer; transition: .18s; position: relative; }
.pose-card:hover { border-color: #56635f; transform: translateY(-2px); }
.pose-card.selected { border-color: rgba(186,255,57,.62); box-shadow: 0 0 0 1px rgba(186,255,57,.08) inset; }
.pose-card.active { box-shadow: 0 0 0 2px var(--paper) inset, 0 0 22px rgba(186,255,57,.09); }
.pose-image { aspect-ratio: 16/9; background: #000; overflow: hidden; position: relative; display:grid;place-items:center; }
.pose-image img { position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:contain;object-position:50% 50%;background:#000;filter:saturate(.88); }
.pose-card:not(.selected) .pose-image img { opacity: .42; filter: grayscale(.7); }
.pose-check { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 3px; border: 1px solid rgba(255,255,255,.55); background: rgba(7,10,10,.72); display: grid; place-items: center; font-size: 10px; color: transparent; }
.selected .pose-check { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.kind-badge { position: absolute; left: 8px; top: 8px; background: rgba(7,10,10,.8); color: var(--paper); border-left: 2px solid var(--paper); padding: 5px 7px; font: 7px ui-monospace, monospace; letter-spacing: .1em; }
.kind-start { border-color: var(--lime); color: var(--lime); }.kind-end { border-color: #5ad6ca; color: #5ad6ca; }.kind-cut { border-color: var(--cut); color: var(--cut); }
.kind-key_start { border-color: var(--lime); color: var(--lime); }.kind-key_end { border-color: #5ad6ca; color: #5ad6ca; }.kind-followup { border-color: #f5c451; color: #f5c451; }
.kind-manual { border-color:#f5c451;color:#f5c451 }
.pose-nudge { position: absolute; left: 50%; bottom: 7px; transform: translateX(-50%); display: flex; gap: 2px; padding: 3px; border: 1px solid rgba(255,255,255,.16); border-radius: 5px; background: rgba(5,8,7,.88); backdrop-filter: blur(8px); opacity: 1; transition: opacity .18s; }
.pose-card:hover .pose-nudge, .pose-card:focus-within .pose-nudge, .pose-nudge:has(.offset:not(:disabled)) { opacity: 1; }
.pose-nudge button { min-width: 37px; height: 23px; padding: 0 6px; border: 0; border-radius: 3px; background: #252d2a; color: #cbd2ce; font: 7px ui-monospace, monospace; cursor: pointer; }
.pose-nudge button:hover:not(:disabled) { background: var(--lime); color: var(--ink); }
.pose-nudge button.offset { min-width: 58px; color: var(--lime); background: var(--teal); }
.pose-nudge button:disabled { opacity: .34; cursor: default; }
.pose-info { display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; padding: 10px; }
.pose-info b { font-size: 11px; font-weight: 580; }
.pose-info time { color: var(--lime); font: 9px ui-monospace, monospace; }
.pose-info small { color: var(--muted); font: 8px ui-monospace, monospace; }
.pose-info em { color: #68736f; font: normal 8px ui-monospace, monospace; }

.toast { position: fixed; right: 20px; bottom: 20px; max-width: 370px; padding: 11px 15px; border: 1px solid var(--lime); border-radius: 5px; background: #111715; color: var(--paper); font-size: 10px; transform: translateY(30px); opacity: 0; pointer-events: none; transition: .22s; z-index: 50; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { border-color: var(--cut); }

.ae-script-dialog { width:min(520px,calc(100vw - 28px));padding:0;border:1px solid #3a4541;border-radius:8px;background:#0d1211;color:var(--paper);box-shadow:0 28px 90px rgba(0,0,0,.72) }
.ae-script-dialog::backdrop { background:rgba(2,5,4,.78);backdrop-filter:blur(4px) }
.ae-dialog-head { min-height:42px;padding:0 12px 0 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);font:8px ui-monospace,monospace;letter-spacing:.14em;color:var(--muted) }
.ae-dialog-head button { width:28px;height:28px;border:1px solid var(--line);border-radius:4px;background:#151b19;color:var(--paper);font-size:17px;cursor:pointer }
.ae-dialog-body { padding:26px }
.ae-dialog-body h2 { margin:9px 0 13px;font-size:24px;line-height:1.35;font-weight:590;letter-spacing:-.03em }
.ae-dialog-body > p { margin:0;color:#929d99;font-size:10px;line-height:1.8 }
.ae-dialog-body ol { list-style:none;padding:0;margin:20px 0;display:grid;border-top:1px solid var(--line) }
.ae-dialog-body li { display:flex;align-items:center;gap:12px;min-height:42px;border-bottom:1px solid var(--line);color:#b8c0bd;font-size:10px }
.ae-dialog-body li b { width:22px;color:var(--lime);font:9px ui-monospace,monospace }
.ae-download { min-height:48px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;border-radius:5px;background:var(--lime);color:var(--ink);text-decoration:none;font:760 10px ui-monospace,monospace;letter-spacing:.06em }
.ae-download:hover { filter:brightness(1.08) }
.ae-download i { font-style:normal;font-size:16px }
.ae-dialog-body > small { display:block;margin-top:10px;color:#65706c;font-size:8px;line-height:1.6 }

@media (max-width: 940px) {
  .app-shell { grid-template-columns: 1fr; }
  .control-panel { border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .panel-heading, .dropzone, .primary-button, .secondary-button, .job-status { grid-column: 1/-1; }
  .settings-block { margin-top: 18px; }
  .workspace { padding-top: 28px; }
}
@media (max-width: 640px) {
  .topbar { height: 62px; padding: 0 14px; }.engine-pill, .ghost-link { display: none; }
  .app-shell { min-height: calc(100vh - 62px); }.control-panel { display: block; padding: 22px 15px; }
  .workspace { padding: 26px 14px 50px; }.workspace-head { align-items: start; flex-direction: column; }.workspace-title { flex-wrap:wrap;gap:8px }.workspace-head h1 { font-size:10px }
  .summary-stats { width: 100%; }.summary-stats span { flex: 1; min-width: 0; }
  .viewer-toolbar { grid-template-columns: 1fr auto; padding: 6px 9px; }.viewer-toolbar > span:last-child { display: none; }.pose-transport { justify-self: end; }.pose-transport > span { min-width: 75px; }.pose-transport button { min-width: 51px; }
  .viewer-stage { min-height: 210px; }.timeline-head { align-items: start; gap: 12px; flex-direction: column; }
  .legend { flex-wrap: wrap; }.poses-head { align-items: start; flex-direction: column; }
  .selection-actions { width: 100%; flex-wrap: wrap; }.pose-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 430px) { .pose-grid { grid-template-columns: 1fr; } }
/* Compact workspace, clearer focus and touch-friendly frame selection. */
.workspace-head{min-height:44px;gap:18px;margin-bottom:16px}.workspace-title{display:flex;align-items:center}.viewer-toolbar{flex-wrap:wrap;gap:10px}.frame-transport{display:flex;gap:6px}.frame-transport button{min-width:42px;min-height:32px;border:1px solid #4b5e54;background:#18241e;color:#eef4ef;border-radius:5px;cursor:pointer}.frame-transport button:disabled{opacity:.4}.pose-card:focus-visible,button:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid #baff39;outline-offset:3px}.pose-check{padding:0;font:700 14px system-ui;cursor:pointer}.pose-check[aria-pressed=false]{opacity:.75;background:#18221d;color:#b3c2b8}.pose-check[aria-pressed=true]{opacity:1}.pose-info small{color:#a4b4ab}.pose-card:hover{border-color:#849c8d}.control-panel .section-label{color:#cbd8cf}.timeline-edit-hint{font-size:11px;line-height:1.7;color:#aebdb4}.site-tabs{overflow-x:auto;white-space:nowrap;min-width:0}.site-menu{width:220px;z-index:130}.workspace-title .ae-script-trigger{margin:0}@media(max-width:650px){.viewer-toolbar{padding:12px}.frame-transport{margin-left:auto}.pose-nudge button{min-height:34px}.workspace-head{align-items:center}.summary-stats{gap:10px}.pose-check{width:30px;height:30px}}
