:root {
  color-scheme: light;
  --cp-bg: #f7f4ef;
  --cp-bg-elevated: #fcfbf8;
  --cp-surface: #ffffff;
  --cp-surface-soft: #f5f5f5;
  --cp-border: #dedede;
  --cp-border-strong: #919191;
  --cp-text: #242424;
  --cp-text-muted: #5c5c5c;
  --cp-text-soft: #6f6f6f;
  --cp-accent: #b11f4b;
  --cp-accent-hover: #9a1a41;
  --cp-accent-soft: rgba(177, 31, 75, 0.08);
  --cp-accent-fg: #ffffff;
  --cp-success: #16a34a;
  --cp-danger: #dc2626;
  --cp-warning: #f59e0b;
  --cp-link: #0078d4;
  --cp-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
  --cp-overlay: rgba(255, 255, 255, 0.8);
  --cp-panel: rgba(255, 255, 255, 0.86);
  --cp-panel-strong: rgba(255, 255, 255, 0.96);
  --cp-sheen: rgba(255, 255, 255, 0.55);
  --cp-highlight: rgba(177, 31, 75, 0.12);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --cp-bg: #3d3b3a;
  --cp-bg-elevated: #343231;
  --cp-surface: #292929;
  --cp-surface-soft: #2e2e2e;
  --cp-border: #474747;
  --cp-border-strong: #5f5f5f;
  --cp-text: #dedede;
  --cp-text-muted: #919191;
  --cp-text-soft: #b0b0b0;
  --cp-accent: #fd8ea1;
  --cp-accent-hover: #fb7b91;
  --cp-accent-soft: rgba(253, 142, 161, 0.14);
  --cp-accent-fg: #1a1a1a;
  --cp-success: #4ade80;
  --cp-danger: #f87171;
  --cp-warning: #fbbf24;
  --cp-link: #4da6ff;
  --cp-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  --cp-overlay: rgba(41, 41, 41, 0.88);
  --cp-panel: rgba(41, 41, 41, 0.72);
  --cp-panel-strong: rgba(41, 41, 41, 0.96);
  --cp-sheen: rgba(255, 255, 255, 0.04);
  --cp-highlight: rgba(253, 142, 161, 0.12);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cp-bg); color: var(--cp-text); font: 16px/1.55 "Segoe UI", Aptos, Calibri, -apple-system, BlinkMacSystemFont, sans-serif; }
main { max-width: 880px; margin: 0 auto; padding: 24px 16px 48px; }
header, .heading, .actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
header, .muted { color: var(--cp-text-muted); font-size: 0.9rem; }
h1 { margin-bottom: 8px; line-height: 1.2; }
h2 { font-size: 1.15rem; margin-top: 0; }
section { background: var(--cp-surface); border: 1px solid var(--cp-border); border-radius: 16px; padding: 24px; margin-top: 20px; }
a { color: var(--cp-link); }
form { display: flex; gap: 16px; align-items: end; flex-wrap: wrap; }
label { display: grid; gap: 4px; }
input, textarea, button { font: inherit; padding: 10px 12px; border-radius: 0.625rem; }
input, textarea { border: 1px solid var(--cp-border-strong); color: var(--cp-text); background: var(--cp-bg-elevated); max-width: 100%; }
textarea { width: 100%; font-family: Consolas, "Courier New", Courier, monospace; }
button { cursor: pointer; border: 1px solid var(--cp-accent); background: var(--cp-accent); color: var(--cp-accent-fg); }
button:hover { background: var(--cp-accent-hover); }
button.secondary { background: var(--cp-surface); border-color: var(--cp-border-strong); color: var(--cp-text); }
button.danger { background: var(--cp-surface); color: var(--cp-danger); border-color: var(--cp-danger); }
button:disabled { opacity: 0.6; cursor: wait; }
:focus-visible { outline: 3px solid var(--cp-accent); outline-offset: 3px; }
.notice { padding: 12px; border-left: 4px solid var(--cp-warning); background: var(--cp-surface-soft); }
#message { min-height: 24px; color: var(--cp-success); }
#message.error { color: var(--cp-danger); }
.invitation { padding: 16px 0; border-top: 1px solid var(--cp-border); }
.invitation h3 { margin: 0 0 4px; }
.invitation p { margin: 4px 0 12px; }
.actions { justify-content: start; }
#invitation { margin-top: 16px; }
.guest { max-width: 1400px; }
#remote { margin-top: 16px; border: 1px solid var(--cp-border); }
#remote iframe { width: 100%; height: 80vh; min-height: 480px; border: none; display: block; }
li { margin: 8px 0; }
@media (max-width: 540px) { section { padding: 16px; } form, label { width: 100%; } }
