/* ------------------------------------------------------------------
   Product mock-ups. Fictional products rendered as real screens.
   Rules: iOS metrics (393×852 pt, status bar 54, tab bar 49 + home
   indicator 34), system font inside screens, SVG icons, one brand
   color per product, realistic data. Swap for screenshots later.
   ------------------------------------------------------------------ */

/* Device: iPhone frame ---------------------------------------------- */
.device { --w: 250px; width: var(--w); aspect-ratio: 393 / 852; position: relative; border-radius: calc(var(--w) * .17); background: #0b0b0c; padding: calc(var(--w) * .034); box-shadow: 0 30px 60px rgba(20,20,20,.22), 0 2px 6px rgba(0,0,0,.25), inset 0 0 0 2px #2a2a2c; }
.device::before { content: ""; position: absolute; left: 50%; top: calc(var(--w) * .052); transform: translateX(-50%); width: calc(var(--w) * .3); height: calc(var(--w) * .085); border-radius: 999px; background: #0b0b0c; z-index: 3; }
.device::after { content: ""; position: absolute; left: 50%; bottom: calc(var(--w) * .058); transform: translateX(-50%); width: calc(var(--w) * .34); height: 4px; border-radius: 2px; background: rgba(0,0,0,.85); z-index: 3; }
.device--light::after { background: rgba(0,0,0,.85); } .device--dark::after { background: rgba(255,255,255,.85); }
.screen { position: absolute; inset: calc(var(--w) * .034); border-radius: calc(var(--w) * .14); overflow: hidden; background: #fff; font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif; font-size: calc(var(--w) * .042); line-height: 1.3; color: #111; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
.screen * { box-sizing: border-box; }
.sb { height: calc(var(--w) * .14); display: flex; align-items: flex-end; justify-content: space-between; padding: 0 calc(var(--w) * .085) calc(var(--w) * .02); font-weight: 600; font-size: calc(var(--w) * .044); }
.sb svg { height: calc(var(--w) * .034); width: auto; }
.sb-r { display: flex; gap: 5px; align-items: center; }
.screen--dark .sb { color: #fff; }
.body { flex: 1; padding: 0 calc(var(--w) * .064); display: flex; flex-direction: column; gap: calc(var(--w) * .04); overflow: hidden; }
.tabbar { height: calc(var(--w) * .215); border-top: 1px solid rgba(0,0,0,.08); display: grid; grid-template-columns: repeat(4, 1fr); align-content: start; padding: calc(var(--w) * .02) 0 calc(var(--w) * .09); font-size: calc(var(--w) * .028); font-weight: 500; color: #8e8e93; text-align: center; background: rgba(255,255,255,.96); }
.tabbar span { display: grid; justify-items: center; gap: 2px; line-height: 1.1; }
.tabbar svg { width: calc(var(--w) * .085); height: calc(var(--w) * .085); }
.tabbar .on { color: var(--tab-on, var(--brand, #111)); }
.screen--dark .tabbar { background: #141416; border-color: rgba(255,255,255,.1); color: #7a7a80; }
.ios-title { font-size: calc(var(--w) * .11); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.ios-sub { font-size: calc(var(--w) * .04); color: #6e6e73; }
.btn-ios { height: calc(var(--w) * .16); border-radius: calc(var(--w) * .05); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: calc(var(--w) * .046); background: var(--brand); color: var(--brand-ink, #fff); }
.pill-ios { display: inline-flex; align-items: center; height: calc(var(--w) * .1); padding: 0 calc(var(--w) * .04); border-radius: 999px; background: #f2f2f7; font-size: calc(var(--w) * .036); font-weight: 500; color: #3a3a3c; white-space: nowrap; }
.pill-ios.on { background: #111; color: #fff; }
.ava { width: calc(var(--w) * .12); height: calc(var(--w) * .12); border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: calc(var(--w) * .036); color: #fff; flex: 0 0 auto; }

/* Qadam Fit (brand: lime on graphite) ---------------------------- */
.qadam { --brand: #d7f52e; --brand-ink: #111; --tab-on: #111; }
.qadam .hello { display: flex; justify-content: space-between; align-items: center; }
.qadam .hello b { font-size: calc(var(--w) * .07); font-weight: 700; letter-spacing: -.01em; }
.qadam .bell { width: calc(var(--w) * .11); height: calc(var(--w) * .11); border-radius: 50%; background: #f2f2f7; display: grid; place-items: center; }
.qadam .bell svg { width: 55%; height: 55%; }
.member { background: #151517; color: #fff; border-radius: calc(var(--w) * .06); padding: calc(var(--w) * .05); display: grid; grid-template-columns: 1fr auto; gap: calc(var(--w) * .03); }
.member .k { font-size: calc(var(--w) * .03); color: #9a9aa0; text-transform: uppercase; letter-spacing: .06em; }
.member .v { font-size: calc(var(--w) * .052); font-weight: 700; margin-top: 2px; }
.member .lime { color: var(--brand); }
.member .qr { width: calc(var(--w) * .2); height: calc(var(--w) * .2); border-radius: 6px; background: #fff; padding: 4px; }
.member .qr svg { width: 100%; height: 100%; }
.member .foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.1); padding-top: calc(var(--w) * .03); font-size: calc(var(--w) * .034); color: #c9c9ce; }
.card-ios { background: #f2f2f7; border-radius: calc(var(--w) * .05); padding: calc(var(--w) * .045); }
.card-ios .h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: calc(var(--w) * .03); }
.card-ios .h b { font-size: calc(var(--w) * .044); } .card-ios .h a { font-size: calc(var(--w) * .034); color: #6e6e73; }
.wk { display: flex; gap: calc(var(--w) * .03); align-items: center; }
.wk .t { font-weight: 700; font-size: calc(var(--w) * .05); width: calc(var(--w) * .14); }
.wk .n { font-weight: 600; } .wk .m { font-size: calc(var(--w) * .034); color: #6e6e73; }
.wk .go { margin-left: auto; height: calc(var(--w) * .09); padding: 0 calc(var(--w) * .035); border-radius: 999px; background: var(--brand); display: flex; align-items: center; font-weight: 600; font-size: calc(var(--w) * .034); color: #111; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--w) * .03); }
.stats div { background: #f2f2f7; border-radius: calc(var(--w) * .05); padding: calc(var(--w) * .04); }
.stats b { display: block; font-size: calc(var(--w) * .075); font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.stats span { font-size: calc(var(--w) * .032); color: #6e6e73; }
/* schedule */
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.days div { text-align: center; padding: calc(var(--w) * .025) 0; border-radius: calc(var(--w) * .04); font-size: calc(var(--w) * .03); color: #6e6e73; }
.days b { display: block; font-size: calc(var(--w) * .046); color: #111; font-weight: 600; }
.days .on { background: #151517; color: #c9c9ce; } .days .on b { color: var(--brand); }
.chips { display: flex; gap: 6px; overflow: hidden; }
.cls { display: grid; grid-template-columns: calc(var(--w) * .13) 1fr auto; gap: calc(var(--w) * .03); align-items: center; padding: calc(var(--w) * .035) 0; border-bottom: 1px solid rgba(0,0,0,.07); }
.cls .t { font-weight: 600; } .cls .t small { display: block; font-weight: 400; color: #6e6e73; font-size: calc(var(--w) * .03); }
.cls .n { font-weight: 600; } .cls .m { font-size: calc(var(--w) * .032); color: #6e6e73; }
.cls .s { font-size: calc(var(--w) * .03); font-weight: 600; padding: 4px 8px; border-radius: 999px; background: #eaf7c2; color: #3b5a00; white-space: nowrap; }
.cls .s.full { background: #f2f2f7; color: #8e8e93; }
/* class detail */
.hero-cls { height: calc(var(--w) * .4); border-radius: calc(var(--w) * .06); background: linear-gradient(160deg, #1d1d20, #3a3a40); position: relative; padding: calc(var(--w) * .05); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero-cls::before { content: ""; position: absolute; right: -20%; top: -30%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: var(--brand); opacity: .9; filter: blur(0); clip-path: circle(50%); transform: scale(.9); }
.hero-cls::after { content: ""; position: absolute; right: 6%; top: 10%; width: 36%; aspect-ratio: 1; border-radius: 50%; background: #1d1d20; }
.hero-cls b { font-size: calc(var(--w) * .08); font-weight: 700; letter-spacing: -.02em; position: relative; }
.hero-cls span { font-size: calc(var(--w) * .034); color: #c9c9ce; position: relative; }
.kv { display: grid; gap: calc(var(--w) * .03); }
.kv div { display: flex; align-items: center; gap: calc(var(--w) * .03); font-size: calc(var(--w) * .04); }
.kv svg { width: calc(var(--w) * .06); height: calc(var(--w) * .06); color: #6e6e73; flex: 0 0 auto; }
.kv b { font-weight: 600; }
.trainer { display: flex; align-items: center; gap: calc(var(--w) * .03); background: #f2f2f7; border-radius: calc(var(--w) * .05); padding: calc(var(--w) * .035); }
.trainer b { display: block; } .trainer span { font-size: calc(var(--w) * .032); color: #6e6e73; }
.toast { position: absolute; left: calc(var(--w) * .05); right: calc(var(--w) * .05); top: calc(var(--w) * .18); background: #151517; color: #fff; border-radius: calc(var(--w) * .045); padding: calc(var(--w) * .035) calc(var(--w) * .04); display: flex; gap: calc(var(--w) * .03); align-items: center; font-size: calc(var(--w) * .036); box-shadow: 0 10px 24px rgba(0,0,0,.25); z-index: 2; }
.toast i { width: calc(var(--w) * .07); height: calc(var(--w) * .07); border-radius: 50%; background: var(--brand); display: grid; place-items: center; }
.toast i svg { width: 60%; height: 60%; }

/* Emdeo patient app (brand: teal) ---------------------------------- */
.emdeo-app { --brand: #0e8f7e; }
.emdeo-app .appt { background: #e6f4f1; border-radius: calc(var(--w) * .05); padding: calc(var(--w) * .04); display: grid; grid-template-columns: auto 1fr; gap: calc(var(--w) * .035); align-items: center; }
.emdeo-app .appt .d { background: #fff; border-radius: calc(var(--w) * .035); width: calc(var(--w) * .13); text-align: center; padding: calc(var(--w) * .02) 0; }
.emdeo-app .appt .d b { display: block; font-size: calc(var(--w) * .06); line-height: 1; } .emdeo-app .appt .d span { font-size: calc(var(--w) * .03); color: #6e6e73; }
.emdeo-app .appt .i b { display: block; } .emdeo-app .appt .i span { font-size: calc(var(--w) * .032); color: #3a6b63; }
.emdeo-app .svc { display: grid; gap: calc(var(--w) * .02); }
.emdeo-app .svc div { display: flex; align-items: center; gap: calc(var(--w) * .03); height: calc(var(--w) * .14); padding: 0 calc(var(--w) * .035); border-radius: calc(var(--w) * .04); background: #f2f2f7; font-weight: 500; }
.emdeo-app .svc i { width: calc(var(--w) * .085); height: calc(var(--w) * .085); border-radius: calc(var(--w) * .025); display: grid; place-items: center; color: #fff; }
.emdeo-app .svc i svg { width: 60%; height: 60%; }
.emdeo-app .svc svg.chev { margin-left: auto; width: calc(var(--w) * .04); color: #c7c7cc; }

/* Browser window ----------------------------------------------------- */
.window { border-radius: 10px; background: #fff; border: 1px solid rgba(0,0,0,.08); overflow: hidden; box-shadow: 0 30px 60px rgba(20,20,20,.14), 0 1px 3px rgba(0,0,0,.08); font-family: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif; font-size: 11.5px; line-height: 1.35; color: #111; -webkit-font-smoothing: antialiased; }
.window * { box-sizing: border-box; }
.window-bar { height: 34px; background: #f5f5f7; display: flex; align-items: center; padding: 0 12px; border-bottom: 1px solid rgba(0,0,0,.07); }
.window-url { margin: 0 auto; width: min(60%, 360px); height: 22px; border-radius: 6px; background: #fff; border: 1px solid rgba(0,0,0,.08); display: flex; align-items: center; justify-content: center; font-size: 10.5px; color: #6e6e73; }
.window-url svg { width: 10px; height: 10px; margin-right: 5px; }
.app-shell { display: grid; grid-template-columns: 180px 1fr; min-height: 420px; }
.side { background: #fafafa; border-right: 1px solid rgba(0,0,0,.06); padding: 14px 10px; display: flex; flex-direction: column; gap: 14px; }
.side .logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; padding: 0 6px; letter-spacing: -.01em; }
.side .logo i { width: 22px; height: 22px; border-radius: 6px; background: var(--brand); display: grid; place-items: center; color: #fff; }
.side .logo i svg { width: 14px; height: 14px; }
.side nav { display: grid; gap: 2px; }
.side nav span { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; color: #3a3a3c; font-weight: 500; }
.side nav svg { width: 14px; height: 14px; color: #8e8e93; }
.side nav span.on { background: #fff; color: #111; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.side nav span.on svg { color: var(--brand); }
.side nav span em { margin-left: auto; font-style: normal; font-size: 10px; background: var(--brand); color: #fff; border-radius: 999px; padding: 1px 6px; }
.side .me { margin-top: auto; display: flex; gap: 8px; align-items: center; padding: 6px; }
.side .me b { display: block; font-size: 11px; } .side .me span { font-size: 10px; color: #8e8e93; }
.main { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 8px; }
.topbar h4 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.01em; margin-right: auto; }
.sel { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 6px; border: 1px solid rgba(0,0,0,.1); background: #fff; font-size: 11px; font-weight: 500; }
.sel svg { width: 10px; height: 10px; color: #8e8e93; }
.btn-ui { height: 26px; padding: 0 10px; border-radius: 6px; background: var(--brand); color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; }
.btn-ui svg { width: 11px; height: 11px; }

/* Emdeo CRM (brand: teal) */
.emdeo { --brand: #0e8f7e; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: start; }
.kcol { background: #f5f5f7; border-radius: 8px; padding: 8px; display: grid; gap: 6px; }
.kcol-h { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 11px; padding: 2px 4px 4px; }
.kcol-h em { font-style: normal; color: #8e8e93; font-weight: 500; }
.kcard { background: #fff; border-radius: 7px; padding: 9px 10px; display: grid; gap: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.05); border: 1px solid rgba(0,0,0,.04); }
.kcard .src { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #6e6e73; }
.kcard .src i { width: 14px; height: 14px; border-radius: 4px; display: grid; place-items: center; }
.kcard .src i svg { width: 9px; height: 9px; color: #fff; }
.kcard .src i.wa { background: #25d366; } .kcard .src i.ig { background: #d62976; } .kcard .src i.tel { background: #3478f6; } .kcard .src i.web { background: #8e8e93; }
.kcard b { font-size: 11.5px; font-weight: 600; }
.kcard .m { font-size: 10.5px; color: #3a3a3c; }
.kcard .f { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: #8e8e93; margin-top: 2px; }
.kcard .f .tag-ui { padding: 2px 6px; border-radius: 4px; background: #e6f4f1; color: #0e6f62; font-weight: 600; }
.kcard .f .tag-ui.warn { background: #fff1e0; color: #a05a00; }
.kcard .f .tag-ui.paid { background: #e8f1ff; color: #1d4ed8; }
/* schedule */
.sched { display: grid; grid-template-columns: 44px repeat(3, minmax(0, 1fr)); border: 1px solid rgba(0,0,0,.07); border-radius: 8px; overflow: hidden; font-size: 10.5px; }
.sched > div { border-bottom: 1px solid rgba(0,0,0,.06); border-right: 1px solid rgba(0,0,0,.06); min-height: 34px; padding: 4px 6px; position: relative; }
.sched > div:nth-child(4n) { border-right: 0; }
.sched .hd { background: #fafafa; font-weight: 600; display: flex; align-items: center; gap: 6px; min-height: 36px; }
.sched .hd .ava { width: 20px; height: 20px; font-size: 9px; }
.sched .hd small { display: block; font-weight: 400; color: #8e8e93; font-size: 9.5px; }
.sched .tm { color: #8e8e93; font-size: 10px; background: #fafafa; }
.sched .ev { position: absolute; left: 4px; right: 4px; top: 3px; bottom: 3px; border-radius: 5px; padding: 4px 6px; font-size: 10px; line-height: 1.25; border-left: 3px solid; }
.sched .ev b { display: block; font-weight: 600; }
.sched .ev.a { background: #e6f4f1; border-color: #0e8f7e; color: #0b4f46; }
.sched .ev.b { background: #e8f1ff; border-color: #3478f6; color: #1a3f8a; }
.sched .ev.c { background: #fff1e0; border-color: #e58a00; color: #7a4600; }
.sched .ev.free { background: repeating-linear-gradient(135deg, #f5f5f7 0 4px, #fff 4px 8px); border-color: #d1d1d6; color: #8e8e93; }
/* report */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { border: 1px solid rgba(0,0,0,.07); border-radius: 8px; padding: 10px 12px; }
.kpi span { display: block; font-size: 10px; color: #6e6e73; }
.kpi b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; }
.kpi em { font-style: normal; font-size: 10px; color: #0e8f7e; font-weight: 600; }
.kpi em.down { color: #c2410c; }
.chart { border: 1px solid rgba(0,0,0,.07); border-radius: 8px; padding: 12px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.chart h5 { margin: 0 0 8px; font-size: 11px; font-weight: 600; }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; align-items: end; height: 110px; border-bottom: 1px solid rgba(0,0,0,.08); padding-bottom: 0; }
.bars div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; font-size: 9.5px; color: #6e6e73; }
.bars i { display: block; width: 100%; max-width: 34px; border-radius: 4px 4px 0 0; background: #0e8f7e; height: var(--h); flex: 0 0 auto; }
.bars i.lite { background: #b8e3dc; }
.bars b { font-size: 10px; color: #111; }
.legend { display: grid; gap: 7px; font-size: 10.5px; }
.legend div { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.legend i { display: block; height: 6px; border-radius: 3px; background: #e6e6ea; position: relative; grid-column: 1 / -1; }
.legend i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); border-radius: 3px; background: var(--c, #0e8f7e); }

/* Dongelek Parts B2B (brand: cobalt) */
.dongelek { --brand: #2f54ff; }
.shop-top { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(0,0,0,.07); }
.shop-top .logo { font-weight: 800; font-size: 13px; letter-spacing: -.02em; }
.shop-top .logo span { color: var(--brand); }
.shop-search { flex: 1; height: 28px; border-radius: 6px; background: #f2f2f7; display: flex; align-items: center; gap: 6px; padding: 0 10px; font-size: 11px; color: #8e8e93; }
.shop-search svg { width: 12px; height: 12px; }
.shop-acc { font-size: 10.5px; color: #3a3a3c; display: flex; align-items: center; gap: 6px; }
.shop-acc .ava { width: 20px; height: 20px; font-size: 9px; }
.shop-main { display: grid; grid-template-columns: 150px 1fr; min-height: 340px; }
.filters { padding: 12px; border-right: 1px solid rgba(0,0,0,.06); display: grid; gap: 7px; align-content: start; font-size: 11px; color: #3a3a3c; }
.filters b { font-size: 11px; margin-bottom: 2px; }
.filters span { display: flex; justify-content: space-between; }
.filters span em { font-style: normal; color: #8e8e93; }
.filters span.on { color: var(--brand); font-weight: 600; }
.filters .chk { margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.filters .chk i { width: 12px; height: 12px; border-radius: 3px; background: var(--brand); display: grid; place-items: center; }
.filters .chk svg { width: 8px; height: 8px; color: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: 11px; }
.tbl th { text-align: left; font-weight: 500; color: #8e8e93; padding: 8px 10px; border-bottom: 1px solid rgba(0,0,0,.07); font-size: 10px; }
.tbl td { padding: 8px 10px; border-bottom: 1px solid rgba(0,0,0,.05); white-space: nowrap; vertical-align: middle; }
.tbl td.wrap { white-space: normal; }
.tbl td.ok { color: #138a4a; } .tbl td.low { color: #c2410c; }
.tbl .mono { font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; color: #3a3a3c; }
.tbl .price { font-weight: 600; }
.tbl .old { color: #8e8e93; text-decoration: line-through; font-weight: 400; font-size: 10px; margin-right: 4px; }
.tbl .qty { display: inline-flex; align-items: center; border: 1px solid rgba(0,0,0,.12); border-radius: 6px; overflow: hidden; }
.tbl .qty span { width: 22px; height: 22px; display: grid; place-items: center; }
.tbl .qty b { width: 24px; text-align: center; font-weight: 600; }
.tbl .add { width: 24px; height: 24px; border-radius: 6px; background: var(--brand); display: grid; place-items: center; }
.tbl .add svg { width: 12px; height: 12px; color: #fff; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.ok { background: #e6f4ec; color: #138a4a; } .status.wait { background: #fff1e0; color: #a05a00; } .status.ship { background: #e8f1ff; color: #1d4ed8; }
.shop-foot { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fafafa; border-top: 1px solid rgba(0,0,0,.06); font-size: 11px; color: #3a3a3c; }
.shop-foot b { color: #111; }
.shop-foot .sync { display: flex; align-items: center; gap: 5px; color: #138a4a; font-size: 10.5px; }
.shop-foot .sync svg { width: 11px; height: 11px; }
.shop-foot .btn-ui { margin-left: auto; }
.cart-grid { display: grid; grid-template-columns: 1fr 220px; gap: 14px; padding: 14px; }
.summary { border: 1px solid rgba(0,0,0,.07); border-radius: 8px; padding: 12px; display: grid; gap: 8px; align-content: start; font-size: 11px; }
.summary div { display: flex; justify-content: space-between; }
.summary .tot { border-top: 1px solid rgba(0,0,0,.08); padding-top: 8px; font-weight: 700; font-size: 13px; }
.summary .opt { display: grid; gap: 6px; padding: 6px 0; }
.summary .opt label { display: flex; align-items: center; gap: 6px; }
.summary .opt i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #c7c7cc; }
.summary .opt i.on { border-color: var(--brand); box-shadow: inset 0 0 0 3px #fff; background: var(--brand); }
.summary .btn-ui { justify-content: center; height: 32px; margin-top: 4px; }

/* Screen switcher ---------------------------------------------------- */
.screens { display: grid; gap: var(--s-5); }
.screens-nav { display: inline-flex; padding: 4px; background: rgba(0,0,0,.06); border-radius: 999px; gap: 2px; }
.screens-nav button { height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-700); font: 500 14px var(--f-body); cursor: pointer; }
.screens-nav button[aria-selected="true"] { background: #fff; color: var(--ink-900); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.screens-panel { display: none; }
.screens-panel.is-active { display: block; }
.phones { display: flex; justify-content: center; align-items: flex-end; gap: var(--s-4); }
.phones .device { --w: 196px; }
.phones .device:nth-child(2) { --w: 212px; margin-bottom: 8px; }
@media (max-width: 1200px) { .phones .device { --w: 170px; } .phones .device:nth-child(2) { --w: 184px; } }
@media (max-width: 720px) {
  .case--stack > * { min-width: 0; }
  .phones { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(-1 * var(--s-6)); padding: 0 var(--s-6) 8px; -webkit-overflow-scrolling: touch; }
  .phones .device, .phones .device:nth-child(2) { --w: 200px; flex: 0 0 auto; scroll-snap-align: center; margin-bottom: 0; }
  .screens-nav { max-width: 100%; overflow-x: auto; }
  .screens-nav button { padding: 0 12px; font-size: 13px; white-space: nowrap; }
  .screens-panel.is-active { overflow-x: auto; margin: 0 calc(-1 * var(--s-6)); padding: 0 var(--s-6) 8px; }
  .window { min-width: 640px; }
  .phones, .screens-nav, .screens-panel.is-active { scrollbar-width: none; }
  .phones::-webkit-scrollbar, .screens-nav::-webkit-scrollbar, .screens-panel::-webkit-scrollbar { display: none; }
  .side { display: none; } .app-shell { grid-template-columns: 1fr; }
}

/* Real screenshots inside frames ------------------------------------- */
.screen--shot { background: var(--shot-bg, #f5f3ee); display: flex; flex-direction: column; }
.screen--shot .sb { color: #111; flex: 0 0 auto; }
.screen--shot img { display: block; width: 100%; height: auto; flex: 0 0 auto; }
.screen--shot .home { flex: 1 0 auto; min-height: calc(var(--w) * .11); }
/* iPad frame */
.tablet { --tw: 420px; width: var(--tw); aspect-ratio: 834 / 1112; position: relative; border-radius: calc(var(--tw) * .06); background: #0b0b0c; padding: calc(var(--tw) * .028); box-shadow: 0 30px 60px rgba(20,20,20,.2), 0 2px 6px rgba(0,0,0,.25), inset 0 0 0 2px #2a2a2c; }
.tablet img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: calc(var(--tw) * .035); background: #f5f3ee; }
/* Desktop window with a screenshot */
.window--shot img { display: block; width: 100%; height: auto; }
/* Trio: desktop + tablet + phone, same screen */
.trio { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); padding-bottom: var(--s-7); }
.trio .window { width: 82%; }
.trio .tablet { position: absolute; right: 9%; bottom: 0; --tw: 26%; width: 26%; }
.trio .device { position: absolute; right: 0; bottom: 0; --w: 17%; width: 17%; }
.trio .device .sb { font-size: calc(var(--w) * .044); }
@media (max-width: 720px) {
  /* На телефоне десктопный скриншот нечитаем: показываем экран телефона, вкладки переключают его */
  .trio { padding-bottom: 0; justify-items: center; }
  .trio .window, .trio .tablet { display: none; }
  .trio .device { position: relative; right: auto; bottom: auto; --w: 240px; width: 240px; }
  .trio .device .sb { font-size: 11px; }
}
.case-group + .case-group { margin-top: var(--s-8); }
.case-group-title { font-size: 14px; color: var(--ink-500); margin-bottom: var(--s-5); }
