:root {
  --ivory: #FAF6EF; --white: #FFFFFF; --ink: #2A2521; --grey: #6B625A; --line: #E6DED2;
  --gold: #C8881E; --gold-d: #9A6512; --red: #A3262A; --indigo: #2B3A67; --forest: #3E4B36;
  --tint: #F3E7D6; --ok-tint: #EEF1EA;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', 'Noto Sans Bengali', 'Noto Sans Devanagari', system-ui, sans-serif;
  --r: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--ivory); color: var(--ink); font: 400 17px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
:lang(as), :lang(bn) { font-family: 'Noto Sans Bengali', var(--sans); }
:lang(hi) { font-family: 'Noto Sans Devanagari', var(--sans); }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

/* Layout: phone column; behind-the-scenes panel beside it on wide screens */
.stage { min-height: 100%; display: flex; justify-content: center; gap: 32px; padding: 0; }
.phone { width: 100%; max-width: 440px; min-height: 100dvh; display: flex; flex-direction: column; padding: 0 20px 28px; position: relative; }
@media (min-width: 900px) {
  .stage { padding: 32px; align-items: flex-start; }
  .phone { min-height: 820px; background: var(--ivory); border: 1px solid var(--line); border-radius: 28px; }
}

/* Top bar */
.bar { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 8px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-name { font: 700 20px/1 var(--serif); letter-spacing: -.01em; }
.lang-btn { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 600; font-size: 15px; }
.lang-btn svg { width: 18px; height: 18px; color: var(--grey); }

/* Screens */
.screen { flex: 1; display: flex; flex-direction: column; padding-top: 12px; animation: in .28s ease-out; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen { animation: none; } }
.status { margin: 8px 0 0; font-size: 18px; font-weight: 600; color: var(--gold-d); }

.lead { margin: 4px 0 8px; font: 600 30px/1.18 var(--serif); letter-spacing: -.01em; max-width: 18ch; }
.lead:lang(as), .lead:lang(bn), .lead:lang(hi) { font-family: inherit; font-weight: 700; font-size: 26px; }
.note { margin: 12px 0 0; color: var(--grey); font-size: 15px; }
.note.warn { color: var(--red); }

/* Big microphone */
.mic { position: relative; z-index: 1; width: 168px; height: 168px; border-radius: 50%; border: 0; background: var(--gold); color: var(--white);
  display: grid; place-items: center; box-shadow: 0 0 0 6px var(--ivory), 0 14px 28px -16px rgba(154,101,18,.8); transition: transform .12s; }
.mic svg { width: 72px; height: 72px; stroke-width: 1.6; }
.mic:active { transform: scale(.96); }
.mic:focus-visible, .btn:focus-visible, .lang-btn:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; }
.mic-sm { width: 88px; height: 88px; margin: 8px 0; box-shadow: 0 0 0 8px var(--tint); }
.mic-sm svg { width: 40px; height: 40px; }

/* What-to-say hints */
.hints { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hints li { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 14px; font-weight: 500; color: var(--ink); }
.hint-ico { width: 44px; height: 44px; display: grid; place-items: center; color: var(--indigo); }
.hint-ico svg { width: 30px; height: 30px; stroke-width: 1.5; }
.hints-compact { margin-top: auto; margin-bottom: 20px; }

/* Recording */
.timer { font: 600 64px/1 var(--serif); font-variant-numeric: tabular-nums; margin: 8px 0 4px; }
.loom { width: 100%; height: 220px; margin: 8px 0 20px; }
.btn-stop { background: var(--ink); color: var(--white); }
.stop-sq { width: 16px; height: 16px; border-radius: 3px; background: var(--red); }

/* Buttons */
.row { display: flex; gap: 12px; margin-top: auto; padding-top: 20px; }
.row .btn { flex: 1; }
.btn { min-height: 56px; border-radius: 14px; border: 1px solid transparent; padding: 0 18px; font-weight: 600; font-size: 17px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn:disabled { opacity: .4; cursor: default; }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-ghost { background: var(--white); border-color: var(--line); }
.btn-wa { width: 100%; margin-top: 16px; background: #1F7A4C; color: var(--white); }
.btn-wa .fill { fill: currentColor; stroke: none; }
.link { background: none; border: 0; color: var(--grey); text-decoration: underline; min-height: 44px; }

/* Photo */
.photo-drop { position: relative; display: grid; place-items: center; aspect-ratio: 4/5; margin-top: 12px; border-radius: 6px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; cursor: pointer; }
.photo-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-drop img { width: 100%; height: 100%; object-fit: cover; }
.photo-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--grey); font-weight: 600; pointer-events: none; }
.photo-empty svg { width: 56px; height: 56px; color: var(--indigo); stroke-width: 1.4; }

/* Working steps */
.steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 7px; }
.steps li { display: flex; align-items: center; gap: 14px; min-height: 56px; margin-left: -9px; color: var(--grey); font-weight: 500; font-size: 18px; }
.steps .ms { margin-left: auto; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--grey); }
.dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); background: var(--ivory); flex: none; }
.steps li.active { color: var(--ink); }
.steps li.active .dot { border-color: var(--gold); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps li.done { color: var(--ink); }
.steps li.done .dot { border-color: var(--forest); background: var(--forest); }
.steps li.skip { opacity: .5; }
.steps li.fail .dot { border-color: var(--red); background: var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }
.heard { margin-top: 28px; padding: 4px 0 4px 16px; border-left: 3px solid var(--gold); font: 500 20px/1.5 var(--sans); }
.heard small { display: block; font-size: 14px; font-weight: 600; color: var(--grey); margin-bottom: 4px; }

/* Listing card */
.card { border-radius: 6px; background: var(--white); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.card-photo { aspect-ratio: 4/3; background: var(--tint); display: grid; place-items: center; }
.card-photo img { width: 100%; height: 100%; object-fit: contain; }
.card-photo .ph { color: var(--grey); font-size: 14px; }
.card-body { padding: 14px 16px 16px; }
.card-title { margin: 0; font: 600 24px/1.22 var(--serif); }
.card-native { margin: 4px 0 0; color: var(--grey); font-size: 16px; }
.card-price { margin: 10px 0 0; font: 700 22px/1 var(--sans); color: var(--forest); }
.card-price.missing { color: var(--grey); font-weight: 500; font-size: 15px; }

/* Ask for a missing fact */
.ask { margin-top: 14px; padding: 18px 16px 10px; border-radius: 6px; background: var(--tint); display: flex; flex-direction: column; align-items: center; text-align: center; }
.ask-q { margin: 0; font-weight: 700; font-size: 20px; }

/* Facts list */
.facts { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--line); }
.facts .f-ico { color: var(--indigo); display: grid; }
.facts .f-label { color: var(--grey); font-size: 14px; width: 92px; flex: none; }
.facts .f-val { font-weight: 600; flex: 1; }
.facts .f-state { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; flex: none; }
.facts .f-state.yes { background: var(--ok-tint); color: var(--forest); }
.facts .f-state.no { background: var(--tint); color: var(--gold-d); }

/* Description */
.desc { margin-top: 16px; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); }
.seg button { border: 0; background: none; min-height: 36px; padding: 0 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--grey); }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.desc p { margin: 10px 0 0; }

/* Done */
.share-img { width: 100%; border-radius: var(--r); border: 1px solid var(--line); margin-top: 8px; background: var(--white); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: 400px; width: calc(100% - 40px); padding: 14px 16px; border-radius: 12px; background: var(--ink); color: var(--white); font-weight: 500; z-index: 20; }

/* Language sheet */
.sheet { border: 0; border-radius: 20px; padding: 0; width: min(440px, calc(100% - 24px)); background: var(--ivory); color: var(--ink); }
.sheet::backdrop { background: rgba(42,37,33,.45); }
.sheet form { padding: 20px; display: grid; gap: 14px; }
.sheet h2 { margin: 0; font: 600 22px var(--serif); }
.lang-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lang-list button { min-height: 56px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); text-align: left; padding: 8px 14px; }
.lang-list button b { display: block; font-size: 17px; }
.lang-list button span { font-size: 13px; color: var(--grey); }
.lang-list button[aria-current="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* Behind the scenes */
.bts { display: none; width: 440px; max-height: calc(100dvh - 64px); overflow: auto; position: sticky; top: 32px; padding: 20px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); font-size: 14px; }
body.show-bts .bts { display: block; }
@media (max-width: 899px) { body.show-bts .bts { position: fixed; inset: auto 0 0 0; top: auto; width: auto; max-height: 60dvh; border-radius: 20px 20px 0 0; z-index: 15; } }
.bts-head h3 { margin: 0; font: 600 20px var(--serif); }
.bts-head p { margin: 4px 0 14px; color: var(--grey); }
.bts-grid { display: grid; grid-template-columns: 170px 1fr; gap: 6px 12px; margin: 0 0 14px; }
.bts-grid dt { color: var(--grey); }
.bts-grid dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.bts h4 { margin: 16px 0 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.bts pre { margin: 0; padding: 12px; border-radius: 10px; background: var(--ivory); border: 1px solid var(--line); white-space: pre-wrap; word-break: break-word; font: 13px/1.5 ui-monospace, Consolas, monospace; max-height: 280px; overflow: auto; }
.bts-log { margin: 0; padding-left: 18px; color: var(--grey); font-variant-numeric: tabular-nums; }
.bts-toggle { position: fixed; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--grey); display: grid; place-items: center; z-index: 16; }
@media (max-width: 899px) { body:not(.judge) .bts-toggle { display: none; } .bts-toggle { top: auto; bottom: 8px; right: auto; left: 8px; width: 32px; height: 32px; opacity: .6; } }
[data-screen="done"] .row { margin-top: 12px; }
.bts-toggle[aria-pressed="true"] { background: var(--indigo); color: var(--white); border-color: var(--indigo); }
.bts-toggle svg { width: 20px; height: 20px; }

/* Progress rail: the flow really is a sequence, so it is shown as one */
.rail { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.rail li { font-size: 13px; font-weight: 600; color: var(--grey); padding-top: 8px; border-top: 3px solid var(--line); }
.rail li.past { border-top-color: var(--gold-d); color: var(--gold-d); }
.rail li.now { border-top-color: var(--ink); color: var(--ink); }
.steps li.done .dot { box-shadow: 0 0 0 3px var(--ivory); }
/* Header: my items */
.bar-right { display: flex; gap: 8px; align-items: center; }
.items-btn { position: relative; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 600; font-size: 14px; }
.items-btn svg { width: 18px; height: 18px; }
.items-btn b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold); color: var(--white); font-size: 12px; display: grid; place-items: center; }
@media (max-width: 380px) { .items-btn span { display: none; } }

/* Photoshoot looks */
.looks { padding: 12px 14px 4px; border-bottom: 1px solid var(--line); }
.looks p { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--grey); }
.look-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.look-row button { aspect-ratio: 4/5; border: 0; border-radius: 6px; background: var(--tint) center/cover no-repeat; box-shadow: inset 0 0 0 1px var(--line); padding: 0; }
.look-row button[aria-checked="true"] { box-shadow: 0 0 0 3px var(--ink); }
.card-photo { aspect-ratio: 4/5; }
.card-photo img { object-fit: cover; }

/* Published */
.pub-item { display: flex; gap: 14px; align-items: center; margin-top: 8px; padding: 12px; background: var(--white); border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.pub-item img { width: 76px; height: 95px; object-fit: cover; border-radius: 4px; flex: none; }
.pub-item div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pub-item b { font: 600 19px/1.25 var(--serif); }
.pub-item span { font-weight: 700; color: var(--forest); font-size: 18px; }
.pub-item small { color: var(--grey); font-size: 13px; }
.pub-item.big img { width: 96px; height: 120px; }
.channels { list-style: none; margin: 16px 0 0; padding: 0; }
.channels li { display: flex; align-items: center; gap: 12px; min-height: 64px; border-bottom: 1px solid var(--line); }
.ch-mark { width: 36px; height: 36px; border-radius: 8px; flex: none; display: grid; place-items: center; font: 700 13px var(--sans); color: var(--white); }
.ch-ondc { background: var(--indigo); } .ch-ondc::after { content: 'ON'; }
.ch-ihm { background: var(--red); } .ch-ihm::after { content: 'IH'; }
.ch-shop { background: var(--gold-d); } .ch-shop::after { content: 'CS'; }
.ch-text { flex: 1; display: flex; flex-direction: column; }
.ch-text b { font-size: 16px; } .ch-text small { color: var(--grey); font-size: 13px; }
.ch-live { font-size: 13px; font-weight: 700; color: var(--forest); display: flex; align-items: center; gap: 6px; }
.ch-live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--forest); }
.demo-note { margin: 10px 0 16px; font-size: 12px; color: var(--grey); }
.btn.wide { width: 100%; }
.row.tight { margin-top: 10px; padding-top: 0; }
[data-screen="done"] .link, [data-screen="items"] .btn { margin-top: 14px; }
.back { align-self: flex-start; border: 0; background: none; min-height: 44px; padding: 0; font-weight: 600; color: var(--grey); display: flex; align-items: center; gap: 6px; }
.back::before { content: ''; width: 9px; height: 9px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }

/* Buyer view: a neutral marketplace page, deliberately not in our own brand */
.bv { margin-top: 6px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px #e3e3e3; font-family: Inter, system-ui, sans-serif; color: #1d1d1f; }
.bv-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #f5f5f5; font-size: 13px; font-weight: 600; }
.bv-chip { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #e6e6e6; color: #555; }
.bv img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.bv-body { padding: 14px 16px 18px; }
.bv h2 { margin: 0; font: 600 20px/1.3 Inter, sans-serif; }
.bv-price { margin: 6px 0 0; font-size: 24px; font-weight: 700; }
.bv-seller { margin: 4px 0 12px; color: #666; font-size: 13px; }
.bv-specs { display: grid; grid-template-columns: 90px 1fr; gap: 4px 10px; margin: 0 0 12px; font-size: 14px; }
.bv-specs dt { color: #777; } .bv-specs dd { margin: 0; }
.bv-desc { font-size: 15px; line-height: 1.5; margin: 0 0 14px; }
.bv-buy { width: 100%; background: #1d1d1f; color: #fff; opacity: .9; }

/* My items */
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 12px; }
.summary div { padding: 10px 12px; background: var(--white); border-radius: 6px; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.summary b { font: 600 22px/1.1 var(--serif); } .summary span { font-size: 13px; color: var(--grey); }
.items { list-style: none; margin: 0; padding: 0; }
.items button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; }
.items img { width: 56px; height: 70px; object-fit: cover; border-radius: 4px; flex: none; background: var(--tint); }
.it-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.it-text b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it-text span { font-size: 13px; color: var(--grey); white-space: pre; }
.it-status { font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 10px; background: var(--ok-tint); color: var(--forest); flex: none; }
.it-status[data-s="1"], .it-status[data-s="2"], .it-status[data-s="3"] { background: var(--tint); color: var(--gold-d); }

/* Order tracking */
.track { list-style: none; margin: 18px 0 0 7px; padding: 0; border-left: 2px solid var(--line); }
.track li { display: flex; gap: 14px; align-items: flex-start; margin-left: -9px; padding-bottom: 16px; color: var(--grey); }
.track .dot { margin-top: 3px; }
.track li.done .dot { background: var(--forest); border-color: var(--forest); }
.track li.now .dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px var(--tint); }
.track li.done, .track li.now { color: var(--ink); }
.tr-text { display: flex; flex-direction: column; } .tr-text b { font-size: 16px; } .tr-text small { font-size: 13px; color: var(--grey); }
.judge-only { display: none; }
body.judge .judge-only { display: inline-flex; margin-top: 16px; }

.brand-name { white-space: nowrap; }
@media (max-width: 440px) { .items-btn span { display: none; } .items-btn { padding: 0 10px; } .lang-btn { padding: 0 10px; } }

/* The start screen echoes the loom: the mic sits on a disc of warp threads. */
.mic-wrap { position: relative; align-self: center; margin: 28px 0 28px; width: 248px; height: 248px; display: grid; place-items: center; }
.mic-wrap::before { content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-linear-gradient(90deg, rgba(42,37,33,.22) 0 1.5px, transparent 1.5px 9px);
  -webkit-mask: radial-gradient(circle, #000 58%, transparent 71%); mask: radial-gradient(circle, #000 58%, transparent 71%); }
.mic-wrap::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: 24%; height: 5px; border-radius: 3px; background: var(--gold-d); opacity: .5; }
.mic-sm { box-shadow: 0 0 0 6px var(--ivory); }

/* Native-script headlines in Tiro (a book face that pairs with Fraunces), instead of a UI sans. */
.lead:lang(as), .lead:lang(bn) { font-family: 'Tiro Bangla', 'Noto Sans Bengali', serif; font-weight: 400; font-size: 30px; line-height: 1.3; }
.lead:lang(hi) { font-family: 'Tiro Devanagari Hindi', 'Noto Sans Devanagari', serif; font-weight: 400; font-size: 30px; line-height: 1.35; }
.card-native:lang(as), .card-native:lang(bn), .ask-q:lang(as) { font-family: 'Tiro Bangla', 'Noto Sans Bengali', serif; }
.ask-q { font-size: 22px; }
html:lang(as) .ask-q, html:lang(bn) .ask-q { font-family: 'Tiro Bangla', 'Noto Sans Bengali', serif; font-weight: 400; font-size: 24px; }
html:lang(hi) .ask-q { font-family: 'Tiro Devanagari Hindi', serif; font-weight: 400; font-size: 24px; }

/* Buttons: one primary per screen in ink; secondary as quiet outlines. Slightly squarer than cards. */
.btn { border-radius: 10px; }
.btn-ghost { background: transparent; border-color: #D8CDBC; }
.btn-primary:active, .btn-ghost:active { transform: translateY(1px); }

/* Facts list reads like a spec sheet */
.facts .f-label { font-size: 13px; }
.facts .f-state.yes { background: transparent; color: var(--forest); }
.facts .f-state.no { background: var(--gold); color: var(--white); }