.bottom-nav { grid-template-columns: repeat(3, 1fr) !important; }
.text-link, .text-button, .section-copy, .item-actions button, .intent-tab, .action-menu button, .action-menu a { font: inherit; }
.text-link, .text-button { border: 0; background: transparent; color: var(--navy-700); font-weight: 800; padding: 7px 0; cursor: pointer; }
.text-link { margin-top: 6px; font-size: 12px; }
.text-button { margin: -4px 0 8px; }

.intent-grid { display: grid; gap: 10px; margin: 14px 0 22px; }
.intent-card { min-height: 72px; display: grid; grid-template-columns: 86px 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); text-align: left; box-shadow: 0 6px 16px rgba(12,37,73,.05); }
.intent-card > span:first-child { color: var(--gold-600); font-size: 12px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.intent-card strong { font-size: 13px; line-height: 1.4; }
.intent-card > span:last-child { font-size: 24px; color: var(--muted); }
.intent-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 12px 0 16px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: #eff3f7; }
.intent-tab { min-height: 42px; border: 0; border-radius: 10px; background: transparent; color: #5c6b7e; font-weight: 800; }
.intent-tab.is-active { color: #fff; background: var(--navy-900); }

.overview-block { margin-top: 4px; }
.counter-grid.adaptive { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.counter-grid.adaptive .counter-card span { white-space: normal; }
.section-title > div { display: flex; align-items: baseline; gap: 8px; }
.section-copy { min-height: 34px; border: 0; border-radius: 9px; padding: 0 9px; background: #edf4fb; color: var(--navy-700); font-size: 11px; font-weight: 800; }

.knowledge-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; background: var(--surface); box-shadow: 0 5px 14px rgba(12,37,73,.04); }
.knowledge-copy { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.knowledge-index { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px; background: var(--blue-100); color: #2c6b9f; font-size: 12px; font-weight: 900; }
.knowledge-copy strong { display: block; font-size: 15px; line-height: 1.35; }
.knowledge-copy p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.item-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.item-actions button { min-height: 34px; border: 0; border-radius: 9px; padding: 0 10px; background: #f0f4f8; color: #46617f; font-size: 11px; font-weight: 800; }
.item-actions .watch-action { background: #fff4da; color: #8d6517; }
.step-items { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.step-items > li { padding: 11px 0; border-bottom: 1px solid #edf1f5; }
.step-line { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.step-line > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--navy-900); color: #fff; font-size: 11px; font-weight: 900; }
.step-line p { margin: 2px 0 0; font-size: 13px; line-height: 1.48; }
.status-actions, .sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.stage-message p { margin: 5px 0 0; }

.sheet[hidden] { display: none !important; }
.sheet { position: fixed; inset: 0; z-index: 80; display: grid; align-items: end; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(5,18,40,.52); backdrop-filter: blur(2px); }
.sheet-panel { position: relative; z-index: 1; width: min(100%, 760px); max-height: 92dvh; margin: 0 auto; overflow: auto; padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: var(--paper); box-shadow: 0 -18px 48px rgba(5,18,40,.22); }
.sheet-tall { height: 90dvh; }
.sheet-player { max-height: 94dvh; }
.sheet-actions-panel { max-height: 55dvh; }
.sheet-handle { width: 42px; height: 5px; margin: 2px auto 10px; border-radius: 99px; background: #c7d0db; }
.sheet-header { position: sticky; top: -8px; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0 12px; background: rgba(255,253,248,.96); backdrop-filter: blur(12px); }
.sheet-header h2 { margin: 2px 0 0; font-size: 19px; line-height: 1.2; }
.sheet-kicker { color: var(--gold-600); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.sheet-close { width: 42px; height: 42px; border: 0; border-radius: 999px; background: #edf2f7; color: var(--navy-900); font-size: 24px; }
body.sheet-open { overflow: hidden; }
.source-context { margin: 0 0 12px; padding: 12px; border-radius: 12px; background: #fff5dc; border: 1px solid #ead7a7; }
.source-context span { display: block; color: var(--gold-600); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.source-context strong { display: block; margin-top: 3px; font-size: 13px; }
.transcript-row.is-focus { background: #fff1cf; box-shadow: inset 3px 0 var(--gold-500); }
.player-wrap { overflow: hidden; aspect-ratio: 16/9; border-radius: 14px; background: #000; }
.player-wrap iframe { width: 100%; height: 100%; border: 0; }
.player-context { display: grid; gap: 9px; margin-top: 14px; }
.player-context strong { white-space: pre-line; line-height: 1.45; }
.player-context p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.action-menu { display: grid; gap: 8px; }
.action-menu button, .action-menu a { min-height: 48px; display: flex; align-items: center; width: 100%; padding: 0 14px; border: 0; border-radius: 12px; background: #f2f5f8; color: var(--navy-800); font-weight: 800; text-decoration: none; }

@media (min-width: 620px) {
  .counter-grid.adaptive { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .intent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intent-card { grid-template-columns: 1fr auto; }
  .intent-card > span:first-child { grid-column: 1 / -1; }
}
