/* Ladies Tailor v1: screens on top of the shared "Atelier" look (apps/shared/miniapp.css). Mobile first (360px). */
.ma--wide { max-width: 760px; }
main { min-height: 50vh; }
.tl-h1 { font-size: 32px; margin: 16px 0 4px; }
.ma-h3 { font: 700 20px/1.2 var(--serif); margin: 20px 0 8px; }
.tl-loading { padding: 48px 0; text-align: center; color: var(--text-3); font-family: var(--serif); font-size: 22px; }
.tl-empty { text-align: center; padding: 40px 0; }
.tl-back, .tl-link { display: inline-block; background: none; border: 0; padding: 10px 0; min-height: 44px; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: none; font-size: 15px; }
textarea, select { font: inherit; color: inherit; }
.ma-field textarea, .ma-field select, .tl-select, .tl-filter, .tl-inline input, .tl-inline select {
  width: 100%; min-height: 48px; border-radius: var(--r-in); border: 1px solid var(--line-strong); background: var(--bg); padding: 10px 14px; font-size: 16px; }
.ma-field textarea { min-height: 96px; }
.ma-field.has-err input { border-color: #C0392B; }
.ma-field small.ma-err { font-weight: 500; font-size: 13px; }

/* tabs */
.tl-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.tl-tabs a { flex: 0 0 auto; padding: 8px 14px; min-height: 40px; display: inline-flex; align-items: center; border-radius: 999px; text-decoration: none; color: var(--text-2); font-size: 14px; font-weight: 600; }
.tl-tabs a[aria-current='page'] { background: var(--accent-tint); color: var(--accent-deep); }

/* lists */
.tl-list { display: grid; gap: 8px; margin: 8px 0; }
.tl-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--surface); text-align: left; cursor: pointer; text-decoration: none; color: var(--ink); flex-wrap: wrap; }
.tl-row[aria-pressed='true'] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.tl-row--static { cursor: default; }
.tl-row.is-off, .tl-prow.is-off { opacity: .55; }
.tl-row__art { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; flex: 0 0 auto; }
.tl-row__art svg { width: 32px; height: 32px; }
.tl-row__name { flex: 1; min-width: 0; font-weight: 600; }
.tl-row__name small { display: block; font-weight: 400; font-size: 13px; color: var(--text-3); }
.tl-row__price { font-family: var(--serif); font-weight: 700; font-size: 18px; white-space: nowrap; }
.tl-group { border: 1px solid var(--line); border-radius: 16px; padding: 4px 12px; margin: 10px 0; background: var(--surface); }
.tl-group summary { cursor: pointer; padding: 10px 0; font-weight: 650; min-height: 44px; display: flex; justify-content: space-between; align-items: center; }
.tl-group summary span { color: var(--text-3); font-weight: 500; }

/* search */
.tl-search__bar { display: flex; gap: 8px; }
.tl-search__bar input { flex: 1; min-width: 0; min-height: 50px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); padding: 0 18px; font-size: 16px; }
.tl-search__bar input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.tl-mic { width: 50px; height: 50px; flex: 0 0 auto; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--accent); display: grid; place-items: center; cursor: pointer; }
.tl-mic.is-on { background: var(--accent); color: var(--on-accent); animation: tl-pulse 1.2s ease-in-out infinite; }
@keyframes tl-pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 20%, transparent); } }
@media (prefers-reduced-motion: reduce) { .tl-mic.is-on { animation: none; } }

/* order builder */
.tl-item { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-card); padding: 14px; margin: 10px 0; box-shadow: var(--shadow); }
.tl-item__head { display: flex; align-items: center; gap: 10px; }
.tl-item__head b { flex: 1; }
.tl-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; }
.tl-qty button { width: 40px; height: 40px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--accent); }
.tl-qty span { min-width: 22px; text-align: center; font-weight: 650; }
.tl-seg { display: flex; gap: 4px; padding: 4px; margin: 12px 0 6px; border-radius: 999px; background: var(--bg-sunken); }
.tl-seg button { flex: 1; min-height: 40px; border: 0; border-radius: 999px; background: none; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--text-2); }
.tl-seg button[aria-checked='true'] { background: var(--surface); color: var(--accent-deep); box-shadow: var(--shadow); }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tl-tags button { min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 13px; cursor: pointer; }
.tl-tags button[aria-pressed='true'] { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-deep); font-weight: 650; }
.tl-inline { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.tl-inline > input, .tl-inline > select { flex: 1; min-width: 120px; width: auto; }
.tl-choices { display: grid; gap: 8px; margin: 10px 0; }
.tl-choices button { text-align: left; min-height: 56px; padding: 10px 16px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 650; cursor: pointer; }
.tl-choices button small { display: block; font-weight: 400; font-size: 13px; color: var(--text-3); }
.tl-choices button[aria-checked='true'] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.tl-mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.tl-mgrid .ma-field { margin: 8px 0; }
.tl-check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; }
.tl-check input { width: 20px; height: 20px; accent-color: var(--accent); }
.tl-callout { padding: 12px 14px; border-radius: 16px; background: var(--gold-tint); font-size: 14px; margin: 10px 0; }
.tl-callout--good { background: color-mix(in srgb, var(--good) 14%, var(--surface)); }
.tl-callout--warn { background: color-mix(in srgb, #EDA100 18%, var(--surface)); }
.tl-photos { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.tl-photo { position: relative; width: 96px; height: 96px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-sunken); display: grid; place-items: center; }
.tl-photo img { width: 100%; height: 100%; object-fit: cover; }
.tl-photo button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; }
.tl-photo--add { cursor: pointer; color: var(--accent); font-weight: 650; font-size: 13px; border-style: dashed; }
.tl-nav { margin: 16px 0; }
.tl-bill { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 6px 14px; margin: 10px 0; }
.tl-bill > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.tl-bill > div:last-child { border-bottom: 0; }
.tl-bill small { display: block; color: var(--text-3); font-size: 12px; }
.tl-bill__total b { font: 700 22px/1 var(--serif); }
.tl-good { color: var(--good); font-weight: 650; }
.tl-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.ma-chip[aria-pressed='true'] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
button.ma-chip { cursor: pointer; }

/* offers */
.tl-offers { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 8px -16px 0; padding: 0 16px 4px; }
.tl-offer { flex: 0 0 240px; padding: 14px; border-radius: 18px; background: var(--accent-tint); border: 1px dashed var(--accent); }
.tl-offer b { display: block; font: 700 18px/1.2 var(--serif); color: var(--accent-deep); }
.tl-offer span { display: block; font-size: 13px; color: var(--text-2); margin: 4px 0 8px; }
.tl-offer code { font-weight: 700; letter-spacing: 1px; background: var(--surface); padding: 3px 8px; border-radius: 8px; }
.tl-soon { display: block; padding: 14px; border-radius: 18px; background: var(--bg-sunken); font-size: 14px; color: var(--text-3); }
.tl-soon b { display: block; font: 700 18px/1.2 var(--serif); color: var(--ink); }

/* tracking */
.tl-track { list-style: none; margin: 14px 0; padding: 0 0 0 8px; }
.tl-track li { position: relative; padding: 0 0 16px 24px; border-left: 2px solid var(--line-strong); color: var(--text-3); }
.tl-track li:last-child { border-left-color: transparent; }
.tl-track li::before { content: ''; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); }
.tl-track li.done { color: var(--ink); border-left-color: var(--accent); }
.tl-track li.done::before { background: var(--accent); border-color: var(--accent); }
.tl-track li.now { color: var(--ink); }
.tl-track li.now::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-tint); }
.tl-track b { display: block; font-weight: 650; }
.tl-track span { font-size: 13px; }
.tl-pay { border: 1px solid var(--accent); border-radius: var(--r-card); padding: 16px; margin: 14px 0; background: var(--surface); }
.tl-qr { text-align: center; }
.tl-qr img { width: 220px; height: 220px; border-radius: 12px; background: #fff; padding: 8px; image-rendering: pixelated; }
.tl-qr form { text-align: left; }
.ma-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
label.ma-btn { cursor: pointer; }

/* admin */
.tl-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 10px -16px; padding: 0 16px; }
.tl-chips > * { flex: 0 0 auto; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; }
.tl-chips > [aria-selected='true'], .tl-chips > [aria-current='page'] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tl-chips span { opacity: .75; }
.tl-card { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); margin: 8px 0; overflow: hidden; }
.tl-card.is-late { border-color: #D9483B; }
.tl-card__head { width: 100%; display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; background: none; border: 0; text-align: left; cursor: pointer; min-height: 56px; }
.tl-card__head small { display: block; color: var(--text-3); font-size: 13px; }
.tl-card__meta { text-align: right; flex: 0 0 auto; }
.tl-card__meta em { font-style: normal; font-weight: 650; color: var(--accent-deep); font-size: 13px; }
.tl-card__body { padding: 0 14px 14px; border-top: 1px dashed var(--line); font-size: 14px; }
.tl-money { background: var(--bg-sunken); border-radius: 14px; padding: 4px 12px; }
.tl-ul { margin: 6px 0; padding-left: 18px; }
.tl-prow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.tl-prow input { min-height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); padding: 0 10px; font-size: 15px; }
.tl-prow__name { flex: 1 1 100%; }
.tl-prow__price { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; }
.tl-prow__price input { width: 110px; }
.tl-prow__days { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-3); }
.tl-prow__days input { width: 56px; }
.tl-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-size: 14px; }
.tl-switch input { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; flex: 0 0 auto; margin: 0; }
.tl-switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.tl-switch input:checked { background: var(--accent); }
.tl-switch input:checked::after { left: 21px; }
.tl-switch input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tl-switch--row { display: flex; justify-content: space-between; width: 100%; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.tl-switch--row small { display: block; color: var(--text-3); font-size: 12px; }
.tl-settings { display: grid; }
.tl-csv { margin: 8px 0; }
.tl-preview { border: 1px solid var(--line-strong); border-radius: 16px; padding: 12px 14px; margin: 10px 0; background: var(--surface); }
.tl-preview h3 { font-size: 15px; margin: 10px 0 4px; }
.tl-table { display: grid; gap: 4px; }
.tl-tr { display: grid; grid-template-columns: minmax(0, 2.2fr) .7fr 1fr 1fr; gap: 8px; align-items: center; padding: 10px 8px; border: 0; border-bottom: 1px dashed var(--line); background: none; text-align: left; cursor: pointer; font-size: 14px; color: var(--ink); width: 100%; }
.tl-tr small { display: block; color: var(--text-3); font-size: 12px; }
.tl-th { font-weight: 650; color: var(--text-3); cursor: default; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }
.tl-tag { font-style: normal; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: var(--gold-tint); color: var(--gold-deep); }
@media (min-width: 600px) { .tl-mgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tl-prow__name { flex: 1 1 200px; } }
.tl-prow .tl-switch input, .tl-switch input { min-height: 0; padding: 0; border: 0; width: 44px; height: 26px; border-radius: 999px; }
.tl-prow .tl-check input { min-height: 0; width: 20px; height: 20px; padding: 0; }

/* measurement confirmation (WhatsApp link page, Me page, staff status) */
.tl-confirm { max-width: 460px; margin: 0 auto; padding: 12px 0 32px; }
.tl-confirm__brand { display: flex; align-items: center; gap: 10px; padding: 8px 0 4px; font: 700 22px/1.1 var(--serif); color: var(--accent-deep); }
.tl-confirm__alt { margin-top: 8px; }
.tl-mlist { list-style: none; margin: 12px 0 16px; padding: 4px 14px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); }
.tl-mlist li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 16px; }
.tl-mlist li:last-child { border-bottom: 0; }
.tl-mlist b { font: 700 20px/1 var(--serif); white-space: nowrap; }
.tl-mc { display: inline-flex; flex-direction: column; font-size: 13px; font-weight: 650; padding: 4px 10px; border-radius: 10px; background: var(--bg-sunken); color: var(--text-2); }
.tl-mc small { font-weight: 400; color: var(--text-2); }
.tl-mc--sent { background: var(--gold-tint); color: var(--gold-deep); }
.tl-mc--confirmed { background: color-mix(in srgb, var(--good) 14%, var(--surface)); color: var(--good); }
.tl-mc--changes_requested { background: color-mix(in srgb, #EDA100 18%, var(--surface)); color: var(--ink); }
.tl-sendmc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 10px; }
.tl-sendmc .tl-callout { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0; }
.tl-mset { margin-bottom: 4px; }
.tl-myconfirm { padding: 4px 4px 8px; }
.tl-mc-dot { color: var(--text-3); }
.tl-mc-dot--confirmed { color: var(--good); }
.tl-mc-dot--changes_requested { color: #B36B00; }
/* Measurement boxes fit their grid cell on a 390 px phone (inputs default to ~20 characters wide and spilled out). */
.tl-mgrid .ma-field input { width: 100%; min-width: 0; box-sizing: border-box; }

/* AI features (owner 4-Nov, AI feature map): photo quote, festival rush. Shown only when switched on. */
.tl-pqbox { margin: 14px 0; }
.tl-pqrow { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
.tl-pqrow > img { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; flex: 0 0 auto; }
.tl-pqrow .tl-pq { flex: 1 1 auto; margin: 0; }
.tl-pq p { margin: 6px 0; }
.tl-rush { margin: 8px 0 12px; border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; background: var(--surface); }
.tl-rush summary { cursor: pointer; }
.tl-rushbar { height: 8px; border-radius: 6px; background: var(--line); margin: 6px 0; overflow: hidden; }
.tl-rushbar i { display: block; height: 100%; background: var(--gold, #B8860B); }
.tl-rush .tl-callout small { display: block; }
