/* A photo post keeps its own scroll surface above the shared navigation. */
dialog.bmenu[data-view=detail] {
  --post-pad:18px;
  --ink:#202020;
  --muted:#666665;
  --line:#e6e5e3;
  width:min(464px,var(--room-width));
  height:min(846px,var(--room-height));
  border:1px solid rgb(255 255 255 / 88%);
  border-radius:15px;
  background:rgb(255 255 255 / 93%);
  box-shadow:0 15px 54px rgb(13 12 10 / 23%),0 0 0 1px rgb(32 28 24 / 8%);
}
.bmenu[data-view=detail] .bmenu-head {
  flex:none;gap:4px;min-height:60px;
  padding:5px 9px 5px var(--post-pad);
  background:rgb(255 255 255 / 88%);border-bottom:1px solid var(--line);
}
.bpost-profile {display:flex;align-items:center;gap:9px;flex:1;min-width:0;color:var(--ink);}
.bpost-avatar {
  display:grid;place-items:center;flex:none;width:38px;height:38px;
  border:1px solid #e4e1dd;border-radius:50%;overflow:hidden;background:#fff;
}
.bpost-avatar-action {display:grid;place-items:center;width:100%;height:100%;color:inherit;text-decoration:none;}
.bpost-initial {display:grid;place-items:center;width:100%;height:100%;background:#eeeae5;color:#615b55;font-size:16px;font-weight:620;}
.bpost-avatar img {display:block;width:100%;height:100%;object-fit:cover;}
.bfeed-profile .bfeed-avatar img {width:calc(100% - 6px);height:calc(100% - 6px);border-radius:50%;object-fit:cover;}
.bpost-byline {display:grid;justify-content:start;min-width:0;gap:2px;}
.bpost-user,.bpost-location {overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
.bpost-author {color:inherit;text-decoration:none;font-weight:725;}
.bpost-user {font-size:14px;line-height:1.25;letter-spacing:-.016em;}
.bpost-location {color:var(--muted);font-size:11.5px;line-height:1.25;letter-spacing:-.012em;}
.bpost-profile a:focus-visible,.bpost-caption :is(a,button):focus-visible {outline:2px solid #703b35;outline-offset:-1px;border-radius:3px;}
@media (hover:hover) {.bpost-author[href]:hover,.bpost-caption-toggle:hover {text-decoration:underline;text-underline-offset:2px;}}
.bmenu[data-view=detail] .bmenu-icon {
  width:44px;height:44px;border:0;border-radius:50%;color:var(--ink);background:transparent;
}
.bmenu[data-view=detail] .bmenu-icon svg {width:20px;height:20px;stroke-width:1.8;}
.bmenu[data-view=detail] .bmenu-back {margin-left:-9px;margin-right:1px;}
.bmenu[data-view=detail] .bmenu-close {margin-left:auto;}
.bmenu[data-view=detail] :is(.bmenu-icon,.bpost-action):focus-visible {outline:2px solid #8b3931;outline-offset:-3px;}
.bmenu .bmenu-detail {
  display:block;position:relative;flex:1;min-width:0;min-height:0;
  overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
  scrollbar-gutter:auto;scrollbar-width:thin;scrollbar-color:#c0bfbd #fff;background:#fff;
}
.bmenu .bmenu-product-photo {
  position:relative;isolation:isolate;width:100%;height:auto;aspect-ratio:4 / 5;
  max-height:none;margin:0;overflow:hidden;background:#f3f2ef;
}
.bmenu .bmenu-product-photo:has(.br-stage) {aspect-ratio:auto;}
.bmenu-item-photo {display:block;width:100%;height:100%;object-fit:cover;user-select:none;}
.bmenu-product-photo>figcaption {
  position:absolute;left:12px;bottom:12px;padding:4px 8px;border-radius:4px;
  background:rgb(29 29 29 / 76%);color:#fff;font-size:11px;line-height:1.4;
}
.bpost-actions {display:flex;align-items:center;gap:15px;padding:1px var(--post-pad) 0;}
.bpost-action {
  display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;
  min-width:44px;min-height:44px;padding:2px 0;border:0;border-radius:5px;
  color:var(--ink);background:none;font-size:13px;font-weight:620;line-height:1.25;
  white-space:nowrap;touch-action:manipulation;
}
.bpost-action svg,.bmenu-saved-filter svg {fill:none;stroke:currentColor;}
.bpost-action svg {width:24px;height:24px;stroke-width:1.7;}
.bpost-save {margin-inline-start:auto;}
.bpost-save[aria-pressed=true] svg,.bmenu-saved-filter[aria-pressed=true] svg {fill:currentColor;}
@media (hover:hover) {
  .bmenu[data-view=detail] .bmenu-icon:hover {background:#f3f3f2;}
  .bpost-action:hover {color:#666;}
}
.bpost-action:active {opacity:.64;}
.bmenu-product-info {min-width:0;padding:5px var(--post-pad) max(22px,env(safe-area-inset-bottom));}
.bpost-headline {display:flex;align-items:baseline;justify-content:space-between;gap:14px;}
.bpost-headline h3 {
  min-width:0;margin:0;color:var(--ink);font-size:clamp(19px,4.8vw,23px);
  font-weight:720;line-height:1.32;letter-spacing:-.047em;word-break:keep-all;overflow-wrap:anywhere;
}
.bmenu .bmenu-product-price {
  flex:none;margin:0;color:var(--ink);font-size:15px;font-weight:660;line-height:1.4;
  letter-spacing:-.018em;white-space:nowrap;font-variant-numeric:tabular-nums;
}
.bpost-caption {
  position:relative;display:flex;align-items:baseline;gap:6px;min-width:0;overflow:clip;
  margin:7px 0 0;color:#262625;font-size:14px;font-weight:400;line-height:1.55;
  letter-spacing:-.012em;text-align:left;
}
.bpost-caption .bpost-caption-line {
  display:block;flex:1;min-width:0;margin:0;overflow:hidden;white-space:nowrap;
  text-overflow:ellipsis;font:inherit;letter-spacing:inherit;color:inherit;
}
.bpost-caption-copy,.bpost-caption-measure {font:inherit;letter-spacing:inherit;}
.bpost-caption-measure {
  position:absolute;left:0;bottom:100%;display:block;width:max-content;max-width:none;
  white-space:nowrap;visibility:hidden;pointer-events:none;
}
.bpost-caption-toggle {
  flex:none;border:0;border-radius:0;padding:3px 1px;color:#6b6b69;background:none;
  font:inherit;font-size:13px;font-weight:540;line-height:1.35;white-space:nowrap;touch-action:manipulation;
}
.bpost-caption[data-expanded=true] {display:block;}
.bpost-caption[data-expanded=true] .bpost-caption-line {white-space:pre-wrap;text-overflow:clip;overflow-wrap:anywhere;}
.bpost-caption[data-expanded=true] .bpost-caption-toggle {margin-top:1px;}
.bmenu .bmenu-time {display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;margin:8px 0 0;font-size:12px;line-height:1.5;}
.bmenu-time dt {color:var(--muted);}
.bmenu-time dd {color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums;}
.bmenu-filters {display:flex;align-items:stretch;gap:8px;}
.bmenu-filters .bmenu-search {flex:1;min-width:0;}
.bmenu-saved-filter {
  display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;
  padding:0 11px;min-height:42px;border:1px solid var(--line);
  border-radius:7px;color:var(--ink);font-size:12px;font-weight:600;background:rgb(255 255 255 / 65%);
}
.bmenu-saved-filter svg {width:17px;height:17px;}
.bmenu-saved-filter[aria-pressed=true] {background:#252321;border-color:#252321;color:white;}
@media (max-width:520px) {
  dialog.bmenu[data-view=detail] {
    --post-pad:max(15px,env(safe-area-inset-left),env(safe-area-inset-right));
    --edge-x:0px;--edge-y:0px;
    width:var(--room-width);height:var(--room-height);border:0;border-radius:0;box-shadow:none;
  }
  .bmenu[data-view=detail] .bmenu-head {
    min-height:54px;padding-top:max(4px,env(safe-area-inset-top));padding-bottom:4px;
    padding-right:max(7px,env(safe-area-inset-right));
  }
  .bmenu[data-view=detail] .bmenu-back {margin-left:-8px;}
  .bmenu[data-view=detail] .bmenu-detail {scrollbar-width:none;}
  .bmenu[data-view=detail] .bmenu-detail::-webkit-scrollbar {display:none;}
}
@media (max-width:360px) {
  .bmenu-saved-filter {gap:3px;padding:0 7px;font-size:11px;}
  .bpost-actions {gap:10px;}
  .bpost-action {font-size:12px;}
  .bpost-headline {gap:10px;}
}
@media (max-height:530px) and (orientation:landscape) {
  dialog.bmenu[data-view=detail] {width:min(440px,var(--room-width));}
  .bmenu[data-view=detail] .bmenu-head {min-height:46px;padding-block:1px;}
  .bmenu .bmenu-product-photo {width:min(100%,68dvh);margin-inline:auto;}
}
