/* Corner V6 mobile controls: icon-first, accessible, 44px minimum targets. */
.v6-mobile-action-icon{display:inline-block;flex:none;vertical-align:middle;pointer-events:none}
.corner-comfort .v5-comment-filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.corner-comfort .v5-comment-filters button{display:inline-flex;align-items:center;justify-content:center;gap:8px;
 min-height:44px;padding:9px 13px;border:1px solid #d8d3cc;border-radius:12px;
 background:#fff;color:#2a2624;font:650 .8rem/1.2 system-ui,sans-serif;text-transform:capitalize}
.corner-comfort .v5-comment-filters button[aria-pressed=true]{background:#24201e;color:#fff;border-color:#24201e}
.corner-comfort .v5-comment-filters button:focus-visible,
.corner-comfort .admin-comment footer button:focus-visible,
.corner-comfort .admin-nav :is(button,a):focus-visible{outline:3px solid #365ca7;outline-offset:2px}
.corner-comfort .admin-empty .v6-empty-icon{display:inline-grid;place-items:center;
 width:48px;height:48px;border-radius:50%;background:#f0ebe5;color:#4c7560}
.corner-comfort .admin-empty .v6-empty-icon svg{width:25px;height:25px}
.corner-comfort .admin-comment footer button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px}
@media(max-width:767px){
 .corner-comfort .admin-shell .admin-nav{display:flex!important;flex-direction:row!important;
  justify-content:flex-start!important;overflow-x:auto!important;overflow-y:hidden!important;
  gap:3px!important;scrollbar-width:none!important;max-width:100%!important}
 .corner-comfort .admin-shell .admin-nav :is(button,.admin-v3-link){
  display:flex!important;justify-content:center!important;align-items:center!important;flex-direction:column!important;
  flex:0 0 64px!important;width:64px!important;min-width:64px!important;max-width:64px!important;
  min-height:58px!important;height:58px!important;padding:5px 4px 7px!important;gap:3px!important;border-radius:11px!important}
 .corner-comfort .admin-shell .admin-nav .studio-nav-label{
  position:static!important;width:auto!important;height:auto!important;
  clip-path:none!important;white-space:normal!important;overflow:visible!important;font-size:.56rem!important}
 .corner-comfort .admin-shell .admin-nav .studio-icon{width:20px!important;height:20px!important}
 .corner-comfort .admin-section>header:has(.v5-comment-filters){
  display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important}
 .corner-comfort .admin-section>header:has(.v5-comment-filters) h2{
  font-size:clamp(1.18rem,5vw,1.65rem)!important;line-height:1.25!important;max-width:100%}
 .corner-comfort .v5-comment-filters{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px!important;width:100%;margin:0}
 .corner-comfort .v5-comment-filters button{
  width:100%;min-width:0;min-height:48px!important;padding:10px 4px!important;border-radius:12px!important}
 .corner-comfort .v5-comment-filters .v6-action-label,
 .corner-comfort .admin-comment footer .v6-action-label{
  position:absolute!important;width:1px!important;height:1px!important;
  clip-path:inset(50%)!important;overflow:hidden!important;white-space:nowrap!important}
 .corner-comfort .v5-comment-filters .v6-mobile-action-icon{width:22px;height:22px}
 .corner-comfort .admin-comment footer{display:flex;gap:8px;flex-wrap:wrap}
 .corner-comfort .admin-comment footer button{min-width:48px!important;min-height:48px!important;padding:10px!important}
 .corner-comfort .post-article .v6-reader-toggle{
  min-width:48px!important;min-height:48px!important;padding:10px!important;font-size:0!important}
 .corner-comfort .post-article .v6-reader-toggle:before{
  content:"";display:block;width:23px;height:23px;background:currentColor;
  -webkit-mask:url("/v6-focus-icon.svg") center/contain no-repeat;
  mask:url("/v6-focus-icon.svg") center/contain no-repeat}
 .corner-comfort .post-article .v6-reader-controls{padding:6px 0;margin:0;min-height:48px}
 .corner-comfort .v6-reader-show{font-size:0!important;min-width:48px!important;min-height:48px!important}
 .corner-comfort .v6-reader-show:before{content:"×";font-size:23px;line-height:1}
}
@media(prefers-reduced-motion:reduce){
 .corner-comfort .admin-shell .admin-nav *, .corner-comfort .v5-comment-filters button{transition:none!important}
}
/* Shared toast: clear of content, no blocking full-screen overlay. */
body.corner-comfort #toast-stack.v6-toast-stack{
 position:fixed!important;z-index:9999!important;top:max(14px,env(safe-area-inset-top,0px))!important;
 bottom:auto!important;right:max(12px,env(safe-area-inset-right,0px))!important;
 left:auto!important;width:min(380px,calc(100vw - 24px))!important;
 max-width:calc(100vw - 24px)!important;display:grid!important;gap:9px!important;
 padding:0!important;margin:0!important;pointer-events:none!important}
body.corner-comfort #toast-stack.v6-toast-stack .v6-toast{
 box-sizing:border-box;position:relative;display:grid;grid-template-columns:24px minmax(0,1fr) 32px;
 align-items:center;gap:10px;min-height:54px;padding:11px 10px 11px 14px;
 border:1px solid #d9d3cb;border-radius:15px;background:#fffefa;color:#241e1d;
 box-shadow:0 12px 35px rgba(26,20,18,.14);font:550 .83rem/1.45 system-ui,sans-serif;
 pointer-events:auto;overflow-wrap:anywhere}
body.corner-comfort .v6-toast[data-type=success] .v6-toast-symbol{color:#277047}
body.corner-comfort .v6-toast[data-type=error] .v6-toast-symbol{color:#b42332}
body.corner-comfort .v6-toast[data-type=warning] .v6-toast-symbol{color:#9c611c}
body.corner-comfort .v6-toast .v6-toast-symbol{font-size:20px;font-weight:800;text-align:center}
body.corner-comfort .v6-toast .v6-toast-close{display:grid;place-items:center;min-width:32px;
 min-height:32px;border:0;border-radius:9px;background:transparent;color:inherit;font-size:21px}
body.corner-comfort .v6-toast .v6-toast-close:focus-visible{outline:3px solid #365ca7}
@media(max-width:767px){
 body.corner-comfort #toast-stack.v6-toast-stack{top:max(12px,env(safe-area-inset-top,0px))!important;
 left:12px!important;right:12px!important;width:auto!important;max-width:none!important}
}

@media(max-width:767px){
 .corner-comfort .admin-top .studio-owner-link{display:inline-grid!important;place-items:center!important;
  width:44px!important;height:44px!important;min-width:44px!important;
  padding:0!important;font-size:0!important;text-decoration:none!important;
  border:1px solid #d9d3cb;border-radius:12px;background:#fff}
 .corner-comfort .admin-top .studio-owner-link:before{
  content:"✉";font-size:22px!important;line-height:1;color:#292421}
 .corner-comfort .admin-top>div:last-child{display:flex;align-items:center;justify-content:flex-end}
 .corner-comfort .admin-top .admin-owner-dot{display:none}
}
/* At 320px the seven 44px targets remain horizontally scrollable, not clipped. */

/* Mobile Studio chrome must never expand the document width.
   This final stylesheet follows studio.css, so older rail rules cannot override it. */
@media(max-width:767px){
 html,body.corner-comfort{max-width:100%;overflow-x:clip}
 body.corner-comfort .admin-shell,
 body.corner-comfort .admin-shell .admin-sidebar,
 body.corner-comfort .admin-shell .admin-main,
 body.corner-comfort .admin-shell .admin-top{
  box-sizing:border-box!important;min-width:0!important;max-width:100%!important;
 }
 body.corner-comfort .admin-shell .admin-sidebar{
  width:100%!important;overflow-x:clip!important;
 }
 body.corner-comfort .admin-shell .admin-nav{
  display:flex!important;box-sizing:border-box!important;width:100%!important;
  max-width:100%!important;min-width:0!important;overflow-x:auto!important;
  overflow-y:hidden!important;scrollbar-width:none!important;gap:2px!important;
  flex-wrap:nowrap!important;justify-content:flex-start!important;
 }
 body.corner-comfort .admin-shell .admin-nav :is(button,.admin-v3-link){
  position:relative!important;box-sizing:border-box!important;flex:0 0 64px!important;
  width:64px!important;min-width:64px!important;max-width:64px!important;
  padding:5px 4px 7px!important;margin:0!important;
 }
 body.corner-comfort .admin-shell .admin-nav .studio-nav-label{
  position:static!important;width:auto!important;height:auto!important;overflow:visible!important;
  clip-path:none!important;white-space:normal!important;font-size:.56rem!important;
 }
 body.corner-comfort .studio-brand-row{
  box-sizing:border-box!important;width:100%!important;min-width:0!important;
  padding-right:min(150px,47vw)!important;
 }
 body.corner-comfort .studio-brand-row .admin-brand{
  min-width:0!important;max-width:100%!important;overflow:hidden!important;
 }
 body.corner-comfort .admin-shell .admin-top{
  display:flex!important;flex-wrap:wrap!important;gap:10px!important;
 }
 body.corner-comfort .admin-shell .admin-top>div{
  min-width:0!important;max-width:100%!important;
 }
 body.corner-comfort .admin-shell .admin-main{
  width:100%!important;overflow-wrap:anywhere;
 }
 body.corner-comfort .admin-shell .admin-section,
 body.corner-comfort .admin-shell .admin-grid{min-width:0!important;max-width:100%!important}
}


/* V6.2 iPhone-specific framing: complements icon-first navigation without overriding it. */
@media(max-width:767px){
 .corner-comfort .admin-shell .admin-sidebar{position:sticky;top:0;z-index:80;background:#fcfaf7}
 .corner-comfort .admin-shell .admin-main{min-width:0;overflow-wrap:anywhere}
 .corner-comfort .admin-shell .admin-main :is(h1,h2,h3,p){overflow-wrap:break-word}
 .corner-comfort .admin-shell .admin-main :is(.v3a-header,.v3a-heading,.v3a-hero,.v3m-hero,.v3w-heading){
  min-width:0;max-width:100%;flex-wrap:wrap;gap:12px
 }
 .corner-comfort .admin-shell .admin-main :is(.filter-row,.status-filters,.v3a-filters,.comment-filters){
  display:flex;flex-wrap:wrap;gap:7px;max-width:100%
 }
 .corner-comfort .post-article .post-heading{scroll-margin-top:16px}
 .corner-comfort .post-article .v6-reader-controls{min-height:0;margin:8px 0 12px;padding:0}
 html[data-v6-reading=focus] body.corner-comfort .corner-public-header{
  transform:translate3d(0,-110%,0)!important;opacity:0!important;
  visibility:hidden!important;pointer-events:none!important
 }
 html[data-v6-reading=focus] body.corner-comfort .v6-reader-show{
  position:fixed!important;display:flex!important;z-index:400!important;
  top:max(12px,env(safe-area-inset-top,0px));right:max(12px,env(safe-area-inset-right,0px));
  opacity:.88!important
 }
 html[data-v6-reading=focus] body.corner-comfort .v6-reader-show[hidden]{display:none!important}
}
@media(prefers-reduced-motion:reduce){
 .corner-comfort .corner-public-header,.corner-comfort .v6-reader-show{transition:none!important}
}

/* Stable iPhone icon rail owned here, instead of inheriting viewport-wide scroll rules. */
@media(max-width:767px){
 body.corner-comfort .admin-shell .admin-nav{
  scroll-snap-type:x proximity!important;
  overscroll-behavior-x:contain!important;
  -webkit-overflow-scrolling:touch;
 }
}
