.hs-fc-wrap { display: flex; flex-direction: column; gap: 16px; max-width: 100%; min-width: 0; }
.hs-fc-bar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 100%;
  min-width: 0;
}
.hs-fc-top {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
}
.hs-fc-input-wrap {
  flex: 1 1 260px;
  max-width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 12px;
  min-height: 44px;
}
.hs-fc-input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--font-hanzi);
  font-size: 22px;
  color: var(--text);
  min-width: 0;
  outline: none;
}
.hs-fc-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.hs-fc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hs-fc-presets {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hs-fc-presets-lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hs-chip {
  min-height: 32px;
  padding: 4px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.hs-chip:hover { border-color: var(--primary); color: var(--primary); }
.hs-fc-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.hs-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.hs-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.hs-field select {
  width: 100%;
  height: 38px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
}
.hs-fc-toggles {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.hs-chk-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hs-chk-lbl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.hs-chk-lbl input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}
.hs-fc-status {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  margin: 0;
}
.hs-fc-pages {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  max-width: 100%;
  min-width: 0;
}
.hs-fc-sheet {
  width: 100%;
  max-width: 820px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 24px;
  color: var(--text);
  min-width: 0;
}
.hs-fc-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--text);
}
.hs-fc-sheet-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.hs-fc-sheet-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.hs-fc-grid {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.hs-fc-grid.is-2x4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hs-fc-grid.is-3x3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hs-fc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  position: relative;
}
.hs-fc-card.has-cut {
  border: 1.5px dashed var(--muted);
  border-radius: 2px;
}
.hs-fc-card-strokes {
  align-self: flex-end;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1;
  min-height: 12px;
}
.hs-fc-glyph {
  width: 96px;
  height: 96px;
  max-width: 100%;
}
.hs-fc-grid.is-3x3 .hs-fc-glyph {
  width: 84px;
  height: 84px;
}
.hs-fc-glyph svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hs-fc-py {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.hs-fc-mean {
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.hs-fc-sheet-foot {
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.hs-fc-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--muted);
}
@media (max-width: 640px) {
  .hs-fc-bar { padding: 12px; }
  .hs-fc-input-wrap { flex-basis: 100%; max-width: 100%; }
  .hs-fc-input { min-width: 100px; }
  .hs-fc-actions { width: 100%; }
  .hs-fc-actions .hs-btn { flex: 1 1 auto; }
  .hs-fc-options { grid-template-columns: 1fr; }
  .hs-fc-sheet { padding: 12px; }
  .hs-fc-grid.is-2x4,
  .hs-fc-grid.is-3x3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hs-fc-card { padding: 8px; }
  .hs-fc-glyph,
  .hs-fc-grid.is-3x3 .hs-fc-glyph { width: 72px; height: 72px; }
}
@media print {
  .hs-fc-pages { margin-top: 0 !important; gap: 0 !important; }
  .hs-fc-sheet {
    max-width: none !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 8mm 10mm !important;
    break-after: page;
    page-break-after: always;
  }
  .hs-fc-sheet:last-child { break-after: auto; page-break-after: auto; }
  .hs-fc-grid.is-2x4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 6px !important; }
  .hs-fc-grid.is-3x3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 6px !important; }
  .hs-fc-card { border-color: transparent !important; }
  .hs-fc-card.has-cut { border: 1.5px dashed #64748b !important; }
}
