@font-face {
  font-family: "Inter Tight";
  src: url("/brand/inter-tight.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --page: #0d0d0d;
  --surface: #191919;
  --line: #3d3d3d;
  --text: #f5f5f5;
  --muted: #aaa;
  --accent: #2dd4bf;
  --radius: 12px;
  font: 16px/1.5 "Inter Tight", system-ui, sans-serif;
  color: var(--text);
  background: var(--page);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 50% 20%, var(--surface), var(--page) 76%);
}
main {
  max-width: 1060px;
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding: 24px clamp(16px, 5vw, 52px) 40px;
  display: flex;
  flex-direction: column;
}
.brand, header, .heading, .actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand { gap: 8px; }
.brand img { display: block; object-fit: contain; }
.brand-stacked { flex-direction: column; margin-bottom: 32px; }
#login { width: min(100%, 400px); margin: auto; }
#signin h1 { text-align: center; margin-bottom: 12px; font-size: 24px; }
#signin button { justify-self: stretch; }
.surface {
  min-width: 0;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 28px);
}
header { justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.heading { justify-content: space-between; flex-wrap: wrap; padding: 32px 0 20px; }
h1, h2 { margin: 0; line-height: 1.2; font-weight: 500; letter-spacing: -.035em; }
h1 { font-size: clamp(28px, 4vw, 36px); }
h2 { font-size: 20px; }
p { margin: 8px 0 16px; color: var(--muted); }
.heading p { margin: 6px 0 0; }
button, input, textarea { font: inherit; }
button {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 16px;
  cursor: pointer;
}
button:hover { border-color: var(--muted); background: #ffffff09; }
button:disabled { opacity: .55; cursor: default; }
button.primary {
  border-color: transparent;
  background: var(--accent);
  color: #061a16;
  font-weight: 550;
}
button.primary:hover { background: #57decc; }
button.remove { color: #ffb4ab; font-size: 14px; }
button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
form { display: grid; gap: 8px; }
form button { justify-self: start; margin-top: 8px; }
label, time, small { color: var(--muted); font-size: 14px; }
input, textarea {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid #565656;
  border-radius: var(--radius);
  background: transparent;
  padding: 10px 12px;
  color: var(--text);
}
textarea { resize: vertical; }
nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
nav button { color: var(--muted); border-color: transparent; }
nav button[aria-pressed="true"] { background: #2a2a2a; color: var(--text); }
dl { display: grid; grid-template-columns: minmax(140px, 35%) 1fr; margin: 8px 0 24px; }
dt, dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
dd { color: var(--muted); }
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
ol, ul { list-style: none; margin: 12px 0 0; padding: 0; }
li { padding: 12px 0; overflow-wrap: anywhere; }
li + li { border-top: 1px solid var(--line); }
li p { white-space: pre-wrap; margin: 4px 0; }
li small { display: block; }
#history .remove { margin-top: 10px; }
#viewers li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
#viewers time { margin-inline-start: auto; }
#status:empty, #login-status:empty { margin: 0; }
#login-status:not(:empty) { margin: 4px 0 0; color: #ffb4ab; }
dialog { width: min(440px, calc(100% - 32px)); }
dialog::backdrop { background: #000a; }
.actions { justify-content: flex-end; margin-top: 20px; }
@media (max-width: 680px) {
  .columns { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  dl { grid-template-columns: 1fr; }
  dt { border: 0; padding-bottom: 0; }
  dd { padding-top: 4px; }
  #viewers time { margin-inline-start: 0; }
}
