:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18202b;
  background: #eef1f4;
}
* { box-sizing: border-box; }
textarea { width: 100%; font: inherit; padding: 10px; }
#catalog-reply { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 600px; overflow: auto; }
body { margin: 0; min-height: 100vh; }
main { width: min(760px, 100%); margin: 0 auto; padding: max(24px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom)); }
header { margin-bottom: 20px; }
.eyebrow { margin: 0 0 8px; color: #7a3e00; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
h1 { margin: 0; font-size: clamp(28px, 7vw, 42px); line-height: 1.08; }
.lede { margin: 10px 0 0; color: #596474; }
.panel { margin-top: 14px; padding: 18px; border: 1px solid #d3d9e1; border-radius: 14px; background: #fff; box-shadow: 0 3px 16px rgb(30 43 58 / 6%); }
h2 { margin: 0 0 14px; font-size: 18px; }
label { display: block; margin-bottom: 7px; font-weight: 650; }
input { width: 100%; min-height: 48px; border: 1px solid #aab4c1; border-radius: 9px; padding: 10px 12px; font: inherit; }
input:focus, button:focus-visible { outline: 3px solid #9cc7ff; outline-offset: 2px; }
.button-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; margin-top: 13px; }
button { min-height: 46px; border: 1px solid #aeb7c2; border-radius: 9px; padding: 9px 12px; color: #18202b; background: #f8fafb; font: inherit; font-weight: 720; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .46; }
button.primary { border-color: #155aa8; color: #fff; background: #155aa8; }
button.danger { border-color: #a72f2f; color: #8f2222; background: #fff7f7; }
audio { width: 100%; margin-top: 14px; }
dl { margin: 0; }
dl div { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(120px, 1.2fr); gap: 14px; padding: 10px 0; border-top: 1px solid #edf0f3; }
dl div:first-child { border-top: 0; }
dt { color: #687383; }
dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
dd[data-tone="connected"] { color: #14713c; }
dd[data-tone="error"] { color: #a72f2f; }
#error { margin: 14px 0 0; padding: 11px 12px; border-radius: 8px; color: #851f1f; background: #fff0f0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading h2 { margin: 0; }
.section-heading button { min-height: 36px; padding: 5px 10px; }
pre { min-height: 120px; max-height: 260px; overflow: auto; margin: 12px 0 0; padding: 12px; border-radius: 8px; color: #d9e2ed; background: #18202b; font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
@media (max-width: 520px) {
  .button-row { grid-template-columns: 1fr 1fr; }
  .button-row .primary { grid-column: 1 / -1; }
  dl div { grid-template-columns: 1fr; gap: 3px; }
  dd { text-align: left; }
}