/* Group TV's two web looks (grouptv guest.html), by the phone's own light or dark setting. Light after
   Invision Board 1.x: grey-blue page, white cards under a pale blue heading bar, blue buttons. Dark after
   the Natural Selection forums: navy, light blue headings, orange buttons. */
:root { color-scheme: light dark;
  --bg: #f4f6fa; --card: #ffffff; --ink: #111827; --muted: #5b6475; --line: #c2cfdf; --field: #ffffff;
  --accent: #2563eb; --accent-ink: #ffffff; --ok: #16a34a;
  --head: linear-gradient(#e6edf8, #cfdcee); --head-ink: #1e3a66;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1520; --card: #13202e; --ink: #e6eef5; --muted: #8da4ba; --line: #2a3e54; --field: #0f1b27;
          --accent: #f7941d; --accent-ink: #1a0e00; --ok: #4cc38a;
          --head: linear-gradient(#1e3550, #162a40); --head-ink: #8cc4ec; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
       font: 17px/1.45 -apple-system, system-ui, "Segoe UI", sans-serif; }
main { max-width: 560px; margin: 0 auto; padding: 16px 16px 64px; }
[hidden] { display: none !important; }
h1 { font-size: 1.5rem; margin: 8px 0 4px; }
h2 { font-size: 1.1rem; margin: 0 0 10px; }
.sub { color: var(--muted); margin: 0 0 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 0 0 14px; }
.card > h2:first-child { margin: -16px -16px 14px; padding: 12px 16px; background: var(--head); color: var(--head-ink);
                         border-bottom: 1px solid var(--line); border-radius: 13px 13px 0 0; }
label { display: block; font-size: .9rem; color: var(--muted); margin: 10px 0 4px; }
input, select { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
                background: var(--field); color: var(--ink); }
button { font: inherit; font-weight: 600; padding: 11px 16px; border: 0; border-radius: 10px; margin: 10px 8px 0 0;
         background: var(--accent); color: var(--accent-ink); cursor: pointer; }
button.quiet { background: transparent; color: var(--accent); border: 1px solid var(--line); }
button:disabled { opacity: .45; }
.row { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.pass { text-align: center; }
.pass img { width: 220px; height: 220px; background: #fff; border-radius: 12px; padding: 8px; }
.code { font: 600 1.1rem ui-monospace, Menlo, monospace; letter-spacing: .12em; margin-top: 6px; }
.muted { color: var(--muted); font-size: .9rem; }
.switch { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.switch:first-of-type { border-top: 0; }
.flash { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 528px; margin: 0 auto; padding: 12px 16px;
         border-radius: 12px; background: var(--ink); color: var(--bg); opacity: 0; transition: opacity .2s; pointer-events: none; }
.flash.show { opacity: 1; }
video { width: 100%; border-radius: 12px; background: #000; }
/* Pages (docs/design.md, Pages): the menu is tiles, each opening a page with Back at its top. Below 600 px
   one column; 600 to 899 px (a tablet held upright) two columns of tiles and a wider page; 900 px and up
   the menu is also a sidebar on the left, once there is a menu, and Back goes. */
.menu-h { font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 2px 10px; }
.tiles { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0 0 14px; }
.tile { display: block; width: 100%; min-height: 76px; margin: 0; padding: 14px 18px; text-align: left; font-weight: 400;
        border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); }
.tile b { display: block; font-size: 1.2rem; line-height: 1.25; color: var(--head-ink); }
.tile > span { display: block; font-size: .95rem; color: var(--muted); margin-top: 3px; }
.badge { display: inline-block; margin-left: 8px; padding: 1px 10px; border-radius: 999px; background: var(--accent);
         color: var(--accent-ink); font-size: .8rem; font-weight: 700; font-style: normal; vertical-align: middle; }
.back { display: block; width: 100%; margin: 0 0 14px; padding: 12px 16px; text-align: left;
        background: var(--card); color: var(--accent); border: 1px solid var(--line); }
.back::before { content: ""; display: inline-block; width: 9px; height: 9px; margin: 0 12px 2px 4px;
                border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.side { display: none; }
@media (min-width: 600px) {
  main { max-width: 760px; padding: 20px 24px 64px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .flash { max-width: 712px; }
}
@media (min-width: 900px) {
  .with-side .side { display: block; position: fixed; left: 0; top: 0; bottom: 0; width: 260px; overflow-y: auto;
          padding: calc(16px + env(safe-area-inset-top, 0px)) 12px 32px; background: var(--card); border-right: 1px solid var(--line); }
  .with-side .side h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 12px 6px; }
  .with-side .side button { display: block; width: 100%; margin: 0 0 2px; padding: 10px 12px; text-align: left; border-radius: 10px;
                 background: none; color: var(--ink); font-weight: 600; }
  .with-side .side button:hover { background: var(--bg); }
  .with-side .side button.on { background: var(--bg); color: var(--accent); }
  .with-side main { max-width: 800px; margin: 0 0 0 calc(260px + max(0px, (100vw - 1060px) / 2)); padding: 24px 40px 64px; }
  .with-side .back { display: none; }
  .with-side .flash { left: 276px; }
}
