/* Shared wireframe styles — mobile, no chrome, structural only */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f4f4;
  color: #111;
  -webkit-font-smoothing: antialiased;
}
body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 24px 0;
}
.frame {
  width: 390px;
  min-height: 844px;
  background: #fff;
  border: 1px solid #d0d0d0;
  padding: 32px 24px 48px;
  display: flex;
  flex-direction: column;
}
.state-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #888;
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #ccc;
}
h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 8px;
}
.subcopy {
  font-size: 15px;
  line-height: 1.45;
  color: #555;
  margin-bottom: 28px;
}
.card {
  border: 1px solid #d4d4d4;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  background: #fff;
}
.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.card-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.4;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #222;
}
.field {
  margin-bottom: 14px;
}
.input {
  width: 100%;
  height: 42px;
  border: 1px solid #c8c8c8;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  color: #999;
  background: #fff;
  display: flex;
  align-items: center;
}
.input.filled { color: #111; }
.input.search::before {
  content: "🔍";
  margin-right: 8px;
  opacity: 0.4;
}
.textarea {
  width: 100%;
  min-height: 80px;
  border: 1px solid #c8c8c8;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  color: #999;
  background: #fff;
}
.btn {
  width: 100%;
  height: 46px;
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}
.btn-secondary {
  background: #fff;
  color: #111;
  border: 1px solid #c8c8c8;
}
.hauler-chip {
  border: 1px solid #c8c8c8;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
}
.hauler-chip .name {
  font-size: 14px;
  font-weight: 600;
}
.hauler-chip .meta {
  font-size: 12px;
  color: #777;
  margin-top: 2px;
}
.hauler-chip .change {
  font-size: 12px;
  color: #666;
  text-decoration: underline;
}
.otp-row {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  justify-content: space-between;
}
.otp-box {
  flex: 1;
  height: 52px;
  border: 1px solid #c8c8c8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  color: #111;
  background: #fff;
}
.inline-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: #555;
  text-decoration: underline;
  margin-top: 12px;
}
.callout {
  background: #fff8ec;
  border: 1px solid #f0d9a0;
  border-radius: 8px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #5a4500;
  margin-bottom: 16px;
}
.callout strong { display: block; margin-bottom: 4px; }
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #eee;
  border-top-color: #111;
  border-radius: 50%;
  margin: 32px auto 16px;
}
.center-text {
  text-align: center;
  font-size: 14px;
  color: #666;
}
.success-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e8f3ea;
  border: 2px solid #2f7a3f;
  color: #2f7a3f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 12px auto 20px;
}

/* ───────── Additional wireframe utilities ───────── */

/* Back affordance (just text, no chrome) */
.back {
  font-size: 13px;
  color: #555;
  margin-bottom: 16px;
}

/* Step label row above an h1 */
.step-label {
  font-size: 12px;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

/* Empty, dashed-border input (for unfilled fields) */
.input.empty {
  border-style: dashed;
  color: #bbb;
}
.input.disabled {
  opacity: 0.5;
  background: #f5f5f5;
  border-style: dashed;
  color: #999;
}

/* Helper text under a field */
.helper {
  font-size: 12px;
  color: #777;
  margin-top: 6px;
  line-height: 1.4;
}
.helper.info::before { content: "ⓘ "; opacity: 0.7; }

/* Warning flag (small orange pill) */
.warning-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff5e6;
  color: #a85c00;
  border: 1px solid #f2c98a;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
}
.warning-flag::before { content: "⚠"; }

/* Required inline tag */
.required-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #a85c00;
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
}
.required-flag::before { content: "⚠ "; }

/* OTP box variants */
.otp-box.empty { color: #bbb; border-style: dashed; }
.otp-box.disabled {
  opacity: 0.5;
  background: #f5f5f5;
  border-style: dashed;
  color: #bbb;
}

/* Radio card (big tappable card, not native input) */
.radio-card {
  border: 1px solid #c8c8c8;
  border-radius: 10px;
  padding: 14px 14px 14px 42px;
  margin-bottom: 10px;
  position: relative;
  background: #fff;
}
.radio-card::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 16px;
  width: 18px;
  height: 18px;
  border: 1.5px solid #888;
  border-radius: 50%;
  background: #fff;
}
.radio-card.selected { border-color: #111; }
.radio-card.selected::before {
  border-color: #111;
  background:
    radial-gradient(circle, #111 0 5px, #fff 5px 18px);
}
.radio-card .rc-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.radio-card .rc-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

/* Compact radio pair (small inline) */
.radio-compact {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.radio-compact .rc-item {
  flex: 1;
  border: 1px solid #c8c8c8;
  border-radius: 8px;
  padding: 10px 12px 10px 30px;
  position: relative;
  font-size: 13px;
  font-weight: 500;
  background: #fff;
}
.radio-compact .rc-item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 12px;
  width: 14px;
  height: 14px;
  border: 1.5px solid #888;
  border-radius: 50%;
}
.radio-compact .rc-item.selected { border-color: #111; }
.radio-compact .rc-item.selected::before {
  border-color: #111;
  background: radial-gradient(circle, #111 0 4px, #fff 4px 14px);
}

/* Checkbox row */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.checkbox-row .box {
  width: 18px;
  height: 18px;
  border: 1.5px solid #888;
  border-radius: 4px;
  flex-shrink: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #111;
  font-weight: 700;
}
.checkbox-row.checked .box::after { content: "✓"; }
.checkbox-row .cb-text {
  font-size: 13px;
  color: #222;
  line-height: 1.4;
}
.checkbox-row .cb-text .cb-help {
  font-size: 12px;
  color: #777;
  margin-top: 3px;
}

/* Select with chevron */
.select {
  width: 100%;
  height: 42px;
  border: 1px solid #c8c8c8;
  border-radius: 8px;
  padding: 0 36px 0 12px;
  font-size: 14px;
  color: #111;
  background: #fff;
  display: flex;
  align-items: center;
  position: relative;
}
.select::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 12px;
}
.select.placeholder { color: #bbb; border-style: dashed; }
.select.disabled {
  opacity: 0.5;
  background: #f5f5f5;
  color: #999;
  border-style: dashed;
}

/* Two-column row for inline fields */
.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.row-3 {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.8fr;
  gap: 10px;
  margin-bottom: 14px;
}

/* Hours row */
.hours-row {
  display: grid;
  grid-template-columns: 32px 1fr 12px 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}
.hours-row .day { color: #444; font-weight: 500; }
.hours-row .dash { color: #999; text-align: center; }
.hours-row .input {
  height: 34px;
  font-size: 13px;
  padding: 0 10px;
  color: #111;
}
.hours-row.closed .input {
  color: #999;
  background: #f5f5f5;
}

/* Pill toggle (Active dot) */
.pill-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #c8c8c8;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #111;
  background: #fff;
}
.pill-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f7a3f;
  display: inline-block;
}

/* Header row (back + title + pill) */
.hdr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* Product list card */
.product-card {
  border: 1px solid #d4d4d4;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  background: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.product-card .pc-body { flex: 1; }
.product-card .pc-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.product-card .pc-price {
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
}
.product-card .pc-status {
  font-size: 12px;
  color: #2f7a3f;
  font-weight: 600;
}
.product-card .pc-status.warn { color: #a85c00; }
.product-card .pc-chevron {
  color: #999;
  font-size: 18px;
  padding-left: 10px;
}

/* Dashed "add" row */
.add-row {
  border: 1.5px dashed #c8c8c8;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  text-align: center;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  background: #fafafa;
}

/* Sub-card (nested inside a parent card, e.g. variants) */
.sub-card {
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 10px;
  background: #fafafa;
}
.sub-card .sc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.sub-card .sc-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}
.sub-card .sc-remove {
  color: #999;
  font-size: 16px;
  font-weight: 600;
}

/* Section divider for variants */
.variants-divider {
  text-align: center;
  font-size: 12px;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 16px 0 12px;
  position: relative;
}
.variants-divider::before,
.variants-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 25%;
  border-top: 1px dashed #ccc;
}
.variants-divider::before { left: 0; }
.variants-divider::after { right: 0; }

/* Collapsed / expand header for advanced settings */
.card.collapsed {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card.collapsed .card-title { margin-bottom: 0; }
.card.collapsed .card-desc {
  display: none;
}
.card.collapsed .chevron {
  color: #888;
  font-size: 14px;
}

/* "uses default" italic placeholder */
.input.default-placeholder {
  color: #aaa;
  font-style: italic;
}

/* Inline override / reset link */
.field-link {
  font-size: 12px;
  color: #555;
  text-decoration: underline;
  margin-top: 4px;
  display: inline-block;
}

/* Chip row for tag input (prohibited items) */
.tag-input {
  border: 1px solid #c8c8c8;
  border-radius: 8px;
  padding: 10px;
  min-height: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: #fff;
}
.tag-input .tag {
  background: #f0f0f0;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  color: #333;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tag-input .tag::after { content: "×"; color: #888; margin-left: 2px; }
.tag-input .tag.add {
  background: transparent;
  color: #666;
  border: 1px dashed #c8c8c8;
}
.tag-input .tag.add::after { content: ""; }

/* Card that is a collapsed summary row */
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border: 1px solid #d4d4d4;
  border-radius: 10px;
  margin-bottom: 14px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
}
.summary-row .sr-meta {
  font-size: 12px;
  color: #777;
  font-weight: 400;
  margin-top: 2px;
}
.summary-row .chevron { color: #888; }

/* Dashed divider inside cards */
.dashed-divider {
  border-top: 1px dashed #d4d4d4;
  margin: 14px 0;
}

/* Modal-style presentation (for state 14, bottom sheet) */
.frame.modal {
  background: #f4f4f4;
  justify-content: flex-end;
  padding-top: 0;
}
.sheet {
  background: #fff;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding: 8px 24px 32px;
  margin: auto -24px -48px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  margin-top: auto;
}
.drag-handle {
  width: 40px;
  height: 4px;
  background: #d0d0d0;
  border-radius: 2px;
  margin: 8px auto 20px;
}

/* Numbered step card (for post-claim landing) */
.step-card {
  border: 1px solid #d4d4d4;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 14px;
  background: #fff;
}
.step-card .sc-num {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
}
.step-card .sc-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.step-card .sc-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}
.step-card .sc-time {
  font-size: 12px;
  color: #888;
  margin-bottom: 14px;
}
.step-card .btn {
  height: 42px;
  font-size: 14px;
}

/* Inline warning for fields */
.field-warn {
  background: #fff5e6;
  border: 1px solid #f2c98a;
  color: #a85c00;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
  margin-top: 6px;
  line-height: 1.4;
}
.field-warn strong { font-weight: 600; }

/* Waiting call secondary card */
.card.muted {
  background: #fafafa;
}

/* ───────── Celebration dialog (state 09) ───────── */

/* Make .frame a positioning context so the dialog can overlay it */
.frame.has-dialog {
  position: relative;
  overflow: hidden;
}

/* Faded backdrop layer that holds the dimmed form behind the dialog */
.dialog-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.dialog-backdrop .backdrop-content {
  position: absolute;
  inset: 0;
  padding: 32px 24px 48px;
  opacity: 0.35;
  filter: grayscale(0.2);
  overflow: hidden;
}
.dialog-backdrop .backdrop-dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* Dialog container */
.dialog {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Close button top-right */
.dialog-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #999;
  background: transparent;
  border: 0;
  cursor: pointer;
  line-height: 1;
}

/* Tight subcopy variant inside the dialog */
.dialog .subcopy {
  margin-bottom: 18px;
}

/* Short transition lead-in above the step list */
.step-list-lead {
  font-size: 13px;
  color: #777;
  text-align: center;
  margin-bottom: 14px;
  line-height: 1.4;
}

/* Step list (two-step roadmap inside the dialog) */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}
.step-list .step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.step-list .step-num {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  line-height: 1;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.step-list .step-body {
  flex: 1;
}
.step-list .step-title {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  margin-bottom: 2px;
}
.step-list .step-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}
.step-list .step-time {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}
</content>
</invoke>