:root {
  font: 16px/1.5 system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; }
.mast {
  display: flex; align-items: center; gap: 18px;
  padding: max(14px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 14px max(20px, env(safe-area-inset-left));
  background: var(--mast); color: var(--on-mast);
}
.brand { font-weight: 750; font-size: 18px; line-height: .88; letter-spacing: -.08em; }
.brand b { color: var(--accent); }
.product { border-left: 1px solid var(--mast-muted); padding-left: 18px; font-size: 13px; font-weight: 600; }
main {
  max-width: 36rem; margin: clamp(1.25rem, 8svh, 5rem) auto;
  padding: 0 max(1.25rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
}
h1 { font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -.055em; line-height: 1.04; margin: .7em 0 .4em; }
h2 { font-size: 1.2rem; margin: 0; }
p { color: var(--text-muted); }
form, section { display: grid; gap: .65rem; margin: 1.4rem 0; }
label { font-weight: 650; }
input, select, button {
  width: 100%; min-height: 48px; padding: .75rem; border: 1px solid var(--border-strong); border-radius: .75rem;
  font: inherit; color: inherit; background: var(--surface);
}
button { cursor: pointer; margin-top: .25rem; color: var(--on-brand); background: var(--brand); border-color: var(--brand); font-weight: 650; }
a { color: var(--link); text-underline-offset: .18em; }
main > a { display: inline-flex; align-items: center; min-height: 44px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
ul { padding: 0; margin: 1.25rem 0; list-style: none; }
li { padding: .7rem 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.notice { padding: 1rem; border-radius: .85rem; color: var(--success-text); background: var(--success-surface); }
.block { margin-top: 1.6rem; }
small { color: var(--text-muted); }
code { overflow-wrap: anywhere; }
.appearance {
  display: grid;
  grid-template-columns: auto minmax(0, 10rem);
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
