* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 300px; color-scheme: var(--scheme, light); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font: 15px/1.5 "Inter", "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
[data-bind] { display: inline-block; }

.action { min-height: 38px; padding: .48rem .82rem; overflow-wrap: anywhere; }
.commands, .trials { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.commands { margin-top: .85rem; }
.dose { display: inline-flex; gap: .4rem; align-items: center; }
.dose select { padding: .35rem; }
.muted { color: var(--muted); }
.search { display: flex; flex-direction: column; gap: .32rem; font-size: .8rem; color: var(--muted); }
.search input { min-width: 0; max-width: 100%; width: 20rem; padding: .65rem .8rem; color: var(--ink); }
.filter-empty { margin-block: 1rem; color: var(--muted); }
dialog { color: var(--ink); width: min(630px, calc(100% - 26px)); max-height: min(78vh, 720px); padding: 1.25rem; }
dialog::backdrop { background: #10131cb0; }
dialog header, .recipe-row { display: flex; gap: .7rem; justify-content: space-between; align-items: center; }
dialog .search { margin-block: 1rem; }
dialog .search input { width: 100%; }
.recipe-row { padding: .75rem 0; border-top: 1px solid var(--line); }
.recipe-row > div { display: grid; gap: .18rem; }
.recipe-row small { color: var(--muted); }
@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
