:root {
  color-scheme: light dark;
  --bg: #f5f4fa;
  --card: #fff;
  --fg: #242330;
  --muted: #666477;
  --line: #dedce8;
  --accent: #6241d8;
  --ok: #18714b;
  --on-accent: #fff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101117;
    --card: #1b1c25;
    --fg: #eeedf6;
    --muted: #b1aec1;
    --line: #353441;
    --accent: #9b82ff;
    --ok: #70d9aa;
    --on-accent: #171121;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font:
    16px / 1.55 system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  padding: env(safe-area-inset-top) 18px calc(28px + env(safe-area-inset-bottom));
}
main {
  max-width: 36rem;
  margin: 0 auto;
  padding-top: 30px;
}
header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}
header p {
  margin: 0;
  color: var(--muted);
}
h1 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}
h2 {
  font-size: 1rem;
  margin: 0 0 14px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  margin: 16px 0;
  box-shadow: 0 3px 12px #00000004;
}
label {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 12px 0 7px;
}
input,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  padding: 12px;
  font: inherit;
}
textarea {
  resize: vertical;
  min-height: 130px;
}
button {
  min-height: 48px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 15px system-ui;
  cursor: pointer;
  margin-top: 12px;
}
button.secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
}
button.quiet {
  background: transparent;
  color: var(--muted);
}
button:disabled {
  opacity: 0.65;
  cursor: wait;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.muted {
  color: var(--muted);
  font-size: 0.85rem;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
li {
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 0.9rem;
}
li:last-child {
  border: 0;
}
.detail {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 3px;
}
#message {
  padding: 0 6px;
  overflow-wrap: anywhere;
}
footer {
  padding: 6px 4px;
}
footer p {
  text-align: center;
}
[hidden] {
  /* Hidden form/card state must take precedence over layout selectors. */
  /* biome-ignore lint/complexity/noImportantStyles: preserve the semantic hidden attribute */
  display: none !important;
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition: filter 0.15s;
  }
  button:hover {
    filter: brightness(0.95);
  }
}
