:root {
  --bg: #ffffff;
  --bg2: #f5f5f7;
  --canvas: #f9f9fa;
  --line: #e3e3e8;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: #0a84ff;
  --accent-ink: #0066cc;
  --err: #e5342b;
  --warn: #c77700;
  --ok: #1f9d47;
  --info: #6e6e73;
  --field: #ffffff;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1c1e; --bg2: #232326; --canvas: #141416; --line: #333338; --text: #f2f2f7; --muted: #98989f;
    --accent: #0a84ff; --accent-ink: #4aa3ff; --err: #ff5a52; --warn: #ffb340; --ok: #3ddc6c; --info: #98989f;
    --field: #2c2c2e; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1c1c1e; --bg2: #232326; --canvas: #141416; --line: #333338; --text: #f2f2f7; --muted: #98989f;
  --accent: #0a84ff; --accent-ink: #4aa3ff; --err: #ff5a52; --warn: #ffb340; --ok: #3ddc6c; --info: #98989f;
  --field: #2c2c2e; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 13px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
}
button { font: inherit; color: inherit; cursor: pointer; }
h1, h3, h4, p { margin: 0; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--bg);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand h1 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.brand p { font-size: 12px; color: var(--muted); }
.logo { width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(160deg, #3ea0ff, #0a6cff); position: relative; flex: none; }
.logo::after { content: ''; position: absolute; inset: 8px 6px; border: 2px solid #fff; border-radius: 3px; }
.local { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.local svg { width: 16px; height: 16px; color: var(--ok); }

.threads { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 500; font-size: 12px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; }
.threads:hover { text-decoration: none; background: var(--bg2); }
.threads svg { width: 14px; height: 14px; }
.topbar .local { margin-left: auto; }

/* ---------- Layout ---------- */
.app { flex: 1; min-height: 0; display: grid; grid-template-columns: 300px 1fr 340px; }
.side, .panel { overflow-y: auto; background: var(--bg); }
.side { border-right: 1px solid var(--line); }
.panel { border-left: 1px solid var(--line); }
.side section, .panel section { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.side h3, .panel h3 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; display: flex; justify-content: space-between; }
.panel h3 small { text-transform: none; letter-spacing: 0; font-weight: 400; }

.drop {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  margin: 14px; padding: 20px 14px !important; border: 1.5px dashed var(--line) !important; border-radius: 12px; background: var(--bg2);
}
.drop svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 4px; }
.drop b { font-size: 13px; }
.drop span { color: var(--muted); font-size: 12px; }
.btn { margin-top: 10px; border: 0; background: var(--accent); color: #fff; padding: 7px 14px; border-radius: 8px; font-weight: 500; }
.btn:hover { filter: brightness(1.08); }

#coverage .cov { display: grid; grid-template-columns: 10px 56px 1fr; align-items: center; gap: 8px; padding: 3px 0; font-size: 12px; }
#coverage .cov span:last-child { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#coverage .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
#coverage .cov.ok .dot { background: var(--ok); }
#coverage .cov.ok span:last-child { color: var(--text); }

.group { margin-bottom: 12px; }
.group h4 { font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.item {
  position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center;
  padding: 6px; margin: 0 -6px; border-radius: 10px; cursor: pointer;
}
.item:hover { background: var(--bg2); }
.item.sel { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.thumb { width: 64px; height: 44px; border-radius: 6px; overflow: hidden; background: var(--bg2); position: relative; display: grid; place-items: center; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb em { position: absolute; right: 3px; bottom: 2px; font-style: normal; font-size: 9px; color: #fff; background: rgba(0,0,0,.55); border-radius: 4px; padding: 0 4px; }
.thumb.lg { width: 88px; height: 56px; flex: none; }
.info { min-width: 0; padding-right: 18px; }
.info .name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info .sub { font-size: 11px; color: var(--muted); }
.info .row { display: flex; align-items: center; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.info select { font: inherit; font-size: 11px; padding: 1px 2px; border-radius: 5px; border: 1px solid var(--line); background: var(--field); color: var(--text); }
.badge { font-size: 10px; font-weight: 600; border-radius: 9px; padding: 0 6px; line-height: 16px; color: #fff; }
.badge.err { background: var(--err); }
.badge.warn { background: var(--warn); }
.badge.ok { background: var(--ok); }
.use { font-size: 11px; border: 1px solid var(--line); background: var(--field); border-radius: 6px; padding: 0 6px; }
.use.on, .inuse { color: var(--ok); border-color: currentColor; font-size: 11px; }
.rm { position: absolute; top: 4px; right: 4px; border: 0; background: none; color: var(--muted); font-size: 16px; line-height: 1; opacity: 0; padding: 2px 5px; border-radius: 5px; }
.item:hover .rm { opacity: 1; }
.rm:hover { background: var(--line); color: var(--text); }
.empty-lib { color: var(--muted); font-size: 12px; }
.loading { display: flex; gap: 8px; align-items: center; color: var(--muted); margin-bottom: 10px; }
.spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.meta label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; position: relative; }
.meta input { display: block; width: 100%; margin-top: 3px; font: inherit; color: var(--text); background: var(--field); border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; }
.meta input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); border-color: var(--accent); }
.count { position: absolute; right: 0; top: 0; font-size: 11px; }
.count.over { color: var(--err); font-weight: 600; }

/* ---------- Stage ---------- */
.stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--canvas); }
.stage-top { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 9px; padding: 2px; }
.seg button { border: 0; background: none; padding: 5px 12px; border-radius: 7px; color: var(--muted); font-weight: 500; }
.seg button.on { background: var(--bg); color: var(--text); box-shadow: var(--shadow); }
.seg.small button { padding: 4px 10px; font-size: 12px; }
.canvas { flex: 1; min-height: 0; overflow: auto; display: flex; align-items: center; justify-content: center; position: relative; }
.stage[data-view="all"] .canvas, .stage[data-view="inspect"] .canvas { align-items: flex-start; }
.fit { position: relative; flex: none; }
.fit > .dev { transform-origin: 0 0; position: absolute; left: 0; top: 0; }
.toolbar { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 12px 16px 16px; flex-wrap: wrap; min-height: 60px; }
.selectwrap select { font: inherit; font-weight: 500; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--text); min-width: 140px; }
.tool { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--bg); padding: 6px 10px; border-radius: 9px; color: var(--muted); font-weight: 500; }
.tool svg { width: 16px; height: 16px; }
.tool.on { color: var(--text); border-color: var(--text); }
.tool:hover { color: var(--text); }
.tool.sm { padding: 4px 9px; font-size: 12px; }
.tool:disabled { opacity: .5; cursor: default; }

.grid { display: flex; flex-wrap: wrap; gap: 28px 32px; justify-content: center; align-items: flex-end; padding: 8px 24px 24px; }
.grid figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.grid figcaption { font-size: 12px; color: var(--muted); font-weight: 500; }

/* ---------- Inspect ---------- */
.inspect { width: 100%; max-width: 1200px; padding: 0 24px 24px; }
.inspect-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.inspect-head h3 { font-size: 15px; font-weight: 600; }
.inspect-head p { color: var(--muted); font-size: 12px; }
.layers { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.layers label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; cursor: pointer; }
.layers i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.art { position: relative; width: 100%; border-radius: 10px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.art .fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.art .overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.croplist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.croplist button { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 4px 9px; }
.croplist button.on { border-color: var(--text); }
.croplist i { width: 12px; height: 9px; border: 2px solid; border-radius: 2px; }
.croplist span { color: var(--muted); }
.note { color: var(--muted); font-size: 12px; margin-top: 10px; max-width: 75ch; }
.empty-inspect { padding: 60px 24px; color: var(--muted); text-align: center; max-width: 420px; margin: auto; }
.vtools { margin-top: 14px; }
.scrub { display: flex; align-items: center; gap: 10px; }
.scrub input { flex: 1; }
.scrub span { font-variant-numeric: tabular-nums; color: var(--muted); width: 56px; }
.vcards { display: flex; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.vcards figure { margin: 0; }
.vcards img { height: 110px; border-radius: 8px; display: block; }
.vcards .seam > div { display: flex; gap: 2px; }
.vcards .seam img:first-child { border-radius: 8px 0 0 8px; }
.vcards .seam img:last-child { border-radius: 0 8px 8px 0; }
.vcards figcaption { font-size: 12px; margin-top: 6px; }
.vcards small { color: var(--muted); }

/* ---------- Checks panel ---------- */
.ck-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.ck-head > div:last-child { min-width: 0; display: flex; flex-direction: column; }
.ck-head b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-head span { color: var(--muted); font-size: 12px; }
.sum { display: flex; gap: 8px; margin-top: 2px; }
.sum em { font-style: normal; font-weight: 600; }
.sum .err { color: var(--err); } .sum .warn { color: var(--warn); } .sum .ok { color: var(--ok); }
.ocr-row { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; font-size: 12px; padding: 10px; background: var(--bg2); border-radius: 9px; }
.ocr-row .tool { flex: none; }
.cklist { list-style: none; margin: 0; padding: 0; }
.cklist li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.cklist li:first-child { border-top: 0; }
.cklist i { width: 14px; height: 14px; border-radius: 50%; margin-top: 1px; position: relative; }
.cklist i::after { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 700; font-style: normal; }
.cklist .error i { background: var(--err); } .cklist .error i::after { content: '!'; }
.cklist .warn i { background: var(--warn); } .cklist .warn i::after { content: '!'; }
.cklist .pass i { background: var(--ok); } .cklist .pass i::after { content: '✓'; }
.cklist .info i { background: var(--line); } .cklist .info i::after { content: 'i'; color: var(--muted); }
.cklist b { font-weight: 500; }
.cklist p { color: var(--muted); font-size: 12px; margin-top: 2px; }
.cklist .pass b { color: var(--muted); font-weight: 400; }
.link { border: 0; background: none; padding: 0; color: var(--accent-ink); font-size: 12px; margin-top: 3px; }
.manual label { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; font-size: 12px; cursor: pointer; }
.manual input { margin-top: 2px; }
.sources ul { margin: 0 0 8px; padding-left: 16px; }
.sources li { margin-bottom: 3px; }
.sources p { font-size: 12px; }

.apps { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; }
.apps a { display: flex; align-items: center; gap: 9px; padding: 5px; margin: 0 -5px; border-radius: 9px; color: var(--text); min-width: 0; }
.apps a:hover { background: var(--bg2); text-decoration: none; }
.apps img { width: 40px; height: 40px; border-radius: 9px; flex: none; background: var(--bg2); box-shadow: 0 0 0 .5px var(--line); }
.apps span { display: flex; flex-direction: column; min-width: 0; }
.apps b { font-weight: 500; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apps small { color: var(--muted); font-size: 11px; line-height: 1.3; }
.threads-card { font-size: 12px; color: var(--muted); }
.threads-card a { color: var(--muted); }
.threads-card b { color: var(--text); font-weight: 500; }
.panel h3 .studio { text-transform: none; letter-spacing: 0; font-weight: 500; }

/* ---------- Drag veil / toast ---------- */
.dropveil { position: fixed; inset: 0; background: color-mix(in srgb, var(--accent) 14%, transparent); border: 3px dashed var(--accent); display: none; place-items: center; z-index: 50; pointer-events: none; }
.dropveil div { background: var(--bg); padding: 14px 22px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow); }
body.dragging .dropveil { display: grid; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #1d1d1f; color: #fff; padding: 9px 16px; border-radius: 10px; opacity: 0; transition: .2s; pointer-events: none; z-index: 60; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .app { grid-template-columns: 280px 1fr; }
  .panel { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  body { height: auto; }
  .app { display: block; }
  .side { border-right: 0; }
  .stage { min-height: 80vh; }
  .canvas { min-height: 60vh; }
  .topbar { flex-direction: column; align-items: flex-start; padding: 10px 16px; }
  .topbar .local { margin-left: 0; }
  .side section, .panel section { padding: 14px 16px; }
}

/* =====================================================================
   Device mockups (native point size; scaled by JS)
   ===================================================================== */
.dev {
  --s-bg: #fff; --s-text: #000; --s-muted: #8a8a8e; --s-line: #e2e2e6; --s-ph: #ececee; --s-glass: rgba(255,255,255,.72); --s-glass-line: rgba(0,0,0,.08);
  --s-blue: #0a84ff; --s-soft: #eef0f3;
  background: #1f1f1f; box-shadow: 0 0 0 2px #c9c9cc, 0 18px 50px rgba(0,0,0,.12);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--s-text); text-align: left; line-height: 1.2;
}
.dev.dark { --s-bg: #000; --s-text: #fff; --s-muted: #8d8d93; --s-line: #2c2c2e; --s-ph: #1c1c1e; --s-glass: rgba(40,40,42,.72); --s-glass-line: rgba(255,255,255,.1); --s-soft: #1c1c1e; }
.dev .screen { position: relative; overflow: hidden; background: var(--s-bg); }
.dev.duo.folded { border-top-left-radius: 6px !important; border-bottom-left-radius: 6px !important; }
.dev.duo.folded .screen { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }

.dev .glass { background: var(--s-glass); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); box-shadow: 0 0 0 .5px var(--s-glass-line), 0 6px 20px rgba(0,0,0,.08); }
.dev .glass-flat { background: var(--s-bg); box-shadow: 0 0 0 .5px var(--s-glass-line), 0 2px 10px rgba(0,0,0,.06); }
.dev svg { display: block; }

.dev .island { position: absolute; left: 50%; top: 11px; width: 126px; height: 37px; margin-left: -63px; background: #000; border-radius: 20px; z-index: 5; }
.dev .camera { position: absolute; right: 30px; top: 30px; width: 36px; height: 36px; border-radius: 50%; background: #111; z-index: 5; }
.dev .fbtn { position: absolute; width: 49px; height: 49px; border-radius: 50%; display: grid; place-items: center; z-index: 4; color: var(--s-text); }
.dev .fbtn svg { width: 24px; height: 24px; }
.dev .fbtn.sm { width: 44px; height: 44px; }
.dev .fbtn.sm svg { width: 20px; height: 20px; }

.dev .media { position: relative; overflow: hidden; background: var(--s-ph); }
.dev .media .fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.dev .media .guides, .dev .hdr .guides { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.dev .hdr { position: relative; }

/* Tab bars */
.dev .tabbar { position: absolute; left: 14px; right: 14px; bottom: 20px; height: 64px; border-radius: 32px; display: flex; align-items: center; justify-content: space-around; padding: 0 6px; z-index: 6; }
.dev .tab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; font-weight: 500; width: 68px; height: 54px; justify-content: center; border-radius: 27px; color: var(--s-text); }
.dev .tab svg { width: 26px; height: 26px; }
.dev .tab.on { color: var(--s-blue); background: rgba(127,127,135,.14); }
.dev .toptabs { position: absolute; left: 50%; transform: translateX(-50%); top: 26px; height: 44px; border-radius: 22px; display: flex; align-items: center; gap: 2px; padding: 0 5px; z-index: 6; font-size: 15px; font-weight: 500; }
.dev .tt { padding: 0 12px; height: 34px; display: grid; place-items: center; border-radius: 17px; }
.dev .tt svg { width: 17px; height: 17px; }
.dev .tt.on { color: var(--s-blue); background: rgba(127,127,135,.14); }
.dev .siderail { position: absolute; right: 23px; bottom: 26px; width: 52px; border-radius: 26px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; z-index: 6; }
.dev .rt { width: 44px; height: 46px; display: grid; place-items: center; border-radius: 22px; }
.dev .rt svg { width: 26px; height: 26px; }
.dev .rt.on { color: var(--s-blue); background: rgba(127,127,135,.14); }

/* Product page */
.dev .page { position: absolute; inset: 0; overflow: hidden; }
.dev .product .top { display: flex; gap: 18px; align-items: flex-start; }
.dev .appicon { flex: none; object-fit: cover; display: block; box-shadow: 0 0 0 .5px rgba(0,0,0,.12); }
.dev .appicon.ph { color: var(--s-muted); background: var(--s-bg); }
.dev .appicon.ph svg { width: 100%; height: 100%; }
.dev .titles { min-width: 0; padding-top: 4px; }
.dev .titles h1 { font-size: 24px; font-weight: 500; letter-spacing: -.01em; line-height: 1.18; }
.dev .titles p { font-size: 17px; color: var(--s-muted); margin-top: 3px; }
.dev .get { margin-top: 12px; border: 0; background: var(--s-blue); color: #fff; font-size: 18px; font-weight: 500; height: 34px; padding: 0 22px; border-radius: 17px; }
.dev .get.soft { background: var(--s-soft); color: var(--s-blue); font-size: 17px; font-weight: 600; height: 32px; padding: 0 22px; margin: 0; }
.dev .product hr { border: 0; border-top: 1px solid var(--s-line); margin: 20px 0 0; }
.dev .stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 14px 0 20px; }
.dev .stats > div { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--s-muted); border-left: 1px solid var(--s-line); }
.dev .stats > div:first-child { border-left: 0; }
.dev .stats small { font-size: 11px; font-weight: 500; letter-spacing: .02em; }
.dev .stats b { font-size: 20px; line-height: 22px; }
.dev .stats span { font-size: 13px; }
.dev .stars { letter-spacing: 1px; color: var(--s-muted); font-size: 12px; }
.dev .person { color: var(--s-muted); width: 22px; height: 22px; }
.dev .shots { display: flex; gap: 10px; }
.dev .shot { flex: none; border-radius: 18px; object-fit: cover; background: var(--s-ph); display: block; box-shadow: 0 0 0 .5px var(--s-line); }
.dev .platforms { color: var(--s-muted); font-size: 13px; margin-top: 10px; }

.dev .product.big .titles h1 { font-size: 27px; }
.dev .product.big .titles p { font-size: 18px; }
.dev .product.pad .get { font-size: 15px; height: 30px; padding: 0 20px; margin-top: 26px; }
.dev .product.pad .shot { border-radius: 10px; }
.dev .product.pad .stats { padding: 12px 0 28px; }
.dev .product.rail .shot { border-radius: 14px; }

/* Search page */
.dev .sbar { position: relative; display: flex; gap: 10px; padding: 61px 16px 0; height: 120px; }
.dev .sbar .field { flex: 1; height: 44px; border-radius: 22px; display: flex; align-items: center; gap: 8px; padding: 0 14px; font-size: 17px; }
.dev .sbar .field svg { width: 20px; height: 20px; }
.dev .xbtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.dev .xbtn svg { width: 20px; height: 20px; }
.dev .search.rail .sbar { padding: 28px calc(22px + var(--railpad)) 0 22px; height: 104px; }
.dev .sbar.pad { padding: 24px 22px 0; height: 98px; }
.dev .sbar.pad .field { height: 40px; font-size: 16px; border-radius: 20px; }
.dev .filters { height: 40px; border-radius: 20px; display: flex; align-items: center; gap: 4px; padding: 0 12px; font-size: 15px; font-weight: 500; }
.dev .filters svg { width: 14px; height: 14px; }
.dev .results { display: grid; row-gap: 36px; }
.dev .result .row { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; }
.dev .result .lines { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dev .result .lines b { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev .result .lines span { font-size: 15px; color: var(--s-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev .result .lines .stars { font-size: 12px; }
.dev .metarow { display: flex; align-items: center; gap: 6px; color: var(--s-muted); font-size: 15px; margin: 12px 0 0; height: 20px; }
.dev .metarow .person { width: 16px; height: 16px; }
.dev .metarow .sep { width: 1px; height: 14px; background: var(--s-line); margin: 0 3px; }
.dev .sr-media { margin-top: 14px; }
.dev .sr-media .media { border-radius: 14px; }
.dev .fallback-shots { display: flex; gap: 8px; }
.dev .fallback-shots .shot { border-radius: 12px; }
.dev .search.pad .result .lines b { font-size: 15px; }
.dev .search.pad .result .lines span { font-size: 13px; }
.dev .search.pad .sr-media { margin-top: 12px; }
.dev .search.pad .sr-media .media { border-radius: 8px; }
.dev .search.pad .get.soft { font-size: 15px; height: 28px; }

.dev .skel .sk { background: var(--s-ph); border-radius: 8px; }
.dev .skel .icon { width: 60px; height: 60px; border-radius: 14px; }
.dev .skel .l1 { height: 16px; width: 40%; border-radius: 6px; }
.dev .skel .l2 { height: 14px; width: 80%; border-radius: 6px; margin-top: 6px; }
.dev .skel .stars-sk { background: none; color: var(--s-ph); font-size: 12px; margin-top: 4px; letter-spacing: 1px; }
.dev .skel .pill { width: 74px; height: 32px; border-radius: 16px; }
.dev .skel .m1 { width: 70px; height: 16px; } .dev .skel .m2 { width: 80px; height: 16px; }
.dev .skel .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.dev .skel .card { border-radius: 12px; background: var(--s-ph); }
