/* Flow scene creation studio (Advanced Flow page) */
.ss-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 960px) { .ss-wrap { grid-template-columns: 1fr; } }

.ss-room { position: relative; border-radius: 26px; overflow: hidden; background: #0B1220; box-shadow: 0 30px 70px rgba(6, 10, 23, .3); position: sticky; top: 90px; }
@media (max-width: 960px) { .ss-room { position: relative; top: 0; } }
.ss-room svg { display: block; width: 100%; height: auto; }
.ss-room .ss-ambient, .ss-room .ss-bulb, .ss-room .ss-tv { transition: opacity .5s ease, fill .5s ease, filter .5s ease; }
.ss-room .ss-curtain { transition: transform var(--spring-smooth-ms) var(--spring-smooth); transform-box: fill-box; }
.ss-air path, .ss-waves path { opacity: 0; }
.ss-air.on path { animation: ss-air 1.6s ease-in-out infinite; }
.ss-air.on path:nth-child(2) { animation-delay: .25s; }
.ss-air.on path:nth-child(3) { animation-delay: .5s; }
.ss-waves.on path { animation: ss-wave 1.4s ease-out infinite; }
.ss-waves.on path:nth-child(2) { animation-delay: .35s; }
@keyframes ss-air { 0% { opacity: 0; transform: translateY(-6px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(10px); } }
@keyframes ss-wave { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
#ss-overlay { position: absolute; inset: 0; pointer-events: none; }
.ss-badge.no-anim { animation: none; }
.ss-chips { position: absolute; inset-inline: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.ss-chips span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(6, 10, 23, .72); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; padding: 5px 10px; }
.ss-badge { position: absolute; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; background: var(--a); border-radius: 12px; padding: 7px 12px; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); animation: sky-pop var(--spring-bouncy-ms) var(--spring-bouncy) both; }

.ss-panel { display: flex; flex-direction: column; gap: 18px; }
.ss-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.ss-steps li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--slate); padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--mist); }
.ss-steps li > span { width: 24px; height: 24px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #CBD5E1; color: #fff; font-size: 12px; }
.ss-steps li.cur { background: #FCE7F3; color: #9D174D; }
.ss-steps li.cur > span { background: #BE185D; }
.ss-steps li.ok > span { background: #16A34A; }
.ss-body { display: flex; flex-direction: column; gap: 14px; min-height: 360px; }
.ss-body > * { animation: sky-up var(--spring-reveal-ms) var(--spring-reveal) both; }
.ss-nav { justify-content: space-between; }
.ss-nav #ss-next { margin-inline-start: auto; }

.ss-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.ss-presets button { font: inherit; font-size: 14px; font-weight: 600; border: 1px solid #D6DCE8; background: var(--white); color: var(--ink); border-radius: 999px; padding: 8px 14px; min-height: 40px; cursor: pointer; }
.ss-presets button:hover { border-color: #BE185D; color: #9D174D; }
.ss-row { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 16px; background: var(--mist); }
.ss-row-2 { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .ss-row-2 { grid-template-columns: 1fr; } }
.ss-dev { display: flex; align-items: center; gap: 10px; }
.ss-dev b { flex: 1 1 auto; font-size: 15px; }
.ss-range { display: flex; flex-direction: column; gap: 4px; }
.ss-range input { width: 100%; accent-color: #BE185D; min-height: 28px; }
.ss-switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; min-height: 32px; }
.ss-switch input { position: absolute; opacity: 0; width: 46px; height: 28px; margin: 0; cursor: pointer; }
.ss-switch span { width: 46px; height: 28px; border-radius: 999px; background: #CBD5E1; position: relative; transition: background-color .25s ease; }
.ss-switch span::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 999px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform var(--spring-bouncy-ms) var(--spring-bouncy); }
.ss-switch input:checked + span { background: #16A34A; }
.ss-switch input:checked + span::after { transform: translateX(18px); }
[dir="rtl"] .ss-switch input:checked + span::after { transform: translateX(-18px); }
.ss-switch input:focus-visible + span { outline: 3px solid rgba(0, 123, 255, .35); outline-offset: 2px; }
.ss-colors, .ss-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.ss-colors button { width: 36px; height: 36px; border-radius: 999px; border: 3px solid #fff; box-shadow: 0 0 0 1px #CBD5E1; cursor: pointer; transition: transform var(--spring-snappy-ms) var(--spring-snappy); }
.ss-colors button[aria-pressed="true"] { box-shadow: 0 0 0 3px #0A1B3D; transform: scale(1.08); }
.ss-icons button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid #D6DCE8; background: var(--white); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ss-icons button[aria-pressed="true"] { border-color: #BE185D; color: #BE185D; box-shadow: 0 0 0 3px rgba(190, 24, 93, .15); }
.ss-stepper { display: inline-flex; align-items: center; gap: 14px; align-self: flex-start; background: var(--white); border-radius: 999px; padding: 4px; }
.ss-stepper button { width: 40px; height: 40px; border-radius: 999px; border: 0; background: var(--mist); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ss-stepper b { font-family: 'Sora', sans-serif; font-size: 20px; min-width: 3ch; text-align: center; }
.ss-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 520px) { .ss-cards { grid-template-columns: 1fr; } }
.ss-cards button { font: inherit; font-size: 14px; font-weight: 600; text-align: start; display: flex; align-items: center; gap: 8px; padding: 10px 12px; min-height: 48px; border-radius: 12px; border: 1px solid #D6DCE8; border-inline-start: 4px solid var(--k); background: var(--white); color: var(--ink); cursor: pointer; }
.ss-cards button > svg { color: var(--k); flex: 0 0 auto; }
.ss-cards button[aria-pressed="true"] { background: color-mix(in srgb, var(--k) 10%, #fff); border-color: var(--k); }

.ss-done { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.ss-done-ic { width: 52px; height: 52px; border-radius: 999px; background: #DCFCE7; color: #16A34A; display: inline-flex; align-items: center; justify-content: center; }
.ss-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ss-mini > span { font-size: 13px; font-weight: 700; color: #fff; background: var(--k); border-radius: 10px; padding: 7px 10px; }
@media (prefers-reduced-motion: reduce) { .ss-air.on path, .ss-waves.on path { animation: none; opacity: .8; } .ss-body > * { animation: none; } }
