
:root {
  --ap-bg:      #232326;
  --ap-col:     #2a2a2e;
  --ap-hover:   #3a3a42;
  --ap-active:  #4a3f78;
  --ap-text:    #e6e6ee;
  --ap-dim:     #8c8ca0;
  --ap-accent:  #a78bfa;
  --ap-border:  #3a3a44;
  --ap-dot:     #d6d6d6;
}
html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; }
body {
  background: var(--ap-bg); color: var(--ap-text);
  font: 12px -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  display: flex; flex-direction: column; user-select: none;
}
.ap-head { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px 6px; }
.ap-title { font-weight: 700; font-size: 13px; }
.ap-mode { color: var(--ap-dim); font-size: 11px; }
.ap-columns { flex: 1; display: flex; gap: 6px; padding: 0 10px; overflow-x: auto; overflow-y: hidden; }
.ap-col {
  width: 150px; flex-shrink: 0; background: var(--ap-col); border: 1px solid var(--ap-border);
  border-radius: 6px; padding: 4px 0; overflow-y: auto; max-height: 100%; box-sizing: border-box;
}
.ap-col.first { width: 175px; }
.ap-col.wide { width: 205px; }
.ap-col.narrow { width: 105px; }
.ap-col.mid { width: 150px; }
.ap-col.grid-col { width: auto; min-width: 150px; padding: 8px 10px; }
.ap-pv { position: relative; overflow: hidden; background: #000; border: 1px solid var(--ap-border); border-radius: 2px; margin: 8px auto 0; cursor: ew-resize; }
.ap-pv-img {
  position: absolute; left: 0; top: 0; transform-origin: 0 0;
  background: linear-gradient(135deg, #3a4a60, #8a6a50) center / 100% 100% no-repeat;
}
.ap-pv-img[style*="url("] { background-color: #111; }
.ap-pv-tint { position: absolute; inset: 0; mix-blend-mode: soft-light; opacity: 0; pointer-events: none; }
.ap-pv-vig { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(0,0,0,1) 100%); }
.ap-pv-bar { position: absolute; background: #000; pointer-events: none; }
.ap-tl { position: relative; height: 14px; margin: 7px auto 0; background: #18181b; border: 1px solid var(--ap-border); border-radius: 2px; cursor: ew-resize; }
.ap-tl-clip { position: absolute; border-right: 1px solid #18181b; box-sizing: border-box; opacity: .85; }
.ap-tl-fx { position: absolute; top: 0; bottom: 0; background: rgba(167, 139, 250, .14); border-top: 2px solid var(--ap-accent); box-sizing: border-box; pointer-events: none; }
.ap-tl-arrow { position: absolute; top: -12px; width: 12px; margin-left: -6px; text-align: center; font-size: 10px; line-height: 10px; color: var(--ap-accent); pointer-events: none; }
.ap-tl-ph { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: #4fa3ff; pointer-events: none; }
.ap-tl-cursor { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.5); pointer-events: none; }
.ap-tl-more { position: absolute; right: -12px; top: 0; color: var(--ap-dim); font-size: 11px; line-height: 14px; }
.ap-col-title { color: var(--ap-dim); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px 6px; }
.ap-item { display: flex; align-items: center; gap: 6px; padding: 5px 10px; cursor: pointer; white-space: nowrap; }
.ap-item:hover { background: var(--ap-hover); }
.ap-item.open { background: var(--ap-active); }
.ap-item .ap-check { width: 12px; color: var(--ap-accent); font-weight: 700; }
.ap-item .ap-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.ap-item .ap-arrow { color: var(--ap-dim); }
.ap-sep { height: 1px; background: var(--ap-border); margin: 4px 0; }
.ap-frame {
  position: relative; background: #111 center / 100% 100% no-repeat; border: 1px solid var(--ap-border);
  border-radius: 2px; margin: 8px auto 0; cursor: crosshair; overflow: visible;
}
.ap-guide { position: absolute; display: none; background: rgba(255, 255, 255, .45); pointer-events: none; }
.ap-guide.v { top: 0; bottom: 0; width: 1px; margin-left: -0.5px; }
.ap-guide.h { left: 0; right: 0; height: 1px; margin-top: -0.5px; }
.ap-mark {
  position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  box-sizing: border-box; pointer-events: none;
}
.ap-mark.current { border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6); }
.ap-mark.hover { display: none; background: rgba(167, 139, 250, .55); border: 2px solid var(--ap-accent); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6); }
.ap-grid-label { color: var(--ap-dim); font-size: 10px; text-align: center; margin-top: 6px; min-height: 13px; }
.ap-foot { color: var(--ap-dim); font-size: 10px; padding: 6px 12px 8px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #44444c; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #5a5a64; }
.ap-apply { margin: 6px auto 0; width: 90px; padding: 4px 0; text-align: center; border-radius: 4px; background: var(--ap-active); color: var(--ap-text); font-weight: 600; cursor: pointer; }
.ap-apply:hover { background: var(--ap-accent); color: #1b1b1f; }
.ap-item.locked { box-shadow: inset 3px 0 0 var(--ap-accent); }
.ap-pv-white { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.ap-tl-cut { position: absolute; top: -4px; bottom: -4px; width: 0; margin-left: -1px; border-left: 2px dashed #f0c040; pointer-events: none; }
body.grid-view .ap-columns { overflow-y: auto; overflow-x: hidden; display: block; }
.ap-grid-wrap { padding: 0 2px 8px; }
.ap-grid-fam { color: var(--ap-dim); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; margin: 10px 2px 6px; }
.ap-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.ap-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; background: var(--ap-col);
  border: 1px solid var(--ap-border); border-radius: 6px; box-sizing: content-box; }
.ap-tile:hover { border-color: var(--ap-accent); }
.ap-tile.last { border-color: #6d5bb8; }
.ap-tile-pv { margin: 0; cursor: pointer; }
.ap-tile-badge { position: absolute; top: 4px; left: 4px; background: var(--ap-accent); color: #111; font-size: 9px; font-weight: 700;
  padding: 1px 5px; border-radius: 3px; pointer-events: none; }
.ap-tile-name { font-size: 11px; font-weight: 600; text-align: center; }
.ap-chips { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; }
.ap-chip { padding: 1px 6px; border: 1px solid var(--ap-border); border-radius: 9px; font-size: 10px; color: var(--ap-dim); cursor: pointer; }
.ap-chip:hover { background: var(--ap-hover); color: var(--ap-text); }
.ap-chip.on { border-color: var(--ap-accent); color: var(--ap-text); }
.ap-chips.big .ap-chip { font-size: 12px; padding: 0 7px; }
.ap-chip.sw { width: 13px; height: 13px; padding: 0; border-radius: 50%; border: 2px solid transparent; box-sizing: border-box; }
.ap-chip.sw.on { border-color: var(--ap-text); }
.ap-chip.sw:hover { border-color: var(--ap-accent); }
.ap-trbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 -2px 2px; padding: 4px 2px 8px; font-size: 11px; color: var(--ap-dim);
            position: sticky; top: 0; z-index: 5; background: #232323; }   
.ap-seg { display: inline-flex; border: 1px solid var(--ap-border); border-radius: 12px; overflow: hidden; }
.ap-seg .ap-seg-btn { border: 0; border-radius: 0; }
.ap-seg-btn { padding: 3px 10px; cursor: pointer; color: var(--ap-dim); border: 1px solid var(--ap-border); border-radius: 12px; }
.ap-seg-btn:hover { background: var(--ap-hover); color: var(--ap-text); }
.ap-seg-btn.on { background: var(--ap-accent); color: #fff; }
.ap-perseg { cursor: pointer; color: var(--ap-text); }
.ap-perseg input { vertical-align: middle; margin: 0 2px 0 0; }
.ap-segstate { color: var(--ap-text); }
.ap-menu { position: fixed; z-index: 50; min-width: 210px; padding: 4px 0; background: #2b2b2b; border: 1px solid var(--ap-border); border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.5); font-size: 12px; }
.ap-menu-item { padding: 6px 12px; color: var(--ap-text); cursor: pointer; }
.ap-menu-item:hover { background: var(--ap-accent); color: #fff; }
.ap-menu-item.off { color: var(--ap-dim); cursor: default; }
.ap-menu-item.off:hover { background: none; color: var(--ap-dim); }
#ap-toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(20px); opacity: 0; background: #7c5bf2; color: #fff; padding: 7px 14px; border-radius: 999px; font: 600 12px "Segoe UI", -apple-system, Arial, sans-serif; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 99; }
#ap-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.ap-tile { position: relative; }
.ap-tile > .ap-sc-badge { position: absolute; top: 6px; right: 6px; z-index: 3; }
.ap-sc-badge { display: none; font: 700 10px "Segoe UI", -apple-system, Arial, sans-serif; color: #fff; background: rgba(124,91,242,.9); border-radius: 5px; padding: 1px 5px; margin-left: 6px; white-space: nowrap; }
.ap-menu-sep { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: #a0a0b8; padding: 8px 10px 4px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 4px; white-space: nowrap; }
.ap-menu-item.on { color: #c8b8ff; }
.ap-sc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 0; }
.ap-embed body { background: transparent !important; }
.ap-embed .ap-head { display: none; }
.ap-where { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px 8px; }
.ap-where-b { font: 600 12px -apple-system, 'Segoe UI', Arial, sans-serif; color: #e9e7f5; background: #3a3a44; border: 1.5px solid rgba(255,255,255,.14);
    border-radius: 999px; padding: 6px 14px; cursor: pointer; box-shadow: 0 2px 0 rgba(0,0,0,.3); }
.ap-where-b:hover { background: #474753; }
.ap-where-b.on { background: #f07a5a; border-color: rgba(255,255,255,.35); color: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.35), 0 0 0 3px rgba(240,122,90,.2); }
.ap-where-msg { flex: 1 1 100%; font-size: 11.5px; color: #b9b6cc; padding-left: 2px; }
.ap-where-msg.err { color: #ffb3a8; }
.ap-empty { margin: 30px auto; text-align: center; max-width: 320px; }
.ap-empty-t { font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.ap-empty-d { color: var(--ap-dim); margin-bottom: 14px; line-height: 1.45; }
.ap-empty-btn { background: linear-gradient(100deg, #2fc4b2, #8b6cf0); color: #fff; border: none; border-radius: 999px; padding: 8px 18px; font-weight: 800; cursor: pointer; }
.ap-zoom-col { padding: 8px 12px !important; display: flex; flex-direction: column; gap: 10px; overflow-x: hidden !important; box-sizing: border-box; }
.ap-zoom-col * { box-sizing: border-box; max-width: 100%; }
.ap-zoom-v { font-size: 22px; font-weight: 800; text-align: center; color: #fff; }
.ap-zoom-sl { width: 100%; accent-color: #f07a5a; cursor: pointer; }
.ap-zoom-row { display: flex; align-items: center; gap: 6px; justify-content: center; }
.ap-zoom-num { width: 64px; background: #22222a; color: #fff; border: 1.5px solid rgba(255,255,255,.18); border-radius: 8px; padding: 3px 6px; font-size: 12px; }
.ap-zoom-pc { color: var(--ap-dim); }
.ap-zoom-marks { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.ap-zoom-mark { font-size: 11px; color: #e9e7f5; background: #3a3a44; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 3px 8px; cursor: pointer; }
.ap-zoom-mark.on, .ap-zoom-mark:hover { background: #f07a5a; color: #fff; }
.ap-stack .ap-columns { flex-direction: column; gap: 8px; overflow-x: hidden; overflow-y: auto; padding-bottom: 8px; }
.ap-stack .ap-col.first, .ap-stack .ap-col.wide:not(.ap-optrow .ap-col) { width: auto; max-height: none; overflow: visible; display: flex; flex-wrap: wrap;
  align-items: center; gap: 6px; padding: 8px 10px; flex-shrink: 0; }
.ap-stack .ap-col.first > .ap-col-title, .ap-stack .ap-col.wide:not(.ap-optrow .ap-col) > .ap-col-title { width: 100%; padding: 0 0 2px; }
.ap-stack .ap-col.first > .ap-sep { display: none; }
.ap-stack .ap-col.first > .ap-item, .ap-stack .ap-col.wide:not(.ap-optrow .ap-col) > .ap-item { border: 1.5px solid var(--ap-border); border-radius: 999px; padding: 4px 12px; gap: 4px; }
.ap-stack .ap-col.first > .ap-item .ap-arrow, .ap-stack .ap-col.wide:not(.ap-optrow .ap-col) > .ap-item .ap-arrow { display: none; }
.ap-stack .ap-col.first > .ap-item .ap-check:empty, .ap-stack .ap-col.wide:not(.ap-optrow .ap-col) > .ap-item .ap-check:empty { display: none; }
.ap-stack .ap-col.first > .ap-item.open, .ap-stack .ap-col.wide:not(.ap-optrow .ap-col) > .ap-item.open { border-color: var(--ap-accent); }
.ap-stack .ap-optrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: stretch; flex-shrink: 0; }
.ap-stack .ap-optrow > .ap-col { max-height: none; }
.ap-stack .ap-optrow > .ap-col.narrow, .ap-stack .ap-optrow > .ap-col.mid { width: auto; min-width: 105px; }
.ap-stack .ap-optrow .ap-item .ap-arrow { display: none; }
.ap-zoom-col { width: 124px !important; min-width: 0 !important; gap: 7px; }
.ap-zoom-v { font-size: 16px; }
.ap-zoom-row { gap: 4px; }
.ap-zoom-num { width: 52px; font-size: 11px; padding: 2px 5px; }
.ap-zoom-marks { gap: 4px; }
.ap-zoom-mark { font-size: 10px; padding: 2px 6px; }
.ap-embed .ap-foot { font-size: 10px; padding: 3px 34px 4px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .8; flex-shrink: 0; }
.ap-tile-pv { position: relative; overflow: hidden; }
.ap-tile-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3; pointer-events: none; background: #000; }
.ap-tile-badge { z-index: 4; }
.ap-zoom-t { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ap-dim); margin-top: 2px; }
.ap-zoom-col .ap-zoom-v { display: none; }
.ap-zoom-col { gap: 5px; }
.ap-zr { position: relative; height: 18px; margin: 4px 8px 0; cursor: pointer; }
.ap-zr::before { content: ''; position: absolute; left: 0; right: 0; top: 8px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.22); }
.ap-zr-fill { position: absolute; top: 8px; height: 2px; background: #f07a5a; }
.ap-zr-h { position: absolute; top: 2px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; border: 3px solid #f07a5a; box-sizing: border-box; }
.ap-zr-h.lo { border-color: #ffb199; }
.ap-zr-nums { display: flex; justify-content: space-between; gap: 6px; }
.ap-zr-num { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ap-zr-num .ap-zoom-num { width: 50px; text-align: center; }
.ap-zr-marks { display: flex; align-items: stretch; justify-content: center; gap: 6px; }
.ap-zr-mcol { display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.ap-zr-sep { width: 1px; background: rgba(255,255,255,.18); }
.ap-zoom-col { width: 140px !important; }
.ap-zs-col { gap: 3px; }
.ap-zs-row { display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.ap-zs-badge { min-width: 30px; text-align: center; font-size: 10px; font-weight: 800; border-radius: 6px; padding: 2px 4px; color: #fff; background: #3a3a44; }
.ap-zs-badge.even { background: #2fc4b2; color: #10201e; }
.ap-zs-badge.odd { background: #8b6cf0; }
.ap-zs-row .ap-zoom-num { width: 50px; }
.ap-zs-marks { display: flex; flex-wrap: wrap; gap: 3px; }
.ap-zs-marks .ap-zoom-mark { padding: 1px 5px; font-size: 10px; }
.ap-zs-note { font-size: 10px; color: var(--ap-dim); line-height: 1.35; margin-top: 4px; }
.ap-zs-col { width: 196px !important; }
.ap-zs-mode { display: flex; gap: 3px; margin-bottom: 2px; }
.ap-zs-modeb { flex: 1; text-align: center; font-size: 10px; font-weight: 700; padding: 3px 4px; border-radius: 999px; cursor: pointer; border: 1px solid rgba(255,255,255,.16); color: #cfcde0; white-space: nowrap; }
.ap-zs-modeb.on { background: #f07a5a; border-color: #f07a5a; color: #fff; }
.ap-zs-row .ap-zoom-num { width: 46px; padding: 2px 3px; }
.ap-zoom-num.dim { opacity: .55; }
.ap-zs-arrow { color: var(--ap-dim); font-size: 11px; }
.ap-zs-link { cursor: pointer; font-size: 11px; width: 16px; text-align: center; opacity: .55; }
.ap-zs-link.on { opacity: .9; }
.ap-zs-link:hover { opacity: 1; }
.ap-zs-badge.start { background: #555566; }
.ap-where { padding: 6px 10px 5px; gap: 6px; flex-wrap: nowrap; }
.ap-where-msg { flex: 1 1 auto; min-width: 0; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 4px; }
.ap-s2-page .ap-head, .ap-s2-page .ap-foot { display: none; }
.ap-s2-page .ap-columns { padding: 0 !important; gap: 0 !important; }
.ap-s2 { display: flex; flex-direction: column; min-height: 100%; font-size: 11px; }
.ap-where-edit { display: flex; align-items: center; gap: 6px; flex: 0 1 auto; min-width: 0; margin-left: auto; padding: 3px 4px 3px 9px;
  background: #2b3a38; border: 1px solid #2fc4b2; border-radius: 999px; }
.ap-where-edit-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.ap-where-edit-t b, .ap-where-edit-t span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-where-edit-t b { color: #fff; font-size: 10.5px; }
.ap-where-edit-t span { color: #a9e6dd; font-size: 9.5px; }
.ap-where-edit .ap-s2-ghost { flex: 0 0 auto; }
.ap-where-msg.with-edit { flex: 1 1 60px; }
.ap-s2-edit { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #2b3a38; border-bottom: 1px solid #2fc4b2;
  position: sticky; top: 0; z-index: 6; }   
.ap-s2-edit-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ap-s2-edit-t b { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-s2-edit-t span { color: #a9e6dd; font-size: 10px; }
.ap-s2-ghost { font: 600 10.5px 'Segoe UI', sans-serif; color: #cfcde0; background: transparent; border: 1px solid #4b6a66; border-radius: 999px; padding: 3px 9px; cursor: pointer; white-space: nowrap; }
.ap-s2-pick { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.ap-s2-fam { font: 700 10.5px 'Segoe UI', sans-serif; color: #e9e7f5; background: #34343c; border: 1px solid #45454f; border-radius: 6px; padding: 3px 8px; cursor: pointer; }
.ap-s2-fam.on { color: #10201e; background: #2fc4b2; border-color: #2fc4b2; }
.ap-s2-presets { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.ap-s2-presets .ap-s2-h { display: none; }
.ap-s2-pill { position: relative; font: 600 11px 'Segoe UI', sans-serif; color: #cfcde0; background: #2c2c33; border: 1px solid #3c3c45; border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.ap-s2-pill:hover { background: #3a3a44; }
.ap-s2-pill.on { color: #fff; background: #45454f; border: 1.5px solid #f07a5a; font-weight: 700; }
.ap-s2-pill .ap-sc-badge { margin-left: 5px; }
.ap-s2-body { flex: 1; display: flex; gap: 8px; padding: 8px; align-items: flex-start; }
.ap-s2-famlist, .ap-s2-presets.col { display: none; }
.ap-s2-set { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ap-s2-hint { color: #8f8ca6; padding: 6px 2px; }
.ap-s2-row { display: flex; align-items: flex-start; gap: 6px; }
.ap-s2-k { width: 62px; flex-shrink: 0; color: #a9a6bd; font-weight: 700; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; padding-top: 4px; }
.ap-s2-vals { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.ap-s2-v { font: 600 10.5px 'Segoe UI', sans-serif; color: #e9e7f5; background: #34343c; border: 0; border-radius: 999px; padding: 3px 8px; cursor: pointer; }
.ap-s2-v:hover { background: #45454f; }
.ap-s2-v.on { color: #fff; background: #d9603f; }
.ap-s2-set .ap-col { width: auto !important; min-width: 0 !important; max-height: none !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.ap-s2-set .ap-col-title { padding: 0 0 4px; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: #a9a6bd; }
.ap-s2-side { flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.ap-s2-tabs { display: flex; gap: 2px; background: #1b1b1f; border-radius: 999px; padding: 2px; }
.ap-s2-tab { flex: 1; font: 600 10px 'Segoe UI', sans-serif; color: #a9a6bd; background: transparent; border: 0; border-radius: 999px; padding: 2px 8px; cursor: pointer; }
.ap-s2-tab.on { color: #fff; background: #45454f; font-weight: 700; }
.ap-s2-side .ap-col { padding: 0 !important; border: 0 !important; background: transparent !important; max-height: none !important; width: auto !important; }
.ap-s2-side .ap-col-title { display: none; }
.ap-s2-anchor, .ap-s2-prev { display: none !important; }
.ap-s2-anchor.show, .ap-s2-prev.show { display: flex !important; flex-direction: column; gap: 3px; }
.ap-s2-bar { position: sticky; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-top: 1px solid rgba(255,255,255,.08); background: var(--ap-bg, #26262b); margin-top: auto; }
.ap-s2-desc { flex: 1; min-width: 0; color: #a9a6bd; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-s2-apply { font: 700 12px 'Segoe UI', sans-serif; color: #fff; background: #d9603f; border: 0; border-radius: 999px; padding: 6px 18px; min-height: 30px; cursor: pointer; }
.ap-s2-apply:hover { background: #e8714f; }
.ap-s2-apply:disabled { opacity: .45; cursor: default; }
.ap-s2-apply.upd { color: #10201e; background: #2fc4b2; }
.ap-s2-large .ap-s2-pick { display: none; }
.ap-s2-large .ap-s2-body { padding: 0; gap: 0; align-items: stretch; }
.ap-s2-large .ap-s2-famlist, .ap-s2-large .ap-s2-presets.col { display: flex; flex-direction: column; gap: 2px; width: 140px; flex-shrink: 0; padding: 8px; border-right: 1px solid rgba(255,255,255,.08); flex-wrap: nowrap; }
.ap-s2-large .ap-s2-presets.col .ap-s2-h, .ap-s2-large .ap-s2-famlist .ap-s2-h { display: block; }
.ap-s2-h { font-size: 10px; font-weight: 700; color: #8f8ca6; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 3px; }
.ap-s2-li { text-align: left; font: 600 11.5px 'Segoe UI', sans-serif; color: #cfcde0; background: transparent; border: 0; border-radius: 6px; padding: 5px 8px; cursor: pointer; }
.ap-s2-li:hover { background: #34343c; }
.ap-s2-li.on { color: #10201e; background: #2fc4b2; font-weight: 700; }
.ap-s2-li.plain { margin-top: 6px; color: #8f8ca6; font-size: 10.5px; }
.ap-s2-large .ap-s2-presets.col .ap-s2-pill { border-radius: 6px; text-align: left; }
.ap-s2-large .ap-s2-set { padding: 10px; }
.ap-s2-large .ap-s2-side { padding: 10px; border-left: 1px solid rgba(255,255,255,.08); flex-direction: row; flex-wrap: wrap; align-content: flex-start; gap: 10px; }
.ap-s2-large .ap-s2-tabs { display: none; }
.ap-s2-large .ap-s2-anchor, .ap-s2-large .ap-s2-prev { display: flex !important; flex-direction: column; gap: 3px; }
.ap-s2-large .ap-s2-side .ap-col-title { display: block; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: #8f8ca6; padding: 0 0 3px; }
.ap-s2-large .ap-s2-famlist, .ap-s2-large .ap-s2-presets.col { width: 118px; }
.ap-s2-large .ap-s2-set { min-width: 210px; }
.ap-s2-large .ap-s2-side { flex-direction: column; flex-wrap: nowrap; width: 214px; gap: 8px; overflow-y: auto; }
.ap-s2-large .ap-s2-tabs { display: flex; }
.ap-s2-large .ap-s2-anchor:not(.show), .ap-s2-large .ap-s2-prev:not(.show) { display: none !important; }
.ap-s2-large .ap-s2-side .ap-col-title { display: none; }
.ap-zs-list { display: flex; flex-direction: column; gap: 6px; }
.ap-zs-zone { border-left: 3px solid #2fc4b2; background: #2a2a31; border-radius: 6px; padding: 5px 8px 7px 7px; display: flex; flex-direction: column; gap: 6px; }
.ap-zs-zone .ap-zs-row { margin-top: 0; }
.ap-zs-badge { color: #10201e !important; }
.ap-zs-joined { font-size: 9.5px; color: #8f8ca6; font-style: italic; }
.ap-zs-line { position: relative; height: 14px; margin: 0 7px; cursor: pointer; }
.ap-zs-line::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.18); }
.ap-zs-fill { position: absolute; top: 6px; height: 2px; }
.ap-zs-h { position: absolute; top: 1px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; box-sizing: border-box; border: 3px solid #2fc4b2; }
.ap-zs-h.s { background: #1b1b1f; }
.ap-zs-h.e { background: #ffffff; }
@media (max-width: 759px) {
  .ap-s2-large .ap-s2-famlist, .ap-s2-large .ap-s2-presets.col { width: 96px; padding: 6px; }
  .ap-s2-large .ap-s2-li, .ap-s2-large .ap-s2-presets.col .ap-s2-pill { font-size: 10.5px; padding: 4px 6px; }
  .ap-s2-large .ap-s2-set { min-width: 170px; padding: 8px; }
  .ap-s2-large .ap-s2-side { width: 170px; padding: 8px; }
}
@media (max-width: 759px) {
  .ap-s2-large .ap-s2-famlist, .ap-s2-large .ap-s2-presets.col { width: auto; min-width: 0; padding: 6px 4px; }
  .ap-s2-large .ap-s2-li { font-size: 11.5px; padding: 4px 7px; }
  .ap-s2-large .ap-s2-presets.col .ap-s2-pill { font-size: 11px; padding: 3px 8px; }
  .ap-s2-large .ap-s2-set { min-width: 0; flex: 1 1 auto; }
}
.ap-s2-live { font: 700 11px 'Segoe UI', sans-serif; color: #cfcde0; background: transparent; border: 1.5px solid #45454f; border-radius: 999px; padding: 4px 12px; min-height: 28px; cursor: pointer; }
.ap-s2-live::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #6b6880; margin-right: 6px; vertical-align: 1px; }
.ap-s2-live.on { color: #fff; border-color: #e5484d; }
.ap-s2-live.on::before { background: #e5484d; box-shadow: 0 0 0 3px rgba(229,72,77,.25); }
.ap-s2-live:disabled { opacity: .4; cursor: default; }
.ap-s2-set { flex: 0 1 300px; min-width: 170px; }
.ap-s2-side { flex: 1 1 auto; min-width: 130px; }
.ap-s2-large .ap-s2-set { flex: 0 1 300px; min-width: 170px; }
.ap-s2-large .ap-s2-side { flex: 1 1 auto; width: auto; min-width: 140px; }
@media (max-width: 759px) { .ap-s2-large .ap-s2-set { min-width: 170px; } .ap-s2-large .ap-s2-side { width: auto; } }
.ap-s2-apply.done { background: #3a3a44; color: #7fe3d6; }
.ap-s2-apply.done:hover { background: #45454f; }
.ap-s2-side, .ap-s2-large .ap-s2-side { flex-grow: 1; flex-shrink: 0; }
.ap-where { padding-bottom: 2px; }
.ap-s2-large .ap-s2-side { padding-top: 4px; gap: 4px; }
.ap-zs-h.s.linked { width: 8px !important; height: 8px !important; margin-left: -4px; top: 3px; border-width: 1px !important; }
.ap-zs-h.s.unlinked { border-style: dashed !important; background: transparent !important; }
.ap-zs-h.s.snap { box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.ap-zs-ghost { position: absolute; top: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.5); z-index: 0; }
.ap-zclip { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ap-zrect { position: absolute; box-sizing: border-box; pointer-events: none; }
.ap-zrect.start { box-shadow: 0 0 0 999px rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.7); }
.ap-zrect.end { border: 2px dashed #fff; }
.ap-zchips { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 3px; padding: 4px 4px 5px; }   
.ap-zchip { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; border: 2px solid rgba(255,255,255,.35); background: transparent;
  color: #fff; font-family: inherit; font-weight: 700; font-size: 11px; line-height: 16px; cursor: pointer; box-sizing: border-box; }
.ap-zchip.all { color: #e8e8f4; }
.ap-zchip.all.on { background: rgba(255,255,255,.18); border-color: #fff; }
.ap-zchip.on { box-shadow: 0 0 0 2px #1b1b1f, 0 0 0 3px #fff; }
.ap-zall { display: block; margin: 6px auto 0; }
.ap-zchips .ap-zall { display: inline-block; margin: 0 4px 0 0; padding: 1px 9px; font-size: 10.5px; line-height: 14px; }   
.ap-zchip.same { outline: 1.5px dashed #fff; outline-offset: 2px; }
.ap-zchip.cut { position: relative; }
.ap-zchip.cut::before { content: ''; position: absolute; left: -5px; top: 3px; bottom: 3px; width: 2px; border-radius: 1px; background: rgba(255,255,255,.35); }
.ap-zchip.cut.snap::before { background: #fff; }
.ap-zsnap { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: 2px; font-size: 10px; color: #b9b6cc; }
.ap-zsnap-k { margin-right: 2px; }
.ap-zsnap-b { font-family: inherit; font-size: 10.5px; font-weight: 600; color: #e8e8f4; background: transparent; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 2px 9px; cursor: pointer; }
.ap-zsnap-b.on { background: #f07a5a; border-color: #f07a5a; color: #fff; }
.ap-zhint { font-size: 9.5px; }
.ap-frame.live > .ap-zclip:not(.live), .ap-frame.live > .ap-mark, .ap-frame.live > .ap-guide { display: none !important; }
.ap-zclip.live { z-index: 3; }
.ap-zclip.live .ap-zrect.start { border-width: 2px; }
.ap-zlive-t { position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 4px; background: rgba(0,0,0,.7); color: #fff; font-size: 10px; font-weight: 700; line-height: 15px; }
.ap-zoom-num.linked { opacity: .55; cursor: text; border-style: dashed; }
.ap-zs-joined i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; vertical-align: 1px; }
.ap-zs-match { font-weight: 600; font-size: 11px; font-family: inherit; color: #e8e8f4; background: transparent; border: 1px solid; border-radius: 999px; padding: 2px 9px; cursor: pointer; margin-left: 6px; }
.ap-zs-match:hover { background: rgba(255,255,255,.08); }
.ap-zs-line { margin-bottom: 12px; }
.ap-zs-k { position: absolute; top: 15px; width: 14px; height: 12px; margin-left: -7px; padding: 0; border: 0; border-radius: 3px;
  background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: .7; z-index: 2; }
.ap-zs-k:hover { opacity: 1; background: rgba(255,255,255,.08); }
.ap-zs-k.ease { opacity: 1; }
.ap-zs-k svg { display: block; pointer-events: none; }
.ap-embed .ap-s2-bar, .ap-embed .ap-foot { padding-left: 42px; }
.ap-fix { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 3px 4px 3px 12px; background: #3a2a24; border: 1.5px solid #f07a5a; border-radius: 999px; min-height: 28px; box-sizing: border-box; }
.ap-fix-t { color: #ffb39e; font: 700 11.5px 'Segoe UI', sans-serif; white-space: nowrap; }
.ap-fix-b { font: 700 11.5px 'Segoe UI', sans-serif; color: #fff; background: #d9603f; border: 0; border-radius: 999px; padding: 4px 13px; min-height: 24px; cursor: pointer; white-space: nowrap; }
.ap-fix-b:hover { background: #e8714f; }
.ap-fix-b:disabled { opacity: .5; cursor: default; }
.ap-trbar .ap-fix { margin-right: 8px; }
.ap-trfix { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; padding: 6px 8px; border-top: 1px solid rgba(255,255,255,.08); background: var(--ap-bg, #26262b); }
.ap-embed .ap-trfix { padding-left: 42px; }
