@font-face {
  font-family: Manrope;
  src: local("Manrope"), local("Segoe UI");
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: local("Fraunces"), local("Iowan Old Style"), local("Palatino Linotype"), local("Georgia");
  font-display: swap;
}
:root {
  --bg: #f3efe6;
  --surface: #faf8f3;
  --surface-2: #efeae0;
  --text: #1a1714;
  --muted: #6e675d;
  --faint: #8e867b;
  --border: #ddd6c8;
  --primary: #2f4f4a;
  --primary-2: #3d635c;
  --primary-text: #f6f3ec;
  --danger: #c13a2e;
  --ok: #1f7a45;
  --warn: #d97706;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --shadow: 0 1px 0 rgb(26 23 20 / 0.04), 0 12px 32px -16px rgb(26 23 20 / 0.18);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100dvh;
}
a { color: var(--primary); }
.top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  padding: 12px 24px;
  max-width: 960px;
  margin: 0 auto;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Fraunces, ui-serif, Georgia, serif;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  font-weight: 560;
}
.brand img { border-radius: 0.5rem; box-shadow: var(--shadow); }
.brand-sub { color: var(--muted); font-size: 0.92rem; }
nav { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
nav a, button.link {
  color: var(--muted);
  background: none;
  border: 0;
  padding: 8px 12px;
  min-height: 40px;
  border-radius: var(--radius);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
nav a:hover, button.link:hover { background: var(--surface-2); color: var(--text); }
main { max-width: 960px; margin: 0 auto; padding: 32px 24px 72px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
}
.narrow { max-width: 460px; }
h1, h2 { font-family: Fraunces, ui-serif, Georgia, serif; font-weight: 560; letter-spacing: -0.03em; line-height: 1.1; }
h1 { font-size: 2rem; margin: 0 0 8px; }
h2 { font-size: 1.25rem; margin: 28px 0 8px; letter-spacing: -0.02em; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; color: var(--muted); margin: 0 0 8px; }
.lede, .muted { color: var(--muted); }
.notice { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px 14px; }
.error { color: var(--danger); font-weight: 600; }
form { display: grid; gap: 14px; margin-top: 16px; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; }
label span { color: var(--muted); font-weight: 400; }
input, select, textarea {
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  min-height: 44px;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent);
}
textarea { min-height: 140px; resize: vertical; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--primary-text);
  border: 0;
  border-radius: var(--radius);
  min-height: 44px;
  padding: 10px 16px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  box-shadow: var(--shadow);
}
button:hover, .button:hover { background: var(--primary-2); }
button.secondary, .button.secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); box-shadow: none; }
button.danger { background: var(--danger); }
button:disabled { opacity: 0.6; }
button:focus-visible, .button:focus-visible, a:focus-visible { outline: 2px solid color-mix(in srgb, var(--primary) 40%, transparent); outline-offset: 2px; }
.actions, .split, .filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.check { grid-template-columns: auto 1fr; align-items: center; }
.check input { width: auto; min-height: 0; }
.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.secret { user-select: all; }
.bubble { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px 14px; margin: 8px 0; background: var(--surface); }
.bubble.handler { background: #e7eeec; }
.bubble.note { background: #f7f1e4; }
.meta { color: var(--muted); font-size: 0.8rem; margin: 0 0 4px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
footer { max-width: 960px; margin: 0 auto; padding: 0 24px 32px; color: var(--muted); font-size: 0.88rem; }
.inline { display: inline; margin: 0; }
@media (max-width: 640px) {
  .top, main, footer { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 1.7rem; }
  nav { margin-left: 0; width: 100%; }
  .card { padding: 20px; }
}
