/* Teleconnections hub — shared chrome for ENSO, MJO, Stratosphere and Soil
   Moisture: the viewer card, tab band, pill row, dropdowns, playback bar,
   sidebar, legend and foot. Everything is scoped to .tc-page. It loads AFTER
   each tool's own style.css so the shared look wins; tool stylesheets keep
   only what is specific to that tool (map pane, charts, result cards). */

.tc-page, .tc-page * { box-sizing: border-box; }
.viewer-page {
  max-width: min(1800px, calc(100% - 32px), max(1560px, calc((100vh - 256px) * 1.9 + 308px)));
  margin: 0 auto; padding: 0 0 32px;
}
@media (min-width: 769px) { .site-header { top: 16px; margin-top: 16px; margin-bottom: 16px; } }

.tc-page .viewer-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 12px 28px rgba(15,23,42,.06); padding: 10px 18px 14px;
}
.tc-page [hidden] { display: none !important; }

/* ── Tab band ── */
.tc-page .tc-band { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; margin: 0 -6px 10px; padding: 0 6px; border-bottom: 1px solid #eef2f7; }
.tc-page .tc-eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #94a3b8; text-decoration: none; padding: 0 4px; }
.tc-page .tc-eyebrow:hover { color: #047857; }
.tc-page .tc-tabs { display: flex; gap: 2px; }
.tc-page .tc-tab { position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 10px; font-size: 13.5px; font-weight: 700; color: #475569; text-decoration: none; white-space: nowrap; transition: color .15s; }
.tc-page .tc-tab:hover { color: #0f172a; }
.tc-page .tc-tab.is-active { color: #047857; }
.tc-page .tc-tab.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: #047857; }
.tc-page .tc-subs { margin-left: auto; display: inline-flex; gap: 2px; padding: 0; background: transparent; }
.tc-page .tc-subs .pill { height: 28px; padding: 0 10px; border: none; background: transparent; box-shadow: none; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: #64748b; text-decoration: none; }
.tc-page .tc-subs .pill:hover { color: #0f172a; background: #f8fafc; }
.tc-page .tc-subs .pill.is-active { color: #0f172a; background: #f1f5f9; }

/* ── Pill row ── */
.tc-page .viewer-pillbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; position: relative; z-index: 20; }
.tc-page .view-ctl { display: contents; }
.tc-page .spacer { flex: 1 1 auto; }
.tc-page .pill {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 999px; color: #0f172a; font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; box-shadow: 0 1px 2px rgba(15,23,42,.03); white-space: nowrap;
}
.tc-page .pill:hover { background: #f8fafc; border-color: #cbd5e1; }
.tc-page .pill-icon { width: 30px; height: 30px; padding: 0; border-radius: 50%; justify-content: center; color: #64748b; font-size: 14px; }
.tc-page .pill-icon:hover { color: #0f172a; }
.tc-page .pill.is-active, .tc-page .pill-icon.is-on, .tc-page .pill[aria-pressed="true"] { background: #047857; border-color: #047857; color: #fff; }
.tc-page .pill-lbl { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; margin-left: 4px; }
.tc-page .pill-group { display: inline-flex; gap: 2px; padding: 2px; background: #f1f5f9; border-radius: 999px; }
.tc-page .pill-group .pill { height: 26px; border-color: transparent; background: transparent; box-shadow: none; font-weight: 600; }
.tc-page .pill-group .pill.is-active { background: #047857; color: #fff; }
.tc-page .pill-group-sm .pill { height: 24px; font-size: 12px; padding: 0 10px; }
.tc-page .pill-wide { width: 100%; justify-content: center; margin-top: 8px; }
.tc-page .pill-options { display: none; }
.tc-page .pill-trend { height: 30px; }

/* ── Custom dropdown (mirrors a hidden <select>) ── */
.tc-page .model-dropdown { position: relative; }
.tc-page .model-dropdown__toggle {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 12px; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 999px; color: #0f172a; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  box-shadow: 0 1px 2px rgba(15,23,42,.03); transition: border-color .15s, box-shadow .15s; white-space: nowrap;
}
.tc-page .model-dropdown__toggle:hover { border-color: #cbd5e1; background: #f8fafc; }
.tc-page .model-dropdown__toggle[aria-expanded="true"] { border-color: #047857; box-shadow: 0 0 0 3px rgba(4,120,87,.12); }
.tc-page .model-dropdown__kicker { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #94a3b8; }
.tc-page .model-dropdown__icon { font-size: 10px; color: #94a3b8; transition: transform .15s; }
.tc-page .model-dropdown__toggle[aria-expanded="true"] .model-dropdown__icon { transform: rotate(180deg); }
.tc-page .model-dropdown__menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px; max-height: 60vh; overflow-y: auto; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 12px 30px rgba(15,23,42,.16); padding: 6px; z-index: 1300;
}
.tc-page .model-dropdown__menu--open { display: block; }
.tc-page .model-dropdown__group-header { padding: 8px 10px 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
.tc-page .model-dropdown__item { display: block; width: 100%; text-align: left; padding: 7px 10px; border: none; background: transparent; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 600; color: #0f172a; cursor: pointer; }
.tc-page .model-dropdown__item:hover { background: #f1f5f9; }
.tc-page .model-dropdown__item--active { background: rgba(4,120,87,.10); color: #047857; }
.tc-page .model-dropdown__item .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.tc-page .model-dropdown__item small { color: #64748b; font-weight: 500; margin-left: 6px; }
.tc-page .speed-dropdown .model-dropdown__toggle { padding: 0 10px 0 12px; }
.tc-page .speed-dropdown .model-dropdown__menu { left: auto; right: 0; min-width: 150px; }

/* ── Playback bar ── */
.tc-page .forecast-bar { flex: 2 1 540px; min-width: 540px; max-width: 860px; margin: 0 24px 0 0; display: flex; align-items: center; gap: 8px; color: #0f172a; }
.tc-page .frame-viewer-playback { display: inline-flex; align-items: center; gap: 1px; background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; padding: 2px; height: 30px; flex-shrink: 0; box-shadow: 0 1px 2px rgba(15,23,42,.03); }
.tc-page .frame-viewer-btn { background: transparent; border: none; border-radius: 999px; color: #047857; width: 26px; height: 24px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: .78rem; line-height: 1; padding: 0; transition: background .15s; }
.tc-page .frame-viewer-btn:hover { background: rgba(4,120,87,.08); }
.tc-page .frame-viewer-btn--play { background: rgba(4,120,87,.1); }
.tc-page .frame-viewer-slider-wrapper { flex: 1 1 0; min-width: 110px; display: flex; align-self: center; }
.tc-page .frame-viewer-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; background: rgba(0,0,0,.1); border-radius: 3px; outline: none; cursor: pointer; border: none; }
.tc-page .frame-viewer-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; background: rgba(255,255,255,.95); border-radius: 50%; cursor: grab; border: 2px solid rgba(4,120,87,.75); box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.tc-page .frame-viewer-slider::-moz-range-thumb { width: 16px; height: 16px; background: rgba(255,255,255,.95); border-radius: 50%; cursor: grab; border: 2px solid rgba(4,120,87,.75); }
.tc-page .frame-viewer-slider.is-trend { background: rgba(4,120,87,.25); }
.tc-page .frame-viewer-meta { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.tc-page .fw-meta { display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; line-height: 1.1; height: 30px; padding: 0 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 999px; }
.tc-page .tb-fh { font-weight: 700; font-size: 12px; color: #0f172a; white-space: nowrap; }
.tc-page .tb-fh .tb-lead { color: #64748b; font-weight: 600; margin-left: 6px; }

/* ── Playback row (own row under the pill row: the slider spans the card and never moves) ── */
.tc-page .viewer-playbar { display: flex; align-items: center; gap: 8px; margin: -2px 0 10px; }
.tc-page .viewer-playbar .forecast-bar { flex: 1 1 auto; min-width: 0; }
.tc-page .fw-meta--fixed { min-width: 128px; }
/* static rail groups: a label instead of a collapsible toggle */
.tc-page .wx-sidebar__group-label { padding: 9px 12px 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #334155; }
.tc-page .wx-sidebar__group.is-static .wx-sidebar__group-items { grid-template-rows: 1fr; }
/* map settings popover (gear pill), top-right of the map pane */
.tc-page .ctl-popover { display: none; position: absolute; top: 12px; right: 12px; width: 262px; z-index: 9; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 12px 30px rgba(15,23,42,.18); padding: 8px 12px 10px; font-size: 12px; color: #0f172a; }
.tc-page .ctl-popover.open { display: block; }
.tc-page .ctl-popover .ctl-head { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #64748b; padding: 2px 0 6px; border-bottom: 1px solid #f1f5f9; margin-bottom: 4px; }
.tc-page .ctl-popover .side-switch { padding: 5px 0; }
.tc-page .ctl-popover .side-label { margin-top: 8px; }
.tc-page .ctl-popover .side-label small { font-weight: 500; text-transform: none; letter-spacing: 0; color: #94a3b8; margin-left: 4px; }
.tc-page .ctl-polar-only { border-top: 1px solid #f1f5f9; margin-top: 4px; }
.tc-page .globe-on .ctl-polar-only { display: none; }

/* ── Body: sidebar + main ── */
.tc-page .viewer-body { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 12px; transition: grid-template-columns .28s cubic-bezier(.4,0,.2,1); }
.tc-page .viewer-body.sidebar-collapsed { grid-template-columns: 40px minmax(0,1fr); }
.tc-page .wx-sidebar { position: relative; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; min-height: 0; }
.tc-page .wx-sidebar__inner { position: absolute; inset: 0; width: 240px; display: flex; flex-direction: column; opacity: 1; visibility: visible; transition: opacity .18s, visibility .18s; }
.tc-page .sidebar-collapsed .wx-sidebar__inner { opacity: 0; visibility: hidden; }
.tc-page .wx-sidebar__expand { display: none; position: absolute; inset: 0; width: 100%; border: none; background: #fff; cursor: pointer; color: #64748b; font: inherit; font-size: 11px; font-weight: 700; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; padding-top: 12px; }
.tc-page .wx-sidebar__expand i { font-size: 15px; }
.tc-page .wx-sidebar__expand-label { writing-mode: vertical-rl; letter-spacing: .06em; text-transform: uppercase; }
.tc-page .sidebar-collapsed .wx-sidebar__expand { display: flex; }
.tc-page .wx-sidebar__head { padding: 8px 10px 8px 12px; border-bottom: 1px solid #e2e8f0; display: flex; flex-direction: column; gap: 3px; flex-shrink: 0; }
.tc-page .wx-sidebar__title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tc-page .vt-title { font-size: 14px; font-weight: 800; color: #0f172a; line-height: 1.25; letter-spacing: -.005em; }
.tc-page .vt-valid { font-size: 12px; font-weight: 700; color: #0f172a; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.tc-page .wx-sidebar__run-age { font-size: 11px; color: #64748b; font-variant-numeric: tabular-nums; line-height: 1.3; }
.tc-page .wx-sidebar__collapse, .tc-page .wx-sidebar__close { flex-shrink: 0; width: 26px; height: 26px; border: 1px solid #e2e8f0; border-radius: 7px; background: #fff; color: #94a3b8; cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.tc-page .wx-sidebar__close { display: none; }
.tc-page .wx-sidebar__collapse:hover { color: #0f172a; border-color: #cbd5e1; }
.tc-page .wx-sidebar__scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.tc-page .wx-sidebar__group { border-bottom: 1px solid #f1f5f9; }
.tc-page .wx-sidebar__group-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border: none; background: transparent; cursor: pointer; font: inherit; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #334155; }
.tc-page .wx-sidebar__chevron { font-size: 10px; color: #94a3b8; transition: transform .2s; }
.tc-page .wx-sidebar__group.is-open .wx-sidebar__chevron { transform: rotate(180deg); }
.tc-page .wx-sidebar__group.is-open .wx-sidebar__group-toggle { color: var(--brand,#047857); }
.tc-page .wx-sidebar__group-items { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .2s; }
.tc-page .wx-sidebar__group.is-open .wx-sidebar__group-items { grid-template-rows: 1fr; }
.tc-page .wx-sidebar__group-items > div { overflow: hidden; }
.tc-page .wx-sidebar__item { display: block; width: 100%; text-align: left; padding: 6px 12px 6px 16px; border: none; border-left: 3px solid transparent; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: #0f172a; cursor: pointer; }
.tc-page .wx-sidebar__item:hover { background: #f8fafc; }
.tc-page .wx-sidebar__item.is-active { background: rgba(4,120,87,.08); border-left-color: #047857; color: #047857; }
.tc-page .wx-sidebar__item small { display: block; font-size: 11px; font-weight: 500; color: #64748b; }
.tc-page .wx-sidebar__block { padding: 4px 12px 10px; }
/* segmented row of sidebar items (e.g. the model picker) */
.tc-page .tc-seg { display: flex; gap: 4px; padding: 4px 12px 10px; }
.tc-page .tc-seg .wx-sidebar__item { flex: 1 1 0; text-align: center; padding: 5px 6px; border: 1px solid #e2e8f0; border-radius: 999px; font-size: 12.5px; }
.tc-page .tc-seg .wx-sidebar__item:hover { background: #f8fafc; border-color: #cbd5e1; }
.tc-page .tc-seg .wx-sidebar__item.is-active { background: #047857; border-color: #047857; color: #fff; }
.tc-page .tc-seg .wx-sidebar__item:disabled { opacity: .45; cursor: default; }
.tc-page .side-block { padding: 4px 12px 10px; }
.tc-page .side-label { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #64748b; margin: 10px 0 6px; }
.tc-page .side-note { font-size: 11px; color: #64748b; line-height: 1.4; margin-top: 6px; }
.tc-page .side-btn-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tc-page .side-btn-row .pill { height: 28px; font-size: 12px; }
.tc-page .side-select { width: 100%; font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; color: #0f172a; }
.tc-page .link-btn { border: none; background: none; color: #047857; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; padding: 0; }
.tc-page .link-btn:hover { text-decoration: underline; }
.tc-page .placeholder { color: #64748b; font-size: 12px; padding: 6px 0; }

/* toggle switch rows */
.tc-page .side-switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 13px; font-weight: 600; color: #0f172a; cursor: pointer; }
.tc-page .side-switch small { display: block; font-size: 11px; font-weight: 500; color: #64748b; }
.tc-page .side-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.tc-page .switch-ui { position: relative; width: 34px; height: 20px; border-radius: 999px; background: #cbd5e1; flex-shrink: 0; transition: background .15s; }
.tc-page .switch-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.tc-page .side-switch input:checked + .switch-ui { background: #047857; }
.tc-page .side-switch input:checked + .switch-ui::after { transform: translateX(14px); }
.tc-page .side-switch input:focus-visible + .switch-ui { outline: 2px solid #047857; outline-offset: 2px; }
.tc-page .side-switch.is-off { opacity: .55; }

/* ── Main column + legend ── */
.tc-page .viewer-main { min-width: 0; }
.tc-page .legend-horizontal { display: grid; grid-template-columns: max-content 1fr; column-gap: 14px; row-gap: 2px; align-items: center; margin-top: 8px; padding: 6px 12px 5px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; color: #0f172a; }
.tc-page .legend-label { font-size: 12px; font-weight: 700; white-space: nowrap; }
.tc-page .legend-bar-wrap { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tc-page .legend-swatches { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: 14px; border-radius: 4px; overflow: hidden; border: 1px solid #cbd5e1; }
.tc-page .legend-swatches span { display: block; }
.tc-page .legend-ticks { position: relative; height: 13px; font-variant-numeric: tabular-nums; font-size: 11px; font-weight: 600; color: #334155; }
.tc-page .legend-ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.tc-page .legend-desc { grid-column: 1 / span 2; padding-top: 5px; border-top: 1px solid #e2e8f0; font-size: 11px; color: #64748b; line-height: 1.3; }

/* ── Foot: one-line explainer + data credit ── */
.tc-page .tc-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 4px 18px; margin-top: 10px; padding: 8px 2px 0; border-top: 1px solid #eef2f7; }
.tc-page .tc-explainer { margin: 0; font-size: 12.5px; line-height: 1.45; color: #475569; max-width: 78ch; }
.tc-page .tc-credit { margin: 0; font-size: 11px; color: #94a3b8; white-space: nowrap; }

/* ── Toast + modal shell ── */
.tc-page .toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: #0f172a; color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; z-index: 99; opacity: 0; transition: opacity .2s; pointer-events: none; }
.tc-page .toast.show { opacity: 1; }
.tc-modal { position: fixed; inset: 0; z-index: 10050; background: rgba(15,23,42,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.tc-modal[hidden] { display: none; }
.tc-modal-box { background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(15,23,42,.3); width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 14px 18px 18px; font: 14px/1.5 Inter, system-ui, sans-serif; color: #0f172a; }
.tc-modal-wide { width: min(1000px, 100%); }
.tc-modal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tc-modal-head h2 { flex: 1; margin: 0; font-size: 17px; font-weight: 800; }
.tc-modal-head .pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.tc-modal-close { border: none; background: #f1f5f9; color: #334155; width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; }

/* ── Mobile ── */
@media (max-width: 900px) {
  .viewer-page { max-width: 100%; padding: 0 0 20px; }
  .tc-page .viewer-card { padding: 6px 10px 12px; border-radius: 12px; }
  .tc-page .tc-band { margin: 0 -10px 8px; padding: 0 6px; gap: 0 8px; }
  .tc-page .tc-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tc-page .tc-tabs::-webkit-scrollbar { display: none; }
  .tc-page .tc-eyebrow { display: none; }
  .tc-page .tc-tab { height: 38px; padding: 0 8px; font-size: 13px; }
  .tc-page .tc-subs { flex-basis: 100%; margin: -2px 0 6px; }
  .tc-page .viewer-body { grid-template-columns: minmax(0,1fr); }
  .tc-page .forecast-bar { order: 10; flex-basis: 100%; min-width: 0; flex-wrap: wrap; gap: 8px; }
  .tc-page .fw-meta--fixed { min-width: 0; }
  .tc-page .ctl-popover { width: calc(100% - 24px); }
  .tc-page .frame-viewer-slider-wrapper { flex: 1 1 120px; min-width: 110px; }
  .tc-page .frame-viewer-meta { flex: 1 1 100%; justify-content: space-between; }
  .tc-page .fw-meta { flex: 1 1 auto; min-width: 0; padding: 0 8px; }
  .tc-page .pill-static { display: none; }
  .tc-page .pill-options { display: inline-flex; }
  .tc-page .pill-trend { display: none; }
  .tc-page .legend-horizontal { grid-template-columns: 1fr; }
  .tc-page .legend-desc { grid-column: 1; }
  .tc-page .tc-foot { flex-direction: column; align-items: flex-start; }
  .tc-page .tc-credit { white-space: normal; }
  /* sidebars with an absolutely-positioned inner (strat, soil) become a sheet over the view, opened by the Options pill;
     flowing sidebars (ENSO, MJO) simply stack under the map */
  .tc-page .wx-sidebar--sheet { display: none; position: fixed; inset: auto 0 0 0; height: 78vh; z-index: 10010; border-radius: 16px 16px 0 0; box-shadow: 0 -12px 40px rgba(15,23,42,.25); }
  .tc-page .wx-sidebar--sheet.is-open { display: block; }
  .tc-page .wx-sidebar__inner { width: 100%; }
  .tc-page .wx-sidebar__collapse { display: none; }
  .tc-page .wx-sidebar__close { display: flex; }
  .tc-page .sheet-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.35); z-index: 10005; }
}
@media (prefers-reduced-motion: reduce) { .tc-page .viewer-body, .tc-page .wx-sidebar__inner, .tc-page .wx-sidebar__group-items { transition: none; } }
