/* ==========================================================================
   New York 420 Week — Carousels
   1) Public viewer (.nyc-carousel / .nycv-*)  — self-contained, no admin.css needed
   2) Admin gallery (.cg-*)
   3) Admin studio  (.cs-*)
   ========================================================================== */

/* ---------- 1. Public viewer ---------- */
.nyc-carousel {
  --nycv-navy: #050A30;
  --nycv-yellow: #FFF200;
  --nycv-ink: #0E1330;
  --nycv-muted: #6a7090;
  --nycv-radius: 18px;
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  min-width: 0;
}
.nyc-carousel > script { display: none; }

/* No-JS fallback: a plain swipe row of the saved slides */
.nyc-carousel-fallback { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; border-radius: var(--nycv-radius); background: var(--nycv-navy); }
.nyc-carousel-fallback img { flex: 0 0 100%; width: 100%; height: auto; scroll-snap-align: start; display: block; }

.nycv { position: relative; outline: none; min-width: 0; }
.nycv:focus-visible .nycv-frame { box-shadow: 0 0 0 3px var(--nycv-yellow), 0 18px 50px rgba(5,10,48,.28); }

.nycv-frame {
  position: relative;
  border-radius: var(--nycv-radius);
  overflow: hidden;
  background: var(--nycv-navy);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 2px 6px rgba(5,10,48,.08), 0 18px 50px rgba(5,10,48,.22);
  isolation: isolate;
}
.nycv-frame::after { /* hairline bezel */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(5,10,48,.12);
}
.nycv-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  cursor: grab;
}
.nycv-track::-webkit-scrollbar { display: none; }
.nycv-track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.nycv.is-single .nycv-track { cursor: default; }
.nycv-slide {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 4 / 5;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  background: var(--nycv-navy);
}
.nycv.is-square .nycv-slide { aspect-ratio: 1 / 1; }
.nycv-slide img, .nycv-slide canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.nycv-slide canvas:not([width]) { background: linear-gradient(110deg, #050A30 30%, #0e175a 50%, #050A30 70%) 0 0 / 250% 100%; animation: nycv-shimmer 1.6s linear infinite; }
@keyframes nycv-shimmer { to { background-position: -250% 0; } }

.nycv-count {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font: 600 12px/1 "Inter Tight", system-ui, sans-serif; letter-spacing: .02em;
  color: #fff; background: rgba(5,10,48,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 6px 9px; border-radius: 99px; pointer-events: none;
}
.nycv-nav {
  position: absolute; top: 50%; z-index: 2; width: 36px; height: 36px; margin-top: -18px;
  display: grid; place-items: center; border: 0; border-radius: 50%; padding: 0;
  background: rgba(255,255,255,.92); color: var(--nycv-navy); cursor: pointer;
  box-shadow: 0 4px 14px rgba(5,10,48,.25);
  transition: opacity .2s, transform .15s, background .15s;
}
.nycv-nav:hover { background: var(--nycv-yellow); }
.nycv-nav:active { transform: scale(.94); }
.nycv-nav:focus-visible { outline: 3px solid var(--nycv-yellow); outline-offset: 2px; }
.nycv-nav:disabled { opacity: 0; pointer-events: none; }
.nycv-prev { left: 10px; }
.nycv-next { right: 10px; }
@media (hover: hover) {
  .nycv-nav { opacity: 0; }
  .nycv:hover .nycv-nav:not(:disabled), .nycv:focus-within .nycv-nav:not(:disabled) { opacity: 1; }
}

.nycv-dots { display: flex; justify-content: center; gap: 6px; padding: 12px 0 4px; flex-wrap: wrap; }
.nycv-dot {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; cursor: pointer;
  background: rgba(14,19,48,.22); transition: width .25s, background .25s;
}
.nycv-dot.on { width: 20px; background: var(--nycv-navy); }
.nycv-dot:focus-visible { outline: 2px solid var(--nycv-navy); outline-offset: 2px; }

.nycv-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 2px 0; flex-wrap: wrap; min-width: 0; }
.nycv-handle, .nycv-ig {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0;
  font: 600 13.5px/1.2 "Inter Tight", system-ui, sans-serif; color: var(--nycv-ink); text-decoration: none;
}
.nycv-handle:hover, .nycv-ig:hover { text-decoration: underline; }
.nycv-avatar {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--nycv-navy); color: var(--nycv-yellow); font: 400 10.5px/1 "Abril Fatface", Georgia, serif;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--nycv-yellow);
}
.nycv-ig { color: var(--nycv-muted); }

@media (max-width: 480px) {
  .nyc-carousel { --nycv-radius: 14px; }
  .nycv-nav { width: 32px; height: 32px; margin-top: -16px; }
}
@media (prefers-reduced-motion: reduce) {
  .nycv-dot, .nycv-nav { transition: none; }
  .nycv-slide canvas:not([width]) { animation: none; }
}

/* ---------- 2. Admin gallery ---------- */
.cg { display: grid; gap: 22px; }
.cg-gen {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 440px); gap: 20px; align-items: center;
  padding: 22px 24px; background: radial-gradient(900px 300px at 100% 0%, #1a2470 0%, #050A30 60%); color: #fff; border: 0;
}
.cg-gen h2 { font: 400 26px/1.1 var(--display); margin: 6px 0; color: #fff; }
.cg-gen p { margin: 0; color: #aab0dc; }
.cg-eyebrow { font: 700 10.5px/1 var(--mono); letter-spacing: 1.6px; text-transform: uppercase; color: var(--yellow); }
.cg-gen-form { display: flex; gap: 8px; }
.cg-gen-form select { flex: 1; min-width: 0; }
.cg-gen .btn-primary { background: var(--yellow); color: var(--navy); --bb: var(--yellow); }
.cg-gen .btn-primary:hover { background: #fff64d; }

.cg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.cg-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s;
}
.cg-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(14,19,48,.12); }
.cg-card.is-removing { opacity: 0; transform: scale(.96); transition: .25s; }
.cg-thumb { position: relative; display: block; aspect-ratio: 4 / 5; background: #050A30; overflow: hidden; }
.cg-thumb.is-square { aspect-ratio: 4 / 5; }
.cg-thumb.is-square img, .cg-thumb.is-square canvas { top: 50%; bottom: auto; height: auto; aspect-ratio: 1; transform: translateY(-50%); }
.cg-thumb img, .cg-thumb canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.cg-card:hover .cg-thumb img, .cg-card:hover .cg-thumb canvas { transform: scale(1.02); }
.cg-card:hover .cg-thumb.is-square img, .cg-card:hover .cg-thumb.is-square canvas { transform: translateY(-50%) scale(1.02); }
.cg-stack {
  position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 5px;
  font: 700 11px/1 var(--mono); color: #fff; background: rgba(5,10,48,.7); backdrop-filter: blur(4px); padding: 6px 8px; border-radius: 99px;
}
.cg-meta { padding: 14px 14px 6px; display: grid; gap: 6px; }
.cg-meta h3 { font-size: 15px; font-weight: 700; line-height: 1.3; }
.cg-meta h3 a { color: var(--ink); }
.cg-sub { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: 12px; }
.cg-sub span + span::before { content: "·"; margin-right: 10px; color: #c3c7d6; }
.cg-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.cg-pills a.pill { text-decoration: none; }
.cg-actions { display: flex; gap: 6px; padding: 10px 14px 14px; margin-top: auto; flex-wrap: wrap; }
.cg-empty { padding: 60px 20px; }
.cg-empty-art { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; }
.cg-empty-art i { width: 54px; height: 68px; border-radius: 8px; background: var(--navy); box-shadow: var(--shadow); }
.cg-empty-art i:nth-child(2) { background: var(--yellow); transform: translateY(-8px); }
.cg-empty-art i:nth-child(3) { background: #F4EFE3; border: 1px solid var(--line); }
@media (max-width: 900px) { .cg-gen { grid-template-columns: 1fr; } }

/* ---------- 3. Admin studio ---------- */
@media (min-width: 901px) {
  body:has(.cs-studio) .adm-top { display: none; }
}
.cs-studio {
  --cs-bg: #060B2A;
  --cs-panel: #0A1038;
  --cs-panel-2: #111A4E;
  --cs-line: rgba(255,255,255,.08);
  --cs-line-2: rgba(255,255,255,.14);
  --cs-text: #E8EAF8;
  --cs-muted: #8A91BF;
  --cs-hi: #FFF200;
  height: 100vh;
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr);
  background: var(--cs-bg);
  color: var(--cs-text);
  font: 13.5px/1.45 var(--font);
  overflow: hidden;
}
.cs-loading { grid-row: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--cs-muted); height: 100%; }
.cs-spinner { width: 18px; height: 18px; border: 2px solid var(--cs-hi); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

/* top bar */
.cs-top { display: flex; align-items: center; gap: 12px; padding: 0 14px; background: var(--cs-panel); border-bottom: 1px solid var(--cs-line); min-width: 0; }
.cs-back { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--cs-muted); text-decoration: none !important; flex: none; }
.cs-back:hover { background: rgba(255,255,255,.07); color: #fff; }
.cs-mark { font: 400 14px/1 var(--display); background: var(--cs-hi); color: var(--navy); border-radius: 7px; padding: 7px 5px 5px; flex: none; }
.adm-body .cs-studio input.cs-title {
  flex: 0 1 340px; min-width: 120px; background: transparent; border: 1px solid transparent; color: #fff;
  font: 600 15px/1.2 var(--font); padding: 7px 9px; border-radius: 8px; box-shadow: none;
}
.adm-body .cs-studio input.cs-title:hover { border-color: var(--cs-line-2); }
.adm-body .cs-studio input.cs-title:focus { border-color: var(--cs-hi); background: rgba(255,255,255,.04); box-shadow: none; }
.cs-status { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--mono); letter-spacing: .8px; text-transform: uppercase; color: var(--cs-muted); white-space: nowrap; }
.cs-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ecf8e; }
.cs-status.is-dirty { color: #ffcf5c; }
.cs-status.is-dirty::before { background: #ffcf5c; }
.cs-status.is-new::before { background: var(--cs-muted); }
.cs-progress { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 12px; color: var(--cs-muted); }
.cs-progress[hidden] { display: none; }
.cs-progress .progress { width: 140px; height: 6px; background: rgba(255,255,255,.1); }
.cs-progress .progress > i { background: var(--cs-hi); }
.cs-top-sp { flex: 1; }
.cs-top-actions { display: flex; gap: 8px; align-items: center; }
.cs-studio .btn { height: 34px; }
.cs-studio .btn-ghost-dark { color: var(--cs-text); }
.cs-studio .btn-ig { background: linear-gradient(135deg, #fff200, #ffd000); color: var(--navy); --bb: transparent; }
.cs-studio .btn-ig.is-off { background: rgba(255,255,255,.08); color: var(--cs-muted); --bb: var(--cs-line-2); }
.cs-studio .btn[disabled] { opacity: .45; pointer-events: none; }

/* body */
.cs-body { display: grid; grid-template-columns: 196px minmax(0, 1fr) 356px; min-height: 0; }

/* rail */
.cs-rail { background: var(--cs-panel); border-right: 1px solid var(--cs-line); display: flex; flex-direction: column; min-height: 0; }
.cs-rail-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px; font: 700 10.5px/1 var(--mono); letter-spacing: 1.4px; text-transform: uppercase; color: var(--cs-muted); }
.cs-thumbs { flex: 1; overflow-y: auto; padding: 4px 14px 12px; display: grid; gap: 12px; align-content: start; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.cs-thumb { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; cursor: pointer; user-select: none; }
.cs-thumb-n { font: 700 11px/1 var(--mono); color: var(--cs-muted); padding-top: 4px; text-align: right; }
.cs-thumb-card { position: relative; border-radius: 7px; overflow: hidden; background: #050A30; box-shadow: 0 0 0 1px var(--cs-line-2); transition: box-shadow .15s, transform .15s; }
.cs-thumb-card canvas { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; }
.cs-studio.is-square .cs-thumb-card canvas { aspect-ratio: 1; }
.cs-thumb:hover .cs-thumb-card { box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.cs-thumb.on .cs-thumb-card { box-shadow: 0 0 0 2px var(--cs-hi); }
.cs-thumb.on .cs-thumb-n { color: var(--cs-hi); }
.cs-thumb.dragging { opacity: .35; }
.cs-thumb.drop-before::before, .cs-thumb.drop-after::after { content: ""; position: absolute; left: 26px; right: 0; height: 3px; border-radius: 3px; background: var(--cs-hi); }
.cs-thumb.drop-before::before { top: -8px; }
.cs-thumb.drop-after::after { bottom: -8px; }
.cs-thumb-type { position: absolute; left: 6px; bottom: 6px; font: 700 9px/1 var(--mono); letter-spacing: .8px; text-transform: uppercase; background: rgba(5,10,48,.78); color: #fff; padding: 4px 5px; border-radius: 4px; pointer-events: none; }
.cs-thumb-tools { position: absolute; top: 5px; right: 5px; display: flex; flex-direction: column; gap: 3px; opacity: 0; transition: opacity .15s; }
.cs-thumb:hover .cs-thumb-tools, .cs-thumb.on .cs-thumb-tools, .cs-thumb:focus-within .cs-thumb-tools { opacity: 1; }
.cs-ic { width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: rgba(5,10,48,.82); color: #fff; cursor: pointer; }
.cs-ic:hover { background: var(--cs-hi); color: var(--navy); }
.cs-ic.danger:hover { background: #ff5a67; color: #fff; }
.cs-ic[disabled] { opacity: .3; pointer-events: none; }
.cs-rail-f { position: relative; padding: 12px 14px 14px; border-top: 1px solid var(--cs-line); }
.cs-add { width: 100%; height: 38px; border-radius: 10px; border: 1px dashed rgba(255,255,255,.25); background: transparent; color: var(--cs-text); font: 600 13px var(--font); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.cs-add:hover { border-color: var(--cs-hi); color: var(--cs-hi); }
.cs-add[disabled] { opacity: .4; pointer-events: none; }
.cs-add-menu {
  position: absolute; left: 12px; bottom: 58px; z-index: 50; width: 300px; padding: 6px;
  background: #111A4E; border: 1px solid var(--cs-line-2); border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.45);
  display: grid; gap: 2px; animation: pop .16s ease;
}
.cs-add-menu[hidden] { display: none; }
.cs-add-item { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 8px; border: 0; border-radius: 8px; background: transparent; color: var(--cs-text); text-align: left; cursor: pointer; font: inherit; }
.cs-add-item:hover, .cs-add-item:focus-visible { background: rgba(255,255,255,.07); outline: none; }
.cs-add-item i { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,242,0,.12); color: var(--cs-hi); font: 400 15px/1 var(--display); font-style: normal; }
.cs-add-item b { display: block; font-weight: 600; font-size: 13px; }
.cs-add-item small { display: block; color: var(--cs-muted); font-size: 11.5px; }

/* stage */
.cs-stage-wrap { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
.cs-stagebar { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--cs-line); flex-wrap: wrap; }
.cs-seg { display: inline-flex; background: rgba(255,255,255,.06); padding: 3px; border-radius: 9px; gap: 2px; }
.cs-seg button { border: 0; background: transparent; color: var(--cs-muted); font: 600 12px var(--font); padding: 6px 11px; border-radius: 7px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.cs-seg button.on { background: rgba(255,255,255,.14); color: #fff; }
.cs-seg button i { display: inline-block; border: 1.6px solid currentColor; border-radius: 2px; width: 10px; height: 12.5px; }
.cs-seg button i.sq { height: 10px; }
.cs-swatches { display: inline-flex; gap: 7px; align-items: center; }
.cs-swatch { position: relative; width: 24px; height: 24px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; box-shadow: 0 0 0 1px rgba(255,255,255,.25); transition: transform .12s; }
.cs-swatch:hover { transform: scale(1.1); }
.cs-swatch.on { box-shadow: 0 0 0 2px var(--cs-bg), 0 0 0 4px var(--cs-hi); }
.cs-swatch[data-theme=navy] { background: linear-gradient(135deg, #050A30 55%, #FFF200 56%); }
.cs-swatch[data-theme=yellow] { background: linear-gradient(135deg, #FFF200 55%, #050A30 56%); }
.cs-swatch[data-theme=paper] { background: linear-gradient(135deg, #F4EFE3 55%, #FFF200 56%); }
.cs-swatch[data-theme=photo] { background: linear-gradient(160deg, #6b7bd6, #050A30 70%); }
.cs-swatch[data-theme=photo]::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 6px; height: 3px; border-radius: 2px; background: #FFF200; }
.cs-label-sm { font: 700 10px/1 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--cs-muted); }
.cs-nav { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.cs-pos { font: 600 12px/1 var(--mono); color: var(--cs-muted); min-width: 64px; text-align: center; }
.cs-navbtn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--cs-line-2); background: transparent; color: var(--cs-text); display: grid; place-items: center; cursor: pointer; padding: 0; }
.cs-navbtn:hover { background: rgba(255,255,255,.08); }
.cs-navbtn[disabled] { opacity: .3; pointer-events: none; }
.cs-stage {
  position: relative; min-height: 0; overflow: hidden; display: grid; place-items: center; padding: 28px;
  background: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1.2px) 0 0 / 22px 22px, radial-gradient(1000px 600px at 50% 40%, #0d1550 0%, var(--cs-bg) 70%);
}
.cs-canvas-box { position: relative; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px rgba(0,0,0,.55); background: #050A30; }
.cs-canvas-box canvas { display: block; width: 100%; height: 100%; }
.cs-stage-hint { display: flex; justify-content: center; gap: 18px; padding: 8px 16px 12px; color: var(--cs-muted); font-size: 12px; flex-wrap: wrap; }
.cs-stage-hint kbd { font: 600 10.5px/1 var(--mono); border: 1px solid var(--cs-line-2); border-bottom-width: 2px; border-radius: 4px; padding: 2px 5px; color: var(--cs-text); }
.cs-stage-hint code { color: var(--cs-hi); background: rgba(255,242,0,.08); padding: 1px 4px; border-radius: 4px; }

/* panel */
.cs-panel { background: var(--cs-panel); border-left: 1px solid var(--cs-line); display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
.cs-tabs { display: flex; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--cs-line); }
.cs-tabs button { flex: 1; border: 0; background: transparent; color: var(--cs-muted); font: 600 12.5px var(--font); padding: 8px; border-radius: 8px; cursor: pointer; }
.cs-tabs button.on { background: rgba(255,255,255,.09); color: #fff; }
.cs-panel-b { overflow-y: auto; padding: 16px 16px 40px; display: grid; gap: 16px; align-content: start; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.cs-sect { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cs-sect h4 { font: 400 20px/1.1 var(--display); color: #fff; }
.cs-field { display: grid; gap: 6px; }
.cs-field > label, .cs-field-l { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 600; font-size: 12px; color: #c4c8e6; }
.cs-field-l small, .cs-field > label small { font: 500 10.5px var(--mono); color: var(--cs-muted); }
.cs-hint { color: var(--cs-muted); font-size: 11.5px; }
.cs-hint code { color: var(--cs-hi); }
.adm-body .cs-studio input[type=text], .adm-body .cs-studio input[type=url], .adm-body .cs-studio input[type=number],
.adm-body .cs-studio select, .adm-body .cs-studio textarea {
  background-color: rgba(255,255,255,.04); border: 1px solid var(--cs-line-2); color: #fff; border-radius: 8px; font-size: 13.5px;
}
.adm-body .cs-studio textarea { min-height: 64px; line-height: 1.45; }
.adm-body .cs-studio input::placeholder, .adm-body .cs-studio textarea::placeholder { color: rgba(255,255,255,.3); }
.adm-body .cs-studio input:focus, .adm-body .cs-studio select:focus, .adm-body .cs-studio textarea:focus { border-color: var(--cs-hi); box-shadow: 0 0 0 3px rgba(255,242,0,.12); }
.adm-body .cs-studio select option { color: var(--ink); background: #fff; }
.cs-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cs-items { display: grid; gap: 6px; }
.cs-item { display: grid; grid-template-columns: 26px minmax(0, 1fr) 26px; gap: 6px; align-items: center; }
.cs-item b { font: 700 11px/1 var(--mono); color: var(--navy); background: var(--cs-hi); border-radius: 5px; height: 24px; display: grid; place-items: center; }
.cs-item .cs-ic { background: rgba(255,255,255,.06); }
.cs-mini { border: 0; background: transparent; color: var(--cs-hi); font: 600 12px var(--font); cursor: pointer; padding: 4px 0; justify-self: start; }
.cs-mini:hover { text-decoration: underline; }
.cs-mini[disabled] { opacity: .4; pointer-events: none; }
.cs-img { position: relative; border-radius: 10px; border: 1px dashed var(--cs-line-2); background: rgba(255,255,255,.03); min-height: 110px; display: grid; place-items: center; overflow: hidden; cursor: pointer; color: var(--cs-muted); font-weight: 600; }
.cs-img:hover { border-color: var(--cs-hi); color: var(--cs-hi); }
.cs-img img { width: 100%; height: 150px; object-fit: cover; }
.cs-img .cs-img-x { position: absolute; top: 8px; right: 8px; }
.cs-range { display: grid; grid-template-columns: 1fr 44px; gap: 10px; align-items: center; }
.cs-range input { accent-color: var(--cs-hi); width: 100%; }
.cs-range output { font: 600 12px var(--mono); color: #fff; text-align: right; }
.cs-sep { height: 1px; background: var(--cs-line); margin: 2px 0; }
.cs-counts { display: flex; gap: 12px; flex-wrap: wrap; font: 500 11px var(--mono); color: var(--cs-muted); }
.cs-counts .over { color: #ff7a85; }
.cs-posted { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(62,207,142,.1); color: #9ff0c9; font-size: 12.5px; }
.cs-posted a { color: #fff; font-weight: 600; }
.cs-typebadge { font: 700 10px/1 var(--mono); letter-spacing: 1px; text-transform: uppercase; color: var(--navy); background: var(--cs-hi); padding: 5px 7px; border-radius: 5px; }

/* modals opened from the studio (light admin modal) */
.cs-dl-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cs-dl-opt { display: grid; gap: 6px; text-align: left; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.cs-dl-opt:hover { border-color: var(--navy); box-shadow: 0 6px 20px rgba(14,19,48,.1); }
.cs-dl-opt b { font-size: 14.5px; }
.cs-dl-opt span { color: var(--muted); font-size: 12.5px; }
.cs-dl-opt i { font: 400 22px/1 var(--display); color: var(--navy); font-style: normal; }
.cs-pub { display: grid; gap: 14px; }
.cs-pub-thumbs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.cs-pub-thumbs img { width: 76px; flex: none; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.cs-pub-caption { white-space: pre-wrap; max-height: 200px; overflow-y: auto; background: #f7f8fc; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 13px; }
.cs-pub-ok { text-align: center; padding: 10px 0; display: grid; gap: 10px; justify-items: center; }
.cs-pub-ok .cs-pub-check { width: 56px; height: 56px; border-radius: 50%; background: var(--yellow); color: var(--navy); display: grid; place-items: center; font-size: 26px; font-weight: 700; }

/* responsive studio */
@media (max-width: 1280px) { .cs-body { grid-template-columns: 168px minmax(0, 1fr) 320px; } }
@media (max-width: 900px) {
  .cs-studio { height: auto; min-height: calc(100vh - 70px); grid-template-rows: auto auto; overflow: visible; }
  .cs-top { flex-wrap: wrap; padding: 10px 12px; }
  .cs-top-sp { display: none; }
  .cs-body { grid-template-columns: 1fr; }
  .cs-rail { border-right: 0; border-bottom: 1px solid var(--cs-line); }
  .cs-thumbs { grid-auto-flow: column; grid-auto-columns: 96px; overflow-x: auto; overflow-y: hidden; }
  .cs-stage { height: 70vh; padding: 16px; }
  .cs-panel { border-left: 0; border-top: 1px solid var(--cs-line); }
  .cs-panel-b { overflow: visible; }
  .cs-add-menu { bottom: auto; top: 58px; }
}
