/* «Студия» — панели правки доклада (60-tyumgu/deck-studio). Светлая/тёмная — по теме доклада (html[data-theme]).
   На показе ничего не видно: панели существуют только в режиме студии (html.st-on). */
.st-ui {
  --st-bg: rgba(250, 251, 249, .97); --st-bg2: #F1F3EF; --st-fg: #17201A; --st-mut: #5D6A61; --st-line: rgba(23, 32, 26, .12);
  --st-acc: #2F6F3A; --st-acc-fg: #FFFFFF; --st-hl: rgba(47, 111, 58, .12); --st-warn: #9A6200; --st-bad: #B3261E; --st-ok: #2F7D3A; --st-run: #B4560F;
  --st-sh: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 12px 32px -12px rgba(16, 28, 20, .28);
  --st-ease: cubic-bezier(.23, 1, .32, 1);
  font: 400 13px/1.4 'Onest', 'Golos Text', 'Manrope', system-ui, sans-serif; color: var(--st-fg); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; box-sizing: border-box;
}
.st-ui *, .st-ui *::before, .st-ui *::after { box-sizing: border-box; }
.st-ui [hidden] { display: none !important; }
html[data-theme="dark"] .st-ui {
  --st-bg: rgba(20, 24, 22, .96); --st-bg2: #1D2320; --st-fg: #E9EEEA; --st-mut: #98A49C; --st-line: rgba(255, 255, 255, .10);
  --st-acc: #8CCB6A; --st-acc-fg: #0C160F; --st-hl: rgba(140, 203, 106, .14); --st-warn: #E2B04A; --st-bad: #FF8A80; --st-ok: #8CCB6A; --st-run: #F2A46B;
  --st-sh: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 14px 36px -12px rgba(0, 0, 0, .6);
}
.st-bar, .st-side, .st-notes, .st-photos, .st-sel { display: none; }
html.st-on .st-bar, html.st-on .st-side, html.st-on .st-notes { display: flex; }
html.st-on .st-photos { display: flex; }
html.st-on #menuBtn, html.st-on .navBtn { display: none; }
html.st-on body { background: #9AA39D; }
html.st-on[data-theme="dark"] body { background: #0B0E0C; }
.mobile .st-ui, .print .st-ui, .mobile .st-menu { display: none !important; }

.st-i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.st-i .fillc { fill: currentColor; stroke: none; }

/* кнопки */
.st-b { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: inherit; font: inherit; cursor: pointer; white-space: nowrap;
  transition: background-color 140ms var(--st-ease), color 140ms var(--st-ease), transform 120ms var(--st-ease); }
.st-b:active { transform: scale(.97); }
.st-b[aria-pressed="true"] { background: var(--st-hl); color: var(--st-acc); }
.st-b:disabled { opacity: .38; cursor: default; transform: none; }
.st-b.st-ic { width: 32px; padding: 0; justify-content: center; }
.st-b.st-pri { background: var(--st-acc); color: var(--st-acc-fg); padding: 0 14px; }
.st-b.st-done { background: var(--st-fg); color: var(--st-bg2); padding: 0 16px; margin-left: 4px; }
@media (hover: hover) and (pointer: fine) {
  .st-b:not(:disabled):not(.st-pri):not(.st-done):hover { background: var(--st-bg2); }
  .st-b.st-pri:not(:disabled):hover { filter: brightness(1.06); }
}
.st-ui :focus-visible { outline: 2px solid var(--st-acc); outline-offset: 2px; }
.st-link { border: 0; background: none; color: var(--st-acc); font: inherit; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.st-link .st-i { width: 14px; height: 14px; }
.st-mut { color: var(--st-mut); }
kbd { font: 500 11px/1 'JetBrains Mono', ui-monospace, monospace; padding: 3px 5px; border-radius: 5px; border: 1px solid currentColor; opacity: .6; }

/* верхняя панель */
.st-bar { position: fixed; left: 0; right: 0; top: 0; height: 52px; z-index: 80; align-items: center; gap: 12px; padding: 0 12px; background: var(--st-bg); border-bottom: 1px solid var(--st-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.st-brand { display: flex; align-items: center; gap: 8px; min-width: 224px; }
.st-brand b { font-weight: 500; font-size: 14px; }
.st-brand #st-pos { color: var(--st-mut); font-variant-numeric: tabular-nums; }
.st-tools { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.st-sep { width: 1px; height: 20px; background: var(--st-line); margin: 0 6px; flex: none; }
.st-right { display: flex; align-items: center; gap: 6px; }
.st-net { display: inline-flex; align-items: center; gap: 7px; max-width: 300px; color: var(--st-mut); font-size: 12px; }
.st-net span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-net i { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--st-mut); }
.st-net.ok i { background: var(--st-ok); } .st-net.warn i { background: var(--st-warn); } .st-net.bad i { background: var(--st-bad); }
.st-net.warn { color: var(--st-warn); } .st-net.bad { color: var(--st-bad); }
.st-net.busy i { animation: st-blink 1s ease-in-out infinite; }
@keyframes st-blink { 50% { opacity: .3; } }
.st-bar.recording .st-recb { color: var(--st-bad); }
@media (max-width: 1360px) { .st-tools .st-b span { display: none; } .st-tools .st-b { width: 34px; padding: 0; justify-content: center; } .st-brand { min-width: 0; } .st-net span { max-width: 160px; } }

/* левая панель: превью */
.st-side { position: fixed; left: 0; top: 52px; bottom: 0; width: 240px; z-index: 79; flex-direction: column; background: var(--st-bg); border-right: 1px solid var(--st-line); }
.st-sh { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px 8px; }
.st-sh b { font-weight: 500; }
.st-sh span { color: var(--st-mut); font-size: 12px; }
.st-list { flex: 1; overflow-y: auto; padding: 4px 10px 12px 6px; scrollbar-width: thin; }
.st-th { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 0 6px; padding: 6px 4px; border-radius: 10px; cursor: grab; }
.st-th.drag { opacity: .35; }
.st-n { grid-row: 1 / 3; text-align: right; padding-top: 2px; color: var(--st-mut); font-size: 11px; font-variant-numeric: tabular-nums; }
.st-tv { display: block; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 7px; width: 192px; height: 108px; overflow: hidden; position: relative;
  box-shadow: 0 0 0 1px var(--st-line); transition: box-shadow 140ms var(--st-ease); }
.st-th.cur .st-tv { box-shadow: 0 0 0 2.5px var(--st-acc); }
.st-th.off .st-tv { opacity: .4; }
.st-th.off .st-tv::after { content: 'скрыт'; position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 5px; background: var(--st-fg); color: var(--st-bg2); font-size: 10px; }
.st-th.edited .st-n::after { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--st-acc); margin: 4px 0 0 auto; }
.st-tt { grid-column: 2; padding: 4px 2px 0; font-size: 11.5px; color: var(--st-mut); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.st-ta { position: absolute; right: 10px; top: 10px; display: flex; gap: 4px; opacity: 0; transition: opacity 140ms var(--st-ease); }
.st-th:focus-within .st-ta, .st-th.cur .st-ta { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .st-th:hover .st-ta { opacity: 1; } .st-th:hover { background: var(--st-bg2); } }
.st-tb { width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 7px; background: var(--st-bg); color: var(--st-fg); cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
.st-tb .st-i { width: 15px; height: 15px; }
.st-drop { height: 3px; margin: -1px 8px -2px 30px; border-radius: 2px; background: var(--st-acc); }
.st-mini { display: block; width: 1920px; height: 1080px; transform: scale(.1); transform-origin: 0 0; pointer-events: none; position: relative; }
.st-mini .slide { position: absolute !important; inset: 0; opacity: 1 !important; visibility: visible !important; display: block !important; transition: none !important; }
.st-mini *, .st-mini *::before, .st-mini *::after { animation: none !important; transition: none !important; }
.st-mini .rv { opacity: 1 !important; transform: none !important; }
.st-mini .glass, .st-mini .foot .pg, .st-mini .phcap, .st-mini .hero { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.st-mini .st-ifr { position: absolute; inset: 120px 60px 60px; display: grid; place-items: center; border-radius: 30px; border: 4px dashed currentColor; opacity: .4; font-size: 60px; }
.st-trash { padding: 0 12px; max-height: 30%; overflow: auto; }
.st-trh { padding: 8px 2px 4px; color: var(--st-mut); font-size: 12px; border-top: 1px solid var(--st-line); }
.st-trr { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 4px 2px; font-size: 12px; }
.st-trr span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--st-mut); }
.st-hint { padding: 8px 14px 12px; color: var(--st-mut); font-size: 11.5px; border-top: 1px solid var(--st-line); }

/* нижняя панель: заметки + задача агенту */
.st-notes { position: fixed; left: 240px; right: 0; bottom: 0; height: 252px; z-index: 78; flex-direction: column; background: var(--st-bg); border-top: 1px solid var(--st-line);
  transition: transform 260ms var(--st-ease); }
.st-notes.closed { transform: translateY(206px); }
.st-ntog { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; background: none; color: inherit; font: inherit; font-weight: 500; cursor: pointer; text-align: left; flex: none; }
.st-ntog .st-i { transition: transform 200ms var(--st-ease); }
.st-notes.closed .st-ntog .st-i { transform: rotate(180deg); }
.st-ntog em { font-style: normal; font-weight: 400; color: var(--st-mut); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.st-nbody { flex: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; padding: 0 14px 12px; min-height: 0; }
.st-ncol { display: flex; flex-direction: column; min-height: 0; gap: 6px; }
.st-lbl { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12px; color: var(--st-mut); }
.st-lbl label { color: var(--st-fg); }
.st-ui textarea, .st-ui select { font: inherit; font-size: 13.5px; line-height: 1.5; color: var(--st-fg); background: var(--st-bg2); border: 1px solid var(--st-line); border-radius: 10px; padding: 8px 10px; width: 100%; resize: none; }
.st-ui textarea:focus, .st-ui select:focus { outline: none; border-color: var(--st-acc); box-shadow: 0 0 0 3px var(--st-hl); }
#st-nta { flex: 1; min-height: 0; }
#st-cta { height: 64px; flex: none; }
.st-trow { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.st-trow .st-mut { font-size: 12px; }
.st-tasks { list-style: none; margin: 0; padding: 0; overflow-y: auto; min-height: 0; flex: 1; font-size: 12px; }
.st-tasks li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: baseline; padding: 5px 0; border-top: 1px solid var(--st-line); }
.st-tasks li.st-tmore { display: block; border: 0; }
.st-ttx { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.st-ttx em { font-style: normal; color: var(--st-mut); }
.st-ttx small { display: block; color: var(--st-mut); font-size: 11.5px; }
.st-tasks time { color: var(--st-mut); font-size: 11px; white-space: nowrap; }
.st-tst { padding: 1px 7px; border-radius: 999px; font-size: 11px; white-space: nowrap; background: var(--st-bg2); color: var(--st-mut); }
.st-tst.run { color: var(--st-run); background: color-mix(in srgb, var(--st-run) 14%, transparent); }
.st-tst.ok { color: var(--st-ok); background: color-mix(in srgb, var(--st-ok) 14%, transparent); }
.st-tst.bad { color: var(--st-bad); background: color-mix(in srgb, var(--st-bad) 14%, transparent); }
.st-tst.warn { color: var(--st-warn); background: color-mix(in srgb, var(--st-warn) 14%, transparent); }

/* правка на слайде */
html.st-text #stage .slide.cur [data-st-k] { cursor: text; border-radius: 4px; transition: box-shadow 120ms var(--st-ease); }
html.st-text #stage .slide.cur [data-st-k]:hover { box-shadow: 0 0 0 3px rgba(62, 160, 243, .55); }
html.st-text #stage .slide.cur [data-st-k].st-editing { box-shadow: 0 0 0 4px #3EA0F3; outline: none; background: rgba(62, 160, 243, .08); caret-color: #3EA0F3; }
html.st-on #stage [data-st-k].st-edited { text-decoration: underline dotted rgba(62, 160, 243, .7); text-decoration-thickness: 2px; text-underline-offset: 6px; }
html.st-box #stage .slide.cur [data-st-b] { cursor: pointer; }
html.st-box #stage .slide.cur [data-st-b]:hover { outline: 3px dashed rgba(62, 160, 243, .7); outline-offset: 4px; }
.st-sel { position: fixed; z-index: 77; border: 1.5px solid #3EA0F3; border-radius: 3px; cursor: move; touch-action: none; box-shadow: 0 0 0 9999px rgba(10, 20, 30, .08); }
html.st-box .st-sel:not([hidden]) { display: block; }
.st-sel.dragging { box-shadow: 0 0 0 9999px rgba(10, 20, 30, .16); }
.st-h { position: absolute; width: 11px; height: 11px; margin: -5.5px; border-radius: 2px; background: #fff; border: 1.5px solid #3EA0F3; }
.st-h[data-h="nw"] { left: 0; top: 0; cursor: nwse-resize; } .st-h[data-h="ne"] { left: 100%; top: 0; cursor: nesw-resize; }
.st-h[data-h="se"] { left: 100%; top: 100%; cursor: nwse-resize; } .st-h[data-h="sw"] { left: 0; top: 100%; cursor: nesw-resize; }
.st-h[data-h="n"] { left: 50%; top: 0; cursor: ns-resize; } .st-h[data-h="s"] { left: 50%; top: 100%; cursor: ns-resize; }
.st-h[data-h="e"] { left: 100%; top: 50%; cursor: ew-resize; } .st-h[data-h="w"] { left: 0; top: 50%; cursor: ew-resize; }
.st-dim { position: absolute; left: 0; top: calc(100% + 8px); padding: 2px 7px; border-radius: 5px; background: #3EA0F3; color: #fff; font: 500 11px/1.5 'JetBrains Mono', ui-monospace, monospace; white-space: nowrap; }

/* всплывающее окно у кнопки */
.st-pop { position: fixed; z-index: 90; width: 340px; max-height: calc(100vh - 80px); overflow: auto; padding: 14px; border-radius: 14px; background: var(--st-bg); border: 1px solid var(--st-line); box-shadow: var(--st-sh);
  opacity: 0; transform: scale(.96) translateY(-4px); transition: opacity 180ms var(--st-ease), transform 220ms var(--st-ease); }
.st-pop.open { opacity: 1; transform: none; }
.st-pop h5, .st-photos h5 { margin: 0 0 4px; font-size: 13px; font-weight: 500; }
.st-pop h5 + .st-mut { margin: 0 0 10px; font-size: 12px; }
.st-pop * + h5 { margin-top: 14px; }
.st-dl, .st-ml { display: grid; gap: 4px; }
.st-dz, .st-ml button { display: flex; align-items: center; gap: 12px; padding: 8px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.st-dz[aria-pressed="true"] { background: var(--st-hl); }
@media (hover: hover) and (pointer: fine) { .st-dz:hover, .st-ml button:hover { background: var(--st-bg2); } }
.st-dz b, .st-ml b { display: block; font-weight: 500; }
.st-dz em, .st-ml em { display: block; font-style: normal; color: var(--st-mut); font-size: 12px; }
.st-sw { display: grid; grid-template-columns: 1fr 1fr; width: 40px; height: 40px; border-radius: 10px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px var(--st-line); }
.st-sw0 { display: grid; place-items: center; grid-template-columns: 1fr; color: var(--st-mut); }
.st-fl { display: grid; gap: 4px; font-size: 12px; color: var(--st-mut); margin-bottom: 10px; }
.st-recs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.st-recs li { display: flex; align-items: center; gap: 4px; padding: 4px 0; border-top: 1px solid var(--st-line); }
.st-recs label { flex: 1; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.st-recs input { accent-color: var(--st-acc); }
.st-recs b { display: block; font-weight: 500; } .st-recs em { display: block; font-style: normal; color: var(--st-mut); font-size: 12px; }
.st-recs .st-tb { box-shadow: none; background: transparent; }
.st-b.st-rec { background: #C62828; color: #fff; padding: 0 14px; }
.st-b.st-rec .fillc { fill: #fff; }
.st-keys { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: 12px; color: var(--st-mut); }
.st-keys b { display: inline-block; min-width: 54px; font-weight: 500; color: var(--st-fg); }
.st-recdot { position: fixed; left: 50%; top: 62px; transform: translateX(-50%); z-index: 91; display: flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: #B3261E; color: #fff; font-size: 13px; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .4); }
.st-recdot[hidden] { display: none; }
.st-recdot i { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: st-blink 1s ease-in-out infinite; }
.st-recdot .st-link { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.st-ripple { position: fixed; z-index: 95; width: 44px; height: 44px; margin: -22px; border-radius: 50%; border: 3px solid rgba(62, 160, 243, .9); pointer-events: none; animation: st-rip 650ms cubic-bezier(.23, 1, .32, 1) both; }
.st-ripple.quiet { border-color: rgba(255, 255, 255, .7); border-width: 2px; }
@keyframes st-rip { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

/* правая панель: фото фона */
.st-photos { position: fixed; right: 0; top: 52px; bottom: 0; width: 372px; z-index: 81; flex-direction: column; gap: 10px; padding: 12px 14px 16px; overflow-y: auto; background: var(--st-bg); border-left: 1px solid var(--st-line);
  transform: translateX(100%); visibility: hidden; transition: transform 260ms var(--st-ease), visibility 0s linear 260ms; }
.st-photos.open { transform: none; visibility: visible; transition: transform 260ms var(--st-ease), visibility 0s; }
.st-phh { display: flex; justify-content: space-between; align-items: center; }
.st-phh b { font-weight: 500; font-size: 14px; }
.st-phcur { display: grid; gap: 4px; font-size: 12px; color: var(--st-mut); }
.st-phcur img, .st-phnone { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--st-bg2); display: grid; place-items: center; }
.st-phgrid { display: grid; gap: 10px; }
.st-phs { position: relative; display: block; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--st-bg2); cursor: pointer; aspect-ratio: 16 / 9; color: #fff; box-shadow: 0 0 0 1px var(--st-line); transition: box-shadow 140ms var(--st-ease), transform 160ms var(--st-ease); }
.st-phs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-phs span { position: absolute; left: 8px; bottom: 8px; right: 8px; font-size: 11.5px; text-align: left; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.st-phs.on { box-shadow: 0 0 0 3px var(--st-acc); }
.st-phs:active { transform: scale(.98); }
.st-phs.sk { background: linear-gradient(90deg, var(--st-bg2), var(--st-line), var(--st-bg2)); background-size: 200% 100%; animation: st-sk 1.2s linear infinite; }
@keyframes st-sk { to { background-position: -200% 0; } }
.st-phbtns { display: flex; gap: 8px; justify-content: space-between; }
.st-phnote { font-size: 12px; margin: 0; }
.st-msg { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--st-bg2); font-size: 12.5px; }
.st-msg.bad, .st-ui b.bad { color: var(--st-bad); }

/* окно генерации */
.st-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(8, 12, 10, .42); opacity: 0; transition: opacity 200ms var(--st-ease); }
.st-modal[hidden] { display: none; }
.st-modal.open { opacity: 1; }
.st-dlg { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; padding: 18px; border-radius: 16px; background: var(--st-bg); box-shadow: var(--st-sh); display: grid; gap: 10px;
  transform: scale(.96); transition: transform 240ms var(--st-ease); }
.st-modal.open .st-dlg { transform: none; }
.st-dlg .st-trow { justify-content: flex-end; }
.st-gprice { font-size: 12.5px; padding: 8px 10px; border-radius: 10px; background: var(--st-bg2); }
.st-gprice b { font-weight: 500; }
.st-gout img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; display: block; margin-bottom: 8px; }
.st-gwait { display: flex; align-items: center; gap: 10px; color: var(--st-mut); padding: 18px 0; }
.st-gwait i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--st-line); border-top-color: var(--st-acc); animation: st-spin 800ms linear infinite; }
@keyframes st-spin { to { transform: rotate(360deg); } }
.st-toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; max-width: min(640px, 90vw); padding: 9px 16px; border-radius: 12px; background: #17201A; color: #F1F4F1; font-size: 13px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
  transform: translate(-50%, 8px); opacity: 0; pointer-events: none; transition: opacity 180ms var(--st-ease), transform 220ms var(--st-ease); }
.st-toast.show { opacity: 1; transform: translate(-50%, 0); }
html.st-on .st-toast { bottom: 270px; }

/* пункт в меню доклада (меню тёмное у всех докладов) */
.st-menu .st-mopen { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: inherit; font: inherit; cursor: pointer; text-align: left; }
.st-menu .st-mopen span { flex: 1; }
.st-menu .st-mopen .st-i { color: #9AD13A; }
@media (hover: hover) and (pointer: fine) { .st-menu .st-mopen:hover { background: rgba(255, 255, 255, .12); } }
.st-menu .st-sds { margin-bottom: 4px; }

/* оверлей: скрытые и удалённые слайды */
.slide.st-del { display: none !important; }
.mobile .slide.st-off, .print .slide.st-off { display: none !important; }
html.st-on .slide.st-off.cur::after { content: 'Скрытый слайд — на показе пропускается'; position: absolute; left: 50%; top: 24px; transform: translateX(-50%); z-index: 50; padding: 8px 18px; border-radius: 999px; background: rgba(20, 24, 22, .86); color: #fff; font: 400 22px/1.3 'Onest', system-ui, sans-serif; }

@media (prefers-reduced-motion: reduce) {
  .st-ui, .st-ui * { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

/* правая панель: озвучка слайда (21.10.2026) — текст озвучки, ударения, паузы, словарь */
.st-voicep { gap: 8px; }
.st-voicep > * { flex-shrink: 0; }
.st-voicep .st-lbl { margin-top: 2px; }
.st-vsrc { font-size: 11.5px; color: var(--st-mut); }
.st-vsrc.on { color: var(--st-acc); }
#st-vta { min-height: 150px; resize: vertical; font-size: 13px; }
.st-vtools { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.st-vsp { flex: 1; }
.st-chip { border: 1px solid var(--st-line); background: var(--st-bg2); color: var(--st-fg); font: inherit; font-size: 12px; padding: 3px 9px; border-radius: 999px; cursor: pointer; transition: background-color 140ms var(--st-ease), border-color 140ms var(--st-ease); }
.st-chip b { font-weight: 600; color: var(--st-acc); }
.st-chip.on, .st-chip[aria-pressed="true"] { border-color: var(--st-acc); background: var(--st-hl); }
.st-chip:disabled { opacity: .45; cursor: default; }
@media (hover: hover) and (pointer: fine) { .st-chip:not(:disabled):hover { border-color: var(--st-acc); } }
.st-vprev { max-height: 190px; overflow-y: auto; padding: 8px 10px; border-radius: 10px; background: var(--st-bg2); border: 1px solid var(--st-line); font-size: 13px; line-height: 1.75; }
.st-vw { cursor: pointer; border-radius: 4px; padding: 0 1px; }
@media (hover: hover) and (pointer: fine) { .st-vw:hover { background: var(--st-hl); } }
.st-vw.st-vstr { background: color-mix(in srgb, var(--st-acc) 16%, transparent); box-shadow: inset 0 -2px 0 var(--st-acc); }
.st-vw.st-vstr b { font-weight: 600; color: var(--st-acc); }
.st-vw.st-vdic { box-shadow: inset 0 -2px 0 #3EA0F3; }
.st-vw.sel { outline: 2px solid var(--st-acc); outline-offset: 1px; }
.st-vk { display: inline-block; width: 10px; height: 3px; margin: 0 4px 2px 6px; vertical-align: middle; background: var(--st-acc); }
.st-vk.st-vdic { background: #3EA0F3; }
#st-vstat { font-size: 11px; color: var(--st-mut); min-height: 1em; margin-top: -4px; }
#st-vstat:empty { display: none; }
.st-vpause { border: 0; font: inherit; font-size: 11px; line-height: 1.5; padding: 0 7px; margin: 0 2px; border-radius: 999px; background: var(--st-fg); color: var(--st-bg2); cursor: pointer; vertical-align: 1px; }
.st-vword { display: grid; gap: 8px; padding: 10px; border-radius: 12px; border: 1px solid var(--st-acc); background: var(--st-bg); }
.st-vword[hidden] { display: none; }
.st-vword p { margin: 0; font-size: 12px; }
.st-vchips { display: flex; flex-wrap: wrap; gap: 6px; }
.st-vrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-vrow .st-fl { margin: 0; }
.st-vrow output { color: var(--st-fg); font-variant-numeric: tabular-nums; }
.st-vrow input[type="range"] { width: 100%; accent-color: var(--st-acc); }
.st-vmsg { margin: 0; min-height: 1.4em; font-size: 12px; color: var(--st-mut); }
.st-vmsg.ok { color: var(--st-ok); } .st-vmsg.warn { color: var(--st-warn); } .st-vmsg.bad { color: var(--st-bad); }
.st-b.st-vdictb { justify-content: flex-start; background: var(--st-bg2); }
.st-vdictb em { margin-left: auto; font-style: normal; font-size: 11.5px; color: var(--st-mut); }

/* окно «Словарь ударений» */
.st-ddlg { width: min(720px, calc(100vw - 32px)); }
.st-dhelp { margin: 0; font-size: 12.5px; }
.st-dhelp b { font-weight: 500; color: var(--st-fg); }
.st-dtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--st-line); }
.st-dtabs button { border: 0; background: none; font: inherit; color: var(--st-mut); padding: 7px 10px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.st-dtabs button[aria-selected="true"] { color: var(--st-fg); border-bottom-color: var(--st-acc); font-weight: 500; }
.st-dform { display: grid; grid-template-columns: 1fr auto 1fr auto auto; gap: 8px; align-items: center; }
.st-dform > span { color: var(--st-mut); }
.st-ui input:not([type]), .st-ui input[type="text"] { font: inherit; font-size: 13.5px; color: var(--st-fg); background: var(--st-bg2); border: 1px solid var(--st-line); border-radius: 10px; padding: 7px 10px; width: 100%; min-width: 0; }
.st-ui input:not([type]):focus { outline: none; border-color: var(--st-acc); box-shadow: 0 0 0 3px var(--st-hl); }
.st-dq { max-width: 260px; }
.st-dlist { list-style: none; margin: 0; padding: 0; max-height: 46vh; overflow-y: auto; }
.st-dlist li { display: grid; grid-template-columns: minmax(110px, .8fr) 1.4fr auto auto auto; gap: 8px; align-items: center; padding: 5px 2px; border-top: 1px solid var(--st-line); font-size: 13px; }
.st-dlist li.st-mut { display: block; padding: 10px 2px; }
.st-dlist b { font-weight: 500; overflow-wrap: anywhere; }
.st-dlist span b { color: var(--st-acc); font-weight: 600; }
.st-dlist em { font-style: normal; font-size: 11.5px; color: var(--st-warn); }
.st-dlist .st-tb { box-shadow: none; background: transparent; }

/* ---- kit: комментарии на слайде ---- */
/* SiteFeedback — окно отзывов и комментариев (kit/intelliks-feedback.js). Светлая и темная тема: по системе,
   html[data-theme="dark"|"light"] главнее. Все классы fb-*, слой поверх страницы. */
.fb-ui { --fb-bg: #ffffff; --fb-bg2: #f3f5f2; --fb-ink: #18201b; --fb-mut: #5d6a61; --fb-line: #d9dfd8; --fb-acc: #2f6fde; --fb-acc-ink: #ffffff;
  --fb-new: #e5484d; --fb-work: #e0890f; --fb-done: #2e9d55; --fb-shadow: 0 18px 50px rgba(10, 20, 15, .22), 0 2px 8px rgba(10, 20, 15, .12);
  font: 400 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--fb-ink); letter-spacing: 0; text-align: left; box-sizing: border-box; }
.fb-ui *, .fb-ui *::before, .fb-ui *::after { box-sizing: border-box; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .fb-ui { --fb-bg: #1b211d; --fb-bg2: #252c27; --fb-ink: #eef2ee; --fb-mut: #a9b5ac; --fb-line: #38423b; --fb-acc: #6ea2ff; --fb-acc-ink: #0b1220; --fb-shadow: 0 18px 50px rgba(0, 0, 0, .55); } }
html[data-theme="dark"] .fb-ui { --fb-bg: #1b211d; --fb-bg2: #252c27; --fb-ink: #eef2ee; --fb-mut: #a9b5ac; --fb-line: #38423b; --fb-acc: #6ea2ff; --fb-acc-ink: #0b1220; --fb-shadow: 0 18px 50px rgba(0, 0, 0, .55); }
.fb-i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.fb-layer { position: fixed; inset: 0; pointer-events: none; z-index: 2147482000; }
.fb-pin { position: absolute; pointer-events: auto; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50% 50% 50% 4px; border: 2px solid #fff;
  background: var(--fb-new); color: #fff; font: 600 12px/24px system-ui, sans-serif; text-align: center; padding: 0; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  transition: transform .15s ease; }
.fb-pin.st-work { background: var(--fb-work); }
.fb-pin.st-done { background: var(--fb-done); opacity: .8; }
.fb-pin:hover, .fb-pin.cur { transform: scale(1.18); z-index: 2; }
.fb-pin:focus-visible { outline: 3px solid var(--fb-acc); outline-offset: 2px; }
.fb-hl { position: fixed; pointer-events: none; z-index: 2147481999; border: 2px dashed var(--fb-acc); border-radius: 4px; background: rgba(47, 111, 222, .07); }
html.fb-on, html.fb-on * { cursor: crosshair !important; }
html.fb-on .fb-ui, html.fb-on .fb-ui * { cursor: auto !important; }
html.fb-on .fb-ui button, html.fb-on .fb-pin { cursor: pointer !important; }

.fb-bar { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 2147482001; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px;
  background: var(--fb-bg); border: 1px solid var(--fb-line); border-radius: 999px; box-shadow: var(--fb-shadow); white-space: nowrap; max-width: calc(100vw - 24px); }
.fb-bar > .fb-i { color: var(--fb-new); }
.fb-bar > span { overflow: hidden; text-overflow: ellipsis; }
.fb-cnt { font-style: normal; font-size: 12px; color: var(--fb-mut); }
.fb-b { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 12px; border: 1px solid var(--fb-line); border-radius: 999px; background: var(--fb-bg2);
  color: var(--fb-ink); font: inherit; font-weight: 500; cursor: pointer; }
.fb-b:hover { border-color: var(--fb-acc); }
.fb-b:focus-visible, .fb-seg button:focus-visible, .fb-x:focus-visible, .fb-list button:focus-visible { outline: 3px solid var(--fb-acc); outline-offset: 1px; }
.fb-b:disabled { opacity: .55; cursor: default; }
.fb-pri { background: var(--fb-acc); border-color: var(--fb-acc); color: var(--fb-acc-ink); }
.fb-ic { padding: 6px 9px; margin-left: auto; }
.fb-b kbd, .fb-bar kbd { font: 500 11px system-ui, sans-serif; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--fb-line); background: var(--fb-bg); color: var(--fb-mut); }
.fb-pri kbd { background: transparent; color: inherit; border-color: currentColor; opacity: .8; }

.fb-pop { position: fixed; z-index: 2147482003; width: 360px; max-width: calc(100vw - 20px); max-height: calc(100vh - 20px); overflow: auto; padding: 14px;
  background: var(--fb-bg); border: 1px solid var(--fb-line); border-radius: 16px; box-shadow: var(--fb-shadow); display: flex; flex-direction: column; gap: 10px; }
.fb-pop[hidden], .fb-side[hidden], .fb-bar[hidden], .fb-hl[hidden] { display: none !important; }
.fb-pop.sheet { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: 100%; max-width: none; max-height: 78vh; border-radius: 18px 18px 0 0; padding: 16px 16px max(16px, env(safe-area-inset-bottom)); }
.fb-ph, .fb-sh { display: flex; align-items: center; gap: 8px; }
.fb-ph b, .fb-sh b { font-weight: 600; font-size: 15px; }
.fb-ph em { font-style: normal; color: var(--fb-mut); font-size: 13px; }
.fb-x { margin-left: auto; width: 34px; height: 34px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--fb-mut); cursor: pointer; }
.fb-x:hover { background: var(--fb-bg2); color: var(--fb-ink); }
.fb-ta { width: 100%; min-height: 60px; resize: vertical; padding: 9px 11px; border: 1px solid var(--fb-line); border-radius: 10px; background: var(--fb-bg2); color: var(--fb-ink); font: inherit; font-size: 15px; }
.fb-ta:focus { outline: 2px solid var(--fb-acc); outline-offset: 0; border-color: transparent; }
.fb-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fb-chk { display: flex; gap: 8px; align-items: center; color: var(--fb-mut); font-size: 13px; }
.fb-mut { margin: 0; color: var(--fb-mut); font-size: 12px; }
.fb-seg { display: flex; gap: 4px; padding: 3px; background: var(--fb-bg2); border-radius: 999px; flex-wrap: wrap; }
.fb-seg button { flex: 1; min-height: 30px; padding: 4px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--fb-mut); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.fb-seg button[aria-checked="true"], .fb-seg button[aria-pressed="true"] { background: var(--fb-bg); color: var(--fb-ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.fb-seg button.st-new[aria-checked="true"] { color: var(--fb-new); }
.fb-seg button.st-work[aria-checked="true"] { color: var(--fb-work); }
.fb-seg button.st-done[aria-checked="true"] { color: var(--fb-done); }
.fb-seg em { font-style: normal; opacity: .7; }
.fb-msgs { display: flex; flex-direction: column; gap: 8px; }
.fb-msg p { margin: 2px 0 0; white-space: pre-wrap; word-break: break-word; font-size: 15px; }
.fb-msg.re { padding-left: 12px; border-left: 2px solid var(--fb-line); }
.fb-meta { display: flex; gap: 8px; align-items: baseline; font-size: 12px; color: var(--fb-mut); }
.fb-meta b { color: var(--fb-ink); font-weight: 600; }
.fb-loc { font-style: normal; color: var(--fb-work); }
.fb-shot { display: block; margin-top: 8px; border-radius: 8px; overflow: hidden; border: 1px solid var(--fb-line); }
.fb-shot img { display: block; width: 100%; height: auto; max-height: 180px; object-fit: cover; object-position: center top; }
.fb-task { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-radius: 10px; background: var(--fb-bg2); }
.fb-task small { color: var(--fb-mut); }
.fb-tst { font-weight: 600; font-size: 13px; }
.fb-tst.ok { color: var(--fb-done); } .fb-tst.warn { color: var(--fb-work); } .fb-tst.run { color: var(--fb-acc); } .fb-tst.q { color: var(--fb-mut); }

.fb-side { position: fixed; z-index: 2147482002; top: 0; right: 0; bottom: 0; width: 390px; max-width: 100vw; display: flex; flex-direction: column; gap: 10px; padding: 14px;
  background: var(--fb-bg); border-left: 1px solid var(--fb-line); box-shadow: var(--fb-shadow); }
.fb-net { font-size: 12px; color: var(--fb-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-net.ok::before, .fb-net.loc::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--fb-done); }
.fb-net.loc::before { background: var(--fb-work); }
.fb-filt { display: flex; flex-direction: column; gap: 6px; }
.fb-seg.sm button { font-size: 12px; padding: 3px 8px; }
.fb-add { justify-content: center; }
.fb-list { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.fb-list li > button { width: 100%; display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--fb-line); border-radius: 12px; background: var(--fb-bg); color: var(--fb-ink); font: inherit; text-align: left; cursor: pointer; }
.fb-list li > button:hover { border-color: var(--fb-acc); }
.fb-n { flex: none; width: 24px; height: 24px; border-radius: 50% 50% 50% 4px; background: var(--fb-new); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.fb-n.st-work { background: var(--fb-work); } .fb-n.st-done { background: var(--fb-done); }
.fb-lt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fb-lt small { color: var(--fb-mut); font-size: 12px; }
.fb-sb { flex: none; font-size: 11px; font-weight: 600; color: var(--fb-new); }
.fb-sb.st-work { color: var(--fb-work); } .fb-sb.st-done { color: var(--fb-done); }
.fb-empty { color: var(--fb-mut); padding: 18px 6px; text-align: center; }
.fb-legacy { border-top: 1px solid var(--fb-line); padding-top: 8px; font-size: 13px; color: var(--fb-mut); }
.fb-legacy ul { margin: 4px 0 0; padding-left: 18px; }

/* пакет правок (28.10.2026): галочки в списке, закрепленный низ панели, окно пакета */
.fb-list li.fb-li { display: flex; gap: 4px; align-items: stretch; }
.fb-list li.fb-li > button { flex: 1; width: auto; min-width: 0; }
.fb-sel { flex: none; width: 30px; display: grid; place-items: center; border-radius: 10px; cursor: pointer; }
label.fb-sel:hover { background: var(--fb-bg2); }
.fb-sel input { width: 18px; height: 18px; margin: 0; accent-color: var(--fb-acc); cursor: pointer; }
.fb-sel input:focus-visible { outline: 3px solid var(--fb-acc); outline-offset: 2px; }
.fb-sent { display: inline-block; margin-right: 6px; padding: 0 7px; border-radius: 999px; font-style: normal; font-weight: 600; font-size: 11px; line-height: 18px;
  color: var(--fb-work); background: color-mix(in srgb, var(--fb-work) 14%, transparent); }
.fb-foot { flex: none; display: flex; flex-direction: column; gap: 8px; margin: 0 -14px -14px; padding: 10px 14px 14px; border-top: 1px solid var(--fb-line); background: var(--fb-bg); }
.fb-fq { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.fb-lnk { border: 0; background: transparent; color: var(--fb-acc); font: inherit; font-size: 13px; font-weight: 500; padding: 4px 8px; border-radius: 8px; cursor: pointer; }
.fb-lnk:hover { background: var(--fb-bg2); }
.fb-lnk:disabled { color: var(--fb-mut); opacity: .6; cursor: default; background: transparent; }
.fb-lnk:focus-visible { outline: 3px solid var(--fb-acc); outline-offset: 1px; }
.fb-fn { margin-left: auto; font-size: 12px; color: var(--fb-mut); font-variant-numeric: tabular-nums; }
.fb-pack { justify-content: center; min-height: 42px; font-size: 15px; font-variant-numeric: tabular-nums; }
.fb-hint { display: flex; gap: 6px; align-items: flex-start; }
.fb-hint .fb-i { width: 15px; height: 15px; margin-top: 1px; color: var(--fb-acc); }

.fb-dlgwrap { position: fixed; inset: 0; z-index: 2147482004; display: grid; place-items: center; padding: 24px 16px; background: rgba(8, 14, 10, .46); }
.fb-dlgwrap[hidden] { display: none !important; }
.fb-dlg { width: min(760px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); display: flex; flex-direction: column; gap: 10px; padding: 16px;
  background: var(--fb-bg); border: 1px solid var(--fb-line); border-radius: 18px; box-shadow: var(--fb-shadow); }
.fb-dlg .fb-ph b { font-size: 17px; white-space: nowrap; }
.fb-dlg .fb-ph em { flex: 1; min-width: 0; font-size: 13px; }
.fb-away { display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; }
.fb-away .fb-lnk { padding: 2px 6px; font-size: 12px; }
.fb-db { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 12px; padding: 2px 2px 4px; overscroll-behavior: contain; }
.fb-df { flex: none; display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--fb-line); }
.fb-df .fb-row { justify-content: flex-end; }
.fb-df .fb-pri { min-height: 40px; padding: 8px 16px; font-variant-numeric: tabular-nums; }
.fb-fld { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--fb-mut); }
.fb-fld > span { font-weight: 500; }
.fb-fld i { font-style: normal; font-weight: 400; opacity: .8; }
.fb-in { width: 100%; min-height: 40px; padding: 8px 11px; border: 1px solid var(--fb-line); border-radius: 10px; background: var(--fb-bg2); color: var(--fb-ink); font: inherit; font-size: 15px; }
.fb-in:focus { outline: 2px solid var(--fb-acc); outline-offset: 0; border-color: transparent; }
.fb-ver button { white-space: normal; }
.fb-ver button[aria-checked="true"] { color: var(--fb-acc); }
.fb-plist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fb-pg { margin: 6px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--fb-mut); }
.fb-pg:first-child { margin-top: 0; }
.fb-plist.drag .fb-pg { visibility: hidden; height: 0; margin: 0; }
.fb-pi { display: flex; gap: 8px; align-items: center; padding: 8px; border: 1px solid var(--fb-line); border-radius: 12px; background: var(--fb-bg); }
.fb-pi.lift { border-color: var(--fb-acc); box-shadow: var(--fb-shadow); position: relative; z-index: 1; }
.fb-grip { flex: none; width: 28px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--fb-mut); cursor: grab; touch-action: none; padding: 0; }
.fb-grip:hover { background: var(--fb-bg2); color: var(--fb-ink); }
.fb-grip:focus-visible { outline: 3px solid var(--fb-acc); outline-offset: 1px; }
.fb-grip .fb-i { fill: currentColor; stroke: none; }
.fb-plist.drag, .fb-plist.drag * { cursor: grabbing !important; user-select: none; }
.fb-pt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fb-pt p { margin: 0; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.fb-pt small { color: var(--fb-mut); font-size: 12px; }
.fb-th { flex: none; width: 96px; height: 60px; border-radius: 8px; overflow: hidden; border: 1px solid var(--fb-line); background: var(--fb-bg2); display: grid; place-items: center; }
.fb-th img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.fb-th0 { font-size: 11px; color: var(--fb-mut); text-align: center; }
.fb-rm { margin-left: 0; flex: none; }
.fb-warn { margin: 0; padding: 8px 10px; border-radius: 10px; font-size: 13px; color: var(--fb-ink); background: color-mix(in srgb, var(--fb-work) 16%, transparent); border: 1px solid color-mix(in srgb, var(--fb-work) 45%, transparent); }
html.fb-dlg-on { overflow: hidden; }

.fb-toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); z-index: 2147482005; padding: 10px 16px; border-radius: 12px; background: var(--fb-ink); color: var(--fb-bg);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 24px); }
.fb-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 639px) {
  .fb-side { top: auto; height: 82vh; width: 100%; border-left: 0; border-top: 1px solid var(--fb-line); border-radius: 18px 18px 0 0; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .fb-bar { top: auto; bottom: 14px; }
  .fb-bar > span { display: none; }
  .fb-toast { bottom: auto; top: 14px; transform: translate(-50%, -16px); }
  .fb-toast.show { transform: translate(-50%, 0); }
  .fb-pin { width: 32px; height: 32px; margin: -16px 0 0 -16px; line-height: 28px; }
  .fb-foot { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .fb-dlgwrap { padding: 0; place-items: end stretch; }
  .fb-dlg { width: 100%; max-height: 94vh; max-height: 94dvh; border-radius: 18px 18px 0 0; padding: 14px 14px max(14px, env(safe-area-inset-bottom)); }
  .fb-pi { gap: 6px; padding: 8px 6px; }
  .fb-pt p { font-size: 13.5px; }
  .fb-th { width: 72px; height: 46px; }
  .fb-df .fb-row { flex-wrap: nowrap; }
  .fb-df .fb-row > .fb-b { justify-content: center; white-space: nowrap; }
  .fb-df .fb-row > .fb-pri { flex: 1; }
  .fb-dlg .fb-ph em { font-size: 12px; }
  .fb-grip { width: 30px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .fb-pin, .fb-toast { transition: none; } }
@media print { .fb-dlgwrap { display: none !important; } }
@media print { .fb-ui { display: none !important; } }

/* ---- designs/svetly.css ---- */
/* Дизайн студии «Светлый» — чистая бумага, тонкий шрифт, плашки как листы. База движка — светлая тема (svet). */
html[data-sd="svetly"] {
  --bg: #FBFBF8; --fg: #16201A; --muted: #4A564E; --line: rgba(22, 32, 26, .14);
  --glass: rgba(255, 255, 255, .93); --glass-b: rgba(22, 32, 26, .10); --glass-blur: 0px;
  --panel-fg: #16201A; --panel-muted: #4A564E; --scrim: rgba(251, 251, 248, .30);
  --see: #0F5E8C; --think: #8A5A00; --act: #2F6F3A; --sec: #A8192F; --xg: #2F6F3A; --xy: #A87400; --human: #16201A;
  --photo-f: saturate(.92) brightness(1.03);
  --f-main: 'Onest', 'Golos Text', system-ui, sans-serif; --f-num: 'Onest', system-ui, sans-serif; --w-title: 300; --w-num: 200;
  --dur: 620ms;
  --f-ink: #FBFBF8; --f-forest: #F3F5F0; --f-green: #EEF3EA; --f-see: #EAF1F5; --f-think: #F6F1E6; --f-act: #EDF3E8; --f-red: #F7ECEC;
}
html[data-sd="svetly"], html[data-sd="svetly"] body { background: #E9EBE6; }
html[data-sd="svetly"] .slide { --c: #2F6F3A; }
html[data-sd="svetly"] .slide[class*="fd-"] { --fg: #16201A; --muted: #4A564E; --line: rgba(22, 32, 26, .14); --see: #0F5E8C; --think: #8A5A00; --act: #2F6F3A; }
/* декоративный слой: сетка точек в правом нижнем углу — только на слайдах без фото */
html[data-sd="svetly"] .slide[class*="fd-"]::before { content: ''; position: absolute; right: 64px; bottom: 96px; width: 252px; height: 168px; pointer-events: none;
  background: radial-gradient(circle, rgba(22, 32, 26, .16) 1.4px, transparent 1.9px) 0 0 / 28px 28px; }
html[data-sd="svetly"] .ttl { font-weight: 300; letter-spacing: -.028em; }
html[data-sd="svetly"] .line { font-weight: 300; }
html[data-sd="svetly"] .glass { border-radius: 8px; border: 1px solid var(--glass-b); -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(22, 32, 26, .04), 0 30px 70px -40px rgba(22, 32, 26, .45); }
html[data-sd="svetly"] :is(.foot .pg, .phcap, .hero, .has-photo .foot .src, .lad) { background: rgba(255, 255, 255, .94); color: #16201A; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 6px; box-shadow: 0 6px 20px -12px rgba(22, 32, 26, .4); }
html[data-sd="svetly"] .chip { border-radius: 6px; }
html[data-sd="svetly"] .scrim.full { background: linear-gradient(90deg, rgba(251, 251, 248, .55), rgba(251, 251, 248, .05)); }
html[data-sd="svetly"] :is(.lever, .card, .box, .qrcard) { border-radius: 8px; }
html[data-sd="svetly"] .rv { transform: translateY(14px); }
html[data-sd="svetly"] .rv.fromL { transform: translateX(-24px); } html[data-sd="svetly"] .rv.fromR { transform: translateX(24px); }
html[data-sd="svetly"] .rv.pop { transform: scale(.96); } html[data-sd="svetly"] .rv.grow { transform: scaleY(0); }
html[data-sd="svetly"] .slide.on .rv { transform: none; }
html[data-sd="svetly"] .lever .lv { font-size: 146px; }

/* ---- designs/neon.css ---- */
/* Дизайн студии «Неон» — как карта агентов и тёмные дашборды пульта:
   ночной фиолетово-синий фон, цветные пятна, тонкая сетка, светящиеся акценты, плашки-«стекло». База — тёмная тема (temno). */
html[data-sd="neon"] {
  --bg: #07071A; --fg: #EEF0FF; --muted: #A9ADDB; --line: rgba(140, 120, 255, .26);
  --glass: rgba(20, 18, 52, .66); --glass-b: rgba(140, 120, 255, .30); --glass-blur: 22px;
  --panel-fg: #EEF0FF; --panel-muted: #B3B7E4; --scrim: rgba(7, 7, 26, .72);
  --see: #00F0D0; --think: #FFD166; --act: #3DFFA0; --sec: #FF4FD8; --xg: #8B5CFF; --xy: #FFD166; --xr: #FF4D6D; --thermo: #C9B8FF; --human: #FFFFFF;
  --photo-f: saturate(.65) contrast(1.12) brightness(.62) hue-rotate(-12deg);
  --f-main: 'Manrope', 'Onest', system-ui, sans-serif; --f-num: 'Manrope', 'Onest', sans-serif; --w-title: 300; --w-num: 200;
  --nx-grid: linear-gradient(rgba(140, 120, 255, .07) 1px, transparent 1px) 0 0 / 60px 60px, linear-gradient(90deg, rgba(140, 120, 255, .07) 1px, transparent 1px) 0 0 / 60px 60px;
  --f-ink: var(--nx-grid), radial-gradient(900px 640px at 8% 0%, rgba(91, 43, 255, .42), transparent 62%), radial-gradient(800px 600px at 100% 100%, rgba(0, 194, 168, .30), transparent 60%), radial-gradient(600px 460px at 62% 40%, rgba(255, 43, 214, .14), transparent 62%), linear-gradient(160deg, #07071A, #0D0B2A);
  --f-forest: var(--f-ink); --f-green: var(--f-ink); --f-red: var(--f-ink);
  --f-see: var(--nx-grid), radial-gradient(1000px 700px at 85% 10%, rgba(0, 240, 208, .30), transparent 60%), linear-gradient(160deg, #07142A, #0D0B2A);
  --f-think: var(--nx-grid), radial-gradient(1000px 700px at 85% 10%, rgba(255, 209, 102, .22), transparent 60%), radial-gradient(800px 600px at 0% 100%, rgba(91, 43, 255, .35), transparent 60%), linear-gradient(160deg, #120F2A, #0D0B2A);
  --f-act: var(--nx-grid), radial-gradient(1000px 700px at 85% 10%, rgba(61, 255, 160, .20), transparent 60%), radial-gradient(800px 600px at 0% 100%, rgba(91, 43, 255, .32), transparent 60%), linear-gradient(160deg, #071A1A, #0D0B2A);
}
html[data-sd="neon"], html[data-sd="neon"] body { background: #03040F; }
html[data-sd="neon"] .slide { --c: #8B5CFF; }
html[data-sd="neon"] .slide[data-c="see"] { --c: #00F0D0; } html[data-sd="neon"] .slide[data-c="think"] { --c: #FFD166; }
html[data-sd="neon"] .slide[data-c="act"] { --c: #3DFFA0; } html[data-sd="neon"] .slide[data-c="sec"] { --c: #FF4FD8; }
html[data-sd="neon"] .slide[class*="fd-"] { --fg: #EEF0FF; --muted: #A9ADDB; --line: rgba(140, 120, 255, .26); --see: #00F0D0; --think: #FFD166; --act: #3DFFA0; }
/* фото: ночная тонировка */
html[data-sd="neon"] .bg::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(91, 43, 255, .42), rgba(0, 194, 168, .10) 55%, rgba(255, 43, 214, .26)); mix-blend-mode: screen; opacity: .55; }
html[data-sd="neon"] .scrim.left { background: linear-gradient(90deg, rgba(7, 7, 26, .82) 0%, transparent 66%); }
html[data-sd="neon"] .scrim.right { background: linear-gradient(270deg, rgba(7, 7, 26, .82) 0%, transparent 66%); }
html[data-sd="neon"] .scrim.full { background: linear-gradient(90deg, rgba(7, 7, 26, .80), rgba(7, 7, 26, .35)); }
html[data-sd="neon"] .ttl { font-weight: 300; letter-spacing: -.02em; }
html[data-sd="neon"] .line { font-weight: 300; letter-spacing: .005em; }
html[data-sd="neon"] .glass { border-radius: 22px; border: 1px solid var(--glass-b); background: var(--glass);
  box-shadow: 0 0 0 1px rgba(140, 120, 255, .12), 0 24px 70px -20px rgba(80, 40, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .06); }
html[data-sd="neon"] :is(.foot .pg, .phcap, .hero, .has-photo .foot .src, .lad, .lad b) { --fg: #EEF0FF; --muted: #B3B7E4; background: rgba(20, 18, 52, .72); color: #EEF0FF; border: 1px solid rgba(140, 120, 255, .22); }
html[data-sd="neon"] .chip { border-color: rgba(140, 120, 255, .4); }
html[data-sd="neon"] .num, html[data-sd="neon"] .lever .lv { filter: drop-shadow(0 0 22px color-mix(in srgb, currentColor 45%, transparent)); }
html[data-sd="neon"] :is(.lever, .box, .card) { border-radius: 22px; box-shadow: 0 0 0 1px rgba(140, 120, 255, .14), 0 18px 50px -24px rgba(80, 40, 255, .55); }
html[data-sd="neon"] .hero .ico { background: #FFD166; color: #1A1030; }
/* анимация: проявление из лёгкого размытия */
html[data-sd="neon"]:not([data-motion="off"]) .slide .rv:not(.grow) { filter: blur(10px); }
html[data-sd="neon"]:not([data-motion="off"]) .slide.on .rv { filter: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), filter var(--dur) var(--ease); transition-delay: calc(var(--d, 0) * var(--step-ms)); }
html[data-sd="neon"].print .slide .rv { filter: none !important; }

/* ---- designs/xbio.css ---- */
/* Дизайн студии «X-BIO» — по брендбуку (60-tyumgu/x-bio-brand: стиль «Наука и лаборатория»):
   бумага #F7F9F6, текст #1D2520, зелёный сайта #2E7D32, знак #7FB91F, мята #E6F2E1, линии #D3DDCF, красный — только точкой рядом со знаком;
   Golos Text; фирменная форма — ромбы 45° с зазором; карточки 18 px; тонкие линии 1,5 px. База — светлая тема (svet). */
html[data-sd="xbio"] {
  --bg: #F7F9F6; --fg: #1D2520; --muted: #4C5A50; --line: #D3DDCF;
  --glass: rgba(255, 255, 255, .95); --glass-b: #D3DDCF; --glass-blur: 0px;
  --panel-fg: #1D2520; --panel-muted: #4C5A50; --scrim: rgba(247, 249, 246, .25);
  --see: #0B6E8E; --think: #8A5A00; --act: #2E7D32; --sec: #B00E2A; --xg: #2E7D32; --xy: #A87400; --xr: #D01030; --human: #1D2520;
  --photo-f: saturate(1.02) brightness(1.02);
  --f-main: 'Golos Text', 'Onest', system-ui, sans-serif; --f-num: 'Golos Text', 'Onest', sans-serif; --w-title: 500; --w-num: 400;
  --xb-rh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cg transform='rotate(45 300 300)'%3E%3Crect x='170' y='170' width='124' height='124' rx='10' fill='%23E6F2E1'/%3E%3Crect x='304' y='170' width='124' height='124' rx='10' fill='%237FB91F' fill-opacity='.16'/%3E%3Crect x='170' y='304' width='124' height='124' rx='10' fill='%237FB91F' fill-opacity='.10'/%3E%3Crect x='304' y='304' width='124' height='124' rx='10' fill='%23E6F2E1'/%3E%3Crect x='438' y='304' width='60' height='60' rx='6' fill='%232E7D32' fill-opacity='.14'/%3E%3C/g%3E%3C/svg%3E");
  --f-ink: var(--xb-rh) right -150px bottom -170px / 760px no-repeat, #F7F9F6;
  --f-forest: var(--xb-rh) right -150px bottom -170px / 760px no-repeat, #EEF5EA;
  --f-green: var(--xb-rh) right -150px bottom -170px / 760px no-repeat, #E6F2E1;
  --f-see: var(--xb-rh) right -150px bottom -170px / 760px no-repeat, #EAF3F1;
  --f-think: var(--xb-rh) right -150px bottom -170px / 760px no-repeat, #F5F2E6;
  --f-act: var(--xb-rh) right -150px bottom -170px / 760px no-repeat, #E6F2E1;
  --f-red: var(--xb-rh) right -150px bottom -170px / 760px no-repeat, #F7EEEE;
  --dur: 640ms;
}
html[data-sd="xbio"], html[data-sd="xbio"] body { background: #E4EAE1; }
html[data-sd="xbio"] .slide { --c: #2E7D32; }
html[data-sd="xbio"] .slide[class*="fd-"] { --fg: #1D2520; --muted: #4C5A50; --line: #D3DDCF; --see: #0B6E8E; --think: #8A5A00; --act: #2E7D32; }
html[data-sd="xbio"] .ttl { font-weight: 500; letter-spacing: -.025em; }
html[data-sd="xbio"] .ttl.xl { letter-spacing: -.03em; }
html[data-sd="xbio"] .glass { border-radius: 18px; border: 1.5px solid #D3DDCF; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 24px 60px -36px rgba(29, 37, 32, .45); }
/* ромб-знак у плашки: зелёный, с красной точкой — как в знаке */
html[data-sd="xbio"] .glass::after { content: ''; position: absolute; right: 30px; top: 30px; width: 20px; height: 20px; border-radius: 3px; transform: rotate(45deg); background: #7FB91F;
  box-shadow: 18px -18px 0 -6px #D01030; pointer-events: none; }
html[data-sd="xbio"] :is(.foot .pg, .phcap, .hero, .has-photo .foot .src, .lad) { background: #FFFFFF; color: #1D2520; border: 1.5px solid #D3DDCF; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
html[data-sd="xbio"] .chip { border-width: 1.5px; }
html[data-sd="xbio"] .scrim.full { background: linear-gradient(90deg, rgba(247, 249, 246, .55), rgba(247, 249, 246, .05)); }
html[data-sd="xbio"] :is(.lever, .card, .box, .qrcard) { border-radius: 18px; }
html[data-sd="xbio"] .hero .ico { background: #7FB91F; color: #10200F; }
html[data-sd="xbio"] .rv { transform: translateY(24px); }
html[data-sd="xbio"] .rv.fromL { transform: translateX(-32px); } html[data-sd="xbio"] .rv.fromR { transform: translateX(32px); }
html[data-sd="xbio"] .rv.pop { transform: scale(.95) rotate(-1deg); } html[data-sd="xbio"] .rv.grow { transform: scaleY(0); }
html[data-sd="xbio"] .slide.on .rv { transform: none; }
html[data-sd="xbio"] .lever .lv { font-size: 138px; letter-spacing: -.05em; }

/* ---- designs/tyumgu.css ---- */
/* Дизайн студии «ТюмГУ» — фирменные цвета и шрифт университета из 60-tyumgu/x-bio-brand (стиль «Университет»):
   белый, голубой #00A8E8, тёмно-синий #0B5FA8, плашки #E3F6FD без обводки (скругление 20 px), Onest, кнопки-пилюли,
   плавный голубой градиент с размытым пятном. Логотип ТюмГУ — из ресурсов доклада (assets/img/tyumgu*.png). База — светлая тема (svet). */
html[data-sd="tyumgu"] {
  --bg: #FFFFFF; --fg: #1B2733; --muted: #4A5A6A; --line: #CFE6F2;
  --glass: rgba(255, 255, 255, .95); --glass-b: rgba(207, 230, 242, .9); --glass-blur: 0px;
  --panel-fg: #1B2733; --panel-muted: #4A5A6A; --scrim: rgba(255, 255, 255, .25);
  --see: #0B5FA8; --think: #8A5A00; --act: #2E7D32; --sec: #B00E2A; --xg: #0B5FA8; --xy: #A87400; --human: #1B2733;
  --photo-f: saturate(1) brightness(1.03);
  --f-main: 'Onest', 'Golos Text', system-ui, sans-serif; --f-num: 'Onest', sans-serif; --w-title: 500; --w-num: 300;
  --tg-spot: radial-gradient(900px 620px at 92% -6%, rgba(0, 168, 232, .22), transparent 62%), radial-gradient(700px 520px at -4% 108%, rgba(43, 181, 240, .14), transparent 60%);
  --f-ink: var(--tg-spot), #FFFFFF; --f-forest: var(--tg-spot), #F5FBFE; --f-green: var(--tg-spot), #F1F9FD; --f-act: var(--tg-spot), #F1F9FD; --f-think: var(--tg-spot), #FFFFFF; --f-red: var(--tg-spot), #FFFFFF;
  --f-see: radial-gradient(900px 620px at 88% 0%, rgba(120, 220, 255, .35), transparent 60%), linear-gradient(135deg, #0A6FB0 0%, #0B5FA8 55%, #0A4A86 100%);
  --dur: 600ms;
}
html[data-sd="tyumgu"], html[data-sd="tyumgu"] body { background: #E3EEF4; }
html[data-sd="tyumgu"] .slide { --c: #0B5FA8; }
html[data-sd="tyumgu"] .slide[class*="fd-"] { --fg: #1B2733; --muted: #4A5A6A; --line: #CFE6F2; --see: #0B5FA8; --think: #8A5A00; --act: #2E7D32; }
html[data-sd="tyumgu"] .slide.fd-see { --fg: #FFFFFF; --muted: #E3F6FD; --line: rgba(255, 255, 255, .35); --see: #FFFFFF; --c: #FFFFFF; }
html[data-sd="tyumgu"] .ttl { font-weight: 500; letter-spacing: -.022em; }
html[data-sd="tyumgu"] .glass { border-radius: 20px; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 26px 60px -34px rgba(11, 58, 102, .45); }
html[data-sd="tyumgu"] .slide:not(.has-photo) .glass { background: #E3F6FD; }
html[data-sd="tyumgu"] :is(.foot .pg, .phcap, .hero, .has-photo .foot .src, .lad) { background: #E3F6FD; color: #0B3A66; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
html[data-sd="tyumgu"] .chip { border-radius: 999px; background: #E3F6FD; border-color: transparent; color: #0B3A66; }
html[data-sd="tyumgu"] .scrim.full { background: linear-gradient(90deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .05)); }
html[data-sd="tyumgu"] :is(.lever, .card, .box, .qrcard) { border-radius: 20px; }
html[data-sd="tyumgu"] .hero .ico { background: #00A8E8; color: #fff; }
html[data-sd="tyumgu"] .foot .pg img { height: 22px; }
html[data-sd="tyumgu"] .rv { transform: translateX(-20px); }
html[data-sd="tyumgu"] .rv.fromR { transform: translateX(20px); } html[data-sd="tyumgu"] .rv.pop { transform: scale(.96); } html[data-sd="tyumgu"] .rv.grow { transform: scaleY(0); }
html[data-sd="tyumgu"] .slide.on .rv { transform: none; }
html[data-sd="tyumgu"] .lever .lv { font-size: 146px; }
html[data-sd="tyumgu"] .slide:not(.fd-see) .ttl { color: #0B3A66; }
html[data-sd="tyumgu"] .slide.has-photo .ttl { color: #0B3A66; }
html[data-sd="tyumgu"] { --tg-spot: radial-gradient(1000px 680px at 96% -10%, rgba(0, 168, 232, .34), transparent 62%), radial-gradient(760px 560px at -6% 110%, rgba(43, 181, 240, .20), transparent 60%); }

/* ---- designs/agroday.css ---- */
/* Дизайн студии «Агро-день 20.10» (авторский, под событие) — осенний вечер в теплице:
   глубокий зелёно-чёрный фон, тёплый янтарь (свет досветки), огуречный зелёный, сливочный текст; заголовки — PT Serif (редакционный, «человеческий»),
   текст — Onest; декор — тонкие ряды-шпалеры теплицы и дата 20.10 водяным знаком; фото — «золотой час»; заголовки открываются шторкой. База — тёмная тема (temno). */
html[data-sd="agroday"] {
  --bg: #10180F; --fg: #F3EBDD; --muted: #CDBFA8; --line: rgba(243, 235, 221, .20);
  --glass: rgba(18, 24, 15, .80); --glass-b: rgba(232, 163, 61, .30); --glass-blur: 18px;
  --panel-fg: #F3EBDD; --panel-muted: #D3C6AF; --scrim: rgba(12, 16, 10, .66);
  --see: #7FD3E8; --think: #E8A33D; --act: #8CCB3A; --sec: #F0705A; --xg: #8CCB3A; --xy: #E8A33D; --thermo: #D9B48A; --human: #F3EBDD;
  --photo-f: sepia(.16) saturate(1.12) contrast(1.06) brightness(.86);
  --f-main: 'Onest', 'Golos Text', system-ui, sans-serif; --f-num: 'PT Serif', Georgia, serif; --w-title: 400; --w-num: 400;
  --ad-rows: repeating-linear-gradient(90deg, rgba(232, 163, 61, .07) 0 1px, transparent 1px 160px);
  --f-ink: var(--ad-rows), radial-gradient(1100px 640px at 80% -10%, rgba(232, 163, 61, .20), transparent 60%), radial-gradient(900px 600px at 0% 110%, rgba(140, 203, 58, .16), transparent 60%), linear-gradient(180deg, #121B10, #0C130B);
  --f-forest: var(--f-ink); --f-green: var(--f-ink); --f-red: var(--f-ink);
  --f-see: var(--ad-rows), radial-gradient(1000px 700px at 85% 0%, rgba(127, 211, 232, .18), transparent 60%), linear-gradient(180deg, #0F1A18, #0C130B);
  --f-think: var(--ad-rows), radial-gradient(1100px 700px at 80% 0%, rgba(232, 163, 61, .32), transparent 60%), linear-gradient(180deg, #1A170D, #0C130B);
  --f-act: var(--ad-rows), radial-gradient(1100px 700px at 80% 0%, rgba(140, 203, 58, .26), transparent 60%), linear-gradient(180deg, #111C0E, #0C130B);
  --dur: 700ms;
}
html[data-sd="agroday"], html[data-sd="agroday"] body { background: #070A06; }
html[data-sd="agroday"] .slide { --c: #E8A33D; }
html[data-sd="agroday"] .slide[data-c="see"] { --c: #7FD3E8; } html[data-sd="agroday"] .slide[data-c="act"] { --c: #8CCB3A; } html[data-sd="agroday"] .slide[data-c="sec"] { --c: #F0705A; }
html[data-sd="agroday"] .slide[class*="fd-"] { --fg: #F3EBDD; --muted: #CDBFA8; --line: rgba(243, 235, 221, .20); --see: #7FD3E8; --think: #E8A33D; --act: #8CCB3A; }
/* водяной знак даты — только на полях без фото */
html[data-sd="agroday"] .slide[class*="fd-"]::before { content: '20.10'; position: absolute; right: 70px; bottom: -40px; font: 400 300px/1 'PT Serif', Georgia, serif; letter-spacing: -.04em; color: rgba(232, 163, 61, .06); pointer-events: none; }
html[data-sd="agroday"] .ttl { font-family: 'PT Serif', Georgia, serif; font-weight: 400; letter-spacing: -.012em; line-height: 1.08; }
html[data-sd="agroday"] .num { font-family: 'PT Serif', Georgia, serif; letter-spacing: -.03em; }
html[data-sd="agroday"] .glass { border-radius: 6px; border: 1px solid rgba(243, 235, 221, .10); border-top: 1px solid rgba(232, 163, 61, .55); background: var(--glass);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); }
html[data-sd="agroday"] :is(.foot .pg, .phcap, .hero, .has-photo .foot .src, .lad, .lad b) { --fg: #F3EBDD; --muted: #D3C6AF; background: rgba(18, 24, 15, .82); color: #F3EBDD; border-radius: 4px; }
html[data-sd="agroday"] .chip { border-radius: 4px; border-color: rgba(232, 163, 61, .45); }
html[data-sd="agroday"] .scrim.left { background: linear-gradient(90deg, rgba(12, 16, 10, .78) 0%, transparent 66%); }
html[data-sd="agroday"] .scrim.full { background: linear-gradient(90deg, rgba(12, 16, 10, .76), rgba(12, 16, 10, .30)); }
html[data-sd="agroday"] .bg::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(1200px 700px at 85% 0%, rgba(255, 176, 64, .22), transparent 60%); mix-blend-mode: soft-light; }
html[data-sd="agroday"] :is(.lever, .card, .box, .qrcard) { border-radius: 6px; }
html[data-sd="agroday"] .hero .ico { background: #E8A33D; color: #1E1300; }
/* анимация: заголовок открывается шторкой слева направо, остальное — мягкий подъём */
html[data-sd="agroday"]:not([data-motion="off"]) .slide .ttl.rv { clip-path: inset(0 100% 0 0); transform: none; }
html[data-sd="agroday"]:not([data-motion="off"]) .slide.on .ttl.rv { clip-path: inset(0 0 0 0); transition: opacity 400ms var(--ease), clip-path 1000ms var(--move); transition-delay: calc(var(--d, 0) * var(--step-ms)); }
html[data-sd="agroday"] .rv:not(.ttl) { transform: translateY(18px); } html[data-sd="agroday"] .rv.grow { transform: scaleY(0); } html[data-sd="agroday"] .rv.pop { transform: scale(.96); }
html[data-sd="agroday"] .slide.on .rv { transform: none; }
html[data-sd="agroday"].print .slide .ttl.rv { clip-path: none !important; }
