@font-face {
  font-family: Inter;
  src: url("/font.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --background: #14151b;
  --sidebar: #1b1d25;
  --surface: #24262f;
  --field: #1b1d25;
  --border: #3b3d49;
  --line: #31333e;
  --text: #f5f4f2;
  --muted: #aaaab7;
  --accent: #b4c5ef;
  --accent-text: #171c2a;
  --success: #a4d7bd;
  --danger: #efa7aa;
  --radius: 10px;
  --sidebar-width: 200px;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--background);
  font-synthesis: none;
}
* { box-sizing: border-box; scrollbar-color: var(--border) var(--background); }
html { scroll-padding-top: 24px; }
body { margin: 0; font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); padding: 30px 14px 18px; display: flex; flex-direction: column; background: var(--sidebar); border-right: 1px solid var(--border); }
.app-name { display: block; margin: 0 12px 32px; color: var(--text); text-decoration: none; font-size: 19px; font-weight: 650; letter-spacing: -.035em; }
.sidebar-nav { display: flex; flex-direction: column; gap: 5px; }
.sidebar-nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: var(--radius); text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 500; }
.sidebar-nav a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 5%, transparent); }
.sidebar-nav a[aria-current] { color: var(--text); background: color-mix(in srgb, var(--accent) 13%, var(--surface)); }
.sidebar-footer { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); }
.sidebar-footer button { width: 100%; }
main { width: calc(100% - var(--sidebar-width)); max-width: 1120px; margin-left: var(--sidebar-width); padding: 40px 36px 24px; outline: none; }
.controller-main { max-width: 880px; }
header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
h1 { margin: 0; font-size: 28px; line-height: 1.25; font-weight: 600; letter-spacing: -.03em; text-wrap: balance; overflow-wrap: anywhere; }
h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.5; font-weight: 600; letter-spacing: -.025em; }
p { margin: 0 0 16px; max-width: 68ch; }
.page-description { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.muted, footer { color: var(--muted); }
button, input { font: inherit; }
button { min-height: 40px; padding: 9px 15px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); background: var(--surface); font-size: 13px; font-weight: 550; cursor: pointer; }
button:hover:not(:disabled) { background: color-mix(in srgb, var(--surface) 92%, var(--text)); border-color: color-mix(in srgb, var(--border) 76%, var(--text)); }
button:disabled { opacity: .5; cursor: not-allowed; }
.primary { background: var(--accent); border-color: transparent; color: var(--accent-text); }
.primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 85%, white); border-color: transparent; }
.quiet { background: transparent; }
.danger { color: var(--danger); }
input:not([type=checkbox]):not([type=range]) { display: block; width: 100%; min-height: 42px; padding: 10px 12px; color: var(--text); background: var(--field); border: 1px solid var(--border); border-radius: var(--radius); }
input::placeholder { color: var(--muted); }
input { caret-color: var(--accent); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
input[type=range] { width: 100%; min-height: 44px; accent-color: var(--accent); cursor: pointer; }
input:disabled { opacity: .5; cursor: not-allowed; }
label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 550; }
fieldset { margin: 24px 0; padding: 0; border: 0; min-width: 0; }
legend { margin-bottom: 7px; font-size: 13px; font-weight: 550; }
.permission { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 0; margin: 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 400; cursor: pointer; }
.permission span { overflow-wrap: anywhere; }
.connection { display: flex; align-items: center; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--border); margin-bottom: 30px; }
.connection div { flex: 1; min-width: 0; }
.connection strong { font-size: 13px; font-weight: 600; }
.connection p { margin: 3px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ready { background: var(--success); }
.owner-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.owner-layout section { min-width: 0; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { min-width: 0; }
#invite-result { margin-top: 24px; }
.person { display: flex; align-items: center; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.person div { flex: 1; min-width: 0; }
.person strong { display: block; font-weight: 550; overflow-wrap: anywhere; }
.person p { margin: 3px 0 0; font-size: 12px; color: var(--muted); }
.person button { min-height: 36px; font-size: 12px; }
.empty { padding: 16px 0; color: var(--muted); }
.reported-heading { margin-top: 34px; }
dl { margin: 0; }
dl div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
dt { overflow-wrap: anywhere; }
dd { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.control { padding: 24px 0; border-bottom: 1px solid var(--border); }
.control-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 8px; }
.control label { margin: 0; font-size: 16px; font-weight: 550; }
.control output { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.control .observed { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.control:has(input[type=checkbox]) { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.control:has(input[type=checkbox]) .control-head { grid-column: 1; grid-row: 1; margin-bottom: 0; }
.control:has(input[type=checkbox]) output { display: none; }
.control:has(input[type=checkbox]) .observed { grid-column: 1; grid-row: 2; }
.control input[type=checkbox] { appearance: none; position: relative; width: 46px; height: 44px; margin: 0; grid-column: 2; grid-row: 1 / span 2; cursor: pointer; border: 0; background: transparent; }
.control input[type=checkbox]::before { content: ''; position: absolute; top: 9px; left: 0; width: 46px; height: 26px; border: 1px solid #5b5d6c; border-radius: 16px; background: #3b3d49; }
.control input[type=checkbox]::after { content: ''; position: absolute; top: 13px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: #c6c7d0; }
.control input[type=checkbox]:checked::before { background: var(--accent); border-color: var(--accent); }
.control input[type=checkbox]:checked::after { background: var(--accent-text); transform: translateX(20px); }
.receipt { margin-top: 24px; color: var(--muted); font-size: 12px; }
footer { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; max-width: 75ch; }
.error { padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--danger) 40%, var(--surface)); border-radius: var(--radius); background: color-mix(in srgb, var(--danger) 9%, var(--background)); color: var(--danger); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-heading p { font-size: 12px; }
#join { padding: 8px 0; }
#join .primary { margin-top: 8px; }
.skip-link { position: fixed; top: -100px; left: 18px; z-index: 10; padding: 10px 16px; background: var(--accent); color: var(--accent-text); border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-text); }
[hidden] { display: none !important; }
@media(max-width: 950px) { :root { --sidebar-width: 176px; } main { padding-inline: 26px; } .owner-layout { gap: 28px; } }
@media(max-width: 800px) { .owner-layout { grid-template-columns: 1fr; gap: 34px; } }
@media(max-width: 600px) {
  .sidebar { position: static; width: 100%; padding: 18px 20px 12px; border-right: 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 1fr auto; gap: 12px 8px; }
  .app-name { margin: 0; align-self: center; font-size: 18px; }
  .sidebar-nav { grid-column: 1 / -1; grid-row: 2; flex-direction: row; flex-wrap: wrap; gap: 2px; }
  .sidebar-nav a { min-height: 40px; padding: 8px 10px; font-size: 12px; }
  .sidebar-footer { grid-column: 2; grid-row: 1; margin: 0; padding: 0; border: 0; }
  .sidebar-footer button { min-height: 40px; padding-inline: 12px; font-size: 12px; }
  main { width: 100%; margin: 0; padding: 26px 20px 20px; }
  h1 { font-size: 24px; }
  header { padding-bottom: 20px; }
  .connection { padding: 16px 0; margin-bottom: 26px; }
  .connection button { padding-inline: 11px; }
  .copy-row { flex-direction: column; }
  .section-heading { display: block; }
  footer { margin-top: 30px; }
}
@media(prefers-reduced-motion: no-preference) { button, .sidebar-nav a { transition: background-color .12s ease-out; } .control input[type=checkbox]::after { transition: transform .14s ease-out; } }
