.flow-page {
  --fl-ink: var(--ink, #253a31);
  --fl-quiet: var(--muted, #52695f);
  --fl-line: var(--line, #cfdbd4);
  --fl-surface: var(--surface, #fff);
  --fl-tint: var(--tint, #e8f1e9);
  --fl-accent: var(--accent, #235d46);
  --fl-on: var(--on-accent, #fff);
  max-width: 850px;
  min-width: 0;
  margin: 0 auto;
  color: var(--fl-ink);
  overflow-wrap: anywhere;
}
.flow-page * {
  box-sizing: border-box;
}
.flow-page :is(button, input, textarea, select) {
  font: inherit;
}
.flow-page :is(button, summary, select, input[type="checkbox"]) {
  cursor: pointer;
}
.flow-page :focus-visible {
  outline: 3px solid var(--fl-accent);
  outline-offset: 3px;
}
.flow-page h1 {
  font-size: clamp(1.85rem, 4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.055em;
  margin: 0;
}
.flow-page h2 {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.45em 0;
}
.flow-page h3 {
  font-size: 0.8rem;
  color: var(--fl-quiet);
  font-weight: 600;
  margin: 0 0 0.6em;
}
.flow-page p {
  line-height: 1.6;
  margin: 0.5em 0;
}
.fl-heading {
  margin: 0.5rem 0 1.55rem;
}
.fl-heading p,
.fl-small {
  color: var(--fl-quiet);
  font-size: 0.87rem;
}
.fl-sheet,
.fl-empty,
.fl-compare,
.fl-source,
.fl-row,
.fl-ok,
.fl-alert {
  min-width: 0;
}
.fl-sheet,
.fl-empty {
  background: var(--fl-surface);
  border: 1px solid var(--fl-line);
  border-radius: 18px;
  margin: 0 0 14px;
  padding: clamp(16px, 3vw, 24px);
}
.fl-sheet > :first-child {
  margin-top: 0;
}
.fl-sheet > :last-child {
  margin-bottom: 0;
}
.fl-source {
  border-top: 1px solid var(--fl-line);
  padding-top: 12px;
  margin: 16px 0 0;
}
.flow-page summary {
  width: fit-content;
  font-weight: 650;
}
.fl-source p,
.fl-compare small,
.fl-event small {
  color: var(--fl-quiet);
  font-size: 0.82rem;
}
.fl-link {
  color: var(--fl-ink);
  text-underline-offset: 3px;
}
.fl-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 18px;
  margin: 0;
}
.fl-facts dt {
  font-size: 0.75rem;
  color: var(--fl-quiet);
  margin-bottom: 0.5em;
}
.fl-facts dd {
  font-weight: 620;
  margin: 0;
}
.fl-actions,
.fl-toolbar,
.fl-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.fl-actions {
  margin: 13px 0;
}
.fl-toolbar {
  justify-content: space-between;
}
.fl-switch {
  width: fit-content;
  background: var(--fl-surface);
  border: 1px solid var(--fl-line);
  border-radius: 24px;
  padding: 3px;
  margin-bottom: 14px;
  gap: 2px;
}
.fl-switch .fl-btn {
  border: 0;
  min-height: 36px;
  padding: 6px 15px;
  background: transparent;
}
.fl-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--fl-line);
  border-radius: 22px;
  background: var(--fl-surface);
  color: var(--fl-ink);
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.84rem !important;
  font-weight: 620 !important;
  text-align: center;
}
.fl-btn:hover,
.fl-row:hover {
  border-color: var(--fl-accent);
}
.fl-btn.primary,
.fl-btn.selected {
  background: var(--fl-accent);
  color: var(--fl-on);
  border-color: var(--fl-accent);
}
.fl-btn.quiet {
  background: var(--fl-tint);
  color: var(--fl-ink);
  border-color: transparent;
}
.fl-btn.danger,
.fl-warn,
.fl-error {
  color: #9e3736;
}
.fl-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.fl-field {
  display: grid;
  gap: 0.45em;
  margin: 13px 0;
  font-weight: 650;
  font-size: 0.84rem;
}
.fl-field input,
.fl-field textarea,
.fl-field select {
  width: 100%;
  min-width: 0;
  background: var(--fl-surface);
  color: var(--fl-ink);
  border: 1px solid var(--fl-line);
  border-radius: 9px;
  padding: 9px 12px;
  min-height: 44px;
  font-weight: 450;
}
.fl-field textarea {
  resize: vertical;
  line-height: 1.65;
}
.fl-field :is(input, textarea)::placeholder {
  color: var(--fl-quiet);
  opacity: 0.85;
}
.fl-file {
  display: grid;
  gap: 9px;
  padding: 16px;
  margin: 8px 0;
  border: 1px dashed var(--fl-accent);
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 650;
}
.fl-file input {
  min-width: 0;
  max-width: 100%;
}
#file-preview:not([hidden]) {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 270px;
  margin: 14px auto;
  object-fit: contain;
}
.fl-check {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  font-size: 0.87rem;
}
.fl-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--fl-accent);
}
.fl-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 13px 0;
}
.fl-pair .fl-field {
  margin: 0;
}
.fl-compare {
  padding: 15px;
  border: 1px solid var(--fl-line);
  border-radius: 12px;
  background: var(--fl-surface);
}
.fl-compare:last-child {
  background: var(--fl-tint);
  border-color: var(--fl-accent);
}
.fl-compare b,
.fl-clock {
  font-variant-numeric: tabular-nums;
  font-size: 1.25rem;
  letter-spacing: -0.045em;
}
.fl-compare p {
  margin: 0.2rem 0;
}
.fl-badge {
  display: inline-block;
  border: 1px solid var(--fl-line);
  color: var(--fl-quiet);
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 0.7rem;
  line-height: 1.5;
}
.fl-ok,
.fl-alert {
  padding: 12px 15px;
  border-left: 3px solid var(--fl-accent);
  font-size: 0.9rem;
  margin: 0.8rem 0;
  border-radius: 0 9px 9px 0;
}
.fl-ok {
  background: var(--fl-tint);
}
.fl-alert {
  border-color: #b35a21;
  background: #fff0d8;
  color: #61330e;
}
.fl-alert p {
  margin: 0.2rem 0;
}
.fl-day {
  margin: 1.2em 0 0.5em !important;
}
.fl-row {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(85px, auto) minmax(0, 1fr) auto;
  align-items: start;
  text-align: left;
  gap: 12px;
  padding: 17px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--fl-line);
  background: var(--fl-surface);
  color: var(--fl-ink);
  border-radius: 13px;
}
.fl-clock {
  font-size: clamp(1.55rem, 2.25vw, 2.25rem);
  font-weight: 720;
  line-height: 1.12;
  color: var(--fl-accent);
}
.fl-clock small,
.fl-event > span:not(.fl-badge),
.fl-event small {
  display: block;
  line-height: 1.5;
  letter-spacing: 0;
  font-size: 0.78rem;
}
.fl-clock small {
  color: var(--fl-quiet);
  font-weight: 450;
}
.fl-event b {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  display: block;
  margin: 3px 0;
}
.fl-event .fl-warn {
  color: #a3480d;
}
.fl-error:empty {
  display: none;
}
[data-theme="print"] .fl-heading h1,
[data-theme="print"] .fl-day {
  font-family: Georgia, "Songti SC", "SimSun", serif;
}
[data-theme="print"] :is(.fl-sheet, .fl-compare, .fl-row, .fl-empty) {
  border-radius: 2px;
}
[data-theme="print"] .fl-row {
  border-width: 0 0 1px;
}
[data-theme="orbit"] :is(.fl-sheet, .fl-empty, .fl-row) {
  border-radius: 8px;
}
[data-theme="orbit"] .fl-btn.danger,
[data-theme="orbit"] .fl-error,
[data-theme="orbit"] .fl-event .fl-warn {
  color: #ffba90;
}
@media (max-width: 500px) {
  .fl-sheet,
  .fl-empty {
    padding: 15px;
  }
  .fl-row {
    grid-template-columns: 68px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 13px 10px;
  }
  .fl-facts {
    grid-template-columns: 1fr;
  }
  .fl-facts div {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 8px;
  }
  .fl-facts dt {
    margin: 0;
    align-self: center;
  }
  .fl-pair {
    gap: 6px;
  }
  .fl-compare {
    padding: 10px;
  }
  .fl-toolbar {
    display: block;
  }
  .fl-btn {
    min-height: 44px;
  }
  .fl-field input,
  .fl-field select,
  .fl-field textarea {
    font-size: 16px;
  }
}
