/*
 * The standalone page wears Loopin's clothes: the same --loopin-* values the
 * product sets (loop-in src/product/product.css, 2026-09-28), light and dark,
 * so the module looks the same here as inside Loopin.
 */
:root {
  --loopin-bg: #fff;
  --loopin-surface: #f5f5f5;
  --loopin-fg: #000;
  --loopin-muted: #65625e;
  --loopin-line: #dbdbdb;
  --loopin-accent: #1e2a5a;
  --loopin-accent-fg: #fff;
  --loopin-live: #25804a;
  --loopin-danger: #ac3745;
  --loopin-radius: 14px;
  --loopin-radius-sm: 8px;
  --loopin-font: Archivo, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --loopin-font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --loopin-soft: #e8e8e8;
  --loopin-hover: #e8e8e8;
  --loopin-control-height: 30px;
  --loopin-control-radius: 8px;
  --loopin-control-font: 12px;
  --loopin-segment-bg: #f5f5f5;
  --loopin-segment-active: #fff;
  --loopin-shadow: 0 8px 30px #0000001a;
  --loopin-sidebar: #f4f5f7;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --loopin-bg: #000;
    --loopin-surface: #0a0a0a;
    --loopin-fg: #fff;
    --loopin-muted: #9a9da1;
    --loopin-line: #242424;
    --loopin-accent: #ccd6f7;
    --loopin-accent-fg: #1e2a5a;
    --loopin-live: #4ade80;
    --loopin-soft: #171717;
    --loopin-hover: #171717;
    --loopin-segment-bg: #0a0a0a;
    --loopin-segment-active: #000;
    --loopin-sidebar: #0a0a0a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--loopin-bg);
  color: var(--loopin-fg);
  font-family: var(--loopin-font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.shell { display: flex; flex-direction: column; height: 100%; }
.shell-bar { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px 0 20px; border-bottom: 1px solid var(--loopin-line); font-size: 13px; }
.shell-bar strong { font-weight: 600; }
.shell-grow { flex: 1; }
.shell-who { color: var(--loopin-muted); font-size: 12px; }
.shell-app { flex: 1; min-height: 0; }

.shell-button, .shell-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid var(--loopin-accent);
  border-radius: 8px;
  background: var(--loopin-accent);
  color: var(--loopin-accent-fg);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.shell-quiet { border-color: transparent; background: transparent; color: var(--loopin-muted); }
.shell-quiet:hover { background: var(--loopin-hover); color: var(--loopin-fg); }

.shell-signin { display: grid; place-content: center; justify-items: center; gap: 10px; height: 100%; padding: 24px; text-align: center; }
.shell-signin h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.025em; }
.shell-signin p { margin: 0 0 12px; color: var(--loopin-muted); }

.shell-confirm { min-width: 300px; padding: 18px 18px 14px; border: 1px solid var(--loopin-line); border-radius: 14px; background: var(--loopin-bg); color: var(--loopin-fg); box-shadow: 0 24px 80px #0000002e; font: inherit; }
.shell-confirm::backdrop { background: #10182a40; backdrop-filter: blur(3px); }
.shell-confirm p { margin: 0 0 16px; font-size: 14px; font-weight: 500; }
.shell-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; }

.shell-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  z-index: 100;
  transform: translateX(-50%);
  max-width: min(520px, calc(100vw - 32px));
  padding: 9px 14px;
  border: 1px solid var(--loopin-line);
  border-radius: 10px;
  background: var(--loopin-bg);
  box-shadow: var(--loopin-shadow);
  font-size: 13px;
}
.shell-toast.is-error { border-color: color-mix(in srgb, var(--loopin-danger) 45%, var(--loopin-bg)); }
