@layer zw-reset, zw-tokens, zfb-hi, base, components;
@layer zw-reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-width: 0;
    border-style: solid;
    border-color: currentColor;
  }
  html {
    line-height: 1.5;
    font-family: ui-sans-serif, system-ui, sans-serif;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
  }
  body {
    line-height: inherit;
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    text-decoration: inherit;
  }
  b,
  strong {
    font-weight: bolder;
  }
  code,
  kbd,
  samp,
  pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1em;
  }
  ol,
  ul,
  menu {
    list-style: none;
  }
  button,
  input,
  optgroup,
  select,
  textarea {
    font: inherit;
    letter-spacing: inherit;
    color: inherit;
  }
  button,
  input:where([type="button"], [type="reset"], [type="submit"]) {
    background-color: transparent;
    background-image: none;
  }
  textarea {
    resize: vertical;
  }
  img,
  svg,
  video,
  canvas,
  audio,
  iframe,
  embed,
  object {
    display: block;
    vertical-align: middle;
  }
  img,
  video {
    max-width: 100%;
    height: auto;
  }
  table {
    border-collapse: collapse;
    border-color: inherit;
    text-indent: 0;
  }
  summary {
    display: list-item;
  }
  hr {
    height: 0;
    border-top-width: 1px;
  }
}
:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  background: #f7f8f5;
  color: #202420;
  line-height: 1.5;
  text-rendering: optimizelegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: linear-gradient(#2a726214, #2a726200 18rem), #f7f8f5;
}

a {
  color: #176d5c;
  font-weight: 650;
  text-decoration-thickness: .08em;
  text-underline-offset: .22em;
}

button, textarea {
  font: inherit;
}

.page-shell {
  width: min(100% - 2rem, 58rem);
  margin-inline: auto;
  padding-block: 2rem;
}

.app-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-block-end: 1.25rem;
}

.eyebrow {
  margin: 0 0 .2rem;
  color: #6b5b20;
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #151915;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
}

.summarizer {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #d7ddd4;
  border-radius: 8px;
  background: #ffffffd1;
  box-shadow: 0 18px 50px #15191514;
}

.field {
  display: grid;
  gap: .45rem;
  color: #3c443d;
  font-size: .9rem;
  font-weight: 700;
}

textarea {
  width: 100%;
  min-height: 16rem;
  resize: vertical;
  border: 1px solid #c6cec3;
  border-radius: 6px;
  padding: .85rem;
  background: #fff;
  color: #202420;
  line-height: 1.55;
}

textarea:focus {
  border-color: #16846e;
  outline: 3px solid #16846e2e;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

button {
  appearance: button;
  min-width: 9.5rem;
  min-height: 2.6rem;
  border: 1px solid #0f5d4f;
  border-radius: 6px;
  padding: .55rem 1rem;
  background: #176d5c;
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

button:disabled {
  cursor: progress;
  opacity: .72;
}

.count, .hint {
  color: #687169;
  font-size: .86rem;
}

.result {
  display: block;
  min-height: 12rem;
  border: 1px solid #d7ddd4;
  border-radius: 6px;
  background: #fbfcfa;
}

.result:empty:before {
  content: "Summary output";
  display: block;
  padding: 1rem;
  color: #7c847d;
}

.result section {
  padding: 1rem;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  color: #343b35;
  font-size: .86rem;
  font-weight: 800;
  margin-block-end: .75rem;
}

.badge {
  border: 1px solid #dfb64a;
  border-radius: 999px;
  padding: .12rem .45rem;
  background: #fff7d9;
  color: #755700;
  font-size: .74rem;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  color: #202420;
  font: inherit;
}

.error {
  margin: 0;
  padding: 1rem;
  color: #9f1d1d;
  font-weight: 700;
}

.not-found {
  display: grid;
  gap: .75rem;
  padding-block: 15vh;
}

@media (width <= 680px) {
  .page-shell {
    width: min(100% - 1rem, 58rem);
    padding-block: 1rem;
  }

  .app-header {
    align-items: start;
    flex-direction: column;
  }

  .summarizer {
    padding: .75rem;
  }

  textarea {
    min-height: 14rem;
  }
}
.static {
  position: static;
}

