:root {
  color-scheme: light;
}
.demo-presenter {
  margin: 0;
  background: #f6f8f6;
  color: #16251e;
  font: 1rem/1.5 system-ui, sans-serif;
}
.demo-presenter *, .demo-toolbar * { box-sizing: border-box; }
.demo-presenter a, .demo-link { color: #185d43; text-underline-offset: .18em; }
.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem clamp(1.125rem, 5vw, 4rem);
  background: #fff;
  border-bottom: 1px solid #d9e3db;
}
.demo-header nav, .demo-actions, .demo-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.demo-header form { margin: 0; }
.demo-wordmark { display: flex; gap: .7rem; align-items: center; text-decoration: none; font-weight: 750; }
.demo-wordmark img { width: 2rem; height: 2rem; object-fit: contain; }
.demo-main { max-width: 64rem; margin: 0 auto; padding: clamp(1.5rem, 5vw, 4.5rem) 1.125rem 3rem; }
.demo-narrow { max-width: 32rem; }
.demo-main h1 { margin: 0; font-size: clamp(1.9rem, 5vw, 2.9rem); line-height: 1.12; letter-spacing: -.035em; }
.demo-main > p { margin: .85rem 0 1.5rem; color: #42574b; }
.demo-main > h1 + .demo-grid { margin-top: 1.35rem; }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 23rem), 1fr)); gap: 1rem; }
.demo-card, .demo-signin {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #d9e3db;
  border-radius: .8rem;
  box-shadow: 0 5px 18px rgb(27 64 43 / 5%);
}
form.demo-card { display: flex; flex-direction: column; align-items: flex-start; }
.demo-card h2 { margin: 0; font-size: 1.25rem; line-height: 1.3; }
.demo-card p { margin: .55rem 0 .8rem; }
.demo-card .demo-detail { color: #42574b; font-size: .9rem; }
.demo-roster {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem 1rem;
  margin: .15rem 0 1rem;
  padding: .75rem 0 0;
  border-top: 1px solid #e4ebe5;
  list-style: none;
  font-size: .83rem;
  line-height: 1.35;
}
.demo-roster strong, .demo-roster span { display: block; }
.demo-roster span { color: #42574b; }
@media (max-width: 639px) {
  .demo-roster { display: none; }
}
.demo-primary {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  justify-content: center;
  font: inherit;
  font-weight: 650;
  color: #fff !important;
  background: #196248;
  border: 1px solid #196248;
  border-radius: .45rem;
  padding: .5rem 1rem;
  text-decoration: none;
  cursor: pointer;
}
form.demo-card .demo-primary { margin-top: auto; }
.demo-primary:hover { background: #124b36; }
.demo-link { border: none; padding: .45rem 0; background: none; font: inherit; text-decoration: underline; cursor: pointer; }
.demo-signin, .demo-signin label { display: grid; gap: .45rem; }
.demo-signin { gap: .95rem; }
.demo-signin label { font-weight: 650; }
.demo-signin input { width: 100%; min-height: 2.75rem; font: inherit; padding: .45rem .65rem; border: 1px solid #8fa798; border-radius: .4rem; }
.demo-presenter :focus-visible, .demo-toolbar :focus-visible { outline: 3px solid #207d5a; outline-offset: 3px; }
.demo-main .demo-error { color: #862522; padding: .65rem .8rem; background: #fff2ef; border-radius: .4rem; }
.demo-actions { margin-top: 1rem; align-items: baseline; }
.demo-actions summary, .demo-messages summary { cursor: pointer; font-weight: 650; }
.demo-messages { display: grid; gap: .65rem; }
.demo-messages summary span { display: block; overflow-wrap: anywhere; font-weight: 400; color: #42574b; }
.demo-message { white-space: pre-wrap; overflow-wrap: anywhere; }
.demo-mark {
  flex: none;
  padding: .15rem .48rem;
  border-radius: .3rem;
  background: #234d3e;
  color: #fff;
  font: 650 .72rem/1.35 system-ui, sans-serif;
  letter-spacing: .015em;
}
.demo-toolbar {
  justify-content: center;
  gap: .25rem .9rem;
  padding: .38rem .85rem;
  background: #e7f2eb;
  color: #16251e;
  font: .8125rem/1.4 system-ui, sans-serif;
}
.demo-identity { display: inline-flex; align-items: center; gap: .55rem; }
.demo-toolbar a { color: #185d43; text-decoration: underline; text-underline-offset: .18em; }
