/**
 * Sign PDF — workspace styles
 * ─────────────────────────────────────────────────────────────────────
 * Renders after a file is selected (inside #workspace-page).
 * Scoped under .sp-workspace so it never leaks into other tool pages.
 * Uses the shared design tokens from assets/css/variables.min.css so it
 * automatically follows the site's light/dark theme.
 */

.sp-workspace,
.sp-workspace *,
.sp-workspace *::before,
.sp-workspace *::after { box-sizing: border-box; }
.sp-workspace { font-family: var(--font-base); color: var(--color-text); }
.sp-workspace button,
.sp-workspace input { font-family: inherit; }

.sp-layout {
  display: flex;
  align-items: stretch;
  min-height: calc(100vh - var(--header-height, 68px));
  background: var(--color-bg);
}

.sp-main {
  flex: 1;
  padding: 28px 32px;
  min-width: 0;
}
.sp-main-title {
  font-size: .92rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 22px;
  word-break: break-word;
}

/* ── Settings block ── */
.sp-settings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 22px;
}
.sp-settings.is-desktop { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }

.sp-setting-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition-fast);
}
.sp-setting-card:hover { box-shadow: var(--shadow-sm); }
.sp-setting-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.sp-fmt-group { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-fmt-btn {
  flex: 1;
  min-width: 60px;
  padding: 9px 8px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-weight: 700;
  font-size: .8rem;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: var(--transition-fast);
  text-align: center;
}
.sp-settings.is-desktop .sp-fmt-btn { padding: 11px 8px; font-size: .85rem; }
.sp-fmt-btn.is-active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

@media (max-width: 480px) {
  .sp-settings:not(.is-desktop) { grid-template-columns: 1fr; }
}

/* ── Preview grid ── */
.sp-preview-section { margin-top: 0; }
.sp-preview-title {
  font-size: .92rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sp-preview-hint { font-size: .76rem; color: var(--color-text-muted); font-weight: 500; opacity: .8; }

.sp-images-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.sp-preview-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.sp-preview-img-wrap {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border-bottom: 1.5px solid var(--color-border);
  overflow: hidden;
}
.sp-preview-img-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sp-preview-placeholder { color: var(--color-text-muted); display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: .7; }
.sp-preview-placeholder svg { width: 30px; height: 30px; }
.sp-preview-placeholder span { font-size: .78rem; font-weight: 600; }

.sp-preview-info { padding: 10px 12px; width: 100%; text-align: center; }
.sp-preview-tag {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: var(--color-text-muted); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sp-preview-size { font-size: .86rem; font-weight: 800; }

.sp-page-badge {
  position: absolute; top: 8px; left: 8px; background: var(--color-primary); color: #fff;
  font-size: .68rem; font-weight: 800; padding: 3px 8px; border-radius: 999px;
  box-shadow: 0 3px 8px rgba(229, 50, 45, .3); z-index: 2;
}
.sp-card-actions { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; z-index: 2; }
.sp-card-btn {
  width: 26px; height: 26px; border-radius: 50%; border: none; background: rgba(255,255,255,.92);
  color: var(--gray-600, #6c757d); display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.15); transition: var(--transition-fast);
}
.sp-card-btn svg { width: 13px; height: 13px; }
.sp-card-btn:hover { background: #fff; color: var(--color-primary); }
.sp-card-btn.is-hidden { display: none; }

.sp-spinner {
  width: 22px; height: 22px; border: 2.5px solid var(--color-border);
  border-top-color: var(--color-primary); border-radius: 50%; animation: sp-spin .7s linear infinite;
}
@keyframes sp-spin { to { transform: rotate(360deg); } }

.sp-stats-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; margin-top: 22px; }
.sp-stat-card { background: var(--color-surface); border: 1.5px solid var(--color-border); border-radius: 14px; padding: 14px; text-align: center; }
.sp-stat-val { font-size: 1.2rem; font-weight: 900; }
.sp-stat-label { font-size: .68rem; color: var(--color-text-muted); font-weight: 600; margin-top: 4px; text-transform: uppercase; letter-spacing: .4px; }

.sp-error {
  margin-top: 16px;
  background: var(--color-primary-light);
  border: 1px solid var(--color-primary);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--color-primary-dark);
  font-size: .82rem;
  display: none;
}

/* ── Sidebar ── */
.sp-sidebar {
  width: 420px;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.sp-sidebar-top { flex: 1; overflow-y: auto; padding: 26px 22px 20px; }
.sp-sidebar-title { font-size: 1.5rem; font-weight: 900; margin-bottom: 18px; }

.sp-info-box { background: var(--blue-light); border: 1px solid var(--blue); border-radius: 12px; padding: 14px; display: flex; gap: 10px; margin-bottom: 16px; }
.sp-info-box svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.sp-info-text { font-size: .82rem; line-height: 1.6; color: var(--blue); }

.sp-progress { margin-top: 18px; display: none; }
.sp-progress-bar-wrap { width: 100%; height: 8px; border-radius: 999px; background: var(--color-border); overflow: hidden; margin-bottom: 8px; }
.sp-progress-bar { height: 100%; width: 0; background: var(--color-primary); border-radius: 999px; transition: width .3s; }
.sp-progress-text { font-size: .8rem; color: var(--color-text-muted); }

.sp-success { margin-top: 18px; background: var(--color-surface); border: 1px solid var(--green); border-radius: 14px; padding: 18px; text-align: center; display: none; }
.sp-success h3 { font-size: 1.05rem; }
.sp-success-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--green-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; color: var(--green); }
.sp-success-icon svg { width: 22px; height: 22px; }
.sp-success-desc { font-size: .85rem; color: var(--color-text-muted); margin-top: 6px; }
.sp-btn-again { margin-top: 12px; background: none; border: none; color: var(--color-primary); cursor: pointer; font-weight: 700; display: block; width: 100%; padding: 6px; }

.sp-sidebar-bottom { position: sticky; bottom: 0; background: var(--color-surface); border-top: 1px solid var(--color-border); padding: 18px; }
.sp-btn-convert {
  width: 100%;
  height: 64px;
  border: none;
  border-radius: 18px;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: var(--transition-fast);
  box-shadow: 0 10px 25px rgba(229, 50, 45, .25);
}
.sp-btn-convert:hover:not(:disabled) { background: var(--color-primary-dark); }
.sp-btn-convert:disabled { opacity: .5; cursor: not-allowed; }
.sp-btn-convert.is-download { background: var(--green); box-shadow: 0 10px 25px rgba(46, 125, 50, .25); }
.sp-btn-convert.is-download:hover:not(:disabled) { filter: brightness(0.92); }
.sp-btn-icon { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; }
.sp-btn-icon svg { width: 18px; height: 18px; }
.sp-privacy-note { margin-top: 10px; text-align: center; font-size: .7rem; color: var(--color-text-muted); }
.sp-privacy-note svg { width: 12px; height: 12px; vertical-align: -2px; margin-right: 3px; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .sp-sidebar { width: 360px; }
  .sp-main { padding: 24px; }
}
@media (max-width: 768px) {
  .sp-layout { flex-direction: column; min-height: 0; }
  .sp-main { width: 100%; padding: 16px 14px 130px; }
  .sp-images-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .sp-sidebar {
    position: fixed; left: 0; bottom: 0; top: auto; width: 100%; height: auto;
    border-left: none; border-top: 1px solid var(--color-border);
    z-index: 999; box-shadow: 0 -5px 20px rgba(0,0,0,.08);
  }
  .sp-sidebar-top { display: none; }
  .sp-sidebar-bottom { padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); border-top: none; }
  .sp-btn-convert { height: 58px; border-radius: 16px; font-size: 1rem; }
  .sp-privacy-note { display: none; }
}
@media (max-width: 480px) {
  .sp-stats-row { grid-template-columns: 1fr 1fr; }
  .sp-preview-img-wrap { height: 120px; }
  .sp-btn-convert { height: 54px; font-size: .95rem; }
}

/* ═══════════════ Sign PDF — specific styles ═══════════════ */
.sp-no-scroll { overflow: hidden; }
.sp-main { background: var(--color-bg); }

/* ── Pages ── */
.sp-pages { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; }
.sp-page {
  position: relative; background: #fff; max-width: 100%;
  border: 1px solid var(--color-border); border-radius: 4px; box-shadow: var(--shadow-md);
  user-select: none; -webkit-user-select: none;
}
.sp-page canvas { display: block; width: 100%; height: 100%; border-radius: 4px; }
.sp-overlay { position: absolute; inset: 0; overflow: hidden; border-radius: 4px; }
.sp-page-num {
  position: absolute; left: 50%; bottom: -1px; transform: translate(-50%, 100%);
  font-size: .72rem; font-weight: 700; color: var(--color-text-muted); padding-top: 4px; pointer-events: none;
}
.sp-pages { padding-bottom: 20px; }

/* ── Placed fields ── */
.sp-field {
  position: absolute; cursor: move; touch-action: none; outline: none;
  border: 1.5px dashed transparent; border-radius: 4px; transition: border-color .12s, background .12s;
}
.sp-field:hover { border-color: var(--color-primary); background: rgba(229, 50, 45, .05); }
.sp-field.is-selected { border-color: var(--color-primary); background: rgba(229, 50, 45, .07); }
.sp-fbody { width: 100%; height: 100%; display: flex; align-items: center; }
.sp-fbody img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; display: block; }
.sp-f-name .sp-fbody, .sp-f-date .sp-fbody, .sp-f-text .sp-fbody {
  color: #111; white-space: nowrap; overflow: hidden; line-height: 1; outline: none;
}
.sp-fbody[contenteditable="true"] { cursor: text; background: #fffbe6; }
.sp-ftools {
  position: absolute; top: -34px; right: 0; display: none; gap: 4px; z-index: 5;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 8px; padding: 3px; box-shadow: var(--shadow-sm);
}
.sp-field.is-selected .sp-ftools { display: flex; }
.sp-ftool {
  width: 26px; height: 26px; border: none; border-radius: 6px; background: transparent;
  color: var(--color-text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.sp-ftool svg { width: 15px; height: 15px; }
.sp-ftool:hover { background: var(--color-bg); color: var(--color-primary); }
.sp-fhandle {
  position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--color-primary); border: 2px solid #fff; cursor: nwse-resize; display: none; touch-action: none; z-index: 4;
}
.sp-field.is-selected .sp-fhandle { display: block; }

/* ── Palette ── */
.sp-palette { display: flex; flex-direction: column; gap: 18px; margin-bottom: 18px; }
.sp-pal-group { display: flex; flex-direction: column; gap: 8px; }
.sp-pal-label { font-size: .8rem; font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .5px; }
.sp-pal-type {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; font-weight: 700; font-size: .9rem;
  border: 1.5px solid var(--color-primary); border-radius: var(--radius-sm); background: var(--color-primary-light); color: var(--color-primary-dark);
}
.sp-pal-radio { width: 14px; height: 14px; border-radius: 50%; border: 4px solid var(--color-primary); background: #fff; flex-shrink: 0; }
.sp-pal-list { display: flex; flex-direction: column; gap: 8px; }
.sp-field-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; cursor: grab;
  background: var(--color-surface); border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
  font: inherit; font-weight: 700; font-size: .9rem; color: var(--color-text); text-align: left; transition: var(--transition-fast);
}
.sp-field-btn svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--color-text-muted); }
.sp-field-btn:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.sp-field-btn:hover svg { color: var(--color-primary); }
.sp-field-btn.is-required { border-color: var(--color-primary); }
.sp-field-btn.is-required svg { color: var(--color-primary); }
.sp-select {
  width: 100%; padding: 10px 12px; font: inherit; font-size: .88rem; font-weight: 600; color: var(--color-text);
  background: var(--color-surface); border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
}
.sp-link-btn {
  display: inline-flex; align-items: center; gap: 8px; background: none; border: none; padding: 6px 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .85rem; color: var(--color-primary);
}
.sp-link-btn svg { width: 16px; height: 16px; }
.sp-link-btn:hover { text-decoration: underline; }

/* Mobile palette: a sticky horizontal strip above the pages */
.sp-palette:not(.is-desktop) {
  flex-direction: row; gap: 8px; overflow-x: auto; margin: 0 -14px 16px; padding: 10px 14px;
  position: sticky; top: var(--header-height, 68px); z-index: 20; background: var(--color-bg);
  border-bottom: 1px solid var(--color-border); -webkit-overflow-scrolling: touch;
}
.sp-palette:not(.is-desktop) .sp-pal-group { flex-direction: row; align-items: center; gap: 8px; flex-shrink: 0; }
.sp-palette:not(.is-desktop) .sp-pal-label,
.sp-palette:not(.is-desktop) .sp-pal-type { display: none; }
.sp-palette:not(.is-desktop) .sp-pal-list { flex-direction: row; }
.sp-palette:not(.is-desktop) .sp-field-btn { width: auto; white-space: nowrap; padding: 9px 12px; font-size: .82rem; }
.sp-palette:not(.is-desktop) .sp-pal-extra { flex-direction: row; }
.sp-palette:not(.is-desktop) .sp-select { width: auto; padding: 8px; }

/* ── Modals ── */
.sp-modal {
  position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center;
  background: var(--color-overlay); padding: 16px; overflow-y: auto;
}
.sp-modal[hidden] { display: none; }
.sp-modal-card {
  width: 100%; max-width: 640px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--color-surface); color: var(--color-text); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 24px;
  font-family: var(--font-base);
}
.sp-modal-sm { max-width: 520px; }
.sp-modal-title { font-size: 1.25rem; font-weight: 900; margin: 0 0 18px; }

.sp-who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sp-who-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 22px 12px;
  background: var(--color-surface); border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
  font: inherit; color: var(--color-text); cursor: pointer; transition: var(--transition-fast);
}
.sp-who-card:hover:not(.is-disabled) { border-color: var(--color-primary); box-shadow: var(--shadow-md); }
.sp-who-card span { font-size: .85rem; color: var(--color-text-muted); }
.sp-who-card.is-disabled { opacity: .55; cursor: not-allowed; }
.sp-who-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--color-primary-light); color: var(--color-primary); display: flex; align-items: center; justify-content: center; }
.sp-who-ico svg { width: 26px; height: 26px; }
.sp-soon { font-style: normal; font-size: .65rem; font-weight: 800; background: var(--color-primary); color: #fff; padding: 2px 7px; border-radius: 999px; margin-left: 4px; vertical-align: 2px; }

.sp-name-row { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.sp-input-wrap { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 180px; }
.sp-input-wrap.sp-in-small { flex: 0 0 120px; min-width: 100px; }
.sp-input-wrap span { font-size: .8rem; font-weight: 700; color: var(--color-text-muted); }
.sp-input-wrap input {
  padding: 11px 12px; font: inherit; font-size: .95rem; color: var(--color-text); background: var(--color-surface);
  border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); outline: none;
}
.sp-input-wrap input:focus { border-color: var(--color-primary); }

.sp-tabs { display: flex; gap: 4px; border-bottom: 1.5px solid var(--color-border); margin-bottom: 16px; overflow-x: auto; }
.sp-tab {
  background: none; border: none; padding: 10px 16px; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; white-space: nowrap;
  color: var(--color-text-muted); border-bottom: 3px solid transparent; margin-bottom: -1.5px;
}
.sp-tab.is-active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

.sp-modes { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.sp-mode {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer;
  background: var(--color-surface); color: var(--color-text-muted); border: 1.5px solid var(--color-border); border-radius: 999px;
}
.sp-mode svg { width: 16px; height: 16px; }
.sp-mode.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

.sp-styles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-height: 280px; overflow-y: auto; padding: 2px; }
.sp-style {
  padding: 8px 12px; min-height: 64px; font-size: 1.7rem; line-height: 1.2; background: var(--color-surface);
  border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sp-style:hover { border-color: var(--color-text-muted); }
.sp-style.is-active { border-color: var(--color-primary); box-shadow: 0 0 0 2px var(--color-primary-light); }

.sp-draw-wrap { position: relative; border: 1.5px dashed var(--color-border); border-radius: var(--radius-md); background: #fff; }
.sp-draw-wrap canvas { display: block; width: 100%; height: 200px; touch-action: none; cursor: crosshair; }
.sp-draw-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #9aa0b0; font-weight: 600; pointer-events: none; }
.sp-clear {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--color-border);
  background: var(--color-surface); color: var(--color-text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.sp-clear svg { width: 16px; height: 16px; }
.sp-clear:hover { color: var(--color-primary); }

.sp-view[data-view="upload"] { position: relative; }
.sp-upload {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 200px; padding: 20px; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); transition: var(--transition-fast);
}
.sp-upload:hover, .sp-upload.dragover { border-color: var(--color-primary); background: var(--color-primary-light); }
.sp-upload span { color: var(--color-text-muted); font-size: .85rem; }
.sp-upload small { color: var(--color-text-muted); font-size: .75rem; margin-top: 6px; }
.sp-upload-preview img { max-width: 260px; max-height: 110px; display: block; margin: 0 auto 10px; background: repeating-conic-gradient(#e9ecf1 0% 25%, #fff 0% 50%) 50% / 14px 14px; border-radius: 6px; }
.sp-upload.has-file strong { display: none; }
.sp-clear-up { top: 10px; right: 10px; }
.sp-clear-up[hidden] { display: none; }

.sp-colors { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: .85rem; font-weight: 700; color: var(--color-text-muted); }
.sp-swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--color-border); cursor: pointer; }
.sp-swatch.is-active { box-shadow: 0 0 0 2.5px var(--color-primary); }

.sp-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.sp-btn-ghost, .sp-btn-primary { font: inherit; font-weight: 800; font-size: .95rem; padding: 12px 26px; border-radius: 12px; cursor: pointer; transition: var(--transition-fast); }
.sp-btn-ghost { background: transparent; color: var(--color-text-muted); border: 1.5px solid var(--color-border); }
.sp-btn-ghost:hover { color: var(--color-text); border-color: var(--color-text-muted); }
.sp-btn-primary { background: var(--color-primary); color: #fff; border: 1.5px solid var(--color-primary); }
.sp-btn-primary:hover:not(:disabled) { background: var(--color-primary-dark); }
.sp-btn-primary:disabled { opacity: .6; cursor: wait; }

@media (max-width: 560px) {
  .sp-who-grid { grid-template-columns: 1fr; }
  .sp-styles { grid-template-columns: 1fr; }
  .sp-modal-card { padding: 18px; }
  .sp-input-wrap.sp-in-small { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .sp-field, .sp-field-btn { transition: none; } }
