/* SVEISA Studio */
.studio-hero { padding-bottom: 40px; }
.studio-sec { padding: 0 clamp(12px, 2vw, 28px) clamp(70px, 9vw, 120px); }
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; max-width: 1560px; margin-inline: auto; }
@media (max-width: 1060px) { .studio { grid-template-columns: 1fr; } }
.stage { position: relative; height: min(78vh, 760px); min-height: 460px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #dfe1e6; touch-action: pan-y; box-shadow: var(--shadow-lg); color: #fff; }
@media (max-width: 1060px) { .stage { height: 62vh; min-height: 380px; } }
#studio { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.st-top { position: absolute; left: 14px; right: 14px; top: 14px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; pointer-events: none; }
.st-top > * { pointer-events: auto; }
.st-top .pill { background: rgba(5,5,7,.6); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.st-cams { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(5,5,7,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); }
.st-cams .chip { border: 0; padding: 6px 12px; font-size: 12.5px; color: #cfcfd8; }
.st-cams .chip.on { background: #fff; color: #0a0a0c; }
.st-status { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px; background: rgba(5,5,7,.65); border: 1px solid var(--line-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; color: #e7e7ee; }
.st-status i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; }
.st-status.busy i { background: var(--glow-300); box-shadow: 0 0 10px var(--glow-300); animation: blink .8s infinite; }
.st-hint { position: absolute; right: 16px; bottom: 18px; color: rgba(255,255,255,.55); }
.stage .drop { position: absolute; inset: 12px; border: 1.5px dashed var(--glow-300); border-radius: 16px; display: grid; place-items: center; background: rgba(123,9,252,.2); font-size: 18px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.stage.dragging .drop { opacity: 1; }
.stage .fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); }

.dock { display: grid; align-content: start; gap: 0; border-radius: 22px; border: 1px solid var(--line); background: rgba(255,255,255,.8); box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow: hidden; }
@media (min-width: 1061px) { .dock { max-height: min(78vh, 760px); overflow-y: auto; scrollbar-width: thin; } }
.dock-sec { padding: 18px 18px 20px; border-bottom: 1px solid var(--line); display: grid; gap: 14px; }
.dock h4 { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.presets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.preset { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; text-align: left; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: all .25s var(--ease); }
.preset img { width: 40px; height: 52px; object-fit: cover; border-radius: 6px; }
.preset[data-preset="video"] img { object-position: 30% 50%; }
.preset b { display: block; font-size: 13px; font-weight: 500; }
.preset small { display: block; font-size: 11.5px; color: var(--muted); }
.preset:hover { border-color: rgba(123,9,252,.4); transform: translateY(-2px); box-shadow: var(--shadow); }
.preset.on { border-color: var(--violet-500); background: rgba(123,9,252,.07); box-shadow: 0 0 0 3px rgba(123,9,252,.12); }
.upload { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-2); background: rgba(255,255,255,.6); cursor: pointer; transition: all .2s; }
.upload:hover, .upload:focus-within { border-color: var(--glow-300); background: rgba(123,9,252,.08); }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload b { display: block; font-weight: 500; font-size: 14px; }
.upload small { display: block; font-size: 12px; color: var(--muted); word-break: break-all; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(28,20,60,.05); border: 1px solid var(--line); }
.seg button { flex: 1; border: 0; background: none; color: var(--muted); font-size: 13px; padding: 8px 6px; border-radius: 9px; cursor: pointer; transition: all .2s; white-space: nowrap; }
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--fg); box-shadow: 0 1px 3px rgba(28,20,60,.15); }
.seg button:disabled { opacity: .35; cursor: not-allowed; }
.seg.sm button { font-size: 12.5px; padding: 7px 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ctl { display: grid; gap: 8px; min-width: 0; }
.ctl .lbl { font-size: 12.5px; color: var(--muted); }
.lblrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lblrow b { font-weight: 400; font-size: 13px; }
.ctl .note { font-size: 12px; color: var(--dim); }
.ctl select, .ctl input[type="text"] { width: 100%; font: inherit; font-size: 13.5px; color: var(--fg); background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 10px; }
.ctl input[type="text"]:focus, .ctl select:focus { outline: none; border-color: var(--glow-300); }
.stepper { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; border-radius: 12px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.stepper button { height: 38px; border: 0; background: none; color: var(--fg); font-size: 18px; cursor: pointer; }
.stepper button:hover { background: rgba(123,9,252,.08); color: var(--violet-500); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper b { text-align: center; font-weight: 500; font-size: 16px; }
.switch { width: 40px; height: 24px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(28,20,60,.1); position: relative; cursor: pointer; transition: background .2s; flex: 0 0 auto; }
.switch i { position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.switch[aria-checked="true"] { background: var(--violet-500); border-color: var(--violet-500); }
.switch[aria-checked="true"] i { transform: translateX(16px); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; background: var(--line-2); border-radius: 2px; outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--violet-500); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 4px solid var(--violet-500); cursor: pointer; }
.dock-foot { padding: 16px 18px 18px; display: grid; gap: 12px; position: sticky; bottom: 0; background: rgba(255,255,255,.96); }
.draft { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; background: rgba(123,9,252,.07); border: 1px solid rgba(123,9,252,.25); }
.draft img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; background: #000; }
.draft b { display: block; font-size: 13px; font-weight: 500; }
.draft small { display: block; font-size: 12px; color: var(--muted); word-break: break-all; }
.draft[hidden] { display: none; }
.publish { width: 100%; height: 48px; font-size: 15px; }
.publish.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(172,137,255,.6); } 50% { box-shadow: 0 0 0 8px rgba(172,137,255,0); } }
