/* OBRAZNA Room Advisor — 6L.13a visual shell (steps 1–2 + shared chrome)
   Tokens align with catalog / obrazna-ui. Steps 3–4 detailed polish → 6L.13b. */

.obrazna-room-advisor{
  --ra-ink:var(--charcoal,#23252B);
  --ra-mute:var(--ink-mute,#6b6e76);
  --ra-soft:var(--ink-soft,#5c574f);
  --ra-line:rgba(35,37,43,.1);
  --ra-line-strong:rgba(35,37,43,.16);
  --ra-paper:#fff;
  --ra-tint:rgba(237,230,220,.45);
  --ra-sage:#2f4f3e;
  --ra-sage-soft:#e8f0eb;
  --ra-clay:var(--clay,#CB7A5B);
  --ra-radius:14px;
  --ra-radius-sm:10px;
  --ra-work-max:1000px;
  --ra-pad:28px;
  --ra-pad-sm:16px;
}

/* ---- Page rhythm (page-scoped; does not change global cat-hero) ---- */
.obrazna-room-advisor .ra-page-head{
  padding-top:18px;
}
.obrazna-room-advisor .ra-page-head .breadcrumb{
  margin-bottom:10px;
}
.obrazna-room-advisor .ra-hero{
  margin-bottom:0;
}
.obrazna-room-advisor .ra-hero .cat-hero-in > p{
  max-width:40rem;
}
.obrazna-room-advisor .ra-section{
  padding-top:18px;
  padding-bottom:40px;
}
@media (max-width:720px){
  .obrazna-room-advisor .ra-page-head{padding-top:12px;}
  .obrazna-room-advisor .ra-section{padding-top:12px;padding-bottom:28px;}
}

/* ---- Shared work shell ---- */
.obrazna-room-advisor .ra-work{
  width:100%;
  max-width:var(--ra-work-max);
  margin:0 auto;
  background:var(--ra-paper);
  border:1px solid var(--ra-line);
  border-radius:var(--ra-radius);
  box-shadow:0 10px 28px rgba(35,37,43,.05);
  padding:22px var(--ra-pad) 28px;
  box-sizing:border-box;
}
@media (max-width:720px){
  .obrazna-room-advisor .ra-work{
    padding:16px var(--ra-pad-sm) 20px;
    border-radius:12px;
    box-shadow:0 6px 18px rgba(35,37,43,.04);
  }
}

/* Panels sit inside shell — no nested card frames */
.obrazna-room-advisor .ra-panel{
  background:transparent;
  border:0;
  border-radius:0;
  padding:8px 0 0;
  margin:0;
  box-shadow:none;
}
.obrazna-room-advisor .ra-panel[hidden]{display:none!important;}

/* ---- Stepper ---- */
.obrazna-room-advisor .ra-steps{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  list-style:none;
  padding:0 0 18px;
  margin:0 0 18px;
  border-bottom:1px solid var(--ra-line);
  counter-reset:none;
}
.obrazna-room-advisor .ra-steps li{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  padding:4px 6px 2px;
  margin:0;
  background:transparent;
  border-radius:0;
  font-size:13.5px;
  font-weight:550;
  color:var(--ra-mute);
  text-align:center;
  min-width:0;
}
.obrazna-room-advisor .ra-steps li:not(:last-child)::after{
  content:"";
  position:absolute;
  top:18px;
  left:calc(50% + 22px);
  right:calc(-50% + 22px);
  height:2px;
  background:var(--ra-line-strong);
  z-index:0;
}
.obrazna-room-advisor .ra-steps li.is-done:not(:last-child)::after,
.obrazna-room-advisor .ra-steps li.is-active:not(:last-child)::after{
  background:rgba(47,79,62,.35);
}
.obrazna-room-advisor .ra-step-marker{
  position:relative;
  z-index:1;
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border-radius:999px;
  border:1.5px solid var(--ra-line-strong);
  background:#fff;
  color:var(--ra-mute);
  font-size:13px;
  font-weight:700;
  line-height:1;
  flex:0 0 auto;
}
.obrazna-room-advisor .ra-step-label{
  display:block;
  line-height:1.2;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.obrazna-room-advisor .ra-steps li.is-active{
  color:var(--ra-ink);
  background:transparent;
}
.obrazna-room-advisor .ra-steps li.is-active .ra-step-marker{
  border-color:var(--ra-sage);
  background:var(--ra-sage);
  color:#fff;
  box-shadow:0 0 0 4px rgba(47,79,62,.12);
}
.obrazna-room-advisor .ra-steps li.is-done{
  color:var(--ra-sage);
  background:transparent;
}
.obrazna-room-advisor .ra-steps li.is-done .ra-step-marker{
  border-color:rgba(47,79,62,.35);
  background:var(--ra-sage-soft);
  color:var(--ra-sage);
}
.obrazna-room-advisor .ra-steps li.is-done .ra-step-n{
  font-size:0;
}
.obrazna-room-advisor .ra-steps li.is-done .ra-step-marker::before{
  content:"";
  width:12px;
  height:7px;
  border-left:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(-45deg) translate(1px,-1px);
}

@media (max-width:560px){
  .obrazna-room-advisor .ra-steps{
    gap:0;
    padding-bottom:14px;
    margin-bottom:14px;
  }
  .obrazna-room-advisor .ra-steps li{
    gap:5px;
    padding:2px 2px;
    font-size:12px;
  }
  .obrazna-room-advisor .ra-step-marker{
    width:30px;
    height:30px;
    font-size:12px;
  }
  .obrazna-room-advisor .ra-steps li:not(:last-child)::after{
    top:15px;
    left:calc(50% + 18px);
    right:calc(-50% + 18px);
  }
  .obrazna-room-advisor .ra-steps li.is-active .ra-step-marker{
    box-shadow:0 0 0 3px rgba(47,79,62,.12);
  }
}

/* ---- Alerts ---- */
.obrazna-room-advisor .ra-alert{
  padding:12px 14px;
  border-radius:var(--ra-radius-sm);
  background:var(--ra-sage-soft);
  color:var(--ra-ink);
  margin:0 0 16px;
  font-size:14px;
  line-height:1.4;
  border:1px solid rgba(47,79,62,.12);
}
.obrazna-room-advisor .ra-alert.is-error{
  background:#f8e8e4;
  color:#7a3a2a;
  border-color:rgba(122,58,42,.14);
}
.obrazna-room-advisor .ra-alert[hidden]{display:none!important;}

/* ---- Step 1: Upload ---- */
.obrazna-room-advisor .ra-upload{
  border:1.5px dashed rgba(35,37,43,.18);
  border-radius:var(--ra-radius);
  padding:28px 22px;
  text-align:center;
  margin-bottom:16px;
  background:var(--ra-tint);
  transition:border-color .15s ease, background .15s ease;
}
.obrazna-room-advisor .ra-upload.is-drag{
  border-color:var(--ra-sage);
  background:var(--ra-sage-soft);
}
.obrazna-room-advisor .ra-upload-ico{
  display:inline-grid;
  place-items:center;
  width:56px;
  height:56px;
  margin:0 auto 12px;
  color:var(--ra-sage);
}
.obrazna-room-advisor .ra-upload-ico svg{
  width:48px;
  height:48px;
}
.obrazna-room-advisor .ra-upload-title{
  font-size:1.2rem;
  font-weight:600;
  color:var(--ra-ink);
  margin:0 0 6px;
  line-height:1.25;
}
.obrazna-room-advisor .ra-upload-hint{
  margin:0 0 16px;
  font-size:13.5px;
  color:var(--ra-mute);
}
.obrazna-room-advisor .ra-upload-drag{
  margin:12px 0 0;
  font-size:13px;
  color:var(--ra-mute);
}
.obrazna-room-advisor .ra-upload:has([data-ra-file-preview]:not([hidden])){
  padding:18px;
  text-align:left;
  border-style:solid;
  background:#fff;
}
.obrazna-room-advisor .ra-upload:has([data-ra-file-preview]:not([hidden])) .ra-upload-idle{
  display:none;
}

.obrazna-room-advisor .ra-file-preview{
  display:grid;
  grid-template-columns:minmax(0,42%) minmax(0,1fr);
  gap:18px;
  align-items:center;
  margin:0;
  padding:0;
  border:0;
}
.obrazna-room-advisor .ra-file-preview[hidden]{
  display:none!important;
}
.obrazna-room-advisor .ra-local-preview{
  display:block;
  width:100%;
  max-width:none;
  max-height:280px;
  aspect-ratio:4/3;
  object-fit:contain;
  border-radius:var(--ra-radius-sm);
  background:#f3f1ec;
  border:1px solid var(--ra-line);
}
.obrazna-room-advisor .ra-file-meta{min-width:0;}
.obrazna-room-advisor .ra-file-name{
  margin:0 0 4px;
  font-weight:650;
  font-size:15px;
  color:var(--ra-ink);
  word-break:break-word;
}
.obrazna-room-advisor .ra-file-size{
  margin:0;
  font-size:13.5px;
  color:var(--ra-mute);
}
.obrazna-room-advisor .ra-file-ready{
  margin:10px 0 14px;
  color:var(--ra-sage);
  font-size:14px;
  font-weight:550;
}
@media (max-width:640px){
  .obrazna-room-advisor .ra-upload{padding:22px 14px;}
  .obrazna-room-advisor .ra-file-preview{
    grid-template-columns:1fr;
    gap:12px;
  }
  .obrazna-room-advisor .ra-local-preview{
    max-height:220px;
  }
}

.obrazna-room-advisor .ra-privacy{
  display:block;
  margin:0 0 14px;
  padding:12px 14px;
  border-radius:var(--ra-radius-sm);
  background:rgba(237,230,220,.55);
  border:1px solid var(--ra-line);
  font-size:13.5px;
  line-height:1.45;
  color:var(--ra-soft);
}
.obrazna-room-advisor .ra-check{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin:0 0 18px;
  padding:12px 4px;
  min-height:44px;
  cursor:pointer;
  font-size:14.5px;
  line-height:1.4;
  color:var(--ra-ink);
}
.obrazna-room-advisor .ra-check input{
  width:20px;
  height:20px;
  margin:2px 0 0;
  flex:0 0 auto;
  accent-color:var(--ra-sage);
  cursor:pointer;
}
.obrazna-room-advisor .ra-upload-cta{
  min-height:48px;
}
.obrazna-room-advisor .ra-upload-cta[disabled],
.obrazna-room-advisor .btn[disabled]{
  opacity:.48;
  cursor:not-allowed;
  filter:grayscale(.15);
}
@media (max-width:640px){
  .obrazna-room-advisor .ra-upload-cta{
    width:100%;
    justify-content:center;
  }
}

/* ---- Step 2: Confirm ---- */
.obrazna-room-advisor .ra-confirm-grid{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
  gap:28px;
  align-items:start;
}
.obrazna-room-advisor .ra-photo-wrap{
  min-width:0;
  background:#f3f1ec;
  border-radius:var(--ra-radius-sm);
  border:1px solid var(--ra-line);
  overflow:hidden;
}
.obrazna-room-advisor .ra-photo{
  display:block;
  width:100%;
  max-height:none;
  aspect-ratio:4/3;
  object-fit:contain;
  background:#f3f1ec;
  border-radius:0;
}
.obrazna-room-advisor .ra-confirm-form{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.obrazna-room-advisor .ra-field{margin:0;}
.obrazna-room-advisor .ra-label{
  display:block;
  margin:0 0 8px;
  font-size:13px;
  font-weight:650;
  color:var(--ra-ink);
  letter-spacing:.01em;
}
.obrazna-room-advisor .ra-mode-field{
  border:0;
  padding:0;
  margin:0;
  min-width:0;
}
.obrazna-room-advisor .ra-mode-field > .ra-label,
.obrazna-room-advisor .ra-mode-field > legend.ra-label{
  padding:0;
  float:none;
  width:auto;
}

.obrazna-room-advisor .ra-select{
  position:relative;
  display:block;
}
.obrazna-room-advisor .ra-select::after{
  content:"";
  position:absolute;
  right:14px;
  top:50%;
  width:8px;
  height:8px;
  border-right:1.8px solid var(--ra-mute);
  border-bottom:1.8px solid var(--ra-mute);
  transform:translateY(-65%) rotate(45deg);
  pointer-events:none;
}
.obrazna-room-advisor .ra-select-input,
.obrazna-room-advisor select.ra-select-input{
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  min-height:46px;
  height:46px;
  padding:0 40px 0 14px;
  border:1px solid var(--ra-line-strong);
  border-radius:var(--ra-radius-sm);
  background:#fff;
  color:var(--ra-ink);
  font-size:14.5px;
  line-height:1.2;
  cursor:pointer;
}
.obrazna-room-advisor .ra-select-input:hover{
  border-color:rgba(35,37,43,.28);
}
.obrazna-room-advisor .ra-select-input:focus,
.obrazna-room-advisor .ra-select-input:focus-visible{
  outline:2px solid rgba(203,122,91,.45);
  outline-offset:2px;
  border-color:var(--ra-clay);
}

.obrazna-room-advisor .ra-mode-cards{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.obrazna-room-advisor .ra-mode-card{
  display:flex;
  align-items:flex-start;
  gap:0;
  margin:0;
  cursor:pointer;
  border:1px solid var(--ra-line-strong);
  border-radius:var(--ra-radius-sm);
  background:#fff;
  transition:border-color .12s ease, background .12s ease, box-shadow .12s ease;
}
.obrazna-room-advisor .ra-mode-card:hover{
  border-color:rgba(47,79,62,.35);
}
.obrazna-room-advisor .ra-mode-card input{
  position:absolute;
  opacity:0;
  width:1px;
  height:1px;
  margin:0;
  pointer-events:none;
}
.obrazna-room-advisor .ra-mode-card-body{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:12px 14px;
  min-height:44px;
  width:100%;
  box-sizing:border-box;
}
.obrazna-room-advisor .ra-mode-card-body strong{
  font-size:14px;
  font-weight:650;
  color:var(--ra-ink);
}
.obrazna-room-advisor .ra-mode-card-body small{
  font-size:12.5px;
  color:var(--ra-mute);
  line-height:1.35;
}
.obrazna-room-advisor .ra-mode-card:has(input:checked){
  border-color:var(--ra-sage);
  background:var(--ra-sage-soft);
  box-shadow:inset 0 0 0 1px rgba(47,79,62,.2);
}
.obrazna-room-advisor .ra-mode-card:has(input:focus-visible){
  outline:2px solid rgba(203,122,91,.5);
  outline-offset:2px;
}

.obrazna-room-advisor .ra-analysis{
  padding:12px 14px;
  border-radius:var(--ra-radius-sm);
  background:rgba(237,230,220,.5);
  border:1px solid var(--ra-line);
}
.obrazna-room-advisor .ra-analysis:has([data-ra-summary]:empty){
  display:none;
}
.obrazna-room-advisor .ra-analysis-label{
  display:block;
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--ra-mute);
  margin-bottom:6px;
}
.obrazna-room-advisor .ra-analysis-text{
  margin:0;
  font-size:14px;
  line-height:1.45;
  color:var(--ra-ink);
}

.obrazna-room-advisor .ra-confirm-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px 18px;
  margin-top:4px;
  padding-top:4px;
}
.obrazna-room-advisor .ra-confirm-actions .btn-primary{
  min-height:46px;
}
.obrazna-room-advisor .ra-delete-btn{
  appearance:none;
  border:0;
  background:transparent;
  padding:8px 2px;
  margin:0;
  font-size:14px;
  font-weight:550;
  color:#8a4a3c;
  text-decoration:underline;
  text-underline-offset:3px;
  cursor:pointer;
  min-height:44px;
}
.obrazna-room-advisor .ra-delete-btn:hover{
  color:#6a2b22;
}
.obrazna-room-advisor .ra-delete-btn:focus-visible{
  outline:2px solid rgba(203,122,91,.5);
  outline-offset:2px;
  border-radius:4px;
}

@media (max-width:900px){
  .obrazna-room-advisor .ra-confirm-grid{
    grid-template-columns:1fr;
    gap:18px;
  }
}
@media (max-width:640px){
  .obrazna-room-advisor .ra-confirm-actions{
    flex-direction:column;
    align-items:stretch;
  }
  .obrazna-room-advisor .ra-confirm-actions .btn-primary{
    width:100%;
    justify-content:center;
  }
  .obrazna-room-advisor .ra-delete-btn{
    text-align:center;
    width:100%;
  }
  .obrazna-room-advisor .ra-select-input{
    min-height:48px;
    height:48px;
  }
}

/* ---- Step 3: Recommendations (6L.13b) ---- */
.obrazna-room-advisor .ra-panel[data-ra-step="3"]{
  padding-top:18px;
}
.obrazna-room-advisor .ra-rec-group:first-child .ra-rec-group-title,
.obrazna-room-advisor .ra-rec-group:first-child h2{
  margin-top:4px;
}
.obrazna-room-advisor .ra-scale-note{
  margin:22px 0 0;
  font-size:13.5px;
  color:var(--ra-mute);
  line-height:1.45;
}

/* Group spacing */
.obrazna-room-advisor .ra-rec-group{
  margin:0 0 32px;
}
.obrazna-room-advisor .ra-rec-group:last-of-type{
  margin-bottom:0;
}
.obrazna-room-advisor .ra-rec-group-title,
.obrazna-room-advisor .ra-rec-group h2{
  font-size:1.2rem;
  font-weight:650;
  color:var(--ra-ink);
  margin:0 0 16px;
  line-height:1.25;
}

/* Override global catalog grid inside RA work panel.
   Keep .product-grid in every selector — base rule specificity (0,3,0)
   would otherwise beat shorter media-query selectors. */
.obrazna-room-advisor .ra-rec-grid.product-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px 18px;
  margin:0;
}
@media (max-width:900px){
  .obrazna-room-advisor .ra-rec-grid.product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px 14px;
  }
}
@media (max-width:480px){
  .obrazna-room-advisor .ra-rec-grid.product-grid{
    grid-template-columns:1fr;
    gap:16px;
  }
}

/* Card shell */
.obrazna-room-advisor .ra-product-card.product-card,
.obrazna-room-advisor .ra-product-card{
  display:flex;
  flex-direction:column;
  height:100%;
  min-width:0;
  background:#fff;
  border:1px solid var(--ra-line);
  border-radius:var(--ra-radius);
  overflow:hidden;
  box-shadow:0 4px 14px rgba(35,37,43,.04);
  transition:transform .18s ease, box-shadow .18s ease;
}
.obrazna-room-advisor .ra-product-card:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 24px rgba(35,37,43,.08);
}

/* Media — edge to edge top */
.obrazna-room-advisor .ra-product-card__media{
  display:block;
  aspect-ratio:4/3;
  background:var(--beige,#EDE6DC);
  overflow:hidden;
  flex:0 0 auto;
}
.obrazna-room-advisor .ra-product-card__media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .45s ease;
}
.obrazna-room-advisor .ra-product-card:hover .ra-product-card__media img{
  transform:scale(1.03);
}

/* Body */
.obrazna-room-advisor .ra-product-card__body{
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  gap:0;
  padding:14px 16px 0;
  min-width:0;
}
.obrazna-room-advisor .ra-product-card__title{
  margin:0 0 6px;
  font-size:16px;
  font-weight:650;
  line-height:1.3;
  color:var(--ra-ink);
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}
.obrazna-room-advisor .ra-product-card__title a{
  color:inherit;
  text-decoration:none;
}
.obrazna-room-advisor .ra-product-card__title a:hover{
  color:var(--ra-clay);
}
.obrazna-room-advisor .ra-product-card__title a:focus-visible{
  outline:2px solid rgba(203,122,91,.5);
  outline-offset:2px;
  border-radius:2px;
}
.obrazna-room-advisor .ra-product-card__price{
  margin:0 0 8px;
  display:flex;
  align-items:baseline;
  gap:6px;
  line-height:1.2;
}
.obrazna-room-advisor .ra-price-prefix{
  font-size:12.5px;
  color:var(--ra-mute);
  font-weight:500;
}
.obrazna-room-advisor .ra-price-value{
  font-size:16.5px;
  font-weight:750;
  color:var(--ra-ink);
  font-variant-numeric:tabular-nums;
}
.obrazna-room-advisor .ra-reason{
  margin:0;
  font-size:13.5px;
  line-height:1.45;
  color:var(--ra-mute);
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:4;
  overflow:hidden;
  min-height:0;
}

/* Actions pinned to bottom */
.obrazna-room-advisor .ra-product-card__actions{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:auto;
  padding:14px 16px 16px;
  flex:0 0 auto;
}
.obrazna-room-advisor .ra-product-card__actions .btn{
  width:100%;
  justify-content:center;
  min-height:40px;
  font-size:13.5px;
  padding:0 12px;
}
.obrazna-room-advisor .ra-product-card__actions .btn:focus-visible{
  outline:2px solid rgba(203,122,91,.55);
  outline-offset:2px;
}
@media (min-width:901px){
  .obrazna-room-advisor .ra-product-card__actions{
    flex-direction:row;
    flex-wrap:wrap;
  }
  .obrazna-room-advisor .ra-product-card__actions .btn-primary{
    flex:1 1 auto;
    min-width:0;
  }
  .obrazna-room-advisor .ra-product-card__actions .btn-secondary{
    flex:0 1 auto;
    min-width:5.5rem;
  }
}
@media (max-width:900px){
  .obrazna-room-advisor .ra-product-card__body{
    padding:13px 14px 0;
  }
  .obrazna-room-advisor .ra-product-card__actions{
    padding:12px 14px 14px;
  }
  .obrazna-room-advisor .ra-product-card__title{
    font-size:15.5px;
  }
}
@media (max-width:480px){
  .obrazna-room-advisor .ra-product-card__body{
    padding:14px 14px 0;
  }
  .obrazna-room-advisor .ra-product-card__actions{
    padding:14px;
  }
  .obrazna-room-advisor .ra-product-card__title{
    font-size:16px;
    -webkit-line-clamp:4;
  }
  .obrazna-room-advisor .ra-reason{
    font-size:14px;
    -webkit-line-clamp:5;
  }
  .obrazna-room-advisor .ra-product-card__actions .btn{
    min-height:44px;
  }
}

/* Legacy class aliases (if any cached HTML) */
.obrazna-room-advisor .ra-card-actions{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:auto;
  padding:14px 16px 16px;
}

/* ---- Step 4 editor (6L.13c hierarchy) ---- */
.obrazna-room-advisor .ra-editor [hidden]{
  display:none!important;
}
.obrazna-room-advisor .ra-editor{
  display:flex;
  flex-direction:column;
  gap:14px;
  scroll-margin-top:calc(var(--obrazna-header-h,72px) + 16px);
}
.obrazna-room-advisor .ra-editor-head{order:1;}
.obrazna-room-advisor .ra-editor-basics{order:2;}
.obrazna-room-advisor .ra-place-block{order:3;}
.obrazna-room-advisor .ra-editor-tools{order:4;}
.obrazna-room-advisor .ra-overlay-note{order:5;}
.obrazna-room-advisor .ra-canvas-wrap{order:6;}
.obrazna-room-advisor .ra-editor-help{order:7;}
.obrazna-room-advisor .ra-editor-head{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:12px 16px;
  align-items:center;
  padding-bottom:4px;
  border-bottom:1px solid var(--ra-line);
}
.obrazna-room-advisor .ra-editor-back{
  justify-self:start;
  min-height:44px;
}
.obrazna-room-advisor .ra-editor-product{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.obrazna-room-advisor .ra-editor-product-label{
  font-size:12px;
  font-weight:600;
  letter-spacing:.02em;
  text-transform:uppercase;
  color:var(--ra-mute);
}
.obrazna-room-advisor .ra-editor-title{
  font-size:1.05rem;
  font-weight:650;
  color:var(--ra-ink);
  line-height:1.3;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin:0;
}
.obrazna-room-advisor .ra-editor-detail{
  justify-self:end;
  min-height:44px;
  white-space:nowrap;
}

/* Basics: viz / size / wall */
.obrazna-room-advisor .ra-editor-basics{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,1.4fr) minmax(0,1fr);
  gap:14px 18px;
  align-items:start;
  padding:14px 16px;
  background:var(--ra-tint);
  border:1px solid var(--ra-line);
  border-radius:var(--ra-radius-sm);
}
.obrazna-room-advisor .ra-field{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.obrazna-room-advisor .ra-label{
  font-size:13px;
  font-weight:600;
  color:var(--ra-ink);
  margin:0;
}
.obrazna-room-advisor .ra-field-hint{
  margin:0;
  font-size:12.5px;
  line-height:1.4;
  color:var(--ra-mute);
}

/* Segmented Jednodílný / Triptych */
.obrazna-room-advisor .ra-viz-seg{
  display:flex;
  gap:0;
  width:100%;
  border:1px solid var(--ra-line-strong);
  border-radius:10px;
  overflow:hidden;
  background:#fff;
}
.obrazna-room-advisor .ra-viz-opt{
  flex:1 1 0;
  position:relative;
  margin:0;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:14px;
  font-weight:600;
  color:var(--ra-soft);
  background:#fff;
  border:0;
  border-right:1px solid var(--ra-line);
  transition:background .15s ease, color .15s ease;
}
.obrazna-room-advisor .ra-viz-opt:last-child,
.obrazna-room-advisor .ra-viz-opt[hidden] + .ra-viz-opt{
  border-right:0;
}
.obrazna-room-advisor .ra-viz-opt[hidden]{display:none!important;}
.obrazna-room-advisor .ra-viz-opt input{
  position:absolute;
  opacity:0;
  width:1px;
  height:1px;
  margin:0;
  pointer-events:none;
}
.obrazna-room-advisor .ra-viz-opt:has(input:checked){
  background:var(--ra-sage);
  color:#fff;
}
.obrazna-room-advisor .ra-viz-opt:has(input:focus-visible){
  outline:2px solid var(--ra-clay);
  outline-offset:-2px;
  z-index:1;
}
.obrazna-room-advisor .ra-viz-opt:hover:not(:has(input:checked)){
  background:rgba(47,79,62,.06);
}

/* Scale */
.obrazna-room-advisor .ra-scale-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
}
.obrazna-room-advisor input[data-ra-scale]{
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  height:28px;
  margin:0;
  background:transparent;
  cursor:pointer;
}
.obrazna-room-advisor input[data-ra-scale]::-webkit-slider-runnable-track{
  height:6px;
  border-radius:999px;
  background:rgba(35,37,43,.16);
}
.obrazna-room-advisor input[data-ra-scale]::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:22px;
  height:22px;
  margin-top:-8px;
  border-radius:50%;
  border:2px solid #fff;
  background:var(--ra-clay);
  box-shadow:0 1px 4px rgba(35,37,43,.25);
}
.obrazna-room-advisor input[data-ra-scale]::-moz-range-track{
  height:6px;
  border-radius:999px;
  background:rgba(35,37,43,.16);
}
.obrazna-room-advisor input[data-ra-scale]::-moz-range-thumb{
  width:22px;
  height:22px;
  border-radius:50%;
  border:2px solid #fff;
  background:var(--ra-clay);
  box-shadow:0 1px 4px rgba(35,37,43,.25);
}
.obrazna-room-advisor input[data-ra-scale]:focus-visible{
  outline:2px solid var(--ra-clay);
  outline-offset:4px;
  border-radius:6px;
}
.obrazna-room-advisor .ra-scale-value{
  font-size:13.5px;
  font-weight:650;
  color:var(--ra-ink);
  white-space:nowrap;
  min-width:7.5rem;
  text-align:right;
}

/* Wall width */
.obrazna-room-advisor .ra-wall-row{
  display:flex;
  align-items:stretch;
  gap:0;
  max-width:220px;
}
.obrazna-room-advisor .ra-wall-cm{
  flex:1 1 auto;
  width:100%;
  min-width:0;
  min-height:44px;
  padding:8px 12px;
  border:1px solid var(--ra-line-strong);
  border-right:0;
  border-radius:10px 0 0 10px;
  font-size:15px;
  background:#fff;
  box-sizing:border-box;
}
.obrazna-room-advisor .ra-wall-cm:focus{
  outline:2px solid var(--ra-clay);
  outline-offset:-1px;
  position:relative;
  z-index:1;
}
.obrazna-room-advisor .ra-wall-unit{
  display:inline-flex;
  align-items:center;
  padding:0 12px;
  min-height:44px;
  background:rgba(35,37,43,.05);
  border:1px solid var(--ra-line-strong);
  border-radius:0 10px 10px 0;
  font-size:13px;
  font-weight:600;
  color:var(--ra-mute);
}

/* Placement */
.obrazna-room-advisor .ra-place-block{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px 16px;
  align-items:center;
  padding:12px 14px;
  background:var(--ra-sage-soft);
  border:1px solid rgba(47,79,62,.18);
  border-radius:var(--ra-radius-sm);
}
.obrazna-room-advisor .ra-place-status-label{
  display:block;
  font-size:12px;
  font-weight:600;
  letter-spacing:.02em;
  text-transform:uppercase;
  color:var(--ra-sage);
  margin-bottom:2px;
}
.obrazna-room-advisor .ra-place-note{
  margin:0;
  color:#2a3d34;
  font-size:14.5px;
  font-weight:600;
  line-height:1.35;
  background:transparent;
  padding:0;
  border-radius:0;
}
.obrazna-room-advisor .ra-place-note[hidden]{
  display:none!important;
}
.obrazna-room-advisor .ra-place-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}
.obrazna-room-advisor .ra-place-actions .btn{
  min-height:44px;
}

/* Advanced + export row */
.obrazna-room-advisor .ra-editor-tools{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:flex-start;
}
.obrazna-room-advisor .ra-advanced{
  flex:1 1 220px;
  border:1px solid var(--ra-line);
  border-radius:10px;
  background:#fff;
  padding:0;
}
.obrazna-room-advisor .ra-advanced > summary{
  list-style:none;
  cursor:pointer;
  min-height:44px;
  display:flex;
  align-items:center;
  padding:8px 14px;
  font-size:14px;
  font-weight:600;
  color:var(--ra-soft);
  user-select:none;
}
.obrazna-room-advisor .ra-advanced > summary::-webkit-details-marker{display:none;}
.obrazna-room-advisor .ra-advanced > summary::after{
  content:"▾";
  margin-left:auto;
  font-size:12px;
  opacity:.7;
}
.obrazna-room-advisor .ra-advanced[open] > summary::after{content:"▴";}
.obrazna-room-advisor .ra-advanced > summary:focus-visible{
  outline:2px solid var(--ra-clay);
  outline-offset:-2px;
  border-radius:10px;
}
.obrazna-room-advisor .ra-advanced-body{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:0 12px 12px;
}
.obrazna-room-advisor .ra-advanced-body .btn,
.obrazna-room-advisor .ra-btn-reset{
  min-height:44px;
}
.obrazna-room-advisor .ra-btn-reset{
  appearance:none;
  border:0;
  background:transparent;
  color:#8a4b3a;
  font:inherit;
  font-size:14px;
  font-weight:600;
  padding:8px 12px;
  cursor:pointer;
  text-decoration:underline;
  text-underline-offset:3px;
  border-radius:8px;
}
.obrazna-room-advisor .ra-btn-reset:hover{color:#6e3528;}
.obrazna-room-advisor .ra-btn-reset:focus-visible{
  outline:2px solid var(--ra-clay);
  outline-offset:2px;
}
.obrazna-room-advisor .ra-adv-done{
  min-height:44px;
  order:-1;
}
.obrazna-room-advisor .ra-adv-done[hidden]{display:none!important;}
.obrazna-room-advisor .ra-editor.is-advanced-mode .ra-advanced{
  border-color:rgba(203,122,91,.45);
  box-shadow:0 0 0 1px rgba(203,122,91,.2);
}
.obrazna-room-advisor .ra-editor.is-advanced-mode .ra-adv-done{
  box-shadow:0 0 0 2px rgba(203,122,91,.25);
}

.obrazna-room-advisor .ra-overlay-note{
  color:#7a5b2e;
  background:#f7f1e4;
  padding:8px 10px;
  border-radius:8px;
  margin:0;
}
.obrazna-room-advisor .ra-canvas-wrap{
  width:100%;
  overflow:auto;
  background:#1c1c1c;
  border-radius:10px;
}
.obrazna-room-advisor canvas[data-ra-canvas]{
  display:block;
  width:100%;
  height:auto;
  cursor:grab;
  max-height:70vh;
}
.obrazna-room-advisor canvas[data-ra-canvas].is-advanced{cursor:default;}
.obrazna-room-advisor canvas[data-ra-canvas].is-perspective,
.obrazna-room-advisor canvas[data-ra-canvas].is-click-place{cursor:crosshair;}

/* Help under canvas */
.obrazna-room-advisor .ra-editor-help{
  margin:0;
  padding:0;
}
.obrazna-room-advisor .ra-help-lead{
  margin:0 0 6px;
  font-size:14px;
  color:var(--ra-soft);
  line-height:1.45;
}
.obrazna-room-advisor .ra-help-more{
  border:0;
  background:transparent;
}
.obrazna-room-advisor .ra-help-more > summary{
  list-style:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:13.5px;
  font-weight:600;
  color:var(--ra-mute);
  text-decoration:underline;
  text-underline-offset:3px;
}
.obrazna-room-advisor .ra-help-more > summary::-webkit-details-marker{display:none;}
.obrazna-room-advisor .ra-help-more > summary:focus-visible{
  outline:2px solid var(--ra-clay);
  outline-offset:2px;
  border-radius:4px;
}
.obrazna-room-advisor .ra-help-more p{
  margin:8px 0 0;
  font-size:13px;
  color:var(--ra-mute);
  line-height:1.45;
}
.obrazna-room-advisor .ra-help-keys{
  display:block;
  margin-top:4px;
  color:#666;
}

/* Desktop ≥1024 */
@media (min-width:1024px){
  .obrazna-room-advisor .ra-editor-basics{
    grid-template-columns:minmax(200px,.9fr) minmax(240px,1.3fr) minmax(180px,1fr);
  }
  .obrazna-room-advisor canvas[data-ra-canvas]{
    max-height:74vh;
  }
}

/* Tablet */
@media (max-width:900px){
  .obrazna-room-advisor .ra-editor-basics{
    grid-template-columns:1fr 1fr;
  }
  .obrazna-room-advisor .ra-wall-field{
    grid-column:1 / -1;
  }
  .obrazna-room-advisor .ra-place-block{
    grid-template-columns:1fr;
  }
  .obrazna-room-advisor .ra-place-actions{
    justify-content:stretch;
  }
  .obrazna-room-advisor .ra-place-actions .btn{
    flex:1 1 auto;
  }
}

/* Mobile */
@media (max-width:720px){
  .obrazna-room-advisor .ra-editor{gap:10px;}
  /* Canvas before advanced/export — Hotovo stays above canvas in advanced mode */
  .obrazna-room-advisor .ra-canvas-wrap{order:4;}
  .obrazna-room-advisor .ra-overlay-note{order:5;}
  .obrazna-room-advisor .ra-editor-tools{order:6;}
  .obrazna-room-advisor .ra-editor-help{order:7;}
  .obrazna-room-advisor .ra-editor.is-advanced-mode .ra-editor-tools{order:4;}
  .obrazna-room-advisor .ra-editor.is-advanced-mode .ra-canvas-wrap{order:5;}
  .obrazna-room-advisor .ra-editor.is-advanced-mode .ra-overlay-note{order:6;}
  .obrazna-room-advisor .ra-editor-head{
    grid-template-columns:1fr auto;
    gap:8px 10px;
    padding-bottom:2px;
  }
  .obrazna-room-advisor .ra-editor-back{
    grid-column:1 / -1;
    width:fit-content;
    min-height:40px;
  }
  .obrazna-room-advisor .ra-editor-product{grid-column:1;}
  .obrazna-room-advisor .ra-editor-detail{
    grid-column:2;
    grid-row:2;
    min-height:40px;
    padding-left:12px;
    padding-right:12px;
  }
  .obrazna-room-advisor .ra-editor-title{
    font-size:1.05rem;
    -webkit-line-clamp:3;
  }
  .obrazna-room-advisor .ra-editor-basics{
    grid-template-columns:1fr;
    gap:10px;
    padding:10px 12px;
  }
  .obrazna-room-advisor .ra-field{gap:6px;}
  .obrazna-room-advisor .ra-field-hint{
    font-size:12px;
    line-height:1.3;
  }
  .obrazna-room-advisor .ra-scale-row{
    grid-template-columns:minmax(0,1fr) auto;
    gap:10px;
    align-items:center;
  }
  .obrazna-room-advisor .ra-scale-value{
    text-align:right;
    min-width:0;
    font-size:13px;
  }
  .obrazna-room-advisor .ra-wall-row{
    max-width:none;
  }
  .obrazna-room-advisor .ra-place-block{
    gap:10px;
    padding:10px 12px;
  }
  .obrazna-room-advisor .ra-place-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
  }
  .obrazna-room-advisor .ra-place-actions .btn{
    width:100%;
    min-height:44px;
    padding-left:8px;
    padding-right:8px;
    font-size:13.5px;
  }
  .obrazna-room-advisor .ra-editor-tools{
    flex-direction:column;
  }
  .obrazna-room-advisor .ra-advanced{flex:1 1 auto;width:100%;}
  .obrazna-room-advisor .ra-editor-tools > [data-ra-download],
  .obrazna-room-advisor .ra-adv-done{
    width:100%;
  }
  .obrazna-room-advisor canvas[data-ra-canvas]{
    max-height:58vh;
  }
  .obrazna-room-advisor .ra-help-lead{font-size:13.5px;}
}

/* Legacy aliases */
.obrazna-room-advisor .ra-editor-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin-bottom:10px;
}
.obrazna-room-advisor .ra-inline{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-right:8px;
  font-size:14px;
}
.obrazna-room-advisor .ra-scale-note{
  margin:0;
  font-size:13.5px;
  color:var(--ra-mute);
  line-height:1.45;
}

/* ---- Homepage CTA (unchanged role) ---- */
.obrazna-room-advisor .ra-home-cta{
  background:linear-gradient(135deg,#f4f0e8,#e7efe9);
  border-radius:16px;
  padding:28px 24px;
  margin:24px 0;
}
.obrazna-room-advisor-home-cta{
  background:linear-gradient(135deg,#f4f0e8 0%,#e8efe9 100%);
  border-radius:16px;
  padding:32px 28px;
  margin:8px 0 28px;
  display:grid;
  gap:12px;
}
.obrazna-room-advisor-home-cta h2{
  margin:0;
  font-size:clamp(1.4rem,2.2vw,1.9rem);
}
.obrazna-room-advisor-home-cta p{
  margin:0;
  max-width:42rem;
}
