/* slides-w27.css — office wave 27 (4d02132c): template-preview subtitles readable at thumbnail size.
   In the template cards the subtitle is ~5 px tall on the template's own artwork; measured 3.27:1 and 4.17:1 in w26.
   A dark scrim band now sits behind every subtitle text box in the TEMPLATE preview cards only (.trow:not(.thm); theme cards keep their own colours) (the slide itself is unchanged),
   so the light subtitle ink (#f1edff) is >= 6:1 over any template colour, including white. */
.trow:not(.thm) .rcard .rth .els>.el.t-text~.el.t-text .tb{background:rgba(12,10,26,.78)!important;border-radius:10px;padding:2px 14px!important;box-shadow:0 0 0 2px rgba(12,10,26,.78)}
.trow:not(.thm) .rcard .rth .els>.el.t-text~.el.t-text .tb,.trow:not(.thm) .rcard .rth .els>.el.t-text~.el.t-text .tb *{color:#f4f1ff!important}

/* ===== w168-slides-desktop-toolbar (task 99c2108a, 2026-11-04) — Slides desktop editor chrome at 1280/1440 vs PowerPoint for the web. UI only; earlier blocks untouched.
   1. One ribbon height on desktop: the ribbon body was 109/129/159/173 px depending on the tab, so the slide canvas jumped up and down on every tab
      switch (PowerPoint keeps one height). It is now 129 px (the Home tab's own height) on every tab; the theme/transition/animation galleries keep
      their w5 "one row plus a peek of the next" scroll inside that height, and the Timing boxes put each label beside its field
      (Start / Duration / Delay one per line) so they fit it too.
   2. Animations tab: three galleries at 30vw each pushed Timing (Start/Duration/Delay), Preview, Animation pane and AutoPreview 280–640 px past the
      right edge at 1280/1440. The galleries now share the width the ribbon actually has (container query), so the whole tab is on screen.
   3. Insert tab with the assistant docked (1280 and 1440): «Header & footer», «Slide number», «Date» and «Hijri date» were cut off at the right edge.
      Large buttons wrap their label onto two lines and use slightly less padding when the ribbon is narrow, so the tab fits.
   4. Short windows (≤ 760 px tall, e.g. 1280×720): the speaker-notes pane took 112 px and the slide was 15 % of the window; notes are 76 px there.
   5. With the assistant collapsed to its corner card, the card sat on the status bar (Notes, views, zoom). The status bar and the notes text keep
      clear of the card's corner. */
@media (min-width:761px){
  :root #ed #rpanel.rbody:not(.min){height:129px;min-height:129px;max-height:129px;box-sizing:border-box;overflow-y:hidden;container-type:inline-size}
  :root #ed #rpanel.rbody .fxgal{max-height:98px}
  :root #ed #rpanel.rbody .rg:has(#aDur,#tDur) .rgr{flex-wrap:wrap;row-gap:3px}
  :root #ed #rpanel.rbody .rg:has(#aDur,#tDur) .rnum{flex-direction:row;align-items:center;padding:0 2px;gap:6px}
  :root #ed #rpanel.rbody .rg:has(#aDur) .rnum{flex:1 0 100%;justify-content:space-between}
  :root #ed #rpanel.rbody .rg:has(#aDur,#tDur) .rnum input{height:26px;min-height:26px}
  :root #ed #rpanel.rbody .rg:has(#aDur) .rnum select{height:30px;min-height:30px;padding-block:0;line-height:28px;min-width:118px}
  :root #ed #rpanel.rbody .thgal{max-height:98px}
  :root #ed #rpanel.rbody:has(>.rg~.rg~.rg .fxgal) .fxgal{width:clamp(150px,calc((100cqw - 510px) / 3),460px);flex:0 0 auto}
}
@container (max-width:1200px){
  #rpanel.rbody:has([data-cmd="narrate"]) .rg{padding-inline:5px}
  #rpanel.rbody:has([data-cmd="narrate"]) .rb.lg{min-width:52px;padding-inline:4px}
  #rpanel.rbody:has([data-cmd="narrate"]) .rb.lg .bl{max-width:62px}
}
@media (min-width:761px) and (max-height:760px){
  :root #ed.notes-on #notesBar{height:76px}
}
@media (min-width:761px){
  html.yoc-on.yoc-desk.yoc-collapsed #ed #status{padding-inline-end:calc(var(--w168-chip,300px) + 10px)}
  html.yoc-on.yoc-desk.yoc-collapsed #ed.notes-on #notesIn{padding-inline-end:var(--w168-chip,300px)}
}
@media (min-width:761px){
  /* 6. The Layout gallery (Home › Layout, New slide ▾) is four 118 px columns, but every pop is capped at 360 px, so the gallery scrolled sideways
        inside its box: the 3rd column was cut («Section heade…») and the 4th hidden. Its box now takes the gallery's own width. */
  .pop:has(>.lgpop){max-width:min(590px,calc(100vw - 16px))}
  /* 7. Shapes (Home › Shapes, Insert › Shapes): the grid asked for seven 64 px columns inside a 268 px box, so only 4 of the 7 columns showed
        (16 of 28 shapes; the 4th column cut) and the rest needed a sideways scroll. The seven columns now share the box. */
  :root .pop .shpop .shgrid{grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
  :root .pop .shpop .shgrid button{min-width:0;min-height:0;width:auto;height:auto;padding:0;aspect-ratio:1}
}
/* ===== end w168 ===== */
