:root {
  color-scheme: light;
  --ink: #173c34;
  --green: #153e35;
  --muted: #52645c;
  --paper: #fffdf6;
  --ground: #f3f2e9;
  --line: #c5cbbb;
  --lime: #d6ef83;
  --light: #e3eae0;
  --danger: #8e351f;
  --sans: "DM Sans", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
summary,
input,
textarea,
select {
  touch-action: manipulation;
}
button,
summary,
select {
  cursor: pointer;
}
button {
  border: 0;
  background: none;
  color: inherit;
  font-weight: 600;
}
button:disabled {
  opacity: 0.47;
  cursor: default;
}
a {
  color: inherit;
  text-underline-offset: 0.23em;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #be7018;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.sr,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 5;
  background: white;
  padding: 10px;
}
.top {
  border-bottom: 1px solid var(--line);
}
.nav,
main {
  width: min(1110px, calc(100% - 56px));
  margin: auto;
}
.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img {
  border-radius: 9px;
}
.brand b {
  font-size: 22px;
  letter-spacing: 0.04em;
}
.brand span {
  font: 600 14px var(--mono);
  padding-left: 3px;
}
.nav nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
}
.nav nav a {
  text-decoration: none;
}
.nav nav a:hover,
.connection a:hover {
  text-decoration: underline;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 44px 0 29px;
}
.intro h1 {
  margin: 0;
  font-size: clamp(35px, 4.3vw, 61px);
  line-height: 1.18;
  letter-spacing: -0.055em;
  font-weight: 780;
}
.intro h1 span {
  position: relative;
  white-space: nowrap;
  isolation: isolate;
}
.intro h1 span:before {
  content: "";
  position: absolute;
  inset: auto 0 3% 0;
  height: 21%;
  background: var(--lime);
  z-index: -1;
}
.intro p {
  color: var(--muted);
  margin: 13px 0 0;
  font-size: 16px;
}
.signal {
  width: 120px;
  height: 49px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.signal i {
  height: 10px;
  width: 5px;
  background: var(--green);
  border-radius: 4px;
}
.signal i:nth-child(3n) {
  height: 27px;
}
.signal i:nth-child(4n) {
  height: 43px;
}
.signal i:nth-child(5n) {
  height: 19px;
}
.desk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.capture,
.receipt {
  border-radius: 11px;
  padding: clamp(20px, 2.3vw, 32px);
  min-width: 0;
}
.capture {
  background: var(--green);
  color: #fcfff2;
}
.section-head,
.receipt-head,
.input-tools,
.run-row,
.paper-footer,
.examples,
.connection,
.connection > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.section-head h2,
.receipt h2 {
  margin: 0;
  line-height: 1.25;
  font-size: 24px;
}
.section-head {
  justify-content: space-between;
}
.engine {
  font: 12px var(--mono);
  color: #e1edc5;
}
.modes {
  display: inline-flex;
  gap: 2px;
  margin: 21px 0 12px;
  border: 1px solid #789387;
  border-radius: 7px;
  padding: 3px;
}
.modes button {
  font-size: 14px;
  min-height: 33px;
  padding: 3px 14px;
  border-radius: 4px;
}
.modes button[aria-pressed="true"] {
  color: var(--green);
  background: var(--lime);
}
#source {
  width: 100%;
  display: block;
  resize: vertical;
  min-height: 144px;
  max-height: 520px;
  border: 1px solid #8ca397;
  border-radius: 6px;
  background: #f6f8ec;
  color: var(--ink);
  padding: 15px 16px;
  line-height: 1.8;
  font-size: 17px;
}
.input-tools {
  margin: 9px 0;
}
.input-tools button {
  min-height: 38px;
  padding: 3px 0;
}
.mic {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.mic svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}
.mic[aria-pressed="true"] {
  color: var(--lime);
}
#count {
  margin-left: auto;
  font: 12px var(--mono);
  color: #d2e0d5;
}
.speech-status:empty,
.status:empty,
#warnings:empty {
  display: none;
}
.speech-status {
  font-size: 14px;
  color: #e4eed8;
}
.time-options {
  border-top: 1px solid #56796b;
  font-size: 13px;
}
.time-options summary,
.incoming summary,
.task-edit summary {
  padding: 9px 0;
}
.fields {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.fields label,
.edit-fields label {
  display: grid;
  gap: 3px;
}
.fields input:not([type="checkbox"]),
.edit-fields input:not([type="checkbox"]),
.edit-fields textarea,
.edit-fields select {
  border: 1px solid #92a197;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  padding: 6px 8px;
  min-width: 0;
}
.fields .inline,
.edit-fields .inline {
  display: flex;
  align-items: center;
  gap: 7px;
}
.run-row {
  margin-top: 7px;
}
.run-row button {
  min-height: 44px;
}
.primary {
  background: var(--lime);
  color: var(--green);
  border-radius: 6px;
  flex: 1;
  text-align: left;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.primary:hover {
  background: #e5faab;
}
.subtle {
  padding: 8px 10px;
}
.receipt {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  padding-bottom: 18px;
}
.receipt:after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: -7px;
  height: 9px;
  background:
    linear-gradient(135deg, var(--paper) 25%, transparent 25%) -5px 0,
    linear-gradient(225deg, var(--paper) 25%, transparent 25%) -5px 0;
  background-size: 12px 14px;
}
.receipt-head {
  padding-bottom: 16px;
  border-bottom: 1px dashed #aab5a7;
}
.paper-icon {
  width: 31px;
  height: 31px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  display: grid;
  place-content: center;
  font-size: 22px;
  font-weight: bold;
  line-height: 1;
}
.receipt-head output {
  margin-left: auto;
  font: 13px var(--mono);
  color: var(--muted);
}
#warnings {
  padding: 10px 0;
  color: var(--danger);
  font-size: 14px;
}
.task {
  padding: 15px 0;
  border-bottom: 1px solid #dbe0d2;
  overflow-wrap: anywhere;
}
.task-line {
  display: flex;
  gap: 9px;
  align-items: baseline;
}
.task-line input {
  width: 18px;
  height: 18px;
  align-self: flex-start;
  margin: 3px 0 0;
  accent-color: var(--green);
  flex-shrink: 0;
}
.task-title {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
}
.task[data-selected="false"] .task-title {
  color: var(--muted);
  text-decoration: line-through;
}
.task-meta,
.task-notes,
.task ul {
  margin: 6px 0 0 27px;
  font-size: 14px;
  color: var(--muted);
  white-space: pre-line;
}
.task ul {
  padding-left: 19px;
  list-style: square;
}
.task-edit {
  margin-left: 27px;
}
.task-edit summary {
  color: var(--muted);
  font-size: 13px;
  width: max-content;
}
.edit-fields {
  display: grid;
  gap: 9px;
  font-size: 13px;
  padding: 8px 0;
}
.edit-fields textarea {
  resize: vertical;
}
.edit-fields button {
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 7px 10px;
  justify-self: start;
}
.empty {
  padding: 30px 6px;
  color: var(--muted);
}
.empty p {
  margin: 0.4em 0;
}
.paper-footer {
  margin-top: 18px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}
.paper-footer button,
.examples button,
.incoming button {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 7px 11px;
  color: var(--ink);
  margin: 2px;
  background: var(--paper);
}
.paper-footer button:first-child {
  border-color: var(--ink);
}
.connection {
  border-top: 1px dashed var(--line);
  margin-top: 14px;
  padding-top: 12px;
  font-size: 13px;
}
.connection a {
  text-decoration: none;
  font-weight: 650;
}
.connection select {
  max-width: 185px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.connection #save {
  padding: 6px 10px;
  background: var(--ink);
  color: white;
  border-radius: 4px;
}
.examples {
  margin: 23px 0 0;
  font-size: 13px;
  color: var(--muted);
  gap: 6px;
}
.examples span {
  margin-right: 4px;
}
.examples button {
  background: transparent;
}
.incoming {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}
.incoming button {
  margin: 4px 6px 0 0;
}
.status {
  font-size: 14px;
  padding: 9px 12px;
  border-left: 3px solid var(--green);
  background: var(--light);
  overflow-wrap: anywhere;
}
.status[data-error="true"] {
  color: var(--danger);
  border-color: var(--danger);
}
footer {
  border-top: 1px solid var(--line);
  margin-top: 35px;
  padding: 16px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 760px) {
  .nav,
  main {
    width: calc(100% - 32px);
  }
  .nav {
    min-height: 58px;
  }
  .nav nav {
    gap: 12px;
    font-size: 13px;
  }
  .brand span {
    display: none;
  }
  .intro {
    padding: 29px 0 22px;
  }
  .intro p {
    font-size: 14px;
  }
  .signal {
    display: none;
  }
  .desk {
    grid-template-columns: 1fr;
    gap: 19px;
  }
  .capture,
  .receipt {
    padding: 19px;
  }
  .examples {
    gap: 4px;
  }
  .examples button {
    min-height: 40px;
  }
  footer {
    margin-top: 24px;
  }
}
@media (max-width: 340px) {
  .nav,
  main {
    width: calc(100% - 20px);
  }
  .capture,
  .receipt {
    padding: 14px;
  }
  .nav nav {
    gap: 8px;
  }
  .brand {
    gap: 5px;
  }
}
.arrow,
.paper-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.arrow {
  width: 15px;
  height: 15px;
  vertical-align: -2px;
}
.paper-icon svg {
  width: 23px;
  height: 23px;
}
