/* Pose cards follow 01-library-pose.png; headings and controls use the shared library UI. */
.pose-brand, .pose-sketch-icon, #poseLibraryDescription, .sketch-switch, .filter-chevron { display: none; }
.cbtns [data-a=fav] svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.cbtns [data-a=fav].on svg { fill: currentColor; }
.pose-sort-control { display: contents; }
.pose-sort-control > svg { display: none; }
.shell-context details { position: relative; }
.shell-context summary { display: flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; }
.shell-context summary::-webkit-details-marker { display: none; }
.shell-context summary svg { width: 18px; height: 18px; fill: none; stroke: var(--mu); stroke-width: 1.8; }
.shell-context .shell-pop { min-width: 150px; padding: 8px; }
.shell-context .shell-pop a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--tx); text-decoration: none; }
.shell-context .shell-pop a:hover { background: var(--sf); }

@media (min-width: 1280px) {
  body[data-tab=pose] { --gutter: 36px; --w: 1680px; }
  body[data-tab=pose] #top {
    grid-template: "brand nav context search tools" 77px / auto auto auto minmax(160px, 1fr) auto;
    gap: 0; padding-inline: 36px; background: var(--bg2);
  }
  body[data-tab=pose] .brand { gap: 10px; }
  body[data-tab=pose] .mark { width: 44px; height: 46px; background: none; box-shadow: none; }
  body[data-tab=pose] .mark svg { display: none; }
  body[data-tab=pose] .pose-brand { display: block; width: 48px; height: 46px; object-fit: contain; }
  body[data-tab=pose] .wm { flex-direction: column; align-items: flex-start; gap: 0; }
  body[data-tab=pose] .wm b { font-size: 22px; line-height: 26px; font-weight: 650; letter-spacing: .04em; }
  body[data-tab=pose] .wm small { font-size: 17px; line-height: 20px; color: var(--tx); letter-spacing: .08em; font-weight: 500; }
  body[data-tab=pose] .tabs { margin-left: 108px; gap: 46px; align-self: stretch; }
  body[data-tab=pose] .tabs .shell-menu { height: 100%; }
  body[data-tab=pose] .tabs .nav-trigger {
    height: 100%; min-height: 0; padding: 0; border-radius: 0; background: transparent;
    color: var(--tx); font-size: 20px; font-weight: 600;
  }
  body[data-tab=pose] .tabs .nav-trigger > svg { display: none; }
  body[data-tab=pose] .tabs .current > .nav-trigger::after {
    bottom: 0; width: 62px; height: 2px; border-radius: 0;
  }
  body[data-tab=pose] .shell-context {
    margin-left: 46px; padding-left: 40px; height: 32px; min-height: 32px; gap: 44px;
    font-size: 20px; border-color: var(--line2);
  }
  body[data-tab=pose] .shell-context span { color: var(--tx2); }
  body[data-tab=pose] .shell-context b { position: relative; font-size: 20px; font-weight: 500; }
  body[data-tab=pose] .shell-context b::after {
    content: ""; position: absolute; bottom: -24px; left: 0; right: 0; height: 2px; background: var(--ac);
  }
  body[data-tab=pose] .top .search { width: 286px; max-width: 100%; justify-self: end; }
  body[data-tab=pose] #q { min-height: 50px; padding-left: 58px; border-radius: 18px; font-size: 18px; background: var(--bg); }
  body[data-tab=pose] #q:not(:focus)::placeholder { color: transparent; }
  body[data-tab=pose] .sic { left: 24px; width: 24px; height: 24px; stroke: var(--tx); stroke-width: 1.7; }
  body[data-tab=pose] .q-kbd { left: 54px; right: auto; border: 0; background: none; box-shadow: none; font: 500 20px/1 var(--sans); }
  body[data-tab=pose] .search:focus-within .q-kbd,
  body[data-tab=pose] .search:has(#q:not(:placeholder-shown)) .q-kbd { display: none; }
  body[data-tab=pose] .tools { margin-left: 36px; padding-left: 36px; gap: 34px; border-left: 1px solid var(--line2); }
  body[data-tab=pose] .tools > :is(#adultSw,#languageMenu,#themeMenu) { display: flex; }
  body[data-tab=pose] .tools #trayFab { display: none; }
  body[data-tab=pose] .tools .settings-label { display: none; }
  body[data-tab=pose] .tools .icon { width: 28px; height: 32px; padding: 0; background: none; border: 0; border-radius: 0; }
  body[data-tab=pose] .tools .icon svg { width: 26px; height: 26px; }
  body[data-tab=pose] .asw { height: 32px; margin: 0; padding: 0; gap: 12px; border: 0; border-radius: 0; font-size: 20px; font-weight: 400; }
  body[data-tab=pose] .asw b { order: -1; font-weight: 400; }
  body[data-tab=pose] .asw .trk { width: 48px; height: 26px; background: var(--line2); }
  body[data-tab=pose] .asw .kn { width: 20px; height: 20px; top: 3px; left: 3px; }
  body[data-tab=pose] .asw[aria-checked=true] .trk { background: var(--ac); }
  body[data-tab=pose] .asw[aria-checked=true] .kn { transform: translateX(22px); }
  body[data-tab=pose] #themeMenu { padding-left: 34px; border-left: 1px solid var(--line2); }
  body[data-tab=pose] #themeMenu .shell-pop { left: auto; right: 0; }

  body[data-tab=pose] #grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 8px 36px 44px; }
  body[data-tab=pose] .card { position: relative; }
  body[data-tab=pose] .card .ph { flex: none; width: 100%; aspect-ratio: 1.03; border-radius: 18px; border-color: var(--line); background: var(--bg2); }
  body[data-tab=pose] .ph.pose img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; padding: 4% 5% 6%; mix-blend-mode: multiply; }
  body[data-tab=pose] .ph.pose img.ld { opacity: .6; }
  body[data-tab=pose] .card .ph.depth { background: #141414; }
  body[data-tab=pose] .ph.depth img { width: 100%; height: 100%; aspect-ratio: auto; }
  body[data-tab=pose] .card .card-copy {
    position: absolute; z-index: 4; top: 96px; right: 10px; width: 40px; height: 36px;
    opacity: 0; border-radius: 8px; background: var(--bg2); box-shadow: var(--sh1);
  }
  body[data-tab=pose] .card:is(:hover,:focus-within) .card-copy { opacity: 1; }
  body[data-tab=pose] .card :is(.angs,.card-badges,.try) { opacity: 0; transition: opacity .15s; }
  body[data-tab=pose] .card:is(:hover,:focus-within) :is(.angs,.card-badges,.try) { opacity: 1; }
  body[data-tab=pose] .card .cbtns { opacity: 1; transform: none; top: 10px; right: 10px; gap: 8px; }
  body[data-tab=pose] .card .cbtns button[data-a=fav] { width: 30px; height: 30px; border: 0; background: none; color: #c7cbd1; box-shadow: none; }
  body[data-tab=pose] .card .cbtns [data-a=fav] svg { width: 29px; height: 29px; stroke-width: 1.6; }
  body[data-tab=pose] .card .cbtns button[data-a=fav].on { color: var(--ac); }
  body[data-tab=pose] .card .cbtns button[data-a=sel] { opacity: 0; }
  body[data-tab=pose] .card:is(:hover,:focus-within,.sel) .cbtns button[data-a=sel] { opacity: 1; }
  body[data-tab=pose] #toTop { opacity: 1; pointer-events: auto; transform: none; left: auto; right: 20px; bottom: 20px; width: 60px; height: 60px; font-size: 28px; }

  [data-theme=dark] body[data-tab=pose] .pose-brand { display: none; }
  [data-theme=dark] body[data-tab=pose] .mark svg { display: block; width: 40px; height: 40px; color: var(--ac); }
  [data-theme=dark] body[data-tab=pose] .pose-sketch-icon { filter: invert(1); mix-blend-mode: screen; }
  [data-theme=dark] body[data-tab=pose] .card .ph.pose { background: var(--phw); }
}

@media (min-width: 1280px) and (max-width: 1500px) {
  body[data-tab=pose] .tabs { margin-left: 50px; gap: 32px; }
  body[data-tab=pose] .shell-context { margin-left: 28px; padding-left: 28px; gap: 26px; }
  body[data-tab=pose] .tools { margin-left: 24px; padding-left: 24px; gap: 20px; }
  body[data-tab=pose] #themeMenu { padding-left: 20px; }
}
