@font-face {
  font-family: Cinzel;
  src: url("./assets/cinzel.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("./assets/inter.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #05060a;
  --panel: #10121c;
  --panel2: #151925;
  --text: #e2e5ef;
  --heading: #d7dbe7;
  --muted: #9da7bb;
  --line: #282d3f;
  --blue: #456bfa;
  --link: #94aaff;
  --red: #ffadb7;
  --green: #99d6b4;
  --shadow: 0 24px 80px #0007;
  --primary: linear-gradient(
    115deg,
    #e0816f,
    #fa8597 30%,
    #9b7cff 66%,
    #456bfa
  );
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100dvh;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(1px 1px at 15% 11%, #aab5e980 60%, transparent 100%),
    radial-gradient(1px 1px at 82% 28%, #bbcaef75 60%, transparent 100%),
    radial-gradient(1px 1px at 38% 76%, #bacafa70 60%, transparent 100%),
    radial-gradient(1px 1px at 68% 89%, #6d83c780 60%, transparent 100%);
  background-size:
    269px 311px,
    443px 293px,
    337px 481px,
    571px 383px;
}
body.light {
  color-scheme: light;
  --bg: #f4f5f9;
  --panel: #fff;
  --panel2: #edf0f8;
  --text: #172033;
  --heading: #20293c;
  --muted: #526075;
  --line: #cbd2e1;
  --link: #294ccd;
  --red: #a22036;
  --green: #246342;
  --shadow: 0 20px 60px #23325220;
}
body.light:before {
  opacity: 0.18;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel2);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  line-height: 1.3;
}
button:hover {
  border-color: var(--link);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
button.primary {
  background: var(--primary);
  border: none;
  color: #090b16;
  box-shadow: 0 4px 26px #456bfa17;
}
button.primary:hover {
  filter: brightness(1.08);
}
button.quiet {
  background: transparent;
}
button.danger {
  color: var(--red);
}
button.small {
  padding: 9px 12px;
  font-size: 0.85rem;
}
button.icon {
  padding: 10px;
  width: 46px;
  display: grid;
  place-items: center;
}
svg {
  width: 21px;
  height: 21px;
  vertical-align: middle;
  flex-shrink: 0;
}
button svg {
  margin-right: 6px;
}
button.icon svg {
  margin: 0;
}
a {
  color: var(--link);
}
:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
}
h1,
h2,
h3 {
  line-height: 1.22;
  color: var(--heading);
  margin: 0 0 12px;
  font-weight: 500;
}
h1,
h2,
.serif {
  font-family: Cinzel, Georgia, serif;
}
h1 {
  font-size: clamp(1.9rem, 4vw, 2.65rem);
  letter-spacing: -0.035em;
}
h2 {
  font-size: 1.35rem;
}
h3 {
  font-family: Inter, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
}
p {
  margin: 0 0 16px;
}
small,
.hint {
  font-size: 0.82rem;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.eyebrow {
  color: var(--link);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.flex {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.stack {
  display: grid;
  gap: 18px;
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.full {
  grid-column: 1/-1;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.brandmark {
  font-family: Cinzel, Georgia, serif;
  font-size: 28px;
  color: var(--heading);
  position: relative;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border: 1px solid #7484b954;
  border-radius: 13px;
  background: var(--panel);
}
.brandmark span {
  font-size: 13px;
  position: absolute;
  right: 5px;
  top: 1px;
  color: var(--link);
}
.brandname {
  font-size: 1rem;
  letter-spacing: 0.11em;
}
.brand small {
  font-size: 0.63rem;
  letter-spacing: 0.12em;
}
.sync {
  font-size: 0.74rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
}
.shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  max-width: 1560px;
  margin: auto;
}
.sidebar {
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 0;
  height: calc(100dvh - 86px);
  border-right: 1px solid var(--line);
}
.navbutton {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  text-align: left;
  font-weight: 500;
  color: var(--muted);
}
.navbutton.active {
  background: var(--panel2);
  color: var(--text);
  box-shadow: inset 3px 0 var(--blue);
}
.sidefoot {
  margin-top: auto;
  padding: 14px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.8;
}
.sidefoot strong {
  color: var(--text);
  font-weight: 500;
}
main {
  padding: 36px 36px 70px;
  min-width: 0;
}
.pagehead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.pagehead p {
  max-width: 620px;
  color: var(--muted);
  font-size: 0.92rem;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  min-width: 0;
}
.hero-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 30px;
  border-color: #456bfa66;
}
.hero-panel h2 {
  font-size: 1.65rem;
}
.orbit {
  width: 130px;
  height: 130px;
  border: 1px solid #456bfa66;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--link);
}
.orbit:before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.orbit span {
  font-family: Cinzel, serif;
  font-size: 2.3rem;
}
.orbit small {
  position: absolute;
  bottom: 25px;
  font-size: 0.55rem;
  letter-spacing: 0.13em;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.stat {
  padding: 20px;
}
.stat strong {
  display: block;
  font-weight: 500;
  font-size: 2rem;
  margin: 10px 0 2px;
  letter-spacing: -0.05em;
}
.stat p {
  font-size: 0.76rem;
  color: var(--muted);
  margin: 0;
}
.label {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sectionhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.sectionhead h2 {
  margin: 0;
}
.pill {
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 0.7rem;
  white-space: nowrap;
  color: var(--muted);
  display: inline-block;
}
.pill.blue {
  color: var(--link);
  border-color: #456bfa55;
}
.pill.red {
  color: var(--red);
}
.pill.green {
  color: var(--green);
}
.empty {
  text-align: center;
  padding: 40px 18px;
}
.empty svg {
  width: 32px;
  height: 32px;
  color: var(--link);
  margin-bottom: 16px;
}
.empty p {
  max-width: 400px;
  margin: 8px auto 20px;
  color: var(--muted);
  font-size: 0.9rem;
}
.nextitem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.nextitem:last-child {
  border: 0;
  padding-bottom: 0;
}
.nextitem strong {
  font-size: 0.93rem;
  font-weight: 600;
}
.nextitem p {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 3px 0 0;
}
.formula {
  font-family: Inter, sans-serif;
  font-size: 0.75rem;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 14px;
  overflow-wrap: anywhere;
}
.conversion {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}
.conversion:last-child {
  border: 0;
}
.conversion small {
  display: block;
  margin-top: 3px;
}
.progress {
  height: 4px;
  background: var(--line);
  border-radius: 5px;
  overflow: hidden;
  margin-top: 10px;
}
.progress progress {
  width: 100%;
  height: 4px;
  display: block;
  accent-color: var(--blue);
}
.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.toolbar input {
  flex: 1;
}
.toolbar select {
  width: auto;
  max-width: 40%;
}
.board {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  min-height: 390px;
  padding: 3px 3px 20px;
  scroll-snap-type: x proximity;
}
.column {
  flex: 0 0 255px;
  scroll-snap-align: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  min-height: 340px;
}
.column.over {
  border-color: var(--blue);
  background: var(--panel2);
}
.columnhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 20px;
  gap: 8px;
  font-size: 0.85rem;
}
.columnhead strong {
  font-weight: 600;
}
.columnhead span {
  color: var(--muted);
  font-size: 0.75rem;
}
.dropempty {
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 20px 14px;
  text-align: center;
}
.leadcard {
  border: 1px solid var(--line);
  background: var(--panel2);
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 14px;
}
.leadcard h3 {
  font-size: 0.92rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  margin-bottom: 4px;
}
.leadcard p {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}
.leadcard .next {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 10px;
}
.cardopen {
  display: block;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  text-align: left;
  background: none;
  padding: 0;
  width: 100%;
}
.cardfooter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  gap: 6px;
}
.draghandle {
  touch-action: none;
  cursor: grab;
  padding: 10px 8px;
  min-width: 44px;
}
.dragging {
  opacity: 0.5;
}
.dragghost {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  pointer-events: none;
  background: var(--panel2);
  padding: 12px 20px;
  border: 1px solid var(--blue);
  border-radius: 12px;
  max-width: 80%;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
}
.overdue {
  color: var(--red) !important;
}
.bottomnav {
  display: none;
}
.subnav {
  display: flex;
  gap: 7px;
  margin: 0 0 24px;
  overflow-x: auto;
  padding: 3px 0 6px;
}
.subnav button {
  white-space: nowrap;
  font-size: 0.8rem;
}
.subnav button.active {
  border-color: var(--blue);
  color: var(--link);
}
.notice {
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 10px;
  font-size: 0.84rem;
  background: var(--panel2);
  margin-bottom: 18px;
}
.notice.red {
  border-left-color: var(--red);
}
.notice p {
  margin: 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
label,
.field-title {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}
input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  color: var(--text);
  font-size: 16px;
}
textarea {
  resize: vertical;
  min-height: 108px;
  line-height: 1.6;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.65;
}
input[type="checkbox"] {
  width: 23px;
  height: 23px;
  min-height: 23px;
  accent-color: var(--blue);
  flex-shrink: 0;
}
input[type="file"] {
  font-size: 0.8rem;
}
input[readonly] {
  color: var(--muted);
}
.checklabel {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: var(--text);
  font-size: 0.9rem;
}
.formfoot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.definition {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.87rem;
}
.definition dt {
  color: var(--muted);
}
.definition dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.result {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  margin: 20px 0 8px;
}
.brief {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
}
.brief h2 {
  font-size: 1.5rem;
}
.brief h3 {
  margin-top: 24px;
}
.brief blockquote {
  margin: 20px 0;
  border-left: 2px solid var(--blue);
  padding: 6px 0 6px 18px;
  font-family: Cinzel, serif;
  font-size: 1.3rem;
}
.brief ul,
.brief ol {
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.9rem;
}
.brief li {
  margin: 8px 0;
}
.pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}
.checkday {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.checkday input {
  margin-top: 6px;
}
.checkday strong {
  font-size: 0.9rem;
}
.checkday small {
  display: block;
  margin-top: 4px;
}
.badge-day {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--link);
  display: block;
  margin-bottom: 4px;
}
.note {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 14px;
  background: var(--panel);
}
.note blockquote {
  margin: 10px 0;
  font-size: 0.95rem;
}
.offergrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.offer {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.offer strong {
  display: block;
  margin: 8px 0;
}
.offer small {
  display: block;
}
.toolbar-title {
  margin-bottom: 16px;
}
.splash {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
}
.splash .brandmark {
  width: 76px;
  height: 76px;
  font-size: 48px;
  margin-bottom: 30px;
}
.splash .brandmark span {
  font-size: 18px;
}
.splash h1 {
  font-size: 2rem;
}
.splash p {
  color: var(--muted);
  font-size: 0.83rem;
  letter-spacing: 0.1em;
}
.splash small {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  margin-top: 36px;
}
.splash[hidden] {
  display: none;
}
.skip {
  position: fixed;
  top: -80px;
  left: 15px;
  z-index: 100;
  background: var(--panel);
  padding: 14px;
}
.skip:focus {
  top: 10px;
}
dialog {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  width: min(620px, calc(100% - 24px));
  max-height: calc(100dvh - 50px);
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(5px);
}
.dialoghead {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.dialoghead h2 {
  margin: 7px 0 0;
}
.error {
  color: var(--red);
  font-size: 0.84rem;
  margin-top: 12px;
}
.error:empty {
  display: none;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(600px, 90%);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  padding: 13px 20px;
  box-shadow: var(--shadow);
  z-index: 100;
  display: none;
  font-size: 0.86rem;
}
#toast.show {
  display: block;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
#print-area {
  display: none;
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.code {
  font-family: monospace;
}
.demo-banner {
  background: var(--panel2);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 0.78rem;
  padding: 9px;
}
.theme-label {
  font-size: 0.8rem;
}
.lead-title {
  overflow-wrap: anywhere;
}
.listcards {
  display: grid;
  gap: 14px;
}
.footerline {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.75rem;
}
.amounts {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.amounts b {
  font-size: 1.3rem;
  font-weight: 500;
}
.amounts small {
  display: block;
}
.empty-mini {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 8px 0;
}
.tall {
  min-height: 148px;
}
@media (min-width: 1400px) {
  main {
    padding: 40px 50px;
  }
  .column {
    flex-basis: 270px;
  }
}
@media (max-width: 1050px) {
  .shell {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  main {
    padding: 28px 22px 60px;
  }
  .sidebar {
    padding: 24px 10px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .grid2.formgrid {
    grid-template-columns: 1fr 1fr;
  }
  .offergrid {
    grid-template-columns: 1fr;
  }
  .orbit {
    width: 105px;
    height: 105px;
  }
  .hero-panel {
    padding: 24px;
  }
}
@media (max-width: 700px) {
  .topbar {
    padding: calc(14px + env(safe-area-inset-top)) 18px 14px;
    gap: 12px;
  }
  .brandname {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
  }
  .brand small {
    font-size: 0.52rem;
  }
  .brandmark {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }
  .brand {
    gap: 10px;
  }
  .sync {
    font-size: 0.64rem;
    max-width: 126px;
  }
  .theme-label {
    display: none;
  }
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
  }
  main {
    padding: 28px 18px calc(110px + env(safe-area-inset-bottom));
  }
  .pagehead {
    gap: 12px;
    margin-bottom: 23px;
    flex-wrap: wrap;
  }
  .pagehead h1 {
    font-size: 1.95rem;
  }
  .pagehead p {
    font-size: 0.84rem;
    margin-bottom: 0;
  }
  .pagehead > .primary {
    width: 100%;
  }
  .hero-panel {
    padding: 24px 20px;
    grid-template-columns: 1fr;
  }
  .hero-panel h2 {
    font-size: 1.4rem;
  }
  .hero-panel .orbit {
    display: none;
  }
  .stats {
    gap: 10px;
    margin: 18px 0;
  }
  .stat {
    padding: 17px 14px;
    border-radius: 16px;
  }
  .stat strong {
    font-size: 1.75rem;
  }
  .stat .label {
    font-size: 0.62rem;
  }
  .stat p {
    font-size: 0.67rem;
  }
  .panel {
    padding: 20px;
    border-radius: 17px;
  }
  .panel .panel {
    padding: 15px;
  }
  .bottomnav {
    position: fixed;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    bottom: 0;
    left: 0;
    right: 0;
    padding: 9px 7px calc(8px + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--line);
    z-index: 10;
  }
  .bottomnav .navbutton {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 6px 2px;
    min-height: 54px;
    font-size: 0.61rem;
    border-radius: 10px;
  }
  .bottomnav .navbutton svg {
    width: 21px;
    height: 21px;
    margin: 0;
  }
  .bottomnav .active {
    box-shadow: none;
    color: var(--link);
    background: var(--panel2);
  }
  .board {
    margin-right: -18px;
    padding-right: 18px;
  }
  .column {
    flex-basis: 83vw;
    max-width: 315px;
  }
  .toolbar {
    gap: 8px;
  }
  .toolbar input {
    min-width: 0;
  }
  .toolbar select {
    font-size: 14px;
  }
  .grid2.formgrid {
    grid-template-columns: 1fr;
  }
  .formfoot {
    position: sticky;
    bottom: 0;
    background: var(--panel);
    padding: 14px 0 0;
  }
  .formfoot button {
    flex: 1;
  }
  .brief {
    padding: 22px 18px;
  }
  .brief blockquote {
    font-size: 1.14rem;
  }
  .subnav {
    margin-right: -18px;
    padding-right: 18px;
  }
  .definition {
    grid-template-columns: 95px 1fr;
  }
  .sectionhead h2 {
    font-size: 1.16rem;
  }
  .nextitem {
    gap: 10px;
  }
  .nextitem button {
    padding: 10px;
    flex-shrink: 0;
  }
  .offergrid {
    gap: 9px;
  }
  .offer {
    padding: 16px;
  }
  .result {
    font-size: 2.35rem;
  }
  .hero-panel .primary {
    width: 100%;
  }
  .flex.mobile-stack {
    align-items: stretch;
    flex-direction: column;
  }
  #toast {
    bottom: calc(90px + env(safe-area-inset-bottom));
  }
  .note {
    padding: 17px;
  }
  .label {
    font-size: 0.67rem;
  }
  dialog {
    padding: 22px 18px;
  }
  .dialoghead {
    margin-bottom: 16px;
  }
  .dialoghead h2 {
    font-size: 1.15rem;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background 0.16s,
      border-color 0.16s,
      filter 0.16s;
  }
  .splash {
    animation: appear 0.25s ease;
  }
  @keyframes appear {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}
@media print {
  body {
    background: white;
    color: #111;
  }
  body:before,
  #app,
  #splash,
  dialog,
  #toast,
  .skip {
    display: none !important;
  }
  #print-area {
    display: block;
  }
  #print-area .brief {
    border: 0;
    background: white;
    color: #111;
    padding: 0;
    font-size: 10pt;
  }
  #print-area h1,
  #print-area h2,
  #print-area h3,
  #print-area p,
  #print-area li,
  #print-area dd,
  #print-area dt,
  #print-area .eyebrow,
  #print-area small {
    color: #111;
  }
  #print-area h2 {
    font-size: 20pt;
  }
  #print-area h3 {
    margin-top: 14px;
  }
  #print-area .brief blockquote {
    font-size: 14pt;
    margin: 14px 0;
  }
  #print-area .brief li {
    font-size: 10pt;
    margin: 5px 0;
  }
  #print-area .definition {
    padding: 4px 0;
    font-size: 10pt;
  }
  #print-area .pill {
    border: 1px solid #777;
    color: #222;
  }
  #print-area .brief {
    break-inside: avoid;
  }
  @page {
    size: A4;
    margin: 16mm;
  }
}
