/* SaaSmotion panel: LayerLift's own stylesheet, so the two are one family. Only the accent colours differ: blue here. */
/* The script draws with Adobe Clean (After Effects' interface font). Every Creative Cloud install has it in the
   Creative Cloud app's folder, so the panel uses that copy (it is not shipped); otherwise the system font. */
@font-face { font-family: "LL UI"; font-weight: 400 500; src: local("Adobe Clean"),
    local("AdobeClean-Regular"); }
@font-face { font-family: "LL UI"; font-weight: 600 800; src: local("Adobe Clean Bold"),
    local("AdobeClean-Bold"); }
:root {
  --bg: #1B1C21;
  --bar: #17181C;
  --card: #23242B;
  --input: #1A1B20;
  --line: #373842;
  --button: #2D2E37;
  --buttonHi: #363743;
  --badge: #1C2B4B;
  --accent: #2F6FED;
  --accentHi: #4A86F5;
  --accentText: #7EA8FF;
  --text: #EDEDF3;
  --dim: #A3A4B2;
  --faint: #8A8C99;
  --ok: #4FD18B;
  --err: #FF6B6E;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); }
body {
  font-family: "LL UI", -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, sans-serif;
  font-size: 9px; line-height: 12px; color: var(--text); overflow: hidden;
  -webkit-font-smoothing: antialiased; user-select: none; cursor: default;
}
body.uxp { font-family: "LL UI Plugin", "LL UI", -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, sans-serif; } /* Photoshop: loaded by js/bridge-uxp.js */
button, select, input { font: inherit; color: inherit; outline: none; }
button { border: 0; background: none; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; stroke: none; }
.hidden { display: none !important; }
body.docapp .ae-only, body:not(.docapp) .doc-only { display: none !important; }
body.uxp .cep-only, body:not(.uxp) .uxp-only { display: none !important; }
.link { color: var(--accentText); font-size: 9px; margin-left: 8px; white-space: nowrap; }
.link:hover { text-decoration: underline; }

#app { display: flex; flex-direction: column; height: 100%; }
#scroll { flex: 1; overflow-y: auto; overflow-y: overlay; padding: 9px 9px 0; }
#scroll::-webkit-scrollbar { width: 6px; }
#scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

/* header (the script: head margins 3/11/8/9, 30 pt logo, 17 px title over 10 px subtitle) */
.head { display: flex; align-items: center; height: 56px; padding: 11px 8px 9px 3px; margin-bottom: 6px; }
.tile { width: 30px; height: 30px; border-radius: 8px; background: var(--badge); display: grid; place-items: center; flex: none; }
.tile .ico { width: 22px; height: 22px; color: var(--accentText); stroke-width: 1.5; }
.titles { flex: 1; min-width: 0; margin-left: 10px; }
.title { font-size: 17px; font-weight: 700; line-height: 23px; }
.subtitle { font-size: 10px; line-height: 13px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.help { width: 17px; height: 17px; color: var(--dim); flex: none; }
.help:hover { color: var(--text); }
.help svg { width: 17px; height: 17px; stroke-width: 1.5; }

/* engine card: shown until the engine is installed (js/main.js runs engine/install_engine.*) */
.engcard { border-color: #2C4A8A; margin-bottom: 6px; }
.engtop { display: flex; align-items: center; height: 15px; }
.engico { width: 15px; height: 15px; border-radius: 4px; background: var(--badge); color: var(--accentText); display: grid; place-items: center; flex: none; }
.engico svg { width: 10px; height: 10px; stroke-width: 1.8; }
.engtitle { font-size: 9px; font-weight: 700; margin-left: 6px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.engsize { font-size: 9px; color: var(--faint); white-space: nowrap; padding-left: 6px; }
.engtext { font-size: 9px; line-height: 12px; color: var(--dim); margin-top: 5px; }
.engtext.err { color: var(--err); user-select: text; }
.engbtn { margin-top: 7px; height: 24px; font-size: 9px; }
.engsteps { margin-top: 6px; display: flex; flex-direction: column; gap: 3px; }
.engstep { display: flex; align-items: center; height: 12px; font-size: 9px; color: var(--faint); }
.engstep i { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--line); margin-right: 6px; flex: none; display: grid; place-items: center; }
.engstep i svg { width: 8px; height: 8px; color: #10131a; stroke-width: 2.4; visibility: hidden; }
.engstep.done { color: var(--dim); }
.engstep.done i { background: var(--ok); border-color: var(--ok); }
.engstep.done i svg { visibility: visible; }
.engstep.now { color: var(--text); }
.engstep.now i { border-color: var(--accentText); border-top-color: transparent; animation: engspin .8s linear infinite; }
.engstep .pct { margin-left: auto; color: var(--accentText); }
@keyframes engspin { to { transform: rotate(360deg); } }
.engbar { height: 3px; border-radius: 2px; background: var(--line); margin-top: 7px; overflow: hidden; }
.engbar b { display: block; height: 100%; width: 0; background: var(--accentText); border-radius: 2px; transition: width .3s; }
.engfoot { display: flex; align-items: center; margin-top: 6px; height: 12px; font-size: 9px; color: var(--faint); }
.engfoot .link { margin-left: auto; }
.primary.off { background: var(--button); color: var(--faint); }
#status.ok { color: var(--ok); }

/* layout */
#cols { display: flex; flex-direction: column; gap: 6px; }
.col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
body.wide #cols { flex-direction: row; align-items: flex-start; }
body.wide .col { flex: 1; }

/* cards: 6 pt corners, content 9 pt in from the side and 2 pt below the corner row */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; }
.shead { display: flex; align-items: center; height: 15px; }
.badge { width: 15px; height: 15px; border-radius: 4px; background: var(--badge); color: var(--accentText);
  font-size: 9px; font-weight: 700; display: grid; place-items: center; flex: none; }
.stitle { font-size: 9px; font-weight: 700; margin-left: 6px; flex: 1; }
.shint { font-size: 9px; color: var(--faint); white-space: nowrap; }
.shint.ready { color: var(--accentText); }
.first { margin-top: 5px; }
.divider { height: 1px; background: var(--line); margin: 5px 0; }

/* source */
.srcrow { display: flex; align-items: center; margin-top: 5px; }
.thumb { width: 26px; height: 26px; border-radius: 5px; background: var(--input); border: 1px dashed var(--line);
  display: grid; place-items: center; flex: none; overflow: hidden; position: relative; }
.thumb .ico { width: 12px; height: 12px; color: var(--dim); stroke-width: 1.4; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.thumb.on { border: 1px solid var(--accentText); }
.thumb.on img { display: block; }
.srcinfo { flex: 1; min-width: 0; margin: 0 8px; }
.srcname { font-size: 9px; font-weight: 600; line-height: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srcmeta { font-size: 9px; line-height: 12px; color: var(--faint); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srcmeta.err { color: var(--err); }
.note { display: none; font-size: 9px; line-height: 12px; color: var(--dim); margin-top: 5px; } /* the script shows no note: only errors */
.note.err { display: block; color: var(--err); }

/* buttons */
.btn { height: 24px; padding: 0 8px; border-radius: 5px; background: var(--button); font-size: 9px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; flex: none; }
.btn:hover { background: var(--buttonHi); }
.btn:disabled { color: var(--faint); background: var(--button); cursor: default; }
.btn .ico { width: 11px; height: 11px; color: var(--dim); }
#useSelBtn { width: 78px; height: 21px; }
.btn.accent { background: var(--accent); color: #fff; }
.btn.accent:hover { background: var(--accentHi); }
.primary { width: 100%; height: 27px; border-radius: 5px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px; }
.primary:hover { background: var(--accentHi); }
.primary .ico { width: 11px; height: 11px; }
.primary.busy { background: var(--button); }
.primary.small { height: 24px; font-size: 9px; width: auto; padding: 0 12px; display: inline-flex; }

/* checkboxes: 15 pt rows, 11 pt box */
.checks { display: flex; flex-direction: column; gap: 5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; row-gap: 3px; }
.cb { display: flex; align-items: center; height: 15px; font-size: 9px; cursor: pointer; white-space: nowrap; min-width: 0; overflow: hidden; }
.cb input { display: none; }
.cb i { width: 11px; height: 11px; border-radius: 3px; flex: none; margin-right: 6px; background: var(--input);
  border: 1px solid var(--line); display: grid; place-items: center; }
.cb i svg { width: 11px; height: 11px; color: #fff; stroke-width: 2; visibility: hidden; }
.cb input:checked + i { background: var(--accent); border-color: var(--accent); }
.cb input:checked + i svg { visibility: visible; }
.cb:hover i { border-color: var(--accentText); }

/* rows: dropdowns and slider (50 pt label column, 20 pt controls) */
.row { display: flex; align-items: center; min-height: 20px; }
.row + .row { margin-top: 5px; }
.row.detail { min-height: 18px; }
.rlabel { width: 50px; margin-right: 8px; flex: none; color: var(--dim); font-size: 9px; }
.select { flex: 1; min-width: 0; position: relative; }
.select select { display: none; } /* kept for its value; js/dropdown.js draws the control */
.dd-btn { width: 100%; height: 20px; background: var(--input); border: 1px solid var(--line); border-radius: 5px;
  padding: 0 21px 0 8px; font-size: 9px; text-align: left; display: flex; align-items: center; }
.dd-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-btn:hover, .select.open .dd-btn { border-color: #4A4B57; }
.select svg { position: absolute; right: 8px; top: 7.5px; width: 9px; height: 5px; color: var(--dim); pointer-events: none; }
.dd-box { position: fixed; z-index: 20; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: 5px; padding: 3px; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.dd-search { flex: none; height: 20px; margin-bottom: 3px; background: var(--input); border: 1px solid var(--line); border-radius: 3px;
  padding: 0 6px; font-size: 9px; color: var(--text); user-select: text; }
.dd-search:focus { border-color: var(--accentText); }
.dd-list { overflow-y: auto; max-height: 198px; }
.dd-list::-webkit-scrollbar { width: 6px; }
.dd-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.dd-row { height: 18px; line-height: 18px; padding: 0 6px; border-radius: 3px; font-size: 9px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; cursor: pointer; }
.dd-row.sel { color: var(--accentText); }
.dd-row.hi { background: var(--accent); color: #fff; }
.dd-empty { padding: 4px 6px; font-size: 9px; color: var(--faint); }
.slider { position: relative; flex: 1; min-width: 0; height: 18px; margin-right: 8px; cursor: pointer; }
.slider .track { position: absolute; left: 5px; right: 5px; top: 8px; height: 2px; border-radius: 1px; background: var(--line); }
.slider .fill { height: 100%; border-radius: 1px; background: var(--accentText); width: 50%; }
.slider .knob { position: absolute; top: 3.5px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 1.5px var(--accentText); left: 50%; }
.dval { flex: none; color: var(--accentText); font-size: 9px; }

/* action */
.bar { height: 2px; border-radius: 1px; background: var(--line); margin-top: 5px; overflow: hidden; }
#barFill { height: 100%; width: 0; background: var(--accentText); border-radius: 1px; transition: width .25s; }
.status { display: flex; align-items: center; margin-top: 5px; height: 12px; font-size: 9px; }
#dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accentText); margin-right: 6px; flex: none; }
#dot.ok { background: var(--ok); } #dot.err { background: var(--err); } #dot.faint { background: var(--faint); }
#status { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#status.err { color: var(--err); }
.sthint { margin-left: auto; padding-left: 6px; color: var(--faint); white-space: nowrap; }

/* result */
.counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.count { height: 35px; border-radius: 5px; background: var(--input); border: 1px solid var(--line); text-align: left;
  padding: 4px 7px; position: relative; overflow: hidden; }
.count:hover { border-color: var(--c); }
.count::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--c); }
.count span { display: flex; align-items: center; color: var(--dim); font-size: 9px; line-height: 12px; }
.count span i { width: 5px; height: 5px; border-radius: 50%; background: var(--c); margin-right: 4px; }
.count b { display: block; font-size: 11px; line-height: 15px; font-weight: 700; }
.resbtns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 5px; }
.resbtns .btn { padding: 0 6px; }

/* footer: a plain row under the content, as in the script */
.foot { flex: none; display: flex; align-items: center; padding: 6px 9px 8px; }
#setupBtn { width: 57px; height: 20px; }
#engDot { width: 5px; height: 5px; border-radius: 50%; background: var(--faint); margin: 0 8px; flex: none; }
#engDot.ok { background: var(--ok); } #engDot.err { background: var(--err); }
#engLbl { color: var(--faint); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#engLbl.err { color: var(--err); }
.ver { margin-left: auto; padding-left: 8px; color: var(--faint); font-size: 9px; }

/* modals */
.modal { position: fixed; inset: 0; background: rgba(10, 10, 14, .72); display: flex; align-items: flex-start; justify-content: center;
  padding: 30px 12px; z-index: 10; overflow-y: auto; }
.sheet { width: 100%; max-width: 330px; background: var(--card); border: 1px solid var(--line); border-radius: 7.5px; padding: 15px; }
.mtitle { font-size: 11px; font-weight: 700; margin-bottom: 7.5px; }
.mtext { color: var(--dim); line-height: 13px; margin-bottom: 10.5px; }
.log { margin-top: 9px; max-height: 135px; overflow: auto; background: var(--input); border: 1px solid var(--line); border-radius: 4.5px;
  padding: 6px 7.5px; font: 9px/12px Menlo, Consolas, monospace; color: var(--dim); white-space: pre-wrap; user-select: text; }
.adv { margin-top: 12px; color: var(--dim); }
.adv summary { cursor: pointer; font-size: 9px; }
.field { display: flex; align-items: center; margin-top: 7.5px; }
.field input { flex: 1; min-width: 0; height: 22.5px; margin-left: 7.5px; background: var(--input); border: 1px solid var(--line);
  border-radius: 4.5px; padding: 0 6px; font-size: 9px; color: var(--text); user-select: text; }
.mres { margin-top: 10.5px; min-height: 12px; line-height: 12px; color: var(--dim); white-space: pre-wrap; user-select: text; }
.mres.ok { color: var(--ok); } .mres.err { color: var(--err); }
.mbtns { display: flex; justify-content: flex-end; gap: 6px; margin-top: 12px; }
.mbtns.left { justify-content: flex-start; margin-top: 7.5px; }
.steps, .tips { padding-left: 13.5px; line-height: 13.5px; color: var(--dim); }
.steps b, .tips b { color: var(--text); font-weight: 600; }
.tips { margin-top: 9px; list-style: disc; }

/* SaaSmotion additions, built from the same parts */
.warnText { color: #FFC27A; } .dangerText { color: #FF8E90; }
#dot.busy { background: #FFC27A; }
.bar.busy #barFill { width: 35%; animation: slide 1s ease-in-out infinite; transition: none; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.sect { font-weight: 700; margin-top: 7px; color: var(--dim); }
.sect:first-child { margin-top: 0; }
.txt { color: var(--dim); margin-top: 5px; overflow-wrap: anywhere; }
.list { margin-top: 3px; list-style: none; color: var(--dim); max-height: 150px; overflow-y: auto; user-select: text; }
.list li { padding: 3px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; line-height: 12px; }
.list li:first-child { border-top: 0; }
.list b { color: var(--text); font-weight: 700; }
.list.tall { max-height: 220px; }
.list .st { float: right; margin-left: 6px; color: var(--faint); }
.list .st.ok { color: var(--ok); } .list .st.err { color: #FF8E90; } .list .st.busy { color: #FFC27A; }
.list::-webkit-scrollbar { width: 6px; } .list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
#errors { color: #FF8E90; }
.counts.three { grid-template-columns: repeat(3, 1fr); }
.count b.good { color: var(--ok); } .count b.warn { color: #FFC27A; } .count b.danger { color: #FF8E90; }
.count.static { cursor: default; }
.count.static:hover { border-color: var(--line); }
.swatches { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.swatches span { width: 13px; height: 13px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, .18); }
.grid3 { display: grid; grid-template-columns: repeat(3, auto) 1fr; column-gap: 12px; align-items: center; }
.cb.locked { cursor: default; color: var(--faint); }
.cb.locked:hover i { border-color: var(--accent); }
.cbsub { color: var(--faint); margin: -1px 0 2px 17px; line-height: 12px; }
.engfoot .link.left { margin-left: 0; }
#stHint .link { margin-left: 0; }
.mbtns.split { justify-content: space-between; }
body.over #scroll { box-shadow: inset 0 0 0 1px var(--accentText); }
.resbtns { grid-template-columns: repeat(3, 1fr); }

/* drop area: LayerLift Pro's, in blue */
.dropzone { height: 150px; border-radius: 6px; border: 1px dashed #4A4B57; background: var(--input); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 7px; color: var(--text); flex-shrink: 0; cursor: pointer; padding: 0 8px; text-align: center; }
.dropzone:hover, .dropzone:focus-visible, body.over .dropzone { border-color: var(--accentText); outline: none; }
.droptile { width: 30px; height: 30px; border-radius: 8px; background: var(--badge); display: grid; place-items: center; color: var(--accentText); flex: none; }
.droptile svg { width: 14px; height: 14px; }
.droptitle { font-size: 10px; font-weight: 700; line-height: 13px; }
.dropsub { font-size: 9px; line-height: 12px; color: var(--dim); }
.dropzone .link { margin-left: 0; }
#useSel { height: 21px; width: 78px; }
.iconbtn { width: 21px; height: 21px; padding: 0; margin-right: 6px; }
.iconbtn svg { width: 12px; height: 12px; }
.srcrow .link { margin-left: 8px; }

/* license */
#licBtn { margin-left: 8px; font-size: 9px; }
#licBtn[hidden] { display: none; }
#licBtn.need { color: #FFC27A; }
#license .mbtns { flex-wrap: wrap; gap: 5px; }
