:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #0ea5e9;
  --success: #059669;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 28%),
    radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.08), transparent 24%),
    var(--bg);
  min-height: 100vh;
}

.page-home {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 48px;
}

.home-shell {
  width: min(920px, 100%);
}

.home-header {
  text-align: center;
  margin-bottom: 28px;
}

.brand-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-header h1 {
  margin: 14px 0 8px;
  font-size: clamp(28px, 4vw, 40px);
}

.subtitle,
.upload-hint,
.link-hint,
.qr-tip {
  color: var(--muted);
  line-height: 1.6;
}

.home-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 28px;
}

.sidebar-card {
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 22px;
  position: sticky;
  top: 24px;
}

.qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.qr-panel img,
.qr-image {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
  max-width: 100%;
  height: auto;
}

.link-panel label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
}

.link-panel .link-hint {
  margin: 10px 0 0;
  font-size: 14px;
}

.link-row {
  display: flex;
  gap: 10px;
}

.link-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  background: #f8fafc;
  word-break: break-all;
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.step {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.notice-text {
  color: #94a3b8;
  font-size: 13px;
  margin-top: 4px;
}

.page-mobile {
  padding: 16px 14px 32px;
}

.mobile-shell {
  width: min(560px, 100%);
  margin: 0 auto;
}

.mobile-header h1 {
  margin: 0 0 6px;
  font-size: 28px;
}

.mobile-header p {
  margin: 0 0 18px;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 14px;
}

.upload-card {
  text-align: center;
}

.pick-label {
  display: block;
  cursor: pointer;
  margin-bottom: 0;
}

.pick-label.disabled {
  opacity: 0.55;
  pointer-events: none;
}

.upload-card input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pending-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.pending-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.pending-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pending-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.history-card {
  text-align: left;
}

.history-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.history-item {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  aspect-ratio: 1;
  cursor: pointer;
}

.history-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.history-label {
  position: absolute;
  left: 6px;
  top: 6px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 999px;
  pointer-events: none;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.image-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
}

.image-viewer-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: calc(100vh - 32px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-viewer-panel img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 32px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #0f172a;
}

.image-viewer-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

body.viewer-open {
  overflow: hidden;
}

#uploadBtn {
  margin-top: 12px;
}

#uploadBtn:disabled,
.pick-label.disabled {
  opacity: 0.55;
  pointer-events: none;
}

.preview-wrap {
  margin-top: 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.preview-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.field-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.field-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  background: #fff;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 0;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 8px 8px 8px 14px;
  font-size: 14px;
}

.tag-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.tag-chip-name {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.tag-chip-remove {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tag-chip.active .tag-chip-remove {
  background: rgba(255, 255, 255, 0.22);
}

.tag-chip-remove:hover {
  background: rgba(220, 38, 38, 0.18);
  color: #b91c1c;
}

.tag-chip.active .tag-chip-remove:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.advanced-panel summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}

.advanced-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.btn {
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-block {
  width: 100%;
}

.btn-large {
  min-height: 54px;
  font-size: 18px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:active {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #eef2ff;
  color: var(--primary);
}

.btn-accent {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.loading-box {
  text-align: center;
  padding: 18px 0;
  color: var(--muted);
}

.spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 10px;
  border: 3px solid #dbeafe;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  z-index: 20;
  max-width: calc(100% - 32px);
  text-align: center;
}

.success-banner {
  background: #ecfdf5;
  color: var(--success);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 600;
  margin-bottom: 14px;
}

.hidden {
  display: none !important;
}

.home-shell.home-wide {
  width: min(1100px, 100%);
}

.desktop-grid {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.desktop-grid > * {
  min-width: 0;
}

.desktop-work-card {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.desktop-work-card .work-block + .work-block {
  margin-top: 18px;
}

.desktop-work-card .form-block .field-label {
  margin-top: 0;
}

.section-title {
  margin: 0 0 18px;
  font-size: 20px;
}

.waiting-box {
  text-align: center;
  padding: 28px 16px;
  border: 2px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  margin-bottom: 0;
}

.waiting-icon {
  font-size: 42px;
  margin-bottom: 8px;
}

.desktop-upload-box {
  margin-bottom: 0;
}

.paste-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 16px;
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.paste-zone:hover,
.paste-zone:focus-visible {
  border-color: var(--accent, #2563eb);
  background: #eff6ff;
  outline: none;
}

.paste-zone-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text, #0f172a);
}

.paste-zone-hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.paste-zone kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
  font-family: inherit;
}

.desktop-pending-box {
  margin-top: 14px;
}

.desktop-pending-grid {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}

.desktop-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.preview-box {
  margin-bottom: 0;
}

.preview-box .field-label {
  margin-top: 0;
}

.preview-box .thumb-grid {
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.result-section {
  margin-top: 0;
}

.result-section .success-banner {
  margin-bottom: 12px;
}

.result-section .preview-wrap {
  max-height: 420px;
  overflow: auto;
}

.result-section .preview-wrap img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.success-box,
.error-box {
  margin-top: 14px;
}

.error-text {
  color: #dc2626;
  text-align: center;
  margin: 0;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 72px);
  gap: 8px;
  margin-bottom: 12px;
  justify-content: start;
}

.thumb-item {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f8fafc;
  flex-shrink: 0;
}

.thumb-item--sync-waiting {
  background: #f1f5f9;
}

.thumb-item--sync-active {
  background: #eff6ff;
}

.thumb-sync-ring {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
}

.thumb-sync-ring svg {
  width: 100%;
  height: 100%;
}

.thumb-sync-ring .ring-bg {
  fill: none;
  stroke: rgba(15, 23, 42, 0.12);
  stroke-width: 2.5;
}

.thumb-sync-ring .ring-fill {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.thumb-sync-ring .ring-fill--done {
  stroke: #22c55e;
}

.thumb-sync-ring .ring-fill--active {
  stroke: #22c55e;
  transition: stroke-dashoffset 0.2s ease;
}

.thumb-sync-ring .ring-fill--waiting {
  stroke: rgba(148, 163, 184, 0.55);
}

.sync-batch-progress {
  margin-bottom: 10px;
}

.sync-batch-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.4;
}

.sync-batch-progress-text {
  color: #334155;
  font-weight: 600;
}

.sync-batch-progress-pct {
  color: #16a34a;
  font-weight: 700;
}

.thumb-sync-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: #1e293b;
  background: rgba(255, 255, 255, 0.88);
  padding: 3px 6px;
  border-radius: 999px;
  pointer-events: none;
}

.thumb-item--sync-active .thumb-sync-label {
  color: #1d4ed8;
}

.thumb-item--sync-waiting .thumb-sync-label {
  color: #64748b;
}

.thumb-item img + .thumb-sync-ring + .thumb-sync-label,
.thumb-item .thumb-sync-ring + .thumb-sync-label {
  color: #15803d;
}

.sync-batch-progress.hidden {
  display: none;
}

.sync-batch-progress-track {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.sync-batch-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-label {
  position: absolute;
  left: 6px;
  top: 6px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 999px;
}

.thumb-remove {
  position: absolute;
  right: 4px;
  top: 4px;
  z-index: 2;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.thumb-remove:hover {
  background: rgba(185, 28, 28, 0.92);
}

.field-input-attention {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.generate-hint {
  margin: -6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #b45309;
  text-align: center;
}

.generate-hint.hidden {
  display: none;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.field-label-row .field-label {
  margin-bottom: 0;
}

.field-link-btn {
  padding: 0;
  border: none;
  background: none;
  color: #2563eb;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.field-link-btn:hover {
  text-decoration: underline;
}

.remark-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.remark-modal.hidden {
  display: none;
}

.remark-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.remark-modal-panel {
  position: relative;
  width: min(420px, 100%);
  padding: 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.remark-modal-title {
  margin: 0 0 8px;
  font-size: 18px;
}

.remark-modal-desc {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.remark-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.history-panel {
  margin-top: 24px;
  padding: 22px 24px;
}

.history-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.history-col-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.history-heading {
  margin: 0;
  font-size: 17px;
}

.history-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.history-desc {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.history-day-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(70vh, 720px);
  overflow-y: auto;
  padding-right: 4px;
}

.history-day-group {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  overflow: hidden;
}

.history-day-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  user-select: none;
}

.history-day-summary::-webkit-details-marker {
  display: none;
}

.history-day-summary::before {
  content: '▸';
  margin-right: 8px;
  color: var(--muted);
  transition: transform 0.15s ease;
}

.history-day-group[open] .history-day-summary::before {
  transform: rotate(90deg);
}

.history-day-label {
  flex: 1;
}

.history-day-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
}

.history-day-group .history-grid-desktop {
  padding: 0 12px 12px;
  max-height: none;
}

.history-entry {
  position: relative;
  width: 72px;
}

.history-entry-time {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.2;
  color: var(--muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.history-grid-desktop {
  display: grid;
  grid-template-columns: repeat(auto-fill, 72px);
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.history-card-item {
  position: relative;
  width: 72px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  aspect-ratio: 1;
  cursor: pointer;
}

.history-card-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #f1f5f9;
}

.history-card-meta {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.history-session-batch {
  padding: 0 12px 14px;
  border-bottom: 1px solid var(--line);
}

.history-session-batch:last-child {
  border-bottom: none;
  padding-bottom: 12px;
}

.history-batch-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.history-action-btn {
  padding: 6px 12px;
  font-size: 12px;
  line-height: 1.3;
  border-radius: 8px;
}

.history-action-btn-block {
  display: block;
  width: 72px;
  margin-top: 6px;
  padding: 5px 4px;
  font-size: 11px;
}

.history-action-btn-danger {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fff5f5;
}

.history-action-btn-danger:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

.history-delete-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.history-delete-btn:hover {
  background: rgba(185, 28, 28, 0.92);
}

.history-entry-output {
  width: 72px;
}

.history-grid-outputs {
  padding: 0 12px 12px;
  max-height: none;
}

.history-empty {
  margin: 0;
  padding: 20px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.history-empty.hidden {
  display: none;
}

@media (max-width: 960px) {
  .history-columns {
    grid-template-columns: 1fr;
  }

  .desktop-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .desktop-grid {
    grid-template-columns: 1fr;
  }

  .home-card,
  .home-steps {
    grid-template-columns: 1fr;
  }

  .link-row {
    flex-direction: column;
  }
}

.font-tune-panel {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  background: #fafbff;
}

.font-tune-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.font-tune-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text, #1e293b);
}

.font-slider-row {
  margin-bottom: 14px;
}

.font-slider-row .field-label-row {
  margin-bottom: 8px;
}

.scale-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary, #2563eb);
  min-width: 48px;
  text-align: right;
}

.font-slider {
  width: 100%;
  accent-color: var(--primary, #2563eb);
  cursor: pointer;
}

.font-tune-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted, #64748b);
  line-height: 1.5;
}

.live-preview-wrap {
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.live-preview-img {
  display: block;
  width: 100%;
  height: auto;
}

.live-preview-status {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted, #64748b);
  text-align: center;
}
