/* Small self-contained widgets used by the cross-context demos. Colours are
   fixed (not theme variables) so a widget looks the same wherever its pixels
   end up. */
.lw { font: 15px/1.4 system-ui, sans-serif; padding: 14px 16px; border-radius: 12px; border: 1px solid; }
.lw h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
.lw button, .lw input, .lw select { font: inherit; }
.lw button { padding: 5px 12px; border-radius: 7px; border: 1px solid currentColor; background: #fff; color: inherit; cursor: pointer; }
.lw button:active { transform: translateY(1px); }
.lw :focus-visible { outline: 2px solid #1a56db; outline-offset: 2px; }

.lw-timer { background: #fff1e6; color: #3b1d06; border-color: #f0c9a6; }
.lw-timer output { display: block; font: 700 44px/1 ui-monospace, Menlo, monospace; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.lw-timer[data-running] output { color: #b3340c; }

.lw-notes { background: #eef4ff; color: #0f2347; border-color: #bccdf0; margin: 0; }
.lw-notes input { width: 100%; box-sizing: border-box; padding: 5px 8px; border: 1px solid #9fb4de; border-radius: 6px; background: #fff; color: inherit; }
.lw-notes ul { margin: 8px 0 0; padding-left: 18px; min-height: 66px; }
.lw-notes li { margin: 2px 0; }

.lw-mixer { background: #f0f7ec; color: #183318; border-color: #bfdcb2; display: grid; gap: 8px; }
.lw-mixer label { display: flex; align-items: center; gap: 8px; }
.lw-mixer input[type=range] { flex: 1; min-width: 80px; }
.lw-mixer output { font: 600 14px ui-monospace, monospace; min-width: 3ch; text-align: right; }
.lw-mixer select { padding: 3px 6px; border-radius: 6px; }
.lw-bars { display: flex; gap: 3px; align-items: flex-end; height: 26px; }
.lw-bars i { flex: 1; background: #3f8f3a; border-radius: 2px 2px 0 0; min-height: 2px; }
.lw-mixer[data-muted] .lw-bars i { background: #9aa89a; }
