/* Demonstração ao vivo: o mesmo painel flutuante da extensão (vidro escuro, aba de status),
   aberto por cima da página inicial. Fica sempre escuro, como na reunião. */
.demo-panel {
  --a: .34; --a-hover: .46; --blur: 3px; --stock: rgba(14, 13, 20, var(--a)); --line: rgba(255, 255, 255, .14);
  --ink: #ffffff; --ink-2: #eeedf5; --muted: #cfcde0; --accent: #5b3df5; --accent-hover: #4a2ce0; --rec: #ff6b70; --danger: #c42f45;
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 400px; max-width: calc(100vw - 24px); margin-top: 32px;
  background: var(--stock); -webkit-backdrop-filter: blur(var(--blur)) saturate(1.1); backdrop-filter: blur(var(--blur)) saturate(1.1);
  color: var(--ink); border: 1px solid var(--line); border-radius: 0 20px 20px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -16px rgba(0, 0, 0, .55);
  font: 14.5px/1.5 Onest, system-ui, sans-serif; text-shadow: 0 1px 2px rgba(0, 0, 0, .95), 0 0 6px rgba(0, 0, 0, .5);
  transform-origin: bottom right; animation: demo-in .38s cubic-bezier(.2, .9, .2, 1);
}
.demo-panel[hidden] { display: none; }
.demo-panel * { box-sizing: border-box; }
.demo-panel[data-glass="1"] { --a: .6; --a-hover: .72; --blur: 10px; }
.demo-panel[data-glass="2"] { --a: .92; --a-hover: .95; --blur: 16px; }
.demo-panel:hover, .demo-panel:focus-within { --stock: rgba(14, 13, 20, var(--a-hover)); }
.demo-resize { position: absolute; right: 2px; bottom: 2px; width: 20px; height: 20px; cursor: nwse-resize; touch-action: none; z-index: 2; border-radius: 0 0 18px 0; opacity: .7; background: linear-gradient(135deg, transparent 0 55%, rgba(255, 255, 255, .5) 55% 60%, transparent 60% 70%, rgba(255, 255, 255, .5) 70% 75%, transparent 75%); }
.demo-resize:hover { opacity: 1; }
.demo-dragbar { height: 16px; margin: 0; cursor: grab; touch-action: none; position: relative; }
.demo-dragbar::after { content: ""; position: absolute; left: 50%; top: 5px; width: 40px; height: 4px; margin-left: -20px; border-radius: 99px; background: rgba(255, 255, 255, .3); }
.demo-grip { width: 8px; height: 14px; flex: none; background: radial-gradient(circle, rgba(255, 255, 255, .55) 1.2px, transparent 1.5px) 0 0 / 4px 4px; }
@keyframes demo-in { from { opacity: 0; transform: translateY(16px) scale(.97); filter: blur(4px); } }
.demo-head { position: absolute; left: -1px; top: 0; transform: translateY(-100%); height: 32px; min-width: 250px; display: flex; align-items: center; gap: 8px; padding: 0 6px 0 10px; background: var(--stock); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; cursor: grab; touch-action: none; user-select: none; }
.demo-head:active { cursor: grabbing; }
.demo-head img { width: 16px; height: 16px; }
.demo-head b { font-size: 12.5px; }
.demo-timer { margin-right: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--rec); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.demo-timer:not(:empty)::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: demo-pulse 1.4s ease-in-out infinite; }
.demo-tag { font-size: 11px; font-weight: 600; color: #c9bfff; padding: 1px 7px; border-radius: 6px; background: rgba(91, 61, 245, .35); }
.demo-x { margin-left: 4px; width: 24px; height: 22px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.demo-x:hover { color: var(--ink); background: rgba(255, 255, 255, .1); }
.demo-x svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.demo-body { padding: 2px 14px 14px; }
.demo-body p { margin: 0 0 12px; color: var(--ink-2); }
.demo-body .muted { color: var(--muted); font-size: 12.5px; }
.demo-btn { width: 100%; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .08); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-shadow: none; }
.demo-btn:hover { background: rgba(255, 255, 255, .14); }
.demo-btn:focus-visible, .demo-tab:focus-visible, .demo-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.demo-btn:disabled { opacity: .55; cursor: default; }
.demo-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.demo-btn.primary:hover { background: var(--accent-hover); }
.demo-btn.stop { background: var(--danger); border-color: var(--danger); color: #fff; }
.demo-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.demo-row { display: grid; gap: 8px; }
.demo-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; margin-bottom: 10px; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.demo-tab { height: 28px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; text-shadow: none; }
.demo-tab[aria-selected="true"] { background: rgba(255, 255, 255, .13); color: var(--ink); }
.demo-lines { max-height: var(--demo-h, 250px); min-height: 110px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .22) transparent; margin-bottom: 12px; }
.demo-lines p { margin: 0 0 9px; color: var(--ink-2); font-size: 15px; }
.demo-lines b { display: block; color: var(--ink); font-size: 12.5px; font-weight: 600; }
.demo-lines .live { color: var(--ink); font-style: italic; }
.demo-lines .wait { color: var(--muted); }
.demo-prompt { min-height: 96px; max-height: var(--demo-h, 250px); overflow-y: auto; padding: 10px 12px; margin-bottom: 10px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .08); font-size: 15.5px; line-height: 1.45; font-weight: 500; color: #fff; white-space: pre-wrap; }
.demo-prompt.hint { color: var(--muted); font-size: 13px; font-weight: 400; }
.demo-input { width: 100%; height: 36px; padding: 0 10px; margin-bottom: 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); color: var(--ink); font: inherit; font-size: 13px; outline: none; text-shadow: none; }
.demo-input::placeholder { color: var(--muted); }
.demo-input:focus { border-color: var(--accent); }
.demo-notes { max-height: 300px; overflow-y: auto; margin-bottom: 12px; padding-right: 4px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .22) transparent; color: var(--ink-2); }
.demo-notes h4 { margin: 12px 0 4px; font-size: 13px; color: var(--ink); }
.demo-notes h4:first-child { margin-top: 0; }
.demo-notes ul { margin: 0; padding-left: 18px; }
.demo-notes li { margin: 2px 0; }
.demo-notes p { margin: 0 0 6px; }
.demo-err { color: #ff8a98; font-size: 13px; }
.demo-spin { display: inline-block; width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: demo-spin .8s linear infinite; }
@keyframes demo-spin { to { transform: rotate(360deg); } }
@keyframes demo-pulse { 50% { opacity: .3; } }
@media (max-width: 520px) { .demo-panel { right: 12px; bottom: 12px; } }
@media (prefers-reduced-motion: reduce) { .demo-panel, .demo-panel * { animation: none !important; } }
.demo-notes li.todo { list-style: none; margin-left: -18px; padding-left: 22px; position: relative; }
.demo-notes li.todo::before { content: ""; position: absolute; left: 0; top: 4px; width: 13px; height: 13px; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 4px; }
