/* Rabin-Interiors & Woods: Kitchen Studio. Themed through the --riw-* variables in core.css. */

.riw-studio { display: grid; grid-template-columns: 1.35fr .65fr; gap: 20px; }
.riw-scene { position: relative; border-radius: var(--riw-radius); overflow: hidden; aspect-ratio: 16/11; background: #e9e1d4; }
.riw-scene__wall { position: absolute; inset: 0 0 18% 0; background: var(--wall, #e7dfd2); transition: background .8s, filter .8s; }
.riw-scene__wall::after { content: ""; position: absolute; inset: 0; background: var(--riw-noise); opacity: .18; mix-blend-mode: multiply; }
.riw-scene__floor { position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: linear-gradient(180deg, #b9a68e, #a18c72); transition: filter .8s; }
.riw-scene__floor::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 110px, rgba(0,0,0,.08) 110px 111px); }
.riw-k-up, .riw-k-lo { position: absolute; left: 7%; right: 7%; display: grid; grid-template-columns: 1fr 1fr 1.15fr 1fr 1fr; gap: 5px; }
.riw-k-up { top: 9%; height: 27%; } .riw-k-lo { top: 56%; height: 23%; }
.riw-sh { position: relative; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 6px 14px -6px rgba(0,0,0,.35); transition: background .7s var(--riw-ease), filter .8s; }
.riw-sh::after { content: ""; position: absolute; width: 30%; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #b28a4a, #e8c98a, #b28a4a); left: 35%; }
.riw-k-up .riw-sh::after { bottom: 9%; } .riw-k-lo .riw-sh::after { top: 9%; }
.riw-sh--drw { display: grid; grid-template-rows: 1fr 1fr 1fr; gap: 4px; background: none !important; box-shadow: none; }
.riw-sh--drw::after { display: none; }
.riw-sh--drw i { position: relative; border-radius: 3px; background: var(--lo-bg); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 4px 10px -6px rgba(0,0,0,.35); transition: background .7s, filter .8s; }
.riw-sh--drw i::after { content: ""; position: absolute; width: 30%; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #b28a4a, #e8c98a, #b28a4a); left: 35%; top: 30%; }
.riw-hood { position: relative; }
.riw-hood::before { content: ""; position: absolute; left: 28%; right: 28%; top: 0; height: 55%; background: linear-gradient(90deg, #9ea3a6, #e3e6e8 45%, #a7acaf); }
.riw-hood::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: 0; height: 45%; background: linear-gradient(180deg, #d7dadc, #9aa0a3); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
.riw-sh--oven { background: linear-gradient(180deg, #1d1d1f, #2c2c2f) !important; }
.riw-sh--oven::after { width: 70%; left: 15%; top: 12% !important; background: #666; }
.riw-sh--oven::before { content: ""; position: absolute; left: 12%; right: 12%; top: 28%; bottom: 14%; border-radius: 4px; background: linear-gradient(135deg, #0d0d0f, #26262a); box-shadow: inset 0 0 0 1px #3a3a3e; }
.riw-scene__splash { position: absolute; left: 7%; right: 7%; top: 36%; height: 17.5%; background: repeating-linear-gradient(0deg, transparent 0 22px, rgba(0,0,0,.06) 22px 23px), repeating-linear-gradient(90deg, var(--splash, #f3efe8) 0 44px, rgba(0,0,0,.06) 44px 45px); transition: background .6s, filter .8s; }
.riw-scene__glow { position: absolute; left: 7%; right: 7%; top: 36%; height: 18%; background: radial-gradient(60% 100% at 50% 0%, rgba(255,196,110,.75), transparent 70%); opacity: 0; transition: opacity .8s; mix-blend-mode: screen; }
.riw-scene__counter { position: absolute; left: 6%; right: 6%; top: 53%; height: 3.2%; border-radius: 2px; background: var(--ctop); box-shadow: 0 4px 8px -2px rgba(0,0,0,.35); transition: background .6s; }
.riw-scene__plinth { position: absolute; left: 7%; right: 7%; top: 79%; height: 3%; background: #1d1a17; }
.riw-scene.is-night .riw-scene__wall { filter: brightness(.42); } .riw-scene.is-night .riw-scene__floor { filter: brightness(.45); }
.riw-scene.is-night :is(.riw-sh, .riw-sh--drw i, .riw-scene__splash) { filter: brightness(.72); }
.riw-scene.is-night .riw-scene__glow { opacity: 1; }
.riw-scene__plant { position: absolute; right: 8.5%; top: 46%; width: 5%; height: 7%; }
.riw-scene__plant::before { content: ""; position: absolute; left: 15%; right: 15%; bottom: 0; height: 45%; background: #efe9df; border-radius: 2px 2px 5px 5px; }
.riw-scene__plant::after { content: ""; position: absolute; left: 0; right: 0; bottom: 40%; height: 90%; background: radial-gradient(circle at 30% 60%, #4f6b45 0 30%, transparent 31%), radial-gradient(circle at 65% 40%, #5d7c51 0 32%, transparent 33%), radial-gradient(circle at 50% 75%, #3f5a37 0 30%, transparent 31%); }
.riw-scene__hud { position: absolute; left: 16px; bottom: 16px; right: 16px; display: flex; justify-content: space-between; align-items: end; gap: 1rem; z-index: 2; }
.riw-hud-card { background: rgba(255,255,255,.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 16px; padding: .8rem 1rem; font-size: .78rem; line-height: 1.4; color: #544b42; }
.riw-hud-card b { display: block; color: #1c1712; font-family: var(--riw-font-display); font-size: 1rem; }
.riw-toggle { display: flex; background: rgba(21,18,15,.8); border-radius: 999px; padding: 4px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.riw-toggle button { padding: .5rem .9rem; border-radius: 999px; border: 0; background: none; cursor: pointer; font-size: .78rem; color: #cfc6b9; transition: all .3s; }
.riw-toggle button.is-on { background: #f3d79b; color: #1c1712; }
.riw-panel { background: var(--riw-card); border: 1px solid var(--riw-line); border-radius: var(--riw-radius); padding: 1.6rem; display: flex; flex-direction: column; gap: 1.4rem; }
.riw-panel h4 { font-family: var(--riw-font-display); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--riw-muted); font-weight: 600; line-height: 1.4; margin-bottom: .7rem; display: flex; justify-content: space-between; gap: .5rem; }
.riw-panel h4 em { font-style: normal; color: var(--riw-text); letter-spacing: 0; text-transform: none; font-family: var(--riw-font); font-weight: 500; text-align: right; }
.riw-seg { display: flex; background: var(--riw-tint); border-radius: 999px; padding: 4px; }
.riw-seg button { flex: 1; padding: .55rem; border-radius: 999px; border: 0; background: none; cursor: pointer; font-size: .82rem; color: var(--riw-muted); transition: all .3s; }
.riw-seg button.is-on { background: var(--riw-accent-soft); color: #1c1712; }
.riw-sws { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.riw-sws button { aspect-ratio: 1; border-radius: 12px; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); transition: transform .3s var(--riw-ease); }
.riw-sws button:hover { transform: translateY(-3px) scale(1.04); }
.riw-sws button.is-on { box-shadow: 0 0 0 2px var(--riw-card), 0 0 0 4px var(--riw-accent-soft); }
.riw-sws--sm { grid-template-columns: repeat(4, 1fr); }
.riw-sws--sm button { aspect-ratio: 2/1; }
.riw-panel .riw-btn { justify-content: center; }
.riw-note { font-size: .75rem; color: var(--riw-dim); text-align: center; }

/* Layout step (optional): front/plan switch, the plan view and the panel group */
.riw-viewtog { position: absolute; left: 16px; top: 16px; z-index: 3; display: flex; padding: 4px; border-radius: 999px; background: rgba(21,18,15,.8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.riw-viewtog button { padding: .45rem .9rem; border-radius: 999px; border: 0; background: none; color: #cfc6b9; font-size: .78rem; cursor: pointer; transition: all .3s; }
.riw-viewtog button.is-on { background: #f3d79b; color: #1c1712; }
.riw-plan { position: absolute; inset: 0; z-index: 2; background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.08) 1px, transparent 0) 0 0 / 20px 20px, #2a241e; }
.riw-plan[hidden] { display: none; }
.riw-plan__floor { position: absolute; background: #3a322a; box-shadow: 0 0 0 7px #efe8dc; }
.riw-plan__seg { position: absolute; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.35), 0 6px 14px -8px rgba(0,0,0,.6); transition: left .5s var(--riw-ease), top .5s var(--riw-ease), width .5s var(--riw-ease), height .5s var(--riw-ease); }
.riw-plan__seg[hidden] { display: none; }
.riw-plan__top { position: absolute; inset: 3px; border-radius: 2px; opacity: .94; }
.riw-plan__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.riw-plan__lbl { fill: #f6f1e9; font-size: 11px; font-weight: 600; font-family: var(--riw-font); paint-order: stroke; stroke: rgba(0,0,0,.55); stroke-width: 3px; }
.riw-plan__dim { fill: #cfc6b9; font-size: 12px; font-family: var(--riw-font); letter-spacing: .04em; }
.riw-scene.is-plan .riw-scene__hud { display: none; }

.riw-shapes { display: flex; flex-wrap: wrap; gap: 6px; }
.riw-shapes button { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .75rem .4rem .45rem; border-radius: 12px; border: 1px solid var(--riw-line-strong); background: var(--riw-bg); color: var(--riw-text); font-size: .8rem; font-weight: 600; cursor: pointer; transition: all .25s; }
.riw-shapes button:hover { border-color: var(--riw-accent); }
.riw-shapes button.is-on { border-color: var(--riw-accent); background: var(--riw-tint); box-shadow: inset 0 0 0 1px var(--riw-accent); }
.riw-shapes svg { width: 22px; height: 22px; fill: currentColor; }
.riw-lay-dims { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: .9rem; }
.riw-lay-dims label { display: flex; flex-direction: column; gap: .3rem; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--riw-muted); }
.riw-lay-dims label b { color: var(--riw-text); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: .85rem; }
.riw-lay-dims input { width: 100%; margin: 0; accent-color: var(--riw-accent); cursor: pointer; }
.riw .riw-lay-info { display: flex; flex-direction: column; gap: .15rem; margin-top: .8rem; font-size: .8rem; color: var(--riw-muted); line-height: 1.45; }
.riw-lay-info .is-ok { color: #3f8f55; font-weight: 600; }
.riw-lay-info .is-warn { color: #b7791f; font-weight: 600; }
.riw--dark .riw-lay-info .is-ok { color: #7bd88f; }
.riw--dark .riw-lay-info .is-warn { color: #ffb347; }
.riw-lay-info strong { color: var(--riw-text); font-size: .95rem; margin-top: .2rem; }

@media (max-width: 1100px) {
	.riw-studio { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
	.riw-sws { grid-template-columns: repeat(4, 1fr); }
	.riw-scene { aspect-ratio: 1; }
	.riw-scene__hud { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
	.riw-studio * { transition: none !important; }
}
