.field-preview {
  --fp-ink: var(--review-ink, #10284c);
  --fp-accent: var(--review-accent, #1967d2);
  --fp-muted: var(--review-muted, #455d83);
  --fp-line: var(--review-line, #cbdcf9);
  width: 100%; max-width: 33rem; min-width: 0; color: var(--fp-ink); text-align: left;
  font-family: var(--sc-font-text, system-ui, sans-serif);
}
.fp-console {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0;
  min-width: 0; margin: 0; padding: 0; overflow: hidden; background: #fff;
  border: 1px solid #b6cef7; border-radius: 14px; box-shadow: 0 14px 32px -22px #10284c;
}
.fp-sr, .fp-choice {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.fp-tab {
  display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; margin: 0;
  padding: .5rem; border-bottom: 2px solid transparent; color: var(--fp-muted);
  line-height: 1.3; font-size: .875rem; font-weight: 600; cursor: pointer;
}
.fp-tab svg, .fp-record-head svg, .fp-assets svg, .fp-receipt svg { width: 1.05rem; height: 1.05rem; flex: none; }
.fp-choice:checked + .fp-tab { border-bottom-color: var(--fp-accent); color: var(--fp-accent); background: #e8f0fe; }
.fp-choice:focus-visible + .fp-tab { outline: 2px solid var(--fp-accent); outline-offset: -4px; }
@media (hover: hover) { .fp-tab:hover { background: #e8f0fe; } }
.fp-surface {
  grid-column: 1 / -1; position: relative; isolation: isolate; padding-bottom: 1rem;
  background: var(--review-wash, #e8f0fe); border-top: 1px solid var(--fp-line);
}
.fp-map { position: relative; height: clamp(6.75rem, 11vw, 8rem); overflow: hidden; }
.fp-streets { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.fp-stop { position: absolute; display: grid; justify-items: center; pointer-events: none; }
.fp-stop-field { left: 23.27%; top: 43.94%; }
.fp-stop-office { left: 74.81%; top: 37.88%; }
.fp-stop i {
  position: absolute; width: .72rem; height: .72rem; top: 0; border: 2px solid white; border-radius: 50%;
  transform: translateY(-50%); background: #637ca2; box-shadow: 0 0 0 1px #455d83;
}
.fp-stop > span {
  position: absolute; top: .75rem; padding: .13rem .5rem; white-space: nowrap; border: 1px solid #cbdcf9;
  border-radius: 3px; background: #fffffff5; color: #455d83; font: 600 .7rem/1.35 var(--sc-font-text, system-ui, sans-serif);
}
.fp-field-choice:checked ~ .fp-surface .fp-stop-field i, .fp-office-choice:checked ~ .fp-surface .fp-stop-office i {
  background: var(--fp-accent); box-shadow: 0 0 0 2px var(--fp-accent), 0 0 0 7px #4285f430;
}
.field-preview:not([data-phase]) .fp-office-choice:checked ~ .fp-surface .fp-route { stroke-dasharray: none; }
.fp-record {
  position: relative; margin: -.8rem clamp(.75rem, 3%, 1.25rem) 0;
  border: 1px solid #b6cef7; border-radius: 8px; background: #fff; box-shadow: 0 4px 10px -8px #10284c;
}
.fp-record-head {
  padding: .85rem .95rem 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .4rem; color: var(--fp-muted); line-height: 1.4;
}
.fp-record-head > span:first-child, .fp-assets > span { display: inline-flex; align-items: center; gap: .375rem; font-size: .775rem; }
.fp-record-head > span:first-child { font-weight: 550; }
.fp-record-head svg { color: var(--fp-accent); }
.fp-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .45rem; border: 1px dashed currentColor; border-radius: 4px; background: #fff; color: var(--fp-muted); font-size: .7rem; font-weight: 600; }
.fp-badge::before { content: ""; display: block; width: .35rem; height: .35rem; flex: none; border: 1px solid currentColor; border-radius: 50%; background: transparent; }
.fp-office-choice:checked ~ .fp-surface .fp-badge, .field-preview[data-phase="synced"] .fp-badge { border: 1px solid #cbdcf9; background: #e8f0fe; color: #174ea6; }
.fp-office-choice:checked ~ .fp-surface .fp-badge::before, .field-preview[data-phase="synced"] .fp-badge::before { background: currentColor; }
.fp-job {
  display: block; margin: .45rem .95rem 0; color: var(--fp-ink);
  font: 600 clamp(1.15rem, 2vw, 1.4rem)/1.22 var(--sc-font-display, system-ui, sans-serif); letter-spacing: -.025em;
}
.fp-assets { display: flex; flex-wrap: wrap; gap: .35rem .5rem; padding: .55rem .95rem .7rem; }
.fp-assets > span { min-height: 1.55rem; padding: .1rem .4rem; border: 1px solid var(--fp-line); border-radius: 4px; color: var(--fp-muted); font-size: .725rem; }
.fp-assets .fp-empty { border-style: dashed; }
.fp-assets svg { width: .94rem; height: .94rem; }
.fp-receipt {
  display: flex; align-items: center; gap: .5rem; padding: .65rem .95rem; border-top: 1px solid #d9e7fd;
  border-radius: 0 0 8px 8px; background: #f3f7fe; color: #455d83; font-size: .775rem; line-height: 1.45;
}
.fp-receipt svg { color: var(--fp-accent); }
.fp-field-choice:checked ~ .fp-surface .fp-office-only, .fp-office-choice:checked ~ .fp-surface .fp-field-only,
.field-preview .fp-empty, .fp-receipt-icon svg:first-child { display: none; }
.fp-receipt-icon { display: inline-flex; align-items: center; flex: none; }
.field-preview[data-state="waiting"] .fp-job > :first-child,
.field-preview[data-state="waiting"] .fp-assets > :not(.fp-empty) { display: none; }
.field-preview[data-state="waiting"] .fp-empty { display: inline-flex; }
.field-preview[data-state="waiting"] .fp-badge { border: 1px dashed currentColor; background: white; color: var(--fp-muted); }
.field-preview[data-state="waiting"] .fp-badge::before { background: transparent; }
.field-preview[data-state="draft"] .fp-receipt-icon svg:first-child,
.field-preview[data-state="waiting"] .fp-receipt-icon svg:first-child { display: inline; }
.field-preview[data-state="draft"] .fp-receipt-icon svg:last-child,
.field-preview[data-state="waiting"] .fp-receipt-icon svg:last-child { display: none; }
.field-preview[data-phase="synced"] .fp-delivery-path { stroke-dashoffset: 0; }
.field-preview[data-state="received"] .fp-assets > span { background: #f3f7fe; color: #174ea6; }
.field-preview[data-phase] .fp-receipt { min-height: 3.8rem; padding-block: .45rem; border-radius: 0; }
.fp-actionbar { padding: 0 .95rem .75rem; background: #f3f7fe; border-radius: 0 0 8px 8px; }
.fp-action { display: flex; align-items: center; justify-content: space-between; gap: .65rem; width: 100%; min-height: 44px; padding: .5rem .7rem; border: 1px solid #8ab4f8; border-radius: 5px; background: #e8f0fe; color: #174ea6; font: 650 .85rem/1.35 var(--sc-font-text, system-ui, sans-serif); text-align: left; cursor: pointer; }
.fp-action svg { flex: none; width: 1rem; height: 1rem; }
.fp-action:hover { border-color: #1967d2; background: #dbe8fc; }
.fp-action:focus-visible { outline: 2px solid #1967d2; outline-offset: 2px; }
.field-preview:not([data-state="received"]) .fp-plan { display: none; }
.field-preview[data-state="received"] .fp-actionbar { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .8rem; }
.field-preview[data-state="received"] .fp-action { width: auto; padding-inline: .15rem; background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: .2em; }
.field-preview[data-state="received"] .fp-action svg { display: none; }
.fp-plan.btn { padding-inline: .85rem; min-height: 44px; font-size: .85rem; }
.fp-plan svg { width: 1rem; height: 1rem; }
@media (max-width: 599px) {
  .fp-map { height: 5.75rem; }
  .field-preview[data-phase] .fp-receipt { min-height: 2.75rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .field-preview[data-phase="synced"] .fp-delivery-path { transition: stroke-dashoffset .55s ease-out; }
}
@media (forced-colors: active) {
  .fp-choice:checked + .fp-tab { border-bottom: 3px solid Highlight; }
  .fp-choice:focus-visible + .fp-tab { outline-color: Highlight; }
  .fp-stop i { forced-color-adjust: none; }
}
