/* FRONTELIER V086.672 HOTFIX 8 · Real renderer, high-clarity premium mobile editor.
   Purposeful restraint: the materials and kitchens lead; not a wall of cards.
   Desktop / business logic / media contracts untouched. */
.studio-h8-categories,.studio-h8-swatches,.studio-h8-selection,.studio-h8-intro-note,.studio-h8-all-decor,.studio-h8-mobile-title{display:none}
@media(max-width:820px){
  body.studio-page{--h8-ink:#142b20;--h8-muted:#67776e;--h8-line:#dce3dc;--h8-paper:#f8f7f3;background:#f8f7f3!important}
  body.studio-page .studio-main{background:transparent!important}
  body.studio-page .studio-shell{width:calc(100% - 30px)!important;max-width:640px!important}
  body.studio-page .studio-intro{padding:11px 0 9px!important}
  body.studio-page .studio-h8-mobile-title{display:inline!important}
  body.studio-page .studio-h8-desktop-title{display:none!important}
  body.studio-page .studio-intro h1{font-size:clamp(23px,6.3vw,30px)!important;line-height:1.12!important;font-weight:780!important;letter-spacing:-.055em!important;color:var(--h8-ink)!important}
  body.studio-page .studio-intro .studio-h8-intro-note{display:block!important;margin:5px 0 0!important;font-size:12px!important;line-height:1.32!important;color:var(--h8-muted)!important;font-weight:450!important}
  body.studio-page .studio-visual .buehne{border:0!important;border-radius:16px!important;background:#e9e9e2!important;box-shadow:0 3px 14px rgba(21,37,26,.07)!important}
  body.studio-page .studio-visual .buehne .zone-hit{padding:4px 10px 4px 5px!important;min-height:30px!important;font-size:11px!important;font-weight:650!important;letter-spacing:-.01em!important;box-shadow:0 2px 9px rgba(5,26,14,.13)!important;border:1px solid rgba(255,255,255,.78)!important;backdrop-filter:blur(14px)!important}
  body.studio-page .studio-visual .buehne .zone-hit span{font-size:0!important;width:15px!important;height:15px!important;background:#a2b79c!important;border:3px solid rgba(255,255,255,.9)!important}
  body.studio-page .studio-visual .buehne .zone-hit[aria-pressed=true]{background:#133d2a!important;color:white!important}
  body.studio-page .studio-visual .buehne .zone-hit[aria-pressed=true] span{background:#c7e6b5!important;border-color:#133d2a!important}
  body.studio-page .studio-visual .ansicht{left:8px!important;bottom:8px!important;padding:2px!important;box-shadow:0 1px 5px rgba(13,32,22,.13)!important;background:rgba(252,252,249,.92)!important;border:1px solid rgba(255,255,255,.7)!important}
  body.studio-page .studio-visual .ansicht button{font-size:10px!important;padding:5px 9px!important;font-weight:620!important}
  body.studio-page .studio-visual .ansicht button[aria-pressed=true]{background:#153f2b!important}
  /* Remove the H7 card treatment and duplicate tutorial heading. */
  body.studio-page .studio-mobile-quick{background:transparent!important;border:0!important;box-shadow:none!important;padding:13px 1px 7px!important;margin:0!important;border-radius:0!important}
  body.studio-page .studio-mobile-quick-heading{margin:0 0 8px!important}
  body.studio-page .studio-mobile-quick-kicker{display:none!important}
  body.studio-page .studio-mobile-quick-heading h2{font-size:14px!important;font-weight:740!important;letter-spacing:-.025em!important;margin:0!important;color:var(--h8-ink)!important}
  body.studio-page .studio-mobile-quick-scene{font-size:10px!important;font-weight:550!important;color:var(--h8-muted)!important}
  /* One accessible zone control, small and visually secondary to the kitchen. */
  body.studio-page .studio-mobile-quick-zones{display:flex!important;gap:0!important;padding:3px!important;margin:0 0 8px!important;border-radius:12px!important;background:#eaece6!important;border:1px solid #e4e9e1!important}
  body.studio-page .studio-mobile-quick-zone{height:34px!important;min-height:34px!important;flex:1 1 50%!important;padding:6px 8px!important;background:transparent!important;border:0!important;border-radius:9px!important;color:#53675a!important;font-size:12px!important;font-weight:630!important;box-shadow:none!important;transition:background .16s ease,color .16s ease}
  body.studio-page .studio-mobile-quick-zone[aria-pressed=true]{background:#fff!important;color:#133d29!important;box-shadow:0 1px 4px rgba(12,45,26,.1)!important}
  body.studio-page .studio-mobile-trends{display:none!important}
  /* Categories are content navigation, not oversized buttons. */
  body.studio-page .studio-h8-categories{display:flex;align-items:center;gap:3px;overflow-x:auto;min-height:32px;margin:0 0 5px;padding:0 0 2px;scrollbar-width:none;-webkit-overflow-scrolling:touch;white-space:nowrap}
  body.studio-page .studio-h8-categories::-webkit-scrollbar{display:none}
  body.studio-page .studio-h8-category{flex:none;min-height:29px;padding:5px 9px;background:transparent;border:0;border-bottom:2px solid transparent;border-radius:0;font-size:11px;color:#6e7a71;letter-spacing:-.015em;font-weight:620;cursor:pointer}
  body.studio-page .studio-h8-category[aria-pressed=true]{color:#173d2b;border-bottom-color:#214e36;font-weight:780}
  body.studio-page .studio-h8-all-decor{display:flex;align-items:center;gap:3px;flex:none;margin-left:auto;padding:5px 1px 5px 10px;border:0;background:transparent;cursor:pointer;color:#214936;font-size:10px;font-weight:700;text-decoration:none}
  body.studio-page .studio-h8-swatches{display:flex!important;overflow-x:auto;overflow-y:hidden;align-items:center;gap:5px;padding:4px 2px 5px;scrollbar-width:none;scroll-snap-type:x proximity;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;min-height:43px}
  body.studio-page .studio-h8-swatches::-webkit-scrollbar{display:none}
  body.studio-page .studio-h8-swatch{display:flex;justify-content:center;align-items:center;flex:0 0 35px;width:35px;height:39px;padding:2px!important;border:1.5px solid transparent;background:transparent;border-radius:9px;cursor:pointer;scroll-snap-align:start;touch-action:manipulation}
  body.studio-page .studio-h8-swatch-texture{display:block;width:30px;height:30px;border-radius:7px;background-color:#e0e1d8;background-size:cover;background-position:center;box-shadow:inset 0 0 0 1px rgba(26,44,31,.12);transition:transform .16s ease}
  body.studio-page .studio-h8-swatch[aria-pressed=true]{border-color:#164d32;background:#fff;box-shadow:0 0 0 1px #fff}
  body.studio-page .studio-h8-swatch[aria-pressed=true] .studio-h8-swatch-texture{transform:scale(.93)}
  body.studio-page .studio-h8-swatch:focus-visible,body.studio-page .studio-h8-category:focus-visible,body.studio-page .studio-h8-all-decor:focus-visible{outline:3px solid #85a985!important;outline-offset:2px!important}
  body.studio-page .studio-h8-selection{display:flex!important;align-items:center;min-width:0;gap:6px;min-height:29px;margin:2px 0 6px;color:#1a3827}
  body.studio-page .studio-h8-selection-dot{display:block;flex:0 0 16px;width:16px;height:16px;border-radius:5px;background:#e2e6dd center/cover;border:1px solid #d6ded4}
  body.studio-page #studio-h8-selected-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:740}
  body.studio-page #studio-h8-selected-code{flex:none;font-size:10px;color:#728076;font-weight:500;white-space:nowrap}
  body.studio-page .studio-mobile-quick-actions{margin-top:0!important;gap:7px!important;align-items:stretch!important}
  body.studio-page .studio-mobile-quick-add{background:#173d2b!important;color:#fff!important;border:1px solid #173d2b!important;min-height:38px!important;padding:8px 12px!important;border-radius:10px!important;font-size:12px!important;font-weight:720!important;box-shadow:none!important}
  body.studio-page .studio-mobile-go-samples{background:#fff!important;color:#173d2b!important;border:1px solid #c7d4c8!important;min-height:38px!important;padding:8px 9px!important;border-radius:10px!important;font-size:11px!important;font-weight:720!important}
  body.studio-page .studio-mobile-quick-note{margin:5px 0 0!important;font-size:10px!important;line-height:1.3!important;color:#7b887e!important}
  /* The fifth kitchen is still reachable by swipe. No giant scene-card grid. */
  body.studio-page .studio-gallery{display:block!important;padding:6px 0 10px!important;background:transparent!important;border:0!important;box-shadow:none!important;margin:0!important}
  body.studio-page .studio-gallery-title{margin:0 0 6px!important;align-items:center!important}
  body.studio-page .studio-gallery-title h2{font-size:13px!important;letter-spacing:-.015em!important;color:#183627!important;font-weight:740!important}
  body.studio-page .studio-gallery-ai-link{font-size:10px!important;text-decoration:none!important;color:#36634c!important;font-weight:640!important}
  body.studio-page .studio-gallery-cards{gap:7px!important;padding:2px 2px 5px!important;scrollbar-width:none}
  body.studio-page .studio-gallery-cards::-webkit-scrollbar{display:none}
  body.studio-page .studio-gallery-card,body.studio-page .studio-gallery-card[aria-pressed=true]{flex:0 0 96px!important;min-width:96px!important;width:96px!important;min-height:69px!important;padding:2px!important;gap:3px!important;background:transparent!important;border:1px solid transparent!important;border-radius:10px!important;box-shadow:none!important}
  body.studio-page .studio-gallery-card[aria-pressed=true]{border:1.5px solid #22583b!important;background:transparent!important;padding:2px!important}
  body.studio-page .studio-gallery-card img{height:51px!important;width:100%!important;border-radius:7px!important;object-fit:cover!important}
  body.studio-page .studio-gallery-card strong{font-size:9px!important;font-weight:610!important;line-height:1.05!important;margin-left:2px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:88px!important}
  body.studio-page .studio-gallery-card .scene-selected-icon{width:16px!important;height:16px!important;right:4px!important;top:4px!important;font-size:10px!important;border:0!important;background:#143c29!important;color:#fff!important}
  body.studio-page .studio-controls{background:#fff!important;border-color:#e6e9e3!important;border-radius:16px!important;margin-top:11px!important}
}
@media(max-width:365px){
  body.studio-page .studio-shell{width:calc(100% - 22px)!important}
  body.studio-page .studio-intro h1{font-size:22px!important}
  body.studio-page .studio-h8-category{font-size:10px!important;padding:4px 7px!important}
  body.studio-page .studio-h8-swatch{flex-basis:33px;width:33px}
  body.studio-page .studio-h8-swatch-texture{width:28px;height:28px}
  body.studio-page .studio-gallery-card,body.studio-page .studio-gallery-card[aria-pressed=true]{width:87px!important;min-width:87px!important;flex-basis:87px!important}
}
@media(prefers-reduced-motion:reduce){
  body.studio-page .studio-h8-swatch-texture,body.studio-page .studio-mobile-quick-zone{transition:none!important}
}
@media(max-width:820px){
  body.studio-page .studio-gallery-card[aria-pressed="false"] .scene-selected-icon{color:transparent!important;background:transparent!important;border-color:transparent!important;opacity:0!important}
  body.studio-page .studio-gallery-card[aria-pressed="true"] .scene-selected-icon{color:white!important;opacity:1!important}
}
@media(max-width:820px){body.studio-page .buehne{touch-action:pan-y}}
