.roomtool .studio-grid { align-items:start; }
.roomtool .studio-visual, .roomtool .studio-controls { min-width:0; }
.roomtool .studio-visual figcaption { margin-top:.35rem; }
.roomtool .studio-buttons { display:flex; flex-wrap:wrap; gap:.35rem; }
.roomtool .studio-controls .studio-buttons button { display:inline-flex; gap:.43rem; align-items:center; min-height:44px; margin:0; }
.roomtool .studio-swatch { width:1.05rem; height:1.05rem; flex:0 0 1.05rem; border-radius:50%; border:1px solid #536159; }
.roomtool .studio-swatch.original { background:#fff; }
.roomtool .studio-swatch.clay { background:#b67765; }
.roomtool .studio-swatch.sage { background:#899772; }
.roomtool .studio-swatch.sand { background:#c2a17d; }
.roomtool .studio-buttons [aria-pressed="true"] .studio-swatch { border-color:#fff; }
.roomtool .custom-paint { margin-top:.7rem; display:flex; flex-wrap:wrap; align-items:center; gap:.55rem; border:1px solid #d9ded9; padding:.35rem .55rem; min-height:44px; width:fit-content; cursor:pointer; }
.roomtool .custom-paint.active-color { border-color:#253e31; background:#f0f5f1; }
.roomtool .custom-paint input { width:2.4rem; height:2.1rem; padding:.1rem; border:1px solid #a1aca2; background:white; cursor:pointer; }
.roomtool .custom-paint output { font: .85rem/1.3 system-ui,sans-serif; font-variant-numeric: tabular-nums; color:#48584d; }
.roomtool .upload-box { padding:.75rem; border:1px solid #d9ded9; margin:0 0 .8rem; }
.roomtool .upload-box input { margin:.3rem 0; max-width:100%; width:100%; font:inherit; font-size:.92rem; }
.roomtool .upload-box input::file-selector-button { background:#f3f6f3; color:#182820; border:1px solid #78847a; padding:.45rem .6rem; min-height:44px; margin-right:.4rem; cursor:pointer; font:inherit; }
.roomtool .upload-box p { margin:.35rem 0; }
.roomtool .upload-box #remove-photo { height:auto; margin:.5rem 0 0; }
.roomtool .upload-error { color:#9b2c20; font-size:.94rem; }
.roomtool .outline-instructions h2 { font-size:1.55rem; }
.roomtool .outline-instructions p { font-size:.95rem; margin:.4rem 0 .75rem; }
.roomtool .upload-frame { max-height: min(72vh, 720px); max-width:100%; width:auto; min-width:0; margin-inline:auto; cursor:crosshair; }
.roomtool .upload-frame.is-applied { cursor:default; }
.roomtool .upload-frame:focus-visible, .roomtool input:focus-visible { outline:3px solid #df9656; outline-offset:3px; }
.roomtool .outline-guide, .roomtool .outline-points, .roomtool .outline-cursor { position:absolute; inset:0; pointer-events:none; }
.roomtool .outline-guide { width:100%; height:100%; fill:#171d2545; stroke:#fff; stroke-width:2.5; }
.roomtool .outline-guide polygon { vector-effect:non-scaling-stroke; }
.roomtool .outline-points i { position:absolute; width:13px; height:13px; background:#182820; border:2px solid white; border-radius:50%; transform:translate(-50%,-50%); }
.roomtool .outline-cursor { display:none; inset:auto; width:18px; height:18px; background:#0b1f18; border:2px solid #fff; box-shadow:0 0 0 2px #0b1f18; transform:translate(-50%,-50%); border-radius:50%; }
.roomtool .upload-frame:focus-visible:not(.is-applied) .outline-cursor { display:block; }
.roomtool .outline-actions { display:flex; flex-wrap:wrap; gap:.4rem; }
.roomtool .outline-actions button { min-height:44px; }
.roomtool .outline-actions button:disabled { cursor:not-allowed; background:#f0f2ef; color:#5a635e; border-color:#ccd2cd; }
.roomtool #upload-label, .roomtool #outline-status { margin:.3rem 0; }
@media (max-width:660px) { .roomtool .studio-grid { grid-template-columns:minmax(0,1fr); } }
