/* Persistent page actions, independent of the informational / legal footer. */
html.lv-has-context-actions { --lv-actionbar-height: 104px; scroll-padding-bottom: calc(var(--lv-actionbar-height) + 24px); }
html.lv-has-context-actions body { padding-bottom: var(--lv-actionbar-height); }
.lv-context-actions { position: fixed; inset: auto 0 0; z-index: 90; background: #081827; color: #fff; border-top: 1px solid #7385bd; box-shadow: 0 -4px 20px #08182720; padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); font-family: Inter, Arial, sans-serif; }
.lv-context-actions *, .lv-context-actions *::before, .lv-context-actions *::after { box-sizing: border-box; }
.lv-context-actions-inner { width: min(1240px, 100%); margin-inline: auto; display: grid; grid-template-columns: minmax(130px, 1fr) auto minmax(100px, auto); align-items: center; gap: 16px; }
.lv-context-actions .lv-action-context { color: #e4e9f8; font-size: 12px; line-height: 1.45; margin: 0; font-weight: 650; }
.lv-action-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lv-context-actions .lv-action-button { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; text-align: center; border: 1px solid #aebbdc; border-radius: 7px; background: transparent; color: #fff; padding: 9px 15px; font: 650 12px/1.4 Inter, Arial, sans-serif; text-decoration: none; cursor: pointer; overflow-wrap: anywhere; }
.lv-context-actions .lv-action-button:hover { background: #243653; }
.lv-context-actions .lv-action-primary { background: #475ca7; border-color: #9cadde; }
.lv-context-actions .lv-action-primary:hover { background: #556dbd; }
.lv-context-actions .lv-action-button:disabled { opacity: .5; cursor: default; }
.lv-context-actions .lv-action-account { color: #fff; min-height: 44px; display: flex; align-items: center; justify-content: end; font-size: 12px; line-height: 1.4; text-underline-offset: 3px; }
.lv-context-actions .lv-action-account[data-state=connected]::before { content: ''; width: 7px; height: 7px; border-radius: 100%; background: #b8c6f1; flex: 0 0 auto; margin-right: 7px; }
.lv-context-actions :is(a, button):focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 5px #475ca7; }
.lv-action-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Only competing fixed CTA elements; keep planner, information and legal links intact. */
.lv-has-context-actions :is(.sticky-cta, .mobile-cta, [data-lv-actionbar-duplicate]) { display: none !important; }
@media (max-width: 1000px) {
  .lv-context-actions-inner { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .lv-action-controls { grid-column: 1 / -1; grid-row: 2; }
  .lv-context-actions .lv-action-account { min-height: 24px; }
  .lv-context-actions .lv-action-button { flex: 1; }
}
@media (max-width: 480px) {
  .lv-context-actions { padding-top: 8px; padding-inline: max(10px, env(safe-area-inset-left)); }
  .lv-context-actions .lv-action-context, .lv-context-actions .lv-action-account { font-size: 10px; }
  .lv-action-controls { gap: 6px; }
  .lv-context-actions .lv-action-button { font-size: 11px; padding: 7px 8px; min-width: 0; flex-basis: calc(50% - 6px); }
}
@media (prefers-reduced-motion: reduce) { .lv-context-actions * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .lv-context-actions { display: none !important; } html.lv-has-context-actions body { padding-bottom: 0; } }

.lv-context-actions .lv-action-demo { flex: 0 1 auto; max-width: 100%; border: 1px solid #9cadde; border-radius: 4px; background: #475ca7; color: #fff; padding: 3px 7px; font: 700 10px/1.5 Inter, Arial, sans-serif; letter-spacing: .025em; overflow-wrap: anywhere; }

.lv-action-details { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 5px 16px; min-width: 0; color: #e4e9f8; font-size: 11px; line-height: 1.5; }
.lv-action-clock { font-variant-numeric: tabular-nums; }
.lv-action-details > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.lv-context-actions .lv-action-next-task { color: #fff; text-underline-offset: 3px; }
@media (max-width: 480px) { .lv-action-details { font-size: 10px; gap: 4px 12px; } .lv-action-next-task { flex-basis: 100%; } }
