/* TexVastra landing preview — illustrative product screens. Solid surfaces only: operational data never sits on glass. */

.app { background: var(--white); color: var(--midnight); border: 1px solid var(--thread); border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(9, 17, 38, .04), 0 24px 48px -28px rgba(9, 17, 38, .45); }
.on-dark .app { border-color: transparent; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8); }
.app-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; background: var(--cotton); border-bottom: 1px solid var(--thread);
  font-size: .8125rem; color: var(--slate); }
.app-bar .sep { opacity: .7; }
.app-body { padding: 18px 20px 20px; }
.rec-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rec-title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; color: var(--indigo); line-height: 1.25; }
.rec-sub { margin-top: 2px; font-size: .8125rem; color: var(--slate); }

/* Status chip: a dot and the word; colour supports the word (§7) */
.chip { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600;
  line-height: 1.5; white-space: nowrap; transition: background-color 240ms var(--ease), color 240ms var(--ease); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-moss { color: var(--moss); background: color-mix(in srgb, var(--moss) 11%, var(--white)); }
.chip-amber { color: var(--amber); background: color-mix(in srgb, var(--amber) 11%, var(--white)); }
.chip-madder { color: var(--madder); background: color-mix(in srgb, var(--madder) 10%, var(--white)); }

.progress { margin-top: 16px; font-size: .875rem; }
.segments { display: flex; gap: 4px; margin-top: 8px; }
.segments li { flex: 1; height: 6px; border-radius: 3px; background: var(--thread); transition: background-color 320ms var(--ease); }
.segments li.on { background: var(--moss); }
.batch-item { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--thread); }
.item-name { font-size: .875rem; font-weight: 600; }
.item-name span { font-weight: 400; color: var(--slate); }
.batches li { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 7px 0;
  font-size: .875rem; border-bottom: 1px solid color-mix(in srgb, var(--thread) 60%, var(--white)); }
.batches li:last-child { border-bottom: 0; }
.b-who { color: var(--slate); }
.batches li.flash { animation: rowflash 1200ms var(--ease); }
@keyframes rowflash { 0% { background: var(--white); } 20% { background: color-mix(in srgb, var(--moss) 9%, var(--white)); } 100% { background: var(--white); } }

/* Orders list */
.tabs-mock { display: flex; gap: 2px; padding: 10px 12px; overflow: hidden; white-space: nowrap; border-bottom: 1px solid var(--thread); }
.tabs-mock span { padding: 6px 10px; border-radius: 999px; font-size: .8125rem; color: var(--slate); }
.tabs-mock span.on { background: var(--indigo); color: var(--white); font-weight: 600; }
.table-mock { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table-mock th { text-align: left; font-size: .75rem; font-weight: 600; color: var(--slate); padding: 10px 16px; border-bottom: 1px solid var(--thread); }
.table-mock td { padding: 12px 16px; border-bottom: 1px solid var(--thread); vertical-align: middle; }
.table-mock tr:last-child td { border-bottom: 0; }
.table-mock tr.hl td { background: var(--cotton); }

/* Dialog */
.app-dialog { padding: 20px; border: 1px solid var(--thread); box-shadow: 0 30px 60px -24px rgba(9, 17, 38, .45); }
.dlg-title { font-size: 1rem; font-weight: 600; color: var(--indigo); }
.dlg-note { margin-top: 4px; font-size: .8125rem; color: var(--slate); }
.field { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--thread);
  border-radius: 8px; }
.field span { font-size: .8125rem; color: var(--slate); }
.field b { font-size: .9375rem; }
.dlg-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.fake-btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px; border-radius: 999px; background: var(--indigo); color: var(--white);
  font-size: .875rem; font-weight: 600; border: 1px solid var(--indigo); transition: transform 160ms var(--ease), background-color 200ms var(--ease); }
.fake-btn.ghost { background: transparent; color: var(--indigo); border-color: var(--thread); }
.fake-btn.is-pressed { transform: scale(.96); background: var(--midnight); }

/* Receipt */
.measure { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.measure dt { font-size: .75rem; color: var(--slate); }
.measure dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 600; }
.variance { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--thread); font-size: .875rem; }

/* Phone */
.phone { width: 284px; flex: none; padding: 9px; border-radius: 38px; background: var(--midnight); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 40px 80px -36px rgba(0, 0, 0, .9); }
.phone-screen { min-height: 440px; padding: 26px 18px 20px; border-radius: 30px; background: var(--cotton); color: var(--midnight); }
.phone-tall { width: 300px; }
.phone-tall .phone-screen { min-height: 560px; }
.ph-top { display: flex; justify-content: space-between; align-items: baseline; font-size: .875rem; font-weight: 600; color: var(--indigo); }
.ph-time { font-size: .75rem; font-weight: 400; color: var(--slate); }
.ph-title { margin-top: 18px; font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.ph-title .mono { font-size: .9375rem; }
.ph-text { margin-top: 8px; font-size: .875rem; color: var(--slate); }
.ph-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.ph-actions .fake-btn { padding: 12px 10px; }
.ph-done { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--thread); font-size: .875rem;
  transition: opacity 240ms var(--ease), transform 240ms var(--ease); }
.ph-done p + p { margin-top: 2px; font-weight: 600; color: var(--moss); }
.ph-done.is-waiting { opacity: 0; transform: translateY(6px); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.tiles li { padding: 12px; border-radius: 12px; background: var(--white); border: 1px solid var(--thread); }
.tiles li.need { border-color: var(--amber); }
.tiles span { display: block; font-size: .75rem; color: var(--slate); line-height: 1.3; }
.tiles b { display: block; margin-top: 4px; font-size: 1.5rem; font-weight: 600; }
.ph-sec { margin-top: 20px; font-size: .8125rem; font-weight: 600; color: var(--indigo); }
.attn { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--white);
  border: 1px solid var(--thread); font-size: .75rem; }
.attn .chip { align-self: flex-start; }
.attn-days { color: var(--slate); }
.attn-days b { color: var(--midnight); }

/* Chat */
.chat { width: min(100%, 400px); padding: 28px 22px; border-radius: 24px; background: var(--cotton); border: 1px solid var(--thread); }
.bubble { max-width: 320px; padding: 8px 8px 8px; border-radius: 4px 14px 14px 14px; background: var(--white); box-shadow: 0 1px 2px rgba(9, 17, 38, .12); }
.doc { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: var(--cotton); font-size: .8125rem; }
.doc-ic { display: inline-grid; place-items: center; width: 34px; height: 40px; border-radius: 6px; background: var(--indigo); color: var(--white); font-size: .625rem; font-weight: 700; }
.bubble p { padding: 8px 6px 0; font-size: .9375rem; line-height: 1.5; }
.bubble .foot { padding-top: 6px; font-size: .75rem; color: var(--slate); display: flex; justify-content: space-between; }

@media (max-width: 640px) {
  .hide-s { display: none; }
  .table-mock th, .table-mock td { padding-inline: 12px; }
  .app-body { padding: 16px; }
  .measure dd { font-size: 1.0625rem; }
  .phone, .phone-tall { width: min(100%, 300px); }
}

/* ── Round 2 ─────────────────────────────────────────────── */
.batches li { padding: 6px 0; }
.batch-item { margin-top: 12px; padding-top: 10px; }
.tabs-mock { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
