/* src/styles.css */
.flow-fht-shell {
  --fht-paper: #f5efe4;
  --fht-paper-deep: #ece4d3;
  --fht-ink: #1a1814;
  --fht-ink-soft: #5a5347;
  --fht-ink-faint: #9a9485;
  --fht-rule: #d4cab5;
  --fht-accent: #c8553d;
  --fht-accent-soft: #f0d9d2;
  --fht-success: #5a8c3a;
  --fht-success-soft: #d8e4c8;
  --fht-focus: #2d6cdf;
  --fht-error: #b8423a;
  --fht-radius-sm: 4px;
  --fht-radius-md: 8px;
  --fht-radius-lg: 14px;
  --fht-gap-sm: 8px;
  --fht-gap-md: 16px;
  --fht-gap-lg: 24px;
  --fht-font-display:
    Georgia,
    "Times New Roman",
    serif;
  --fht-font-body:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-family: var(--fht-font-body);
  color: var(--fht-ink);
  background: var(--fht-paper);
  color-scheme: light;
  max-width: 640px;
  margin: 0 auto;
  padding: var(--fht-gap-md) var(--fht-gap-md) 0;
  box-sizing: border-box;
}
@media (prefers-contrast: more) {
  .flow-fht-shell {
    --fht-paper: #ffffff;
    --fht-ink: #000000;
    --fht-ink-soft: #1a1a1a;
    --fht-ink-faint: #333333;
    --fht-rule: #000000;
    --fht-accent: #8a2a14;
    --fht-focus: #0040c0;
  }
}
.flow-fht-shell *,
.flow-fht-shell *::before,
.flow-fht-shell *::after {
  box-sizing: inherit;
}
.flow-fht-shell :focus-visible {
  outline: 3px solid var(--fht-focus);
  outline-offset: 2px;
}
.flow-fht-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.flow-fht-header-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--fht-gap-md);
  margin-bottom: 8px;
  width: 100%;
}
.flow-fht-heading {
  font-family: var(--fht-font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
  text-align: center;
  flex: 1 1 auto;
  display: none;
}
.flow-fht-header-actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}
.flow-fht-icon-button {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--fht-rule);
  background: var(--fht-paper);
  color: var(--fht-ink);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  font-family: var(--fht-font-body);
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.flow-fht-icon-button:hover {
  background: var(--fht-paper-deep);
  border-color: var(--fht-ink);
}
.flow-fht-icon-button:focus-visible {
  outline: 2px solid var(--fht-focus);
  outline-offset: 2px;
}
.flow-fht-body {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-fht-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--fht-gap-md);
  color: var(--fht-ink-soft);
}
.flow-fht-loading-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--fht-accent);
  animation: flow-fht-pulse 1.4s ease-in-out infinite;
}
.flow-fht-loading-text {
  margin: 0;
  font-size: 15px;
}
@keyframes flow-fht-pulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .flow-fht-loading-dot {
    animation: none;
    opacity: 0.75;
  }
}
.flow-fht-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--fht-gap-md);
  padding: var(--fht-gap-lg);
  background: var(--fht-paper-deep);
  border: 1px solid var(--fht-rule);
  border-radius: var(--fht-radius-md);
  max-width: 480px;
  width: 100%;
}
.flow-fht-error-heading {
  font-family: var(--fht-font-display);
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: var(--fht-error);
  outline: none;
}
.flow-fht-error-message {
  margin: 0;
  font-size: 15px;
  color: var(--fht-ink-soft);
  line-height: 1.5;
}
.flow-fht-fatal {
  padding: 16px 20px;
  border: 1px solid #b8423a;
  background: #fdecea;
  color: #5a1a16;
  border-radius: 8px;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 14px;
  line-height: 1.45;
}
.flow-fht-puzzle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--fht-gap-lg);
  width: 100%;
}
.flow-fht-test-banner {
  display: block;
  width: 100%;
  max-width: 480px;
  padding: 8px 14px;
  background: #fff3cd;
  border: 1px solid #c8a233;
  border-radius: 4px;
  color: #6b4f00;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
}
.flow-fht-tier {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fht-ink-soft);
  font-weight: 600;
}
.flow-fht-tier-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 0 4px;
}
.flow-fht-tier-btns {
  display: flex;
  gap: 3px;
  background: var(--fht-paper-deep);
  border-radius: 8px;
  padding: 3px;
}
.flow-fht-tier-btn {
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--fht-font-body);
  background: transparent;
  color: var(--fht-ink-soft);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.flow-fht-tier-btn.active {
  background: var(--fht-paper);
  color: var(--fht-ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.flow-fht-tier-btn:hover:not(.active) {
  color: var(--fht-ink);
}
.flow-fht-tier-counter {
  font-size: 12px;
  font-weight: 600;
  color: var(--fht-ink-faint);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; background: var(--fht-paper-deep); border: 1.5px solid var(--fht-rule); border-radius: 50%; font-size: 16px; color: var(--fht-ink-soft); cursor: pointer; font-family: var(--fht-font-body); -webkit-tap-highlight-color: transparent; touch-action: manipulation; } .flow-fht-tier-arrow:hover {
  background: var(--fht-rule);
  color: var(--fht-ink);
}
.flow-fht-btn-compact {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--fht-font-body);
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  border: 1.5px solid transparent;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.flow-fht-btn-primary {
  background: var(--fht-accent);
  color: var(--fht-paper);
  border-color: var(--fht-accent);
}
.flow-fht-btn-primary:hover {
  background: var(--fht-ink);
  border-color: var(--fht-ink);
}
.flow-fht-btn-secondary {
  background: transparent;
  color: var(--fht-ink);
  border-color: var(--fht-rule);
}
.flow-fht-btn-secondary:hover {
  background: var(--fht-paper-deep);
  border-color: var(--fht-ink-faint);
}
.flow-fht-btn-ghost {
  background: transparent;
  color: var(--fht-ink-faint);
  border-color: transparent;
  font-size: 12px;
}
.flow-fht-btn-ghost:hover {
  color: var(--fht-ink-soft);
  border-color: var(--fht-rule);
  background: transparent;
}
.flow-fht-next-day-prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--fht-paper-deep);
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  justify-content: space-between;
}
.flow-fht-next-day-msg {
  font-size: 15px;
  color: var(--fht-ink);
  font-weight: 500;
}
.flow-fht-chain {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--fht-gap-sm);
  width: 100%;
}
.flow-fht-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 14px 18px;
  font-family: var(--fht-font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1.5px solid var(--fht-ink);
  border-radius: var(--fht-radius-md);
  background: var(--fht-paper);
  color: var(--fht-ink);
}
.flow-fht-tile-bridge-stub {
  border-style: dashed;
  border-color: var(--fht-ink-faint);
  color: var(--fht-ink-faint);
  background: transparent;
}
.flow-fht-arrow {
  font-size: 22px;
  color: var(--fht-ink-faint);
  user-select: none;
}
.flow-fht-status {
  margin: 0;
  font-size: 14px;
  color: var(--fht-ink-soft);
  text-align: center;
  font-style: italic;
}
.flow-fht-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--fht-paper);
  background: var(--fht-ink);
  border: 1.5px solid var(--fht-ink);
  border-radius: var(--fht-radius-md);
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}
@media (prefers-reduced-motion: reduce) {
  .flow-fht-button {
    transition: none;
  }
}
.flow-fht-button:hover {
  background: var(--fht-accent);
  border-color: var(--fht-accent);
}
.flow-fht-button:active {
  transform: translateY(1px);
}
@media (prefers-reduced-motion: reduce) {
  .flow-fht-button:active {
    transform: none;
  }
}
@media (min-width: 600px) {
  .flow-fht-shell {
    padding: 0;
  }
  .flow-fht-header-row {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--fht-paper);
    border-bottom: 1px solid var(--fht-rule);
    padding: 0 20px;
    height: 52px;
    margin-bottom: 0;
    justify-content: space-between;
  }
  .flow-fht-heading {
    display: block;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }
  .flow-fht-body {
    padding: 20px 16px 0;
  }
  .flow-fht-chain-game .flow-fht-tile {
    max-width: 400px;
    padding: 16px 24px;
    font-size: 22px;
  }
  .flow-fht-tile-active {
    min-height: 64px;
  }
  .flow-fht-keyboard {
    max-width: 500px;
    margin: 0 auto;
  }
  .flow-fht-key {
    height: 58px;
    font-size: 14px;
  }
}
@media (max-width: 600px) {
  .flow-fht-shell {
    padding: 0;
    max-width: 100%;
  }
  .flow-fht-header-row {
    padding: 0 12px;
    height: 48px;
    margin-bottom: 4px;
  }
  .flow-fht-tile {
    padding: 10px 14px;
    font-size: 16px;
  }
  .flow-fht-chain-game .flow-fht-tile {
    max-width: none;
    width: calc(100% - 32px);
  }
  .flow-fht-chain-game {
    padding: 0 8px;
  }
  .flow-fht-keyboard {
    padding: 6px 4px 16px;
  }
  .flow-fht-keyboard-row {
    gap: 4px;
    padding: 0 2px;
  }
  .flow-fht-key {
    height: 54px;
    font-size: 12px;
  }
  .flow-fht-key-wide {
    font-size: 11px;
  }
  .flow-fht-hints-bar {
    padding: 0 8px;
  }
}
.flow-fht-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--fht-gap-md);
  width: 100%;
  outline: none;
}
.flow-fht-game:focus,
.flow-fht-game:focus-visible {
  outline: none;
}
.flow-fht-game-host {
  width: 100%;
}
.flow-fht-chain-game {
  flex-direction: column;
  gap: var(--fht-gap-sm);
  width: 100%;
}
.flow-fht-chain-game .flow-fht-tile {
  min-width: 200px;
  width: 100%;
  max-width: 280px;
  padding: 12px 16px;
  font-size: 20px;
}
.flow-fht-chain-game .flow-fht-arrow {
  font-size: 18px;
  line-height: 1;
}
.flow-fht-tile-fixed {
  background: var(--fht-paper-deep);
  border-color: var(--fht-ink-soft);
}
.flow-fht-tile-locked {
  background: var(--fht-success-soft);
  border-color: var(--fht-success);
  color: var(--fht-ink);
}
.flow-fht-tile-revealed {
  background: var(--fht-paper);
  border-style: dashed;
  color: var(--fht-ink-soft);
  font-style: italic;
}
.flow-fht-tile-active {
  border-width: 2px;
  border-color: var(--fht-focus);
  background: var(--fht-paper);
  min-height: 56px;
  letter-spacing: 0.06em;
}
.flow-fht-tile-empty {
  border-style: dashed;
  border-color: var(--fht-ink-faint);
  color: var(--fht-ink-faint);
  background: transparent;
  letter-spacing: 0.08em;
}
.flow-fht-active-letters {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.flow-fht-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  font-family: var(--fht-font-display);
  font-weight: 700;
}
.flow-fht-letter-revealed {
  color: var(--fht-accent);
}
.flow-fht-letter-typed {
  color: var(--fht-ink);
}
.flow-fht-letter-pill {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8bfaa;
  flex-shrink: 0;
}
.flow-fht-letter-tail {
  color: var(--fht-ink-faint);
  letter-spacing: 4px;
}
@keyframes flow-fht-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.08);
  }
  70% {
    transform: scale(0.96);
  }
  100% {
    transform: scale(1);
  }
}
.flow-fht-tile-pop {
  animation: flow-fht-pop 1.2s ease;
}
@media (prefers-reduced-motion: reduce) {
  .flow-fht-tile-pop {
    animation: none;
  }
}
@keyframes flow-fht-shake {
  0%, 100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}
.flow-fht-shake {
  animation: flow-fht-shake 0.4s ease;
  border-color: var(--fht-error) !important;
}
@media (prefers-reduced-motion: reduce) {
  .flow-fht-shake {
    animation: none;
  }
}
.flow-fht-hints-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 6px 0 4px;
}
.flow-fht-stars {
  display: flex;
  gap: 3px;
  font-size: 20px;
  line-height: 1;
  align-items: center;
}
.flow-fht-star {
  color: var(--fht-accent);
}
.flow-fht-star-empty {
  color: var(--fht-rule);
}
.flow-fht-hint-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--fht-ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 2px;
}
.flow-fht-hint-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--fht-rule);
  background: var(--fht-paper);
  color: var(--fht-ink);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--fht-font-body);
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 80ms ease, border-color 80ms ease;
}
.flow-fht-hint-icon:hover:not(:disabled) {
  background: var(--fht-paper-deep);
  border-color: var(--fht-ink);
}
.flow-fht-hint-icon:active:not(:disabled) {
  background: var(--fht-accent-soft);
}
.flow-fht-hint-icon:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.flow-fht-hints {
  display: none;
}
.flow-fht-hint-button {
  display: none;
}
.flow-fht-keyboard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 8px 4px 12px;
  box-sizing: border-box;
}
.flow-fht-keyboard-row {
  display: flex;
  gap: 5px;
  justify-content: center;
}
.flow-fht-key {
  flex: 1 1 0;
  min-width: 0;
  max-width: 43px;
  height: 58px;
  padding: 0;
  font-family: var(--fht-font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--fht-ink);
  background: #d3d6da;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 80ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.flow-fht-key:hover:not(:disabled) {
  background: #bbbfc4;
}
.flow-fht-key:active:not(:disabled) {
  background: var(--fht-accent-soft);
}
.flow-fht-key:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.flow-fht-key-wide {
  flex: 1.5 1 0;
  max-width: 65px;
  font-size: 12px;
}
@media (prefers-reduced-motion: reduce) {
  .flow-fht-key {
    transition: none;
  }
}
.flow-fht-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--fht-ink);
  color: var(--fht-paper);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 1000;
  max-width: 90vw;
  text-align: center;
}
.flow-fht-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .flow-fht-toast {
    transition: opacity 80ms;
    transform: translateX(-50%);
  }
  .flow-fht-toast.visible {
    transform: translateX(-50%);
  }
}
.flow-fht-saving {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--fht-gap-lg);
  color: var(--fht-ink-soft);
  font-style: italic;
}
.flow-fht-postgame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--fht-gap-lg);
  width: 100%;
}
.flow-fht-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: var(--fht-gap-lg);
  width: 100%;
  max-width: 480px;
  border-radius: var(--fht-radius-md);
  text-align: center;
  outline: none;
}
.flow-fht-banner:focus,
.flow-fht-banner:focus-visible {
  outline: none;
}
.flow-fht-banner-solved {
  background: var(--fht-success-soft);
  border: 2px solid var(--fht-success);
}
.flow-fht-banner-failed {
  background: var(--fht-paper-deep);
  border: 2px solid var(--fht-ink-soft);
}
.flow-fht-banner-heading {
  font-family: var(--fht-font-display);
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  color: var(--fht-ink);
}
.flow-fht-banner-praise {
  margin: 6px 0 2px;
  font-size: 16px;
  font-weight: 600;
  color: var(--fht-ink);
}
.flow-fht-banner-sub {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--fht-ink-soft);
  font-weight: 400;
}
.flow-fht-postgame-tier-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 4px 0;
}
.flow-fht-banner .flow-fht-tier-btns {
  background: rgba(0, 0, 0, 0.08);
}
.flow-fht-banner .flow-fht-tier-btn.active {
  background: rgba(255, 255, 255, 0.7);
}
.flow-fht-banner-tier-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
}
.flow-fht-banner-meta {
  margin: 0;
  font-size: 15px;
  color: var(--fht-ink-soft);
  letter-spacing: 0.04em;
}
.flow-fht-chain-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 280px;
}
.flow-fht-tile-summary {
  min-width: 200px;
  width: 100%;
  padding: 10px 14px;
  font-size: 17px;
}
.flow-fht-compound-label {
  margin: 2px 0;
  font-size: 12px;
  color: var(--fht-ink-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.flow-fht-stats-panel {
  width: 100%;
  max-width: 480px;
  padding: var(--fht-gap-md);
  border: 1px solid var(--fht-rule);
  border-radius: var(--fht-radius-md);
  background: var(--fht-paper);
}
.flow-fht-stats-heading {
  margin: 0 0 var(--fht-gap-sm) 0;
  font-family: var(--fht-font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--fht-ink);
}
.flow-fht-stats-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  margin: 0;
}
.flow-fht-stats-grid dt {
  color: var(--fht-ink-soft);
  font-size: 14px;
  margin: 0;
}
.flow-fht-stats-grid dd {
  color: var(--fht-ink);
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  text-align: right;
}
.flow-fht-stats-loading,
.flow-fht-stats-error {
  color: var(--fht-ink-soft);
  font-size: 14px;
  font-style: italic;
  margin: 0;
}
.flow-fht-postgame-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
}
.flow-fht-button-primary {
  background: var(--fht-accent);
  border-color: var(--fht-accent);
  color: var(--fht-paper);
}
.flow-fht-button-primary:hover {
  background: var(--fht-ink);
  border-color: var(--fht-ink);
}
.flow-fht-report-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 480px;
  padding: var(--fht-gap-md);
  border: 1px solid var(--fht-rule);
  border-radius: var(--fht-radius-md);
  background: var(--fht-paper-deep);
}
.flow-fht-report-heading {
  margin: 0;
  font-family: var(--fht-font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--fht-ink);
}
.flow-fht-report-label {
  font-size: 13px;
  color: var(--fht-ink-soft);
  font-weight: 600;
  margin-top: 4px;
}
.flow-fht-report-select,
.flow-fht-report-note {
  width: 100%;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--fht-ink);
  background: var(--fht-paper);
  border: 1px solid var(--fht-rule);
  border-radius: 4px;
  box-sizing: border-box;
}
.flow-fht-report-note {
  resize: vertical;
  min-height: 64px;
}
.flow-fht-report-status {
  margin: 0;
  font-size: 13px;
  color: var(--fht-ink-soft);
  min-height: 18px;
}
.flow-fht-report-buttons {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 4px;
}
dialog.flow-fht-dialog-host {
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  outline: none;
}
dialog.flow-fht-dialog-host::backdrop {
  background: rgba(20, 18, 15, 0);
  transition: background 200ms ease;
}
dialog.flow-fht-dialog-host.open::backdrop {
  background: rgba(20, 18, 15, 0.65);
}
.flow-fht-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 85vh;
  background: var(--fht-paper);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
  transform: translateY(100%);
  transition: transform 240ms cubic-bezier(0.25, 0.1, 0.25, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
dialog.flow-fht-dialog-host.open .flow-fht-sheet {
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .flow-fht-sheet,
  dialog.flow-fht-dialog-host::backdrop {
    transition: none;
  }
}
@media (min-width: 640px) {
  .flow-fht-sheet {
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 520px;
    max-width: calc(100vw - 32px);
    max-height: min(80vh, 640px);
    border-radius: 16px;
    transform: translate(-50%, calc(-50% + 24vh));
  }
  dialog.flow-fht-dialog-host.open .flow-fht-sheet {
    transform: translate(-50%, -50%);
  }
}
.flow-fht-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--fht-rule);
  border-radius: 2px;
  margin: 10px auto 6px;
}
.flow-fht-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px 12px;
  border-bottom: 1px solid var(--fht-rule);
}
.flow-fht-sheet-heading {
  margin: 0;
  font-family: var(--fht-font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--fht-ink);
  outline: none;
}
.flow-fht-sheet-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--fht-ink-soft);
  cursor: pointer;
  border-radius: 50%;
}
.flow-fht-sheet-close:hover {
  background: var(--fht-paper-deep);
  color: var(--fht-ink);
}
.flow-fht-sheet-body {
  padding: 16px 20px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.flow-fht-help p {
  margin: 0 0 12px;
  color: var(--fht-ink);
  font-size: 15px;
  line-height: 1.5;
}
.flow-fht-help-example {
  margin: 16px auto;
  padding: 14px 18px;
  background: var(--fht-paper-deep);
  border-radius: 8px;
  text-align: center;
  font-family: var(--fht-font-display);
  letter-spacing: 0.04em;
  max-width: 220px;
}
.flow-fht-help-example-row {
  font-size: 18px;
  padding: 6px 0;
  color: var(--fht-ink);
  font-weight: 700;
}
.flow-fht-help-example-bridge {
  color: var(--fht-success);
}
.flow-fht-help-example-arrow {
  color: var(--fht-ink-faint);
  font-size: 14px;
}
.flow-fht-help-list {
  margin: 0 0 12px;
  padding-left: 18px;
}
.flow-fht-help-list li {
  margin-bottom: 6px;
  color: var(--fht-ink);
  font-size: 15px;
  line-height: 1.5;
}
.flow-fht-help-tip {
  padding: 10px 12px;
  background: var(--fht-paper-deep);
  border-radius: 6px;
  font-size: 14px;
  margin: 8px 0 0 !important;
  color: var(--fht-ink-soft);
}
.flow-fht-settings-intro {
  margin: 0 0 16px;
  color: var(--fht-ink-soft);
  font-size: 14px;
}
.flow-fht-settings-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--fht-rule);
}
.flow-fht-settings-row:first-of-type {
  border-top: none;
}
.flow-fht-settings-label {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  color: var(--fht-ink);
}
.flow-fht-settings-sub {
  color: var(--fht-ink-soft);
  font-size: 13px;
  font-weight: 400;
}
.flow-fht-settings-version {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--fht-rule);
  color: var(--fht-ink-faint);
  font-size: 12px;
  text-align: center;
}
.flow-fht-beta-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  max-width: 480px;
  padding: 8px 10px;
  background: var(--fht-paper-deep);
  border: 1px solid var(--fht-rule);
  border-radius: 6px;
  font-size: 13px;
}
.flow-fht-beta-nav-info {
  flex: 1 1 auto;
  text-align: center;
  color: var(--fht-ink);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.flow-fht-beta-nav-info-sub {
  display: block;
  color: var(--fht-ink-soft);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 1px;
}
.flow-fht-beta-nav-button {
  flex: 0 0 auto;
  min-width: 40px;
  height: 36px;
  padding: 0 10px;
  background: var(--fht-paper);
  border: 1px solid var(--fht-rule);
  border-radius: 4px;
  color: var(--fht-ink);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--fht-font-body);
}
.flow-fht-beta-nav-button:hover:not(:disabled) {
  background: var(--fht-rule);
}
.flow-fht-beta-nav-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
/*# sourceMappingURL=flow-fht.css.map */
