/* RollinToHome size studio (home + product page). Tokens fall back to the Walnut palette. */
/* ---------- Size studio ---------- */
.studio button { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; font: inherit; color: inherit; -webkit-appearance: none; appearance: none; }
.studio.compact .st-out { flex-direction: column; align-items: stretch; }
.studio.compact .st-out .btn { width: 100%; }
.studio { background: #fff; border: 1px solid var(--line, #E5DACD); border-radius: calc(var(--r, 6px) * 2); padding: 14px; box-shadow: 0 40px 80px -40px rgba(58, 46, 40, .28); }
.studio .st-top { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.studio .seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper, #FAF6F1); border-radius: var(--r, 6px); padding: 4px; flex: 1; max-width: 300px; }
.studio .seg.three { grid-template-columns: repeat(3, 1fr); max-width: 380px; }
.studio .sub { display: flex; gap: 18px; margin-top: 12px; border-bottom: 1px solid var(--line, #E5DACD); }
.studio .sub button { padding: 8px 0 10px; font-size: 14px; font-weight: 500; color: var(--mute, #85776B); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.studio .sub button[aria-selected="true"] { color: var(--ink, #3A2E28); border-color: var(--ink, #3A2E28); }
.studio .stage .win .sash { fill: url(#glass); stroke: #FFFFFF; stroke-width: 5; }
.studio .stage .win .mull { stroke: #FFFFFF; stroke-width: 3; }
.studio .stage .win .sill { fill: #FFFFFF; }
.studio .stage .space { fill: none; stroke: var(--accent, #8A6750); stroke-width: 1.5; stroke-dasharray: 5 4; }
.studio .rule { font-size: 12.5px; color: var(--mute, #85776B); margin-top: 8px; transition: color .3s; }
.studio .rule.hit { color: var(--hover, #A0623C); font-weight: 600; }
.studio .suggest { margin-top: 14px; padding: 12px 14px; border-radius: var(--r, 6px); background: var(--sand, #F0E9E0); }
.studio .suggest[hidden] { display: none; }
.studio .suggest small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent, #8A6750); }
.studio .suggest b { display: block; font: 400 22px/1.2 var(--serif, Newsreader, Georgia, serif); color: var(--ink, #3A2E28); margin-top: 2px; }
.studio .suggest span { display: block; font-size: 13px; color: var(--body, #5C4F46); margin-top: 2px; }
.studio .presets[hidden] { display: none; }
.studio .st-panels[hidden] { display: none; }
.studio .st-panels button { flex: 0 0 auto; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line, #E5DACD); font-size: 13px; color: var(--body, #5C4F46); }
.studio .st-panels button[aria-pressed="true"] { border-color: var(--ink, #3A2E28); color: var(--ink, #3A2E28); background: var(--paper, #FAF6F1); }
.studio .seg button { height: 40px; border-radius: 4px; font-weight: 500; font-size: 14px; color: var(--body, #5C4F46); transition: background .2s, color .2s; }
.studio .seg button[aria-selected="true"] { background: var(--ink, #3A2E28); color: var(--paper, #FAF6F1); }
.studio .units { display: flex; border: 1px solid var(--line, #E5DACD); border-radius: 20px; padding: 3px; }
.studio .units button { height: 32px; min-width: 40px; border-radius: 16px; font-size: 13px; font-weight: 600; color: var(--mute, #85776B); }
.studio .units button[aria-pressed="true"] { background: var(--sand, #F0E9E0); color: var(--ink, #3A2E28); }
.studio .stage { position: relative; margin-top: 12px; border-radius: var(--r, 6px); overflow: hidden; touch-action: none; }
.studio .stage svg { width: 100%; height: auto; user-select: none; -webkit-user-select: none; }
.studio .stage .floor { fill: #E3D6C5; }
.studio .stage .person { fill: rgba(58, 46, 40, .13); }
.studio .stage .person text { font: 600 13px var(--sans); fill: var(--mute, #85776B); }
.studio .stage .frame { fill: none; stroke: #8A6750; stroke-width: 7; }
.studio .stage .rod { stroke: #3A2E28; stroke-width: 4; stroke-linecap: round; }
.studio .stage .rings circle { fill: #F4F1EC; stroke: #8E8A84; stroke-width: 1.6; }
.studio .stage .tub { fill: #FFFFFF; stroke: #C9B9A4; stroke-width: 1.5; }
.studio .stage .tubx .rim { fill: #FFFFFF; stroke: #C9B9A4; stroke-width: 1.5; }
.studio .stage .tubx text { font: 600 10px/1 var(--sans, sans-serif); letter-spacing: .12em; text-transform: uppercase; fill: #A99A88; }
.studio .stage .hem { fill: rgba(0, 0, 0, .08); }
.studio .stage .pleats { mix-blend-mode: multiply; }
.studio .stage .dim line { stroke: var(--accent, #8A6750); stroke-width: 1.2; stroke-dasharray: 3 3; }
.studio .stage .dim .tagbg { fill: var(--ink, #3A2E28); }
.studio .stage .dim text { font: 600 11.5px var(--sans); fill: var(--paper, #FAF6F1); }
.studio .stage .handle { cursor: nwse-resize; outline: none; }
.studio .stage .handle circle { fill: var(--ink, #3A2E28); stroke: #fff; stroke-width: 3; filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); transition: r .2s; }
.studio .stage .handle path { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.studio .stage .handle:focus-visible circle { stroke: var(--gold, #D4A574); }
.m .studio .stage .handle.pulse circle { animation: pulse 1.8s var(--ease, cubic-bezier(.22, .61, .36, 1)) 3; }
@keyframes pulse { 50% { r: 21; } }
.studio .hang { transform-box: fill-box; transform-origin: 50% 0; }
.studio .hang.sway { animation: sway 1.4s var(--ease, cubic-bezier(.22, .61, .36, 1)); }
@keyframes sway { 25% { transform: skewX(1.4deg); } 55% { transform: skewX(-.8deg); } 80% { transform: skewX(.3deg); } }
.studio .hint { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); background: rgba(58, 46, 40, .82); color: var(--paper, #FAF6F1); font-size: 12px; padding: 6px 12px; border-radius: 14px; pointer-events: none; transition: opacity .5s; white-space: nowrap; }
.studio .stage.used .hint { opacity: 0; }
.studio .st-row { display: flex; gap: 6px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.studio .st-row::-webkit-scrollbar { display: none; }
.studio .presets button { flex: 0 0 auto; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line, #E5DACD); font-size: 13px; color: var(--body, #5C4F46); }
.studio .presets button small { color: var(--mute, #85776B); margin-left: 4px; }
.studio .presets button[aria-pressed="true"] { border-color: var(--ink, #3A2E28); color: var(--ink, #3A2E28); background: var(--paper, #FAF6F1); }
.studio .st-in { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* a label that wraps ("Rod height above the bath") keeps its box level with its neighbour's */
.studio .st-in label { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.studio .st-in label > span, .studio .st-designs p span { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mute, #85776B); margin: 14px 0 6px; }
.studio .step { display: grid; grid-template-columns: 40px 1fr auto 40px; align-items: center; border: 1px solid var(--line, #E5DACD); border-radius: var(--r, 6px); height: 48px; }
.studio .step button { height: 100%; display: grid; place-items: center; color: var(--ink, #3A2E28); }
.studio .step button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.studio .step input { width: 100%; min-width: 0; border: 0; background: none; text-align: right; font-weight: 600; font-size: 17px; color: var(--ink, #3A2E28); padding: 0; -moz-appearance: textfield; }
.studio .step input::-webkit-inner-spin-button { -webkit-appearance: none; }
.studio .step input:focus { outline: none; }
.studio .step:focus-within { border-color: var(--ink, #3A2E28); }
.studio .step em { font-style: normal; font-size: 13px; color: var(--mute, #85776B); padding: 0 2px 0 4px; }
.studio .st-designs p { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.studio .st-designs p b { font-size: 13.5px; font-weight: 500; color: var(--ink, #3A2E28); }
.studio .sw { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.studio .sw button { aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden; background: var(--sand, #F0E9E0) center / cover no-repeat; border: 2px solid transparent; outline: 1px solid var(--line, #E5DACD); outline-offset: -1px; transition: transform .2s; }
.studio .sw button[aria-checked="true"] { border-color: var(--ink, #3A2E28); outline-color: transparent; }
.studio .sw button:hover { transform: translateY(-2px); }
.studio .st-out { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line, #E5DACD); }
.studio .st-out small { display: block; font-size: 12.5px; color: var(--mute, #85776B); }
.studio .st-out [data-badge] { color: var(--accent, #8A6750); font-weight: 600; }
.studio .st-out .price { display: block; font: 400 36px/1.1 var(--serif, Newsreader, Georgia, serif); color: var(--ink, #3A2E28); letter-spacing: -.02em; }
.studio .st-out .btn { padding: 0 18px; white-space: normal; text-align: center; line-height: 1.25; }
@media (max-width: 1023px) { .st-out { flex-direction: column; align-items: stretch; } }
@media (min-width: 1024px) {

  .studio:not(.compact) { padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 32px; }
  .studio:not(.compact) .st-top, .studio:not(.compact) .stage { grid-column: 1; }
  .studio:not(.compact) .stage { grid-row: 2 / span 4; margin-top: 14px; }
  .studio:not(.compact) .sub, .studio:not(.compact) .presets, .studio:not(.compact) .st-panels, .studio:not(.compact) .st-in, .studio:not(.compact) .rule, .studio:not(.compact) .suggest, .studio:not(.compact) .st-designs, .studio:not(.compact) .st-out { grid-column: 2; }
  .studio:not(.compact) .st-top { grid-column: 1 / -1; }
  .studio:not(.compact) .stage { grid-row: 2 / span 8; }
  .studio:not(.compact) .presets { margin-top: 14px; flex-wrap: wrap; }
  .studio:not(.compact) .sw { grid-template-columns: repeat(4, 1fr); }
  .studio:not(.compact) .st-out { flex-direction: column; align-items: stretch; }
  .studio:not(.compact) .st-out .btn { max-width: none; }
  .studio:not(.compact) .st-out .price { font-size: 42px; }
}

