:root {
  --brand: #f07468; --brand-d: #d9534a; --soft: #ffedea; --ink: #2b1612; --ink2: #4a2f2a;
  --muted: #8a7b78; --bg: #faf7f6; --line: #efe7e5; --green: #1fa463; --green-s: #dff5ea;
  --amber: #b06d00; --amber-s: #fff1d6; --blue: #1d5fc2; --blue-s: #e3efff; --violet: #6a3fc1; --violet-s: #efe6ff;
  --grad: linear-gradient(135deg, #f58a7e, #e85a4e); --shadow: 0 18px 50px -22px rgba(43, 22, 18, .3);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Urbanist', system-ui, sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, h5, p { margin: 0; }
p { line-height: 1.55; }
a { color: inherit; }

/* ---------- top bar & chapters ---------- */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 14px; padding: 10px 22px; background: rgba(250,247,246,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .logo { height: 20px; }
.top .by { font-weight: 900; outline: none; border-bottom: 1.5px dashed transparent; }
.top .by:focus { border-color: var(--brand); }
.chap { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.chap button { padding: 8px 12px; border-radius: 12px; font-weight: 800; font-size: 14px; color: var(--ink2); display: flex; gap: 7px; align-items: center; }
.chap button b { width: 22px; height: 22px; border-radius: 7px; background: var(--line); display: grid; place-items: center; font-size: 12px; }
.chap button.on { background: var(--ink); color: #fff; }
.chap button.on b { background: var(--grad); color: #fff; }
.tools { display: flex; gap: 6px; }
.tbtn { padding: 8px 11px; border-radius: 11px; font-weight: 800; font-size: 13px; background: #fff; border: 1px solid var(--line); position: relative; }
.tbtn .n { position: absolute; top: -6px; right: -6px; background: var(--brand-d); color: #fff; font-size: 10px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
main { max-width: 1320px; margin: 0 auto; padding: 26px 22px 60px; }
.chapter { display: none; animation: fade .3s ease; }
.chapter.on { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.ch-head { display: flex; align-items: end; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.ch-head .num { font-size: 13px; font-weight: 900; letter-spacing: .14em; color: var(--brand-d); text-transform: uppercase; }
.ch-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 900; letter-spacing: -.02em; margin-top: 4px; }
.ch-head p { color: var(--muted); font-size: 16.5px; max-width: 760px; margin-top: 6px; }
.try { margin-left: auto; background: var(--ink); color: #fff; border-radius: 16px; padding: 12px 14px; font-size: 13.5px; max-width: 360px; line-height: 1.45; }
.try b { color: var(--brand); }
.ch-nav { display: flex; justify-content: space-between; margin-top: 26px; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 14px; font-weight: 900; font-size: 15px; background: var(--grad); color: #fff; transition: transform .1s; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn.dark { background: var(--ink); }
.btn.sm { padding: 8px 12px; font-size: 13px; border-radius: 11px; }
.btn.green { background: var(--green); }
.btn:disabled { opacity: .45; cursor: default; }
.eyebrow { display: inline-block; font-weight: 900; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-d); background: var(--soft); padding: 6px 10px; border-radius: 9px; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.pill { display: inline-block; font-size: 11px; font-weight: 900; padding: 4px 8px; border-radius: 8px; white-space: nowrap; }
.s0 { background: var(--amber-s); color: var(--amber); }
.s1 { background: var(--blue-s); color: var(--blue); }
.s2 { background: var(--violet-s); color: var(--violet); }
.s3 { background: var(--soft); color: var(--brand-d); }
.s4 { background: var(--green-s); color: #13894f; }
.s5 { background: #eee; color: #777; }
.av { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 12px; flex-shrink: 0; }

/* ---------- 1 · analysis ---------- */
.pipe { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-top: 8px; }
.pstep { background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 14px; position: relative; }
.pstep .k { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; background: var(--bg); margin-bottom: 8px; }
.pstep h4 { font-size: 14.5px; font-weight: 900; margin-bottom: 4px; }
.pstep p { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.pstep .tool { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 800; background: var(--bg); padding: 3px 7px; border-radius: 7px; }
.pstep.manual { border-color: #ffd28a; background: #fffaf0; }
.pstep.missing { border-color: #ffb3aa; background: #fff6f4; }
.tag { font-size: 10.5px; font-weight: 900; padding: 3px 7px; border-radius: 7px; position: absolute; top: 12px; right: 12px; }
.tag.auto { background: var(--green-s); color: #13894f; }
.tag.manual { background: var(--amber-s); color: var(--amber); }
.tag.missing { background: var(--soft); color: var(--brand-d); }
.legend { display: flex; gap: 14px; font-size: 13px; font-weight: 700; margin: 12px 0 0; flex-wrap: wrap; }
.sec-t { font-size: 22px; font-weight: 900; margin: 34px 0 12px; display: flex; align-items: center; gap: 10px; }
.issues { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.issue { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.issue .sev { font-size: 11px; font-weight: 900; padding: 3px 8px; border-radius: 7px; }
.sev.hi { background: var(--soft); color: var(--brand-d); }
.sev.md { background: var(--amber-s); color: var(--amber); }
.issue h4 { font-size: 16px; font-weight: 900; margin: 8px 0 5px; }
.issue p { font-size: 13.5px; color: var(--ink2); }
.issue .ev { margin-top: 8px; font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; }
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.why div { background: var(--ink); color: #fff; border-radius: 18px; padding: 16px; }
.why b { font-size: 26px; color: var(--brand); display: block; }
.why span { color: rgba(255,255,255,.75); font-size: 13.5px; }
.cmp { width: 100%; border-collapse: collapse; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.cmp th, .cmp td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.cmp th { background: var(--bg); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cmp td:first-child { font-weight: 900; width: 170px; }
.cmp td:nth-child(2) { color: var(--amber); }
.cmp td:nth-child(3) { color: #13894f; font-weight: 700; }
.hub { display: grid; grid-template-columns: 1fr 260px 1fr; gap: 16px; align-items: center; }
.hub .core { background: var(--grad); color: #fff; border-radius: 24px; padding: 22px; text-align: center; box-shadow: var(--shadow); }
.hub .core b { font-size: 20px; display: block; }
.hub .side { display: flex; flex-direction: column; gap: 10px; }
.hub .node { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-size: 13.5px; }
.hub .node b { display: block; font-size: 14.5px; }
.hub .node i { font-style: normal; font-size: 22px; }
.replaced { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.replaced span { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font-weight: 800; font-size: 13px; text-decoration: line-through; color: var(--muted); }

/* ---------- device frames ---------- */
.browser { background: #fff; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.bbar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: #f4efed; border-bottom: 1px solid var(--line); }
.bbar .dots { display: flex; gap: 6px; margin-right: 4px; }
.bbar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.bbar .dots i:nth-child(2) { background: #febc2e; }
.bbar .dots i:nth-child(3) { background: #28c840; }
.bbar .nb { width: 28px; height: 28px; border-radius: 8px; background: #fff; font-weight: 900; }
.bbar .nb:disabled { opacity: .35; }
.bbar .url { flex: 1; background: #fff; border-radius: 9px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bbar .url b { color: var(--ink); }
.site { height: 720px; overflow-y: auto; font-size: 14px; position: relative; scroll-behavior: auto; }
.phone { width: 340px; height: 700px; border-radius: 46px; padding: 11px; background: #1b0f0c; box-shadow: var(--shadow), inset 0 0 0 2px #3a2520; flex-shrink: 0; }
.phone .scr { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; font-size: 13.5px; }
.phone .notch { position: absolute; top: 8px; left: 50%; translate: -50% 0; width: 96px; height: 26px; border-radius: 14px; background: #1b0f0c; z-index: 20; }
.phone .sb { height: 40px; flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; padding: 6px 24px 0; font-size: 12px; font-weight: 800; }

/* ---------- website pages ---------- */
.w-head { position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); }
.w-top { display: flex; align-items: center; gap: 16px; padding: 12px 24px; }
.w-top img { height: 22px; cursor: pointer; }
.w-search { flex: 1; max-width: 460px; display: flex; background: var(--bg); border-radius: 12px; overflow: hidden; border: 1.5px solid transparent; }
.w-search:focus-within { border-color: var(--brand); }
.w-search input { flex: 1; border: 0; background: none; padding: 9px 12px; outline: none; }
.w-search button { padding: 0 14px; background: var(--ink); color: #fff; font-weight: 800; }
.w-links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.w-links button { padding: 8px 10px; border-radius: 10px; font-weight: 800; font-size: 13.5px; }
.w-links button:hover { background: var(--bg); }
.w-links .cartb { background: var(--ink); color: #fff; }
.w-links .cartb:hover { background: var(--ink2); }
.w-cats { display: flex; gap: 4px; padding: 0 20px 8px; overflow-x: auto; scrollbar-width: none; }
.w-cats button { padding: 6px 10px; border-radius: 9px; font-weight: 700; font-size: 13px; white-space: nowrap; color: var(--ink2); }
.w-cats button:hover, .w-cats button.on { background: var(--soft); color: var(--brand-d); }
.w-body { padding: 22px 24px 30px; }
.w-hero { display: grid; grid-template-columns: 1fr 280px; gap: 20px; align-items: center; background: var(--grad); color: #fff; border-radius: 22px; padding: 28px 30px; }
.w-hero h3 { font-size: 34px; font-weight: 900; line-height: 1.05; margin: 8px 0; }
.w-hero img { width: 280px; height: 220px; object-fit: cover; border-radius: 18px; background: #fff; }
.w-hero .eb { font-size: 12px; font-weight: 900; letter-spacing: .12em; opacity: .9; }
.w-h { font-size: 20px; font-weight: 900; margin: 26px 0 12px; display: flex; align-items: center; gap: 10px; }
.w-h button { margin-left: auto; color: var(--brand-d); font-weight: 800; font-size: 14px; }
.w-catgrid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.w-catgrid button { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 6px; font-weight: 800; font-size: 12.5px; transition: .15s; }
.w-catgrid button:hover { border-color: var(--brand); transform: translateY(-2px); }
.w-catgrid b { display: block; font-size: 26px; margin-bottom: 6px; }
.w-catgrid small { display: block; color: var(--muted); font-weight: 700; margin-top: 2px; }
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.pc { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; cursor: pointer; position: relative; transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.pc:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pc img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f5efed; }
.pc .b { padding: 9px 10px 11px; display: flex; flex-direction: column; flex: 1; }
.pc .t { font-weight: 800; font-size: 13px; line-height: 1.3; height: 34px; overflow: hidden; }
.pc .pr { margin-top: auto; padding-top: 6px; font-weight: 900; color: var(--brand-d); font-size: 15px; }
.pc .pr s { color: var(--muted); font-weight: 600; font-size: 11.5px; margin-left: 4px; }
.pc .off { position: absolute; top: 8px; left: 8px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 900; padding: 3px 7px; border-radius: 8px; }
.pc .oos { position: absolute; top: 8px; right: 8px; background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 900; padding: 3px 7px; border-radius: 8px; }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.trust div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; font-size: 13px; }
.trust b { display: block; font-size: 14px; margin-bottom: 2px; }
.w-foot { background: var(--ink); color: rgba(255,255,255,.75); padding: 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 20px; font-size: 13px; }
.w-foot b { color: #fff; display: block; margin-bottom: 8px; }
.w-foot button { display: block; color: rgba(255,255,255,.75); padding: 3px 0; font-size: 13px; text-align: left; }
.w-foot button:hover { color: #fff; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumbs button { color: var(--muted); font-weight: 700; }
.crumbs button:hover { color: var(--brand-d); }
.listbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.listbar select, .field select, .field input, .field textarea { border: 1.5px solid var(--line); border-radius: 11px; padding: 8px 10px; background: #fff; font-weight: 700; outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); }
.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; }
.gal .main { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; background: #f5efed; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumbs img { width: 68px; height: 68px; border-radius: 12px; object-fit: cover; cursor: pointer; border: 2px solid var(--line); }
.thumbs img.on { border-color: var(--brand); }
.pd h3 { font-size: 25px; font-weight: 900; line-height: 1.2; margin: 8px 0; }
.price { font-size: 30px; font-weight: 900; color: var(--brand-d); }
.price s { color: var(--muted); font-size: 16px; font-weight: 600; margin-left: 8px; }
.box { border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-top: 14px; background: #fff; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.qty button { width: 34px; height: 36px; font-weight: 900; font-size: 16px; }
.qty b { width: 34px; text-align: center; }
.desc { white-space: pre-line; color: var(--ink2); font-size: 14px; line-height: 1.6; }
.rev { border-top: 1px solid var(--line); padding: 12px 0; font-size: 13.5px; }
.stars { color: #f5a623; letter-spacing: 1px; }
.co { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; }
.co h4 { font-size: 17px; font-weight: 900; margin: 18px 0 10px; }
.co h4:first-child { margin-top: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 800; color: var(--muted); }
.field input, .field select, .field textarea { color: var(--ink); font-size: 14px; }
.field.full { grid-column: 1 / -1; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; display: flex; gap: 10px; align-items: center; cursor: pointer; background: #fff; text-align: left; font-weight: 800; }
.opt.on { border-color: var(--brand); background: var(--soft); }
.opt small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
.opt .r { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; }
.opt.on .r { border: 5px solid var(--brand); }
.plogo { width: 40px; height: 28px; border-radius: 7px; display: grid; place-items: center; font-size: 10.5px; font-weight: 900; color: #fff; flex-shrink: 0; border: 1px solid #e5e5e5; }
.sum { background: var(--bg); border-radius: 18px; padding: 16px; position: sticky; top: 110px; }
.sum .l { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; gap: 10px; }
.sum .l b { white-space: nowrap; }
.sum .tot { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-size: 18px; font-weight: 900; }
.cline { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cline img { width: 74px; height: 74px; border-radius: 12px; object-fit: cover; cursor: pointer; }
.freebar { height: 8px; background: #fff; border-radius: 5px; overflow: hidden; margin-top: 8px; }
.freebar i { display: block; height: 100%; background: var(--brand); border-radius: 5px; transition: width .4s; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty b { display: block; font-size: 20px; color: var(--ink); margin: 10px 0 4px; }
.empty .ic { font-size: 46px; }
.modal { position: absolute; inset: 0; background: rgba(43,22,18,.5); display: grid; place-items: center; z-index: 40; animation: fade .2s; }
.modal .mc { background: #fff; border-radius: 22px; padding: 22px; width: min(380px, 90%); text-align: center; }
.spin { width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--soft); border-top-color: var(--brand); animation: spin .8s linear infinite; margin: 6px auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.ok-big { width: 86px; height: 86px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 46px; display: grid; place-items: center; margin: 0 auto 14px; }

/* tracking (date-based, Amazon style) */
.track { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.track .eta { font-size: 24px; font-weight: 900; }
.track .eta.done { color: #13894f; }
.track .eta.cancel { color: var(--muted); }
.prog { display: grid; grid-template-columns: repeat(5, 1fr); margin: 22px 0 6px; position: relative; }
.prog::before { content: ''; position: absolute; left: 10%; right: 10%; top: 13px; height: 4px; background: var(--line); border-radius: 3px; }
.prog .fill { position: absolute; left: 10%; top: 13px; height: 4px; background: var(--green); border-radius: 3px; transition: width .5s; }
.prog .st { text-align: center; position: relative; z-index: 1; font-size: 12.5px; }
.prog .st i { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: grid; place-items: center; margin: 0 auto 6px; font-style: normal; font-size: 13px; font-weight: 900; color: #fff; }
.prog .st.ok i { background: var(--green); border-color: var(--green); }
.prog .st.cur i { box-shadow: 0 0 0 5px rgba(31,164,99,.2); }
.prog .st b { display: block; font-size: 13px; }
.prog .st:not(.ok) b { color: var(--muted); }
.hist { margin-top: 10px; }
.hist div { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.hist time { width: 150px; color: var(--muted); font-weight: 700; flex-shrink: 0; }
.notif { background: var(--bg); border-radius: 12px; padding: 10px 12px; font-size: 13px; margin-top: 8px; }
.notif b { display: block; font-size: 12px; color: var(--muted); }
.olist .o { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 10px; cursor: pointer; }
.olist .o:hover { border-color: var(--brand); }
.olist img { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; }
.policy h4 { font-size: 16px; margin: 16px 0 6px; }
.policy p, .policy li { font-size: 14px; color: var(--ink2); }

/* ---------- mobile app ---------- */
.m-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 34px; align-items: start; }
.m-head { display: flex; align-items: center; gap: 10px; padding: 4px 14px 10px; }
.m-head img { height: 18px; }
.m-head .t { font-weight: 900; font-size: 15px; flex: 1; text-align: center; }
.ib { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 3px 10px rgba(0,0,0,.06); position: relative; font-size: 15px; flex-shrink: 0; }
.ib .n { position: absolute; top: -4px; right: -4px; background: var(--brand-d); color: #fff; font-size: 9.5px; font-weight: 900; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; }
.m-body { flex: 1; overflow-y: auto; scrollbar-width: none; padding-bottom: 86px; }
.m-body::-webkit-scrollbar { display: none; }
.m-search { margin: 0 14px 12px; display: flex; background: #fff; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.m-search input { flex: 1; border: 0; padding: 10px 12px; outline: none; background: none; }
.m-promo { margin: 0 14px 12px; border-radius: 18px; background: var(--grad); color: #fff; padding: 14px; display: flex; gap: 10px; align-items: center; cursor: pointer; }
.m-promo h4 { font-size: 17px; font-weight: 900; line-height: 1.15; }
.m-promo small { font-size: 10px; font-weight: 900; letter-spacing: .1em; opacity: .9; }
.m-promo img { width: 86px; height: 86px; border-radius: 13px; object-fit: cover; margin-left: auto; background: #fff; }
.m-sec { display: flex; justify-content: space-between; align-items: center; padding: 6px 14px 8px; font-weight: 900; font-size: 15px; }
.m-sec button { color: var(--brand-d); font-weight: 800; font-size: 12.5px; }
.m-chips { display: flex; gap: 7px; overflow-x: auto; padding: 0 14px 12px; scrollbar-width: none; }
.m-chips button { white-space: nowrap; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 7px 10px; font-weight: 800; font-size: 12px; }
.m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px; }
.m-grid .pc .t { font-size: 12px; }
.m-grid .pc .pr { font-size: 13.5px; }
.m-nav { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 58px; background: var(--ink); border-radius: 20px; display: flex; justify-content: space-around; align-items: center; z-index: 10; }
.m-nav button { color: rgba(255,255,255,.55); font-size: 18px; width: 46px; height: 38px; border-radius: 13px; position: relative; }
.m-nav button.on { background: var(--grad); color: #fff; }
.m-nav .n { position: absolute; top: -3px; right: -1px; background: var(--brand); color: #fff; font-size: 9.5px; font-weight: 900; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; }
.m-pd img.main { width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; }
.m-pd .in { background: #fff; border-radius: 22px 22px 0 0; margin-top: -18px; position: relative; padding: 16px 16px 20px; }
.m-pd h3 { font-size: 17px; font-weight: 900; line-height: 1.25; margin: 6px 0; }
.m-cta { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; padding: 10px 14px 16px; display: flex; gap: 8px; box-shadow: 0 -8px 20px rgba(0,0,0,.06); z-index: 11; }
.m-cta button { flex: 1; padding: 13px; border-radius: 14px; font-weight: 900; }
.m-cta .a { background: var(--soft); color: var(--brand-d); }
.m-cta .b { background: var(--grad); color: #fff; }
.m-box { background: #fff; border-radius: 16px; padding: 12px; margin: 0 12px 10px; }
.m-box h5 { font-size: 13.5px; font-weight: 900; margin-bottom: 8px; }
.m-box .opt { padding: 9px; font-size: 13px; margin-bottom: 6px; }
.m-catlist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px; }
.m-catlist button { background: #fff; border-radius: 16px; padding: 16px 10px; font-weight: 900; text-align: left; font-size: 13px; }
.m-catlist b { display: block; font-size: 26px; margin-bottom: 6px; }
.m-catlist small { color: var(--muted); font-weight: 700; }
.m-prog { display: flex; flex-direction: column; gap: 0; }
.m-prog .s { display: flex; gap: 10px; position: relative; padding-bottom: 14px; }
.m-prog .s:not(:last-child)::after { content: ''; position: absolute; left: 12px; top: 28px; bottom: 2px; width: 2px; background: var(--line); }
.m-prog .s.ok:not(:last-child)::after { background: var(--green); }
.m-prog .s i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: #fff; font-style: normal; font-size: 12px; font-weight: 900; flex-shrink: 0; }
.m-prog .s.ok i { background: var(--green); }
.m-prog b { font-size: 13px; display: block; }
.m-prog .s:not(.ok) b { color: var(--muted); }
.m-toast { position: absolute; left: 14px; right: 14px; bottom: 80px; background: var(--ink); color: #fff; border-radius: 13px; padding: 10px 12px; font-weight: 800; font-size: 12.5px; z-index: 30; animation: fade .2s; }
.m-side h3 { font-size: 24px; font-weight: 900; margin-bottom: 8px; }
.m-side ul { list-style: none; padding: 0; margin: 14px 0 0; }
.m-side li { padding: 9px 0 9px 28px; position: relative; border-top: 1px solid var(--line); font-size: 14.5px; }
.m-side li::before { content: '✓'; position: absolute; left: 4px; color: var(--green); font-weight: 900; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.jump button { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 8px 11px; font-weight: 800; font-size: 13px; }
.jump button:hover { border-color: var(--brand); color: var(--brand-d); }

/* ---------- admin & desk shared ---------- */
.console { display: grid; grid-template-columns: 220px 1fr; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; height: 780px; box-shadow: var(--shadow); position: relative; }
.side { background: var(--ink); color: #fff; padding: 16px 10px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.side .brand { display: flex; align-items: center; gap: 8px; padding: 2px 8px 16px; }
.side .brand img { height: 16px; filter: brightness(0) invert(1); }
.side .brand span { font-size: 10px; font-weight: 900; background: var(--brand); padding: 3px 6px; border-radius: 6px; }
.side button { color: rgba(255,255,255,.65); text-align: left; padding: 10px; border-radius: 11px; font-weight: 800; font-size: 13.5px; display: flex; gap: 9px; align-items: center; }
.side button:hover { background: rgba(255,255,255,.06); color: #fff; }
.side button.on { background: var(--grad); color: #fff; }
.side button em { margin-left: auto; font-style: normal; font-size: 11px; background: rgba(255,255,255,.16); padding: 1px 7px; border-radius: 7px; }
.side .who { margin-top: auto; padding: 12px 8px 4px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; }
.side .who select { width: 100%; margin-top: 6px; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.15); border-radius: 9px; padding: 7px; font-weight: 800; }
.side .who option { color: var(--ink); }
.cmain { display: flex; flex-direction: column; min-width: 0; background: #fbf9f8; }
.ctop { display: flex; align-items: center; gap: 10px; padding: 13px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.ctop h3 { font-size: 19px; font-weight: 900; }
.cbody { flex: 1; overflow-y: auto; padding: 18px 20px 30px; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 12px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 12px; }
.kpi small { display: block; color: var(--muted); font-weight: 700; font-size: 11.5px; }
.kpi b { display: block; font-size: 22px; font-weight: 900; white-space: nowrap; margin-top: 2px; }
.kpi span { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.g2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; min-width: 0; position: relative; }
.panel h5 { font-size: 14px; font-weight: 900; }
.panel .sub { color: var(--muted); font-size: 12px; font-weight: 600; margin: 2px 0 10px; }
.chart svg { display: block; width: 100%; }
.chart .grid line { stroke: #efe9e7; }
.chart .ax text { fill: var(--muted); font-size: 10.5px; font-weight: 600; font-family: inherit; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; border-radius: 10px; padding: 7px 9px; font-size: 12px; font-weight: 700; white-space: nowrap; z-index: 5; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity .12s; }
.tip b { display: block; font-size: 13.5px; }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar { display: grid; grid-template-columns: 120px 1fr 64px; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 700; }
.bar .tr { height: 12px; background: #f5efed; border-radius: 0 4px 4px 0; overflow: hidden; }
.bar .tr i { display: block; height: 100%; background: var(--brand); border-radius: 0 4px 4px 0; }
.bar b { text-align: right; font-weight: 900; white-space: nowrap; }
.stack { display: flex; height: 22px; gap: 2px; border-radius: 4px; overflow: hidden; margin: 6px 0 10px; }
.stack i { display: block; height: 100%; }
.lgd { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; font-weight: 700; color: var(--ink2); }
.lgd span { display: inline-flex; gap: 5px; align-items: center; }
.lgd i { width: 10px; height: 10px; border-radius: 3px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; padding: 9px 8px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr.ck { cursor: pointer; }
.tbl tr.ck:hover td { background: #fdf6f4; }
.tbl img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; }
.tbl input[type=number] { width: 84px; border: 1.5px solid var(--line); border-radius: 9px; padding: 6px 7px; font-weight: 800; }
.tbl b { white-space: nowrap; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filters button { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px 11px; font-weight: 800; font-size: 12.5px; color: var(--ink2); }
.filters button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters em { font-style: normal; opacity: .6; margin-left: 4px; }
.filters input { border: 1.5px solid var(--line); border-radius: 10px; padding: 7px 10px; margin-left: auto; width: 210px; outline: none; }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 440px; max-width: 100%; background: #fff; box-shadow: -20px 0 50px rgba(43,22,18,.2); z-index: 20; display: flex; flex-direction: column; animation: slide .22s ease; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer .dh { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.drawer .db { flex: 1; overflow-y: auto; padding: 14px 18px; }
.drawer .df { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; }
.drawer h6 { margin: 16px 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.x { margin-left: auto; width: 32px; height: 32px; border-radius: 10px; background: var(--bg); font-weight: 900; }
.sw { width: 36px; height: 21px; border-radius: 11px; background: var(--line); position: relative; display: inline-block; cursor: pointer; transition: .2s; vertical-align: middle; flex-shrink: 0; }
.sw::after { content: ''; position: absolute; top: 2.5px; left: 2.5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .2s; }
.sw.on { background: var(--green); }
.sw.on::after { left: 17.5px; }
.toast { position: fixed; bottom: 22px; left: 50%; translate: -50% 0; background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 13px; font-weight: 800; font-size: 13.5px; z-index: 90; box-shadow: var(--shadow); animation: fade .2s; max-width: 90vw; }
.feed { position: fixed; top: 58px; right: 14px; width: 380px; max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); z-index: 60; padding: 14px; display: none; }
.feed.on { display: block; animation: fade .2s; }
.feed h5 { font-size: 15px; font-weight: 900; margin-bottom: 4px; }
.ev { display: flex; gap: 9px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.ev i { font-style: normal; width: 28px; height: 28px; border-radius: 9px; background: var(--bg); display: grid; place-items: center; flex-shrink: 0; }
.ev time { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.ev .where { font-size: 10.5px; font-weight: 900; color: var(--brand-d); text-transform: uppercase; letter-spacing: .05em; }

/* desk */
.queue { display: grid; grid-template-columns: 330px 1fr; gap: 14px; height: 100%; min-height: 0; }
.qlist { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow-y: auto; }
.qi { padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13px; }
.qi:hover { background: #fdf6f4; }
.qi.on { background: var(--soft); box-shadow: inset 3px 0 0 var(--brand); }
.qi .t { display: flex; justify-content: space-between; gap: 8px; font-weight: 900; font-size: 14px; }
.qi .age { font-size: 11.5px; font-weight: 800; }
.qdetail { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow-y: auto; padding: 18px; }
.qdetail h4 { font-size: 20px; font-weight: 900; }
.info2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.info2 > div { background: var(--bg); border-radius: 14px; padding: 12px; font-size: 13.5px; }
.info2 h6 { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.script { background: #fffaf0; border: 1px solid #ffe2a8; border-radius: 14px; padding: 12px; font-size: 13px; margin-top: 12px; }
.thread { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.msg { max-width: 80%; padding: 10px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; }
.msg.c { background: var(--bg); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.s { background: var(--ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg small { display: block; font-size: 10.5px; opacity: .65; font-weight: 800; margin-bottom: 2px; }
.reply { display: flex; gap: 8px; }
.reply input { flex: 1; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; outline: none; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.quick button { background: var(--bg); border-radius: 10px; padding: 7px 10px; font-size: 12.5px; font-weight: 800; }
.perf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }

@media (max-width: 1150px) {
  .pipe { grid-template-columns: repeat(4, 1fr); }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .w-catgrid { grid-template-columns: repeat(4, 1fr); }
  .kpis { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .top { flex-wrap: wrap; }
  .chap { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .chap button { white-space: nowrap; }
  .pipe, .issues, .why { grid-template-columns: 1fr 1fr; }
  .hub { grid-template-columns: 1fr; }
  .m-wrap { grid-template-columns: 1fr; justify-items: center; }
  .pd, .co, .w-hero, .g2, .queue, .info2 { grid-template-columns: 1fr; }
  .w-hero img { width: 100%; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .w-foot, .trust { grid-template-columns: 1fr 1fr; }
  .console { grid-template-columns: 1fr; height: auto; }
  .side { flex-direction: row; overflow-x: auto; padding: 8px; }
  .side .brand { display: none; }
  .side button { white-space: nowrap; }
  .side .who { margin: 0; border: 0; padding: 0 8px; min-width: 170px; }
  .cbody { max-height: 760px; }
  .g3, .perf { grid-template-columns: 1fr 1fr; }
  .qlist { max-height: 300px; }
  .w-links .lbl { display: none; }
}
@media (max-width: 640px) {
  main { padding: 18px 12px 40px; }
  .pipe, .issues, .why, .g3, .fields, .opts, .kpis, .perf { grid-template-columns: 1fr; }
  .w-catgrid { grid-template-columns: repeat(2, 1fr); }
  .phone { width: 320px; }
  .try { margin-left: 0; }
  .w-top { flex-wrap: wrap; }
  .w-search { order: 3; max-width: none; flex-basis: 100%; }
  .feed { left: 12px; right: 12px; width: auto; }
  .cmp td:first-child { width: auto; }
  .prog .st b { font-size: 11px; }
}

/* =================== v4: storefront look =================== */
.w-ann { display: flex; justify-content: center; gap: 28px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; padding: 8px 16px; flex-wrap: wrap; }
.w-links .cartb .cn { background: var(--brand); border-radius: 8px; padding: 1px 7px; margin-left: 2px; }
.w-cats button { display: inline-flex; align-items: center; gap: 6px; }
.w-cats button img { width: 18px; height: 18px; }
.w-cats .hot { color: var(--brand-d); }
.w-slider { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 1400 / 519; background: #f3ecea; }
.w-track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.w-track img { width: 100%; height: 100%; object-fit: cover; flex-shrink: 0; cursor: pointer; }
.w-arr { position: absolute; top: 50%; translate: 0 -50%; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.85); font-size: 22px; font-weight: 900; }
.w-arr.l { left: 14px; } .w-arr.r { right: 14px; }
.w-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.w-dots i { width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.6); cursor: pointer; transition: width .3s; }
.w-dots i.on { width: 24px; background: #fff; }
.trust2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.trust2 div { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; font-size: 12.5px; color: var(--muted); }
.trust2 img { width: 40px; height: 40px; object-fit: contain; }
.trust2 b { display: block; color: var(--ink); font-size: 14px; }
.w-catgrid button img { width: 38px; height: 38px; margin: 0 auto 8px; object-fit: contain; }
.brands { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.brands img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.w-news { margin-top: 26px; display: flex; align-items: center; gap: 16px; background: var(--grad); color: #fff; border-radius: 20px; padding: 20px 24px; }
.w-news div { flex: 1; } .w-news b { display: block; font-size: 19px; } .w-news span { opacity: .9; }

/* =================== chat (shared by all channels) =================== */
.cm { max-width: 84%; padding: 8px 11px 6px; border-radius: 14px; font-size: 13px; line-height: 1.45; position: relative; animation: fade .25s ease; word-wrap: break-word; }
.cm time { display: block; text-align: right; font-size: 10px; opacity: .55; margin-top: 3px; }
.cm .who { display: block; font-size: 10.5px; font-weight: 900; opacity: .65; margin-bottom: 2px; }
.cm.in { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.cm.out { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.cm.agent { background: #e8f1ff; }
.cm.notify { background: #fff7e6; border: 1px solid #ffe2a8; }
.cm.sys { align-self: center; background: rgba(0,0,0,.06); color: var(--ink2); font-size: 11.5px; font-weight: 700; border-radius: 9px; max-width: 92%; text-align: center; }
.cm.typing { display: flex; gap: 4px; padding: 11px 13px; }
.cm.typing i { width: 7px; height: 7px; border-radius: 50%; background: #aaa; animation: blink 1s infinite; }
.cm.typing i:nth-child(2) { animation-delay: .15s; } .cm.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; } }
.bcards { display: flex; gap: 7px; overflow-x: auto; margin: 8px -4px 2px; padding: 0 4px 4px; scrollbar-width: thin; }
.bcard { min-width: 124px; width: 124px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); }
.bcard img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.bcard b { font-size: 11px; padding: 6px 7px 0; line-height: 1.25; height: 34px; overflow: hidden; }
.bcard span { font-size: 12px; font-weight: 900; color: var(--brand-d); padding: 2px 7px; }
.bcard button { margin: 4px 7px 7px; padding: 6px; border-radius: 9px; background: var(--grad); color: #fff; font-weight: 900; font-size: 11px; }
.bcard button:disabled { background: var(--line); color: var(--muted); }
.bsum { margin-top: 8px; background: var(--bg); border-radius: 10px; padding: 8px 10px; font-size: 12px; color: var(--ink); }
.bsum span { color: var(--muted); }
.evi-chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px 0; scrollbar-width: none; flex-shrink: 0; }
.evi-chips::-webkit-scrollbar { display: none; }
.evi-chips button { white-space: nowrap; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; font-size: 11.5px; font-weight: 800; color: var(--ink2); }
.evi-in, .chat-in { display: flex; gap: 6px; padding: 8px 10px 10px; flex-shrink: 0; }
.evi-in input, .chat-in input { flex: 1; border: 1.5px solid var(--line); border-radius: 18px; padding: 9px 13px; outline: none; background: #fff; min-width: 0; }
.evi-in input:focus { border-color: var(--brand); }
.evi-in button, .chat-in button { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff; flex-shrink: 0; }
.cbody2 { display: flex; flex-direction: column; gap: 7px; overflow-y: auto; }

/* website widget */
.evi { position: absolute; right: 18px; bottom: 18px; z-index: 30; }
.evi-fab { background: var(--grad); color: #fff; font-weight: 900; padding: 13px 18px; border-radius: 26px; box-shadow: 0 12px 30px -8px rgba(232,90,78,.7); font-size: 14px; text-align: left; }
.evi-fab small { display: block; font-size: 10.5px; opacity: .85; font-weight: 700; }
.evi-panel { width: 370px; height: 560px; max-height: calc(100vh - 160px); background: var(--bg); border-radius: 22px; box-shadow: 0 30px 70px -20px rgba(43,22,18,.45); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); animation: fade .2s; }
.evi-h { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--grad); color: #fff; }
.evi-h small { display: block; font-size: 11px; opacity: .9; }
.evi-h button { color: #fff; font-size: 16px; width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.18); }
.evi-panel .cbody2 { flex: 1; padding: 12px; }

/* part 2 layout */
.trio { display: grid; grid-template-columns: repeat(3, 340px); gap: 26px; justify-content: center; }
.who2 { display: flex; align-items: center; gap: 8px; justify-content: center; font-weight: 900; margin-bottom: 12px; font-size: 15px; }
.who2 i { font-style: normal; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--soft); font-size: 13px; color: #fff; }
.who2 span { font-size: 12px; color: var(--muted); font-weight: 700; }
.chatwin { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.chat-b { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 6px; scrollbar-width: none; }
.chat-b::-webkit-scrollbar { display: none; }
.chatwin.wa { background-color: #efe7de; background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 14px 14px; }
.wa-h { display: flex; align-items: center; gap: 9px; padding: 8px 12px; background: #075e54; color: #fff; }
.wa-h small, .ms-h small { display: block; font-size: 10.5px; opacity: .8; }
.wa .cm.out { background: #d9fdd3; color: var(--ink); border-radius: 10px 2px 10px 10px; }
.wa .cm.in { border-radius: 2px 10px 10px 10px; }
.wa .cm.notify { background: #fff; border: 0; border-left: 3px solid #25d366; }
.wa .chat-in input { border: 0; }
.wa .chat-in button { background: #00a884; }
.wa .evi-chips button { border: 0; color: #0a8f84; }
.chatwin.ms { background: #fff; }
.ms-h { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.ms .cm.out { background: linear-gradient(135deg, #0099ff, #a033ff); color: #fff; border-radius: 18px 18px 4px 18px; }
.ms .cm.in { background: #f0f0f0; box-shadow: none; border-radius: 18px 18px 18px 4px; }
.ms .cm.notify { background: #f0f0f0; border: 0; }
.ms .chat-in input { background: #f0f0f0; border: 0; }
.ms .chat-in button { background: none; color: #0084ff; font-size: 18px; }
.ms .evi-chips button { border-color: #0084ff; color: #0084ff; }
.ms-intro { text-align: center; padding: 26px 16px 14px; display: flex; flex-direction: column; gap: 3px; align-items: center; font-size: 12px; color: var(--muted); }
.ms-intro img { height: 26px; margin-bottom: 8px; }
.ms-intro b { color: var(--ink); font-size: 16px; }
.m-chatbar { position: absolute; left: 0; right: 0; bottom: 74px; background: var(--bg); z-index: 9; }
.m-push { position: absolute; top: 6px; left: 10px; right: 10px; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-radius: 18px; padding: 10px 12px; display: flex; gap: 10px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.35); font-size: 12px; animation: drop .35s ease; }
.m-push img { width: 34px; height: 34px; object-fit: contain; background: var(--soft); border-radius: 9px; padding: 4px; }
.m-push b { display: block; font-size: 11.5px; color: var(--muted); }
@keyframes drop { from { transform: translateY(-30px); opacity: 0; } }
.tbtn b { color: var(--brand-d); }

/* part 5 */
.build { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bcardx { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.bcardx .bi { width: 46px; height: 46px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.bcardx h4 { font-size: 17px; font-weight: 900; }
.bcardx ul { list-style: none; padding: 0; margin: 12px 0 0; }
.bcardx li { padding: 6px 0 6px 22px; position: relative; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--ink2); }
.bcardx li::before { content: '✓'; position: absolute; left: 2px; color: var(--green); font-weight: 900; }
.calc2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc2 label { display: flex; justify-content: space-between; gap: 10px; font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.calc2 input[type=range] { width: 100%; accent-color: var(--brand); margin-bottom: 16px; }
.outs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.outs div { background: var(--ink); color: #fff; border-radius: 18px; padding: 16px; }
.outs b { display: block; font-size: 30px; color: var(--brand); }
.outs span { color: rgba(255,255,255,.75); font-size: 13px; }
.tech { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tech div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.tech small { display: block; color: var(--muted); font-weight: 800; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.tech b { font-size: 14.5px; }
.road { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.road div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.road h4 { font-size: 15px; font-weight: 900; margin: 8px 0 4px; }

@media (max-width: 1150px) {
  .trio { grid-template-columns: repeat(2, 340px); }
  .brands { grid-template-columns: repeat(3, 1fr); }
  .build, .tech { grid-template-columns: 1fr 1fr; }
  .road { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .trust2 { grid-template-columns: 1fr 1fr; }
  .w-ann span:nth-child(n+3) { display: none; }
  .calc2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .trio { grid-template-columns: 1fr; justify-items: center; }
  .build, .tech, .road, .outs { grid-template-columns: 1fr; }
  .evi { right: 8px; bottom: 8px; }
  .evi-panel { width: calc(100vw - 50px); }
  .w-news { flex-direction: column; align-items: flex-start; }
}
.m-push.sms { top: 44px; }
.m-push .smsic { width: 34px; height: 34px; border-radius: 9px; background: #34c759; color: #fff; display: grid; place-items: center; flex-shrink: 0; }

/* =================== v5: professional consoles (order desk + admin) =================== */
#ch3 .ch-head, #ch4 .ch-head, #ch5 .ch-head { max-width: 1320px; }
#desk, #adm, #wh { display: grid; grid-template-columns: 236px 1fr; height: 880px; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); position: relative; width: min(1560px, calc(100vw - 44px)); margin-left: 50%; translate: -50% 0; }
.ic { display: inline-block; vertical-align: -3px; flex-shrink: 0; }
.side2 { background: #fcfaf9; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 16px 12px; gap: 4px; overflow-y: auto; }
.brand2 { display: flex; align-items: center; gap: 8px; padding: 0 8px 14px; }
.brand2 img { height: 17px; }
.brand2 span { font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--bg); border: 1px solid var(--line); padding: 3px 7px; border-radius: 7px; }
.me2 { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line); margin-bottom: 10px; }
.me2 b { display: block; font-size: 13.5px; } .me2 small { color: var(--muted); font-weight: 700; font-size: 11.5px; }
.side2 nav { display: flex; flex-direction: column; gap: 2px; }
.side2 .sep2 { font-size: 10.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #b3a6a3; padding: 12px 10px 4px; }
.side2 nav button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px; font-weight: 700; font-size: 13.5px; color: var(--ink2); text-align: left; }
.side2 nav button:hover { background: #f4eeec; }
.side2 nav button.on { background: var(--soft); color: var(--brand-d); font-weight: 900; }
.side2 nav button span { flex: 1; }
.side2 nav button em { font-style: normal; font-size: 11px; font-weight: 900; background: var(--brand); color: #fff; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px; }
.switch2 { margin-top: auto; padding: 12px 6px 0; border-top: 1px solid var(--line); }
.switch2 small { display: block; color: var(--muted); font-weight: 800; font-size: 11px; margin-bottom: 6px; }
.switch2 select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 8px; font-weight: 800; background: #fff; }
.main2 { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #faf8f7; }
.top2 { display: flex; align-items: center; gap: 16px; padding: 12px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.top2 h3 { font-size: 19px; font-weight: 900; white-space: nowrap; }
.top2 .tright { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.search2 { flex: 1; max-width: 560px; margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 0 10px; color: var(--muted); }
.search2:focus-within { border-color: var(--brand); background: #fff; }
.search2 input { flex: 1; border: 0; background: none; padding: 10px 0; outline: none; font-weight: 600; color: var(--ink); }
.search2 button { color: var(--muted); }
.kstrip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; padding: 14px 20px 0; }
.kstrip .k { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.kstrip .k span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); color: var(--ink2); }
.kstrip .k.amber span { background: var(--amber-s); color: var(--amber); }
.kstrip .k.green span { background: var(--green-s); color: #13894f; }
.kstrip .k.brand span { background: var(--soft); color: var(--brand-d); }
.kstrip small { display: block; color: var(--muted); font-weight: 700; font-size: 11.5px; }
.kstrip b { font-size: 19px; font-weight: 900; }
.body2 { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 20px 22px; }
.split { display: grid; grid-template-columns: 380px 1fr; gap: 14px; height: 100%; min-height: 560px; }
.qcol { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow-y: auto; }
.qhead { padding: 10px 14px; font-size: 12px; font-weight: 800; color: var(--muted); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.qcard { padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.qcard:hover { background: #fdf8f7; }
.qcard.on { background: var(--soft); box-shadow: inset 3px 0 0 var(--brand); }
.qcard.followed { background-image: linear-gradient(90deg, rgba(255,176,32,.12), transparent 40%); }
.qcard b { font-size: 14px; }
.av.sm { width: 32px; height: 32px; font-size: 11px; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 2px 7px; font-size: 11px; font-weight: 800; color: var(--ink2); white-space: nowrap; }
.sla { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 900; color: var(--muted); }
.sla.warn { color: var(--amber); } .sla.late { color: var(--brand-d); }
.starb { width: 30px; height: 30px; border-radius: 9px; color: #c9bcb9; display: grid; place-items: center; }
.starb:hover { background: var(--bg); color: var(--amber); }
.starb.on { color: #f5a623; }
.starb.on svg { fill: #f5a623; }
.dcol { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow-y: auto; padding: 18px 20px; }
.dhead { display: flex; align-items: flex-start; gap: 12px; }
.dhead h4 { font-size: 22px; font-weight: 900; }
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); margin: 18px 0 4px; position: relative; }
.stepper::before { content: ''; position: absolute; left: 10%; right: 10%; top: 15px; height: 3px; background: var(--line); }
.stp { text-align: center; position: relative; font-size: 12px; }
.stp i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 6px; background: #fff; border: 2px solid var(--line); color: var(--muted); font-style: normal; position: relative; z-index: 1; }
.stp.ok i { background: var(--green); border-color: var(--green); color: #fff; }
.stp.cur i { box-shadow: 0 0 0 5px rgba(31,164,99,.18); }
.stp b { display: block; font-size: 12.5px; }
.stp:not(.ok) b { color: var(--muted); }
.stp span { display: block; color: var(--muted); font-size: 11px; }
.stp em { display: block; font-style: normal; font-size: 11px; font-weight: 800; color: var(--ink2); }
.cancelled { margin: 16px 0 4px; background: #f3f0ef; border-radius: 12px; padding: 12px; font-weight: 800; color: var(--muted); }
.actbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 16px 0 4px; padding: 12px; background: var(--bg); border-radius: 14px; }
.actbar select { border: 1.5px solid var(--line); border-radius: 11px; padding: 9px; font-weight: 700; background: #fff; }
.btn.danger { color: var(--brand-d); }
.btn.wa { background: #25d366; }
.script { display: flex; gap: 10px; align-items: flex-start; background: #fffaf0; border: 1px solid #ffe2a8; border-radius: 14px; padding: 12px; font-size: 13px; margin-top: 10px; color: var(--ink2); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.icard { background: var(--bg); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; }
.icard h6 { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.paid { color: #13894f; font-weight: 900; }
.sub-h { display: flex; align-items: center; gap: 7px; font-weight: 900; font-size: 14px; margin: 18px 0 8px; }
.two2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inp { flex: 1; border: 1.5px solid var(--line); border-radius: 11px; padding: 9px 11px; outline: none; min-width: 0; }
.inp:focus { border-color: var(--brand); }
.noteb { background: var(--bg); border-radius: 11px; padding: 9px 11px; font-size: 13px; margin-top: 8px; }
.noteb.auto { background: #f2fbf6; }
.tline div { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.tline time { width: 112px; color: var(--muted); font-weight: 700; flex-shrink: 0; font-size: 12px; }
.custblock { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.cstats { display: flex; gap: 18px; }
.cstats div { text-align: right; } .cstats b { display: block; font-size: 16px; } .cstats span { font-size: 11px; color: var(--muted); font-weight: 700; }
.tbl tr.followed td { background: #fffaf0; }
.seg2 { display: inline-flex; margin-left: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg2 button { padding: 6px 11px; border-radius: 8px; font-weight: 800; font-size: 12.5px; color: var(--muted); }
.seg2 button.on { background: var(--ink); color: #fff; }
.drawer.wide { width: 720px; }
.msg.bot { background: var(--soft) !important; color: var(--ink) !important; }
.msg.notify { background: var(--green-s) !important; color: var(--ink) !important; }
.msg.agent { background: var(--ink); color: #fff; }

/* admin extras */
.live { display: inline-flex; align-items: center; gap: 7px; font-weight: 900; color: #13894f; }
.live i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(31,164,99,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(31,164,99,0); } 100% { box-shadow: 0 0 0 0 rgba(31,164,99,0); } }
.funnel { display: flex; flex-direction: column; gap: 8px; }
.fn { display: grid; grid-template-columns: 150px 1fr 120px; gap: 10px; align-items: center; font-size: 13px; font-weight: 700; }
.fn .tr { height: 26px; background: #f5efed; border-radius: 0 6px 6px 0; overflow: hidden; }
.fn .tr i { display: block; height: 100%; background: var(--brand); border-radius: 0 6px 6px 0; }
.fn b { text-align: right; font-size: 14px; } .fn small { color: var(--muted); font-weight: 700; margin-left: 4px; }
.thumbs3 { display: flex; } .thumbs3 img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; border: 2px solid #fff; margin-left: -8px; } .thumbs3 img:first-child { margin-left: 0; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #cfc6c4; margin-right: 5px; } .dot.on { background: var(--green); }
.utl div { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; align-items: flex-start; }
.utl .ti { width: 28px; height: 28px; border-radius: 9px; background: var(--bg); display: grid; place-items: center; flex-shrink: 0; color: var(--ink2); }
.utl time { margin-left: auto; color: var(--muted); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.tagx { display: inline-block; background: var(--violet-s); color: var(--violet); font-size: 11px; font-weight: 900; padding: 2px 7px; border-radius: 7px; margin-right: 4px; }
.tagx.red { background: var(--soft); color: var(--brand-d); }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } .cards3, .two2 { grid-template-columns: 1fr; } .qcol { max-height: 320px; } }
@media (max-width: 900px) {
  #desk, #adm, #wh { grid-template-columns: 1fr; height: auto; width: auto; margin-left: 0; translate: none; }
  .side2 { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .side2 nav { flex-direction: row; } .side2 nav button { white-space: nowrap; }
  .brand2, .me2, .side2 .sep2 { display: none; } .switch2 { margin: 0; border: 0; padding: 0 0 0 8px; min-width: 190px; }
  .top2 { flex-wrap: wrap; } .search2 { max-width: none; flex-basis: 100%; }
  .body2 { max-height: 820px; } .drawer.wide { width: 100%; }
  .stepper { grid-template-columns: repeat(5, 1fr); font-size: 10px; }
  .fn { grid-template-columns: 100px 1fr 80px; }
}

/* =================== v5: professional app UI =================== */
#mob { background: #f7f4f3; }
.abody { flex: 1; overflow-y: auto; scrollbar-width: none; padding: 0 0 92px; min-height: 0; }
.abody::-webkit-scrollbar { display: none; }
.ahead { display: flex; align-items: center; gap: 8px; padding: 6px 16px 10px; }
.ahead small { display: block; color: var(--muted); font-weight: 700; font-size: 12px; }
.ahead b { font-size: 19px; font-weight: 900; letter-spacing: -.01em; }
.abar { display: flex; align-items: center; gap: 8px; padding: 4px 12px 10px; }
.abar > b { flex: 1; text-align: center; font-size: 16px; font-weight: 900; }
.aib { width: 38px; height: 38px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--ink); position: relative; box-shadow: 0 1px 2px rgba(0,0,0,.05); border: 1px solid #efe9e7; flex-shrink: 0; }
.aib .n { position: absolute; top: -5px; right: -5px; background: var(--brand-d); color: #fff; font-size: 10px; font-weight: 900; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; border: 2px solid #fff; }
.aib.glass { background: rgba(255,255,255,.88); backdrop-filter: blur(8px); border: 0; }
.aib.on, .aib.glass.on { color: #f5a623; } .aib.on svg { fill: #f5a623; }
.asearch { display: flex; align-items: center; gap: 8px; margin: 0 16px 14px; background: #fff; border: 1px solid #ece5e3; border-radius: 14px; padding: 0 12px; color: var(--muted); }
.asearch input { flex: 1; border: 0; outline: none; padding: 11px 0; background: none; font-weight: 600; color: var(--ink); min-width: 0; }
.aslider { margin: 0 16px; border-radius: 18px; overflow: hidden; position: relative; aspect-ratio: 1400 / 519; box-shadow: 0 8px 20px -12px rgba(0,0,0,.4); }
.atrack { display: flex; height: 100%; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.atrack img { width: 100%; height: 100%; object-fit: cover; flex-shrink: 0; }
.adots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.adots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.6); transition: width .3s; cursor: pointer; }
.adots i.on { width: 18px; background: #fff; }
.acats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px; padding: 16px 12px 4px; }
.acats button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; color: var(--ink2); }
.acats span { width: 54px; height: 54px; border-radius: 18px; background: #fff; display: grid; place-items: center; border: 1px solid #efe9e7; }
.acats img { width: 28px; height: 28px; object-fit: contain; }
.apromo { margin: 12px 16px 2px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--ink); color: #fff; cursor: pointer; }
.apromo > span { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; }
.apromo div { flex: 1; } .apromo b { display: block; font-size: 14px; } .apromo small { opacity: .7; font-size: 11.5px; }
.asec { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 10px; }
.asec b { font-size: 16px; font-weight: 900; }
.asec button { display: flex; align-items: center; gap: 2px; color: var(--brand-d); font-weight: 800; font-size: 12.5px; }
.ag { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px; }
.ac { background: #fff; border-radius: 18px; overflow: hidden; cursor: pointer; border: 1px solid #efe9e7; display: flex; flex-direction: column; }
.ac-img { position: relative; aspect-ratio: 1; background: #f6f1ef; }
.ac-img img { width: 100%; height: 100%; object-fit: cover; }
.ac-off { position: absolute; top: 8px; left: 8px; background: var(--brand-d); color: #fff; font-size: 10.5px; font-weight: 900; padding: 3px 7px; border-radius: 8px; }
.ac-oos { position: absolute; bottom: 8px; left: 8px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 900; padding: 3px 7px; border-radius: 8px; }
.ac-wish { position: absolute; top: 7px; right: 7px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; color: #b9aca9; }
.ac-wish.on { color: #f5a623; } .ac-wish.on svg { fill: #f5a623; }
.ac-b { padding: 9px 10px 10px; display: flex; flex-direction: column; flex: 1; }
.ac-t { font-size: 12px; font-weight: 700; line-height: 1.3; height: 31px; overflow: hidden; color: var(--ink2); }
.ac-row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.ac-row b { font-size: 14px; font-weight: 900; display: block; } .ac-row s { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.ac-add { width: 32px; height: 32px; border-radius: 11px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.ac-add:disabled { background: var(--line); }
.anav { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 64px; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); border: 1px solid #ece5e3; border-radius: 22px; display: flex; justify-content: space-around; align-items: center; z-index: 10; box-shadow: 0 10px 30px -12px rgba(43,22,18,.3); }
.anav button { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #a39794; font-size: 10.5px; font-weight: 800; width: 58px; position: relative; padding-top: 4px; }
.anav button.on { color: var(--brand-d); }
.anav button.on::before { content: ''; position: absolute; top: -9px; width: 22px; height: 3px; border-radius: 2px; background: var(--brand); }
.anav em { position: absolute; top: 2px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-d); }
.acatlist { padding: 0 14px; display: flex; flex-direction: column; gap: 8px; }
.acatlist button { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #efe9e7; border-radius: 16px; padding: 10px 12px; text-align: left; color: var(--muted); }
.acatlist span { width: 44px; height: 44px; border-radius: 14px; background: var(--bg); display: grid; place-items: center; }
.acatlist img { width: 26px; height: 26px; object-fit: contain; }
.acatlist div { flex: 1; } .acatlist b { display: block; color: var(--ink); font-size: 14px; } .acatlist small { font-weight: 700; }
.afilt { display: flex; gap: 6px; overflow-x: auto; padding: 0 14px 8px; scrollbar-width: none; }
.afilt span { white-space: nowrap; background: #fff; border: 1px solid #ece5e3; border-radius: 10px; padding: 6px 10px; font-size: 11.5px; font-weight: 800; }
.afilt span.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.acount { padding: 2px 16px 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.aempty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 70px 30px; color: #c9bcb9; }
.aempty b { color: var(--ink); font-size: 17px; margin-top: 8px; } .aempty span { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.apd { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; }
.apd-top { position: absolute; top: 4px; left: 12px; right: 12px; display: flex; gap: 8px; z-index: 5; }
.apd-gal { position: relative; aspect-ratio: 1; background: #fff; }
.apd-gal img { width: 100%; height: 100%; object-fit: cover; }
.apd-b { background: #f7f4f3; border-radius: 24px 24px 0 0; margin-top: -22px; position: relative; padding: 18px 16px 10px; }
.apd-b h3 { font-size: 18px; font-weight: 900; line-height: 1.25; margin: 10px 0 6px; }
.achip { font-size: 11px; font-weight: 900; padding: 4px 8px; border-radius: 8px; background: #eee; color: #777; }
.achip.g { background: var(--green-s); color: #13894f; } .achip.a { background: var(--amber-s); color: var(--amber); } .achip.r { background: var(--soft); color: var(--brand-d); }
.astars { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 900; color: #f5a623; }
.astars svg { fill: #f5a623; }
.aprice { font-size: 24px; font-weight: 900; color: var(--ink); } .aprice s { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 6px; }
.ainfo { background: #fff; border-radius: 16px; padding: 4px 12px; margin-top: 12px; border: 1px solid #efe9e7; }
.ainfo div { display: flex; gap: 10px; padding: 10px 0; align-items: flex-start; color: var(--brand-d); }
.ainfo div + div { border-top: 1px solid var(--line); }
.ainfo span { color: var(--muted); font-size: 12px; } .ainfo b { display: block; color: var(--ink); font-size: 13px; }
.adesc { font-size: 12.5px; color: var(--ink2); line-height: 1.6; margin-top: 12px; white-space: pre-line; }
.acta { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; padding: 12px 14px 18px; display: flex; gap: 10px; align-items: center; box-shadow: 0 -10px 30px -12px rgba(0,0,0,.15); z-index: 11; border-radius: 22px 22px 0 0; }
.acta.col { flex-direction: column; align-items: stretch; gap: 6px; font-size: 13px; }
.abtn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 15px; background: var(--grad); color: #fff; font-weight: 900; font-size: 15px; }
.abtn.sm { width: auto; flex: 1; padding: 13px; font-size: 14px; }
.abtn.ghost { background: #fff; color: var(--ink); border: 1.5px solid #ece5e3; }
.abtn.link { background: none; color: var(--ink2); font-size: 14px; padding: 10px; }
.abtn.link.muted { color: var(--muted); font-weight: 700; }
.abtn:disabled { opacity: .5; }
.aqty { display: inline-flex; align-items: center; background: var(--bg); border-radius: 13px; border: 1px solid #ece5e3; }
.aqty button { width: 38px; height: 44px; display: grid; place-items: center; }
.aqty b { width: 26px; text-align: center; }
.aqty.sm button { width: 30px; height: 30px; } .aqty.sm b { width: 22px; font-size: 13px; }
.afree { display: flex; gap: 10px; align-items: center; margin: 0 14px 12px; background: var(--soft); border-radius: 16px; padding: 12px; color: var(--brand-d); font-size: 12.5px; }
.afree b { color: var(--ink); } .afree.ok { background: var(--green-s); color: #13894f; }
.afree .freebar { background: #fff; }
.aline { display: flex; gap: 12px; margin: 0 14px 10px; background: #fff; border-radius: 16px; padding: 10px; border: 1px solid #efe9e7; }
.aline img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; cursor: pointer; }
.aline b { font-size: 12.5px; } .aline span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.abox { background: #fff; border-radius: 16px; padding: 12px 14px; margin: 0 14px 10px; border: 1px solid #efe9e7; font-size: 13px; line-height: 1.55; }
.abox-h { display: flex; align-items: center; gap: 6px; font-weight: 900; font-size: 13.5px; margin-bottom: 8px; color: var(--ink); }
.abox .row { padding: 2px 0; }
.aopt { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border: 1.5px solid #ece5e3; border-radius: 13px; padding: 10px; margin-bottom: 6px; font-size: 13px; }
.aopt small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.aopt .r { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d8cfcc; flex-shrink: 0; }
.aopt.on { border-color: var(--brand); background: #fff8f7; } .aopt.on .r { border: 5px solid var(--brand); }
.aord { display: flex; gap: 12px; margin: 0 14px 10px; background: #fff; border: 1px solid #efe9e7; border-radius: 16px; padding: 10px; cursor: pointer; align-items: center; }
.aord img { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; }
.aeta { margin: 0 14px 10px; border-radius: 18px; padding: 16px; background: var(--ink); color: #fff; }
.aeta small { opacity: .7; font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; } .aeta b { display: block; font-size: 21px; margin-top: 2px; }
.aeta.done { background: linear-gradient(135deg, #29b872, #13894f); } .aeta.cx { background: #8a7b78; }
.aprof { display: flex; align-items: center; gap: 12px; margin: 0 14px 12px; background: #fff; border-radius: 18px; padding: 14px; border: 1px solid #efe9e7; }
.aprof b { display: block; font-size: 16px; } .aprof small { color: var(--muted); font-weight: 700; font-size: 12px; }
.amenu { margin: 0 14px; background: #fff; border-radius: 18px; border: 1px solid #efe9e7; overflow: hidden; }
.amenu button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 14px; text-align: left; color: var(--ink2); }
.amenu button + button { border-top: 1px solid var(--line); }
.amenu b { font-size: 13.5px; color: var(--ink); } .amenu span { color: var(--muted); font-size: 12px; font-weight: 700; }
.awel { flex: 1; display: flex; flex-direction: column; padding: 10px 22px 22px; text-align: center; overflow-y: auto; }
.awel-logo { height: 24px; margin: 6px auto 14px; }
.awel-art { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 18px; }
.awel-art img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.awel h3 { font-size: 21px; font-weight: 900; line-height: 1.2; }
.awel p { color: var(--muted); font-size: 13px; margin: 8px 0 18px; }
.awel .abtn { margin-bottom: 8px; }
.aauth { padding: 4px 22px 30px; }
.aauth h3 { font-size: 22px; font-weight: 900; }
.aauth p { margin: 6px 0 18px; font-size: 13px; }
.afield { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 12px; }
.afield input { border: 1.5px solid #ece5e3; border-radius: 13px; padding: 12px; font-size: 14px; font-weight: 600; outline: none; background: #fff; color: var(--ink); }
.afield input:focus { border-color: var(--brand); }
.aphone { display: flex; border: 1.5px solid #ece5e3; border-radius: 13px; overflow: hidden; background: #fff; }
.aphone:focus-within { border-color: var(--brand); }
.aphone span { padding: 12px 10px; background: var(--bg); font-size: 13px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.aphone input { border: 0; border-radius: 0; flex: 1; min-width: 0; }
.aotp { display: flex; gap: 10px; justify-content: center; margin: 4px 0 6px; }
.aotp span { width: 52px; height: 60px; border-radius: 15px; border: 1.5px solid #ece5e3; background: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 900; }
.aotp span.f { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(240,116,104,.15); }
.aotp-in { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.aauth form { position: relative; }
.aauth form .aotp { cursor: text; }
.aerr { background: var(--soft); color: var(--brand-d); border-radius: 11px; padding: 9px 11px; font-size: 12.5px; font-weight: 800; margin: 8px 0 12px; }
.alink { color: var(--brand-d); font-weight: 900; }
.spin.sm { width: 16px; height: 16px; border-width: 2.5px; margin: 0; display: inline-block; border-color: rgba(255,255,255,.4); border-top-color: #fff; }
/* website: header links & auth */
.w-ann span { display: inline-flex; align-items: center; gap: 6px; }
.w-search button { display: grid; place-items: center; }
.w-links button { display: flex; align-items: center; gap: 8px; text-align: left; line-height: 1.15; }
.w-links .lbl small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.w-links .cartb .lbl { color: #fff; }
.w-cats .hot { color: var(--brand-d); font-weight: 900; }
.authsplit { display: grid; grid-template-columns: 440px 1fr; gap: 26px; max-width: 980px; margin: 10px auto; align-items: stretch; }
.authcard { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; max-width: 460px; margin: 0 auto; width: 100%; text-align: left; }
.authcard h3 { font-size: 24px; font-weight: 900; margin-bottom: 6px; }
.authcard > p { margin-bottom: 16px; }
.authcard .ok-ic { width: 56px; height: 56px; border-radius: 18px; background: var(--soft); color: var(--brand-d); display: grid; place-items: center; margin-bottom: 12px; }
.codein { width: 100%; text-align: center; font-size: 30px; letter-spacing: 18px; font-weight: 900; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; outline: none; }
.codein:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(240,116,104,.15); }
.or { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--muted); font-size: 12px; font-weight: 800; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.authside { border-radius: 22px; overflow: hidden; background: var(--ink); color: #fff; display: flex; flex-direction: column; }
.authside img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.authside div { padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.authside p { display: flex; gap: 12px; align-items: flex-start; color: var(--brand); }
.authside span { color: rgba(255,255,255,.7); font-size: 13px; } .authside b { display: block; color: #fff; font-size: 14.5px; }
.wsms { position: absolute; top: 56px; right: 18px; z-index: 40; width: 330px; background: rgba(255,255,255,.97); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; display: flex; gap: 10px; box-shadow: var(--shadow); font-size: 13px; animation: drop .35s ease; }
.wsms span { width: 36px; height: 36px; border-radius: 10px; background: #34c759; color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.wsms b { display: block; font-size: 11.5px; color: var(--muted); }
@media (max-width: 900px) { .authsplit { grid-template-columns: 1fr; } .authside { display: none; } }

/* =================== v5: part 5 interactive graphics =================== */
.toggle2 { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px; margin-bottom: 14px; }
.toggle2 button { display: flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 11px; font-weight: 900; color: var(--muted); }
.toggle2 button.on { background: var(--ink); color: #fff; }
.flowx { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; padding: 18px 0 6px; }
.flowx .track { position: absolute; left: 6%; right: 6%; top: 46px; height: 4px; border-radius: 3px; background: var(--line); overflow: hidden; }
.flowx .runner { position: absolute; top: 0; left: 0; width: 60px; height: 4px; border-radius: 3px; animation: run 9s linear infinite; }
.flowx.old .runner { background: #ffb020; animation-duration: 11s; }
.flowx.new .runner { background: var(--green); animation-duration: 2.6s; }
@keyframes run { from { transform: translateX(-60px); } to { transform: translateX(1300px); } }
.fnode { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0 4px 10px; border-radius: 16px; transition: transform .2s; }
.fnode:hover { transform: translateY(-3px); }
.fnode i { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-style: normal; color: var(--ink2); transition: .2s; }
.fnode.auto i { border-color: #9fdcbc; color: #13894f; background: #f2fbf6; }
.fnode.manual i { border-color: #ffd28a; color: var(--amber); background: #fffaf0; }
.fnode.missing i { border-color: #ffb3aa; color: var(--brand-d); background: #fff6f4; }
.fnode.on i { transform: scale(1.12); box-shadow: 0 10px 24px -10px rgba(43,22,18,.45); }
.fnode b { font-size: 13.5px; } .fnode small { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.flowfoot { display: grid; grid-template-columns: 1fr 240px; gap: 12px; margin-top: 8px; }
.fdetail { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; animation: fade .25s; }
.fdetail b { display: block; font-size: 17px; margin: 6px 0 4px; } .fdetail p { color: var(--ink2); font-size: 14px; }
.tg { font-size: 11px; font-weight: 900; padding: 3px 8px; border-radius: 7px; }
.tg.auto { background: var(--green-s); color: #13894f; } .tg.manual { background: var(--amber-s); color: var(--amber); } .tg.missing { background: var(--soft); color: var(--brand-d); }
.fsum { background: var(--ink); color: #fff; border-radius: 18px; padding: 16px 18px; }
.fsum small { color: rgba(255,255,255,.6); font-weight: 800; font-size: 12px; } .fsum b { display: block; font-size: 34px; color: var(--brand); } .fsum span { font-size: 12.5px; color: rgba(255,255,255,.75); }
.flowx.new + .flowfoot .fsum b { color: #5fd79b; }
.mx { display: flex; flex-direction: column; gap: 14px; }
.mrow { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: center; }
.ml b { display: block; font-size: 14.5px; } .ml small { color: var(--muted); font-size: 12px; font-weight: 600; }
.mb { display: flex; flex-direction: column; gap: 4px; }
.mb > div { display: flex; align-items: center; gap: 8px; height: 20px; }
.mb i { display: block; height: 100%; border-radius: 0 5px 5px 0; width: 0; transition: width 1s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d); }
.mb .b0 i { background: #b9aca9; } .mb .b1 i { background: var(--brand); }
.mb span { font-size: 12.5px; font-weight: 900; white-space: nowrap; }
#metrics:not(.go) .mb i { width: 0 !important; }
.hubwrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
.hubx { position: relative; }
.hubsvg { width: 100%; display: block; }
.hubsvg .spoke { stroke: var(--line); stroke-width: 2; stroke-dasharray: 5 5; }
.hubsvg .spoke.on { stroke: var(--brand); stroke-dasharray: none; stroke-width: 3; }
.hubsvg .core { fill: var(--ink); }
.hubsvg .ct { fill: #fff; font-weight: 900; font-size: 15px; font-family: inherit; } .hubsvg .cs { fill: rgba(255,255,255,.6); font-size: 11px; font-weight: 700; font-family: inherit; }
.hubsvg .sat { cursor: pointer; }
.hubsvg .sat circle { fill: #fff; stroke: var(--line); stroke-width: 2; transition: .2s; }
.hubsvg .sat.on circle { fill: var(--soft); stroke: var(--brand); stroke-width: 3; }
.hubsvg .sat text { font-size: 12px; font-weight: 900; fill: var(--ink); font-family: inherit; }
.sati { position: absolute; translate: -50% -50%; color: var(--ink2); cursor: pointer; display: grid; place-items: center; width: 60px; height: 60px; }
.sati.on { color: var(--brand-d); }
.hubside h4 { font-size: 22px; font-weight: 900; margin: 10px 0; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.hubside ul { list-style: none; padding: 0; margin: 0; }
.hubside li { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink2); }
.hubside li svg { color: var(--green); }
.calc3 { display: grid; grid-template-columns: 1fr 1.2fr; gap: 14px; }
.calc3 label { display: flex; justify-content: space-between; gap: 10px; font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.calc3 input[type=range] { width: 100%; accent-color: var(--brand); margin-bottom: 16px; }
.crow { display: grid; grid-template-columns: 56px 1fr 80px; gap: 10px; align-items: center; margin-bottom: 10px; font-weight: 800; font-size: 13px; }
.cbar { display: flex; height: 30px; gap: 2px; background: var(--bg); border-radius: 0 6px 6px 0; overflow: hidden; }
.cbar i { display: block; height: 100%; transition: width .5s ease; }
.cbar .c0 { background: #2a78d6; } .cbar .c1 { background: #eb6834; border-radius: 0 6px 6px 0; }
.crow b { text-align: right; font-size: 15px; }
.calcout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.calcout div { background: var(--ink); color: #fff; border-radius: 16px; padding: 12px 14px; }
.calcout b { display: block; font-size: 26px; color: var(--brand); } .calcout span { font-size: 12px; color: rgba(255,255,255,.75); }
.gantt { display: flex; flex-direction: column; gap: 8px; }
.gh { display: grid; grid-template-columns: 220px repeat(13, 1fr); font-size: 11px; font-weight: 800; color: var(--muted); text-align: center; }
.gr { display: grid; grid-template-columns: 220px 1fr; align-items: center; }
.gr b { font-size: 13.5px; }
.gt { display: grid; height: 34px; background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: calc(100% / 13) 100%; border-radius: 8px; }
.gt i { background: var(--grad); color: #fff; font-style: normal; font-size: 11.5px; font-weight: 900; border-radius: 9px; display: flex; align-items: center; padding: 0 10px; white-space: nowrap; overflow: hidden; transform-origin: left; transform: scaleX(0); transition: transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d); }
.gantt.go .gt i { transform: scaleX(1); }
@media (max-width: 900px) {
  .flowx { grid-template-columns: repeat(3, 1fr); } .flowx .track { display: none; }
  .flowfoot, .hubwrap, .calc3, .mrow { grid-template-columns: 1fr; }
  .gh { display: none; } .gr { grid-template-columns: 1fr; gap: 4px; }
}
.top .by, .tbtn, .chap button { white-space: nowrap; }
@media (max-width: 1500px) { .top { gap: 10px; padding: 10px 14px; } .chap button { font-size: 13px; padding: 7px 8px; gap: 5px; } .tbtn { padding: 7px 8px; font-size: 12px; } }
@media (max-width: 1250px) { .chap { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } }
.fn { grid-template-columns: 118px 1fr 92px; }

/* =================== v7: guide bar, language, chrome =================== */
body { font-family: 'Urbanist', 'IBM Plex Sans Arabic', system-ui, sans-serif; }
body.ar .ch-head, body.ar .qa, body.ar .ch-nav, body.ar .proto-note, body.ar .chap, body.ar .tools, body.ar .backlink, body.ar .feed h5, body.ar .feed p { font-family: 'IBM Plex Sans Arabic', 'Urbanist', system-ui, sans-serif; }
body.ar .ch-head .num { letter-spacing: 0; }
.proto-note { background: var(--ink); color: #f5e9e6; font-size: 12.5px; font-weight: 600; text-align: center; padding: 8px 16px; line-height: 1.45; }
.backlink { text-decoration: none; font-weight: 800; font-size: 13px; color: var(--brand-d); background: var(--soft); padding: 7px 11px; border-radius: 10px; white-space: nowrap; }
.aidot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #c9bcb9; margin-inline-end: 6px; }
.aidot.on { background: var(--green); box-shadow: 0 0 0 3px rgba(31,164,99,.2); }
.ch-head h2 { margin-top: 4px; }
.qa { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -4px 0 16px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.qa-l { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: 13px; color: var(--brand-d); margin-inline-end: 4px; }
.qa button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 11px; background: var(--bg); border: 1px solid var(--line); font-weight: 800; font-size: 13px; color: var(--ink2); transition: .15s; }
.qa button:hover { border-color: var(--brand); color: var(--brand-d); background: #fff8f7; }
.qa button.busy { opacity: .55; cursor: progress; }
.ch-nav a.btn { text-decoration: none; }
@media (max-width: 700px) { .qa { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .qa button { white-space: nowrap; } .backlink { display: none; } }

/* =================== v10: order editing, warehouse, reports =================== */
.pill.s9 { background: #eceaf3; color: #5b5675; }
.tools3 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 4px; padding: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.stchg { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.stchg small { font-weight: 800; color: var(--muted); font-size: 12px; }
.tools3 select, .egrid select, .filters select, .whhead select { border: 1.5px solid var(--line); border-radius: 10px; padding: 7px 9px; background: #fff; font: inherit; font-size: 13px; max-width: 100%; }
.tools3 .inp { width: 220px; max-width: 100%; padding: 7px 10px; }
.editbox { margin-top: 12px; border: 2px solid var(--brand); border-radius: 18px; padding: 14px 16px; background: #fffaf9; }
.editbox h5 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.erow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.erow img { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }
.erow .grow { min-width: 0; } .erow .grow b { display: block; font-size: 13.5px; } .erow small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.erow.sm { padding: 6px 0; font-size: 13px; }
.erow .eline { min-width: 86px; text-align: end; }
.erow .x { width: 30px; height: 30px; border-radius: 9px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--brand-d); flex-shrink: 0; }
.erow .qin { width: 74px; padding: 7px 8px; }
.eadd { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); }
.eadd .inp { flex: 1; min-width: 0; }
.egrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.egrid label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 800; color: var(--muted); min-width: 0; }
.egrid label.wide { grid-column: span 2; }
.egrid .inp, .egrid select { width: 100%; }
.esum { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; }
.esum .up { color: var(--amber); font-weight: 900; } .esum .down { color: #13894f; font-weight: 900; }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty button { width: 28px; height: 28px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-weight: 900; }
.qty b { min-width: 22px; text-align: center; }
.whbox { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #f1f6ff; border: 1px solid #d9e6fb; font-size: 13px; line-height: 1.5; }
.whbox.bad { background: #fff3f1; border-color: #f6cdc7; }
.whhead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.whhead > div:first-child { flex: 1; min-width: 220px; } .whhead b { display: block; font-size: 15px; }
.prog { width: 160px; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; } .prog i { display: block; height: 100%; background: var(--green); transition: width .3s; }
.binx { display: inline-block; font-family: ui-monospace, Menlo, monospace; font-size: 12px; font-weight: 800; background: var(--ink); color: #fff; padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.tick { width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--line); background: #fff; color: transparent; display: inline-grid; place-items: center; flex-shrink: 0; }
.tick.on { background: var(--green); border-color: var(--green); color: #fff; }
.pickt img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; }
.pickt tr.picked td { opacity: .55; } .pickt tr.picked td:first-child { opacity: 1; }
.pickt td.bad { color: var(--brand-d); font-weight: 900; }
.pickt .chip { cursor: pointer; }
.pkrow { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; margin-top: 8px; }
.pkrow.ok { background: #f2fbf6; border-color: #bfe8d1; }
.pkrow img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.pkrow .grow { min-width: 0; } .pkrow .grow b { display: block; font-size: 13.5px; } .pkrow small { color: var(--muted); font-size: 12px; font-weight: 600; }
.units { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.slabel { margin-top: 14px; width: 330px; max-width: 100%; border: 2px dashed var(--ink); border-radius: 12px; padding: 14px; background: #fff; font-size: 13px; animation: fade .3s ease; }
.slabel img { height: 16px; } .slabel .to { margin: 10px 0; line-height: 1.45; } .slabel .to small { display: block; font-size: 10px; font-weight: 900; letter-spacing: .1em; color: var(--muted); } .slabel .to b { display: block; font-size: 16px; }
.slabel .bc { display: flex; height: 44px; margin-top: 10px; overflow: hidden; } .slabel .bc i { background: #000; height: 100%; } .slabel .bc b { height: 100%; }
.route { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg); }
.mv { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.mv .grow { min-width: 0; } .mv small { display: block; color: var(--muted); font-size: 11.5px; }
.mv b.up, .dl.up { color: #13894f; } .mv b.down, .dl.down { color: var(--brand-d); }
.mv > b { min-width: 34px; }
.dl { font-weight: 900; font-size: 12px; }
.g2.wide1 { grid-template-columns: 1.7fr 1fr; }
.tbl img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; }

/* =================== v10: phone layout for the whole simulation =================== */
@media (max-width: 900px) {
  .side2 .switch2 select { max-width: 220px; }
  .g2.wide1 { grid-template-columns: 1fr; }
  .egrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .top { padding: 8px 12px; gap: 8px; }
  .top .logo { height: 17px; }
  .tools { width: 100%; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .tbtn { flex-shrink: 0; }
  .ch-head h2 { font-size: 22px; line-height: 1.2; }
  .ch-nav { flex-wrap: wrap; gap: 8px; } .ch-nav .btn { flex: 1; justify-content: center; }
  .browser .bbar .url { font-size: 11px; }
  .site { height: 640px; }
  .phone { width: min(330px, calc(100vw - 32px)); }
  #desk, #adm, #wh { border-radius: 16px; }
  .top2 { padding: 12px; } .top2 h3 { font-size: 17px; } .tright { display: none; }
  .kstrip { grid-template-columns: 1fr 1fr; padding: 10px 12px 0; gap: 8px; }
  .kstrip .k { padding: 8px; gap: 8px; } .kstrip .k span { width: 28px; height: 28px; } .kstrip b { font-size: 16px; }
  .body2 { padding: 12px !important; max-height: none; }
  .split { min-height: 0; } .dcol { padding: 14px 12px; }
  .dhead { flex-wrap: wrap; } .dhead h4 { font-size: 18px; }
  .actbar { flex-wrap: wrap; } .actbar .row { flex-wrap: wrap; justify-content: flex-start !important; }
  .tools3 { flex-direction: column; align-items: stretch; } .stchg { width: 100%; } .tools3 .inp, .stchg select { flex: 1; width: auto; min-width: 0; }
  .egrid { grid-template-columns: 1fr; } .egrid label.wide { grid-column: auto; }
  .erow { flex-wrap: wrap; } .erow .grow { flex-basis: calc(100% - 52px); } .erow .eline { min-width: 0; margin-inline-start: auto; }
  .pkrow { flex-wrap: wrap; } .pkrow .grow { flex-basis: calc(100% - 60px); } .units { width: 100%; justify-content: flex-start; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .filters > * { flex-shrink: 0; } .filters input { min-width: 200px; }
  .panel { overflow-x: auto; }
  .tbl { font-size: 12.5px; } .tbl th, .tbl td { padding: 8px; white-space: nowrap; }
  .tbl td .tiny, .tbl td.tiny { white-space: normal; min-width: 120px; }
  .drawer, .drawer.wide { width: 100%; position: fixed; z-index: 90; top: 0; }
  .stepper .stp b { font-size: 9.5px; } .stepper .stp span, .stepper .stp em { display: none; }
  .feed { top: 110px; }
  .qa { margin-inline: -4px; }
}
@media (max-width: 640px) {
  .top { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 8px 10px; }
  .top::-webkit-scrollbar { display: none; }
  .top .logo { display: none; }
  .chap { width: auto; margin: 0; flex-shrink: 0; overflow: visible; }
  .tools { width: auto; overflow: visible; flex-shrink: 0; }
  .trust2 { grid-template-columns: 1fr; }
  .trust2 > div { padding: 10px 12px; }
}
@media (max-width: 640px) {
  .split > *, .main2, .body2, .dcol, .qcol { min-width: 0; }
  .qcard .row, .dhead .row, .dhead { flex-wrap: wrap; row-gap: 6px; }
  .actbar { gap: 8px; } .actbar > .btn, .actbar .row > * { flex: 1 1 auto; }
  .actbar select { flex: 1 1 100%; min-width: 0; max-width: 100%; }
  .stchg > select, .stchg > .inp, .stchg > .btn { flex: 1 1 100%; width: 100%; }
  .stchg > small { flex: 0 0 auto; }
  .kstrip { display: flex; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .kstrip .k { flex: 0 0 150px; }
  .cards3 .row { flex-wrap: wrap; }
  .custblock .row { flex-wrap: wrap; } .cstats { width: 100%; }
  .two2 { gap: 0; }
}
@media (max-width: 640px) {
  .actbar > .row { flex: 1 1 100%; display: flex; gap: 8px; }
  .actbar > .row > select, .actbar > .row > .btn { flex: 1 1 100%; width: 100%; }
}
.two2 > *, .cards3 > * { min-width: 0; }
.two2 .row .inp { flex: 1; min-width: 0; }
@media (max-width: 640px) {
  .editbox { padding: 12px; }
  .editbox > .row:first-child { flex-direction: column; align-items: flex-start; gap: 4px; }
  .editbox > .row:last-child .btn { flex: 1; justify-content: center; }
}
.dl { white-space: nowrap; margin-inline-end: 4px; }

/* =================== v12: shoppable reels (website + app) =================== */
.w-cats .reelsb { color: #fff !important; background: linear-gradient(135deg, #f58a7e, #8a3ffc); border-radius: 10px; }
.rl-row { margin: 22px 0 6px; }
.rl-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.rl-h b { font-size: 20px; font-weight: 900; } .rl-h small { color: var(--muted); font-weight: 700; }
.rl-h button { margin-inline-start: auto; font-weight: 800; color: var(--brand-d); display: inline-flex; align-items: center; gap: 4px; }
.rl-badge { display: inline-flex; align-items: center; gap: 5px; background: linear-gradient(135deg, #f58a7e, #8a3ffc); color: #fff; font-size: 11.5px; font-weight: 900; padding: 4px 9px; border-radius: 8px; }
.rl-strip { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.rl-strip::-webkit-scrollbar { display: none; }
.rl-card { position: relative; flex: 0 0 158px; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #1b0f0c; scroll-snap-align: start; text-align: start; }
.rl-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 3s ease; }
.rl-card:hover img { transform: scale(1.12); }
.rl-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 40%, rgba(0,0,0,.78)); }
.rl-play { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.28); backdrop-filter: blur(6px); color: #fff; display: grid; place-items: center; z-index: 2; }
.rl-views { position: absolute; top: 8px; left: 8px; z-index: 2; display: inline-flex; gap: 4px; align-items: center; color: #fff; font-size: 11px; font-weight: 800; background: rgba(0,0,0,.35); padding: 3px 7px; border-radius: 7px; }
.rl-cap { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; color: #fff; display: flex; flex-direction: column; gap: 2px; }
.rl-cap em { font-style: normal; font-size: 10.5px; font-weight: 900; opacity: .85; text-transform: uppercase; letter-spacing: .05em; }
.rl-cap b { font-size: 12.5px; line-height: 1.25; } .rl-cap i { font-style: normal; font-weight: 900; font-size: 12.5px; color: #ffc4bd; }
.rl-row.app { margin: 14px 0 4px; padding: 0 16px; }
.rl-row.app .rl-h b { font-size: 16px; } .rl-row.app .rl-h small { display: none; }
.rl-row.app .rl-card { flex-basis: 112px; border-radius: 14px; }
.rl-row.app .rl-play { width: 36px; height: 36px; }

.reelv { position: absolute; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; animation: fade .25s ease; }
.reelv.app { border-radius: inherit; overflow: hidden; background: #000; }
.rv-bg { position: absolute; inset: 0; background: rgba(15,8,6,.88); backdrop-filter: blur(6px); }
.rv-wrap { position: relative; display: flex; align-items: center; gap: 18px; height: 100%; padding: 18px; }
.reelv.app .rv-wrap { padding: 0; width: 100%; }
.rv-player { position: relative; height: 100%; aspect-ratio: 9 / 16; max-height: 700px; border-radius: 20px; overflow: hidden; background: #000; color: #fff; user-select: none; touch-action: none; }
.reelv.app .rv-player { width: 100%; max-height: none; aspect-ratio: auto; border-radius: 0; }
.rv-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: rvslide var(--dur) linear both; animation-delay: calc(var(--dur) / var(--c) * var(--n)); }
.rv-slides img:first-child { opacity: 1; }
@keyframes rvslide { 0% { opacity: 0; transform: scale(1.02); } 6% { opacity: 1; } 30% { opacity: 1; } 36% { opacity: 1; } 100% { opacity: 1; transform: scale(1.18) translateY(-2%); } }
.rv-player.paused .rv-slides img, .rv-player.paused .rv-prog i, .rv-player.paused .rv-text span { animation-play-state: paused; }
.rv-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 22%, transparent 48%, rgba(0,0,0,.85)); pointer-events: none; }
.rv-prog { position: absolute; top: 8px; left: 10px; right: 10px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; z-index: 3; }
.rv-prog i { display: block; height: 100%; background: #fff; transform-origin: left; animation: jfill var(--dur) linear forwards; }
@keyframes jfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.rv-top { position: absolute; top: 18px; left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; z-index: 3; }
.reelv.app .rv-top { top: 46px; }
.reelv.app .rv-prog { top: 38px; }
.rv-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 900; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); padding: 4px 9px; border-radius: 8px; }
.rv-mute, .rv-x { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; color: #fff; }
.rv-text { position: absolute; left: 14px; right: 70px; top: 30%; display: grid; z-index: 2; pointer-events: none; }
.rv-text span { grid-area: 1 / 1; font-size: 22px; font-weight: 900; line-height: 1.15; text-shadow: 0 2px 12px rgba(0,0,0,.6); opacity: 0; animation: rvtext 1.9s ease both; animation-delay: var(--d); }
.rv-text span:last-child { animation: rvtextlast 2s ease forwards; animation-delay: var(--d); }
@keyframes rvtext { 0% { opacity: 0; transform: translateY(14px); } 15%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes rvtextlast { 0% { opacity: 0; transform: translateY(14px); } 20%, 100% { opacity: 1; transform: none; } }
.rv-side { position: absolute; right: 8px; bottom: 170px; display: flex; flex-direction: column; gap: 14px; z-index: 3; }
.rv-side button { color: #fff; display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 800; filter: drop-shadow(0 1px 4px rgba(0,0,0,.5)); }
.rv-side small { font-size: 11px; }
.rv-side button.on { color: #ff5a7a; } .rv-side button.on svg { fill: currentColor; }
.rv-side button.pop svg { animation: heart .4s ease; }
@keyframes heart { 50% { transform: scale(1.4); } }
.rv-foot { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; display: flex; flex-direction: column; gap: 8px; }
.rv-by { display: flex; align-items: center; gap: 8px; }
.rv-by .av { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 900; font-size: 12px; }
.rv-by em { font-style: normal; font-size: 11px; font-weight: 800; background: rgba(255,255,255,.2); padding: 2px 7px; border-radius: 6px; }
.rv-prod { display: flex; align-items: center; gap: 9px; background: rgba(255,255,255,.95); color: var(--ink); border-radius: 14px; padding: 7px; cursor: pointer; }
.rv-prod img { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; }
.rv-prod div { flex: 1; min-width: 0; } .rv-prod b { display: block; font-size: 12px; line-height: 1.25; } .rv-prod span { font-size: 12px; font-weight: 900; color: var(--brand-d); } .rv-prod s { color: var(--muted); font-weight: 600; }
.rv-prod button { display: inline-flex; align-items: center; gap: 4px; background: var(--grad); color: #fff; font-weight: 900; font-size: 12px; padding: 8px 10px; border-radius: 10px; white-space: nowrap; }
.rv-prod button.ok { background: var(--green); }
.rv-acts { display: flex; gap: 8px; }
.rv-acts button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px; border-radius: 11px; font-weight: 900; font-size: 12.5px; background: rgba(255,255,255,.2); backdrop-filter: blur(6px); color: #fff; }
.rv-acts button:first-child { background: #fff; color: var(--ink); }
.rv-pause { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 74px; height: 74px; border-radius: 50%; background: rgba(0,0,0,.4); display: none; place-items: center; z-index: 4; pointer-events: none; }
.rv-player.paused .rv-pause { display: grid; }
.rv-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; background: #fff; color: var(--ink); border-radius: 20px 20px 0 0; padding: 16px; display: flex; flex-direction: column; gap: 10px; animation: rvup .25s ease; max-height: 70%; overflow-y: auto; }
@keyframes rvup { from { transform: translateY(100%); } }
.rv-share { display: flex; gap: 10px; } .rv-share button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; background: var(--bg); font-weight: 800; font-size: 12px; }
.rv-cm { display: flex; flex-direction: column; gap: 10px; } .rv-cm > div { display: flex; gap: 8px; } .rv-cm .av { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 12px; flex-shrink: 0; } .rv-cm p { margin: 0; font-size: 13px; line-height: 1.4; } .rv-cm b { display: block; font-size: 12px; }
.rv-done { padding: 10px; border-radius: 12px; background: var(--bg); font-weight: 900; } .rv-done.ask { background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; gap: 6px; }
.rv-arrs { display: flex; flex-direction: column; gap: 10px; }
.rv-arr { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; }
.rv-arr svg { transform: rotate(90deg); }
.rv-info { width: 300px; background: #fff; border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 10px; position: relative; max-height: 100%; overflow-y: auto; }
.rv-info h4 { font-size: 17px; line-height: 1.3; margin-top: 2px; } .rv-info small { color: var(--muted); font-weight: 800; }
.rv-price { font-size: 22px; color: var(--brand-d); }
.rv-li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); }
.rv-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; }
.rv-nav { display: flex; gap: 8px; } .rv-nav button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 9px; border-radius: 11px; background: var(--bg); font-weight: 800; font-size: 13px; }
@media (max-width: 900px) {
  .rv-info { display: none; }
  .rv-arr { display: none; }
  .rv-wrap { padding: 10px; }
  .rl-card { flex-basis: 128px; }
}
@media (max-width: 900px) {
  .reelv.web .rv-wrap { width: 100%; }
  .reelv.web .rv-player { width: 100%; aspect-ratio: auto; max-height: none; }
}
